• Sloganized.

    I probably won’t leave it like this, but I’ve swapped out the random signature picker (that which provides the silly text just below the big site logo, up there) with a random slogan picker. At first I was going to use the Sloganizer, which is awfully cool all by itself, but their code refused to play nice with Monaural Jerk’s template-based system. This merely provided me with incentive. I took some time and learned how to make my own!

    function gdSlogan() {
      $sloganfile = file('/PATH/TO/YOUR/slogans.txt');
      $sloganraw = $sloganfile[rand(0,count($sloganfile))];
      $slogantag = 'XYZ';
      $sloganname = 'YourName';
        $sl1 = '<span class="randquote">';
        $sl1 .= str_replace($slogantag, $sloganname, $sloganraw);
        $sl1 .= '</span>';
      return $sl1;
    }
    

    The “slogans.txt” file consists of a bunch of… er… slogans, with the characters XYZ where one’s name should go. I then have that string replaced with, in my case, “GreyDuck” but you could use anything else you like. (Note: I also have a “span” wrapper to make the text behave accordingly with my particular stylesheet.)

    Why didn’t I just write the slogans file so that my nickname would already be in place? Don’t be silly! How would I learn these little tricks if I didn’t push myself just a little bit? Besides, this means that someone who’s equally-or-less skilled at PHP-fu can take that bit o’ code and, say, my slogans file and plug them into their own site, huh?

    It’s a public service, I tell ya. I’m all about helping others.

  • Jiggity Jig

    I’m home from my trip. Had a good time. Ate good food, fixed a computer, put a smile on someone’s face. Several smiles, actually. Train rides weren’t too annoying. Squalling babies in various places were, though. Now I just have to get enough restful sleep tonight to enjoy tomorrow.

    Coherence will come later. Just wanted to let you (my faithful readers) know that I’m home safe and sound and generally happy. Thank you.

  • North for the Weekend

    I probably won’t be posting tomorrow, as I fully expect to be having a delightful time in Seattle this weekend. No time for silly website stuff, you know.

    See you Sunday night. Or even Monday, if I’m feeling particularly lazy.

    Oh, yeah: I resurrected the excerpts from my 2002 NaNoWriMo efforts. Enjoy, if you’re so inclined.

  • Tinkering. Fiddling. Futzing.

    It’s a scary thing, when a geek starts getting restless. He (or she) is prone to puttering around looking for something to tweak, install, experiment upon, or otherwise futz with.

    Today, I got restless. One subtle result is a slightly-modified site banner. Less-subtle results may appear in the next week or so… if, by then, I’m still interested in the projects I started today. Such is the nature of the geek-dilettante.

  • Glass. Probably not liquid.

    I conked my head but good, last night, so I’m not really coherent enough to write anything of my own. Instead I’ll offer you the following link for your education and mythbusting edification.

    Is glass liquid or solid?

  • Bad Boyfriend, no biscuit.

    I also forgot to mention, a couple of weeks ago, that early this month marks two years that a certain someone and I have been “going out.”

    Time flies when you’re having fun, eh? Here’s to many more years, happier years. Love you lots, beautiful!