HN user

pwf

161 karma

[ my public key: https://keybase.io/pwf; my proof: https://keybase.io/pwf/sigs/ggXfVahytTNHZA1X7KK8IoqOcL1kj2sEi7LrSiY6ukI ]

Posts1
Comments72
View on HN

The stuff we used Go for was the right choice for Go for sure, but I don't think the API would have been any easier in Go (though I haven't used those frameworks before...).

We also could have done Django a lot better. And all of the Celery stuff probably should have been Go, especially with the Cassandra driver we were using. Still, I'm using Django today and as long as you don't abuse the ORM and nested DRF serializers too much, it's very scalable. I think as long as you make separate services in other languages at the right time for the right use cases, it's a very valid choice for rapidly building an API.

Of course you design it in such a way, that you can change one of the inputs, which will by definition invalidate the tokens.

I was looking at using JWT to avoid a database read when authenticating a request, but in order to get some sort of variable per-user value I'd have to hit the database to get it, no? Doesn't that kind of defeat the purpose?

I imagine this working a lot like car2go, which I've used to commute in Austin. The cars are rarely at a central depot except for maintenance. They're left wherever you last used them until someone else gets in. This could only be better than that, as users won't have to walk to find one.

There's no reason for the cars to drive back into the city every evening. They could charge themselves while you're at work if they had to charge daily.

Is there a bug in the train function? Using 'lambda: 1' for the default dict along with '+=' means that the first time a feature is encountered, the value is set to 2.

  In [1]: from collections import defaultdict

  In [2]: d = defaultdict(lambda: 1)

  In [3]: d['foo'] += 1

  In [4]: d['foo']
  Out[4]: 2

A relevant quote from 'Snow Crash':

Gargoyles represent the embarrassing side of the Central Intelligence Corporation. Instead of using laptops, they wear their computers on their bodies, broken up into separate modules that hang on the waist, on the back, on the headset. They serve as human surveillance devices, recording everything that happens around them. Nothing looks stupider; these getups are the modern-day equivalent of the slide-rule scabbard or the calculator pouch on the belt, marking the user as belonging to a class that is at once above and far below human society.

[dead] 13 years ago

I thought titles were only edited to be less... editorialized.

Who the hell added 'Microscrood'?

[dead] 13 years ago

Applications were running, but I couldn't resolve any domains from any of our Azure machines.

Sorry, it's not scary, and mentioning Guantanamo Bay is extremely paranoid and way out of line. If they're really out to get you they don't need your fingerprint.

For those wondering what the hell truth() is, I think they're talking about this phenomenon:

  python -m timeit "if bool(1): x = 1"
  1000000 loops, best of 3: 0.187 usec per loop

  python -m timeit "if 1: x = 1"
  10000000 loops, best of 3: 0.0266 usec per loop

The only reason I've personally bought an SSL certificate was to make the payments page of my website PCI compliant. Pretty sure this doesn't get me around that.

More people do need to know this kind of stuff though; I'm using it at work to great effect.

What does the head of the Xbox division have to do with the fun factor of the games? I would understand this comment if we were talking about the head of Bioware or Blizzard, but this guy seems pretty far removed the actual games.

Edward Snowden Q&A 13 years ago

"The framing of this is right off the bat aggressive, casting him in the light of a criminal." Ignoring any moral aspects, isn't he technically a criminal? This certainly seems more neutral than your suggestion. Calling him a traitor would be out of line, but I do believe it was against the law to do what he did.

It IS only 'purportedly' him; why do you expect CNN to report what it cannot confirm?

The quotes around 'abusive' are suggestive, but it is also how you indicate that the word came from someone other than the author of the article. If you expect neutrality, expect the writer to segregate their words from their subject's.

Your summary is far more emotionally charged and subjective.