HNHacker News
TopNewBestAskShowJobs

Dav3xor

205 karma · joined November 10, 2009

submissionscomments
Dav3xor··on Elevator Algorithms
http://www.reddit.com/r/IAmA/comments/b1bpp/i_program_elevat...
Dav3xor··on Going Fullscreen with Canvas
Crap, I want to use this in my web game, but my users are already used to using esc for other stuff.
Dav3xor··on Multiuser WebGL/Three.js particle system painting
Three.js is awesome, I just wish it had better documentation.

I threw this together in a couple hours:

http://www.davesgalaxy.com/site_media/test.html

Dav3xor··on Canvas vs SVG performance on iPad
Yes, exactly. I have a little web game that renders in SVG, and it puts up ~8000 shapes on the screen, updates at about 5hz on most desktop machines. This is ok, since it's basically a panning map that doesn't get panned much. If I switched to Canvas, it'd run quite quickly, but I'd lose all the wins from using the DOM.
Dav3xor··on The Best "Thank You for Your Order" Email I Have Ever Received
Haha, this is extremely funny, since that email was written by Derek Sivers; then owner of CD Baby, and an incredibly popular contributer around here.
Dav3xor··on Mozilla Labs Game Gallery
Mine has a single click demo -- http://www.davesgalaxy.com

Oh, and it requires some form of sign in since it has a persistent world.

Dav3xor··on While writing YAQL I accidentally discovered Lisp
Forth, in a way, out of left field.
Dav3xor··on Google Beatbox
The Amiga speech device had a nice phoneme grammar you could use to make it say all sorts of odd things.
Dav3xor··on Ask HN: Favorite pointer tricks in C?
You do have to be careful, it can be annoying on ARM chips certainly. If you're using GCC, __attribute__ ((packed)) fixes alignment issues.

This method is so much less error prone than pulling stuff out a byte at a time. Plus you can use unions for network addresses, etc.

It's a simplified example to show what you can do.

Dav3xor··on Ask HN: Favorite pointer tricks in C?
pointers to structs for things like network protocols...

struct packet_header { uint from_addr; uint to_addr; ushort flags; ... }

packet *p;

read(socket, somebuf, sizeof(packet));

p = &somebuf;

printf("from = %u to = %u flags = %u\n",p->from_addr, p->to_addr, p->flags);

Dav3xor··on Kinect reverse-engineered; open driver available
I've reverse engineered some protocols -- haven't done a USB one yet, but I'm sure the principals are similar. Grab some data, look at it (usually with a good hex editor -- last time I used ghex2), look for patterns. Usually there's some sort of packet structure, or maybe some data that looks like something in ascii -- ghex2 shows you what every 2 bytes or 4 bytes are if they were signed/unsigned ints, floats etc. Usually something will jump out at you.

It's a fun game usually.

Dav3xor··on The cheapest synthesizer you can ever build
Or with Schmitt Triggers -- I built a little synth around a schematic from Music From Outer Space -- makes awesome Forbidden Planet type noises.
Dav3xor··on "Calling oneself a C Programmer is like saying you're a Hammer Carpenter"
I do occasionally make my own bread, and I grew up on a farm. So? I'm not an expert in either, but I can dabble. Why keep yourself from learning something new?
Dav3xor··on "Calling oneself a C Programmer is like saying you're a Hammer Carpenter"
I'm an embedded programmer, and I had to write an XML parser for work. I've also written operating system code, 3d graphics, whatever. And ECMAScript too. Having such a narrow view limits were you can go, and what you can do. I specialize in a few things, but there's no programming task I'm truly afraid of, with at least being given a little time to read some documentation. "Specialization is for Insects."

I know so many people who've just done basic CRUD business programming. Smart people, really smart people, but they limit themselves; don't try to do anything deep and interesting, and it's sad.

Dav3xor··on How to make wooden gears
You're mostly paying for labor, and they generally charge for an hour -- so get as much done at once as you can.

You can also use either process with Aluminum sheet. both have their advantages.

Dav3xor··on How to make wooden gears
Also, the requisite mention of the PIPE ORGAN he built.

