Month: October 2003

  • Past, Present, Future – Round Thirty-seven

    PAST: Because we haven’t delved deeply into childhood trauma lately, tell us about the scariest event from your youth.

    PRESENT: Creepy-crawlies? Heights? Large dogs? Oblivion? What are your phobias nowadays?

    FUTURE: Who (or what) do you want to be for Halloween? Price and practicality are no object, here.

    Imagine that, a Halloween-themed PPF. I’m sure you’re all amazed. Leave a comment with your answers or a link thereto, and when you link back please use the handy-dandy permalink below. Thank you, and I hope you have a ghoulishly grand time tonight!
    http://greyduck.net/ppf/

  • Another example of that scary-cool brainwave thing.

    So here I am, tidying up after last night’s email disaster, and Amy brings me a box labelled Priority Mail. It looks suspiciously like a similar box I received a couple months ago. It is, in fact, from the same person… and once again I find brownies inside!

    Of course, this time I had to actually work to find ’em. The entire care package was an Egyptian puzzle-box, I swear! Each brownie individually wrapped, twice! Inside of purple wrapping, twice! Inside a colorful take-out box! With Hello Kitty stickers sealing the take-out box! Inside of bubble-wrap! Inside the Priority Mail box!

    Oh, why don’t I just show you?

    I could be going out on a limb, here, but I think somebody likes me. Thank you, Dawn! Now how did you know to send a care package at just the right time to have it arrive today, of all days?

    (And the brownies? They’re even better than the last batch. Yum.)

  • A bit of nothing to tide you over

    Yes, it’s Wednesday. Humpday, if you will. No, there’s no humping going on, or at least none that I’m involved in.

    Why no updates? Because nothing of note has happened in my life in the last few days. Eat, work, sleep, yadda yadda.

    Okay, so I went out to dinner with Lil’ last night and we had a nice time talking, but that’s about it for excitement lately.

    I mean, yeah, I’m prepping to do NaNoWriMo (and by the gods I need to figure out what the hell I’m going to do for a NaNo website this year) but that’s not going to really take off until Saturday, so that’s not particularly newsworthy now is it?

    And hey, there’s the whole trick-or-treating thing on Friday in addition to some sort of party I’ve been invited to that evening, but that hasn’t happened yet so I can’t really write about it very well, now can I?

    We won’t even go into the long, long, way too long wait for OryCon. Feh.

    So it’s Humpday and I’m in limbo. Bear with me, gentle readers. Bear with me.

  • External PHP via Javascript

    Fed up once and for all with the lackluster reliability and performance of the “free” commenting systems in use by some of my friends, I decided to see if I could rig it so (in theory) they could use a comment script hosted here at greyduck.net instead.

    So what do you do when you want to reference a comment-counting feature that’s written in PHP, on another server, from a server on which PHP is not installed? You call it as if it was a Javascript, of course! (And by “of course” I mean “I learned after a solid hour of Googling and headscratching”.)

    Here’s the trick:

    <script language="JavaScript" src="count.php?id=X">

    X gets filled in with the journal/blog/thingie entry number via whatever mechanism your journal software provides, and the ‘count.php’ is configured not to ‘return’ its calculated result but instead:

    echo "document.write("$result")";

    In other words, PHP is generating what looks like Javascript, and everybody’s happy. My hacked-together ‘count.php’ looks like this (with some obfuscation):

    <?

    function commentCount($n) {
    $comments_path = "/path/to/comments/directory/";
    if($file = @fopen($comments_path . "comments/$n.comment", 'r')) {
    $thisFile = fread($file, '1000000');
    $thisFile = explode("n", trim($thisFile));
    fclose($file);
    $comments = sizeof($thisFile);
    if($comments == 1) {$comments .= " comment";} else {$comments .= " comments";}
    } else {
    $comments = "no comments yet";
    }

    echo "document.write("$comments")";
    }

    commentCount($id);

    ?>

    And the link that calls the comment script and displays a live count of submitted comments looks like:

    <A HREF="javascript:viewComments(X)"><script language="JavaScript" src="http://www.domain.net/location/count.php?id=X">

    Again remembering to replace that X with the unique identifier for that journal/thingie/blog entry. The viewComments() function is your standard “new window popup” trick that I’m sure nobody needs me to detail here. (The X in that function call is passed to the URL for the comment script proper. Nuff said.)

    Granted that this is all designed around the comment code used on this website, so it’s not exactly portable for all uses. The code listed here is only an example of how it can be done.

    Not, mind you, that I’m putting this system into service right away… but working this out certainly was an interesting learning experience for me! Yay, my geek-fu is still strong! *smirk*

    UPDATE: I’m a freakin’ moron. It works great in Mozilla-based browsers but Internet Explorer ignores the living hell out of my count.php script. I have no idea why. I’ve added content-type headers, I’ve tinkered with it six ways from Sunday, and still no-go. So, basically, this was an exercise in utter futility. Argh.

  • When Email Servers Implode

    Goddammit.

    At about 3:15 this afternoon, our Groupwise server’s main mail storage volume ran completely out of disk space. All attempts to salvage the situation with the server code running failed utterly and miserably.

    As of this writing I’ve finally managed to semi-gracefully reboot the server, check and mount its volumes, delete an unneeded installer directory from the volume in question, and start a purge of sent items, trashed emails and (most importantly) oversized emails.

    I don’t know if this is going to work, mind you. Groupwise does funny things with purged emails, like (for instance) hanging on to them even though you’ve clearly told it you don’t want them anymore.

    It’s going to be a long, long evening here at the office, folks. I’ll update this entry as (or more accurately “if”) the situation progresses… or regresses as the case may well be. *sigh*

    And in case you’re wondering: No, I don’t have disk space alarms set on this particular server. SNMP troubles, doncha know. The sort of thing I’d have time to tackle if, say, I had an assistant… but we all know that’s a pipe dream, eh?

    Wish me luck. Lots of it.

    UPDATE: The first purge took 3 hours 20 minutes and brought the server from 99% full (I started the purge after deleting the client install directory so I’d have that one percent to work with) down to about 93%. The second purge took exactly one hour and brought the server down to 65%. How, you ask, did this miracle occur during the second purge? Easy. I was deleting any email larger than 1.5 megabytes. That’s right, folks. About 30% of a 34 gigabyte drive was taken up with very large emails, essentially emails with large files attached. Lovely.

    There’s gonna be some pissed-off folks around the building tomorrow when they realize that their mp3s, videos and PowerPoint files are all missing out of the email system… where they didn’t belong in the first place.

    Me, I’m going home now. It’s about damned time. Two 12-hour days in a row is not my cuppa, baby.

  • Appropriate Pre-NaNo Reading

    Familiar with The Eye of Argon? Enjoy Mystery Science Theater 3000? No? Well, shame on you then. Shame!

    Anyway.

    Via Zeitgeist, on which I would leave comment or email of thanks if such options were available, I give you… The Eye of Argon, MSTied!

    It’s funnier than it has any right to be, if a titch uneven in execution. And I quote:

    The orb that had been before taken for granted, yet now cherished above all else. To be forever refused further glimpses of the snow capped summits of the land of his birth, never again to witness the thrill of plundering unexplored lands beyond the crest of a bleeding horizon,

    Mike: I–I feel his pain. [wipes away a tear]
    Crow: I feel pain all right, but it’s not his.

    and perhaps worst of all the denial to ever again encompass the lustful excitement of caressing the naked curves of the body of a trim yound wench.

    Tom: This is the part of the story Bob Packwood can really relate to.

    This was indeed one of the buried chasms of Hell concealed within the inner depths of the palace’s despised interior.

    Mike: They keep Limbo in a closet up on the second floor.

    A fearful ebony chamber devised to drive to the brinks of insanity the minds of the unfortunately condemned, through the inapt solitude of a limbo of listless dreary silence.

    Crow: If you’re trying to drive them insane, why not just make them read THE EYE OF ARGON? It’d be a lot quicker.

    Okay, yes, so I’m a weirdo to get such a kick out of this sort of thing. Your point being…?