Parameterized JUnit4 Unit Tests in Kotlin

Posted on Saturday, 20th February 2016

(Jump to the TL;DR of how to create a Parameterized JUnit4 test in Kotlin)

This weekend I’ve been learning a little Kotlin — the (relatively) new JVM language from JetBrains.

Once I’d worked my through the “Koans”, I decided to try a simple Code Kata. I chose the Roman Numerals Kata for this exercise. Whilst doing this, I wanted to use a parameterised unit test, and had to figure out how to do that in Kotlin…

Read more →

Decoding a Siemens RCR10/433 Thermostat Signal to Control a Boiler from a Raspberry Pi

Posted on Monday, 23rd November 2015

This is a quick post in response to a question related to my boiler control Github project:

I intend to eventually perform a more comprehensive write-up of this whole project.


I had been looking to start tinkering with my Raspberry Pi and do some home automation for a while. We have a Siemens RCR10/433 wireless thermostat programmer that controls our boiler and I wondered if it would be possible to hack the radio signal and take control of the boiler myself. Thus, I could create my own smart heating system inspired by products such as Nest and Hive.

This post roughly outlines the process I used to sniff the signals sent between the thermostat and the receiver relay that controls the physical call for heat signal to the boiler.

Read more →

Glentress – Mountain Biking

Posted on Saturday, 31st May 2014


Easter weekend saw Liam and I head up to the Tweed Valley in Scotland for a couple of days mountain biking. Our base was the campsite at Glentress Forest Park, where we camped with my tent and “the van”. It was to turn out to be a fantastically enjoyable weekend of trail-riding in glorious sunshine (the locals informed us we were very lucky to have such weather!).

Read more →

Dovestone Edge in the snow

Posted on Monday, 28th January 2013

Dovestone Edge Panorama

Dovestone and Yeoman Hey reservoirs taken from Dovestone Edge in the Peak District.

Last April, a friend and I went for a walk around Dovestone Edge in the Peak District and were greeted by a blanket of snow on some of the hills.

Below is the view from the opposite side of the reservoir basin, from Alderman’s Brow. A blanket of fog was just lifting as we arrived at this rocky outcrop, revealing the view.

Alderman's Brow

Read more →

Rewind: Snow

Posted on Saturday, 19th January 2013

Sunset over a snow-covered Scout Moor, near Ramsbottom.

Britain has seen its first covering of snow over the last few days, along with all the overreaction, complaining, and infrastructure meltdown that comes with even the lightest spinkling of water crystals this little island receives. Our nation seems ill-equipped to deal with the rare and irregular arrival of the white stuff, and handles its effects comedically poorly compared to some of our Scandinavian neighbours and Canadian cousins, who are well experienced in dealing with winter-long coatings.

Regardless, I love the snow. I’m always delighted by the transformation it makes to the landscape.

Read more →

Jim Marshall Tribute

Posted on Saturday, 7th April 2012

News broke that Jim Marshall, founder of Marshall Amplification, passed away this week. His iconic brand of guitar amplifiers have been used by many of the most famous guitarists around the world, and they have inspired many a teenager.

I had half an hour to spare before heading to the pub on Thursday night, so I knocked together this small tribute.

Queen Elizabeth II Opens MediaCity:UK

Posted on Sunday, 25th March 2012

Friday saw Queen Elizabeth II and the Duke of Edinburgh visit MediaCity:UK in Salford to officially open it, as well as BBC North. After a tour of the studio facilities and a visit to BBC North’s Quay House to see some of Research & Development’s current projects, she also presided over the start of the MediaCity:UK 2012 Sport Relief Mile.

Read more →

Adding a Pinterest button (and others) to a WordPress Blog

Posted on Wednesday, 21st March 2012

Pinterest seems to have taken off hugely recently and has become the social network du jour. I had a dabble with it when I first got an invite and “pinned” some of my own photos there and some other links I found interesting. However, it never really captivated me and I have largely ignored it since.

While I, and many of my peers, may not have taken to this new way to share, others have. Lots of others have. It seems to have become very popular amongst the female demographic in particular.

I already had added support to share links to my blog posts via Twitter, Facebook, and Google+, so I decided to add a Pinterest “Pin-it” button too.

It’s a relatively simple thing to do.

Read more →

Rewind: Amsterdam

Posted on Monday, 19th March 2012

I got the chance to go to Amsterdam for a couple of weeks back at the end of October last year. I’d been a few years before for a weekend, but I wasn’t really into photography back then and had other distractions. This time, the trip was for business, to do some work on-site with a supplier, and I had a spare weekend to get out and take some photographs of the city.

Read more →

Rewind: Return to Galloway — The Dungeon Hills

Posted on Saturday, 17th March 2012

I keep saying it, but I’ve been terrible over the last year or so at keeping up to date with processing and posting my photos, and writing about them. Finally, I’ve finished sorting out the photos from my August 2011 return trip to Galloway Forest Park — prompted by planning a trip to the Isle of Arran this Easter.

We’d actually originally intended to go to the Isle of Arran for the August Bank Holiday. However, due to a lack of planning, we decided at the last minute to return to Galloway, with the challenge of walking the Dungeon Hills range — from near Loch Doon, to Loch Dee — in a day. We’d planned to do this on our previous trip to Galloway Forest Park, but due to weather and tardiness, had abandoned the idea.

I took my Canon EOS 450D with EF-S 17-55 f/2.8 IS lens and my Manfrotto tripod (which didn’t get used!).

Read more →