Category Archives: Nerd

Nerdy stuff

Into the third dimension

My loyal long-term readers (by whom I mean Anton) would know my technological aesthetic bent strongly favour the 1980s. Seeing as the third dimension was not discovered until 1992, I have thus far had little inclination to bother with it. But things have changed: now that the 90s are suitably retro I feel it’s finally [...]

Pix Up, Look Sharp: a pixel resizer for Pixelmator

Pixelmator is a fantastic image editor for Mac, but it lacks the ability to stretch an image via a “nearest-neighbor, big pixels please” method. I know, right?! Anyhoo… I made a Quartz Composer called plugin Pix Up, Look Sharp that does it for you, allowing you to set the width and height scaling amount. To [...]

More is Zmore

Ludum Darer JellyCakes has been live streaming his playing-and-rating efforts of entries in Ludum Dare 26. He’s an excellent reviewer: testing each game very thoroughly and fairly. And he’s hilarious. After giving my entry a good run through its paces he concluded with the above video. Might not fit the competition’s theme of “minimalism”, but [...]

ZMORE: a game in 48 hours

Here’s my entry for Ludum Dare #26, on the theme Minimalism.

DHTML Lemmings: an awesome hack

That image is the punchline to the question I awoke with in the middle of last night: “How the FLIPPIN’ ‘ECK did that guy do destructible terrain for DHTML Lemmings… in 2004?!!!”. I lay there for some time as thoughts raced through my mind: There was no canvas element in 2004. No WebGL. In fact, [...]

Short function syntax is here!

It’s happened. It’s finally happened. Short function syntax is here! At least, if you’re running the nightly version of Firefox (which I am now, due to my promise to adopt the first browser to introduce short function syntax). Short function syntax replaces the lengthy function keyword with a symbol =>, and the almost-as-lengthy return keyword [...]

#Random Hex colour

Want a random colour between white and black? “#” + (Math.random() * 0xffffff | 0).toString(16) That is all. [Update: after I posted this I thought... i bet this has been done a zillion times already. It was, and by Paul Irish in 2009 no less. Additionally - it doesn't work. The best looking one there [...]

Scala date range

Google it: “Scala date range”. The results are… unhelpful. The top result (a Stack Overflow link, obviously) hints at a workable solution. Here’s my implementation of it: import org.joda.time.{DateTime, Period} def dateRange(from: DateTime, to: DateTime, step: Period): Iterator[DateTime] = Iterator.iterate(from)(_.plus(step)).takeWhile(!_.isAfter(to)) To use it, provide a “from” date, a “to” date and a joda time period: [...]

Live editing for game development

Here’s a small demo on how I’ve been using Chrome’s “live editing” features to speed up my development workflow. Chrome let’s you modify currently loaded files on the fly – so you can tweak settings and test code in real time. Don’t forget to keep an eye on the development of my up-and-coming waterski odyssey: [...]