What happened?
Twelve years!
You hit me with a cricket bat!
Ha! Twelve years!

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 >>
42kb generated in CPU 0.04, elapsed 0.2263 seconds.
51 queries taking 0.2029 seconds, 266 records returned.
Powered by Minx 1.1.6c-pink.
Using http / http://ai.mee.nu / 264