#howto
2026
The search for a cross-browser private email address service Nov 03, 2026
iCloud’s Hide My Email only works in Safari, DuckDuckGo’s extension doesn’t work in Safari and forces their search engine… are there no better solutions?
Serving Markdown to AI agents Sep 09, 2026
AI agents ask for Markdown via their Accept header, so why not give it to them?
Protect your analytics with Cloudflare Feb 19, 2026
How I used Cloudflare’s free security rules to filter bot traffic from my self-hosted Umami analytics.
BuildKit’s garbage collection is deleting Coolify’s build cache Feb 13, 2026
If your Coolify deployments are sometimes fast and sometimes mysteriously slow, Docker’s BuildKit garbage collection is probably silently deleting your build cache.
2025
My Home Assistant setup Dec 27, 2025
A deeper look at my Home Assistant setup. How do I sync everything to Apple’s Home app, and how do I automate my lights and heating?
Safe Django migrations without server errors Dec 01, 2025
How to run schema-changing Django migrations safely, avoiding schema/code mismatches and server errors during rolling deploys.
Run Django tests using PostgreSQL in GitHub Actions Oct 07, 2025
Did you know that you can run unit tests for your Django app, in GitHub Actions, using PostgreSQL?
One command to run them all Sep 09, 2025
How I use the just command runner to create a simple, unified interface for running, testing, linting, and formatting all my projects, regardless of the tech stack.
Automate Python package releases Jul 30, 2025
I maintain a handful of Python packages. Here’s how I automate creating new releases, both on PyPI and GitHub.
Django’s internationalization settings are weird Jul 18, 2025
It’s way too difficult to make Django use a 24-hour clock while using American English. Luckily it’s not impossible.
Handling static and media files in your Django app running on Coolify Jul 08, 2025
Let’s solve the challenge of serving media files for your Coolified Django site.
Hosting your Django sites with Coolify Jul 02, 2025
How I moved my Django projects from a manual server setup to Coolify for easier, zero-downtime deployments.
Production-ready cache-busting for Django and Tailwind CSS Jun 26, 2025
I’m a big fan of the django-tailwind-cli package, but I ran into problems deploying it to production. Here’s how to make sure you cache-bust tailwind.css.
Make Django show dates and times in the visitor’s local timezone Jun 12, 2025
A solution for showing dates and times in your visitor’s local timezone, all while handling the tricky first-visit problem.
Beyond htmx: building modern Django apps with Alpine AJAX Jun 11, 2025
Ditch the complex SPA. Learn how to build modern, server-rendered Django apps using Alpine AJAX and the power of hypermedia.
Blocking PHP requests using CloudFlare’s WAF rules Apr 28, 2025
Webservers get hit by hundreds of thousands of requests to random (non-existing) PHP files. Let’s block it using CloudFlare’s WAF rules.
2024
How to migrate your Poetry project to uv Nov 18, 2024
So, like me you’ve decided to switch from Poetry to uv, and now you’re wondering how to actually migrate your pyproject.toml file? You’ve come to the right place!
Putting Svelte stores inside context for fun and profit Nov 12, 2024
Solving problems by putting writable reactive stores in Svelte’s context.
How to change MEDIA_URL for one FileField Oct 31, 2024
I wanted to use a different MEDIA_URL for one of our FileField instances. It was very easy to do!
Automatically deploy your site when you push the main branch Oct 23, 2024
The best feature of Heroku is the ability to just push a branch, and it gets deployed. How do we replicate a workflow like that on our own server?
Validate PayPal webhooks using Python Oct 01, 2024
Paypal’s documentation only shows a JavaScript example. How do you validate the webhooks in Python though?
Changing the way Django 5.1 generates admin list labels Sep 16, 2024
Django 5.1 adds related field lookup to the model admin’s list_display, but with an annoying quirk. Let’s fix that!
Extend Django’s autocomplete widget actions Jul 22, 2024
Extending Django’s autocomplete widget with a new action which copies the linked user’s email address to the clipboard.
Hardening a web server against script kiddies Jun 09, 2024
Webservers get hit by hundreds of thousands of requests to random (non-existing) PHP files. Let’s block them using UFW and fail2ban.
2023
Deleting anonymous users’ baskets when their sessions expire Oct 25, 2023
How do you delete baskets belonging to anonymous users when their sessions expire? It wasn’t quite as simple as I thought.
Adding custom actions to the Django Admin Jul 20, 2023
Let’s add custom actions to Django’s admin site - but to the change form, not the list view.
Setting up a Debian 11 server for SvelteKit and Django Mar 04, 2023
A complete how-to guide for setting up Debian from scratch, for SvelteKit and Django.
2020
Connecting Stripe to Firestore via Cloud Functions and webhooks Jun 26, 2020
Since it was a bit of a puzzle to get it working, I am sharing my backend and frontend code.
Connecting Storekit to Firestore via Cloud Functions and webhooks Jun 15, 2020
I’ve recently added subscriptions to my Critical Notes iOS app, using Apple’s StoreKit. Here is how I hooked it all up to Firestore including server-side receipt validation.