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

TaskPad setup quits the running copy over its own named pipe, not with Kill
The installer used to leave the old TaskPad running, so updates waited for a restart. Setup now sends a quit message through the single-instance pipe, so tabs and unsaved text survive.
In short
- Setup now asks the running TaskPad to quit over the named pipe the app already uses for single-instance handoff, then falls back to closing windows and, only if allowed, killing the process.
- A quit request saves the session and closes windows without prompts, so tabs and unsaved text survive the reinstall.
- The interactive installer asks before forcing; the silent installer forces after 15 seconds, because nobody is there to answer.
#csharp#wpf#named-pipes#installer#windows
·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

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

Building a Windows memory scanner in Python with ctypes and NumPy
Unfair is a Windows memory scanner in one Python file. The hard parts were not the Win32 calls: they were narrowing 5,827 candidates to one, guarding a tool that can write to any process, and shipping it as an elevated exe.
In short
- One scan proves little: searching for 100 returns thousands of addresses, and two or three rescans after the value changes usually leave a handful.
- Only committed, unguarded, writable private or image regions are read, which shrinks the work a lot compared with the whole address space.
- Unknown-value scans snapshot every eligible region and filter with NumPy, at the cost of up to hundreds of MB, then fall back to a cheap address list under two million survivors.
#python#ctypes#windows#numpy