New Job

Hey all. I work at flickr now.

I’m just a simple hyperchicken from a backwood asteroid…

…but I don’t think ORM is very useful. I would say that for hacking together a very simple crud interface in rails/django/whatever its really nice. But in the end, if your app has a database you ought to be writing your own queries.

UPDATE: This is a great answer to this post.

Run-time Code Generation

I was speaking with my colleague Matt about refactoring Javascript. One of the most common “smells” in code, or at least in my code, is duplication. A really common one for me to see several event handlers or callback functions that all do the same thing, but in ever so slightly different cases. This came up most recently when I was hacking together a routing module for a node.js project.
Read More »

Timepicker on the YUI blog

I have a post up on the YUI blog. Check it out.

Automatically Erase Data from your iPhone

(This is in response to the rash of iphone thefts)

People like to steal iphones. Its a fact of life. For the most part they just want to sell the phone without your sim card or your data. However, if you are like me you keep a lot of stuff on your phone…a contact list of course, but more importantly you keep your email on it. Also of course a thief could use it to call their best friend far away for free. To prevent this phones have always had the feature of a passcode, which you should be using already on your iphone. At some point in the recent past apple added an even more useful feature: you can set it so that the phone erases itself after 10 incorrect passcode entries.

To enable this setting follow these steps:
Read More »