Weird and Geeky
11:13 pm, August 4, 2007

So I have some custom log analysis scripts I wrote. Generally they work pretty well, but there are some bugs. One of the output pages that usually tells me the page hits and unique hosts screwed up somehow and I saw this line:

TODAY -- page hits / unique hosts at a cigarette on

And I’m thinking to myself, “A cigarette? The hell? Where did that come from?” I even briefly considered that my server might have been compromised in some way, just because it seemed so random.

So I looked at the code, which I wrote years ago, and saw this in the section where I initialize a bunch of variables:

my $today_date = '';
my $today_hits = '';
my $today_uniques = '';
my $last_request = 'a cigarette';

If I were a better programmer, there would probably be a lesson I could learn from this.

4 Comments »

  • MagicFlyinLemur said:  
    (On August 5th, 2007 at 8:50 am)

    Ha! You had to be clever, even with the cold, unfeeling computer, didn’t you?

  • Dave said:  
    (On August 5th, 2007 at 6:14 pm)

    I’m laughing so hard right now. That is so awesome.

  • Dave Shayne said:  
    (On August 6th, 2007 at 1:21 pm)

    If I ever have to initialize the variable “last_request” in the future I’m fairly certain I’ll do the same thing.

  • Anonymous said:  
    (On August 16th, 2007 at 5:53 pm)

    For years and years I had a line in my .profile on my work UNIX account that said
    set BUGS=off

    One of my coworkers modified (we shared a global account broken up by individual user sections) and he added:
    set bad_karma=ON

  • RSS feed for comments on this post.

    Leave a comment

    Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

      
      
      

User could not be found
Go to their Twitter Profile
" width="70" height="70" style="margin: 5px; border: 1px solid #FFFFFF;" class="mypictures" />
  • E-Mail

  • Categories

  • RSS

     Subscribe to feed