Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jharsman
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
31.
▲
by
jharsman
16y ago
When I read really great code, I often think "This is all there is?". It seems like there is too little code to do all the things that it does. Or what is there seems trivial, so simple that it couldn't have required any thought or effort t
32.
▲
by
jharsman
16y ago
You might want to google for "separating axis test", it is a very simple technique that allows you to detect collisions between any two convex polygons. It can also handle continous collisions detection for translation (your moving grenades
33.
▲
by
jharsman
16y ago
I'm not surprised it doesn't make much of a difference with HTML since the markup contains so much ASCII. But 25 vs 18 kB is almost 40%. That might not be insignificant depending on how much text you're storing. But it's a nitpick really, I
34.
▲
by
jharsman
16y ago
If you're representing text which contains lots of characters that aren't in ASCII, like say Chinese, UTF-8 will consume much more storage than necessary. There are many languages where non-ASCII characters are extremely common. He misses a
35.
▲
by
jharsman
16y ago
This seems very US-centric. In Sweden there is a union for military officers for example. And there are plenty of civilian employees working for the armed forces that can join unions as much as they like and presumably cause quite a bit of
36.
▲
Better contour rendering - a neat trick from Valve
(ghostinthecode.posterous.com)
2 points
by
jharsman
16y ago
|
0 comments
37.
▲
by
jharsman
16y ago
A Japanese keyboard layout ( http://en.wikipedia.org/wiki/Keyboard_layout#Japanese ) has a shorter spacebar and some extra keys instead. You might be able to remap them to extra modifier keys with suitable software. The Kinesis Advantage (
38.
▲
by
jharsman
16y ago
"Soon, computers will be fast." - Billy Zelsnack
39.
▲
by
jharsman
16y ago
I answered no, but http://www.silverlightversion.com/ claims I have 4.0 installed. Which is strange, beacause I contantly see little "Install Silverlight to view this video" buttons when browsing Microsoft sites. Maybe most Silverlight co
40.
▲
by
jharsman
16y ago
If you want something that guesses indentation style automatically, you could try guess-style.el: http://nschum.de/src/emacs/guess-style/
41.
▲
by
jharsman
16y ago
Having the labels above the input field can make localization easier since it allows the label text to grow or shrink without affecting layout.
42.
▲
by
jharsman
16y ago
A number of years ago there was an incident in Sweden where a tiny crack was discovered in a container that had been used to transport nuclear waste from one of Sweden's reactors. This caused a lot of media attention and some politicians ma
43.
▲
by
jharsman
16y ago
Fitt's law says that the edge of screen is easier to target, that is not the same thing as being closer. For example, if you have a very large monitor, or two monitors, you might have to move your perceptual focus far to focus on the menu b
44.
▲
by
jharsman
17y ago
For waterways, just simulate rain and erosion. Let's say you model your terrain as a height field. 1. Add rain in random locations 2. Have the rain absorb some of the soil from the square it starts in. 3. Let the water flow in the direction
45.
▲
by
jharsman
17y ago
If you're doing graphics or physics, calculating the eigen vector for the eigen value 1 gives you the axis of rotation for a rotation matrix. That's a pretty straight forward application that's also obvious from the definition of eigen valu