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 →
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 →
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 →
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 →
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 →
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 →
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 →
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 →
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 soliloquy, but a hell of a lot better than trying to decipher BIOS beep codes. All of my electronics beep at me. My dishw…
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 electricity stolen from the sun and pumped into our home. That's an average of 3,800 kWh every year. But what does…
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. Evidence shows an employee asking if what they're doing it legal? Will it undermine their lobbying efforts? Will it lead to more regulation? Will they be fined? And, almost as an afterthought, is this fascinating…
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. It led to an explosion of creativity in 3D photography, with the London Stereoscopic and Photographic Company becoming …
Continue reading →