In a previous post, I described a coding challenge sent to me by my colleague. Here is the challenge again: There is a tennis match between two players denoted 1, and 2. You are given a sequence of 1s and 2s whereby each number denotes a point won by player 1 or player 2 (e.g. […]
Category: fun
Seles: Tennis coding challenge
A colleague sent me a coding challenge. This is a short post to describe how I tackled it. Edit: a follow-up post is here. This is the challenge: There is a tennis match between two players denoted 1, and 2. You are given a sequence of 1s and 2s whereby each number denotes a point […]
Under The Same Name: Journal titles and band names
Some journals sound like they should be bands. Whereas some journal titles ARE in fact the same as band names. I wondered… how many journal titles are also band names. Let’s find out! The journals cited in PubMed could be downloaded as a text file from here. This list includes every MEDLINE journal – even […]
Play The Game: Retropie in a Retroflag GPi case
The Retropie project is a wonderful way to play retro games on a Raspberry Pi (see previous post). A number of handheld units are available to make a convincing retro gaming experience. One of these is the Retroflag GPi case, modelled on Nintendo’s Game Boy. It’s possible to order one of these pre-built and even […]
Blue Monday: sampling the sky
I have a long-running project Raspberry Pi project to make time-lapse movies of a countryside view (see previous posts). It’s been running for over two years and the results are great. The camera takes images every ten minutes and by assembling movies with different time intervals, you can see seasons change, trees growing or the […]
You Better Run: recovering from injury
Reading about someone else’s recovery-after-injury story can be a bit dull. At least that was my conclusion after pressing delete on my story a moment ago. Having spared you the details, the summary is: I got injured. It hurt. It took me a year to recover because I didn’t tackle the recovery properly. Measuring recovery […]
Target: monitoring a running goal in R
Many running races and events have been cancelled or disrupted due to the pandemic. To fill the void, I’ve been taking on Garmin’s “Challenges”. In Garmin Connect, you can accept a challenge set by Garmin (I think users can challenge each other too). Completion of these challenges gives the user points, which I’ve become somewhat […]
Crackerblocks: computing solutions for IQ Block game
The IQ Block game is a puzzle where the player must fit eight shapes into a square space. The challenge is to find as many ways as possible to do it. The box says there are more than 40 solutions! So how many are there? I wrote a solver to crack the IQ Block game. […]
I’ve Gotta Get A Message To You: automated emails from Raspberry Pi zero
I have a long-running project to make timelapse movies using a Raspberry Pi Zero with camera module. I’m capturing a countryside view and have images for two years. The uptime on the Pi is seriously impressive, but nonetheless I wanted to upgrade the Pi so that it would send me updates of how it’s going, […]
Cluster One: comparing running performance on similar courses
One of several features that Strava put behind a paywall was the ability to compare performance on similar courses. I miss this comparison tool and wondered how hard it would be to code my own. This post is a walkthrough of how I approached the problem. The code is available here. It uses the trackeR […]