Blog Posts
Everything published on this blog since 2017, newest first. The SQL Server writing now lives at sqldba.blog.
Guides: Claude Code · PowerShell · WSL · Windows
-
Find Which Process Is Using a Port in PowerShell
Find which process is using a port on Windows with Get-NetTCPConnection and Get-Process, what it means when the answer is svchost or System, how to check UDP ports, and the netstat equivalent.
-
Top Processes by Memory in PowerShell (Get-Process)
List the ten processes using the most memory with Get-Process and Sort-Object, what WorkingSet64 and CPU mean, totals per program, and sorting by CPU instead.
-
Fix “UnicodeEncodeError: ‘charmap’ codec can’t encode character” in Python on Windows
Python on Windows stops with UnicodeEncodeError: 'charmap' codec can't encode character when it prints an arrow, a long dash or an emoji to a pipe or a file. Why it happens and the fixes: PYTHONIOENCODING, UTF-8 mode, sys.stdout.reconfigure, and why chcp 65001 does not help.
-
Check Free Disk Space in PowerShell (Get-Volume)
Show size, free space and percent free for every drive with Get-Volume, flag drives under 10 percent, check a remote server, and the Get-PSDrive alternative.
-
Copy PowerShell Output to the Clipboard (Set-Clipboard)
Copy PowerShell output to the clipboard with Set-Clipboard, keep the table layout with Out-String, copy the current folder path, append, read it back with Get-Clipboard, and the Windows PowerShell 5.1 file-copy trap.
-
Base64 Encode and Decode a String in PowerShell
Encode a string to Base64 and decode it back with [Convert] and [Text.Encoding], why the encoding must match, -EncodedCommand, and encoding a whole file.
-
Claude Code: Missing “mcpServers”, found “servers” instead
Claude Code reports Missing "mcpServers", found "servers" instead when a .mcp.json was written in the VS Code and GitHub Copilot format. How to find the file, rename the key or move it to where VS Code expects it, and why a file in your user folder shows up in every project.
-
Check if PowerShell Is Running as Administrator
Check if PowerShell is running as administrator with one line, stop a script early when it is not, use #Requires -RunAsAdministrator, and why an admin account is not enough.
-
CLAUDE.md: Project Memory for Claude Code
Claude Code forgets everything between sessions unless you write it down. Where CLAUDE.md lives, what to put in it, /init, CLAUDE.local.md, .claude/rules/, and the auto memory Claude keeps for itself.