Posted by Ben on September 21, 2006
I’m writing a simple utility that involves scanning a hard disk and updating a display with the latest status. There are potentially many, many, many, many, MANY changes that happen to the display in very quick succession and sending an update event which triggers a screen refresh for every single state change would be an [...]
Posted by Ben on September 18, 2006
I stumbled across a great code formatter for Windows Live Writer today. Here’s an example, using a C# function that converts a number into a formatted file size: public static string SizeToString(long size) { const long kilobyte = 1L << 10; const long megabyte = 1L << 20; const long gigabyte = 1L << 30; const [...]
Posted by Ben on September 15, 2006
This is an issue that has been discussed many times previously–so many that I won’t even bother to link to those discussions. By now it’s well-understood that blogs carry a power stronger than most in the media initially assumed possible. Not just blogs, but the entire “Web 2.0″ phenomenon–MySpace, YouTube–the whole rotten bunch. Would Patricia [...]
Posted by Ben on September 14, 2006
I stumbled across a great code formatter for Windows Live Writer today. Here’s an example, using a C# function that converts a number into a formatted file size: public static string SizeToString(long size) { const long kilobyte = 1L << 10; const long megabyte = 1L << 20; const long gigabyte = 1L << 30; const [...]
Posted by Ben on September 14, 2006
Analyst predicts plunge in gas prices…
Posted by Ben on September 12, 2006
A colleague at work recently got a second video card–a bottom of the barrel (or close to it) nVidia MX 4000 (PCI). He had an existing AGP nVidia Vanta. Well…the installation did not go well. It did something to Windows so that it consistently blue-screened during the driver load process (the progress bar moving in [...]
Posted by Ben on September 11, 2006
I recently ran into an issue where I was trying to serialize a bool variable from a CArchive object. Archiving it out, with this code, works fine: //CArchive ar;bool bFill;ar << bFill; But this code: ar >> bFill has problems. It compiles fine under Visual Studio 2003, but errors out under Visual C++ 6 with this error: C2679: [...]
Posted by Ben on September 8, 2006
I recently upgraded to Microsoft Money 2007, and decided to finally add in some treasury bonds that I have had for years. I couldn’t figure out, how to do it, however, until I came across this FAQ.
Posted by Ben on September 7, 2006
Does anybody else think that the real purpose behind the big movements in privacy, hiding web browsing habits, building anonymizers, and more… is really just a movement to allow everyone to view pornography without their SO’s finding out? Come on, perhaps there really are people in a public library who need to look up an [...]
Posted by Ben on September 6, 2006
Unlike MFC, .Net does not offer a built-in framework for message handling in WinForm applications. MFC developers, for better or worse, have a rather large mechanism that automatically maps command messages from menus, toolbars, and windows into the classes that want them. .Net has no such all-encompassing framework, though some 3rd-party frameworks exist (perhaps I’ll [...]