Second p0st

tech notes and web hackery from the guy that brought you bzero, python community server, the blogging ecosystem, the new zealand coffee review and the internet topic exchange

2003-1-6

Unnoticed RSS error

Interesting - it looks like the RSS feeds generated by Blogger are missing the RSS 1.0 namespace. Funny that nobody has noticed this - I guess most RSS parsers just munge namespaces altogether and assume that RSS (even 1.0) tags are valid in the default namespace.

Here's the <rdf:RDF> element from a Movable Type-generated RSS 1.0 feed (Phil Ringnalda):

<rdf:RDF
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:content="http://purl.org/rss/1.0/modules/content/"
        xmlns="http://purl.org/rss/1.0/"
        xmlns:rss091="http://purl.org/rss/1.0/modules/rss091#">

Here's evhead's one:

<rdf:RDF
        xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
        xmlns:dc="http://purl.org/dc/elements/1.1/"
        xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
        xmlns:admin="http://webns.net/mvcb/"
        xmlns:l="http://purl.org/rss/1.0/modules/link/"
        xmlns:content="http://purl.org/rss/1.0/modules/content/">

Oddly enough, it validates as RSS. Isn't the namespace mandatory in RSS 1.0? Mark?
... more like this: [, ]

New in Python 2.3

Hey, this is cool: Extended Slices.

Python 2.3 will let you say things like a[1:10:2] to mean elements 1, 3, 5, 7 and 9 of a. a[::2] gives you all the even elements of a. Nice!

Thanks to Mark Pilgrim for the link.