They are my oldest and deadliest enemy. You cannot trust them.
If Hitler invaded Hell, I would give a favourable reference to the Devil.

Monday, February 09

Geek

P-p-p-parsers

The Ping module has been coded and backported to 1.1, and is in testing.

Trackbacks are fairly simple in principle, until you get to autodiscovery.

With autodiscovery, I have to -
  • Parse any markup in the post (BBCode, Textile, Markdown, Creole, reStructuredText*) to generate pure HTML
  • Parse the HTML to extract links
  • Parse the links to distinguish links to media and files from links to web pages
  • Parse the web pages to find the RDF trackback data (which is likely to be in a comment, so an HTML parser won't even see it)
  • Parse the RDF data for the trackback URL
  • Actually send the ping
  • Parse the XML response
Bleh.

* Yes, there's lots of goodies coming up.

Posted by: Pixy Misa at 02:05 PM | Comments (3) | Add Comment | Trackbacks (Suck)
Post contains 112 words, total size 1 kb.

<< Page 1 of 1 >>
46kb generated in CPU 0.0156, elapsed 0.4024 seconds.
51 queries taking 0.3927 seconds, 332 records returned.
Powered by Minx 1.1.6c-pink.
Using http / http://ai.mee.nu / 330