Crashing your Process with Timers

Here’s a bug I had to diagnose this weekend that had me scratching my head for a bit before getting it. Consider this sample piece of code [1]: using System;using System.Collections.Generic;using System.Reflection;using System.Runtime.InteropServices;using System.Security;using System.Security.Principal;using System.Text;using System.Threading;namespace Winterdom.Samples {   class Program {      private const int LOGON32_PROVIDER_DEFAULT = 0;      private const int LOGON32_LOGON_NETWORK = 3;     ...

Using NetBeans

A few months ago I mentioned I had started using NetBeans 6.1 for my java development instead of Eclipse, which was my tool of choice until then. The reason for the change at that time was that I needed to look into some JBI stuff and using NetBeans + Glassfish...

get-hash

I’ve been recently working a lot with cryptographic hashes and sometimes it was useful to be able to check results or hash strings on my own while debugging or diagnosing something. I started doing this so much, that ended up creating a few Windows PowerShell functions to deal with this:...

Win7 and Ubuntu 8.10 on Dell D820

Now that I no longer rely so much on my “work” laptop (a Dell Latitude D820), I’ve been a bit more open about rebuilding it and playing a bit with it. Windows 7 PDC Alpha A couple of weeks after coming home from the PDC in Los Angeles, I bit...

Frans Bouma on M

Frans Bouma posted an entry about Oslo’s M, and if I’m reading it right, he is highly skeptical about it actually making creating Domain Specific Languages (DSLs) any easier. In part, Frans has a point. Yes, it is true that writing a good, complex language is hard. Yes, there’s a...

Some Thoughts on Oslo

I’ve started playing with the Oslo bits a little, and I thought I’d share a couple of thoughts on the platform and its tools: M – The Language M is an interesting beast, but to me the most interesting part of the platform to start with. In particular, I’m looking...

Azuli: A Windows Azure Client

As many have already heard or read, today Microsoft unveiled the Windows Azure Cloud Computing Platform. Besides allowing you to host your own applications, Azure also provides a Blob storage service, a Queue Service and a Table service exposed over REST-based HTTP endpoints. Azuli is my attempt to write a...

PowerShell V2 & Cmdlet Keyword

In the latest entry in the official PowerShell Blog, Jeffrey Snover leaves a little tidbit about a change coming on the next CTP of PowerShell V2: The cmdlet keyword is going away and we'll just have function. Notice that now you can specify the [Parameter()] attribute on parameters.  When you...

Porting C++ Code to 64-bits

Back in the good old days I spent far more time writing C++ code than other things (well, there was no C# back then!). In those days, the initial support for 64-bit compilation was added to the Platform SDK (now the Windows SDK… again!). At that time I couldn’t even...

Add/Remove VS2008 Components after SP1

One of my development Virtual Machines has Visual Studio 2008 installed with SP1. For several reasons, I had not done a complete installation originally, but only certain pieces of it, like Visual C# and Visual Web Developer and some of the Team Developer tools. A couple days ago turned out...