Python is science fiction, Java is literary fiction, and Ruby on Rails is store-bought steampunk goggles*. Cynthia emailed me about Cat Valente’s funny post about programming languages as literary genres this morning. Liz Henry has a write-up too. * for the record, my steampunk goggles were bought off of Etsy.
Tag Archives: PHP
Get the plugin from wordpress.org. Update 4: Plugin now hosted at wordpress.org. Update 3: New version with support for viewport constants, and iPod Touch. Update 2: James Craig points out that the ID attribute is not allowed in the META element, so I’ve updated the plugin. Update: I should add what my aim is. Rather [...]
I installed the experimental Atom Publishing Protocol Server in in my local WordPress test install. Posted a entry using curl to talk to WordPress. Used hAtom2Atom.xsl to grab the embedded hAtom from the Sandbox themed blog. Read the posted entry in NetNewsWire. Round trip.
My webhost doesn’t run PHP 5 so I can’t experiment with Elias Torres’ APP client for WordPress here. I was able to post to a test install of WordPress on my PowerBook running PHP 5. ETA: there’s an updated version that runs on PHP 4.4.x. ETA 2: And it works, too. I just tried it [...]
Niklas Lindblad, in the comments to the post on hAtom, wrote to remind me that James Snell has a drop-in replacement for wp-atom.php that will upgrade your WordPress blog’s Atom feed to 1.0. In order to use that with PHP 4, apply Niklas’ patch. Finally, if you don’t want to syndicate your feed’s content as [...]
I hung out in the back of the hall at Wordcamp, adding hAtom support to the default WordPress theme. Photo credit: Scott Beale (Laughing Squid) I showed my work to Bill Lazar, who told me that Scott Allan Wallick’s new theme, Sandbox, available for WordPress.com blogs, has hAtom baked in. Well, that makes my work, [...]
Elliote Rusty Harold on the lousy support for URL abstraction on the server side: It’s best to design your URLs without respect to how they will actually be implemented. Design them so they make sense to human clients and search engines. Then worry later about how you’ll actually implement the backend that serves representations of [...]
I wanted to display the age, in years, months, days, etc., of my old weblog entries. I found Aidan Lister’s Duration.php. It defines a static method to convert a timestamp into a readable string. // 2 hours, 20 minutes, 5 seconds $time = 60*60*2 + 20*60 + 5; // Convert to a string echo Duration::toString($time); [...]
Last night I stopped at the Whole Foods by my office to pick up some bread and cheese. The gentleman behind me in line was wearing a black Zend tshirt, and since Zendâ€™s just down the street from us I asked him if he worked for them, and what he thought of Tim Brayâ€™s recent [...]
My rewrite rules for the old RSS/Atom URLs are borked. Trying to debug this now. WordPress advertises the URL /moreLikeThis/feed/atom/, however, that returns a 404 error. More mod_rewrite hacking has fixed this.