Archive for July, 2006

NewsGator Powershell Provider uploaded to CodePlex

Posted on July 30th, 2006 by aaron
Filed under powershell | Comments Off

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 [...]

Backing up Event Logs on remote machines with PowerShell

Posted on July 22nd, 2006 by aaron
Filed under powershell | 2 Comments

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

Posted on July 16th, 2006 by aaron
Filed under personal | Comments Off

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 [...]

ASP.NET 2.0 Page Lifecycle

Posted on July 15th, 2006 by aaron
Filed under asp.net | Comments Off

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!

Posted on July 14th, 2006 by aaron
Filed under powershell | 2 Comments

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

Posted on July 13th, 2006 by aaron
Filed under blogging | Comments Off

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

Posted on July 11th, 2006 by aaron
Filed under programming | Comments Off

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

Posted on July 10th, 2006 by aaron
Filed under programming | Comments Off

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

Posted on July 6th, 2006 by aaron
Filed under programming | 4 Comments

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

Posted on July 4th, 2006 by aaron
Filed under programming | Comments Off

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 [...]