Blog posts tagged "python"

rss_parser supports attributes

January 28th, 2003

Mark just released a version of rssparser that supports parsing attributes, with <admin:generatorAgent> as an example implementation. So when we start the next revolution of service enriched RSS feeds rssparser will be there as well.

Tagged: Uncategorized , ,

Straw, and changes

January 27th, 2003

Started using Straw yesterday. I’m very happy with it. Works great. Especially once I figured out how to get links to open in Mozilla instead of Galeon. And is much more scalable in an era of RSS everywhere. (see cvs2rss) The only change I really want is the ability to categorize feeds, and only see certain groups, because I already have a lot of feeds I track.

In lieu of this switch, I’m retiring the Tracking sidebar, if you use it, I can keep it available somewhere if you like, let me know. I’m replacing it with an MLP log like Anil’s instead. A form I’ve been finding very liberating today.

Do need to figure out how to work in the blogroll aspects.

Tagged: Uncategorized , , ,

Debian Smokes Crack!

September 25th, 2002

Somedays apt-get is the most infuriating piece of software. I’ve got the Debian package for python2.2 installed, I want to uninstall the Debian python2.1, but apt-get won’t allow me to do that without installing libperl5.8. Excuse me? I need to upgrade to the latest perl to uninstall an old version of python? In other news, perl5.8 is finally in Debian :)

Tagged: Uncategorized ,

Many talented

April 26th, 2002

hack python, make money, fly to the ISS

Also: get slammed for abandoning your country

Tagged: Uncategorized ,

Missing Python’s ‘in’ operator

April 22nd, 2002

I’m sitting here drawing a total blank. The plain white page of Nedit stares back at me, taunting.

How do I test for membership in a list using Perl? I think about the old writers trick, of just writing, even if you write “I do not know what to write” over and over. This does not work with coding. First its a syntax error. Second, Nedit will allow me to go on forever, filling page and page, I’ll never come to the end of the page, never reach that milestone, of having to stop, and turn the page, and examine how ridiculously my last 15 minutes were spent.

In Python I can ask: if ( target in list):
or I can speak about: for item in list:

In Perl…..I guess I say:
if ( grep { $target eq $_ } @list

Perl is my first language really, its what I reach for in the early hours of the morning, sleep deprivation setting in, and the problem just damn well needs to be solved, but ‘ewwww’, that grep trick is ugly, and not simply because its functional programming. So ugly in fact that my brain decided to spontaneiously forget it.

Tagged: Uncategorized , ,