Tricks with Vim

I initially felt that a few things in Vim are just…meh. I want my tabs to take up 4 spaces instead of 9. I want syntax highlighting for LESS or TypeScript. There are better ways, right? You can customize Vim by creating a .vimrc file in your home directory.  vim ~/.vimrc Tab Settings Quick primer: … More Tricks with Vim

Adding other NuGet Package Sources in Visual Studio

If you use NuGet package sources, you will need to add a new package source to your preferences in Visual Studio.  In VS 2012 and 2013, this is under Tools –> Options –> Library Package Manager –> Package Manager Settings –> Package Sources).  If you want to try out a cool new trick: Ctrl + Q package sources … More Adding other NuGet Package Sources in Visual Studio

Using additional NuGet Package Sources on a Build Server

Now we can see the new package source on our machines, and download all kinds of fun things from it. But how do we give other servers (e.g. a build server) knowledge of this new package source? NuGet already thought of this (thank you kindly).  Check out the NuGet.targets file (once you’ve enabled Package Restore on the … More Using additional NuGet Package Sources on a Build Server

Model binding a collection with MVC and .NET 2.0

After about 3 hours of frustrating debugging, I came across a quirk/bug when using: MVC .NET 2.0 / 3.5 Model binding a collection Imagine you have a collection of, say User objects.  And you would like to bind that collection to your view, but you only want to display some of the users.  For example, only admin users.  Your … More Model binding a collection with MVC and .NET 2.0