Google Docs is nice. Calendar is really nice. Gmail is ok, too. The notion that you can more or less use any of the tools without going too far is pretty nice, and they’ve opened things up with the API just enough to get some useful plugin capabilities, *and* there’s a Python client available for…
Category: Scripting
For my next pet project…
Stand back! running install_egg_info Writing /usr/lib/python2.5/site-packages/gdata.py-1.0.9.egg-info brj@dawg:~/working/gdata.py-1.0.9$ python Python 2.5.1 (r251:54863, May 2 2007, 16:27:44) [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2 Type “help”, “copyright”, “credits” or “license” for more information. >>> import gdata >>> print ‘yay!’ yay! >>> No good can come of this! ;-P Seriously, though – I really really strongly dislike spreadsheet interfaces….
New Job!
I started a new job about 6 weeks ago. I’m now doing infrastructure architecture at http://gfdl.noaa.gov GFDL stands for Geophysical Fluid Dynamics Lab. It’s a NOAA site that supports atmospheric and climatology research. So in other words, the work I do supports research into things ranging from global warming to what the atmosphere on Mars…
Where does that Python DB handle go?
UPDATE: Well, that didn’t take long. My solution works, but there’s a better way. Create the connection in main(), and create separate *cursors* for each Host. Cursors are cheap, and you reuse the connection. Thanks to Brend on #python (irc.freenode.net) for the enlightenment. Python has been a wonderful language to get to know so far….
Python 2.5’s “partition” saves my bacon
So I was on more than one IRC channel today asking a question that I got lots of answers to, all of which looked really messy to me, so I dug into the documentation and found that in Python 2.5, strings have a new method, called “partition”. Here’s the trouble I had, and why “partition”…
Python Magazine Lives
I have a confession to make: For the past 6 weeks, I’ve been leading a secret double life. By day, I’m a mild mannered system/network/database admin in academia. I also write some PHP, Perl, and Python code. By night, however, I’m an author and editor. My latest project is bigger than most. In fact, it’s…
Python: “Which of these variables is None?”
So I’m still getting past the neophyte stage with Python. The good news is that every time I need to apply some programming principle to something I’m doing in Python, it’s really very easy. Heck, I practically fell accidentally into OO programming on one of my Python projects, and everything else has been a dream…
Regular Expressions with Python’s “re” Module
If you’re moving over from PHP, Perl, Ruby or something similar, don’t be intimidated by all the Python regular expression documentation. It doesn’t really have to be complicated or even all that much different from Perl (though it can be, if you want to go there). Here’s a search and replace I ripped out of…
Freebase: Your database is ready!
This is going to be really frickin’ cool. There’s just no other way to put it. Maybe I’m a little too much of a data geek, because I can’t seem to sit still since receiving my email letting me know that Freebase is now in alpha, and the account I requested months ago can now…
Cron != Shell
I’m as guilty as anyone of treating cron as if it’s “just a shell”, and it finally bit me today. I had a quick-n-dirty Postgres backup command that worked wonderfully from the command line: /usr/local/postgres/bin/pg_dumpall -U pgadmin | gzip -9 > \ /usr/local/db/backups/pgsql/pgdump.`/bin/date +”%Y%m%d-%H%M%S”`.gz But when I put this into my crontab, I started getting…