Mystery Solved

I always wondered how the daughter was able to successfully put hats, glasses, and you-name-it on our pet dog, when the second I tried to touch or place any object on our dog’s head, she would thrash violently until the foreign object was dislodged and summarily disposed of. 

The secret, as it turns out, as in all endeavors, is persistence.  Just keep doing it again and again (say for fifteen very gleeful and entertaining minutes to a child) and resistence apparently gives way.  At that point, the dog resigns to her fate as a dress-up model and will submit to almost anything (well, OK, even at that point, the dresses apparently are still a challenge).

The Whatifs and Other Monsters Under the Bed

The other night while I was lying awake worrying about something that I can no longer even remember, I came to notice my daughter lying on the floor beside the bed (a frightening shadowy apparition in itself until you learn to expect such behavior).  Eventually she presumably found the uncarpeted floor less hospitable than her own bed and returned there.

The next day I asked her why she was there and I got the standard kid answer for such nighttime behaviors: because of “Monsters under the Bed.”

I then wondered what I in the heck I was doing up at that time myself and realized it was pretty much the same thing: going to some cold, hard, dark place and worrying about my own “Monsters under the Bed.”  Those both irrational and rational fears we have when the din of the outside world quiets and we are left alone with our own unique thoughts and concerns.

This is a time and mood captured perfectly by the Shel Silverstein poem Whatif:

Last night, while I lay thinking here,
some Whatifs crawled inside my ear
and pranced and partied all night long
and sang their same old Whatif song…

…Everything seems well, and then
the nighttime Whatifs strike again!

Shel and I just need to keep telling ourselves: those nighttime Whatifs and Monsters under the Bed aren’t real, they’re just illusions of our overactive imaginations and worst fears.  Even our most rational fears only very seldom come to pass and as wittily told in Everybody’s Free (to Wear Sunscreen):

The real troubles in your life are apt to be things that never crossed your worried mind; the kind that blindside you at 4pm on some idle Tuesday

So go back to your own bed.  Turn on a flashlight or shine some hope and optimism into your worried mind and let those Whatifs and Monsters under the Bed fade away and melt back into the shadows.  4PM on some idle Tuesday will no doubt come soon enough, so for now appreciate and be greatful for the day you just had and look forward to and be hopeful for those yet to come.

Current Generation HK’s on Display at the Air & Space Museum

Hunter-Killer(HK) UAV Aircraft

Hunter-Killer(HK) UAV Aircraft

Looking up from the ground floor of the National Air and Space Museum in Washington, DC, it is a bit creepy to see the southwest wing’s display of mostly armed UAV Aircraft (UAV = Unmanned Aerial Vehicle).  One cannot help but feel like he or she is suddenly transported to the year 2029 and is accompanying Reese from the movie The Terminator as he tries to evade the autonomous Hunter-Killers (HKs). 

It is interesting that in 1949 George Orwell envisioned a future 35 years in the future (1984) where world-wide totalitarian regimes enslaved their people (using mostly intimidation and propaganda).  Yet, when the year 1984 eventually rolled around, the movie The Terminator envisioned an even grimmer future (this time 45 years in the future) where machines enslave and try to annihilate the entire human race. 

If Darwinism is indeed correct, that may yet come to pass.  But nifty machines like these first crude UAVs may serve an intermediate step and bridge the gap between both of these dystopic visions.  A future in which totalitarian regimes can manufacture an entire robot army to subjugate humans at will (propaganda no longer required). 

Today’s generation still sees these machines as mostly non-threatening and neat.  But who knows? HKs may soon be coming to a neighborhood near you - and this time they may be a little more threatening than a Roomba?

HK Tank

HK Tanks from The Terminator

10 Years of WWILF’ing, Information Smog, and Distractions

First Computer ReceiptAlmost as if it was longing to be found and remembered on its tenth anniversary, I came across this receipt today for the first computer I ever purchased - 10 years ago today*. 

As I ponder this anniversary of sorts, it might be useful to reflect on what has changed in the 10 years since I first brought such an object (and many subsequent ones) into my house.

Firstly, computers have proliferated in my house like Tribbles, I have a basement full of relics (including this first one) and 3 of them within 10 feet of where I now sit (not even counting things like MP3 Players, GPS’s, etc.).

The wife’s irritation at their presence and the time I spend in front of them has oscillated back and forth between mild and serious annoyance.

I gained the freedom to do some work from home as well as the expectation from employers that I do work from home.  Home and work life have morphed into a single entity - but at least I now leave work on time and always make it home for supper.  Even if right after supper I am back to checking email.  

