jerakeen.org

by Tom Insam

notes☴

code☷

links☲

photos☵

pyquery

pyquery

created 12 December 2008 in links tagged dom, jquery, python and xml.

Via Simon Willison, it’s a python library that lets you mess around with XML documents in python, using language similar to that in jQuery. I’m intrigued that, just as JSON starts to get serious traction in APIs, my XML tools are getting good enough to almost keep parity in terms of convenience.

(later - I can’t get it to build. Curse these computer things)

http://pypi.python.org/pypi/pyquery

#10324 (Jabber connection unreliable) - Adium X - Trac

#10324 (Jabber connection unreliable) - Adium X - Trac

created 07 July 2008 in links tagged adium, bug, jabber and xml.

This bit me badly. Yay for fixing things quickly!

http://trac.adiumx.com/ticket/10324

ElementTree Overview

ElementTree Overview

created 25 April 2008 in links tagged elementtree, programming, python and xml.

One of the better python XML libraries. Ships in core python.

http://effbot.org/zone/element-index.htm

XFN - XHTML Friends Network

XFN - XHTML Friends Network

created 07 January 2008 in links tagged graph, social, xfn and xml.

XHTML Friends Network is a simple way to represent human relationships using hyperlinks

http://gmpg.org/xfn/

the Blogger, Movable Type and MetaWeblog XMLRPC APIs

created 26 February 2007 in blog tagged cms, programming and xml.

There are 3 different XMLRPC APIs for editing blog posts. I really don’t like the Atom Publishing Protocol, but given the state of the alternative, I can see why other people do..

Adding a metaweblog interface to django

created 23 October 2006 in blog tagged cms, python and xml.

I tend to reimplement the CMS that drives jerakeen.org more often than I add content to it, but the current Django based incarnation seems to have decent sticking power. A lot of this is Django’s magic admin interface middleware. When I add, say, a tagging engine to the site, I only need to worry about the object model and presenting it on the site itself. All the boring and much harder to write admin pages to add and remove tags just write themselves. But the other reason I’m staying with it is that I’ve now added so many features to it (because it’s easy!) that a re-write in another language would be a huge amount of effort.

This weekend, for instance, I’ve added an implementation of the metaweblog API to the site, using the excellent code on allyourpixel as a base. The main source of pain is the persistent weirdness of implementing the Movable Type extensions to the metaweblog extensions to the Blogger XMLRPC API. How can you call something a metaweblog API and not allow for post excerpts, for instance? So annoying.

editing jerakeen.org using ecto

While implementing it, I found the TextPattern API reference to be far more useful than the official spec, mostly because it covers everything up to the Movable Type extensions, which you need if you want to edit page excerpts. The other problem I encountered was that Ecto won’t talk to an endpoint over HTTPS with a self-signed certificate unless the SSL cert is in the local machine X509 database. The way it fails is incredibly unhelpful and annoying, too. The simplest way to fix it (assuming a recent macos) is to visit the endpoint in Safari. It’ll complain about the certificate - click the ‘always trust this site’ box, and it’ll stop.

XSL Transformations (XSLT)

XSL Transformations (XSLT)

created 20 October 2006 in links tagged xml and xslt.

XSLT can be made to output HTML. I have need of an XML->HTML converter, so this may be useful to me.

http://www.w3.org/TR/xslt#section-HTML-Output-Method

Data Feeds - Last.fm

Data Feeds - Last.fm

created 08 June 2006 in links tagged music and xml.

A ‘todo’ note to myself

http://www.last.fm/onyoursite/datafeeds.php

BadgerFish

BadgerFish

created 12 April 2006 in links tagged javascript and xml.

http://badgerfish.ning.com/

ongoing · Don’t Invent XML Languages

ongoing · Don’t Invent XML Languages

created 11 January 2006 in links tagged lesswork, tbray and xml.

http://www.tbray.org/ongoing/When/200x/2006/01/08/No-New-...

NewsGator API Homepage

NewsGator API Homepage

created 27 November 2005 in links tagged blog, programming, reference, rss, web and xml.

http://www.newsgator.com/ngs/api/default.aspx

Zope.org - TAL

Zope.org - TAL

created 05 October 2005 in links tagged language, template and xml.

http://www.zope.org/Wikis/DevSite/Projects/ZPT/TAL

AnnoCPAN - Petal

AnnoCPAN - Petal

created 05 October 2005 in links tagged perl, petal, template and xml.

http://annocpan.org/~BPOSTLE/Petal-2.16/lib/Petal.pm

from __future__ import * » Airport Express Hates Me

from __future__ import * » Airport Express Hates Me

created 22 July 2005 in links tagged airport, mac, mp3, python and xml.

http://bob.pythonmac.org/archives/2005/07/18/airport-expr...

Universal Feed Parser docs

Universal Feed Parser docs

created 08 October 2004 in links tagged docs, python, rss and xml.

http://feedparser.org/docs/

blogroll

created 13 August 2004 in blog tagged perl, template and xml.

Ah ha! I have a blogroll. Ph33r me.

In other news, Template::Plugin::XML::Simple is really nifty.

<p class="code">
[% USE blogroll = XML.Simple('/export/home/tomi/web/jerakeen.org/blogroll.opml') %] 
&lt;p class=header&gt;blogroll&lt;/p&gt;
&lt;p&gt;
[% FOREACH section = blogroll.body.outline %]
  &lt;a href="[% section.htmlUrl %]"&gt;[% section.text %]&lt;/a&gt;
  [% UNLESS loop.last %]&lt;br /&gt;[% END %]
[% END %]
&lt;/p&gt;