Stop The Beeping

Recently I was working on a PowerShell script which involved translating byte arrays into strings using the appropriate encoding. Unfortunately I kept getting the wrong choice for encoding and printed out essentially random data to the console screen.

Presentation Follow Up

Thanks to everyone who showed up at the presentation on monday. For those interested, I’ve uploaded the contents of the presentation here.

Is Intptr Long Truncating

The short answer is: No, not when it matters

Properly Handling A Winforms Timer Event

The WinForms Timer class allows the user to perform a particular action at a set interval. Timer objects fire a Tick event at the set time which users can easily respond to. This is very useful if a developer wants to check for a particular condition say every 2 seconds ( for the remainder of this article I’m going to use 2 seconds as a practical example even though it’s really any arbitrary time period).

Redefining Success

Spent about an hour debugging a bit of code today. I was attempting to read data from a particular source and kept getting back failure codes. After some debugging I discovered the data didn’t actually exist in the source I was reading from.