Terence Eden. He has a beard and is smiling.

Terence Eden’s Blog

Theme Switcher:

O2 UK's Weird MSISDN Lookup API

· 7 comments · 250 words · Viewed ~244 times


Sorry, we don’t recognise this number. Please try again.

It's always fun keeping your network inspector tab open. While looking around the O2 UK website, I found this page all about eSIMs. For some reason, it wants to know the user's phone number. I put in a random number, and it refused to let me in. Putting in a genuine O2 number let me through. So what is it doing to validate numbers? It is making an API call to this URl: …

Updates to ActivityPub in a single PHP file

· 3 comments · 450 words · Viewed ~727 times


Logo for ActivityPub.

A few weeks ago, I built an ActivityPub Server in a Single PHP File. It's a proof of concept showing how easy it is to turn a website into a full-featured Fediverse participant. After a bunch of feedback and testing, I've added a some features to make it slightly more useful. A single PHP file - 45KB of no-library goodness. Just add your details, upload, and done. No databases. Everything…

You can't photocopy this blogpost (abusing EURion in CSS)

· 8 comments · 300 words · Viewed ~420 times


The HTML5 Logo.

Do you know about the EURion constellation? It is a pattern which is embedded into some modern banknotes and has a curious property. Most modern photocopiers will, if they detect the pattern, refuse to make a copy. Try it for yourself - stick a €20 note into your nearest Xerox machine and try to print out some illicit currency - see what happens! It goes a little further Some printers will r…

Movie Review: M*A*S*H

· 6 comments · 350 words


Poster for MASH featuring a terrifying hybrid of a human hand giving a peace sign with a pair of female legs descending from it.

After watching the First few series of the TV show "M*A*S*H", I thought I'd give the original movie a go. It isn't very good. Even if you ignore the rampant racism - and there is a lot of racism - you still have to content with the brutal misogyny - and it is toe-curlingly grim. Then you get the homophobia which, may have been of its time, but the sexual assault isn't. And if you can get past…

Gig Review: The Leo Green Orchestra perform The Rolling Stones at the London Palladium

· 250 words


Poster for the gig.

For the first time in its illustrious 114 year history, the historic London Palladium will host a monthly orchestral residency beginning in February 2024, which will see iconic artists’ music celebrated. This was an entertaining, but curious, gig. It isn't a tribute act - no sequinned sound-alikes strutting the stage here - it's a a full rock-n-roll orchestra fronted by three dazzlingly t…

FILE/DINK/DWZ/3+1 - a personal financial quadrumvirate

· 5 comments · 1,200 words · Viewed ~504 times


A complex line graph.

Brits hate talking about money. But this benefits no-one. This is my situation - it's probably different to yours. I'm acutely aware I'm in a better financial position than most. This isn't financial advice - but I'd sure appreciate anyone's thoughts. I've recently moved down to a 4-day-a-week job. Taking a 20% hit to my salary felt like a moment of madness. But it was part of a (somewhat)…

A simple(ish) guide to verifying HTTP Message Signatures in PHP

· 2 comments · 1,200 words · Viewed ~366 times


Screenshot of JSON. As described in text.

Mastodon makes heavy use of HTTP Message Signatures. They're a newish almost-standard which allows a server to verify that a request made to it came from the person who sent it. This is a quick example to show how to verify these signatures using PHP. I don't claim that it covers every use-case, and it is no-doubt missing some weird edge cases. But it successfully verifies messages sent by…

HTTP Signature Infinite Loop?

· 10 comments · 550 words


A padlock engraved into a circuit board.

I'm trying to get my head round HTTP Signatures as they're used extensively in the Fediverse. Conceptually, they're relatively straightforward. You send me a normal HTTP request. For example, you want to POST something to https://example.com/data You send me these headers: POST /data Host: example.com Date: Sat, 24 Feb 2024 14:43:48 GMT Accept-Encoding: gzip Digest:…

Review: Matter-enabled Energy Monitoring Smart Plugs - Meross 315

· 4 comments · 500 words · Viewed ~1,090 times


Two plugs side by side.

Matter is coming to fix all your smarthome woes! A single IoT standard, working across multiple radio protocols, bringing together different products from many different manufacturers. And… it works! Mostly These are the Meross 315 Smart Plugs. They are small(ish), cheap(ish), and easy(ish) to use. As soon as I plugged them in, before even configuring them, my home went crazy. I got a p…

Review: An NFC reader/writer with USB-C - ACR1252U-MF

· 2 comments · 400 words · Viewed ~782 times


Box with a drawing of the NFC reader.

I needed to read and write NFC cards on Linux. I only buy USB-C peripherals now, so I found the brilliantly named "ACR1252U-MF" which appears to be the only USB-C reader on the market. Total cost was about £35 on eBay. It's a cheap and light plastic box with a short USB cord. When you plug it in, there's a flashing light which can't be disabled. When it is powered up, or it detects and NFC chip, …

Giving the finger to MFA - a review of the Z1 Encrypter Ring from Cybernetic

· 5 comments · 2,300 words · Viewed ~4,240 times


A plain black ring. What secrets does it contain within?

I have mixed feelings about Multi-Factor Authentication. I get why it is necessary to rely on something which isn't a password but - let's be honest here - it is a pain juggling between SMS, TOTP apps, proprietary apps, and magic links. I'm also not a fan of PassKeys. It feels weird to me that my computer is the password. I get the theoretical way it works - but it rubs me up the wrong way. So, …

Book Review: We Are Bellingcat - Eliot Higgins

· 600 words


Book cover with an inverted question mark.

The problem with autobiographies is that every anecdote ends with "needless to say, I had the last laugh!" This corporate-autobiography is no different - as it details the rise and impact of Bellingcat - a team of investigators and journalists. I am in awe of Bellingcat - and have seen them give talks on a couple of occasions. This book is a thrilling account of how they perform "open source"…