• Web

131,000 words

“Successfully posted 131 photo(s) to LiveJournal”

All photos in my Flickr photostream that had descriptions now have corresponding LiveJournal entries. They’re all backdated, so they shouldn’t flood your friends pages. Feel free to browse the newly-populated photos tag.

Of course, after all the testing I did, I didn’t realize until half-way through running it the final time that putting the CSS for the drop shadows in the stylesheet means they wont show up if you’re not viewing them through my style. Since the entries are backdated, you have to go out of your way to view them outside of my style anyway, so it’s no big deal. Future entries created by the script will include the CSS for the drop shadows inside the entry so they’ll show up on your friends pages / RSS readers too.

Edit: Ok, it looks like the LJ docs are wrong about backdated entries not showing up on friends pages. I went back and deleted the less-interesting pictures, bringing it down to 20 posts (about a page) you have to wade through to see the rest of your friends posts. Sorry about that.

  • Web

Tumbling down

I played around a bit with Tumblr, and while it’s a bit too simplistic for me, it did have two features I really liked:

* Automatic formatting of IM conversations
* Automatically creating posts when an RSS feed (my flickr photostream, stumbleupon favorites, etc.) changes

As you can tell from the previous entry, I’ve implemented the automatic formatting using LiveJournal’s S2 programming language. Any post tagged “chat” gets turned into an HTML list with colored names.

For anyone curious on how it works, the following code gets run to output each journal entry:

  • Life

IM formatting test

Sam: This is a test.
World: A test?
Sam: Yes.
Sam: A Test.
World: What are you testing?
Sam: I’m testing the automatic colorization of IM logs.
World: The hell you say??
Sam: I wrote some code for my LiveJournal S2 style that should automatically format any entry tagged “chat”.
World: But I don’t see any colors?
Sam: If you’re viewing this through your friends page, this text should look normal.
Sam: But, if you view it from www.c99.org or c99koder.livejournal.com, it should look all pretty.
World: Hey! That’s pretty cool!

Close Menu