• On Life and Love

    Tastee (del.icio.us) links! (June 12th)

    Links for June 12th from 06:33 to 09:47: Most used CSS tricks | StylizedWeb.com – Neat tricks here, and often cleaner than I tend to code them. xWisdomHTML.com – Handle PHP Dates beyond 2038 – In developing my WP plugin, I needed to be able to handle futuristic dates. This little class took care of that nicely, working up to 3000 CE.

  • Uncategorized

    Initial story management plugin done

    My initial pass at the story management plugin is in place. It doesn’t do the fancy things I want it to do yet, but it can note the root page of a series, output a list of stories in story-date order on that root page, note the arcs, and give Next/Previous links using the actual story names in the individual stories. Not bad for about 3 hours of work. Especially having to code around my elbows in WP. Interesting note: PHP stores timestamps as integers, which means that to get dates beyond the year 2038, I used this nifty little Date class. Dropped in like a charm, doesn’t seem to…

  • Uncategorized

    More on the story engine

    I started working up the story engine last night in Ruby. Greg suggested that XSLT would be perfect for it if I stored my stories as XML. Do a simple transformation, and voila, a story in XHTML with layout and everything. I was hoping I could knock it out in a single evening. Turns out Ruby and XSLT are two more separate critters than I thought — there’s no default library to handle it, and the three or so available are older and lack documentation. Better yet, the one easily available as a gem doesn’t use Ruby’s nice REXML, it uses LibXML. Combine all that with never having used XSLT…

  • Uncategorized

    Story engine

    I’ve always loved the simplicity and pleasantness of whatever must be under the hood of Elf’s stories — he seems to have easy management of story arcs, multiple sortings of stories, multiples sets of stories, next and previous buttons within stories, etc. I’m debating how I want to build my own little story engine. Right now, my stories are in WordPress, published as page. One avenue I could take would be to write a WordPress plugin to allow me to manage stories the way I want — keep them as pages, but add the fluff I want. Another avenue would be to roll my own — make a separate little…

  • On Life and Love

    Shorn grass and blueberry beer

    …I may have killed the grass when I cut it. It was only after the cutting that we read that the grass shouldn’t be cut on the mower’s lowest setting. …Now my grass is dying. o_o Maybe it’s just the weeds that are turning all yellow. Luckily, I picked up some bermuda seed at the store yesterday to fill in some bare patches — I can just do the whole yard if it all dies. I also tried the Sea Dog Blueberry beer last night with our grilled teriyaki chicken and veggies. Took me a minute to warm up to it, but I liked it alright. Not as initially bitter…