Texas GOP’s new web site on kludge

The Texas GOP recently rolled out a new web site at http://www.texasgop.org/.

If you surf it, you’ll see asp file extensions. For example: http://www.texasgop.org/inner.asp?z=6

That means the Texas GOP’s runs its brand new site on a kludge CMS!

“Woah, Aren, isn’t that severe?”

No.

ASP’s most recent version is from 1999.

Microsoft replaced it with ASP.Net 1.0 in January 2002. ASP.Net is now on 3.5, and 4.0 is around the corner.

Vendors still delivering classic ASP code in November 2009 have colossally failed to invest or innovate and may be incompetent.

When I review products, those still on ASP start out such a disadvantage that they’ll probably never make the selection.

What is up with the Texas GOP? How did it get hoodwinked into a kludge CMS?

PEAR Text_Diff doesn’t split words on punctuation

The PEAR Text_Diff system’s inline parser has a silly word splitting algorithm: it only defines word boundaries as spaces or newlines (\n).

This causes problems with punctuation. Suppose you are diffing the following two sentences:

The quick cat jumped over the lazy fox.
The quick cat jumped over the lazy dog.

The final rendered output will look like this:

The quick cat jumped over the lazy fox.dog.

Notice how the period is included in the word boundary? That makes messy markup. This comparison is worse:

The quick cat jumped over the lazy fox, who was totally lazy and should be shot.
The quick cat jumped over the lazy fox.

Here’s how PEAR Text_Diff does the diff:

The quick cat jumped over the lazy fox, who was totally lazy and should be shot.fox.

This final diff is difficult to read. You are not deleting and reinserting fox, you are in fact just changing the punctuation on its right. But because the inline diff renderer only considers space and newline as word boundaries, it doesn’t catch this basic punctuation issue.

The fix took me 1.5 hours of PHP code review to figure out the system, but it’s painfully easy to do it. Edit PEAR/Text/Diff/Renderer/inline.php. At lines 158 and 159 (per the online source code), you’ll see " \n" at the end. That is a collection of word boundaries, passed as a mask to the PHP strspn function. Simply add your word boundaries between the quotes, and the diff engine works correctly.

I’ve reported this as PHP PEAR bug 16774.

Return to Innocence does not feature an American Indian

noac_1994_patchThis may surprise attendees of the 1994 National Order of the Arrow Conference (NOAC).

Order of the Arrow is an honor society of Boy Scouts that uses American Indian imagery.  The 1994 NOAC conference’s closing ceremony prominently featured then-popular Return to Innocence by Enigma in an Indian-themed ceremony.

Only problem is that’s not an Indian voice. It’s an aboriginal Taiwanese chant.

So now you know. The NOAC planners are probably blushing.

Here’s the song: http://www.youtube.com/watch?v=-JpJjsHgYHA

Google Street View Says I’m Republican

…and it’s right!

New imagery of my front yard, probably from October 2008:
frontYardGoogleMaps
Those are all Republicans.

Google also knows my across-the-street neighbors’ opinions about my signs. Look where they faced their signs. (Hint: Google camera’s straight-on view means they’re not facing drivers!)
1015erin 1023erin
Silly liberals!

See the whole scene for yourself. Pan around to see my neighbors.