Programming

Migrating Existing Tests to ApprovalTests

Posted on

This is a short article to describe how I migrated a bunch of existing verbose tests to ApprovalTests. All of the examples in this article are based on my Shameless Green in C# library, which will be familiar to reader’s of 99 Bottles of OOP. Here are some quick links you might want once you […]

Windows

Failed to Load penimc.dll and Related Problems

Posted on

Following on from a series of recent Windows Updates, a couple of our servers had a problem running Server Manager (“Server Manager has stopped working”) and SQL Management Studio (“Failed to Load penimc.dll”). The details of the Server Manager error were in the event log: Application: ServerManager.exe Framework Version: v4.0.30319 Description: The process was terminated […]

Visual Studio

Open Visual Studio With Source Control Explorer Open

Posted on

If you find yourself constantly opening Source Control Explorer, you may want to use this handy shortcut to opening Visual Studio with the Source Control Explorer open, instead of the Start Page. Open the properties for your Visual Studio shortcut and change this: “C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\devenv.exe” And change it by adding the […]

Programming

ASP.NET MVC Image Squishing with Picz

Posted on

Responsive images have been around for a while and have wide browser support as well as a strong fallback story for older browsers. The one thing holding us back from using them is the manual workflow… Arrive at office Create images at different sizes Upload images Write an HTML tag listing all the image sizes […]

Programming

Find Code Hotspots with ndepend

Posted on

One of the constant battles in software development is predicting where problems are in your code. There are lots of ways to cut up your codebase in order to predict where problems are likely to occur; I have been experimenting with some reports over check-in history in Visual Studio Team Services to find files with […]

Programming

Web Farm Cookie Encryption in ASP.NET

Posted on

If you want to secure a cookie, you need look no further than the System.Web.Security MachineKey class. Using this class, you can protect and unprotect text quite simply. If you are running without load-balancing, you can skip to the wrapper methods at the bottom of the article, which give you methods for protecting and unprotecting […]