http://www.sentex.net/~mwandel/organ/organ.html

Dav3xor··on Ask HN: Where would you be most excited to work?
So is Scaled, and who wouldn't want to work with Burt Rutan?
Dav3xor··on Ask HN: Best Developer Linux Laptop?
Another nice thing about the X20x, and Thinkpads in general, is the keyboard. It's well laid out, the key action is decent, it has a handy light that actually illuminates the keys in the dark. Also, there's no optical drive, so you get a fast machine that's also seriously small -- you can pick it up by pinching the top of the screen.

Also, We had a Tandy Coco when I was a kid, I've had enough of chiclet keyboards. I'll be happy when Apple moves away from that.

Dav3xor··on Ask HN: Cover letter techniques for software development positions.
this is what I came here to say. Exactly this.
Dav3xor··on Ask HN: Are mobile phones on a plane taking off or landing really dangerous?
Could be a magnetometer too -- they are very touchy. Although you'd think it would be far away from the passengers.
Dav3xor··on Ask HN: Four months since launch: how are you finding the iPad?
Pilots love using them for mapping. There are a couple of very nice apps for it too. I'd bet you could make really good money if you can ferret out more niche markets that it's perfect for.
Dav3xor··on Ask HN: What's your favorite TED Talk?
"And then there's this thing! ... but I don't want to talk about that today..."
Dav3xor··on The Lost State of Jefferson
Mmmmm, Hopworks Urban Brewery...

Their brew master is my neighbour, super nice guy.

Dav3xor··on Are you one of the 10% of programmers who can write a binary search?
Yeah, the duplicate key business came in because of other code hanging off the side of the search (a rather hairy algorithm that was searching for the next key with a different letter in a position -- given KLXX, increment the 2nd position until there's a key matching that criteria -- KLXX --> KMAA, or if there are no KM's, KN, KO, etc....
Dav3xor··on Are you one of the 10% of programmers who can write a binary search?
I've written one. It was for an embedded system.

A good, well tested binary search is a pain in the ass to write...

1. Your sorted array MUST use exactly the same ordering as the search is expecting. We built and sorted the array on a PC, and ran the search on the device, so this was not guaranteed.

2. There can be NO DUPLICATE KEYS.. Duplicate keys will eventually send the search down a blind alley and off into hyperspace. Also devilishly difficult to find if the array has a lot of items, and you don't know what the problem is.

3. The above 2 problems can sneak in during production with new data.

Dav3xor··on Ask HN: Who's hiring?
Contact info? I've been working in embedded mapping software for years, and Amsterdam sounds like fun.
Dav3xor··on ARM programming, where do I start?
Depends on what you want to do. Getting a beagleboard would be a no brainer to start out.

http://www.amazon.com/ARM-System-Developers-Guide-Architectu... is a good book, you might want to buy a copy.

Some handy things to know about ARM.. logical operations can be added on to ALU instructions for free -- lots of speed gains there...

If you have never done any embedded programming; expect things to take longer to write, and frustration levels can be pretty ugly.

If you get an ARM chip that doesn't have floating point, and you need to do something mathematically intensive, look into fixed point math. Make everything you can into a table (most ARM chips have enough memory so that you can trade space for speed)

Don't give up -- embedded requires tenacity.

Oh, and Codesourcery provides good pre-compiled toolchains, but you have to dig around on their website a bit to find them.

Dav3xor··on Emiller's Balls-Out Guide to Nginx Module Development
Most ARM's will be significantly slower on non-aligned data.

Un^H^Hfortunately I'm not at work to test. :)

Dav3xor··on Ask HN: Cool Things You've Done (Brag Thread)
Shamelessly copying that warehouse idea is very tempting.
Dav3xor··on IE9 to support SVG and some CSS3
Fair enough, but I don't mind making lemonade with my low bandwidth graphics and mapping engine that doesn't require tile reloads on zoom. And it will work on the iPhone/iPad. IE support in a couple years is just icing on the cake.
← PreviousPage 2 of 3Next →