Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pushrax
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
211.
▲
by
pushrax
12y ago
For sure, it's definitely not the ideal interview problem. My intended argument was just that it's not an unfair interview problem. As an aside, I don't think it's that unlikely to come up with a dynamic programming solu
212.
▲
by
pushrax
12y ago
It's a good interview question for the same reason any question is: it allows you to see how the interviewee thinks and approaches a problem (if they haven't seen it before). If they have seen it before, you can see how well they
213.
▲
by
pushrax
12y ago
The knapsack problem is the canonical dynamic programming problem. Any decent combinatorics class should touch on these concepts at some point.
214.
▲
by
pushrax
12y ago
It's pretty clearly a play on words...
215.
▲
by
pushrax
12y ago
Then it's just a more complicated hash function.
216.
▲
by
pushrax
12y ago
Looks a bit like a one person shop – not exactly what you're looking for while building a high availability system.
217.
▲
by
pushrax
12y ago
Awesome, didn't realize that! Will definitely be using it.
218.
▲
by
pushrax
12y ago
If you want to cut down on DNS-induced latency, Route 53 is a fairly good option. Their latency-routed DNS doesn't perfectly map to all geographical zones, but it works fairly well for DigitalOcean's locations. I wish it was easie
219.
▲
by
pushrax
12y ago
CloudFlare's hit rate is predictably terrible for large binary files. We actually use DigitalOcean + Varnish + S3 for serving downloads from mods.io, since the files are relatively big and the site has such a low margin. Traditional CD
220.
▲
by
pushrax
12y ago
Managing the infrastructure is definitely where it falls short, but if you can get it done quickly it can be very cost-efficient for smaller projects. Three $5 DO boxes can easily handle > 1TB per month, which will cost over $100 on most
221.
▲
by
pushrax
12y ago
Actually, with DigitalOcean, you get quite a lot of bandwidth for the price. Additionally, their transfer limits are high (1TB for the $5 instances), and overage is only $0.02/GB. If you combine this with something like Route 53's
222.
▲
by
pushrax
12y ago
Defers are still called when the stack is unwound due to a panic. It's standard practise to clean up resources with a defer, so maybe it wouldn't be too unreasonable if you're mainly dealing with the standard libraries.
223.
▲
by
pushrax
12y ago
Do you have AdBlock or the like?
224.
▲
by
pushrax
12y ago
Cool, nice work! I didn't actually look at the benchmark and was just making (perhaps poor) assumptions. I'd imagine it does come with a nice little performance boost though?
225.
▲
by
pushrax
12y ago
In addition, if you were to replace the Rails router with a Ruby trie implementation, it would be even faster. (not that this is encouraged)
226.
▲
by
pushrax
12y ago
Yes, of course. That's why it's a successful "man in the middle attack" of sorts. If the cert wasn't trusted then it would mean nothing.
227.
▲
by
pushrax
12y ago
I would call this a "self-induced man in the middle attack". You're telling your computer that cloudflarechallenge.com is his server.
228.
▲
by
pushrax
13y ago
Yep! There were a bunch of us who wrote GPU "miners" (mostly OpenCL). I was intending to open-source mine at one point but never got around to it. At the end of the challenge, the network was hashing ten digits (i.e. 000000000 pre
229.
▲
by
pushrax
13y ago
The $10 backers didn't receive anything other than a pat on the back.
230.
▲
by
pushrax
13y ago
I don't understand your reasoning – the point of selling equity is to have more money available for immediate use. If they had followed this path, they might have raised even more capital.
231.
▲
by
pushrax
13y ago
Well, many Ruby webapps use erb, which is basically the same thing.
232.
▲
by
pushrax
13y ago
The ?q= doesn't cause the referrer to get set properly.
233.
▲
by
pushrax
13y ago
Here's a direct link using Google as the referrer: http://www.google.com/#q=Netflix+Agrees+to+Pay+Comcast+to+En...
234.
▲
by
pushrax
13y ago
For purposes of easy clicking, here's the same link without the space: http://www.google.com/#q=Netflix+Agrees+to+Pay+Comcast+to+En...
235.
▲
by
pushrax
13y ago
what.cd doesn't use CloudFlare, but yeah they've been under attack
236.
▲
by
pushrax
13y ago
HTTPS means PG-13 in the UK's network filter?
237.
▲
by
pushrax
13y ago
https://bitpay.com/bitcoin-exchange-rates