Newsletter
Sample Posts
Sign up and you'll get posts like these straight to your email once every week or so.
![Light mode to dark mode swap](https://blog.bythewood.me/media/images/dark-mode-light-mode.2e16d0ba.fill-640x480.format-webp.webp)
Adding dark mode with automatic system preference selection
Creating a dark, or light, version of your website may seem like a daunting task if you think you need an entirely new color pallet. It's 2022 though and we have the widely supported invert CSS filter.
![Isaac Bythewood](https://blog.bythewood.me/media/avatar_images/avatar_0da51063-cf05-4913-9b84-b1ce72bb2dfc_Avatar.webp)
July 02, 2022
![PostgreSQL row count command output](https://blog.bythewood.me/media/images/postgrseql_row_count_.2e16d0ba.fill-640x480.format-webp.webp)
Counting table row counts in PostgreSQL
An easy way to count the number of rows in a PostgreSQL table and sort by totals allowing you to find what's taking up space in your database.
![Isaac Bythewood](https://blog.bythewood.me/media/avatar_images/avatar_0da51063-cf05-4913-9b84-b1ce72bb2dfc_Avatar.webp)
May 28, 2022
![CodeMirror website](https://blog.bythewood.me/media/images/codemirror_website.2e16d0ba.fill-640x480.format-webp.webp)
Using CodeMirror to show formatted code in Wagtail
Going through all the steps to use CodeMirror with Wagtail to show formatted code on the frontend of your site.
![Isaac Bythewood](https://blog.bythewood.me/media/avatar_images/avatar_0da51063-cf05-4913-9b84-b1ce72bb2dfc_Avatar.webp)
June 11, 2022
![Lighthouse PWA optimized check](https://blog.bythewood.me/media/images/lighthouse-pwa-check.2e16d0ba.fill-640x480.format-webp.webp)
Creating a PWA with Next.js and next-pwa to improve your websites UX
Turning your website into a PWA, especially if your website doesn't rely on an internet connection at all, can greatly improve it's user experience by allowing them to access your web app anywhere.
![Isaac Bythewood](https://blog.bythewood.me/media/avatar_images/avatar_0da51063-cf05-4913-9b84-b1ce72bb2dfc_Avatar.webp)
June 18, 2022
![Caddy website](https://blog.bythewood.me/media/images/caddyserver.com.2e16d0ba.fill-640x480.format-webp.webp)
Caddy configuration for Django with some sensible defaults
Caddy is a great web server with sensible defaults but there a few things that I need to configure to have perfect synergy with Django.
![Isaac Bythewood](https://blog.bythewood.me/media/avatar_images/avatar_0da51063-cf05-4913-9b84-b1ce72bb2dfc_Avatar.webp)
June 04, 2022
![Borg backup logo](https://blog.bythewood.me/media/images/borg-logo.2e16d0ba.fill-640x480.format-webp.webp)
Set up automated server backups with Borg
The Borg deduplicating backup program can automate daily, weekly, and monthly backups with a single script saving space and keeping data safe from mistakes.
![Isaac Bythewood](https://blog.bythewood.me/media/avatar_images/avatar_0da51063-cf05-4913-9b84-b1ce72bb2dfc_Avatar.webp)
June 25, 2022