Unifi Access Point (AP) disconnected

A Unifi Access Point in all its glory!This morning I woke up to alerts from the unifi cloudkey telling me one of my wifi access points was disconnected. This was odd as this Access Point (AP) had been up and running fine ever since it had been configured. I…

Building a PiSight

I'd always admired Apple's original iSight camera and whilst I didn't own one in their heyday, I remember thinking back then how nice they looked compared to other webcams built around the same time. It looks purposeful and professional. The iSight compared to a quickcam which was readily available at…

Vertically and horizontally responsive circle with text

Recently in building out a dashboard to show the number of github issues for a given search, I wanted to show a circle containing a count. When we think about responsiveness in web pages we mostly think about making things that respond to a horizonal constraint. However, for a dashboard,…

Using the latest version of Firefox in Travis CI

A quick tip. If you're running karma tests via Firefox on Travis CI by default the Firefox version used is quite old (31 at time of writing). To always use the latest (current) version you can add this snippet to your .travis.yml. addons: firefox: latest This will keep your…

Removing leading whitespace in ES6 template strings

Note: this post remains for posterity but rather than using the template tags described here I'd suggest taking a look at common-tags. In some recent code at work we're using fairly large strings for error descriptions. JavaScript has always made it hard to deal with long strings, especially when you…

OSX: Inkscape not working with multiple monitors

I recently noticed that under OSX Inkscape behaves strangely with multiple monitors. I thought I'd broken the installation as when launching Inkscape it opened and then the window immediately disappears. Fortunately there's a bug that's been filed here: XQuartz on OS X 10.9 and later: limited support for multi-monitor…