THE BLOG
Exploration of Thought
Thoughts on autonomy, self direction, digital business and life.
Castle ActiveRecord – NonUniqueObjectException
Ran into a small issue this morning. Posting the solution here should help me find it next time in a jiffy. I was performing some database validation – I needed to ensure that x object with y name does not already exist in the DB before submitting it, and more stuff, etc. I have to…Donn Felker - March 29, 2009
Nine Questions with Me
I’ve known Chris G. Williams for awhile now and he recently asked me to partake in his awesome-ness known as “Nine Questions”. He’s been doing it for awhile now and has has some pretty notable names in his list. I’m proud now be a part of that list. To read the nine question interview go…Donn Felker - March 26, 2009
A New Development Term: Blackfield Development
I’ve been through the trenches of the consulting world, the good the bad the ugly, I’ve had the the full time jobs, and the freelance work, etc, etc etc. I’ve experienced projects from the ground up, maintenance projects and projects that didn't even leave the whiteboard. During the years of participating in many projects I…Donn Felker - March 25, 2009
ASP.NET App – is not a valid Win32 application
Never seen this one before until this morning. Well, I’ve seen the “not a valid Win32 application” error a ton of times, but this is the first time on with an ASP.NET app (running MVC). How to Fix If you ever see this and your app is running IIS7, here’s the first thing to…Donn Felker - March 24, 2009
Cool YouTube Tip : Seek
Youtube TIP: You can link and seek to a specific point in a video using #t=2m13s at the end of a URL. The t=2m13s means t = time m = minutes s = seconds Example As shown in the video below you can specify a particular part of a video. For example, I really like…Donn Felker - March 20, 2009
Unit Testing JsonResult in MVC
Unit testing ActionResults is fairly easy yet JsonResults can pose a problem. I’ve seen a few ways to do this and they just seemed like “too much” to me. So here’s a way that I’ve devised that works very well. Its sort of has a “hack” feel to it, but it works perfectly. Controller Action:…Donn Felker - March 20, 2009
AHK Script for Enabling/Disabling Spark Intellisense
As stated here the Spark View Engine’s Visual Studio Integration does not support the ReSharper intellisense code complete mode. This is a HUGE issue for me as I use a lot of ReSharper templates. Turning off the ReSharper code completion slows me to a crawl because the ReSharper templates no longer work. Major bummer. However,…Donn Felker - March 2, 2009
An Exercise in Managing the Measurements
I’m a firm believer in the phrase: “What gets measured gets managed.” When it comes to unit testing code coverage is something we can use to measure how much of our code is under test. By no means does this mean that the code that is under test is actually covered by valid tests that…Donn Felker - February 19, 2009
Build Report Will Not Show in CCNET
Ok, stupid … but time consuming. If you edit your dashboard.config in CCNET to incldue NCoverExplorer details and for some reason the report NEVER SHOWS you need to do the following: Restart the CCNET Service Reset IIS (iisreset command) I forgot to do #2 and for an hour and a half I banged my head…Donn Felker - February 12, 2009
Fluent Func/Expression Reflector
Lou commented on the last post about using Expression and Func as an expression tool and came up with a much better solution than I had. I’m going to repost it here for everyone else to see in the RSS reader. This is the test class of whom we’d like to get the property (and…Donn Felker - February 12, 2009
Using Expressions and Func as a Reflection Tool
I’m using Castle Active Record for a project that I’m on and I constantly find myself having to provide column names when creating queries through the ActiveRecordMediator<T> object. Here’s an example: ActiveRecordMediator<Customer>.FindOne(Expression.Eq("FirstName", "Bob")); The column name “FirstName” is not strongly typed. If I change that name (or anyone else does) and they don’t use…Donn Felker - February 10, 2009
Excluding Integration Tests from your Automated Build
A simple tip to exclude certain tests from running during your automated build. In this scenario we have a bunch of tests inside of a particular DLL. Inside of these tests we have a folder that is for “integration tests”. These tests are run usually once a day in a nightly build and are also…Donn Felker - February 9, 2009