Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
sltkr
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
56 ms
·
661.
▲
by
sltkr
14y ago
That tripped me up too, and I'm pretty sure that answer is wrong. It's implementation defined, since it's implementation defined whether or not 'char' is signed or not.
662.
▲
by
sltkr
14y ago
The idea is nice, but the code is a little flaky. For example, change the number of decimals from 1000 to 2000 and it enters an infinite loop, but 4000 works again. This occurs because due to rounding a and b might not converge to the exa
663.
▲
by
sltkr
14y ago
There are tools like Shake [1] that can semi-intelligently copy fragmented files around to defragment them, which typically results in less fragments if there is enough free space on the volume. 1. http://www.vleu.net/shake/
664.
▲
by
sltkr
14y ago
2³ is a perfectly round number to me.
665.
▲
by
sltkr
14y ago
It seems that the text field accepts arbitrary numbers and then sets the knob to a rather random-looking position. It would make a lot more sense if these values were clipped to the range of the knob.
666.
▲
by
sltkr
14y ago
I eat junk food, cook food that's past the expiration date as long as it doesn't look/smell fishy, and I wear old clothes. My clothing probably isn't too fashionable either and my mattress isn't spotless. No, I probably wouldn't dress a bab
667.
▲
by
sltkr
15y ago
If you don't want to talk to or get to know anyone, why are you looking for a girlfriend?
668.
▲
by
sltkr
15y ago
It's funny that your suggestion is the opposite of the currently top-rated comment (which I didn't read, because it's a 1700 word essay without any capitalization). (For what it's worth, I think you have it right.)
669.
▲
by
sltkr
15y ago
Personally I've bound history searches to the up/down arrow to make bash behave more like the C-shell in this regard: "\e[A": history-search-backward "\e[B": history-search-forward (This was really the only thing I disliked abo
670.
▲
by
sltkr
15y ago
I sympathize to some extend, but I think it is unfair to characterize "Google, Twitter and Facebook" as only advertising companies. A lot of the engineering effort at these companies goes into improving their core services, too. If you are
671.
▲
by
sltkr
15y ago
> You can simulate random access by using a stride great enough to avoid the cache. I think a good pattern is to add a large number co-prime to 2^32 on every iteration. That guarantees you actually hit all cache entries, while picking a
672.
▲
by
sltkr
15y ago
Great job; that was definitely a point of comparison that was missing from the original article. I'm surprised this actually is faster, but if it is only by 10%, then I still think the memory-less algorithm is preferable. On modern-day syst
673.
▲
by
sltkr
15y ago
BitTorrent does have many legal uses (it is used to distribute World of Warcract, Linux distros, independent music/movies, et cetera) but there are also many private trackers designed specifically for the illegal distribution of copyrighted
674.
▲
by
sltkr
15y ago
My favourite example of this is my iPod nano: it has a built-in speaker only to make a clicking sound when I use the (non-mechanical) clickwheel to browse through menus. The speaker is used for nothing else. If I have my earbuds in I can't
675.
▲
by
sltkr
15y ago
Uhm, I was with you until: > Some folks do have serious issues about their gender identity, but I think Google+ is a better place without them. Come again? You can't socialize if you are unsure about your gender? What the hell...? I bet
676.
▲
by
sltkr
15y ago
I hate to be that guy that links to xkcd comics, but here it goes anyway: http://xkcd.com/743/ Google is under no obligation to allow 13-year-olds on their service anyway, and I'm sure the age limit comes from legal restrictions, not just
677.
▲
by
sltkr
15y ago
Too bad his last match is so long ago that his solutions aren't available any more. I would have liked to see what kind of code he wrote!
678.
▲
by
sltkr
15y ago
I think the most fun way to get into TopCoder is to just start competing in live events, which (for the algorithm matches) usually occur three times a month (though some might be at impractical times). You'll probably screw up the first few
679.
▲
by
sltkr
15y ago
Lucky then, that nobody told you you could just type 'i' too. ;-)
680.
▲
by
sltkr
15y ago
Note that there are at least two people involved (excluding Mt Gox): a hacker that managed to gain access to a large amount of bitcoins and started selling them all, and a person that profited of the low price by placing a large buy order a
681.
▲
by
sltkr
15y ago
Fun fact about Dijkstra's handwriting: one winter when he was ice skating (which is a popular Dutch pastime when it freezes) he fell and broke his right hand. You'd think that would stop him from writing his manuscripts manually for a whil
682.
▲
by
sltkr
15y ago
Dijkstra's point is that you should start counting at 0, so if you want to generate the first five ordinals, you would write [0:5) which yields {0,1,2,3,4} as expected.
683.
▲
by
sltkr
15y ago
Yes! One of my favourite ewd's. (The ones about proof strategies are good too, and those where he laments the quality of the Dutch higher educational system, though I imagine these are less interesting to computer scientists outside the Net
684.
▲
by
sltkr
15y ago
Scrolling and selecting with the mouse I can see, but do you actually copy and paste with the mouse too (i.e. through the context menu, or with the copy/paste buttons on the toolbar, if there is one)? When I work with the mouse, I use my ri