Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TorgoX (1933)


"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Thursday November 06, 2003
03:23 PM


[ #15617 ]
Dear Log,

The Homestar Runner RSS that I set up a while back was a bit atypical as RSS feeds go, in that it listed a whole bunch of things instead of just the newest things. But it turns out that LiveJournal's software didn't like that approach much, so I recently fiddled with it to list only new things.

Internally I implement this with just a hash that tracks the first time an item is seen, like $first_seen{$url} ||= $^T, and then I sort the URLs by time and show the most recent few. That approach would need some ammending if there were constantly URLs coming and going (otherwise the persistent %first_seen hash would get quite large), but that's not the case with the Homestar Runner site, so I got to be lazy. Homsar is my role model.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.