November 2003 Archives

ScriptyGoddess has had (for quite a while) a script and template code that allow inline expansion and collapse of extended entry text. To generally make it easier to read and understand as well as fix some problems in it, I made a number of changes to it. Here is my modification of the javascript code, which goes between the <head> and </head> tags in your template:

<script type="text/javascript">
  function showMore(entryID, entryLink, htmlObj) {
    extTextDivID = ('extText' + (entryID));
    extLinkDivID = ('extLink' + (entryID));
    if( document.getElementById ) {
      if( document.getElementById(extTextDivID).style.display ) {
        if( entryLink != 0 ) {
          document.getElementById(extTextDivID).style.display = "block";
          document.getElementById(extLinkDivID).style.display = "none";
          htmlObj.blur();
        } else { 
          document.getElementById(extTextDivID).style.display = "none";
          document.getElementById(extLinkDivID).style.display = "block";
        }
      } else {
        location.href = entryLink;
        return true;
      }
    } else {
      location.href = entryLink;
      return true;
    }
  }
</script>

And here's my modification of the template code to display the extended entry text:

<MTEntryIfExtended>
  <div id="extLink<$MTEntryID$>">
    <a href="<$MTEntryPermalink$>" name="ext<$MTEntryID pad="1"$>" 
onclick="showMore(<$MTEntryID$>,'<$MTEntryPermalink$>', this);return false;">
Continue reading "<$MTEntryTitle$>"... &raquo;</a>
  </div>
  <div id="extText<$MTEntryID$>" style="display: none">
    <$MTEntryMore$>
    <a href="#ext<$MTEntryID pad="1"$>" 
onclick="showMore(<$MTEntryID$>,0, this);return true;">&laquo; All done!</a>
  </div>
  <br />
</MTEntryIfExtended>

What changes I made and why:

Go away spammer!

| 4 Comments

I was checking over the web server error log at my host and saw something a little strange: some idiot at IP address 200.21.230.74 (which a reverse DNS shows as proxy3.telecom.com.co) tried to access all of the following files within 1 second:

/public_html/cgi-bin/formmail2.cgi
/public_html/cgi-bin/formmail.cgi
/public_html/cgi-bin/FormMail.cgi
/public_html/cgi-bin/FormMail2.cgi
/public_html/cgi-bin/formmail2.pl
/public_html/cgi-bin/formmail.pl
/public_html/cgi-bin/FormMail2.pl
/public_html/cgi-bin/FormMail.pl

A machine that appears to be routing through a proxy server and trying to access a mail program on my account makes me think somebody is hoping I would be a spam relay for them. Fortunately, formmail is not installed in my /cgi-bin directory. Tough luck, you little scum-sucker!

Based on a question from Steve Kirks, I've started working on a tool that would capture a copy of a Radio Userland weblog's comments on Userland's server so they could in turn be exported to another blog application (e.g. Movable Type).

I have most of the "core" import code written - the export code still needs to be written, and the new tool needs "window dressing" so someone besides me can use it. It seemed like now would be a good time to solicit some suggestions for a tool like this. If you have any, let me know in the comments.

Lunar Eclipse Photo

South Knox Bubba has an exclusive lunar eclipse photo that you just have to see to believe.

Comment Spam Manifesto

Adam Kalsey is drawing a line in the sand and declaring war on comment spammers. He has put up a Comment Spam Manifesto, to spread the word in the blog community and to put spammers on notice. Read it. Link to it. Tell your friends about it.

Also, Adam has an encounter with a comment spammer tale of his own - and he got their hosting account shut down to boot.

Failure of nerve

| 8 Comments | 1 TrackBack

Tacitus has a powerful post about suffering from depression while serving in the military. (Via Calpundit)

His story especially resonated with me, because I was in the same situation, 15 years ago. I was not an officer - I was only a Spec 4 (enlisted). At the time, I did not know that I was suffering from a medical condition (and would not begin to know for another 2 years), and neither did the Army. The depression eventually got bad enough that I didn't report for duty (on more than one occasion). I just sat in my apartment, knowing the MPs were going to show up but not caring or feeling anything at all. In the following months, I lost two grades in rank through Article 15's (demoted to Private E-2 in non-judicial punishment proceedings) and finally given a general discharge under honorable conditions.

Most of my unit thought I was trying to pull a fast one to get out of duty, get out of the Army, and go home. I heard my brigade commander was against discharging me - that he wanted me court-martialed instead. The company commander and 1st sergeant thought I was a discipline problem to be solved through Article 15's and extra duty.

Before I was discharged, I was sent to talk to a counselor a few times. Even not knowing what my problems really were, I got the feeling my problems were way over the counselor's head. My impression of that time is that the Army was not really equipped to deal with soldiers with those kinds of problems and that it didn't want to.

I am proud to be able to say I served, but I can hardly be proud of my record. I wish things could have turned out better, but I don't see they could, even if I knew then what I know now. I have been living with depression for over 25 years, and it still kicks my ass, even to this day.

Cornering a bottom-feeding scum-sucker

Joseph Duemer has a great post describing his encounter with a comment spammer. (via BuzzMachine)

Ban the Ban in D.C.

| 1 Comment

From InstaPundit: "BAN THE BAN is a weblog devoted to fighting D.C.'s smoking ban. Check it out."

I did check it out. They want to pass a smoking ban in D.C. much like the one California has. (Too bad it doesn't look like California's ban will be rescinded any time soon.) Some commenters there who support the ban have some really odd notions of rights and justifications for the ban (just like here in California).

My comments on some of the wilder statements left in response to "If You Were in the Service Industry..." (Nov. 6) -