Microsoft does well by their customers… and even better by their non-customers

I was curious to read today about Microsoft’s new Windows Genuine Advantage changes coming in Windows Vista Service Pack 1.

The current draconian system of locking down machines that appear to be running pirated versions of Windows has not been well received, apparently, especially a few weeks back when a buggy update was released prematurely and left thousands of “genuine” customers without working copies of Windows. So Microsoft is softening the approach, as described in the article linked above.

In the new version, PC users found to have a pirated copy of Vista will continue to be able to use their computers, but with unmistakable signs their operating system is a fake. The desktop wallpaper will turn black, and a white notice will appear alerting users to the problem. Each time they log in, they will be prompted to buy legitimate software, and every hour, a reminder bubble will appear on the screen.

Users with a high tolerance for irritation can put off switching to genuine software indefinitely, but those who relent and buy a real copy of Windows can do so at reduced prices — $119 for Windows Vista Home Premium, half the regular retail price.

OK, well that does seem to be an improvement, but… wait a minute! Read that second paragraph closely. Surely it can’t mean what I think it means, but it sounds like what they’re saying is that if you pirate Windows first, and then after enduring the automated nagging for an indefinite period of time, you’re entitled to buy Windows for half the regular price paid by loyal customers who purchase a legitimate copy up front.

Well, at least it’s consistent with Vista’s backwards approach to system security. (Throw up excessive warnings to the user about nearly everything they’re about to do, but don’t actually restrict their access to those things based on permissions.)

A configuration-based solution to the translucent menu bar in Leopard

I had forgotten I’d even found and tried this until I looked up at my menu bar today after changing my desktop image and noticed it was opaque. I can’t find the site where I originally got the code, but I’ve found another blog that mentions it. The code to execute at the command line is:

sudo defaults write /System/Library/LaunchDaemons/com.apple.WindowServer 'EnvironmentVariables' -dict 'CI_NO_BACKGROUND_IMAGE' 0.63

(The code all needs to be entered on one line, of course; I need to work on my CSS for displaying code, probably employing Google’s Syntax Highlighter. So add that to my gigantic and ever-growing — at an increasing rate — to-do list. At my present trajectory, I will get this done approximately 10 million years after never.)

As the poster notes, the number 0.63 at the end can be any decimal value from 0 to 1. It represents the lightness of the opaque menu bar: 0 is black, 1 is white, and anything in between is shades of gray (surprise!); all non-white values have a subtle gradient as well.

This works great, which is not surprising, since this is the way Apple designed it to be managed. (In other words, they didn’t intend for the end user to be able to adjust it at all… but they built a way into the code to allow their programmers to adjust it.)

Of course, in the meantime since I first complained about it, I have actually come to tolerate (if not like) the translucent menu bar. But for now I’ll leave it as it is. If I do decide to change it back, I’ll run this:

sudo defaults delete /System/Library/LaunchDaemons/com.apple.WindowServer 'EnvironmentVariables'

And of course, because these are system-level changes, you need to reboot for them to take effect (which is probably why I had forgotten I’d done it in the first place; I didn’t restart immediately and surely got distracted by whatever it is in my life that’s constantly distracting me… two kids, perhaps).

WordPress is great, but the documentation leaves a little to be desired…

Alas, the woes of using open source software rear their heads. WordPress abounds with undocumented, or at least very poorly documented, features.

My dilemma: the default function for displaying a list of page links (used on this site to populate the Points of Interest panel in the sidebar) sorts links alphabetically, and there isn’t any obvious way to make it sort by the database’s menu_order field, which logically, to me at least, should be the default especially given that this is how they’re sorted in the admin tool.

Finding little help in the documentation or by my usual means (Google), I decided it couldn’t be done without modification. In my previous installation of WordPress I actually modified the core code itself to change the sort order, but when I upgraded to version 2.1.1 today, it overwrote that change. This time I decided to try the plug-in approach, so my changes would actually stick through version changes, and so I could get familiar with the powerful but arcane plug-in system WordPress uses for extensibility.

After poking around futilely trying to get my plug-in to work (to the point where it was sorting all of my blog posts the way I wanted the pages to be, but not the page list), I stumbled upon a relevant post in the WordPress forums, where a snide jab at “theme designers” (which seemed to be such a broad swipe that it included me) happened to mention an input parameter in the function that calls the page list!

Silly me… the system has built right in a very simple way to sort the list by whatever field you want, and all you have to do is pass in the right parameters in your theme files. The change couldn’t have been simpler… but learning that it was possible certainly could have!