Archive for the 'Python' Category
Monday, June 1st, 2009
Last October I worked on a libyahoo2 binding using Pyrex and got it far enough along to discover the version of libyahoo2 I was using couldn’t log into YIM.
Several Ubuntu updates later I noticed libyahoo2 had been upgraded and, sure enough, this version worked.
I updated the Git repository mentioned in that post but it is [...]
Posted in Python | Comments Off
Sunday, May 31st, 2009
I recently upgraded a bunch of physical and virtual machines from various Ubuntu v.older version to Ubuntu 9.04. Naturally, this broke my Python development environment since Python was upgraded from 2.5 to 2.6. I had instructed easy_install to put things into /usr/local.
The upgrades from Ubuntu v.older to 9.04 went quite smoothly on [...]
Posted in Experience, Linux, Python | Comments Off
Wednesday, March 4th, 2009
Singleshot is the photo album software I use to host photos.xythian.com. The last release was .. rather a while ago though I have been making minor enhancements and bug fixes since then for my own use (including flash video support which extracts thumbnails using mplayer and embeds flowplayer to play) though there’s no video [...]
Posted in Experience, Programming, Python, Singleshot | Comments Off
Monday, October 27th, 2008
I had something I wanted to try in Python running against Yahoo! Messenger. The obvious choice of library for talking to Yahoo! Messenger was libyahoo2. I could not find a Python binding for it, so I started sketching one together with SWIG. The first step is creating a bunch of empty callbacks. The [...]
Posted in Experience, Programming, Python | Comments Off
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 [...]
Posted in Programming, Python | 2 Comments »
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 [...]
Posted in Experience, Programming, Python | Comments Off
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, [...]
Posted in Programming, Python, Readshot | 2 Comments »
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 [...]
Posted in Python, Readshot | 1 Comment »
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 [...]
Posted in Programming, Python, Readshot | 1 Comment »
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, [...]
Posted in Programming, Python | Comments Off
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 [...]
Posted in Experience, Programming, Python | Comments Off
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 [...]
Posted in Programming, Python, Readshot | 1 Comment »
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. [...]
Posted in GPS, Programming, Python | Comments Off
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 [...]
Posted in Programming, Python, Readshot | Comments Off
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 [...]
Posted in GPS, Programming, Python | Comments Off
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 [...]
Posted in Python | Comments Off
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, [...]
Posted in Programming, Python | Comments Off
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 [...]
Posted in Programming, Python, Readshot | Comments Off
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 [...]
Posted in Programming, Python, Readshot | 1 Comment »
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 [...]
Posted in Programming, Python, Readshot | 1 Comment »