I have only read a handful of books and never again subscribed to a newspaper.  I haven’t been to a library or opened an encyclopedia in years.

I have spent probably no more than a single hour of continuous concentration on any one single thing.  A constant stream of emails, IMs, and many other digital distractions have all contributed to this attention deficit. 

More positively, as my treasured family photos have migrated to sites like Flickr, I no longer live in fear that a house fire would permanently destroy these precious items. 

Reflecting on all of this, it is useful to remember a time not so long ago when computers and the Internet were not an integral part of our daily lives.  And also perhaps worry just a bit, that the negative trends listed (the constant communications, interruptions, intrusions) will only multiply at an ever-increasing rate until we become little more than computer processors ourselves. 

Overall, looking at the past ten years, one can see that this new media age, like the TV-age that preceded it, holds the promise of even greater convenience and access to information, while taking away things like solitude and concentration.  How you feel about that I guess depends on which of those things you value more.  But enough concentration for one hour (and one decade) - time to get back to WWILF’ing** and another 10 years of digital distraction.

                                                                                                                  

* It is also interesting to recall the fact that by 1998 I had worked as a computer programmer for over 2 years before I could even get enough money together to afford one.  The first year of work, I didn’t even have a computer on my desk.

** WWILF = What Was I Looking For?

Good Things Can Happen…

The movie Office Space certainly is a biting and hilarious indictment of the soullessness, absurdity, and mind-numbing nature of modern office life

One of the movie’s best and lifelike characters is Tom Smykowski.  Smykowski is a middle-age, middle manager (”I take the specifications from the customers and bring them down to the software engineers! I’m a people person! What the hell’s wrong with you!“) who is edging closer to retirement, lives in constant fear of losing his job, and as a result is perpetually stressed.

Smykowski, generally a negative person, is ecstatically happy only after having just been in a horrible, crippling car accident - because it means he doesn’t have to go back to his office job.  Bandaged and incapacitated, he tells his coworkers that “if you hang in long enough, good things can happen in this life!”

Good Things Can Happen

Cindy Sheehan is Lydia Puckett

Pro Patria MoriCindy Sheehan is one of those controversial, polarizing, and annoying public figures that you are either “for ‘em or again’ ‘em.” 

I certainly fall into the latter category.  I could forgive her many wacky misstatements, using her son’s death in order to become a media darling, and her false claims to retire from public life and then running for congress after just 1 month of missing the media spotlight. 

But the one act I consider unforgivable is the act of claiming to speak for the dead, war dead in particular.  I just think these dead have already paid the ultimate sacrifice and deserve to be left in peace and no longer used as pawns in someone else’s ideological battles.   

In Edgar Lee Masters’ Spoon River Anthology, Lydia Puckett does this for Knowlt Hoheimer.  She falsely claims a spot for herself, no matter how far removed, in history.  When in fact she is nothing, she made no sacrifice, and certainly has absolutely no right to speak for the war dead:

Lydia Puckett

KNOWLT HOHEIMER ran away to the war
The day before Curl Trenary
Swore out a warrant through Justice Arnett
For stealing hogs.
But that’s not the reason he turned a soldier.
He caught me running with Lucius Atherton.
We quarreled and I told him never again
To cross my path.
Then he stole the hogs and went to the war-
Back of every soldier is a woman.

Given the chance to speak for himself, Knowlt Hoheimer makes one of the most powerful statements in all of literature about war:

Knowlt Hoheimer

I WAS the first fruits of the battle of Missionary Ridge.
When I felt the bullet enter my heart
I wished I had staid at home and gone to jail
For stealing the hogs of Curl Trenary,
Instead of running away and joining the army.
Rather a thousand times the country jail
Than to lie under this marble figure with wings,
And this granite pedestal
Bearing the words, “Pro Patria.”
What do they mean, anyway?

So leave Knowlt Hoheimer and Casey Sheehan alone.  Let their courageous acts and supreme sacrifices speak for themselves - and for goodness sakes, Lydia Puckett and Cindy Sheehan, please shut up!

ArcGIS Python Script Debugging as it Outta Be

Setting up debugging of ArcGIS Python Geoprocessing Scripts used to be quite an exercise in frustration. 

