You know when grown-ups tell you everything's going to be fine, and you think they're probably lying to make you feel better?
Yes.
Everything's going to be fine.

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 >>
47kb generated in CPU 0.0121, elapsed 0.1493 seconds.
51 queries taking 0.1423 seconds, 337 records returned.
Powered by Minx 1.1.6c-pink.
Using http / http://ai.mee.nu / 335