Author: Karel Kerezman

  • Other Useful Callings

    In one of the many debates to be found raging in cyberspace about what the Founding Fathers “really intended” by way of separation of Church and State, I found this little chestnut:

    “The clergy, by getting themselves established by law, and ingrafted into the machine of government, have been a very formidable engine against the civil and religious rights of man. They are still so in many countries and even in some of these United States. Even in 1783, we doubted the stability of our recent measures for reducing them to the footing of other useful callings. It now appears that our means were effectual.”

    — Thomas Jefferson, 1800

    I just love that “other useful callings” bit, really. And then, of course, there’s this concise summation:

    “The government of the United States is not in any sense founded on the Christian religion.”

    — George Washington, Treaty of Tripoli

    In case anyone was wondering.

  • 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?