• What to do when your graphics drivers fail in Windows 10

    Windows Update Screwed Me

    Keeping Windows up to date is normally a good idea. Keeps your system secure and blah, blah, blah… Not such a good idea if you have a Lenovo X1 Carbon. I dutifully installed a recent update to have my laptop restart into a black screen. Computer on and apparently at the lock screen, but no display. Tried plugging in an external monitor, but still nothing. Windows update screwed me. I needed to roll back, but how? As far as Windows was concerned the update was a success. I’ve booted properly… can’t be an issue here. After spending a while researching the problem, it looked like the touchpad or display drivers getting updated were likely the issue.

  • Midpoint Rounding Options in C#

    Midpoint Rounding

    Decimal midpoint rounding options in C# default to To Even. This was a head scratching moment for me at first, as the way us humans have been taught to round is generally Away From Zero.

  • Getting Disqus comments to work on Jekyll

    So, I’ve finally got Disqus comments working properly on this blog.

  • Linq Aggregate vs String.Join

    A task I seem to do fairly regularly is joining id’s into a single, comma separated string. These id’s tend to come from collection of objects, so I use linq’s Select method to convert them into a collection of id strings.

  • Install node.js NPM packages globally without sudo

    I’ve been using Visual Studio Code for a while now; it’s a great, lightweight editor that has Visual Studio-esque intellisense… for javascript! In order to get the code completions for node.js, you have to install the typescript definitions. This is done through tsd, which is installed through npm (the Node Package Manager).

  • SVN externals and pre-build events

    VS Logo Just solved a source control problem for a co-worker that I thought was worth sharing.

  • Using Linq in C#

    Linq syntax can be difficult to grasp when you see it for the first time, but once you wrap your head around it it’s actually quite simple. To start with you need a collection of stuff; anything that implements IEnumerable<T>, in this case an integer array.

  • C# UrlEncode and Friends

    I recently ran into a problem whilst rewriting part of an auto update DLL used for keeping internal C# applications up-to-date. I was removing dependencies that weren’t compatible with dotNET4.5. The auto updater reads an XML feed from a TeamCity continuous integration server, comparing version numbers to see if there’s a newer Release version of an application available.

  • Getting started... Jekyll and GitHub Pages

    It’s a blog!

    So, I made two websites today… an ASP.NET MVC 4 site at work that monitors a backup server, displaying a report of the SVN backup status of several repositories… and this one!