Life. Code. Linux.
I build software and write about tech and life.
Products
All 3 →Writing
All 31 posts →- First Principles· Part 1Tokens: why models do not count in words
Context windows, prices and output limits are all counted in tokens. Here is what a token is, with real tokeniser output, and why it is not a word.
- PHP 8.6: what changes in code you already have
PHP 8.6 run on the official image: partial application and clamp() for everyday code, new session defaults, and the helper that now throws.
- What Modern Web Guidance's legacy scan catches
legacy-scan checks 52 rules for specific UI hacks, not old code in general. A 2013 boilerplate and Bootstrap 5.3.8 both come back clean.
- Claude Code Code Mode: fix your hooks first
Code Mode lets Claude Code batch tool calls into one JavaScript step. Before you turn it on, check how your PreToolUse hooks read Bash commands.
- Moving Puppeteer and Playwright jobs to Kitesurf
Kitesurf is a one-parameter switch for Browser Run CDP scripts. Drop keep_alive when you add it, and keep video, WebGL and bot-challenge jobs on Chromium.

