↓ Skip to main content

Technology

Advent of Code 2025

·2 mins
I completed Advent of Code again this year, using Kotlin once more. I’d failed to read the full details on the first day and had to have it pointed out to me that there would only be 12 days this year. There was a massive sigh of relief, not least from the rest of my family!
MapRun Score Optimal Route Planning

MapRun Score Optimal Route Planning

·4 mins
I decided to test out Copilot on another MapRun-related challenge: planning the optimal route for a score event. Our Summer League events are, more often than not, planned using OpenOrienteeringMap. This uses OpenStreetMap data for the base map. The format is usually a 45-minute urban score event, using MapRun’s ScoreNxx scoring system. The aim was to take the KML file that describes an event, and determine the best route to take to maximise the score. As a constraint, I would specify the maximum distance that the route should cover (i.e., how fast the competitor was expected to run).
MapRun League Results Generator

MapRun League Results Generator

·2 mins
Southampton Orienteering Club has what is now an annual MapRun league. A few years ago, I wrote a tool to scrape the results for each event, allocate points (only your first attempt counts, and it must be in a specific time window), and publish some HTML results. For example, those from this year (which I might just happen to have won!). For some reason lost in the mists of time, it was written in Node, but I decided that I would rewrite it in Golang before sharing it with the world on GitHub.

Stopping the Git CredentialHelperSelector from popping up

·1 min
Recently, I was plagued by the “CredentialHelperSelector” dialogue popping up multiple times when attempting to pull from a remote Git repository. This was despite repeatedly selecting the option to remember my selection to use manager and various attempts to explicitly set the config helper via the command line.

Updating the symbol set and magentic north with OpenOrienteering Mapper

·4 mins
I spend a couple of hours a week hanging around the leisure centre at Fleming Park while Emma swims. For the past month or so, I’ve been using that time to update the orienteering map of the area, ready for the SOC Summer Series event there in August. The fairways of the old golf course are becoming increasingly overgrown, aided by the planting of lots of new trees. I therefore wanted to update the map to the latest sprint specification, ISSprOM 2019-2, so that I could make use of the ‘rough open with scattered bushes’ symbol. Although it hasn’t shifted much since 2016, I thought it was also time to update magnetic north. The following directions for OpenOrienteering Mapper (OOM) are based on those I received from the club’s mapping officer, Mark Light.
Scratching at Work

Scratching at Work

·2 mins
Not satisfied with a four-day Bank Holiday week, I was back in work today for a Scratch Day organised by the inimitable Dale Lane, supported by an all-star cast of IBMers, past and present. The day got off to an ’exciting’ start with Duncan and I cycling there along Hursley Road. Emma joined us by car, just as the day got going, hot foot from her swimming lesson.
Half Term Action

Half Term Action

·2 mins
Although we had no particular plans, I had the whole of the February half term off work. We went over to Wales for the first few days. I had a lovely long run in the Forest of Dean on Sunday whilst the others went around the sculpture trail. Christine drew the short straw as she got to run back to Monmouth just as the Arctic conditions arrived.

Multi-Stage Docker Build

Docker 17.05 enabled the ability to perform multiple build stages in a single Dockerfile, copying files between them. This brings to regular Docker build a capability that I’ve previously talked about in the context of Rocker, and something that’s of particular use in a compiled language like Java. Let’s see what it would look like in the context of the WebSphere Liberty ferret sample.

ES2015 in Production

·1 min
Bård Hovde gave tonight’s Developer South Coast presentation on the subject of “ES2015 in Production” (or “ES6 in Production” if you must). You can find the slides here with the source for the presentation over on Bård’s GitHub account. He did a great job of making the subject matter entertaining. Beyond being able to say goodbye to all of that boilerplate, my main takeaway was the use of Babel for transpiling ES2015 into ES5, so no excuses about waiting for browser compatibility! The Babel site also has a nice overview of ECMAScript 2015 features.

Countdown Coding

·2 mins
I went along to the Southampton Code Dojo on Thursday evening. I think it’s safe to say I was amongst the older attendees (most appeared to be undergrads or postgrads at the Uni although there was one guy who was sufficiently young to need his Mum to accompany him!). A pre-event poll had settled on Java as the language (Python had been outlawed as too popular and I guess Java was the lowest common denominator after that). Following pizza and beer there was another poll to select the challenge: the Countdown numbers game, before being numbered off in to groups. There were only three people in mine with one claiming no coding experience (despite being in the Computer Science department!). We spent far too long looking for an intelligent solution before doing the sums and deciding that brute force would suffice. My brain wasn’t entirely in gear (perhaps due to a day spent with the children?) and we didn’t manage to complete our solution before being timed out. We were in good company though with only one out of the six groups completing the exercise. It has reminded me that coding can actually be challenging in its own right (the challenge at work typically coming from legacy code, integration with other products, or simply politics).

Meetup Happy

·3 mins
I’ve gone a bit meetup happy in the past two weeks. Last week I headed along to the Pivotal offices in London for the first London Cloud Foundry User Group meetup organised by one-time colleague Duncan Winn. First to speaker was another ex-Hursley employee, Glyn Normington. He gave a fascinating presentation in to the work that he and his colleagues are doing to replace the backend of Cloud Foundry’s Warden container with libcontainer (now split out from Docker). More on this over on Glyn’s blog.

