adding Console2 context menu

Here's a quick registry entry for creating a content menu for launching Console2 in the current directory Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\Console2] @="Console2 Here" [HKEY_CLASSES_ROOT\Directory\shell\Console2\command]…

get execution directory path

Especially with applications running in the context of IIS/ASP.NET where the physical location on disk is a random cache directory, getting the path of the execution directory at runtime can be a bit tricky. I'm talking about the…

detecting fatal exceptions

If you haven't read Clemens Vaster's Are You Catching Falling Knives post, you need to. The gist of it is you need to be really careful about overly wide exception catch blocks and be sure you're not catching really bad…

Installing Windows 10 on Dell XPS 12

I tried to install Windows 8.1 as well as other version of Windows on my Dell XPS 12 in recent months and failed repeatedly. I couldn't get the USB thumb drive to be recognized. Early on I found Mike…

Rich Enumerations

Unless Java, C#'s enumeration implementation is quiet anemic. They are dumb data constructs incapable of housing methods or any kind of behavior. For that reason, I've largely learned to avoid them entirely. I'll occassionally use them for wire-level contracts,…

rebooting windows remotely with automation

If I wrote powershell all day every day I'm sure I'd get used to it and not find it so damn weird. But compared to just about every other language on the planet, Powershell is flat out odd. Switching back…

my sublimetext 3 settings

With a new machine comes an opportunity to go through your workflow and setup rituals, review your settings, and personal preferences. A staple for me is SublimeText and here are my default setting overrides for version 3 Commentary: frankly, i…

sublimetext 3 context menus

borrowed from here @echo off SET st2Path=C:\Program Files\Sublime Text 3\sublime_text.exe rem add it for all file types @reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 3" /t REG_SZ /v…

Photo by Blake Richard Verdoorn on Unsplash