Jim's Depository

20 years of rewriting the same code
embedded category
A USB console command can wipe the secondary bootloader and force a Pico back into UF2 mode, eliminating physical reset-button access during development. The historical technique also exposes RP2040 flash-programming hazards, watchdog recovery, and why `reset_usb_boot()` is now the safer choice.
embedded category
Programmable I/O can make USB devices responsive without a debugger bolted onto every prototype. A software route back to RP2040 boot mode plus Debian’s mount tooling could turn reflashing from a button-timing ritual into a single Make target.
femtoblogger category
Browser-driven color schemes can make a lightweight publishing interface easier on the eyes without maintaining separate themes, while CSS variables help avoid mismatched form controls in Safari.
femtoblogger category
A quick Markdown-engine swap and Prism syntax highlighting show how a small Swift publishing stack can reduce maintenance while making code-heavy posts easier to read—without turning deployment into a project of its own.
swift category
Build embedded SSH or management consoles without hand-rolled dispatch, broken whitespace splitting, or awkward global state. ParsableCommands extends Swift Argument Parser with command routing, shell-aware tokenization, and a practical pattern for injecting runtime context.
swift category
Avoid building and securing a hidden admin HTTP surface just to inspect a running service or flip a setting. SSHConsole uses SwiftNIO SSH to expose plain-text operational commands on a separate, key-authenticated port.
swift category
A lightweight SSH control plane can simplify backend operations without bolting an interactive shell onto your service. The build exposes the sharp edges of SwiftNIO’s event loops and ArgumentParser state, including a practical workaround for transient command context.
femtoblogger category
A missing safe mode in a third-party Markdown parser can turn a harmless long post into a publishing failure—or an XSS risk. The debugging trail shows how edge-case HTML handling and an unmaintained dependency complicate even a small blog fix.
macos category
SwiftUI can turn a prototype or WidgetKit companion into a working app with startling speed, but its clean declarative surface hides sharp limits around tables, text editing, pixel-precise drawing, and Xcode diagnostics. Learn where AppKit/UIKit bridges—and better documentation—still determine whether “cross-platform” is practical.
more articles