The NewsGator Powershell Provider project was recently created at CodePlex, and this afternoon I did an initial check-in of the project as it currently stands. I encourage you to download the code, build it, and give it a whirl! (And once you stop laughing at it, create some work-items on the site for me […]
Archive for July, 2006
Backing up Event Logs on remote machines with PowerShell
A really good friend of mine who also happens to be in the IT department at my company came and asked me about helping him with a script to back up (but not clear) event logs from remote servers. He had a script (the standard VB script from Microsoft’s website) that would back up […]
Kiddos
Today my daughter Hannah announced that she’d like to be swaddled “just like baby Jadon”. How can you not love these kids? Sometimes when I’m in the middle of coding at home (either for work or for play) Hannah will come up and say “Daddy, I wanna type!” — and I’m reminded again […]
ASP.NET 2.0 Page Lifecycle
I think just about every single ASP.NET candidate I’ve interviewed knows practically nothing about the page lifecycle, except for “Page_Load” of course—and they always say that: “Page Load”. They never say “Load” which is the actual event name. (That’s being a little picky though.)
Here’s something every web developer should be familiar with—not necessarily memorized (otherwise […]
Newsgator PowerShell Provider is almost ready!
I worked for about 4-5 hours tonight on my Newsgator PowerShell provider. I just need to code up the right way to read a post, and I’m good to go (for an initial “release”). Eventually I’d like to support every operation the Newsgator API does (including adding/deleting/moving/etc. folders and feeds), but for now it’ […]
Feed Autodiscovery
I just updated the autodiscovery links for my blog to point to my feedburner feed source. I know there’s probably 0-2 people reading my posts (me included) but if you’ve subscribed to my feed, please re-subscribe using this new URL:
http://feeds.feedburner.com/aaronlerch
Thanks!
To Read
I’m going to have to set aside some time to read through these articles. The singleton article has been a good reference for me already.
Static field initialization and the Singleton pattern
A co-worker just asked me why the following code (I’ve “samplized” it) ended up with an array of correct size, but with null values:
private static SingletonClass singleton = new SingletonClass();
private static readonly string FIRST_VALUE = “First Value”;
private static readonly string SECOND_VALUE = “Second Value”;
private static readonly string THIRD_VALUE = “Third Value”;
private ArrayList arrayList = new […]
Custom Marshaling - Part 2
In Part 1 I posted a sort of “set up” for today’s post. I presented a data structure (WAVEFORMATEX) that doesn’t fit into the “automatic” marshaling paradigm due to it’s dynamic size. The solution is to create a custom marshaling class that implements ICustomMarshaler and perform the marshaling from managed to native (and vice versa) […]
Custom Marshaling - Part 1
A while ago I posted about having a difficult time with complex marshaling. What I didn’t post, however, was any details about the solution–and now that the topic of custom marshaling has become the bane of a few co-worker’s existences, I figured I’d post some details.
Here’s the problem. You have a struct (for example, the […]

