The Blog
Exploration Of Thought
Thoughts on autonomy, self direction, digital business and life.
Castle ActiveRecord – NonUniqueObjectException
Fixing Castle ActiveRecord's NonUniqueObjectException by evicting a cached NHibernate object from the session after you're done reading it.
Donn Felker – March 29, 2009
Nine Questions with Me
I sat down for Chris G. Williams' long-running Nine Questions interview series, joining a list of some pretty notable names. Here's the interview.
Donn Felker – March 26, 2009
A New Development Term: Blackfield Development
Brownfield development gone nightmare mode: legacy code so obscure and untested even its original authors can't explain it. I call it blackfield development.
Donn Felker – March 25, 2009
ASP.NET App – is not a valid Win32 application
Getting is not a valid Win32 application on an ASP.NET MVC app under IIS7? Enable 32-Bit Applications in the app pool's advanced settings.
Donn Felker – March 24, 2009
Cool YouTube Tip : Seek
Quick YouTube trick: append #t=2m13s to any URL to jump straight to that timestamp, and use the start parameter when embedding videos.
Donn Felker – March 20, 2009
Unit Testing JsonResult in MVC
A simple trick for unit testing JsonResult in ASP.NET MVC: cast the anonymous type to a RouteValueDictionary and assert on its keys.
Donn Felker – March 20, 2009
AHK Script for Enabling/Disabling Spark Intellisense
An AutoHotkey script that toggles Visual Studio between ReSharper and Spark View Engine intellisense with one keyboard shortcut, no manual menu digging.
Donn Felker – March 2, 2009
An Exercise in Managing the Measurements
NCover only profiles assemblies touched during test runs, so untested code vanishes from coverage reports. Here's the hack that forces it to load everything.
Donn Felker – February 19, 2009
Build Report Will Not Show in CCNET
A CruiseControl.NET gotcha: adding NCoverExplorer to dashboard.config needs both a CCNET service restart and an IIS reset, or the report never shows.
Donn Felker – February 12, 2009
Fluent Func/Expression Reflector
A reader's cleaner take on getting property and method names via C# Expression/Func reflection, wrapped in a fluent, static NameOf<T> helper.
Donn Felker – February 12, 2009
Using Expressions and Func as a Reflection Tool
Tired of magic string column names in Castle Active Record queries? Use Expression<Func<T>> lambdas to resolve property names at compile time.
Donn Felker – February 10, 2009
Excluding Integration Tests from your Automated Build
How to tag tests as Integration and exclude them from your CruiseControl.NET build using NUnit categories and the NAnt NUnit2 task.
Donn Felker – February 9, 2009