Lenny's Old Old Blog: May 2004

for embarrassing posterity

108594389371083116

Sunday, May 30, 2004

Red Bull and related notes

Sunday, May 30, 2004

For those of you that love in jokes

Saturday, May 29, 2004

Up with Emo
Because there just aren't enough emo kids

Just put this code in your weblog:
<p><img src="http://www.unipeak.com/gethtml.php?_u_r_l_=aHR0cDovL3d3dy5nZW9jaXRpZXMuY29tL2xkcmhjcC9taXNjL2Vtby5naWY=" alt="Up with Emo"><br><a href="http://bloglenny.blogspot.com/2004/05/for-those-of-you-that-love-in-jokes.html">Because there just aren't enough emo kids</a></p>

See how simple it is to piss off Justin?

108545131844983689

Monday, May 24, 2004

Help me with an article

Saturday, May 22, 2004

I am writing an article for the Sider Press, the Oceanside High School newspaper. The article is about the morning traffic problem. If you attend the school, please fill out these survey questions, and if you want to help me some more, please send me an instant message (Ldrhcp@AIM) and give me some quotables.

Some of these questions may not be applicable to you based on your answers to other questions. Please answer whichever questions apply to you as best you can.

  1. How do you get to school?
  2. Is there too much traffic coming to school?
  3. If it meant alleviating the traffc problem, would you take a bus to school instead of your current method of transportation?
  4. If you depend on somebody to bring you to school, do you think that they would rather have a bus available to you?
  5. Should all students outside a certain perimeter be offered transportation to school?
  6. Any other comments?
  7. May I quote you in the article?

Please leave your answers in a comment.

108491305030713076

Tuesday, May 18, 2004

Ye Olde Comments

Wednesday, May 12, 2004

One of the changes I made to this site when Blogger added some features a couple days ago was that I am now using on-site comments. To accommodate, the template was changed, removing my old Haloscan comment links. Haloscan had served me well, but it was time to move on.

The problem, now, is that all of that great discussion (I exaggerate just a bit) is lost in cyberspace.

Worry no more! Introducing the Old Comments Bookmarklet. With a single click of the mouse, links to old discussions appear next to every post. This automagical piece of Javascript works on Mozilla and Opera, and probably a few others that have not been tested. Sorry, Explorers, but I do not feel like debugging my code to work in a sub-par browser. Think of this as marketing, though if somebody actually does figure out how to fix it, I would probably accept a patch, or at least offer both versions.

For those of you that do indeed have standard-compliant browsers, all you have to do is add the Old Comments for Lenny's Weblog link to your bookmarks, and click it on any archive page.

Whoosh! With practically no effort on your part, you suddenly have an elegant link reading "Old Comments", even spaced properly with a '|'.

This happens to be the first bookmarklet of any complexity that I have ever written. For those of you that care, here is the whitespaced and commented source code.

// (c) 2004, by Lenny Domnitser. GPL'd.

// select all divs
divs = document.getElementsByTagName('div');

// loop through all divs
for(var c = 0; c < divs.length; c++) {

  // only keep divs that are posts (i.e. are the string "post" followed by numbers)
  if(divs[c].hasAttribute('id') && divs[c].getAttribute('id').match(/^post\d+$/) != null) {

    // the paragraph with the comment information is the third child node
    var infoPara = divs[c].childNodes[3];

    // comments are only for full posts (i.e. class == 'info'),
    // not just lists of links (i.e. class == 'miniinfo')
    if(infoPara.getAttribute('class') == 'info') {

      // the post id. could have defined this before to save code space. too lazy to change.
      var id = divs[c].getAttribute('id');

      // create the link
      var anchor = document.createElement('a');

      // construct the haloscan URL based on the id (see couple of lines back)
      anchor.setAttribute('href', 'http://www.haloscan.com/comments.php?user=ldrhcp&comment=' + id.substring(4, id.length));

      // make it a popup
      anchor.setAttribute('onclick', 'javascript:open(href, \'_blank\', \'width = 420, height = 500, resizable, scrollbars\'); return false');

      // give it link text
      anchor.appendChild(document.createTextNode('Old Comments'));

      // add the spacer and the link to the paragraph
      infoPara.appendChild(document.createTextNode(' | '));
      infoPara.appendChild(anchor);
    }
  }
}

Improved Blogger → Improved Blog

Tuesday, May 11, 2004

This site has taken advantage of some of Blogger's new features. I haven't worked out all of the kinks yet, but it already seems better.

108396802743786072

Friday, May 07, 2004

Doncol

Friday, May 07, 2004

Proud member of the Donnie Collins Fan Club
Join the Donnie Collins Fan Club

Obligatory Justin-Pleaser

Wednesday, May 05, 2004

This is what happens when you hang out with Justin and Beja when they tell you they have nothing to do. From flying (my idea, but perfected by Beja) to mentoring a nine-year-old with a wicked 'tude to playing on the big-toy, it's always a riot.

Update: More photograpgic goodies

Latest entries to this site

Older entries to this site