Sun, 14 Dec 2003

Publish this Blog Entry... OR DIE!

I wrote a stupid bash script to automate some of the things I found myself doing time and again as part of the process of publishing blogs.

#!/bin/bash

# publish by Shannon Prickett (binder@manjusri.org)
# Promote a .tst to a .txt for Blosxom to grab.
# $Id$

declare -a TARGETS

BASEDIR=/scratch/www/blosxom
BLOSXOM=/usr/lib/cgi-bin/blosxom
PASSWORD="suuuuuure"
ARGS="-password=${PASSWORD} -quiet=1 -all=1"
SEDSCRIPT=${BASEDIR}/transforms

BASENAME=/usr/bin/basename
DIRNAME=/usr/bin/dirname
FIND=/usr/bin/find
ISPELL=/usr/bin/ispell
MV=/bin/mv
RM=/bin/rm
SED=/bin/sed

TARGETS=`${FIND} ${BASEDIR} -type f -name \*.tst`

for FULLFILE in ${TARGETS[@]}
    do
        echo "Found target: ${FULLFILE}"
        FILEPATH=`${DIRNAME} ${FULLFILE}`
        FILENAME=`${BASENAME} ${FULLFILE} .tst`
        WORKFILE="${FILEPATH}/${FILENAME}.sed"
        DESTINATION=${FILEPATH}/${FILENAME}.txt
        ${ISPELL} -h -x $FULLFILE && ${MV} ${FULLFILE} ${WORKFILE}
        ${SED} -f ${SEDSCRIPT}  ${WORKFILE} > ${DESTINATION} &&
            ${RM} ${WORKFILE}
    done

echo "Publishing to site."
${BLOSXOM} ${ARGS}
echo "All done."

You'll notice that I took perverse joy in abstracting all my executables to variables and that while I intended to check it in to CVS, I haven't yet done so and that the sed I use doesn't allow inplace editing. I had originally envisioned writing a Makefile which would let me do all this jazz but that turned out to be overkill and I was spending more time guarding against things I didn't want being done than I was writing things that I did want done, so bash saved some of my hair.

Speaking of sed, here's a subset of that transforms file I use to allow me to mark up my blog entries with lazy tags instead of typing the freaking URL every time for things I often reference. If I were very smart, I'd have some way to automatically extend this. It was, however, The Simplest Thing Which Could Possibly Work.

[transforms excerpt removed until I extend publish to entity-tize my html on request so that I can actually show what it does]

I fully expect to add more transforms and perhaps even more exciting sed operations, especially if Crag does the heavy lifting for me by doing his proposed STL-engine-in-sed.

posted at 16:00 PST (-0800)     (comments disabled)   permanent link  
Crybaby Bridge

I love Unknown Armies. It is a fine, fine RPG.

So in my usual quest to be the kind of compleatist who buys everything for it, I picked up the last 1st Edition supplement, I didn't yet have, Weep. I'll try to describe it in terms which will inspire you to go pick up something from Unknown Armies because, really, I think it's that good.

