Categories
General

Jill and Yuval’s Monster Truck Experience

It was my first weekend away with Jill and a beginning of a great relationship. Jill, me, monster trucks. We have yet to experience the noise and thunder again. The photos convey too little of the noise, the smells, the happening. It was just really cool.

Monster Trucks, Providence, RI, January 2003.

Share
Categories
Computing Web Development

PHP 4 Stinks – Reason Number 3008

PHP sucks ass in a tremendous way.

So I am parsing an XML file with PHP.
The xml file has an element like:
<element>this-is-the-data</element>

Any language worth two cents would return the CDATA of this element as:
this-is-the-data

But PHP – no.

Its native parser – a really fast SAX parser – calls the CDATA handler multiple times, but not in a consistent fashion (for real) – so you cannot just use a call like
$x = $data;
where $x is some variable and $data is the character data the event returned. This will occasionally overwrite $x with the current partial data returned from the parser.
You must use
$x .= $data
which means – “append to $x”.

How f-n stupid is that?! And is this documented ANYWHERE?!!!!!
No.
PHP is enterprise ready like Clay Aiken is straight.

Share
Categories
Computing General

Beware of Google Desktop

I know this may sound like a worst-case-scenario, nefarious big brother concept, but get this:
Would you let a company copy your private, personal files to their servers in exchange of being able to later find your files more easily? Sounds bogus but that is apparently what’s going on behind Google Desktop.
You install the application, and in order to catalog and index the information it transfers files to the Google servers, just temporarily, they assure you. We’re talking your private, most sensitive files – unless you set the application to avoid some files or folders.
The EFF takes this a step farther: with the slew of government requests for information from the leading search engine providers, this means that the files Google temporarily stores on their servers, can be obtained with much less resistance than with a search warrant.
I will choose to stay away from Google Desktop.
Just hope that the next computer you buy does not come preinstalled with it…

Share
Share