XKCD's "Now" Coded in JavaScript

I love XKCD’s web comics, they always give you a new way of looking at something and a laugh to boot. Yesterday at work I came accross the Now comic. It shows you at a glance what countries are in business hours, or outside them. The image is rendered on the XKCD server and updated every hour when you refresh your page.

Read More

Setup Mass Dynamic Virtual Hosts on Nginx

Apache has a handy feature that allows you to dynamically serve a domain without having to create a virtualhost for each time, called Dynamic Virtual Hosts. Nginx doesn’t have this feature built in, but it does gives you the tools you need to to set it up in no time. Here is a guide to how I got it working on my server after I transitioned my site from Apache to Nginx.

Read More

Märket Island and it's Unusual Border

At work I did a course on improving my presentation skills. It was a two half-day course and on the second day we had to give a short (3 minute) presentation on a topic of our choice. I had just recently read a Wikipedia article about Märket Island and I wanted to share the story with the group. I’ve taken the content of my talk and written it up here. My slides are attached below if you want to take a look.

Read More

PWM Exponential LED Fading on Arduino (or other platforms)

For a project I am working on I needed to dim a LED strip light using the PWM (pulse width modulated) outputs on an Arduino. The most straightforward way to do this would have been to linearly vary the output frequency. Shown below in an Arduino sketch:

Read More

Experiences with Buying Cheap Arduinos and shields on eBay

Recently I’ve started getting interested in electronics and in particular Arduino. Ardunios are a microcontroller boards that you can programme to perform actions. The board I am interested in is the entry level Ardunio Uno. This board has 14 digital inputs/outputs and 6 analogue inputs. The Arduino can be expanded with Shields, these are addon boards that stack on top of the Arduino to offer additional functionality (like ethernet, storage, motors etc.)

Read More