However, with the Komodo IDE (for scripting languages like Python and Perl), I was pleasantly surprised this is now as simple as

  1. Download and Install the Komodo IDE from Active State ($300 to use after the 21 day free trial)
  2. In the IDE settings, set the User Environment Variable:
    PYTHONPATH=C:\Program Files\ArcGIS\bin
  3. Copy/paste any arguments/parameters you want to test with from the ArcCatalog/ArcToolbox command line output into the Debug Command Line Arguments

And it just works.  How come this doesn’t happen more often with software? 

Community, Civics, and Cyberspace

Several years ago at the local strip-mall shopping center, I watched the then-new local Walmart knock down the old Ames that had in turn knocked down the Sears that had knocked down the Woolworths*.  So I started thinking about which community artifacts are truly stable and can even be counted on to last more than a generation (retail stores obviously not being among them). 

My conclusion?  Churches, Civic Organizations, Bowling Alleys, Government Buildings, Bars, and Liquor Stores

Now, because of declining interest and participation, in this generation even the first three items on that list are at risk.  What that means in the long term I don’t know, but it probably isn’t a good thing.  At least not if you believe the work of Harvard professor Robert D. Putnam who wrote the book “Bowling Alone: The Collapse and Revival Of American Community.**”  Written in 2000 (disclaimer: I have not read), Putnam laments our lack of community sharing, our increasing disconnectedness from family, friends, neighbors, and social structures, and the resulting “decline in stock of social capital.”   After observing this decline in American civics and social connectedness, he then argues that if America is to continue to succeed this civic mindedness must be reinvented and restored. 

Some will argue that technology and social networking are doing just that.  Personally, I’m not convinced.  The anecdotal evidence I see is that far from bringing us together in the real world, these technologies are just stratifying us and pushing us further apart.  Granted that many of these online ecosystems can truly be considered “communities,” but many are merely homogeneous, and perhaps even stagnant, associations of loosely connected people who generally think and act exactly the same.  Another difference is this same not-easily-defined concept of rootedness.  As the Internet collective hive-mind jumps to whatever the next hip-thing is, these tenuous Internet associations quickly break down.  Don’t believe me?  Try and find those old Geocities or AngleFire pages you did.

I hope I’m wrong and that computer networking technology can lead to ”hyperlocalization,” an increased social connectedness, and a renewed sense of community.  But more likely, when Facebook virtually plows under the MySpace that plowed under GeoCities, we’ll be just as disintegrated and disconnected from our real-world communities as we ever were.  At least we’ll still have our local bars and liquor stores to help ease our pain.

________________

* That same Walmart then abandoned that site and moved Borg-like up the road a mile to the local indoor mall and proceeded to knock one third of it down for a Super Walmart.
** Although I did not see a lot of civic-mindedness displayed by “The Dude” and his bowling league in the Big Lebowski - there was definitely diversity.

Your Cheatin’ File Formats

A privacy problem that seems to go largely unnoticed is the issue of personal data that is hidden away in computer documents without their creators’ knowledge.  In fact, nearly all of the most common and popular document formats use such metadata to tuck away all sorts of nifty descriptive information about the document.  Here are just a few examples:

  • When it was created/changed
  • Who made the changes based on User Name or other Operating System-captured name
  • Applications used - including watermarking or similar identifying information tying a document directly back to the exact copy of software or hardware that created it
  • And on and on

Unless you use only text (.txt) files to store data, then odds are pretty good that your documents (MS Word, PDF, JPEG, etc.) have gobs of this type of extra information attached.  And in most cases, while perhaps overdone by complex document formats, this additional document information is intended to be a useful thing and not stored for any nefarious, privacy-intruding purposes.  

However, privacy issues can quickly arise when these documents are then published to the web.  In this scenario, they can reveal personal information through their metadata that their users never desire or intend to be published. 

A perfect example of this situation that has entered the annals of Web Lore is the Cat Schwartz (of  circa-2000 TechTV fame) cropping wardrobe malfunction.  An original topless image was cropped to just an innocuous head shot and posted to her blog, but oops, the metadata thumbnail still contained the original uncropped topless photo.  Just a small, yet-shocking example of hidden metadata stored in only one such complex and ubiquitous Internet data exchange format - in this case a JPEG with EXIF metadata. 

So what are users to do that want to “scrub” all personal information and metadata from their documents before posting to the web?  Unfortunately, there appear to be no easy, one-size-fits-all solutions to this problem.  Application vendors have little to gain and much to lose by stripping out such metadata.  These applications need to have access to this metadata to provide increased functionality and the market appears to make it clear that users value this functionality over privacy.  Even when vendors do provide mechanisms to eliminate such data, they make it cumbersome and onerous.  Third party solutions often only work on one specific complex data format. 

