Reverse Geocoding is Hard


Two men are confused by a paper map

My wife and I run OpenBenches - a crowd-sourced database of nearly 40,000 memorial benches. Every bench is geo-tagged with a latitude and longitude. But how do you go from a string of digits to something human readable? How do I turn -33.755780,150.603769 into "42 Wallaby Way, Sydney, Australia"? Luckily, that's a (somewhat) solved problem. Services like OpenCage, StadiaMaps, OpenStreetMap,…

Continue reading →

HTML Oddities: Does the order of attribute values matter?


The HTML5 Logo.

HTML elements can have attributes. For example id, class, src, alt, and many others. These attributes can contain values - an img element's src attribute has a value which is a link to an image. An id attribute's value is a single string. But some attributes can contain multiple values. Here's a thought experiment for you. Consider these two HTML elements: <p class="alpha bravo charlie">………</p> …

Continue reading →

A small PHP update to GeSHi


The PHP logo.

The faithful old GeSHi Syntax Highlighter hasn't seen an update in a many a long year. It's a tried and trusted way to do server-side code highlighting - turning a myriad of programming languages into beautiful HTML & CSS. A few weeks ago, I noticed someone had proposed an update to its HTML rendering. The changes were mostly adding in new element names. PHP has been updated several times…

Continue reading →

Book Review: It's Not That Radical - Climate Action to Transform Our World by Mikaela Loach


Book cover.

I think I mostly agree with everything this book is saying, but after almost every paragraph I found myself scribbling the same note "Yes! But what action should I take though?" The author has an excellent and accessible way of showing the problems caused by the Climate Crisis - but the "action" part is mostly missing. Take this example: So something you can do right now to tackle them is to…

Continue reading →

Book Review: Murder Your Employer - The McMasters Guide to Homicide by Rupert Holmes


Book cover featuring an old fashioned line drawing of an employee holding a knife behind his back.

What if the Discworld's Assassin's Guild existed in the real world? That's it. That's the plot. Go to a university where they'll teach you to be a better class of murderer. The first half is excellent. Chuckles all the way through. A heady mix of every boarding-school novel you've ever read, and funny little twists and turns. Lots of the dialogue is straight out of Terry Pratchett (and I can't…

Continue reading →

Gadget Review: 6-Colour ePaper Name Badge


Skintones rendered on eInk.

The good folks at SmartDisplayer Technology Co have sent me a six colour eInk badge to play about with. Here's a quick video and then a walk-through of its features. You can also view SmartDisplayer's official video. The Badge It is a single block of plastic. There are no seams, screws, or rough edges. The ePaper appear right on the surface of the badge, there's no recessing or anything…

Continue reading →

Introducing Pretty Print HTML for PHP 8.4


The HTML5 Logo.

I'm delight to announce the first release of my opinionated HTML Pretty Printer for new versions of PHP. Grab the code from Packagist Contribute on GitLab There are several prettifiers on Packagist, but I think mine is the only one which works with the new Dom\HTMLDocument class. Table of ContentsWhatHowLimitationsWhyNext Steps What This takes hard-to-read HTML like: <!doctype…

Continue reading →

Is this the smallest USB-C hub?


Tiny hub nestled in the palm of my hand.

The gadget wizards at Benfei know that I'm a sucker for any sort of USB-C gadget. So when they offered to send me their micro-hub to review, how could I refuse? It is dinky! Here's what you get for your tenner USB-C PowerDelivery HDMI USB-A Frankly, I'm impressed that they managed to fit that much in! If you'll excuse my lacklustre photo-editing skills, here are the two output ports: …

Continue reading →

That's Not How A SIM Swap Attack Works


A padlock engraved into a circuit board.

There's a disturbing article in The Guardian about a person who was on the receiving end of a successful cybersecurity attack. EE texted to say they had processed my sim activation request, and the new sim would be active in 24 hours. I was told to contact them if I hadn’t requested this. I hadn’t, so I did so immediately. Twenty-four hours later, my mobile stopped working and money was wit…

Continue reading →

Gadget Review: Benfei SATA to USB-C Drive Enclosure


Plastic box with a SATA connector.

The good folks at Benfei know that I'm always losing my USB Thumb Drives. They're just too damn small. I crave something bigger and harder to lose. Not as huge as a CD Drive, but not as small as a MiniDisc. Something chunky and satisfying, with a slim elegance. So they've sent me their SATA to USB-C drive enclosure. It's a cute little box, with a built-in USB-C cable. The cable has one of…

Continue reading →

Gadget Review: Benfei USB-C to Ethernet Adapter


A USB-C to Ethernet converter.

Sure, WiFi is basically fine. But sometimes you need the raw power, high speed, and utter reliability of Ethernet. Billions of packets hurtling down twisted copper pair in order to deliver your data - that's what it is all about, right? But - alas! - laptops don't have Ethernet ports these days. And mobile phones tend to shun them as well. Who can save us from the tyranny of multi-GigaHertz…

Continue reading →

You don't need an API key to archive Twitter Data


The Twitter logo.

Apparently there's no need for IP laws any more, so here's a way to archive high-fidelity Twitter data without signing up for an expensive API key. This is perfect for academics wishing to preserve Tweets, journalists wanting to download evidence, or simply embedding content without leaking user data back to Twitter. Table of Contentstl;drBackgroundEmbed CodeAPI CallOptionsOutputTweet With…

Continue reading →