Jim's Depository

20 years of rewriting the same code
coding category
A one-variable workaround restores visibility to QEMU’s curses monitor on macOS, sparing you from unreadable black-on-black console sessions in Terminal.app.
femtoblogger category
A lighthearted confession about adding one more cat clip to the attention economy—and why the internet keeps rewarding the irresistible.
coding category
Avoid surprise image requests, mixed-content failures, and accidental cross-origin leaks when processing fetched markup. `DOMParser` keeps scraped HTML isolated so client-side extraction doesn’t quietly turn into a network and performance problem.
linux category
Avoid a post-upgrade boot failure by checking MBR sector alignment and GRUB2’s embedding space before touching apt. The guide flags risky LVM-backed /boot layouts and outlines a recovery path using GPT, a BIOS boot partition, and pvmove.
coding category
Keep live camera views current without cache-busting every minute: an iframe-triggered reload lets browsers revalidate the resource, avoid unnecessary transfers, and sidestep the page flicker that makes simple image swaps feel broken.
femtoblogger category
A small Go rewrite can trade framework cleverness for a statically checked, self-contained binary that survives runtime upgrades. It offers a practical case for choosing explicit code and Markdown when long-term maintenance matters more than abstraction.
embedded category
Avoid unexplained SATA hangs, boot-media traps, and marginal USB power when turning an Allwinner A20 board into a reliable Linux appliance. Practical kernel, U-Boot, and hardware lessons can save hours of trial-and-error.
coding category
Keep presentation files readable for non-programmers and prevent business logic from leaking into generated code. View0’s deliberately small Lua template vocabulary enforces a cleaner model-view boundary for source generation and other structured output.
coding category
Clang’s analyzer can catch leaked allocations hiding in rarely exercised error paths, where manual ownership reasoning tends to slip. Its concise execution traces make static analysis practical for legacy C without burying developers in noisy warnings.
linux category
Avoid capacity-planning surprises when heterogeneous workloads hit Linux servers: Intel’s OpenCL stack may leave GPU silicon idle, forcing CPU-only execution and changing the performance assumptions behind HD Graphics-equipped deployments.
more articles