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,…

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…

Python: testing beyond exceptions

Recently working on some code I was doing some basic tests that checked for an exception being raised. The tests looked like this: def test_user_identification_is_valid_option(self): with self.assertRaises(ValueError): example_seller(products=[ 'id': 'hai', 'description': 'a description', 'recurrence': None, 'user_identification': True, }]) def test_…