04.13.09

A couple of my articles on CodeProject

Posted in Uncategorized at 6:29 pm by david

Long time no update this blog.  I intend to fix that.  But for now, I’d like to point to two articles I posted at CodeProject:

  • Tracing Events Raised by Any C# Object—in which I describe a technique for tracing the events of any C# object using a very simple helper class, using .NET Reflection to get the event handlers of an arbitrary object.
  • Password Field Unhider (and some C++ utility classes)—first I present a small utility that lives in the Windows notification area and stands ready at any time to unhide (that is, unmask) any password field on the screen, so you can see what you’re typing. And second, I describe some very simple yet useful C++ utility classes: a general message pump, an IPC mechanism using WM_COPYDATA, and a work item dispatcher.

I intend to post more articles at CodeProject, the kind of useful tips, tutorial, explanation things, with source code, that are longer than the typical blog post.

11.11.07

Typing Mathematical Formulas in Word 2007

Posted in Uncategorized at 5:43 pm by david

You can use Word 2007 features to generate very nice looking mathematical notation. This feature is, for all practical purposes, completely undocumented by Microsoft. However, some information has been published by Microsoft employees and others on the web. This post is meant to serve as a convenient directory of that information. (This post will be updated as I learn more about equations in Word 2007.)

 
 

Interesting, but not as practical:

General places to look for information:

10.04.07

Do you like your machine planked, like your salmon?

Posted in Uncategorized at 7:35 pm by david

A bunch of items I ordered arrived today - hard disks to relieve my chronic space shortage, and USB 2.0 enclosures to put them in.  I built everything at once and commenced transferring data.  It didn’t take long before I remembered Jim Gray’s early warnings that as we moved to terabyte disks programmers would need to think of disks as sequential devices - that is, like tapes.  (I read this in a presentation of his a long time ago, but right now I can only find later references, like in this interview, and in this paper.)  Consolidating 500Gb of files from multiple smaller hard drives onto one larger drive takes a long time.

But the real point of this post is this:  Can you help me figure out if I’m using one of my new USB 2.0 hard disk enclosures correctly?  I thought installing the disk into the thing was obvious—but I checked the instructions anyway, which is my usual habit.  The instructions seemed clear: place the hard disk in the USB enclosuer, plug in the cables, secure the metal case with four screws—all ok so far.  But here is the last paragraph:

Is good with machine plank according to the right method conjunction the hard dish, lock the right and HDD, can immediately trust the usage.

Say what? A finer example of Engrish I have never seen.  Thank you CP Technologies for your CP-U2S-3G Platinum Series USB 2.0 to SATA hard disk case instructions!