Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

Illegal Hashes

· 8 comments · 500 words · Viewed ~7,969 times


A padlock engraved into a circuit board.

To understand this blog post, you need to know two things. There exists a class of numbers which are illegal in some jurisdictions. For example, a number may be copyrighted content, a decryption key, or other text considered illegal. There exists a class of algorithms which will take any arbitrary data and produce a fixed length text from it. This process is known as "hashing". These algorithms …

A small bug in Canada's eTA emails

· 2 comments · 300 words · Viewed ~239 times


Screenshot of an email showing a broken image. Alt text is visible.

There's no way that I could find to report this to the Canadian Government - and I didn't fancy trying to raise a bug report with the first Mountie I met - so here's a blog post. As part of Canada's Electronic Travel Authorisation system, prospective visitors to the country get sent emails. The email I received had a broken image right at the top: At least there's some alt text! Gmail on…

Starting Up Vs Staying On

· 300 words · Viewed ~278 times


A tiny lego Storm Trooper eats a chocolate coin.

A few years ago, I had a chance to work with an exciting tech startup. They had just become 5 years old. The day I went for an interview, about a dozen of the founding members announced they were quitting. Including the CEO. Was this a good sign or a bad sign? Over beers, my friends were all adamant that this was the end. The sky was falling and the little-startup-that-could was crashing and…

Is it cheating to use spell check?

· 10 comments · 600 words · Viewed ~1,711 times


Clippy - an anthropomorphic paperclip is asking if I want help writing a letter.

When I was a kid, our school had one computer per classroom. Luxury! Teachers had long-since given up on the state of my handwriting. So I got special dispensation to write up some of my work on whatever primitive word processor was installed on the PC. With one caveat: no spell check! Which, even as a ten year old, I thought was reasonable. Learning to spell is an adult life skill. So using …

The BBC's 15 Web Principles - 15 years later

· 13 comments · 1,500 words · Viewed ~3,241 times


Powerpoint slide announcing BBC 2.0.

Back in 2007 - an eternity in web years - the BBC published a document showing their 15 Web Principles. I thought I'd take a look at how they stack up today. And investigate whether the BBC is still living up to them. Here are the slides if you want to play along at home: BBC2.0: The BBC’s 15 Web Principles from hvs 1. Build Web Products that meet user needs This is still good advice! …

Zotero citations in Markdown - publishing to ePub or PDF

· 2 comments · 500 words · Viewed ~586 times


Zotero logo.

Mostly notes to myself - I hope you find them useful. So, you want to write your dissertation or thesis in Markdown. But how do you manage all your citations? Install Zotero Install the Better BibTex plugin Restart Zotero. The BBT plugin will launch a configuration screen - use it to set your preferences Install VS Code (or VS Codium) Install the VS Code Zotero plugin Now, when you want to…

What is the user need for cryptocurrency?

· 1,150 words · Viewed ~327 times


A tiny lego Storm Trooper eats a chocolate coin.

I was at an event a few months ago, where someone from the Bank of England was talking about understanding the user needs for cryptocurrency. One of the things people do when trying to create a new product or service is to write little user stories to illustrate the problem they're solving. You've probably seen this sort of thing: As a… busy parent, I want… a push alert from my washing mac…

Someone turned my game into a comic!

· 1 comment · 200 words


A rendering of a comic with the text in English.

Hello readers! Way back in 2015, I wrote a "Choose Your Own Adventure" game using Twitter. I think it is fair to say that it is the best computer game I've ever published. And probably the only time I'll ever be reviewed in The Guardian and Kotaku! Anyway, a year ago I was contacted by an art student. They wanted to adapt my game into a comic for their art class. How could I refuse? This…

Experiments with domestic load shedding in the UK

· 1,000 words · Viewed ~328 times


Screenshot of an email. It says "Hi Terence, You'll earn 1800 OctoPoints – that's £2.25 worth – for every unit of electricity you cut down between 5:00 PM and 6:00 PM on 15th November. Opt in now to save power and earn rewards in this Session. You'll go into a draw to win an extra 400,000 OctoPoints – that's £500 worth! – just for opting in. Important: you need to opt in before the Session starts if you want to earn rewards."

Electricity demand varies throughout the day. When demand is higher, electricity prices go up. Most UK consumers are insulated from this variability - we pay a fixed price per kWh no matter what the actual wholesale cost. But it doesn't need to be this way. Exposing users to the immense variability in pricing is probably too dangerous - as seen in Texas recently. Imagine if your electricity…

All the books I read this year

· 300 words


Montage of about 42 book covers.

My year starts in mid-November (my blog, my rules). Last year, I read an astonishing 85 books! That is too many books. This year I was doing lots of reading for my MSc - which was mostly academic papers. I also didn't have any long relaxing breaks. But, nevertheless, I'm happy to have read 42 books. Not bad! A few stats. The gender split was roughly 50:50. Some of the books were…

2022 - a year in review

· 9 comments · 1,000 words · Viewed ~214 times


A selfie of Terence reflected in a spherical mirror.

It's my birthday! Therefore it marks the end of another year of me hurtling around Earth's yellow sun. So, as is customary, here's my year in review. (more…) …

Getting Started with Mastodon's Conversations API

· 1 comment · 1,550 words · Viewed ~1,249 times


A threaded conversation. You can see the order in which people have replied to each other - and what posts they are referencing.

The social network service "Mastodon" allows people to publish posts. People can reply to those posts. Other people can reply to those replies - and so on. What does that look like in the API? Here's a quick guide to the concepts you need to know - and some code to help you visualise conversations. When you scroll through the website, you normally see a list of replies. It looks like this: …