Hi! I'm Nathan Hoad

I like to draw things and write code

How to: Install CoffeeScript and Node.js

There seems to be a lot of buzz surrounding Node.js and CoffeeScript recently so let's see how easy it is to get installed.

Read more...


Ruby: Multiple assignment

A handy feature of Ruby is that it lets you assign multiple variables at once. While doing this all the time is not encouraged, where it makes the code more readable/understandable it is certainly something to try.

Read more...


Gem Dependencies: What does '~>' mean?

I came across this the other day and had a bit of trouble finding out what it meant. Luckily, I managed to get an explanation from Bo Jeanes. It turns out that '~>' means 'up to the next major version'.

Read more...


★ Counter-Strike: Source released for Mac

It's also on sale for a short time :-D


How to: Clean up old gems

If you have been using Ruby for a while you may have quite a large collection of gems. And, chances are, you have a number of different versions of each gem. There is a simple way to clean out any old versions of gems.

Read more...


★ What the Hex?

A fun little 'guess the colour' game using hexadecimal notation.


JavaScript: When Type != Type

After attending the JavaScript Meetup last Monday I thought it might be interesting to have a look at a few examples of JavaScript's sometimes unexpected behaviour. I've covered a few things before, like the difference between substr and substring and the problem with parseInt() so here are some other interesting discoveries.

Read more...


The Brisbane JavaScript Meetup

The first Brisbane JavaScript Meetup will be held tomorrow (the 7th of June, 2010). I was asked by the organiser, Nigel to do up a banner for the group. After a bit of back-and-forth with Nigel, this is what we ended up with:

Read more...


★ Apple: HTML5 and Web Standards

Standards aren’t add-ons to the web. They are the web.

No blue legos in sight.


How to: Return JSON from Sinatra

It's so easy to output JSON from Sinatra it will take longer to read this post than to actually do it :-P

Read more...