This has six scenarios. Like One Shots, you probably won't want to use all of them. You shouldn't want to use them all in the same campaign, unless you're going for that psychotic surrealist flavor that some people may enjoy. But there's a lot of fodder to pull for any kind of UA campaign from this. Here, I'll even list them and what I might suggest you could take away from it. People reading this who may play in games I run should remember that nothing is true and everything is forbidden.

  • A Few of My Favorite Things -- This is John Tynes, a quick drop-in political Dadaist commentary. Good for a dream like sense of the world with some satire embedded in surrealism. Probably any character with experience with America could fit in here and the situations faced are amenable to multiple approaches [fleeing in terror will almost always work, if nothing else] in problem solving. This is quite good and abbreviated, leaving the GM lots of space to add their own meat to the skeleton.
  • Swap Meet -- This is Rick Neal, a longer narrative to thread against your 'normal' campaign. Probably not something I'd start a campaign with but definitely I'd have in mind when starting a campaign. Lots of really messed up GMCs, lots of cool imagery to swipe, some fascinating concepts. It's about a place where anything can be bartered for and the kinds of people who want to go there and what they do when they get there. Great for feeding your PCs a Maguffin or letting them escape a nasty situation ... by seeking out a nastier one. Yum. Good stuff, here.
  • Drink to That -- This is Greg Stolze, a sequel to one of the standard UA campaign adventures of sorts. It's event triggered, by your ongoing campaign and may not even appear to be an adventure until the culmination. This one is sneaky and subversive and just right. It's a quiet bomb going off underneath you.
  • The Green Glass Grail -- This is Chad Underkoffler, a potentially self-contained side-trip or possibly part of an ongoing campaign. It's got a really fascinating structure, which allows a GM to build the adventure from a checklist of pieces of the jigsaw, including choosing the villain of the piece so you could run it differently for different groups. Some fun street level GMCs here, nothing too abracadabra [other than the grail], and quite a bit of meat to tie it to the usual groups players find themselves entangled with in UA [ The New Inquisition, the Sect of the Naked Goddess, the Sleepers, and especially Mak Attax ]. This one is rich with elements to pull out but has a holistic unholy joy to it.
  • Stoon Lake -- This is Greg Stolze, again. Clever, with some great GMCs and an under-visible flavor of UA is represented here. Some great GMCs to shanghai from this story in to others if the scenario doesn't float the GM's boat. It's all about a Bigfoot attack. I like Bigfoot. I used to seek out news stories about Bigfoot. Here's the last one I read. This scenario is the sleeper hit for me; I didn't expect to like it as much as I did.
  • Garden Full of Weeds -- This is James Palmer, and is either the weakest or the strongest of the lot. I still can't decide. It's a little less focused than some of the others [even the checklist of TGGG] but contains some of the most disturbing elements because it targets things which scare me and piss me off in real life. Rich with huge pieces you could rip out and drop in to your own campaign but which mutually reinforce the creepiness of this scenario. I think I'd need a very particular group of players to run this for to get the full effect of it but the payoff for that would be tremendous [much like one of the ways to handle character death in Over the Edge, which would not work for most groups -- if you've read it, you know what I'm talking about and if you haven't, I dare not spoil it].

Unlike some of the other supplements I've picked up over the years for Unknown Armies, nothing in this one has been incorporated in to the second edition. Not that I mind, I'm just saying. I say buy everything you can find for this game and run it and play it and give yourself a nice thoroughly mindfucking. You deserve it!

I also picked up the second edition rules, because I saw two NEW supplements for second edition Unknown Armies I intend to treat myself to very soon, but that'll wait until another review, after I've finished reading it.

posted at 15:49 PST (-0800)     (comments disabled)   permanent link  
Two Princesses, Two Dogs, Some Dragons

I am extremely delighted by Bone and have loved every bit of it I've read. This most recently includes Rose, written by Jeff Smith and illustrated by Charles Vess.

My goodness. What to say? It's pretty. It's a great prelude, with hints of the future storyline. But it also stands alone. So you don't need to have read the rest of Bone to dig this. I don't want to spoil any bits of this for anyone so suffice to say that if you like stories with princesses and dragons, you'll like it. If you don't like this, there's something wrong with you. Get with the program, monkeypants!

posted at 15:48 PST (-0800)     (comments disabled)   permanent link  
Season's Hackings

You've doubtlessly already seen this if you're the kind of person who likes this kind of thing. I saw it a while back but forgot to spread the meme. Mmmm, sweet, sweet Perl.

posted at 13:36 PST (-0800)     (comments disabled)   permanent link  
FOAF Alert

So Crag has a friend and this friend bought blogshares and I somehow feel like I should know something about that but I don't think I do, mostly because the University of Iowa's Politics Exchange wasn't nearly as cool as I thought it could have been and since then, stock exchanges don't hold the allure for me they once do. But now you know; I know someone who knows someone who bought a website that some people care about.

posted at 13:35 PST (-0800)     (comments disabled)   permanent link  
Portage and Sabot

Oh, this rant gave me a big smile and the place I fond it made me smile even more. It's like other places but without all the tedious commentary and discussion. Super sweet.

posted at 12:48 PST (-0800)     (comments disabled)   permanent link  
Journey to the Center of the File System

Well, this is quite pretty and might almost be worth going to the dark side for. Or I could wait a while and there will probably be something similar for the other dark side. It's unlikely to manifest soon in my favorite window manager trimmings because my favorite window manager doesn't have any trimmings.

It Just Works.

posted at 11:51 PST (-0800)     (comments disabled)   permanent link  
December
Sun Mon Tue Wed Thu Fri Sat
 
14
     
2003
Months
Dec