An adult gap year?


Selfie of me and Liz. I am being strangled by Darth Vader.

I've got about another 10 months left at my current job and after that... I don't know what I'll do. I've already moved down to 4 days a week in an effort to glide down to FIRE. Do I really want to go back up to 5 days? Could I find somewhere that would be happy with me doing 3 days? Can I be arsed to constantly hustle for ad-hoc client work? Can't I just stop? What would happen if I took a gap year? A sabbatical? A full year of not working? I'm lucky enough to have enough savings for this …

Continue reading →

Book Review: Red Side Story - Jasper Fforde


Book cover - a red land with a spoon in the foreground.

Fourteen years ago, I read Fforde's Shades of Grey and my life hasn't been quite the same since. It was a magical tale, almost totally devoid of exposition, building in an fantasy world like no other. Fans have been clamouring for a sequel ever since. The first few chapters of the sequel do an excellent job of exposition - but this isn't the sort of book you can pick up without having recently read the original. I got a dozen pages into Red Side Story before I realised that I remembered…

Continue reading →

Accents and eBooks


The phrase "Swords of Qadisiyyah." But the combining macron over the letter "a" has been rendered as a separate dash.

By and large, the English language doesn't use diacritical marks. Even our loanwords are stripped of them; we drink in a cafe rather than the more pretentious café. This has a consequence for HTML and, by extension, eBooks. As a quick primer, modern computing gives us two main ways of displaying a letter with an accent. The first is simple - encode every single accented letter as a separate "pre-composed" character. So è (U+00E8), é (U+00E0), ê (U+00EA, and ë (U+00EB) are all stored as diff…

Continue reading →

1,000 edits on OpenStreetMap


Screenshot of the OSM interface.

Today was quite the accidental milestone! I've edited OpenStreetMap over a thousand times! For those who don't know, OSM (OpenStreetMap) is like the Wikipedia of maps. Anyone can go in and edit the map. This isn't a corporate-controlled space where your local knowledge is irrelevant compared to the desire for profit. You can literally go and correct any mistakes that you find, add recently built roads, remove abandoned buildings, and provide useful local information. Editing the full map…

Continue reading →

When does Doctor Who meet historical figures who are alive today?


Video call showing Patrick Moore.

In a recent episode of Doctor Who, we see a lovely sequence where The Doctor has a nice chat with Paul McCartney of The Beatles. Great larks! The Doctor often meets real people - Dickens, Shakespeare, Rosa Parks. But, crucially, all those people are dead by the time the episode airs. Macca is unusual because we could, theoretically, call him and ask what it was like meeting The Doctor. So, how many times has The Doctor met a historical figure who is alive in the viewers' time? Not many, by…

Continue reading →

Book Review: Fallen Idols - Alex von Tunzelmann


Book cover showing the disembodied head of Lenin's statue lying on its side.

"History is not erased when statues are pulled down. It is made." Some people celebrated when Saddam's statue was toppled in Iraq. Yet those same voices condemn the felling of Coulson, Rhodes, and a dozen other statues. Why? Alex von Tunzelmann has a knack for getting to the heart of history in an accessible manner. There isn't a hefty amount of ponderous academic theory to wade through - just well researched stories mixed with contemporary accounts. Statues don't have human rights. But our…

Continue reading →

One MegaWattHour of Battery Power!


Large box attached to the wall. A white metal case with blue polka dots covers it. There is a small black and white screen in the middle.

Less than a year ago, in August 2023, we installed a 4.8kWh Solar Battery at a cost of £2,900. Whenever I talk about the upfront capital costs of solar power, people rightly want to know what the payback period is. Well, after less than 10 months, the battery has given us 1MWh. To put that in to context, the average UK household uses about 3MWh per year. So (again, very roughly) over a third of our electricity use this year has come from the battery. But where does the battery get its …

Continue reading →

Untappd to Mastodon - Updated!


A bottle of beer outside on a sunny day.

A few years ago, I wrote some code to post Untappd check-ins to Mastodon. I've recently updated it to also post a photo of the beer you're enjoying. First up, you'll need a file called config.py to hold all your API keys: instance = "https://mastodon.social" access_token = "…" write_access_token = "…" untappd_client_id = "…" untappd_client_secret = "…" Then a file called untappd2mastodon.py to do the job of grabbing your …

Continue reading →

It was twenty years ago today


Heavily pixellated image saying "I Power Blogger".

I wrote my first public blog post on 2004-05-11. I immediately followed it up with a brief review of my BlackBerry. I kept up the blogging for a few months, then it trickled off. I preferred posting on Usenet and other primitive forms of social media. But, by 2007, I was back to blogging on my own site again, and I never really stopped. This blog fluctuates between being a diary, an excuse to rant, and technical writing. It's my site and I can do whatever I want with it. That's rather…

Continue reading →

link rel="alternate" type="text/plain"


The Logo for WordPress.

Hot on the heels of yesterday's post, I've now made all of this blog available in text-only mode. Simply append .txt to the URl of any page and you'll get back the contents in plain UTF-8 text. No formatting, no images (although you can see the alt text), no nothing! Front page https://shkspr.mobi/blog/.txt This blog post https://shkspr.mobi/blog/2024/05/link-relalternate-typetext-plain/.txt A tag https://shkspr.mobi/blog/tag/solar.txt This was slightly tricky to get right! While there…

Continue reading →

A completely plaintext WordPress Theme


Screenshot showing my blog rendered just as text.

This is a silly idea. But it works. I saw Dan Q wondering about plaintext WordPress themes - so I made one. This is what this blog looks like using it: The Code You only need two files. An index.php and a style.css. The CSS file can be empty, but it needs to exist - otherwise WordPress won't let you activate the theme. The index file displays the requested post, or front page, in plain text. It isn't the most sophisticated code I've ever written! header('Content-Type: text/plain; …

Continue reading →

Book Review: The Doors of Opportunity


Did you know that a Suffragette invented the UK's electrical plug? Dame Caroline Haslett was an electrical engineer who foresaw the way that electricity could be used to remove domestic drudgery from women's lives. There is a slim biography of her, written by her sister, which is sadly out of print. Luckily, the book is available for free on Archive.org. It is a curious book. It dwells on her faith as much as her technical prowess. Her waistline is the subject of wry amusement. There's…

Continue reading →