Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
43 posts
Clear filters·5 min read

Light Browser · Story
The memory saver that made Figma run out of memory
I added Chromium's low-end mode to cut my browser's RAM, and about seven hours later removed it. It halves V8 heap limits, so heavy apps died with out-of-memory exits.
In short
- --enable-low-end-device-mode cut idle RAM, but it halves V8 heap limits, which heavy apps like Figma and Google Docs cannot live with.
- The fix removed the flag, raised the renderer cap from 4 to 16, and throttled my own RAM cascade so it stops squeezing the last open page.
- The crash page now says why a tab died, including "out of memory" and the exit code.
#cpp#webview2#chromium#memory#debugging
·6 min read

Movix · Story
I tried ISR for Movix, and the language cookie said no
I wanted popular watch pages served from cache. Reading a language cookie made every page dynamic, so after a restructure, a revert and a try and catch, I chose force-dynamic on purpose.
In short
- The site stores the chosen language in a cookie and reads it in the root layout and the page. Reading cookies makes a route dynamic, which collides with ISR.
- I tried a restructure, reverted it, then wrapped the cookie reads in try and catch, and decided within three minutes that this only hid the conflict.
- The final choice is force-dynamic, a deliberate trade for one server and a bounded catalog.
#nextjs#isr#caching#performance
·6 min read

Movix · Story
My video token check trusted a header the client sent
A token bound to an IP is only as good as the IP. Mine came from a client header, and a second rule pinned everyone to one fixed address. Three small commits in April 2025 fixed it.
In short
- The requester's address came from a header the client itself sent, so an IP-bound token was bound to whatever the caller claimed.
- Validation also demanded that the request match one fixed address written into the code, a leftover that had to go.
- I switched to the address set by the reverse proxy, made the stored address the only rule, and ran one worker per CPU with respawn.
#express#security#video-streaming#nodejs
·6 min read

TaskPad · Story
Two TaskPad bugs that failed without a single error on screen
A restored window that existed but never appeared, and an edit button that did nothing. Both came from code that kept the app alive and so hid the failure. Here is how I found each one.
In short
- Session restore could register a window and never show it, then report success. Fixed in 48b16bf (v1.3.5).
- Editing a comment failed inside a click handler that a global exception handler swallowed. Fixed in 25a3d6f (v1.9.4).
- Both bugs were invisible because the app was designed to survive errors, not to surface them.
#wpf#csharp#error-handling#debugging
·6 min read

TaskPad · Story
Hiding the # in TaskPad headings, except where you edit them
A heading looks cleaner without its ## marks, but then you cannot see or change its level. One AvalonEdit generator and one caret event hid the marks everywhere except the line you are typing in.
In short
- Heading marks are hidden by an AvalonEdit element generator, but only on lines that do not hold the caret.
- Two places in the generator must skip the same token, and two lines must be redrawn when the caret moves.
- The fix shipped as v1.3.1: 26 lines added and 5 removed across four files.
#wpf#csharp#avalonedit#editor
·5 min read

TaskPad · Story
How TaskPad replaces its own running exe, and what the checksum covers
Windows will not let you overwrite a running exe, but it lets you rename it. That one fact is the whole TaskPad updater. I also show what the SHA-256 check does not protect against.
In short
- The updater downloads the new exe to Temp, checks a SHA-256, renames the running exe to .old, copies the new one in, and rolls back if the copy fails.
- The installer is the same file: it starts in setup mode when "setup" appears in its own file name.
- The checksum is only checked when the release notes contain a SHA-256: line, and it comes from the same release as the exe.
#csharp#wpf#updater#windows
·6 min read

Unfair · Story
A memory scanner with a web UI needs a guard and a test for it
Unfair can write into any process I can open, and its Flask UI has no login. The only protection is a localhost check, and the one test that proves it. Design notes from a one-commit repo.
In short
- The repository has a single commit, so this is a design story read from the code and tests, not a bug-fix history.
- The server binds to 127.0.0.1 and a beforerequest hook returns 403 for any other address.
- testweb.py asserts that a request from 10.0.0.5 is refused, so the guard is tested and not only documented.
#python#flask#security#windows
·6 min read

Pterodactyl yolks · Story
SQL Server built fine and could not start under Wings
A passing docker build proved nothing. A file capability on sqlservr and an eval echo on the startup string only showed up once CI booted the image the way Wings does.
In short
- sqlservr ships with the capnetbindservice file capability, and Wings drops that capability, so the kernel refuses to exec it.
- Rewriting each executable removes the capability, and a CI boot test with Wings' uid and dropped capabilities now gates publishing.
- The same test caught the startup string being expanded with eval echo, which ran the panel's console banner as code.
#docker#pterodactyl#sql-server#ci#security