Category: code
-
Playdate 1
I’ve decided to try something new: programming a little game for the Playdate console, and documenting it here as I go. I’m new to the console, and to Lua, and I haven’t written a game since the late 1990s, so it’s likely to take me some time. Here are my notes from Day 1 –…
-
Squids In – a simple Octopus Agile tracker
Lately we’ve been using the Octopus Agile electricity tariff* to cut our energy bills. As we both work (mostly) from home, using electricity during non-peak periods – AKA procrastinating by doing the laundry – is easy, so it’s been saving us money. There are loads of ways to keep track of the tariff rates –…
-
JTX Cyclo Studio v5 to Peloton
Some code to generate a Peloton resistance value from the JTX Cyclo Studio v5 bike
-
Deploying a tiny Mastodon server on DigitalOcean
Given the current bin-fire state of Twitter it seems entirely reasonable that everyone I know there is building a survivalist-style-bunker on Mastodon. But there’s a pretty immediate roadblock that faces every person trying to set up a new account: which server to choose? While Twitter is monolithic – one site, one account, one @name –…
-
Apple App Store Connect API JWT tokens in PHP
I found it surprisingly hard to generate valid JWT tokens per this documentation, and kept getting a 401. Here’s some working code.
-
Blocking bot login attacks on WordPress
The Problem If you run a self-hosted WordPress blog then you might – or might not! – be aware of the sheer volume of attempted logins that will be sent your way. A good way to monitor and cut down on this is the Limit Login Attempts Reloaded plugin, which logs and graphs them: ..…
-
So long, and thanks for all the kittens
UPDATE FEB 2024 – given a certain ex-President’s regrettable failure to Just Fuck Off, MAKA is back in the Chrome Store again.
-
How to bulk upload Apple In App Purchases (IAPs) via Transporter
It’s easy to create single In App Purchases via iTunes Connect – but if you want to add tens or hundreds, here’s how to upload them in bulk using Transporter v2.1.x on Mac.
-
How to programmatically search the Facebook Ad Library
In this godawful year of all godawful years, it’s good to keep an eye on who’s trying to sell what to you, why, and for how much. Facebook’s Ad Library API lets you see the detail – here’s how to access it.