# alexwlchan

Alex Chan's personal website

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## funkycache: a Python library to cache functions in SQLite

DevFeed: [funkycache: a Python library to cache functions in SQLite](<https://devfeed.tech/articles/funkycache-a-python-library-to-cache-functions-in-sqlite-136003.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/funkycache/>)

Published: 2026-11-16T08:01:35Z

Content type: article

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Cache](<https://devfeed.tech/topics/cache.md>), [Python](<https://devfeed.tech/topics/python.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>), [cache-invalidation](<https://devfeed.tech/topics/cache-invalidation.md>), [Pydantic](<https://devfeed.tech/topics/pydantic.md>), [Library](<https://devfeed.tech/topics/library.md>)

Tags: [airflow](<https://devfeed.tech/tags/airflow.md>), [api](<https://devfeed.tech/tags/api.md>), [blogging-about-blogging](<https://devfeed.tech/tags/blogging-about-blogging.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cache-invalidation](<https://devfeed.tech/tags/cache-invalidation.md>), [caching](<https://devfeed.tech/tags/caching.md>), [dag](<https://devfeed.tech/tags/dag.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [functions](<https://devfeed.tech/tags/functions.md>), [library](<https://devfeed.tech/tags/library.md>), [python](<https://devfeed.tech/tags/python.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>)

### AI overview

funkycache caches Python function outputs in SQLite through a decorator modeled on functools.cache. It normalizes calls, including positional arguments and defaults, into cache keys; JSON-encodes and XXH64-hashes those keys. Return values are JSON-serialized and restored with Pydantic based on the function's return type annotation, so this approach requires typed functions. Cache entries can be invalidated when the function's source, declared files or folders, or static dependency values change. Generators are materialized into lists for storage, subject to a soft memory budget; oversized outputs bypass caching and continue to the caller. The author reports a warm site build of about half a second, with filesystem traversal taking a significant share. The excerpt describes the author's use case and design choices, not comparative performance across general workloads.

### Source excerpt

Why did I write a new caching library, and how does it work?

## gobench: a tool for comparing Go benchmark runs across branches

DevFeed: [gobench: a tool for comparing Go benchmark runs across branches](<https://devfeed.tech/articles/gobench-a-tool-for-comparing-go-benchmark-runs-across-branches-112517.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/gobench/>)

Published: 2026-11-01T19:38:34Z

Content type: article

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Tool](<https://devfeed.tech/topics/tool.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [compare](<https://devfeed.tech/tags/compare.md>), [go](<https://devfeed.tech/tags/go.md>), [performance](<https://devfeed.tech/tags/performance.md>), [tool](<https://devfeed.tech/tags/tool.md>)

### AI overview

gobench compares Go benchmark performance between the current feature branch and a base branch, then reports benchstat's statistical analysis. It creates a temporary Git worktree for the base, keeps benchmark output in memory, and alternates six samples between branches; alternating helps reduce noise from laptop conditions such as thermal throttling and background processes. This avoids the earlier shell script's need to specify commit IDs, leave output files, and finish with the repository in a detached HEAD state. The excerpt describes the tool as a Go program that runs git, go test, and benchstat, and gives an install command using go install.

### Source excerpt

I wrote a tool that makes it quick and easy to measure the performance impact of a proposed change.

## Verifying my web archives with Playwright

DevFeed: [Verifying my web archives with Playwright](<https://devfeed.tech/articles/verifying-my-web-archives-with-playwright-110763.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/verifying-web-archives/>)

Published: 2026-11-01T14:11:41Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Playwright](<https://devfeed.tech/topics/playwright.md>), [Browser Automation](<https://devfeed.tech/topics/browser-automation.md>), [synthetic monitoring](<https://devfeed.tech/topics/synthetic-monitoring.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [archive](<https://devfeed.tech/tags/archive.md>), [assets](<https://devfeed.tech/tags/assets.md>), [audit](<https://devfeed.tech/tags/audit.md>), [auditing](<https://devfeed.tech/tags/auditing.md>), [automate](<https://devfeed.tech/tags/automate.md>), [automated-testing](<https://devfeed.tech/tags/automated-testing.md>), [browser](<https://devfeed.tech/tags/browser.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [computers-and-code](<https://devfeed.tech/tags/computers-and-code.md>), [content-security-policy](<https://devfeed.tech/tags/content-security-policy.md>), [csp](<https://devfeed.tech/tags/csp.md>), [css](<https://devfeed.tech/tags/css.md>), [css-images](<https://devfeed.tech/tags/css-images.md>), [dark-mode](<https://devfeed.tech/tags/dark-mode.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [web](<https://devfeed.tech/tags/web.md>), [web-archiving](<https://devfeed.tech/tags/web-archiving.md>)

### AI overview

The author uses Playwright to check whether locally archived pages load without errors or external dependencies. The helper opens a fresh page, records requests, and fails on uncaught exceptions, console warnings or errors, non-GET requests, or external URLs; it also triggers reflow to catch some lazy-loaded images and fonts. Separate browser contexts can test settings such as light/dark mode, and the author also checks 1x/2x pixel densities, caching results because each run takes at least a second. This is best-effort: viewport choices, appearance settings, and interactions can reveal different assets, so multiple contexts or scripted actions improve coverage at a time cost. For the author's mostly simple, JavaScript-stripped pages, initial-load checks suffice. The same request auditing could be applied to CSP checks, login screens, or analytics flows.

### Source excerpt

I check my local web archive is self-contained by opening each page in Playwright, and checking the list of outgoing requests.

## Positive alerts in Prometheus

DevFeed: [Positive alerts in Prometheus](<https://devfeed.tech/articles/positive-alerts-in-prometheus-100749.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/positive-alerts/>)

Published: 2026-10-26T18:38:45Z

Content type: article

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Prometheus alert rules](<https://devfeed.tech/topics/prometheus-alert-rules.md>), [Prometheus](<https://devfeed.tech/topics/prometheus.md>)

Tags: [alert-fatigue](<https://devfeed.tech/tags/alert-fatigue.md>), [alertmanager](<https://devfeed.tech/tags/alertmanager.md>), [alerts](<https://devfeed.tech/tags/alerts.md>), [computers-and-code](<https://devfeed.tech/tags/computers-and-code.md>), [database](<https://devfeed.tech/tags/database.md>), [exception](<https://devfeed.tech/tags/exception.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [noise](<https://devfeed.tech/tags/noise.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [prometheus](<https://devfeed.tech/tags/prometheus.md>), [time-series](<https://devfeed.tech/tags/time-series.md>)

### AI overview

The example avoids repeated notifications from a flapping scrape alert while keeping track of when its exception can be removed. The original rule fires when the average `up` value over 30 minutes falls below 0.95 for an hour. The team excluded the overloaded service from that rule and added a positive alert for that service when the same average stayed at or above 0.95 for 14 days. When the recovery alert fired, they removed the exception. This gave them a recovery signal without relying on a fixed-duration Alertmanager Silence, which could expire before the service was fixed or remain after it recovered.

### Source excerpt

When we create an exception to an alert, we can use a second alert to tell us when the exception no longer applies.

## Parametrised tests in Rust with named parameters

DevFeed: [Parametrised tests in Rust with named parameters](<https://devfeed.tech/articles/parametrised-tests-in-rust-with-named-parameters-60386.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/table-driven-rust/>)

Published: 2026-09-26T08:43:00Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Rust](<https://devfeed.tech/topics/rust.md>), [table driven tests](<https://devfeed.tech/topics/table-driven-tests.md>), [test](<https://devfeed.tech/topics/test.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [rust](<https://devfeed.tech/tags/rust.md>), [software-testing](<https://devfeed.tech/tags/software-testing.md>), [table-driven-tests](<https://devfeed.tech/tags/table-driven-tests.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

The article explains how to write table-driven tests in Rust using named parameters. It compares loops, positional-argument macros, and third-party testing libraries, then describes a custom macro designed to reduce repetition while preserving readability.

### Source excerpt

I wrote a macro that lets me define test cases with labelled inputs and outputs, so I can reduce repetition without affecting readability.

## Abusing ID3 chapters to turn videos into glanceable podcasts

DevFeed: [Abusing ID3 chapters to turn videos into glanceable podcasts](<https://devfeed.tech/articles/abusing-id3-chapters-to-turn-videos-into-glanceable-podcasts-51110.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/glancecast/>)

Published: 2026-09-15T11:04:15Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [FFmpeg (Fast Forward Moving Picture Experts Group)](<https://devfeed.tech/topics/ffmpeg.md>), [file](<https://devfeed.tech/topics/file.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [command](<https://devfeed.tech/tags/command.md>), [ffmpeg](<https://devfeed.tech/tags/ffmpeg.md>), [images-and-videos](<https://devfeed.tech/tags/images-and-videos.md>), [mp3](<https://devfeed.tech/tags/mp3.md>), [screen](<https://devfeed.tech/tags/screen.md>)

### AI overview

This tutorial explains how to use ID3 chapters, FFmpeg, and per-chapter artwork to turn videos into audio-first MP3 files that remain glanceable in a podcast app. It describes extracting video frames at fixed intervals and inserting them as hidden chapters.

### Source excerpt

Inserting a chapter with artwork every few seconds turns an MP3 file into an approximation of a video file. I can listen to videos as audio-first, and glance at my lock screen if I need some visual context.

## Why can't you combine .tar.gz files with cat?

DevFeed: [Why can't you combine .tar.gz files with cat?](<https://devfeed.tech/articles/why-can-t-you-combine-tar-gz-files-with-cat-51106.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/cat-confusion/>)

Published: 2026-08-20T09:49:28Z

Content type: article

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [file](<https://devfeed.tech/topics/file.md>), [Streaming](<https://devfeed.tech/topics/streaming.md>), [Python](<https://devfeed.tech/topics/python.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [cat](<https://devfeed.tech/tags/cat.md>), [code](<https://devfeed.tech/tags/code.md>), [computers-and-code](<https://devfeed.tech/tags/computers-and-code.md>), [data](<https://devfeed.tech/tags/data.md>), [file](<https://devfeed.tech/tags/file.md>), [files](<https://devfeed.tech/tags/files.md>), [network](<https://devfeed.tech/tags/network.md>), [sequence](<https://devfeed.tech/tags/sequence.md>), [streaming](<https://devfeed.tech/tags/streaming.md>), [structure](<https://devfeed.tech/tags/structure.md>)

### AI overview

The article explains why concatenating .tar.gz archives with cat does not work by examining tar's sequential, block-based archive structure, metadata headers, EOF markers, duplicate filenames, and streaming behavior. It also describes how these details affect Python archive creation and updates.

### Source excerpt

To combine archives safely, I had to start by understanding the `tar` and `gzip` file formats. I learnt about tape drives, patent laws, and end-of-file markers.

## How we tracked down a 16-year-old SQLite bug

DevFeed: [How we tracked down a 16-year-old SQLite bug](<https://devfeed.tech/articles/how-we-tracked-down-a-16-year-old-sqlite-bug-167.md>)

Original publisher: [Read original article](<https://tailscale.com/blog/sqlite-wal-reset-bug>)

Author: Alex Chan

Published: 2026-08-12T14:00:00Z

Content type: article

Language: en

Sources: [Tailscale](<https://devfeed.tech/sources/blog-on-tailscale.md>), [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [SQLite](<https://devfeed.tech/topics/sqlite.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Database](<https://devfeed.tech/topics/database.md>), [incident](<https://devfeed.tech/topics/incident.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [data](<https://devfeed.tech/topics/data.md>)

Tags: [blog](<https://devfeed.tech/tags/blog.md>), [bug](<https://devfeed.tech/tags/bug.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [databases](<https://devfeed.tech/tags/databases.md>), [go](<https://devfeed.tech/tags/go.md>), [incident](<https://devfeed.tech/tags/incident.md>), [s3](<https://devfeed.tech/tags/s3.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>), [tailscale](<https://devfeed.tech/tags/tailscale.md>)

### AI overview

Tailscale describes how repeated outages led its engineers to track down and fix a long-standing SQLite corruption bug. The article covers the control plane's sharded, single-writer SQLite architecture, database backups uploaded to Amazon S3, and the forensic investigation into recurring corruption.

### Source excerpt

SQLite corruption? Sorted.

## Preventing line breaks in \<code\> elements

DevFeed: [Preventing line breaks in \<code\> elements](<https://devfeed.tech/articles/preventing-line-breaks-in-code-elements-51115.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/non-breaking-code/>)

Published: 2026-07-18T08:00:04Z

Content type: article

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Code](<https://devfeed.tech/topics/code.md>), [browser](<https://devfeed.tech/topics/browser.md>), [layout](<https://devfeed.tech/topics/layout.md>)

Tags: [blogging-about-blogging](<https://devfeed.tech/tags/blogging-about-blogging.md>), [browsers](<https://devfeed.tech/tags/browsers.md>), [code](<https://devfeed.tech/tags/code.md>), [css](<https://devfeed.tech/tags/css.md>), [layout](<https://devfeed.tech/tags/layout.md>), [property](<https://devfeed.tech/tags/property.md>)

### AI overview

An article explains how to prevent awkward line breaks in inline code snippets. It describes detecting short code elements containing spaces or hyphens and applying a CSS class that prevents wrapping, while preserving copyable code meaning.

### Source excerpt

To avoid awkward line breaks, I'm adding CSS to inline code snippets that contain hyphens or spaces.

## Fixing a bug with byte order marks

DevFeed: [Fixing a bug with byte order marks](<https://devfeed.tech/articles/fixing-a-bug-with-byte-order-marks-51105.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/byte-order-marks/>)

Published: 2026-07-18T07:11:26Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Encoding](<https://devfeed.tech/topics/encoding.md>), [bug](<https://devfeed.tech/topics/bug.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [bug](<https://devfeed.tech/tags/bug.md>), [conversion](<https://devfeed.tech/tags/conversion.md>), [encoding](<https://devfeed.tech/tags/encoding.md>), [files](<https://devfeed.tech/tags/files.md>), [python](<https://devfeed.tech/tags/python.md>), [text-and-unicode](<https://devfeed.tech/tags/text-and-unicode.md>)

### AI overview

A Python subtitle converter failed to handle UTF-8 byte order marks correctly, causing the first sequence number to be copied into the generated WebVTT file. The article explains the encoding issue and the fix of using utf-8-sig.

### Source excerpt

I didn't know to check for UTF-8 byte order marks, so I made a mistake when converting text files. I was meant to use `encoding="utf-8-sig"`.

## A Git hook to prevent committing directly to main

DevFeed: [A Git hook to prevent committing directly to main](<https://devfeed.tech/articles/a-git-hook-to-prevent-committing-directly-to-main-51114.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/no-main-hook/>)

Published: 2026-07-13T20:44:05Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Git](<https://devfeed.tech/topics/git.md>), [Shell](<https://devfeed.tech/topics/shell.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Pull Request](<https://devfeed.tech/topics/pull-request.md>), [GitHub](<https://devfeed.tech/topics/github.md>)

Tags: [branch](<https://devfeed.tech/tags/branch.md>), [changes](<https://devfeed.tech/tags/changes.md>), [code](<https://devfeed.tech/tags/code.md>), [commit](<https://devfeed.tech/tags/commit.md>), [git](<https://devfeed.tech/tags/git.md>), [git-hook](<https://devfeed.tech/tags/git-hook.md>), [github](<https://devfeed.tech/tags/github.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>), [script](<https://devfeed.tech/tags/script.md>), [shell](<https://devfeed.tech/tags/shell.md>), [shell-script](<https://devfeed.tech/tags/shell-script.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

### AI overview

A tutorial showing how to use a Git hook and shell script to prevent commits directly to the main branch. The hook detects the current branch and aborts the commit with an error when the user is on main, helping preserve a clean local workflow.

### Source excerpt

I'm not supposed to commit directly to main, but I often forget, so I have the computer remember for me.

## Using regular expressions to find repeated words and phrases in source code

DevFeed: [Using regular expressions to find repeated words and phrases in source code](<https://devfeed.tech/articles/i-don-t-want-to-repeat-repeat-myself-51122.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/repeating-myself/>)

Published: 2026-07-03T15:52:05Z

Content type: article

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>)

Tags: [cleanup](<https://devfeed.tech/tags/cleanup.md>), [code](<https://devfeed.tech/tags/code.md>), [mistakes](<https://devfeed.tech/tags/mistakes.md>), [regex](<https://devfeed.tech/tags/regex.md>), [regular-expressions](<https://devfeed.tech/tags/regular-expressions.md>), [source-code](<https://devfeed.tech/tags/source-code.md>)

### AI overview

The author describes using two regular expressions to search codebases for accidentally repeated words and phrases, helping identify typos in source code and UI text.

### Source excerpt

I wrote a pair of regular expressions to find repeated words and phrases in my source code.

## What can wonky APIs tell us about the web?

DevFeed: [What can wonky APIs tell us about the web?](<https://devfeed.tech/articles/what-can-wonky-apis-tell-us-about-the-web-51127.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/wonky-web-apis/>)

Author: Misty club

Published: 2026-06-21T14:29:21Z

Content type: article

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [API](<https://devfeed.tech/topics/api.md>), [Parameter](<https://devfeed.tech/topics/parameter.md>), [browser](<https://devfeed.tech/topics/browser.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Single-page application (SPA)](<https://devfeed.tech/topics/spa.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [Web](<https://devfeed.tech/topics/web.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [browser](<https://devfeed.tech/tags/browser.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [parameter](<https://devfeed.tech/tags/parameter.md>), [spas](<https://devfeed.tech/tags/spas.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

The article examines unusual web APIs, including the probabilistic canPlayType response and an explicitly unused parameter in browser history methods. It explains how the History API supports single-page applications by creating synthetic history entries so browser back and forward navigation reflects in-page state changes.

### Source excerpt

An API with an explicitly unused parameter is a testament to the web's commitment to backward compatibility.

## Using the Screen Capture API to record a browser window

DevFeed: [Using the Screen Capture API to record a browser window](<https://devfeed.tech/articles/using-the-screen-capture-api-to-record-a-browser-window-51121.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/record-browser-video/>)

Published: 2026-06-07T08:03:45Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [screen](<https://devfeed.tech/topics/screen.md>), [recording](<https://devfeed.tech/topics/recording.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Web APIs](<https://devfeed.tech/topics/web-apis.md>), [Playwright](<https://devfeed.tech/topics/playwright.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [computers-and-code](<https://devfeed.tech/tags/computers-and-code.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [python](<https://devfeed.tech/tags/python.md>), [recording](<https://devfeed.tech/tags/recording.md>), [screen](<https://devfeed.tech/tags/screen.md>), [screenshot](<https://devfeed.tech/tags/screenshot.md>), [screenshots](<https://devfeed.tech/tags/screenshots.md>)

### AI overview

A practical guide to recording browser animations with audio using the native Screen Capture API. It compares QuickTime and Playwright, explaining their limitations for capturing screen audio and describing Playwright's browser-video workflow for test diagnostics.

### Source excerpt

When I saw a cool animation, I used the browser's native screen capture API to get a high-quality screen recording, audio included.

## Using Pytester to test my Playwright fixtures

DevFeed: [Using Pytester to test my Playwright fixtures](<https://devfeed.tech/articles/using-pytester-to-test-my-playwright-fixtures-51118.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/pytester/>)

Published: 2026-06-05T08:14:37Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Playwright](<https://devfeed.tech/topics/playwright.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Python](<https://devfeed.tech/topics/python.md>), [browser](<https://devfeed.tech/topics/browser.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [pytest](<https://devfeed.tech/tags/pytest.md>), [python](<https://devfeed.tech/tags/python.md>), [software-testing](<https://devfeed.tech/tags/software-testing.md>), [testing](<https://devfeed.tech/tags/testing.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

The article explains how to use pytest's Pytester plugin to test Playwright fixtures in isolated test suites. It covers verifying passing and failing tests, creating temporary files, and making installed browsers available to the isolated environment.

### Source excerpt

Who tests the tests? Test code isn't immune to bugs, so I'm using pytest's Pytester plugin to ensure my Playwright fixture is behaving correctly.

## Rendering a chat thread in CSS and JavaScript

DevFeed: [Rendering a chat thread in CSS and JavaScript](<https://devfeed.tech/articles/rendering-a-chat-thread-in-css-and-javascript-51108.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/css-chat/>)

Published: 2026-05-29T07:51:28Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [css](<https://devfeed.tech/tags/css.md>), [css-properties](<https://devfeed.tech/tags/css-properties.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [nesting](<https://devfeed.tech/tags/nesting.md>), [selector](<https://devfeed.tech/tags/selector.md>)

### AI overview

A tutorial on rendering chat threads with semantic HTML, JavaScript, and CSS. It explains how to style chat bubbles, distinguish messages by sender, use CSS nesting and attribute selectors, and handle bubble sizing and alignment.

### Source excerpt

I thought rendering chat bubbles would be straightforward, but I found it tricky to get the CSS right and make the bubbles "shrink-wrap" to fit the text.

## Waiting for website changes in the browser

DevFeed: [Waiting for website changes in the browser](<https://devfeed.tech/articles/waiting-for-website-changes-in-the-browser-51112.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/livereload-in-browser/>)

Author: Dion Williams wales

Published: 2026-05-14T07:51:01Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [HTTP](<https://devfeed.tech/topics/http.md>), [Python](<https://devfeed.tech/topics/python.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Web app](<https://devfeed.tech/topics/webapp.md>)

Tags: [blogging-about-blogging](<https://devfeed.tech/tags/blogging-about-blogging.md>), [browser](<https://devfeed.tech/tags/browser.md>), [computers-and-code](<https://devfeed.tech/tags/computers-and-code.md>), [development](<https://devfeed.tech/tags/development.md>), [http](<https://devfeed.tech/tags/http.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

A tutorial on using HTTP long polling and Python's standard library to notify a browser when a locally rebuilt website is ready to reload. The approach uses a long-lived HTTP connection and avoids third-party dependencies.

### Source excerpt

I'm using HTTP long polling and Python's threading module to tell my browser when my site has finished rebuilding. This gives me near-instant reloading, with no third-party dependencies.

## Watching for file changes on macOS

DevFeed: [Watching for file changes on macOS](<https://devfeed.tech/articles/watching-for-file-changes-on-macos-51126.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/watch-files-on-macos/>)

Published: 2026-05-11T06:41:24Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [macOS](<https://devfeed.tech/topics/macos.md>), [Filesystems](<https://devfeed.tech/topics/filesystems.md>), [Swift](<https://devfeed.tech/topics/swift.md>), [notifications](<https://devfeed.tech/topics/notifications.md>), [API](<https://devfeed.tech/topics/api.md>), [Python](<https://devfeed.tech/topics/python.md>), [Streams](<https://devfeed.tech/topics/streams.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [blogging-about-blogging](<https://devfeed.tech/tags/blogging-about-blogging.md>), [file](<https://devfeed.tech/tags/file.md>), [macos](<https://devfeed.tech/tags/macos.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [python](<https://devfeed.tech/tags/python.md>), [script](<https://devfeed.tech/tags/script.md>), [swift](<https://devfeed.tech/tags/swift.md>)

### AI overview

A tutorial on using macOS FSEvents with a Swift script to detect file changes and pass notifications to Python, supporting live reload for a locally generated website.

### Source excerpt

I've written a Swift script that uses the FSEvents API to get notified of file changes, then I'm using stdout as a bridge to forward those notifications to Python.

## Using Playwright to test my static sites

DevFeed: [Using Playwright to test my static sites](<https://devfeed.tech/articles/using-playwright-to-test-my-static-sites-51116.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/playwright/>)

Published: 2026-05-02T06:08:53Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Playwright](<https://devfeed.tech/topics/playwright.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [browser](<https://devfeed.tech/topics/browser.md>), [Web app](<https://devfeed.tech/topics/webapp.md>), [Pytest](<https://devfeed.tech/topics/pytest.md>), [Python](<https://devfeed.tech/topics/python.md>), [WebKit](<https://devfeed.tech/topics/webkit.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Chromium](<https://devfeed.tech/topics/chromium.md>), [Firefox](<https://devfeed.tech/topics/firefox.md>)

Tags: [browser](<https://devfeed.tech/tags/browser.md>), [chromium](<https://devfeed.tech/tags/chromium.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [playwright](<https://devfeed.tech/tags/playwright.md>), [pytest](<https://devfeed.tech/tags/pytest.md>), [python](<https://devfeed.tech/tags/python.md>), [software-testing](<https://devfeed.tech/tags/software-testing.md>), [static-websites](<https://devfeed.tech/tags/static-websites.md>), [testing](<https://devfeed.tech/tags/testing.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

A practical guide to using Playwright for end-to-end testing of static sites and other web apps. It covers browser-controlled tests, Python setup, browser compatibility checks, and pytest fixtures for reusing a browser instance and reducing boilerplate.

### Source excerpt

Playwright is a testing library that lets you control a browser and check how the page is behaving, and it's great for testing and scripting web apps.

## Building a basic cache with SQLite

DevFeed: [Building a basic cache with SQLite](<https://devfeed.tech/articles/building-a-basic-cache-with-sqlite-51124.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/sqlite-cache/>)

Published: 2026-04-29T08:24:49Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [SQLite](<https://devfeed.tech/topics/sqlite.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [Python](<https://devfeed.tech/topics/python.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [software-development](<https://devfeed.tech/topics/software-development.md>)

Tags: [blogging-about-blogging](<https://devfeed.tech/tags/blogging-about-blogging.md>), [cache](<https://devfeed.tech/tags/cache.md>), [development](<https://devfeed.tech/tags/development.md>), [python](<https://devfeed.tech/tags/python.md>), [sql](<https://devfeed.tech/tags/sql.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>)

### AI overview

A practical tutorial on replacing a static site's Jekyll cache with a basic SQLite cache. It explains the cache's namespace, key, and value structure, shows SQL operations for storing, retrieving, checking, and purging entries, and discusses choosing cache keys and avoiding unnecessary reads of large values.

### Source excerpt

An SQLite table that caches expensive operations has dramatically sped up local development of this website.

## HTTP GET requests with the Python standard library

DevFeed: [HTTP GET requests with the Python standard library](<https://devfeed.tech/articles/http-get-requests-with-the-python-standard-library-51119.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/python-http-with-the-stdlib/>)

Published: 2026-04-24T14:14:03Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [HTTP](<https://devfeed.tech/topics/http.md>), [Library](<https://devfeed.tech/topics/library.md>), [Script](<https://devfeed.tech/topics/script.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [http](<https://devfeed.tech/tags/http.md>), [python](<https://devfeed.tech/tags/python.md>), [scripting](<https://devfeed.tech/tags/scripting.md>), [standard-library](<https://devfeed.tech/tags/standard-library.md>)

### AI overview

This tutorial explains how to make basic HTTP GET requests using Python's standard library. It compares that approach with third-party libraries and describes a lightweight personal wrapper that provides a friendlier API for simple local scripts.

### Source excerpt

For my local scripting, a lightweight wrapper around the Python standard library gets me a friendly API without the dependencies.

## Auditing my local Python packages

DevFeed: [Auditing my local Python packages](<https://devfeed.tech/articles/auditing-my-local-python-packages-51120.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/python-package-audit/>)

Published: 2026-04-10T17:00:35Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>)

Tags: [auditing](<https://devfeed.tech/tags/auditing.md>), [environments](<https://devfeed.tech/tags/environments.md>), [python](<https://devfeed.tech/tags/python.md>), [python-packages](<https://devfeed.tech/tags/python-packages.md>), [shell](<https://devfeed.tech/tags/shell.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

### AI overview

A developer audits local Python packages after recent malicious-package incidents. The article explains the difficulty of locating installed versions across multiple virtual environments and describes maintaining a searchable list of those environments.

### Source excerpt

Python's virtual environments mean I can have many versions of the same package scattered across my machine. I've started keeping a list of my environments so I can see exactly what's installed, and where.

## My blog is already protected with quantum-resistant cryptography

DevFeed: [My blog is already protected with quantum-resistant cryptography](<https://devfeed.tech/articles/quietly-quantum-resistant-blogging-51117.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/post-quantum-blog/>)

Published: 2026-04-09T08:28:09Z

Content type: opinion

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Cryptography](<https://devfeed.tech/topics/cryptography.md>), [Post-quantum cryptography](<https://devfeed.tech/topics/post-quantum-cryptography.md>), [Encryption](<https://devfeed.tech/topics/encryption.md>), [public key](<https://devfeed.tech/topics/public-key.md>), [Security, Privacy and Abuse Prevention](<https://devfeed.tech/topics/security-privacy-and-abuse-prevention.md>), [Risk](<https://devfeed.tech/topics/risk.md>)

Tags: [blogging-about-blogging](<https://devfeed.tech/tags/blogging-about-blogging.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cryptography](<https://devfeed.tech/tags/cryptography.md>), [google](<https://devfeed.tech/tags/google.md>), [post-quantum](<https://devfeed.tech/tags/post-quantum.md>), [post-quantum-cryptography](<https://devfeed.tech/tags/post-quantum-cryptography.md>), [public-key](<https://devfeed.tech/tags/public-key.md>), [quantum](<https://devfeed.tech/tags/quantum.md>), [risk](<https://devfeed.tech/tags/risk.md>)

### AI overview

The author explains that recent research suggests quantum computers capable of breaking classical public-key cryptography may arrive sooner than expected. Their blog already uses quantum-resistant cryptography, while Google and Cloudflare are targeting similar migrations.

### Source excerpt

Recent developments have the cryptography world on alert, fearing a quantum computer capable of breaking public key cryptography is imminent. Unbeknownst to me, my blog is already protected.

## Creating a personalised bin calendar

DevFeed: [Creating a personalised bin calendar](<https://devfeed.tech/articles/creating-a-personalised-bin-calendar-51104.md>)

Original publisher: [Read original article](<https://alexwlchan.net/2026/bin-calendar/>)

Published: 2026-03-26T17:33:58Z

Content type: tutorial

Language: en

Sources: [alexwlchan](<https://devfeed.tech/sources/alexwlchan.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [HTML](<https://devfeed.tech/topics/html.md>), [CSS](<https://devfeed.tech/topics/css.md>)

Tags: [calendar](<https://devfeed.tech/tags/calendar.md>), [css](<https://devfeed.tech/tags/css.md>), [domestic-life](<https://devfeed.tech/tags/domestic-life.md>), [html](<https://devfeed.tech/tags/html.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

A personal tutorial showing how to use Python, HTML, and CSS to generate a printable, personalised bin collection calendar from council PDF information.

### Source excerpt

Every year I use Python and a bit of CSS to create a fridge calendar that tells me about bin day.

[Next page](<https://devfeed.tech/sources/alexwlchan.md?cursor=WyIyMDI2LTAzLTI2VDE3OjMzOjU4KzAwOjAwIiwgImEzNjViNTFkLWNiOWYtNGJkNS05NDkzLWVhZTYzNzY4Y2Q2MyJd>)