November 2004 Archives

Exchange your xmas lites

|

Apparently, if you go here, you can exchange up to five strands of old-style tree lights for brand-new LED strands, free!

Press release from last year, though they're doing it again this year.

Vertical column marker in Visual Studio

|

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\7.1\Text Editor]
"Guides"="RGB(255, 32, 32) 80"

Add this to your registry and restart Visual Studio .NET 2003. You'll have a nice 80-column marker in your editor windows.

Command-line URL

|

As a followup to Chris' article about getting query-param behavior in a URL without query params, this is a fairly simple way to make the URL look more regular by eliminating the .php extension in the middle. Edit your Apache conf file something like this:

<Directory /var/www/test>
  # everything in /test is now executed as a PHP script
  ForceType application/x-httpd-php
</Directory>

Now put a file like the sample one that Chris made in your doc root:

/var/www/test/foo

Note that the file is called foo, without an extension! Now you should be able to go to http://www.example.com/test/foo/bar/baz, and PHP PATH_INFO will be /bar/baz.

Some disadvantages of this approach are that it requires an Apache config change for every new script directory, and you still need a parent directory in the URI, unless you want your _whole_ server to serve only PHP files. So if you wanted to do this:

http://www.example.com/users/mike
http://www.example.com/users/chris

Then you'd have to config your root directory with ForceType, or you'd have to settle for something like this:

http://www.example.com/get/users/mike
http://www.example.com/get/users/chris

WhoLockMe

|

If you're trying to delete, move, or replace a file that's in use on Windows, install this utility, then right-click the file and it'll tell you who's using it! (Thanks, jam!)

Intellectual Property Protection Act

|

"Under the proposed law, skipping any commercials or promotional announcements would be prohibited."

more...

1100110011

|

Mark your calendars! Wednesday, November 10, 2004, at 6:06:51 p.m. UTC is 1100110011 in Unix time.

Bank shopping

|

I'm growing increasingly dissatisfied with my bank, Everbank, and I'm looking for a new one.

First of all, I have had several issues with the security of their website.

Washington state

|

At this moment, CBS and NBC have both called Washington state for Kerry. But their own data now show that Bush is ahead. Are CBS and NBC going to have to retract their declarations? Maybe they're using exit polls rather than actual precinct reports. Update: Kerry is now well ahead in the Washington state popular vote. No issue here.

¡Fresqui-Ricas!

|

Mary discovered Guerrero-brand "Fresqui-Ricas" tortillas at the local supermarket last week. They're raw; you cook them for about 30 seconds in a pan right before you eat them. If you've ever had a real, just-made tortilla, you know there's no comparison with one from a package. These taste nearly as good. Mmmmm!

VH1 Motormouth

|

... is kinda funny.

Vote wizard

|

I want a website that asks me a couple dozen multiple-choice questions about my ideology, and then spits out a PDF of a filled-out sample ballot representing my probable choices for the election.

Update: Presidential Guidester is exactly the right idea, but I want it to go down to the state and local level.

Spooky LiveCD

|

Someone should make an ISO of a Linux live CD that, when booted, plays hours of spooky Halloween sound effects and music.

Emacs & capitalization

|

M-l: Convert following word to lower case (downcase-word).
M-u: Convert following word to upper case (upcase-word).
M-c: Capitalize the following word (capitalize-word).
C-x C-l: Convert region to lower case (downcase-region).
C-x C-u: Convert region to upper case (upcase-region).