Hacker Newsnew | past | comments | ask | show | jobs | submit | stuart_v's commentslogin

These kind of handson tutorials are awesome. You can just copy/paste and run the code inside the browser console and see your transaction propagate to the network. I wish more tutorials were as easily 'runnable'.


Not a clojure guy, but this throttler seems to be for single machine (Throttling not shared between servers).

API Rate limiters should share global state using redis or something.

So perhaps, this is more for throttling functions


For what it's worth, here's what I use for redis rate limiting: https://gist.github.com/anonymous/4dcb6892346ff17709fe It's in Python, but the bulk of it is a redis Lua script.


Might be off topic here. But one thing I like about language like Go over C is that it enforces a strict syntax.

In Go, {} are not optional in a if statement so you will never have issue like this:

if ((err = SSLHashSHA1.update( &hashCtx, &signedParams)) != 0) goto fail; goto fail;

They will be easily caught


Are you trying to do a voting ring and get your content to the front page? Maybe your accounts are flagged to be in a voting ring?


Poachers are going extradinary lengths. Can't believe they are resorting to using the meta data in tourists photos. That's almost too savvy.


God, this makes me so sad. Being persuaded into admitting guilt to a crime that you have no idea about sounds bizaare but I am sure this case wasn't the last.


At roughly the same time in the UK there were the Guildford Four and Maguire Seven cases:

http://en.wikipedia.org/wiki/Guildford_Four_and_Maguire_Seve...


Well, probably not all that rare in the US, for example, due to the abuse of the plea bargain system.


That's the weirdest thing about US police series.

When I was younger, I never really believed that sort of thing actually happens for real, just thought it was an over-used fictional "cleverness" trope. I mean it's so obvious this is going to lead to abuse and false confessions if actually used for real-life confessions, I figured it had to, because in a TV-series you can assume that the police are the smart/good guys so they could safely use this clever (if somewhat unfair) trick to get the (obvious) bad guys.

As I got older, and perhaps as the themes in TV series got a little more complex, I started wondering sometimes, how are these even the good guys? For all they know they are now convicting an innocent man or woman, by pressuring them into confessing to a crime with the only leverage being "an offer they can't refuse" (a much larger sentence).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: