Archive for the 'Python' Category

python-cdb 0.32 (-5.2ubuntu2) with Python 2.5 causes double-free corruption crash on dealloc

Wednesday, October 24th, 2007

I’ve recently started moving my linux box to a new x86_64 machine running Ubuntu 7.10. I searched for references to this bug but didn’t find anything with Google or launchpad, so I wanted to make a note of it so future victims can see what is going on and to remind me to […]

Tools and libraries

Friday, July 13th, 2007

A tool and a library I’ve been using or at least trying out:

Launchy
Free, open-source Windows app that indexes Program Files and any other directories you tell it to. Then alt-space pops up a command line box and it autocompletes as you type. I installed it a while ago and meant to mention […]

wx.lib.iewin and NewWindow3

Thursday, March 22nd, 2007

Suppose your wxPython app is is using an embedded Internet Explorer window to display HTML. You want links clicked in that window to open the user’s default browser rather than following the link within the embedded Internet Explorer.
The obvious solution is to hook OnBeforeNavigate2 like so:

self.Bind(iewin.EVT_BeforeNavigate2, […]

Readshot

Sunday, March 18th, 2007

Ongoing small irritations finally piled high enough to push me to evolve my feed reader further. I finally created a category for the RSS aggregator-related posts: Readshot.
A brief history of this project:

January 2005 — A proof-of-concept toy that used an IMAP store and copied posts from a single RSS feed to an IMAP […]

On the importance of encoding

Tuesday, January 30th, 2007

I’m converting my RSS aggregator to use PostgreSQL as its back-end instead of SQLite.  It has served me well for quite a while but it’s time to move on from SQLite so I can add some features such as a feed management UI and an IMAP server.
I’m working on an IMAP server for my […]

Log analysis with Python, SQLite, and matplotlib

Tuesday, July 4th, 2006

I recently spent a day or so writing scripts to grovel over a service’s log files looking for information. I had a couple ideas about what I wanted to learn, but I wanted to make it easy to experiment a little. Not so easy I’d end up with results that weren’t easily reproducable, […]

Automating a little bit

Sunday, June 18th, 2006

I’ve been selling some books on Amazon.com Marketplace. The listings are offered as a link from the product page for the book. People that follow that link seem to be selecting purely on price, so I don’t bother listing when the existing lowest price is too low for me to […]

RSS updated

Monday, March 6th, 2006

I’ve been working on an update to my homegrown RSS aggregator for a while now. It’s been “nearly” ready for a while, but it took me time to convince myself it was actually ready. It’s funny how quickly I become relatively conservative about pushing out updates to a tool that’s […]

GPX to line overlaid atop USGS Urban Area photo

Friday, March 3rd, 2006

The other day I wrote about a script to simplify GPS plots for plotting polylines using Google Maps.
The momentum from that finally propelled me to learn enough about this stuff to be able to have the script output this:

(The inlined image is resized to fit into my Wordpress layout, it links to the full image. […]

SQLite 3, pysqlite2, and incorrected typed data = segfault

Wednesday, March 1st, 2006

I’ve been storing the raw data from each HTTP my RSS fetcher makes so I could run tests in the future with real data when I revise my processing code. The future is now. I’m entirely glad I kept all this data (around 7 gig) because it really helps to have lots of […]

Simplifying GPS data to plot polylines

Tuesday, February 28th, 2006

I was reading Ryan’s post about Google Maps and could not resist hacking together a relatively simpleminded track simplifying script.
It reads a GPX file and prints out the JavaScript necessary to plot the track using the Google Maps API.
Its use of the Google Maps API is pretty simpleminded (it just centers on the begin point […]

Python Upgraded

Thursday, February 23rd, 2006

My sweep for libraries finally found Python 2.4 versions for everything I cared about, so I went ahead and upgraded to Python 2.4 on my Windows machine.
As much for my own reference as anyone else’s, the list of Python libraries I installed into my fresh Python 2.4 installation on my Windows XP machine:

pysqlite 2.1.0
wxPython 2.6.2.1 […]

Sorting topologically for friendlier configuration

Wednesday, February 22nd, 2006

I’ve been working on the bootstrap mechanism of service. One of the problems I’m addressing is the relative fragility of its configuration mechanism. Some services depend on other services (e.g. a “connection handler” service depends on both “authentication” and “database access” services). With the old configuration mechanism, […]

Feedshot and musing about Spreading out web UI

Sunday, February 5th, 2006

I was struck by an urge to resume working on my RSS fetcher this weekend. Or maybe by a bus. I’m minding my own business and suddenly it seems very important to finish building the fetcher. It’s still not complete but it’s a bit further along. I […]

Is “Good enough” the enemy of “complete”?

Sunday, October 30th, 2005

I spent a bit more time on the RSS fetcher since my last post. Mostly I fixed some dup-detection issues and defined a more useful format for the message bus messages. It’s not really where I would call it “complete”, but it’s been good enough that I took rawdog out of […]

RSS fetcher

Tuesday, October 25th, 2005

I suppose it was only a matter of time. For various reasons, chiefly among them that I wanted to see how it’d work out, I’ve been working on an RSS fetcher. Sometimes I’ve had ideas for things to do with an RSS feed, but either it didn’t justify having another thing […]

photos.xythian.com and Singleshot

Sunday, October 23rd, 2005

I moved my photo site back to a machine I control directly. It’s probably not going to stay there, but it does free me from debugging everything twice when I want to add features.
Since the last Singleshot release I’ve fixed a bunch of bugs in IPTC parsing (and added a fallback to use […]

Awful patches

Tuesday, October 18th, 2005

Also, apparently something else is also behaving differently on NearlyFreeSpeech, breaking the ImageMagick processor.
I compensated with an awful hack and, just to be sure, pregenerating all of the view images so I can go to bed without, hopefully, leaving photos.xythian.com woefully broken.
I think NearlyFreeSpeech is going to have to go. They seem […]

Fascinating discoveries

Monday, October 17th, 2005

A fascinating discovery, a while after I launched my shiny new site about which I was very proud: mmap is all well and good on Linux on my home machine and on Dreamhost, but apparently doesn’t work on NearlyFreeSpeech. This .. is problematic for photos.xythian.com.

Reading CR2 and CRW metadata

Sunday, September 25th, 2005

I was curious about some statistics about the photos I’ve been shooting over the past few years and finally got around to begin writing a script to gather the stats I want.
I knew virtually all of the digital camera photos in my tree were from some Canon camera, so I focused only on decoding Canon […]