Dylan Tweney
Rough Drafts

tinywords returns.

The daily haiku journal I publish, tinywords — which I like to refer to as “the world’s tiniest magazine” — has resumed publication. I’m working on some enhancements to the site which I hope to be able to announce in the next couple of weeks. I’ve ended a short, ill-conceived flirtation with WordPre
Dylan Tweney 1 min read

The daily haiku journal I publish, tinywords — which I like to refer to as “the world’s tiniest magazine” — has resumed publication. I’m working on some enhancements to the site which I hope to be able to announce in the next couple of weeks.

I’ve ended a short, ill-conceived flirtation with WordPress as the content management engine behind tinywords, and returned to the custom PHP-MySQL engine I built for the site. WordPress is a great blogging tool (I use it for the Tweney Review) but it wasn’t well-suited to the particular needs of my haiku zine. Unfortunately, I had about 6 months’ worth of haiku, along with their comments, that had been published on the WordPress site. I also really liked the design of the WP site, which was based on the lovely Manji by Khaled Abou Alfa.

So, I spent a few half-days last week porting the design, the haiku, and the comments from WP to my own system. Moving the haiku was easy; moving the comments, a little trickier. That’s because WP’s comments table was keyed to posts in its own table, which obviously have different ID codes than the haiku in my own database’s table. The process wasn’t pretty (export to CSV, import into OpenOffice Calc, munge data, clean up, rearrange columns, export back to CSV, then import into the new database) and took far longer than I thought it would. I hope I never have to do that kind of thing again.

Two lessons learned along the way:

1. Always test your SQL selection statements before using them in a “DELETE FROM” query.

2. Always make backups of your tables before running a “DELETE FROM” query that might, say, accidentally delete every last row in said table.

Many, many thanks to Scot Hacker at birdhouse hosting, which hosts tinywords, for restoring my accidentally emptied table from a regular nightly backup.

Share
Comments
More from Dylan Tweney
Rough Drafts

Fifth Sun

Fifth Sun: A New History of the Aztecs by Camilla Townsend Camilla Townsend has pulled off a remarkable magic trick in this book, reconstituting the Mexica empire with an amazing level of detail and sensitivity. It makes the Aztecs feel like a real people, with a vibrant and complex culture, instead
Dylan Tweney 1 min read
Rough Drafts

The tree with the lights in it

Pilgrim at Tinker Creek by Annie Dillard My rating: 5 of 5 stars It took many months for me to finish reading this book, as I could only manage it in small doses. Dillard writes with an intensity level that starts around 7 or 8 and cranks up to 11 by the end of each […]
Dylan Tweney 1 min read

Storylines

Subscribe to my newsletter on writing & storytelling

Great! You’ve successfully signed up.

Welcome back! You've successfully signed in.

You've successfully subscribed to Dylan Tweney.

Success! Check your email for magic link to sign-in.

Success! Your billing info has been updated.

Your billing was not updated.