Synchronised training

·2 mins
For the past couple of years, uploading my running training has been a bit of a faff. I like to use a desktop app (SportTracks) so that, whatever the changing fads online, I still have all of my data in one place. (It goes back to 2006 when I first got my Forerunner 305. Some day I may even important my old Polar Training Software data.) The desktop app also has some interesting plugins. One of these I used to push my training to dailymile for comparison with a few friends and colleagues and for the widget on this site. However, I’m also partial to a bit of segment stealing on Strava. Sadly no simple SportTracks plugin for Strava so that was a separate upload.
Casio AWG100 review

Casio AWG100 review

·4 mins
Yes - I can be bought! For the price of a watch, WatchCo.com have bought themselves a scattering of links in this review. I was given a budget of $200 which still left me with a huge selection of watches to choose from on their website. My main criteria for a watch is that it tells the time, and the right time at that. Consequently, I found myself looking at what the site calls automatic watches (solar or kinetic powered) and atomic watches (radio controlled - not nuclear powered!). The overlap between those two categories is unfortunately rather small (particularly once you’ve taken out the watches that are incorrectly labelled as atomic). I eventually settled on the G-Shock AWG100 from the range of Casio watches. Sadly well under my budget at $130!

Windows disk confusion

·2 mins
I wasn’t best pleased this morning to find that I couldn’t log on to my laptop. I’d get as far as the logon prompt at which point any key press would cause everything to freeze. The only other noticeable effect was that the backdrop was missing. Safe mode made no difference but I could boot happily off a Linux Live CD. Needless to say a call to IBM’s European Service Center (which most certainly isn’t in Europe) was suitably frustrating. Why, given my serial number, they can’t work out where I am and what my machine, is I’ll never know. I guess I should just be grateful that at least there was an option not to have any music whilst on hold!

Amateur IT support

·1 min
Christine’s laptop has been slowly grinding to a halt over the past few weeks and, as the university support services were proposing to take it away, I thought I’d take a look. I was initially sidetracked by an issue with a SQL Server 2005 Express update which Windows Update was repeatedly trying to install. In the end, it turned out she had the same issue with the IDE Channel transfer mode that I’ve experienced before. The Windows Update was just one of the many disk intensive operations where things got really bad. Just for good measure I uninstalled some apps I’d put on her machine and ran CCleaner and JKDefrag. Hopefully Christine will come home from work in a better mood tomorrow!
Current Cost

Current Cost

·2 mins
I decided to make a belated entry to the Current Cost meter craze (in Hursley) when some were being sold off at half price before Christmas. (For those not in the know, the device measure electricity usage for the entire home with the important addition of a serial output port.) I started off with Dale Lane’s GUI app at which point I was disappointed to realise that the historical data held by the device was only averaged.

No danger of CrackBerry addiction

·1 min
As part of IBM UK’s transition from O2 to Vodafone we’re all being issued with new mobiles. I’m a bit behind the curve as most people were moved over whilst I was in Norway. Today, the SIM card for my new BlackBerry Pearl has finally been activated. Sadly, like most employees, IBM hasn’t given me a data service. This is considered a “personal option” and I could get it for £16pm (providing my department agreed to match that approximately to cover the server-side costs and support which is highly unlikely in the current climate). I largely understand that decision - I already have a data card for my laptop if I need to read e-mails on the move. What I don’t understand is the decision to give me a BlackBerry. It even says on the box “Vodafone Email Solutions”!

Heart still beating

·1 min
My Garmin has failed to read my heart rate for a few weeks now (probably longer as I actually rarely look at the trace once downloaded). Rather than replace the battery again, I thought I’d use the spare strap that Garmin sent me last time they replaced my watch. Although I knew the transmission between strap and watch was coded, what I hadn’t realised was that the pairing was a one off process and the watch thereafter remembered which strap it should be talking to. Fortunately it’s a simple matter (once you’ve consulted the manual) to select Settings > General > Accessories from the main menu and then, for the heart monitor, select Restart Scan. And voila, I once again have a heart beat. I’ve even added the heart rate back on to the main display of my watch so maybe I’ll actually start looking at it!

XP upgrade install under VMware

·2 mins
I’m currently in the process of moving everything from my loan Thinkpad to my shiny new T61p. I thought that I’d try and make a cleaner divide between work related and personal applications by putting the latter in a VMware image. Having just disposed of an old desktop machine at home, I had a spare Windows XP Pro licence to use for the purpose. Unfortunately, I have an upgrade CD and when it came to the point in the installation where it asked for the old Windows media it refused to recognise the Windows 98 CD I had. I started to get suspicious when a Windows NT CD also didn’t work. After searching around the forums I bit I eventually discovered that the installer doesn’t realise that you’ve swapped over the CD. The secret is to take the original CD out, hit Enter, and then when it prompts you again, put the new CD in.

Disappearing remote desktop connection bar

·1 min
Whilst still awaiting my replacement laptop I’ve been working in a VMware image on a spare blade server accessed via Remote Desktop. The idea being that when my laptop finally turns up I can just continue using the image there. For some reason the connection bar at the top of my remote desktop session keeps vanishing. I don’t mean that it’s just hidden - no amount of mouse wiggling can make it reappear. Fortunately, with the aid of a list of keyboard shortcuts, I can now toggle between full screen and windowed modes and hence escape a session.