Mark Hansen

Mark Hansen

I'm a Software Engineering Manager working on Google Maps in Sydney, Australia. I write about software {engineering, management, profiling}, data visualisation, and transport.

iPhone as Numberpad

I made a simple HTML5 iPhone app that displays a numeric keypad [http://github.com/mhansen/ipod-numeric-keypad]. My laptop doesn't have a numberpad, and I needed one for some of Blender

Fog @ Waikato University

Hamilton gets heavy fog at night time. It plays with the lights at the university, turning downward-facing lamps into bright cones of light, turning spherical lights into ambient glowing orange, and turning groups

Ice vs Water

We were dancing at a club, it was busy, and I was overheating. So I asked for some water - but what they gave me was 90% ice, topped off with water. It

Optional Parameters in Javascript

2020 Update I wrote this back in 2010, and JavaScript has evolved a lot since. Since ES2015 (ES6) [https://www.ecma-international.org/ecma-262/6.0/#sec-function-definitions], it's far simpler to define