Scott Hanselman

DevRadio Podcast featuring Omar Shahine and I on DasBlog

November 24, '05 Comments [0] Posted in ASP.NET | DasBlog
Sponsored By

This is a little late, but Joe Stagner has finally uploaded a Podcast that Omar and I did with him. The subject is largely DasBlog, but we chat about lots of stuff. Joe didn't have time to edit it, so it's very rough, and there's a number of places where we actually talk about "oh, you can edit that out, right?" However, it's still interesting enough

I've added the interview as an enclosure to this post, so if you're using FeedDemon or other RSS Readers that automatically download Podcasts you may already have it waiting for you. Joe's original post is here.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

20% off Acronis TrueImage

November 23, '05 Comments [12] Posted in Musings
Sponsored By

I just bought Acronis TrueImage for disk/parition image backups to my Iomega Rev Drive. It was between TrueImage and Ghost, and I just liked the feel of TrueImage better. It runs (not sure how) without having to boot off a CD, possibly using the Volume Shadow stuff?

The receipt included a 20% of coupon that's good for the next 3 weeks. Feel free to use it. The coupon makes it only $39! It might be a one-time use, but the receipt said "You can even send this offer to a friend." So, n number of your where n could be 1, or 1 or more will get this discount.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Using the ASP.NET Cache outside of ASP.NET

November 23, '05 Comments [12] Posted in ASP.NET | NUnit
Sponsored By

Travis was talking about using the ASP.NET Cache object/subsystem outside of ASP.NET. I found it a little creepy as I've had all sorts of trouble trying to to Mock testing with ASP.NET outside of IIS and ended up using Cassini back in the day.

He convinced me though, check out the sample code on his site. I also started a conversation on a list server and here's what came of that:

Rob Howard said:

Yes, it's fairly common (and easy) to do. You just have to include a reference to the System.Web assembly in non-web applications; which may have led to your "creep out" – for what it’s worth it used to do the same to me :) 
FWIW, I believe (from memory) the recommended way you grab a reference outside of a web application is:
using System.Web;
using System.Web.Caching;

Cache cache = HttpRuntime.Cache;
<snip>...the Cache is just too important of a feature to only belong to ASP.NET.

Scott Stanfield said:

The biggest problem you'll run into using the cache outside of a web app is simply the namespace: System.Web. People freak out in code reviews. We got a lot of trash talk from the J2EE world on PetShop because of this.

Chris Kinsman said he seemed to remember some trouble with the Cache not sticking around in memory when used outside of ASP.NET, but that hasn't been substantiated. I'm going to dig more.

Adding System.Web to your non-web project is a good way to get folks to panic. Another is adding a reference to Microsoft.VisualBasic in a C# application. Both are reasonable and darned useful things to do, though.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

SlickRun and QuickSilver

November 23, '05 Comments [4] Posted in Musings | Tools
Sponsored By

Bayden Systems - Registration - Mozilla FirefoxI just got a chuckle out of this. When you install the glorious SlickRun, after installation when it says "Will you reward the developer with a moment of your time?" and click Yes, you're taking to a simple registration screen. Apparently I've pimped SlickRun so much that I'm an option under "Where did you hear about this product." That's so cool. I love this tool.

So, if you're running SlickRun, it's time for you to download the SlickRun 3.9 Beta! After you install, give him this kind gentleman your first name and tell him where you heard about SlickRun! :)

Another SlickRun tip, as you've probably added MagicWords of your own. There's a number of "QRS" files that you can download, there's just a little hidden below the fold on the Bayden site. Scroll down a bit on this page and download pre-built MagicWords for reference, news, shopping and some windows applets. On the "Other Utilities" page there are some nice command line utils that make nice SlickRun MagicWords as well like "DumpTrash," the garish but functional "SlickCal," WebCreds that lets you log on to WebSites from the command line, and "ShowOrRun" that conditionally runs or activates an application. 

Now, if only SlickRun looked more like the Mac's QuickSilver...that'd be a damned sexy app. Maybe I'll write it in Avalon...

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Mono and its many facets screencast

November 22, '05 Comments [13] Posted in Learning .NET | Screencasts
Sponsored By

Monoexample1I'm sure this has probably already been said, but I wanted to "put it on paper" as it were. I was showing a fellow at work a few things with Mono, and decided that the quickie demo I did was interesting enough that I should do it again. If you're not familiar with Mono, it's an alternative open source implementation of the CLI spec.

It's a compiler implementation and a library implementation and they can be use separately. What that means is that you can compile with Mono, run against their libraries, or you can compile on MSFT and run against their libraries...but where it really gets interesting is if you compile on Microsoft and run against the Mono libraries, or vice versa. This screencast demos a few of these scenarios.

In this demo I create an application from the command line, compile it with Mono and .NET, use Reflector on both and compare the resulting IL of both. Then I run them both and use Process Explorer to see what's going on at runtime.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook twitter subscribe
About   Newsletter
Sponsored By
Hosting By
Dedicated Windows Server Hosting by SherWeb

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.