The Caching Pattern

Here’s a little something that I term “the caching pattern” for using the ASP.NET cache object: Object cacheItem = Cache[key] as DataTable; if(cacheItem == null) {   cacheItem = GetData();   Cache.Insert(key, cacheItem, null, DateTime.Now.AddHours(1), TimeSpan.Zero); } return (DataTable)cacheItem;   The as keyword will try to cast Cache[key] to DataTable and if unsuccessful it will […]

Trying out w.bloggar 3.01

I just installed w.bloggar 3.01 and the WMPAmplog Plug-In. Let’s see how it works… I used Daniel Bright’s setup instructions to get set up in about 20 seconds. If you’re reading this, everything must have worked. Ah, something for the wmpamplog FAQ – it doesn’t work until you exit and restart Winamp. Pretty easy one […]

Caching Application Block Released

News if you haven’t heard, another application block has been released (actually a couple): Caching Application Block (the other one is Aggregation) I’ve read over the docs for the Caching block and at first glance it looks like it doesn’t offer anything to ASP.NET developers that the built-in Cache API doesn’t have, unless you’re looking to […]


I’ve had enough people ask me for hosting advice lately to write up my thoughts in an article.  You can read about my experience with the people who make up ORCSWeb in this ASPAlliance article: Hosting Review: Listening To: Saliva – Rest In Pieces

Handy Tracing Utility

There are three features I wish ASP.NET tracing had out of the box: Check for a null context and gracefully disable if context is null (e.g. at design time) If I don’t specify a category, default to the name of the method in which the trace is being called. Automatically compile out of production code […]

Outlook 2003 Beta 2 (was Outlook Express)

I’m finally upgrading from OE to Outlook on the advice of Brian Tinkler of the Wisconsin .NET User Group (among many others over the past few years).  The main reason that I stuck with/chose OE over Outlook was that Outlook97 didn’t have an easy way to select which FROM address to use for emails, and […]

NUnit 2.0 And .NET 1.1 Together

I spoke at the Wisconsin .NET User Group last night and had a good time.  A small part of my talk was on using NUnit to do unit testing and an introduction to Test Driven Development(TDD).  In the course of preparing my samples I upgrade to VS.NET 2003 from VS.NET 2002 and thus from .NET […]

Easier ADO.NET Parameters using Enums and Attributes

DonXML has a cool article I just read on how to use Attributes to extend Enums to create strongly typed parameter objects for ADO.NET commands.  You can read the whole article here: The article is cool for two reasons: It makes it so that adding a parameter is a very simple one line of […]

SCSI Information

Aaron Seet posted a link to this very long and very detailed analysis of SCSI vs. IDE hard drives, which I’m posting here for others to reference and also so I know where the link is so I can finish this long article.