Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dfbrown
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
31.
▲
by
dfbrown
12y ago
With tuples in C++11 you can have multiple return values and ignore ones you don't want: http://ideone.com/3eHOld
32.
▲
by
dfbrown
12y ago
This is no worse than anything else in the standard library. Writing generic template code is always ugly but once written you don't have to deal with the ugliness to use the resulting functions. It's not worth the complexity in m
33.
▲
by
dfbrown
13y ago
If my math is right, that makes it $6.77 per month for a full time f1-micro instance. That's comparable to DigitalOcean's prices. ( 0.013 dollars/hour * 24 hours/day * 31 days/month ) * 0.70 discount = 6.77
34.
▲
by
dfbrown
13y ago
I've found this seems to make the game significantly easier. If you get a block stuck in a bad spot it will eventually get merged fixing the problem.
35.
▲
by
dfbrown
13y ago
I can't think of any reason you would back up to AWS if you already have an offsite backup solution, unless you don't think your offsite backup location is reliable enough.
36.
▲
by
dfbrown
13y ago
with PNG it's 59kb: https://upload.wikimedia.org/wikipedia/commons/c/c4/All_24-b...
37.
▲
by
dfbrown
13y ago
It's not, you can use whatever power you want.
38.
▲
by
dfbrown
13y ago
I don't think the spinning should have any effect on the speed. Only the vertical movement would create eddy currents. It could be he does it to keep the magnet stable as it falls (like spin on a football).
39.
▲
by
dfbrown
13y ago
It's not really spam if your job is to represent the people contacting you with their concerns.
40.
▲
by
dfbrown
13y ago
This seems more like an argument that SO's "meritocracy" isn't perfect, not that it's poorly implemented. Having two accounts is an edge case.
41.
▲
by
dfbrown
13y ago
I do think a project website is a great complement to an academic paper for collecting all relevant information into one place (author info, supplementary material, citation information). I know most Computer Graphics authors have web pages
42.
▲
by
dfbrown
13y ago
There are many such algorithms, and it is an active area of research especially in the area of soft body physics (cloth, human tissue, etc) where precise collision handling is very important. Most rigid body simulations use discrete collisi
43.
▲
by
dfbrown
13y ago
> You can imagine that it would be a terrible experience if it literally sent your keypress to the server, registered it in a game & then sent back the screens display pixels. I believe that's exactly how Onlive works.
44.
▲
by
dfbrown
13y ago
gcc does this as well (though it also supports #pragma once). I believe the current convention is to prefer #ifndef include guards as it is more portable and most compilers can detect and avoid re-including files with them.
45.
▲
by
dfbrown
13y ago
Not to diminish Cosmo's skills or his excellent explanations, but the tricks used in these speed runs were discovered and improved upon over many years by many different members of the speed running community who all deserve some credi
46.
▲
by
dfbrown
13y ago
That 323 million lines of code for Debian 5.0 also counts all the packages included with debian. The debian codebase by itself is only 68 million lines of code: http://www.ohloh.net/p/debian
47.
▲
by
dfbrown
13y ago
Is there much weather at 65000 ft?
48.
▲
by
dfbrown
13y ago
I think v4 has a very different message from v1-3. 1-3 seem to be saying value your readers time by writing as succinctly as possible whereas v4 says a shorter message is more powerful. This may sometimes be the case, but often it is not
49.
▲
by
dfbrown
13y ago
I think they mean in comparison to Windows. They have previously reported getting better performance using OpenGL on Linux than DirectX on Windows[1] 1: http://blogs.valvesoftware.com/linux/faster-zombies/
50.
▲
by
dfbrown
13y ago
They may not drive the traffic of Stackoverflow, but from what I've seen most of them are great sources of information for their particular topics. There are several other Stackexchanges I personally have found quite useful (ubuntu, te
51.
▲
by
dfbrown
13y ago
One minor nitpick is they use snipmate, but Ultisnips[1] is much better and actively maintained 1: https://github.com/SirVer/ultisnips
52.
▲
by
dfbrown
13y ago
I used to use comma, but then I discovered comma's default mapping is actually quite useful[1] so I switched back to the default '\' 1: http://vimdoc.sourceforge.net/htmldoc/motion.html# ,
53.
▲
by
dfbrown
13y ago
This reminded me of a recent paper on automatically designing animated mechanical characters. Some of these movements could be used to incorporate different kinds of animations into these characters. http://www.youtube.com/w
54.
▲
by
dfbrown
13y ago
You could do #define foreach(x, xs) \ for (var _xs = xs, *x = iter_start(_xs); x = iter_next(_xs); x != iter_end(_xs)) Because var is just void* and anything you can iterate over will also be a void*.
55.
▲
by
dfbrown
13y ago
:!program executes an external program, but you can also open a shell with :sh
56.
▲
by
dfbrown
13y ago
"Try-hard" is the most confusing derogatory term I've ever come across.
57.
▲
by
dfbrown
13y ago
I stopped using linode in mid February and I have not received an email. They also still appear to have my credit card attached to my account (and I had to change my password when I logged in).
58.
▲
by
dfbrown
14y ago
I'm not sure why they wrote this in the first place. Eigen's MatrixBase already has a squaredNorm function: http://eigen.tuxfamily.org/dox/classEigen_1_1MatrixBase.html... edit: I see, they address this in the article: In this specific ca
59.
▲
by
dfbrown
14y ago
It would be nice if you resized your editor window to be as small as possible and cropped the video to that size. As it is the area of the video I actually care about is very small with lots of empty space around it.
60.
▲
by
dfbrown
14y ago
One thing I miss form clang_complete is its snippet support for functions [0]. With clang_complete you could set it up so when you autocompleted a function, it would generate a temporary snippet in your favourite snippet engine (ultisnips,
More ›