Tuesday, September 23, 2008

Chrome under Windows 2003 Server

Chrome works well under Windows 2003 server except in one small case. When composing an email in Gmail when you press tab the "Send" button should highlight and it doesn't. This is because the Theme engine is using the Windows Classic style. In order to change this run the Theme service (Start>>Run>>services.msc>>find "Themes" and change it to "Automatic" startup type and press start). The Display Properties "Appearance" tab for "Windows and buttons" will now allow you to change it to "Windows XP style". This style shows the highlighted buttons.

Monday, September 15, 2008

What you can do when your browser is a lot faster

Well, Chrome has changed the landscape and TraceMonkey from the Firefox team is also making a dent in what is possible with browsers.

Here's a really cool demo that only works on the latest Firefox 3.1 builds and apparently Webkit nightlies.

Image Manipulation in browser

Thursday, August 21, 2008

WinMerge in MKS Diff and Merge Tools


I've done this integration a number of times and I've always had to resort to creating a C# program to discover what the options really are:


class Program
{
static void Main(string[] args)
{
for (int i = 0; i < args.Length; i++)
{
Console.WriteLine("[" + i + "]: " + args[i]);
}
Console.Read();
}
}


then I hook it up to the dialog and do a diff.

Here's the current options that I've put in:

C:\Program Files\WinMerge\WinMergeU.exe /maximize /e /x /ul /ur
/dl "{1}" /dr "{2}" "{3}" "{4}"

Friday, August 08, 2008

Byte Array Debugger Visualizer

As part of a debugging session, I wanted to visualize a byte array as a string so I did a little googling for something that would display data in Visual Studio as a string. The following article: http://www.alexthissen.nl/blogs/main/archive/2006/01/21/debugger-visualizers-and-arrays.aspx claims it's not possible. I'll believe him.

What I did to workaround the problem was to inspect the MemoryStream (since that is where the byte array I'm interested is buried) then in the QuickWatch window I typed:
System.Text.Encoding.ASCII.GetString(ms._buffer)
where ms is my MemoryStream.

That displays a string that I can look at with the string visualizer. Problem sort of solved.