Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Monthly Archives: June 2012

Zeros in JavaScript

Tables showing the results of the ‘==’, ‘===’, ‘+’, and ‘*’ operators on various data types in JavaScript, including special ones like ‘undefined’, ‘null’, ‘NaN’, and ‘Infinity’.

This might help you debug a head-scratcher one day.

Zeros in JavaScript

xip.io: wildcard DNS for everyone

xip.io is a special DNS service which can allow you to test virtual hosts from other devices on your internal network (say, iPads, phones, etc). The use-case might be if you have multiple vhosts on a single IP address (e.g., 10.0.0.1), so just plugging the IP into your URL bar won’t get you the correct vhost.

This would allow you to test the vhosts from devices that don’t have hosts files, without having to set up your own internal DNS server.

xip.io: wildcard DNS for everyone