Today I Learned
Short notes on small things I learned while building. 11 so far. Longer posts are in Writing.
Backend and infrastructure
TIL: 'No module named' after an update meant a stale processMy agent said httpx was missing. It was installed. The running process had started before the update and was still on the old environment.
Backend and infrastructure
TIL: a gitignored sitemap goes stale (93 vs 123 URLs)My IndexNow script read public/sitemap.xml and sent 93 URLs. The live sitemap had 123. The local copy is gitignored, so it only updates when I build.
AI tooling
TIL: Hermes MCP headers read env vars from .env, not the shellMy MCP server answered 401 even though the API key worked. The header sent the literal text ${VAR} because the variable was only in my shell.
Backend and infrastructure
TIL: a pnpm override fixes a pinned transitive Dependabot alertA plain pnpm update would not move a transitive dependency pinned by its parent. A one-line pnpm override did, and GitHub closed the alert.
Backend and infrastructure
TIL: GNU tar ignores --exclude patterns with a trailing slashGNU tar skips an --exclude pattern that ends in a slash and packs the directory anyway. Drop the slash. macOS bsdtar does match it, so test where the backup runs.
Browser automation
TIL: synthetic change and blur events freeze React inputsDispatching synthetic blur and change events locks controlled React and MUI inputs. Calling the native property setter and dispatching input only avoids the freeze.
1 min readreactplaywrightBackend and infrastructure
TIL: Homebrew updated tailscale, but PATH ran an older copyI had three copies of one CLI on my PATH. Homebrew warned that the new one would never run by name, and which -a showed the shadowing.
Backend and infrastructure
TIL: a SQLite TEXT column compared to a number compares as textA TEXT-typed timestamp column compared against a number turns the number into text, so the filter matched rows it should not. Casting the column fixed it.
Backend and infrastructure
TIL: git worktrees run hooks from the main checkoutI edited a pre-push hook in a worktree and nothing changed. Git was running the installed copy from the main repo.
Backend and infrastructure
TIL: Vite reads the nearest tsconfig, not the one that includes itHundreds of tests failed with React is not defined. The fix was one line in the tsconfig that the component files actually resolve to.
1 min readvitetypescriptBackend and infrastructure
TIL: piping into tail hides a failed commandA failed git push piped into tail still exited 0, and the script moved on. set -o pipefail makes the pipeline report the failure.