Monthly Archives: July 2008

Weird Terminating Error Behavior

I’m writing a dirty hack PowerShell provider so that I can have a reasonable base of knowledge before approaching something more work-oriented.  One component of the path the provider accepts must be an integer, so I decided to throw a … Continue reading

Posted in PowerShell | 1 Comment

Writing Objects from PowerShell Scripts

I’m going to continue writing about PowerShell because it’s fun to talk about and fun to use. Today I decided to try and analyze some data in text files using a PowerShell script. The files were simulations of a betting … Continue reading

Posted in PowerShell | Leave a comment

Expanding Wildcards in PowerShell

Yesterday I thought I’d jump into the deep end of PowerShell and try to make a provider; this lets you treat some data store as a drive in PowerShell.  It didn’t work out very well, mainly because I had no … Continue reading

Posted in PowerShell | 2 Comments

Working with Enumerations in PowerShell

Two posts in one day should show you I’m excited about PowerShell. I wanted to update the script from my last post to find my My Documents folder so if I hop to Vista I won’t get an error, and … Continue reading

Posted in PowerShell, tricks | 1 Comment

Setting $home in PowerShell

Lately I’ve been getting acquainted with Windows PowerShell, which is something Windows has needed for a long time.  Finally, there’s a real shell for Windows that supports scripting in a format other than horrific batch files. At work, for whatever … Continue reading

Posted in tricks | Leave a comment

Why doesn’t Subversion add respect svn:ignore?

I use Subversion for source control on my personal projects, and I’ve got to say it’s so easy to set up and use there’s no excuse for not using source control.  There’s one thing that really bothers me though. When … Continue reading

Posted in Rants | Leave a comment

Inheriting from ReadOnlyObservableCollection<T> and a Lesson about Constructors

I had need of returning a bindable collection from one of my classes, but didn’t want to allow the caller to modify the collection.  This generally requires a straightforward pattern in .NET: make a SomethingCollection class that derives from Collection<T> … Continue reading

Posted in .NET | Leave a comment