Beatniks with better clothing perldoc | Python blogs | 2lmc | About



May 17, 2003  

I've put up two pieces of code that someone somewhere might find useful.

The first is a MSN bot written in Python - in much the same way as an infobot in Perl, but with fewer features for your, er, benefit. It's not threaded, it has no stack or queueing system. It was written mainly for my own benefit (to learn Python, and because my short term memory is useless). Eventually I'll just use it as an annoying to-do list, with timed reminders and so on, and maybe even a server monitor, so I can be messaged if something falls over.

The second is a documentation system for Perl and PHP scripts. Having worked on a number of different projects recently, been able to pull out all the comments in the files, and have them saved in a way that shows me what object, method or function they were in, has been invaluable. It's a Perl module that is (inevitable) a bundle of regex's to pull out any type of //, #, or /* */ comment in Perl of PHP file. Comments are then stored according to line number, object, method and so on. So, this isn't something that is going to change the way you work, it's more of a real-world utility. I've seen lots of code that was written to a deadline, and the comments have been poor. But, there is always some basic metadata attached to a comment, it's location being the primary clue. So, by finding comments, and attaching their location to them, I can at least make the best documentation possible from a nasty codebase. Of course, with nicely documented code, this is just the cherry on the icing on a very nice cake. Said Pooh.

And finally, if you're looking for restaurants in london, or if you want to read about pubs and bars in and around london, then you need to take a look at the Time Out London Eating and Drinking guide online - http://eatdrink.timeout.com. It's a searchable version of the printed guide, updated weekly with all the relevant reviews of the best, and worst, restaurants in and around London. Having used it for a while I've found quite a few places that I didn't know were so local to where I worked, and seem to offer exactly the kind of atmosphere I didn't think existed in London anymore. Plus, having to always think about the vegetarian option when I'm eating out, it's been a great help in finding more places to try.
 

Top categories  
blog Python mac werk torrents perl house design code radio   
 
Todays links  
Radeon 9600 forum http://www.pchardwareforum.com/
Radeon 9500Pro overclocking http://www.rage3d.com/
Python closing files http://groups.google.com/
Python PIL - writing text to an image http://groups.google.com/
Python singletons http://groups.google.com/
Python iterator pattern http://groups.google.com/
Detect typos in Python programs http://groups.google.com/
Convert python scripts into standalone windows programs http://starship.python.net/
The Phrasebook Pattern [PDF] http://jerry.cs.uiuc.edu/
PHP Phrasebook http://jerry.cs.uiuc.edu/
Emacs remembrance agent http://www.remem.org/
MOD database http://www.moddb.com/
Install and setup of remembrance agent http://www.dat.etsit.upm/
emacs cheat sheet http://rgrjr.dyndns.org/
Previous links  
 
 
Previous links  
Pad Thai Noodles recipe http://www.vegan-food.net/
Kochu Tubu Chorim (Pepper Tofu) recipe http://www.vegan-food.net/
Map of london postcodes http://www.city.ac.uk/
Quirks mode http://diveintomark.org/
Post code areas, csv file http://www.brainstorm.co.uk/
Is this contract a robust defence against IR35? http://theregister.co.uk/
the netscape dorm http://www.jwz.org/
The Professional Contractors Group http://www.pcg.org.uk/
Association of Technology Staffing Companies http://www.atsco.org/
DOOM III - Special Preview http://www6.tomshardware.com/
VGA Charts, Part II: Mainstream Systems http://www6.tomshardware.com/
VGA Charts, Part I: High-End Systems http://www6.tomshardware.com/
VGA Card Buyer's Guide 07/2003 http://www6.tomshardware.com/
clickthrough photos http://www.everitt.dircon.co/
lorem ipsum http://www.lipsum.com/
Color codes http://hotwired.lycos.com/
Power Regexps, Part II http://www.perl.com/
Google is god. Don't piss her off. http://www.fixingyourwebsite.com/
oulibot http://www.zooleika.org.uk/
bot projects http://frot.org/
OpenCyc is the open source version of the Cyc technology, the world's largest and most complete general knowledge base and commonsense reasoning engine. http://www.opencyc.org/
>>> More links  
 
Random links  
blog http://www.scriptygoddess.com/
P2P http://www.mldonkey.org/
VoodooPad is a new kind of notepad. It's like having your own personal hypertext library, where you can jot down notes, web addresses, to-do lists http://flyingmeat.com/
food http://www.japan-guide.com/
torrents http://www.myfreehost.org/
txtfight skinned http://www.fudfite.com/
RSS and NNTP, part 2 / XML syndication 2: The Second Draft http://interconnected.org/
Talk to people on the same page as you http://www.bbc.co.uk/
Quirks mode http://diveintomark.org/
blog http://molelog.molehill.org/
Bother, said Pooh.