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…