Jun. 15th, 2008

elfs: (Default)
There are two programs that run most of my story website. They're uncreatively named storyengine and narrator. Storyengine takes source code from a collection of series (right now these are: The Journal Entries, Aimee, Bloody Beth, and Other Tales) and ball them up into an archive ready to be deployed to the web. My stories start as plain text in my Documents folder (unlike Windows weenies, we Linux men and women rarely prefix our directories with that narcissistic and infantile "we"), in the "plain text" flavor of the day: I started out in a Usenet-flavored syntax, morphed into AFT (Almost Free Text), and now use Emacs-Muse for most of my writing. Muse is well-supported and easy to understand, and it has the four basic faces I need: blockquote, italics, boldface, and texttype. When I'm ready to add a story to the database, I run it through a small python program called etxttoxml which converts my scribblings into an XML document and gives it a header that looks like this:

<story> 
<meta> 
<title>Nymphs In November</title> 
<commentid></commentid> 
<pubdate>13911</pubdate> 
<wordcount>7541</wordcount> 
<cookie>XX</cookie> 
<arc>The Mystical Treefort</arc> 
<summary>Jack and Annie go to Sicily to meet Sappho</summary> 
<wikipage>n/a</wikipage> 
<storycodes>n/a</storycodes> 
</meta> 
<body>


The rest of the document is elided. It's HTML. Some of these fields aren't used, like commentid, which was meant at the time to link to a forum database entry for that story in specific. I doubt I'll ever get the kind of readership that XKCD gets so I've never implemented the forum. Pubdate is the number of days (not seconds) since January 1st, 1970.

So, right now the bulk of the database is "stories," with "arcs" and "series" as the heavy metadata. Series have stories, and some stories belong to arcs.

I'm starting to think I need a rails program just to keep track of what the heck is going on in my stories database. I should be able to whip one up in a couple of hours, ne?

[A couple of hours later...] I am defeated. Rails 2.0 is way different from 1.2. So way different I can't even begin to figure out where the heck to go. You don't build controllers anymore; instead, you kind of summon them with a complete model and the migration in place, and no real power to adjust anything at first. It kinda sucks. I understand that it's a better model, David, but could we please have some documentation with it?

Anyway, at least it's coming along...
elfs: (Default)

Hanging out with the kids.
Other than geeking, my Father's day was quite lovely. The children woke me up with scrambled eggs and fruit salad, and after that Omaha and I dropped them off with a friend for two hours while we went to see the musical, Avenue Q, which was frakkin' hilarious and wonderful and all that. Yes, the musical that includes, The Internet is for Porn!.

After the play we picked up the girls and I dropped Omaha off at her bi-weekly role playing game, then went home. The girls and I kinda fumped around outside, played on the swings and I dug up some weeds. I cooked pizza for dinner. Around seven it was time for Yamaraashi-chan to go back to her mother's house, but with fifteen minutes to spare we swung by Baskin-Robbins for ice cream. I had peppermint, yum.

When Kouryou-chan and I got home, we played Sorry! for a little bit before her bedtime. All in all, a lovely day, quiet and not too demanding.

Profile

elfs: (Default)
Elf Sternberg

December 2025

S M T W T F S
 12345 6
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jan. 4th, 2026 10:49 am
Powered by Dreamwidth Studios