Some HTML and an |
Continue reading
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:
Some HTML and an |
Continue reading
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 sanitis … | Continue reading
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 … | Continue reading
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 - something like this: That address is a "Payment Pointer". As ... | Continue reading
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 … | Continue reading
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 boo … | Continue reading
Some of my blog posts are long. They have lots of HTML headings like and . 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 Conten … | Continue reading
I have an ancient Roomba. A non-sentient robot vacuum cleaner which only speaks in monophonic beeps. At least, that's what I thought. A few days ago my little cybernetic helper suddenly started speaking! 🔊 💾 Download this audio file. Not exactly a Shakespearean so … | Continue reading
Five years ago today, we installed solar panels on our house in London. Solar panels are the ultimate in "boring technology". They sit on the roof and generate electricity whenever the sun shines. That's it. This morning, I took a reading from our generation meter: 19MWh of elect … | Continue reading
The fallout from Meta's extensive use of pirated eBooks continues. Recent court filings appear to show the company grappling with the legality of training their AI on stolen data. Is it legal? Will it undermine their lobbying efforts? Will it lead to more regulation? Will they be … | Continue reading
Depending on which side of the English Channel / La Manche you sit on, photography was invented either by Englishman Henry Fox Talbot in 1835 or Frenchman Louis Daguerre in 1839. By 1851, Englishman Sir David Brewster and Frenchman Jules Duboscq had perfected stereophotography. I … | Continue reading
Summer is coming. The best time to buy air-con is before it gets blazing hot. So, off to the Mighty Internet to see if I can find a unit which I can attach to my burgeoning smarthome setup. I settled on the SereneLife 3-in-1 Portable Air Conditioning Unit. It's a small(ish) tower … | Continue reading
As Cory Doctorow once said "Any time that someone puts a lock on something that belongs to you but won't give you the key, that lock's not there for you." But here's the thing with the LCP DRM scheme; they do give you the key! As I've written about previously, LCP mostly relies o … | Continue reading
There's a new(ish) DRM scheme in town! LCP is Readium's "Licensed Content Protection". At the risk of sounding like an utter corporate stooge, I think it is a relatively inoffensive and technically interesting DRM scheme. Primarily because, once you've downloaded your DRM-infecte … | Continue reading
My name is confusing. I don't mean that people constantly misspell it, but that no-one seems what I'm called. Let me explain. British parents have this weird habit of giving their children long formal names which are routinely shortened to a diminutive version. Alfred becomes Alf … | Continue reading
It is always nice to meet someone in a pub who says "I've written my first book!" - so, naturally, I picked up Katie's novel as my next read. I'm glad that I did as it's a cracking crime story. It starts slowly, with a brilliantly observed satire of office life. The gossip, banal … | Continue reading
I've been thinking about fun little artistic things to do with QR codes. What if each individual pixel were a QR code? There's two fundamental problems with that idea. Firstly, a QR code needs whitespace around it in order to be scanned properly. So I focussed on the top left pos … | Continue reading
404 Ink's "Inklings" series are short books with high ideals. This is a whirlwind tour through the ramifications of the rapid digitalisation of our lives. It provides a review of recent literature and draws some interesting conclusions. It is a modern and feminist take on Seeing … | Continue reading
What if, with your dying breath, you sent your lover back in time in order to change the fate of a ruined Earth? What if he sent a message back to his upinger self to help seduce you? What if the Government intercepted a mysterious orb full of treasures from another dimension? Wh … | Continue reading
In many ways it is refreshing that Ben Elton hasn't changed his act at all over the last 44 years. Go back to any YouTube clip of his 1980s stand-up and you'll hear the same rhythm, vocal tics, and emphasis as he does today. Even his politics haven't shifted (much) with identical … | Continue reading
Experimental and unconventional theatre is rare in the prime spots of the West End. There's a sea of jukebox musicals, film adaptations, standard Shakespeare, and Worthy Plays. Theatreland runs on bums-on-seats - doesn't matter what the critics say as long and punters keep paying … | Continue reading
Malcolm Croft (under the pseudonym Catherine Nappington) has produced a compendium of cat illustrations from ancient manuscripts. It's then peppered with a variety of regurgitated facts and captions of a sub-Facebook levels of humour. There are a few hundred pages of illustration … | Continue reading
Because I'm a massive nerd, I actually try to read specification documents. As I've ranted ad nauseam about the current TOTP spec being irresponsibly obsolete. The three major implementations of the spec - Google, Apple, and Yubico - all subtly disagree on how it should be implem … | Continue reading
The Web Crypto API is, thankfully, nothing to do with scammy cryptocurrencies. Instead, it provides access to powerful cryptographic features which were previously only available in 3rd party tools. So, is it possible to build a TOTP code generator without using any external JS l … | Continue reading
Last year, I reviewed a Four-Colour eInk Name Badge - the ManyTag HSN371. The hardware itself is perfectly fine, but the Android app isn't great. It is complicated, crash-prone, and not available in the app-store. After some back-and-forth with the manufacturer, they agreed to se … | Continue reading
This is three excellent plays in one. First, a ghost story. Second, a tribute act. Thirdly, a meditation on the nature of comedy. In many ways, it is the complement to Inside Number 9 playing next door. Cooper, Morecambe, and Monkhouse were dead to begin with. Perhaps you grew up … | Continue reading
WordPress does not respect an admin's preferred date format. Here's how the admin list of posts looks to me: I don't want it to look like that. I want it in RFC3339 format. I know what you're thinking, just change the default date display - but that only seems to work in some are … | Continue reading
My friend Manuel has sent me his latest book to review - and it is a corker. The best thing about this book is that it doesn't waste any time trying to convince you that Accessibility Is Good™. You're a professional web developer; you know that. Instead, it gets straight down to … | Continue reading
If you use Multi-Factor Authentication, you'll be well used to scanning in QR codes which allow you to share a secret code with a website. These are known as Time-based One Time Passwords (TOTP). As I've moaned about before, TOTP has never been properly standardised. It's a mish- … | Continue reading
Take a look at these two QR codes. Scan them if you like, I promise there's nothing dodgy in them. Left is upper-case HTTPS://EDENT.TEL/ and right is lower-case https://edent.tel/ You can clearly see that the one on the left is a "smaller" QR as it has fewer bits of data in it. B … | Continue reading
A friend mentioned that they were going to a Proust book club where they'd be discussing Swann's Way, the first volume of the masterpiece. "Well," I thought, "That sounds like a fun challenge!" It was not. I picked up the Standard eBooks version translated by C. K. Scott Moncrief … | Continue reading
I went into this as a cynic and came out a grinning maniac. Look, it is basically "Stomp" but for kids. It's a join-in pantomime where four babbling fools play with junk in a recycling centre to make music. Oh, sure, you could analyse it as being a blend of Commedia dell'arte and … | Continue reading
The purpose of table manners is to stop us killing each other. That's the rather provocative assertion in Margaret Visser's excellent deconstruction of why we have such elaborate and infuriating rituals around eating. It starts, naturally enough, with a chapter on human sacrifice … | Continue reading
This post will show you how to programmatically get the cheapest possible price on eBooks from Kobo. Background Amazon have decided to stop letting customers download their purchased eBooks onto their computers. That means I can't strip the DRM and read on my non-Amazon eReader. … | Continue reading
This is spoiler-free review. In one episode of Inside Number Nine, two old comedians are bickering. In a moment of understated savagery one says to the other "That's a cheap laugh, Len." Len replies with a mischievous twinkle in his eye, "Oh, come on. A laugh's a laugh however yo … | Continue reading
I am a regular user of Transport for London's services. On my phone I have the TfL Go app for finding my way around the city, and a web shortcut to a specific bus stop so I can find my way home. Why are they different shades of blue⁉️⁉️⁉️ TfL, like most large organisations, have … | Continue reading
Since time immemorial, software has had version numbers. A developer releases V1 of their product. Some time later, they add new features or fix bugs, and release the next version. What should that next version be called? Modern software broadly bifurcates into two competing stan … | Continue reading
The venerable curl is one of the most fundamental pieces of code in the modern world. A seemingly simply utility - it enables other programs to interact with URls - it runs on millions of cars, is inside nearly every TV, used by billions of people, and is even in use on Mars. And … | Continue reading
I was lucky enough to score playtest tickets for the new season of Phantom Peak - the open world, interactive and immersive puzzle experience in London. I'd never been before and generally have a mixed reaction to these sorts of immersive shows. I loved Doctor Who - Time Fracture … | Continue reading
Because I'm an optimist, I submitted a few talks to FOSDEM in the hope one might be accepted. Because I'm lucky, I got two speaking slots. Because I'm an idiot, I decided to do both talks. On the same day. An hour apart. On opposite ends of the venue. Fool! My first talk was at t … | Continue reading
Long-time readers know that I am not a fan of What Three Words. I think it is a closed, proprietary, and user-unfriendly attempt to enclose the commons. I consider that it has some dangerous failure modes. A year ago, The Financial Times wrote about What3Words' business woes. But … | Continue reading
I was packing for FOSDEM when I suddenly realised that I'd lost my clicker. Disaster! Here's a shortlist of what I need in a presentation remote: Ring style to fit on my finger USB-C Works on Linux Frickin' lazor beams! The only one I could find which matched all that was this Vo … | Continue reading
I was delighted to be invited to speak at FOSDEM. And I was not at all intimidated to be speaking on the cavernous Janson stage. The audience were lovely, asked interesting questions, and - most importantly - laughed in all the right places . Regular readers will recognise this a … | Continue reading
I'm just back from my first ever FOSDEM - a megaconference dedicated to Free and Open Source technology and culture. It was epic. I'm still ruminating on the experience, but here are my first impressions of what did and didn't work. The Good Bits Really, it is a dozen conferences … | Continue reading
I rather enjoyed HMRC (Her Majesty's Royal Coven) and The Shadow Cabinet by Juno Dawson. This is a sort-of prequel to the series. What if Anne Boleyn was a witch?!?! It's a fun enough book, but doesn't really go anywhere. Part of the problem is that the stories chapters flip back … | Continue reading
The UK is going through one of its periodic lamentations that "Things Are Changing And No One Asked Me". This time, it is over the loss of the humble British pub. It seems every year there's another story about how pubs are vanishing. Cue the wailing and gnashing of teeth as the … | Continue reading
This is not a ‘resistance’ book. It is not a guide to activism. It is not a reflection on ‘how democracies die’ or how authoritarianism is on the horizon. It is an exploration of how, without questioning the very context in which resistance takes place, it is futile. This book is … | Continue reading
About ⅔rds of the way through reading Janice Hallett's debut novel, The Appeal, I purchased her next book - The Twyford Code. The schtick is similar to the first. We, the reader, are taken through an epistolary series of audio files - voice notes from a recently released convict. … | Continue reading