bg de en es fr it nl pl pt sv tr zh

blogging about blogging

Preventing line breaks in <code> elements

alexwlchan

One of my favourite tiny details in this website is my non-breaking spaces. I have code that looks for phrases like “5 cm”, “New York”, or “Objective‑C”, and inserts a non-breaking space/hyphen so they’ll never be split across multiple lines. This is the sort of typographical nicety that would be...

Watching for file changes on macOS

alexwlchan

When I’m working on this website, I want a local server with live reload. I want to be able to open the site in my web browser, make changes to the source files, and have my browser automatically refresh the page when the site is updated. I use this whenever I’m working on the site, and I find it...

Building a basic cache with SQLite

alexwlchan

This website is a static website, built with a static site generator I wrote myself. When I’m working on the site locally, I want it to build quickly. The site is relatively small, modern computers are overflowing with power, so I don’t want to be waiting. Rendering all the HTML pages takes about...

Quietly quantum-resistant blogging

alexwlchan

Among the other fun news recently, two papers were published that suggest quantum computers capable of breaking classical public-key cryptography algorithms are much closer than previously believed. What was thought to be years away might now be months. I found Filippo Valsorda’s post especially...

Introducing Mosaic, my Python static site generator

alexwlchan

On Sunday evening, I quietly swapped out a key tool that I use to write this site. It’s a big deal for me, but hopefully nobody else noticed. The tool I changed was my static site generator. I write blog posts in text files using Markdown, and then my static site generator converts those text...