surrealization.com

Occasionally I come up with something worthwhile

Getting Notified When An IIS AppPool Recycles

Wednesday, May 07 2008

IIS Application Pool recycling in IIS 6 is a crutch for poorly performing code and is frequently misunderstood and overused. However, if you do have a need to use it and want to minimize the hit of your applications in that AppPool spinning up again on the next request, you can use the following code to determine when it recycles. First, you need to configure IIS to enable reporting AppPool recycle events. This is off by default. This can easily be done using WMI and C#: using System; using System.Collections.Generic; using System.DirectoryServices; using System.Linq; using System.Text; namespace...

I Sold a Dream Last Night

Tuesday, February 13 2007

Everyone wants to play an instrument when they're young. In elementary school I tried to play the tumpet and failed. They moved me onto the trombone because it would be easier for me to play. I swtiched, but I wasn't too thrilled about playing it (I wanted the cool saxophone but they wouldn't let me) and after a year I realized it wasn't for me. In high school I had some guitarist friends and decided to learn to play. I got a $200 used guitar and an amp and started to play. I learned all the standard beginner songs and eventually realized I was neither good nor did I really want to keep learning...

Elevensies: this morning was a good morning

Monday, September 11 2006

My wife made a Lord of the Rings joke this morning.

(sort of quote)
"I packed a ton of food because I didn't eat breakfast. I'll have second breakfast and elevensies."

I think I may have won her over.

Windows Server 2003 SP1 KB FIX

Friday, July 28 2006

Well, my first reporting of a bug to Microsoft (via the phone, through product support services) has finally resulted in a KB article.

http://support.microsoft.com/kb/913548/

I submitted this bug to Microsoft on November of 2005 and it finally made a public KB article on June 1 of 2006. At least this was a relatively minor issue.

Tom, James, and Adam vs. the UPS truck

Wednesday, July 19 2006

I wrote this years ago when I had my weblog hosted through Blogger. Some recent conversations reminded me of it so I decided to bring it back. I call these stories "Tom Stories". Tom is that crazy-ass person you were friends with in high school that always seemed to prompt you into doing some incredibly stupid things. Following is the first ever Tom Story I wrote, unedited from my first posting of it. We were in ninth grade (James was in tenth), it was an afternoon nearing summer, immediately after school was over. Tom, James and I always met outside a certain door and walked home. Typically we...

Host the Windows Workflow Foundation Designer In Your Own App

Monday, June 19 2006

Mostly for my own reference, but here is an article on MSDN for hosting the WF design surface in your own application.

You Immerged A Lucky Winner

Wednesday, June 14 2006

Come on now... if you're going to spam me to try and convince me I've won 10 million dollars, at least spell your subject correctly!

ScottGu Article on DLINQ

Monday, June 05 2006

Scott Guthrie has posted part 2 of a series of postings on LINQ . This one gets into DLINQ specifically and definitely starts to show off some of the reasons why you'd want to use it (iterating over your own object collection is neat and all, but doing SQL queries in code without SQL and System.Data is a spectacular demonstration). I'd still like to see more of the nuts and bolts of how to enable LINQ on your own custom objects, however....

When Your MSIs Just Won't Uninstall

Wednesday, May 24 2006

Mostly for my own reference, but if you're in a situation where you have an MSI that says it is uninstalled successfully but still leaves a good deal of files on your machine, Microsoft has a tool to help clean up the Windows Installer configuration.

ScottGu Article on LINQ

Monday, May 15 2006

Scott Guthrie has the best article I've seen so far on LINQ so far. He's glossing over how to do some of the fancier stuff such as supporting all this stuff in your own objects (so instead of just a List and arrays), but overall the article demonstrates LINQ incredibly well.