Here are all the blog posts I've written, starting with the most recent. If you're looking for something in
particular, you can see all the titles on one page in the site map. If you want to stay
up-to-date with what I'm writing, you can subscribe to the RSS feed in your favourite
feed reader.
I recently encountered a bug in one of my projects that I couldn’t immediately figure out. It was an issue in
Centauri, my reverse proxy. After its config was updated, I
noticed it stopped serving responses. Looking at the logs, I could see it was obtaining new certificates from
Let’s Encrypt for a couple of domains, but I’d designed it so that wouldn’t block requests (or so I thought).
After a few minutes of confusion, everything went back to working.
It felt like an issue with locking, but a quick glance didn’t show me anything obvious. I decided to throw the
problem at Claude Code and see how it did. With some guidance it managed to identify the cause, but it was a
bit of a journey to get there. I’m going to share the prompts and responses, as it was an interesting process.
The initial prompt
I thought the issue might be quite obvious, and I’d just overlooked it. Centauri isn’t that complex a project,
after all. So I gave Claude a fairly minimal prompt to set it off:
> Hello! Please examine this codebase. I have noticed an issue that when a
certificate is being renewed, the application seems to not serve any other
requests. I suspect there is a misplaced lock somewhere.
Can you see what's happening? Think very hard.
Claude Code has
special hardcoded triggers to
engage “thinking” mode, which makes it take more time to think about alternatives. The keywords are: “think”,
“think hard”, “think harder”, and “ultrathink”. I managed to not quite get the right incantation here, and
only enabled the lowest level.
I’ve been using Tailscale for around four years to connect my disparate
devices, servers and apps together. I wanted to talk a bit about how I use it, some cool features you might
not know about, and some stumbling blocks I encountered.
I’m not sure Tailscale needs an introduction for the likely audience of this blog, but I’ll give one anyway.
Tailscale is basically a WireGuard orchestration service, with lots of nice features sprinkled on top. It’s a
subscription product, but it has an insanely generous free tier that covers basically anything you’d ever want
to do as an individual. They also open source all their client software, and there’s a third party control
server implementation called Headscale if you want to
avoid the hosted system entirely.
Basic connectivity
At its core, Tailscale lets you easily connect from one device to another, even if they’re not directly
exposed to the Internet. You install the Tailscale client wherever you like (on your phone, computer, servers,
Raspberry Pi, etc), authenticate the machine with the control server, and it can then talk to all the other
machines on the tailnet using their private Tailscale IP addresses.
That isn’t anything revolutionary: it’s the basic premise behind VPNs. But Tailscale makes it so easy. You
don’t have to bother with any networking configuration. You don’t have to distribute keys. You just install
the client, and login.
I’ve written about LLMs a few times recently, carefully dodging the issue of ethics each time. I didn’t want
to bog down the other posts with it, and I wanted some time to think over the issues. Now I’ve had time to
think, it’s time to remove my head from the sand. There are a lot of different angles to consider, and a lot
of it is more nuanced than is often presented. It’s not all doom and gloom, and it’s also not the most amazing
thing since sliced bread. Who would have thought?
It’s worth noting that I’m just setting out my position here. I’m not trying to convince you to change your
mind. To set the scene a bit, I mainly use Claude Code as a programming tool. I use the Claude chat interface
sometimes to proofread things, do random one-off data analysis, or help organise things. More rarely I’ll try
to use it to brainstorm things, or recommend things, or do more “creative” things, but I don’t trust it enough
in those domains to do it often. I don’t use it for research or as a Google replacement, which I recognise
probably makes me a weird half-in-the-water, half-out-of-it class of user.
Copyright & Corporate Control
One of the key issues, and something that is being prosecuted in several court cases right now, is how LLMs
interact with the copyright system. And by “interact with” I mean “run roughshod all over”. It seems pretty
obvious from my lay perspective that if having 10 seconds of pop music in the background of a YouTube video is
copyright infringement, then
Meta pirating books via BitTorrent
must also be.
This, dear reader, is a hammer. It is almost entirely irrelevant to the article. Enjoy.
I presume everyone is familiar with the idiom “if all you have is a hammer, everything looks like a nail”. If
not, well, there it is. It’s generally used pejoratively about being single-minded, but I think it also gives
a glimpse into something more interesting: mental and perceptual sets.
Before I explain, let me tell you a story about a person who bought a 3D printer. When they were first
thinking about getting one, they weren’t sure if it was worth it. They could print a few board game
accessories, but then what? After they got it, though, a whole new world opened up: everywhere they looked
there were opportunities to improve things by adding 3D printed plastic. Broken appliances were repaired with
3D printed parts, all sorts of shelves, organisers, hooks and other things were made. But when they talked
about this to other people, most often the response was “That’s nice, but I don’t think I’d use one”. How
could they not see the truth in all its glorious layer lines?!
The answer is in the concept of a ‘set’, and instead of trying to explain it, I’m just going to quote
Wikipedia:
In psychology, a set is a group of expectations that shape experience by making people especially sensitive
to specific kinds of information. A perceptual set, also called perceptual expectancy, is a predisposition
to perceive things in a certain way. […] A mental set is a framework for thinking about a problem. It can be
shaped by habit or by desire. Mental sets can make it easy to solve a class of problem, but attachment to
the wrong mental set can inhibit problem-solving and creativity.
This perfectly captures what happened. They’d developed a ‘3D printing mental set’: a predisposition to see
problems that can be solved with their hammer 3D printer. Once I started noticing this pattern, I
started seeing it all over the place.
It's not a home-cooked meal, but it does the job sometimes.
Three years ago I read “an app can be a home-cooked meal” by Robin Sloan. It’s a great article about how Robin cooked up an app for his family to replace a
commercial one that died. It’s been stuck in my head ever since. It’s only recently that I’ve actually done
anything like Robin described, though. Part of the reason was my brain got too hung up on the family aspect:
in my head, a home-cooked meal is one where your family or friends all gather around to eat it with you (in
much the same way as Robin’s app is used in the article). It took me an embarrassingly long time to realise
that you can apply all the same arguments to an app built just for you. And it doesn’t even have to be
difficult. In fact, it can be more like a ready meal than a family dinner.
Why not open source?
I love open source software. Almost everything I use day-to-day is open source, and most things I write for
myself I release as open source. I believe that should be the default stance for most software. So why would
you want to make something and keep it just for yourself?