Free Code: Deferred calls to IDispose

I’ve been dealing with heavy use of Stream types recently. Not as in the fairly common usages of say, reading a text file or whatnot. We’re talking Streams that transform data from one format to the other transparently to the caller, that run across various nodes in a cluster (think a Stream of Streams), that…


IIS Kerberos Authentication Checklist

Just cross posting so I don’t lose track of this.


Free Code: Windsor Castle Autofactory Facility

So I recently was working on a system that used extensive need of delayed factory support for dependencies on our components. Effectively if ClassDepending needed to use ClassDepended, the constructor parameter was instead Func<ClassDepended>. This solution was built on Windsor container. Having to remember to register all those custom factories in our bootstrap routines was becoming a huge…


Free Code: WriteOnlySet<T>

So had a fun business entity that needed a write only set of data that contained no duplicates (involved a security auditing trail if you care to know). That’s when I realized we didn’t have anything like this in the BCL. So here’s a fun little ISet<T> implementation that proxies any existing set to provide…


Yes you can execute PARAMETERIZED sprocs with EF Fluent API Code Only (and more!)

This is really an add-on to this post here. Turns out most people were only thinking that you could execute SQL strings only as opposed to detailed parameterized SQL statements. That’s not correct. It’s all supported and approved. Scenario 1. Using Parameterized SQL statements So this covers selects as well as invoking sprocs. If you…


A Case for Test Driven Development

Powerpoint outline for a class I used to teach regarding the topic of TDD. Recently was asked by a coworker to use this and decided to share with the world. Download as use as needed for your own training. Written in 2005 and references Visual Studio 2003 but points still hold.


Simple WCF netMsmq Example (or Step 1 to stop reinventing yet another MSMQ clone)

It’s pretty obvious that MSMQ is a bit of a dark art out there. People know it exists, everyone knows someone somewhere that knows a guy who once did something with it, and like practitioners of esoteric arts, the technology is looked upon with distrust. In fact to the point that I see team after…


There’s no kill switch on awesome…

Been meaning to post this for a long while now. Pretty much sums me up 🙂 thanks to Scott Adams and his wonderful wit!


Powershell Automation and Remoting (a c# love story)

OK all of you readers out there should know and love Powershell by now and you are using it constantly, right? If not get on with it! One of the most exciting things that came out of version 2 was the ability to perform remoting. Basically the ability to connect a session to a remote…


Estimating the size a cube

where the set of D is dimensions and the set of M is measures. Let F(x) calculate the number of members and G(x) the size of the member.   Debate.  edit: I should have noted this is the approximation of the size. Depending on storage system there’s obviously overhead to this.