EDIT: see http://gist.github.com/7263

(tip via HubbuH)