Jim's Depository

20 years of rewriting the same code
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.
networking category
Keep a small network reachable through broadband failures without BGP or expensive circuits. Linux policy routing, interface-specific SNAT, conntrack cleanup, VLANs, and 6rd IPv6 address the failure modes that make simple dual-WAN setups misroute or stall existing traffic.
Uncategorized category
Avoid runny filling, shrinking meringue, and scorched peaks with hard-won timing and assembly advice for a fragile heirloom dessert. It also gives you permission to skip the notoriously difficult homemade crust.
more articles