Book Review: Great Robots of History by Tim Major


Pygmalion kissing a statue who has been brought to life.

This is a lovely and twisted anthology of stories. Each presents a "historic" robot - be they an automaton, a puppet given life by the gods, or a resurrected villager. Some, like the Mechanical Turk, are historical fact but others are invented just for us to gawk at. The stories are mostly dark and brooding, with the macabre turn. They're fun - but the constant theme is "what if I, an…

Continue reading →

Gadget Review: Benfei Laptop Riser with Built-In USB-C Dock


A metal laptop stand with USB ports built in.

The good folks at Benfei have sent me a laptop stand to review. You know the drill, a few pieces of metal, some hinges, and rubber feet. But this stand holds a little more interest for the gadget lover - a built in USB-C hub! What do you get for your £35? USB-C power input - capable of taking 100W of PowerDelivery. A built-in USB-C cable to connect to your laptop. HDMI port which supports 4k …

Continue reading →

FobCam '25 - All my MFA tokens on one page


A padlock engraved into a circuit board.

Some ideas are timeless. Back in 2004, an anonymous genius set up "FobCam". Tired of having to carry around an RSA SecurID token everywhere, our hero simply left the fob at home with an early webcam pointing at it. And then left the page open for all to see. Security expert Bruce Schneier approved of this trade-off between security and usability - saying what we're all thinking: Here’s a guy w…

Continue reading →

Book Review: How to Live Safely in a Science Fictional Universe by Charles Yu


Book cover with multi-colour ray guns.

There's a fine line between genius and madness - and I'm not sure where this book lies. It dives right in with some splendid technobabble: The base model TM-31 runs on state-of-the-art chronodiegetical technology: a six-cylinder grammar drive built on a quad-core physics engine, which features an applied temporalinguistics architecture allowing for free-form navigation within a rendered…

Continue reading →

Book Review: Fabulosa! - The Story of Polari, Britain's Secret Gay Language by Paul Baker


Book cover in shocking pink, featuring men in drag dressed as a queen, a nun, and bicycle leathers.

This is a gem of a book. The language of Polari was used extensively in the gay community during the early 20th century. A way to speak without being overheard, using a mixture of rhyming slang, underworld cant, and loanwords. While Julian and his friend Sandy dominate the story - being one of the only mass-broadcast records of the language - the book dives in to the hidden history of its…

Continue reading →

An opinionated HTML Serializer for PHP 8.4


The HTML5 Logo.

A few days ago, I wrote a shitty pretty-printer for PHP 8.4's new Dom\HTMLDocument class. I've since re-written it to be faster and more stylistically correct. It turns this: <html lang="en-GB"><head><title id="something">Test</title></head><body><h1 class="top upper">Testing</h1><main><p>Some <em>HTML</em> and an <img src="example.png" alt="Alternate Text"></p>Text not in an…

Continue reading →

Pretty Print HTML using PHP 8.4's new HTML DOM


The PHP logo.

Those whom the gods would send mad, they first teach recursion. PHP 8.4 introduces a new Dom\HTMLDocument class it is a modern HTML5 replacement for the ageing XHTML based DOMDocument. You can read more about how it works - the short version is that it reads and correctly sanitises HTML and turns it into a nested object. Hurrah! The one thing it doesn't do is pretty-printing. When you call…

Continue reading →

Gadget Review: Windfall Energy Saving Plug (Beta)


A small smartplug with a glowing red power symbol.

The good folks at Windfall Energy have sent me one of their interesting new plugs to beta test. OK, an Internet connected smart plug. What's so interesting about that? Our Windfall Plug turns on at the optimal times in the middle of the night to charge and power your devices with green energy. Ah! Now that is interesting. The proposition is brilliantly simple: Connect the smart-plug to…

Continue reading →

How to prevent Payment Pointer fraud


Web Monetization The Web Monetization API allows websites to automatically and passively receive payments from Web Monetization-enabled visitors.

There's a new Web Standard in town! Meet WebMonetization - it aims to be a low effort way to help users passively pay website owners. The pitch is simple. A website owner places a single new line in their HTML's <head> - something like this: <link rel="monetization" href="https://wallet.example.com/edent" /> That address is a "Payment Pointer". As a user browses the web, their browser takes …

Continue reading →

Book Review: The Wicked of the Earth by A. D. Bergin


Book cover with a city in the background.

My friend Andrew has written a cracking novel. The English Civil Wars have left a fragile and changing world. The scarred and weary inhabitants of Newcastle Upon Tyne enlist a Scottish "Pricker" to rid themselves of the witches who shamelessly defy god. Many are accused, and many hang despite their protestations. The town settles into an uneasy peace. And then, from London, rides a man…

Continue reading →

Book Review: The Little Book of Ikigai - The secret Japanese way to live a happy and long life by Ken Mogi


Two koi carp swim on a book cover.

Can a Japanese mindset help you find fulfilment in life? Based on this book - the answer is "no". The Little Book of Ikigai is full of trite and unconvincing snippets of half-baked wisdom. It is stuffed with a slurry of low-grade Orientalism which I would have expected from a book written a hundred years ago. I honestly can't work out what the purpose of the book is. Part of it is travelogue…

Continue reading →

Create a Table of Contents based on HTML Heading Elements


The PHP logo.

Some of my blog posts are long. They have lots of HTML headings like <h2> and <h3>. Say, wouldn't it be super-awesome to have something magically generate a Table of Contents? I've built a utility which runs server-side using PHP. Give it some HTML and it will construct a Table of Contents. Let's dive in! Table of ContentsBackgroundHeading ExampleWhat is the purpose of a table of…

Continue reading →