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

Desktop Grid: a click-through desktop overlay in Python and Qt
I wanted labeled zones drawn on my Windows desktop that never block a click. Qt swallowed input, so I toggled one window style on a 60 ms poll. I also built a feature in 10 commits and reverted it.
In short
- The overlay is a translucent Qt window across the virtual screen, pinned just above the wallpaper, and clicks pass through because a 60 ms poll toggles the WSEXTRANSPARENT window style.
- Desktop icons are read and moved by sending list-view messages to explorer.exe and exchanging data through memory allocated inside that process.
- Icon layouts are saved per display setup, keyed like 2560x1440@1, and restored a moment after the resolution changes.
#python#pyside6#windows#ctypes
·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
·7 min read

DomainHunter: checking domains via RDAP, WHOIS and DNS
Most 'is it free?' tools guess and show a $2 teaser that renews at $44. I built a CLI that asks the registries directly and ranks names by what they cost over several years.
In short
- Availability is never assumed: RDAP first, then WHOIS on port 43, then DNS over HTTPS, and anything unresolved is unknown, not free.
- A 404 from rdap.org only means "free" if the bootstrap actually redirected to a registry host.
- Prices are ranked by register-then-renew total, so a $2.57 .store that renews at $43.77 stops looking cheap.
#Python#RDAP#WHOIS#CLI
·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

Making SSMS work with MySQL: a linked server and live views
SSMS only speaks SQL Server's TDS protocol, so shared-hosting MySQL was out of reach. I built a bridge in four releases in one afternoon, and the sync bugs taught me the most.
In short
- SSMS cannot open MySQL, so the bridge installs a linked server on LocalDB and creates one OPENQUERY view per MySQL table.
- Four tagged releases landed on 8 Oct 2026, from f7b7aed at 12:42 to 8f22162 at 13:22 (+0400).
- Inserts through the views failed when columns were omitted, so each view got an INSTEAD OF INSERT trigger.
#C##SQL Server#MySQL#Windows
·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
·8 min read

Simple Video Compressor: an Electron app around FFmpeg and NVENC
A small Windows app that shrinks videos with FFmpeg. The interesting parts: GPU encoder selection, presets that mean different things on NVENC, and a live size estimate built from FFmpeg's stderr.
In short
- The app picks an NVENC or AMF encoder only if the bundled FFmpeg build lists it, and otherwise falls back to libx264 or libx265.
- The UI offers x264 presets such as ultrafast and veryslow, so the hardware path whitelists its own preset names and falls back to default for anything else.
- The v2 redesign (b899b60, Mar 2026) replaced a file-size poll with FFmpeg's own size= output and shows an estimated final size from two blended estimators.
#electron#ffmpeg#javascript#desktop-app
·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