Representation, Again

I mean, XML is better if you have more text and fewer tags. And JSON is better if you have more tags and less text. Argh! I mean, come on, it’s that easy. But you know, there’s a big debate about it. [Steve Yegge, via Simon Wilison]

I’ve been asking that question in interviews, and I [...]

iphone-viewport-meta plugin 0.7

I’ve updated my iphone-viewport-meta plugin for WordPress. The changes include support for the iPod Touch:

Now uses device-width constant instead of a value in pixels.
Test for both iphone and ipod in user agent string.
Switch from semi-colon to comma as separator, per ADC documentation.

James Craig has been great with pointing out bugs and changes to the viewport [...]

CommentPress and Writing on a Roll of Towels

Back in 2004, Kathyrn Cramer, a veteran hypertexter, described blogging as “writing on a roll of papers towels” [1], so I’ve been on the lookout for blogging tools that behave more like hypertext.
The Institute for the Future of the Book released CommentPress, a WordPress Theme, that breaks out block-level elements of a blog post into [...]

iPhone Viewport Meta Plugin for WordPress

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 than creating a separate [...]

Overflow and iPhone

Just noticed this, but if you set a div to a fixed width, any content that overflows the width is truncated, and iPhone safari does not provide a scroll bar, even if overflow is set to scroll.
Update: If you use two fingers, you can scroll within the overflowed div.

iHack

Removing Trying some optimizations for iPhone.

iPhone for Web Developers

Apple developer documentation for iPhone web applications. [via Simon Willison]

Updated ‘Asides’ Rules for Sandbox 0.9x

The 0.9x version of Sandbox updated the HTML structure of individual entries, reducing the complexity of the CSS rules needed for displaying ‘asides’. Here are my changes:

/* asides rules */

body.home div.category-linklist * {
display:inline;
}

body.home div.category-linklist h2.entry-title {
font-size: 12pt;
display:inline;
}

body.home div.category-linklist h2.entry-title:after {
content: “: “;
}

body.home div.category-linklist div.entry-meta,
body.home div.category-linklist div.entry-date {
display: none;
}

body.home div.category-linklist {
padding: 0pt 10pt 10pt 10pt;
}

/* Asides [...]

No Inline Markdown, Please

Daniel Jalkut mentions the support for Markdown in MarsEdit. I love Markdown, but I don’t want to install a Markdown output filter for WordPress.
What I’d like to see is an option to convert the post in MarsEdit to and from Markdown, so I can publish XHTML, and convert back to Markdown if I edit it [...]

No, really, catalogs matter.

Back in 2004, I wrote up my harsh lesson in using a validating parser and why you should use an XML Catalog in your systems.
Last week, Netscape temporarily removed the DTD for RSS 0.91 from their site, and things promptly went south.
In response to that mess, Henri Sivonen points out that if you’re sending XML [...]

“HTML, XML, JSON.”

Tim Bray has the right take on the JSON/XML kerfluffle.

HOWTO: Asides in Sandbox

One thing I love about the Sandbox theme for WordPress is the ease which which you can create per-category CSS customization. Andy Skelton had written a note on how to do it, which I used as a basis for mine.
Here’s my CSS rules for asides. You’ll need to use the Sandbox theme, and I advise [...]

More Timeline Applications

Mark Bernstein’s using Timeline to generate a view of his speaking engagements over the past few years. He put together some instructions, and supporting files for using Timeline with Tinderbox.

On Patching Wordpress with Atom 1.0

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 escaped HTML, [...]

The State of Screen Scraping

During all this recent excitement about using hAtom to generate feeds, I’d forgotten that I wrote about the concept nearly three years ago when I was getting ready to talk about syndication at Seybold SF.
While providing a purpose-built (ahem, Atom) feed remains the best answer, hAtom offers two things we didn’t have three years ago:

A [...]