Open Side Menu Go to the Top

01-11-2013 , 08:44 PM
Eh... I did the gates in Scheme and Python. Pretty interesting but I've never done done anything.on top of them. I know there was that thread where a bunch of.people did the gates. I'm sure if you open a thread you'll get people joining you.

I just don't want to commit any time to learning new languages** and I'm not a fan of learning esoteric ones,.though if it helps you get a boost, I can join along as long as you don't mind me doing it in Lisp.

** Obviously I'm getting onto C right now, but I'd prefer to keep it one language at a time. Assembly would come for me later, but just not now.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
01-12-2013 , 07:01 AM
Rest in peace, aaronsw.

http://tech.mit.edu/V132/N61/swartz.html
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-12-2013 , 04:27 PM
FWIW: Learning time for HAL=max 5 minutes
Just built the "not","or","and","mux" and "dmux" gates from "nand"

For the "not" I came up with two possible solutions, which one would you prefer (made up pseudocode)?
not(in) = nand(in,1)
not(in) = nand(in,in)

I'm assuming 1 and 0 are easy because they are always available.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-12-2013 , 04:44 PM
You should be able to build all the gates using 3 primitives:

And Gate
Or Gate
Invertor

The And Gate takes 2 inputs and has one output. A Nand Gate is simply an And Gate with an Invertor plugged to the head.

Yes, you should use Zero and One. I'm sure you'll eventually have to make an N-bit Adder, which most certainly is worthless unless you use 1 and 0.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-12-2013 , 05:02 PM
Yes one could do it that way (starting from the primitives AND,OR,NOT). The%

Last edited by clowntable; 01-12-2013 at 05:14 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-13-2013 , 08:06 PM
Using modern hardware, is it still important to select the fastest possible 7 card hand evaluating algorithm/piece of code? Or any reasonably fast will do? My initial purpose will be to calculate some not too complex Nash equilibria. Thanks in advance.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-13-2013 , 08:11 PM
It's not a matter of needing to select the fastest so much as you still need to avoid choosing one so slow it blows up your simulations.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-13-2013 , 09:17 PM
You should just use precomputed tables.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2013 , 09:56 AM
Anyone know if the installs on the google play store is installs/month or installs total?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2013 , 11:54 AM
So it looks like my company is going bust and I'll need to get a new job.

Does anyone have any links to any good lists of programming interview problems?

i.e. fizzbuzz type things and beyond. I'm a Java programmer if it makes any difference.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2013 , 12:55 PM
Quote:
Originally Posted by daveT

???
Profit!

Thanks a million dave, I had other cv related stuff to do before looking it up.
Now I can get stuck into those.

That was some form of delegation and multi-tasking surely.

Hmm maybe I can put that on my cv
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2013 , 01:32 PM
I read an article the other week where someone claimed to be interviewing CS graduates as well as other self proclaimed developers for a programming position and about 80% of the candidates failed the fizzbuzz test.

They either walked out of the room instantly or gave up after some extended amount of time.

Does anyone have any experience as interviewers where they watched someone with a mile long resume of credentials get tripped up on pretty easy interview questions?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2013 , 03:21 PM
I just received my copy of CLRS in the mail. I had ordered a new 3rd edition and they sent me a used 2nd edition. Now everyone is playing dumb and blaming it on me. I've *never* had a good experience ordering products from eBay. I thought things would have improved since 4 years ago, but I guess not.

Sifting through it anyways... Looks intimidating to say the least.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2013 , 03:50 PM
So, I contacted the company that mailed me the item and contacted the seller. I haven't heard back from the seller yet. It looks like they re-listed the item after I bought it and then downgraded the edition and quality after I made the purchase.

The place that mailed the book to me told me that they finally found my order and, no, I did not buy the book from eBay, but I bought it from Amazon. I could return it to them for a refund minus shipping, etc etc etc.

So, **** that. I decide to escalate the case to eBay since it is obvious where this is going. I go to the buyer protection page and they tell me that my complaint doesn't qualify so I have to log in to Pay Pal and resolve the issue with them.

What? The buyer protection program says that eBay will contact the seller and resolve the issue, but whatever.

I go ahead and log into Pay Pal. I didn't purchase the product using Pay Pal, so I am listed as a guest user with the purchase through eBay. In order to dispute the transaction, I need a Pay Pal transaction number, but of course this isn't one!

In case people wonder why I really hate Pay Pal, and yes I hate Pay Pal because they are tied into eBay, this is exactly the line of bull **** I am talking about. It never ever fails that if the name Pay Pal is attached, I have to deal with tons of this garbage, whether I am purchasing or getting paid. Such a massive customer service **** hole and absolute nightmare.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2013 , 04:03 PM
or you could, you know, just google for the pdf and be reading in 3 seconds....
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2013 , 04:23 PM
Quote:
Originally Posted by daveT
I didn't purchase the product using Pay Pal

