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

Desktop Grid · Story
Ten commits for a Desktop Grid feature, then one revert
I built a dragging mode for Desktop Grid in 30 minutes, with each commit patching the last one, and then reverted all of it. The history does not say why, and I will not invent a reason.
In short
- The dragging mode took 10 feature commits between 04:59 and 05:25, and almost every one fixed a side effect of the one before.
- One revert commit, cfb8b58 at 05:29, removed 270 lines and added back 27. v1.0.0 was published two minutes later.
- The commit messages tell what the feature was doing. They do not tell why I reverted it.
#python#pyside6#git#scope
·6 min read

Desktop Grid · Story
Desktop Grid: my Qt overlay swallowed every click on the desktop
I ported Desktop Grid to PySide6 and the overlay blocked the whole desktop. The fix, three minutes later, was a 60 ms timer that flips one Windows window style.
In short
- tkinter got click-through from a colour key. Qt's per-pixel alpha window does not, and WMNCHITTEST with HTTRANSPARENT did not forward clicks to other processes.
- A timer polls the cursor every 60 ms and toggles WSEXTRANSPARENT on the overlay.
- Changing window flags in Qt recreates the native window and wipes extended styles, so they are reapplied each time.
#python#pyside6#qt#win32
·5 min read

DiskDesk · Story
My right-click menu came up empty: pywin32 has no IContextMenu3
To show Explorer's real context menu from Python, I had to call IContextMenu2 and 3, which pywin32 does not expose. Raw vtable slots and a hidden window filled the empty submenus.
In short
- pywin32 exposes IContextMenu but not IContextMenu2 or IContextMenu3, and without those the shell leaves its dynamic submenus empty.
- shellmenu.py calls the COM methods through raw vtable slots with ctypes.
- A hidden window owns the popup and forwards menu messages to IContextMenu3, falling back to IContextMenu2.
#python#com#ctypes#windows
·5 min read

domain_hunter · Story
When a 404 does not mean the domain is free
rdap.org answers 404 for both a free name and a TLD with no RDAP server. DomainHunter only trusts the 404 if the request was redirected to a registry host.
In short
- rdap.org returns a plain 404 for extensions with no RDAP server at all, such as .io and .gg.
- The code counts a 404 as "free" only when the final URL is a registry host, not rdap.org itself.
- Otherwise the result is unknown, and the check falls through to WHOIS.
#python#rdap#domains#http#debugging
·5 min read

domain_hunter · Story
Two traps in a domain checker: a blank WHOIS line and a fake TLD
A regex that crossed a newline would read the next field as a WHOIS host, and a typo extension returns NXDOMAIN, which looks free. Both fixes are a few lines in availability.py.
In short
- WHOIS host discovery uses [^\S\r\n] instead of \s, so a blank whois: line (such as .ga) cannot swallow the next line.
- A name under a non-existent extension gets NXDOMAIN, so the DNS check first looks the extension up in the IANA root zone.
- The repository has one commit, so I tell both stories from the code and its comments.
#python#whois#dns#regex#domains
·6 min read

Light Browser · Story
One parser branch took 215 sites offline in my browser
Cosmetic filter rules I did not support fell through to the hosts-file branch and became blocked domains. chatgpt.com, bing.com and instagram.com stopped loading. Here is the line that did it.
In short
- Filter lines I did not understand were not skipped. They fell into the last branch of the parser and were read as hostnames.
- The fix is an explicit skip for four cosmetic syntaxes, plus a stricter rule for what counts as a trailing comment.
- The same commit made $third-party rules fire only on cross-site requests.
#cpp#adblock#debugging#parsing
·6 min read

Light Browser · Story
Why my browser signed everyone out: the host exited first
Chromium writes its cookie store while it shuts down, and my Win32 shell quit before it finished. The fix was a shutdown barrier that waits for the engine process to exit.
In short
- Chromium saves the cookie database, site storage and an encryption key during engine shutdown. My shell closed its window and quit first.
- The fix is TeardownEngine: close every WebView, drop the environment, then wait on the engine's process handle.
- The same barrier now covers Windows sign-out, the updater restart, deep sleep and engine crashes.
#cpp#webview2#windows#debugging#shutdown
·6 min read

Light Browser · Story
My browser's import feature looked exactly like an info-stealer
Reading other browsers' saved logins is what credential stealers do, so antivirus flagged it. I moved the code into a separate on-demand exe and made the installer per-user.
In short
- Profile-reading and DPAPI code moved out of LightBrowser.exe into a separate lbimport.exe, downloaded only when someone clicks import.
- The tracked main build went from 2,345,984 to 1,323,008 bytes.
- A second commit made the installer per-user, so no UAC "unknown publisher" prompt appears on install or update.
#cpp#windows#security#antivirus#installer