Case studies
#powershell#debugging#windows#electron#docker#pterodactyl#python#csharp#wpf#bash#security#cpp#git#performance#ci#nodejs#pyside6#react-native
37 posts
Clear filters·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

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
·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
·11 min read

TaskPad: a 1 MB WPF task editor that installs and updates itself
Notepad is too plain and VS Code is too heavy for a to-do list. I built TaskPad in C# as one 1 MB exe, and shipped 29 releases in about eleven hours. Here is what broke along the way.
In short
- The whole app is one exe: AvalonEdit is embedded as a resource and loaded through an AssemblyResolve handler, so there is no DLL next to it. The v1.9.4 build is 1,079,296 bytes.
- The same file is the portable app, the per-user installer (it detects "setup" in its own file name) and the updater, which swaps a running exe by renaming it to .old.
- Comments are stored as CriticMarkup inside the text file, so a note with a full discussion still opens in any editor.
#csharp#wpf#windows#desktop
·11 min read

Chiti: Replacing 11 Sockets With One Typed Real-Time Layer
One socket for a six-role delivery and taxi app, then the real work: an 11.3 second handshake, positions the server accepted but never stored, and a token that went stale in the background.
In short
- Eleven unauthenticated Socket.IO connections became one connection per session, owned by a single module that components never touch.
- Status pings invalidate queries, position frames patch the cache, everything else goes on a small typed bus. Frames are parsed as unknown with Zod.
- Real devices taught more than design did: an 11.3 second handshake, a position the server broadcast but never stored, and a socket that stayed anonymous after a token refresh.
#react-native#socket-io#typescript#tanstack-query
·13 min read

DailyBrief: a personal AI advisor on the desktop with PowerShell
A 391 MB digest, a mojibake fix that never worked, and a 30k-token baseline cut to 1.2k: the real bugs behind DailyBrief, a desktop AI advisor built on PowerShell and a headless Claude CLI.
In short
- The unit of planning is the project, not the folder: a registry rebuilt every 30 minutes with no AI involved.
- Scripts gather and compress activity into a small digest, the model returns a small JSON patch, and a script applies it.
- A stripped claude -p session cut the recorded per-call baseline from about 30k tokens to about 1.2k.
#ai#powershell#electron#claude
·10 min read

DiskDesk: a Windows desktop on any drive, built with Python and COM
A second Windows desktop on any drive, built by calling the shell instead of imitating it. The hard parts: context menus that came up empty, and an updater that must never ask a question.
In short
- Wherever Windows already has an API, DiskDesk calls it: context menus, thumbnails, file operations and the clipboard all go through the shell.
- Real context menus need IContextMenu2 and IContextMenu3, which pywin32 does not expose, so shellmenu.py calls raw vtable slots through ctypes and forwards menu messages from a hidden window.
- The folder menu and the real desktop's own entries are merged, and folder-scoped verbs come only from the DiskDesk folder so Paste never hits the real Desktop.
#python#windows#qt#com
·11 min read

Light Browser: a native C++ browser shell on WebView2 and WebKitGTK
A small C++ browser on the system web engine. One bad parser branch took 215 sites offline, and the fix shaped the whole blocker. Plus the OOM, antivirus and update bugs I hit.
In short
- Reusing the system web engine keeps the Windows exe near 2 MB (2,137,088 bytes in my last local build), but I only get the hooks WebView2 exposes.
- A parser branch I missed once took 215 sites offline. The fix, and the rule behind it, is that the blocker drops any rule it cannot honor exactly.
- Chromium's low-end mode saved RAM but killed Figma-class apps with out-of-memory crashes, so I removed it a day after adding it.
#cpp#webview2#webkitgtk#browser