...

In case people wonder why I really hate Pay Pal, and yes I hate Pay Pal because they are tied into eBay, this is exactly the line of bull **** I am talking about. It never ever fails that if the name Pay Pal is attached, I have to deal with tons of this garbage, whether I am purchasing or getting paid. Such a massive customer service **** hole and absolute nightmare.
Wait, Paypal had nothing to do with this, but they might refund you anyhow? And this is cause for complaint? I guess I'm missing something, by why not take up your dispute with whoever you used to make the transaction, visa/mastercard or whatever.

and why not use paypal, you know, so you're covered by it's buyer protection when using ebay?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2013 , 04:27 PM
Of course I could have... I wanted a dead-tree version. Maybe I should just return the thing and be done with it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2013 , 04:34 PM
Quote:
Originally Posted by _dave_
Wait, Paypal had nothing to do with this, but they might refund you anyhow? And this is cause for complaint? I guess I'm missing something, by why not take up your dispute with whoever you used to make the transaction, visa/mastercard or whatever.

and why not use paypal, you know, so you're covered by it's buyer protection when using ebay?
That's the issue. There is no "buyer protection." I just got off the phone with eBay and they have no way of seeing what the original purchase is. If there was buyer protection, they would have pulled up the purchase and said "oops!" and that would be that. Instead, I have to wait for the seller to respond to my email and hope they don't deny the error and if they do deny the error, I then have to contact eBay again and hope for the best.

I had to actually call eBay to get a transaction ID for the Pay Pal purchase and there really is no protection anywhere. I had to log in to Pay Pal just use my Master Card and I can't fathom why I have to call eBay to get a transaction ID for a purchase I made just so I can log a complaint with Pay Pal so they can log a complaint with eBay and... you see how this is not good? And why isn't there a transaction ID on my Pay Pal history?

So, just to get what I ordered, I have to contact 4 different companies and 3 of them have already denied any responsibility for this error.

The quickest way to solve this is just to do what gaming_mouse said, return the book to the company that mailed the book to me, eat the shipping cost, and wait for my money to be returned. This option is the least-worst, but definitely not optimal.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-14-2013 , 07:08 PM
This kind of problems is so frustrating when you look forward to reading a book. Hope it won't put you off it. I bought the 2nd edition years ago and it was worth every penny I invested in it.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2013 , 01:16 PM
I'm writing a long article how I built some web pages in Clojure. Would you guys be willing to offer feedback on it? It's not finished yet, but I suspect it will be between 3000 and 4000 words.

Is there a good syntax highlighter for webpages: Is highlight.js pretty good?

Last edited by daveT; 01-15-2013 at 01:22 PM.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2013 , 02:17 PM
Sounds good, I'll be coming at it with 0 knowledge of Clojure. Is it aimed at people with prior knowledge?
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2013 , 03:27 PM
I think you should also include the "why" aspect of picking clojure too because that seems more interesting than the "how".
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2013 , 03:29 PM
Quote:
Originally Posted by mindsplatter
Sounds good, I'll be coming at it with 0 knowledge of Clojure. Is it aimed at people with prior knowledge?
Not really. It's more aimed at people who would be interested in seeing some cool features.

I do assume that you can write HTML, create a form in your favorite language, and also assume you aren't totally frightened of Lisp.

There's some explanation of destructuring, routing, and server-side dynamic HTML. Basically, I am writing out how I created the form pages on that resume site.

It's more documentation than it is a tutorial, but I do want to show people that things can be done in the language, and I assume someone somewhere would like to see something useful.

I thought about my rant and I even put a rant online, but it's too negative and basically not a pro-active stance. Rather show than accuse, so the rant will get pulled down and probably find its way to the trash bin.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
01-15-2013 , 03:32 PM
Quote:
Originally Posted by Shoe Lace
I think you should also include the "why" aspect of picking clojure too because that seems more interesting than the "how".
What part of < LOC don't you understand?

I have a hard time uptalking any language over another. I'm also not experienced enough with languages to make a convincing case. There is one comment about how I like destructuring more than unwrapping in Python, but beyond that, I would be nauseating.

fwiw, I think C is really cool.
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD ** Quote
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **
$25m Guaranteed WPM on CoinPoker
Join the action now
Daily Rewards • Splash Pots • CoinRaces
** UnhandledExceptionEventHandler :: OFFICIAL LC / CHATTER THREAD **

      
m