> > What, you too? Actually, I don't save them to disk but ended up writing a
> > generic cartoon grabbing routine that gets all my cartoons for the day and
> > sticks them on one page on the infamous blue box at mailbox.
>
> If you feel like indulging my combination of laziness and business by
> sharing your code, I'll raise you at least one beer token for the next
> london.pm meeting, which I *will* attend.
> :)
Sure. However, let me warn you that this was written when I wasn't paying
attention, and does quite a lot of very silly things that you really
shouldn't do. Especially with scope....
http://2shortplanks.com/today/getcartoon
Possible future improvements :
1. make run with more than one fetch at a time (currently this cannot be
done live as fetching each page sequentially takes so long that the
browser often times out - currently using a cron job to solve this)
2. parsing out the banners and showing them too so that the sites get the
impressions (hard! easy with just images, but 3rd party HTML baners a
major headache)
3. implementing some kind of simple locking system that asks for a
password unless you've got a longlife cookie set saying you're allowed to
see the page (and then sets one once you've correctly entered the
password) to make sure this is for personal use only.
Just for the record, my daily cartoons are :
User Friendly
Dilbert
Calvin and Hobbes
Peanuts
Sinfest
Waiting For Bob
Goats
Penny Arcade
Later.
Mark.
--
print "\n",map{my$a="\n"if(length$_>6);' 'x(36-length($_)/2)."$_\n$a"} (
Name => 'Mark Fowler', Title => 'Technology Developer' ,
Firm => 'Profero Ltd', Web => 'http://www.profero.com/' ,
Email => '[EMAIL PROTECTED]', Phone => '+44 (0) 20 7700 9960' )