Creating Quick Tests in C#

Update on 5/2/07:  This post has nothing to do with Unit Testing (it was written before I was aware of unit testing) but has to do with write little bits of code to try new stuff out.  It is also only for VS03.  For the current version (VS05), see this post: CoadNet VS Project Templates, Quick Code + Console App for C# in VS05 CoadTools Quick Test C# Project Template (setup .msi) for Visual Studio .NET 2003 IntroductionVery often I need to test a tidbit of code, do some research on a class, etc. In fact, I was creating several … Continue reading Creating Quick Tests in C#

Property Event Pattern

IntroductionSince the advent of .NET, one of my most frequent and useful patterns is using an event to notify change in state. Applying this pattern has reduced overall code, improved reliability, and made maintenance and expansion easier. Why? The ContextWithout events, spaghetti code occurs real quickly when one method changes state that other code is dependant on without notifying that the change is made. This is one of the most frequent causes of coding errors (bugs) in mid-to-large applications that I have seen. Events go a long way in solve this issue. This should be obvious with public properties that … Continue reading Property Event Pattern

.Text Upgrade on MVP Site

Susan Bradley just updated (6/11/04) msmvps.com to .Text v0.95.2004.102. We’re still working out the kinks, but it is coming along! So if your agregate news reader shows double post entries (like my RSS Bandit), you know why. If you’re using RSS Bandit, just follow these steps to restore normality. Close RSS Bandit Edit “C:\Documents and Settings\[UserName]\Application Data\RssBandit\feedlist.xml” Search for “msmvps.com/coad” Delete all elements inside of the “stories-recently-viewed” element. Delete the Cache\msmvps.com* (or Cache\www.msmvps.com*) files. Load RSS Bandit, it will automatically download and recache the posts.

Associating a File Extension and Context Menus with an Application in the Registry

You can easily assign a file extension to open with your application in the registry. Verbal DescriptionThe extension is added as a key under “HKEY_CLASSES_ROOT” with the (default) value set to the file’s type (a string arbitrarily assigned by yourself). Then you add a key with the file’s type also to “HKEY_CLASSES_ROOT” with its (default) value set to the file’s type description (that is shown in Exporer). Under the same key, add they keys “shell/open/command” with the (default) value being the program to execute. Use “%1” with the quotes to pass the file’s name to your app. You can also … Continue reading Associating a File Extension and Context Menus with an Application in the Registry

Ultra-Portable Laptop

OverviewI have received many inquiries in airports, conferences, classes, meetings, etc when I pull out my laptop and it is smaller than even the thinnest paper notebooks on the table. I’ve seen too many people not carry or use their portable computer because it was inconvenient, this defeats the purpose of a laptop. Even with my last Sony VAIO V505, which was only 4 lbs, I still found that I would leave it behind because it just wasn’t easy enough. Not so with this little system, it goes everywhere with me. This has been one of my most enjoyable, useful, … Continue reading Ultra-Portable Laptop

Favorite Bloggers

News/Blog ReadingRSS Bandit is a great aggregate news reader. It is writting entirely in C#, is easy to use, works like a charm, and is even open source so you can see how various components have been implemented. To add feeds, just right-click in IE on an XML or RSS icon in the blog (or the RSS links below) and choose “Subscribe in default aggregator”. Favorite Bloggars (To Date) Here is a list of the blogs I am currently subscribed to. As my list is modified over time I’ll repost this list of active bloggers. These are really great posters! … Continue reading Favorite Bloggers

More TechEd Photos

Here are a few more photos that came out of TechEd 2004. Dang we had a good time! See you all next year! Look for me in a dark blue shirt… 🙂 Cathi Gero (C# MVP) and Ted Neward (MVP, Author, .NET Rocks!) Mark Dunn (MVP, MCT, Previous .NET Rocks! Co-Host), Party on dude! Dan Fox and Jon Box (.NET MVP), the Authoring Duo! Listen to Fox & Box on .NET Rocks! Dr. Salih Yurttas (Professor in the Texas A&M – CS Department)Thankfully he passed me in school so I could go work for Microsoft. Thanks Dr. Yurttas!

Increase Internet Explorer’s Simultaneous Connections Limit

Internet Explorer limits the number of simultaneous downloads to two downloads, plus one queued download. This is an out of the box browser setting. To increase the number of simultaneous connections that are allowed, follow these steps: Start the Registry Editor (regedit.exe) Go to HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Internet Settings Select “New” > “DWORD Value” from the “Edit” menu Name the new value “MaxConnectionsPer1_0Server” Right-click the “MaxConnectionsPer1_0Server” value and choose “Modify” Under “Base”, click the radio button next to “Decimal” In the “Value Data” box enter the number of simultaneous connections you want to … Continue reading Increase Internet Explorer’s Simultaneous Connections Limit