Windows Vista surprisingly does provide a mechanism for doing this (Properties | Advanced | “Remove Properties and Personal Information“), but this only removes some of the obvious metadata that Windows can identify and does nothing with vendor specific data.  Also, you have to actually manually select the file(s) - it can’t recursively cleanse subfolders.

Take the simplest of examples: How do I remove personal data from my JPEGs before I post to public photos sites?

The Windows Vista “Remove Properties” tool doesn’t help because it only handles a few of the obvious EXIF data items (like Title, Author, Tags, etc.), but there are literally hundreds of others unhandled (even the very obvious ones like “Taken On” date and editing application).  Thus for even this simplest example, the user is forced to turn to a third party tool like ExifTool - an impressive, but somewhat geeky and command-line driven EXIF metadata utility that includes a cleaner.  One could also save the JPEG to a different format that doesn’t support EXIF metadata like BMP or PNG, but get ready for some serious size bloat as the compression is lost.

To “quickly” achieve this, I just gave up and wrote my own (C# source code below-now how’s that for geeky?) - but it is only a marginal success because it only handles the Text metadata.  When I tried to just remove all metadata, I got some troublesome results (the compression was removed, or the changes were just ignored because they caused inconsistencies).  This is a worrisome example of how even someone who is actively committed to removing all of this information can be thwarted.  But I figured the text attributes included most of information that someone might want to scrub anyway (like dates, programs, etc.). 

So there is one complex data format partially down, thousands more to go.  Privacy really shouldn’t be this hard folks…

  
// Disclaimer: Use of this code is done so entirely at your own risk.
// This software is provided "as is" without warranty of any kind
// C# Snippets/Class to remove image text metadata from a jpeg file
// Note: removing non-text metadata can have undesired effects of
// altering the compression or other image characteristics
class ExifTextCleanser
{
   public static void RemoveImageTextPropertyItems(Image image)
   {
        foreach (PropertyItem pi in image.PropertyItems)
        {
            // if it's text, remove it
            if (pi.Type == 2) // 2 = Text
            {
                image.RemovePropertyItem(pi.Id);
            }
        }
   }

   public static void PrintImageTextProperties(Image image)
   {
    Console.WriteLine("properties id count=" + image.PropertyIdList.Length);
    Encoding encoder = new ASCIIEncoding();

    // Print all Image PropertyItems
    foreach (PropertyItem pi in image.PropertyItems)
    {
       if (pi.Type == 2) // 2 = Text
       {
        string textProperty = encoder.GetString(pi.Value);
        Console.WriteLine("Property, ID=" + pi.Id + ", value=" + textProperty);
       }
    }
   }

   public static void CleanseJpeg(string originalFileName, string newFileName)
   {
    if (!(originalFileName.ToLower().EndsWith(".jpg") ||
          originalFileName.ToLower().EndsWith(".jpeg")))
    {
     Console.WriteLine(originalFileName + " not a JPEG.");
     return;
    }

    Bitmap bitmap = new Bitmap(originalFileName);

    PrintImageTextProperties(bitmap); // take a peek at this metadata info

    RemoveImageTextPropertyItems(bitmap); // then nuke it

    // save the cleansed version of the file
    bitmap.Save(newFileName);
   }
}

Valentine’s Day, February 14, 2008

William Burroughs Heart

In Honor of William S. Burroughs

For Al Bundy
In hopes he is still on the couch

Thanks for the candy hearts and Hallmark cards, destined to be perfunctorily purchased -

thanks for an Expression to despoil and poison -

thanks for FTD florists to provide an escape from neglectful guilt -

thanks for St. Valentine and the Martyrs, to forget their lives and meaning -

thanks for a mandatory dinner at Applebee’s or Red Lobster -

thanks for the idea of TRUE LOVE to commoditize and sell until it stimulates the economy -

thanks for the MPAA, for judges who forget the First Amendment, for prudish soccer moms incensed about Janet Jackson’s breast -

thanks for “I (Heart) My Dog” bumper stickers -

thanks for dove-patterned bulk tableware -

thanks for “two months salary” and Diamond Eternity Rings -

thanks for a country where nobody is allowed to think on their own -

thanks for a nation of consumers - yes,

thanks for all the memories… all right, let’s see your credit cards… you always were a simple tender heart -

thanks for the last and greatest betrayal of the last and greatest of human emotions.
 

Next Page »