Saturday, January 12, 2008

Authoxy hits and misses (and Google SDKs and APIs)

I've been playing a little bit with Google Android and with the Google data APIs (aka GData), but the only way I've been able to make time is by coming in extra early to work. (The only other free time I have is in the evenings after the kids are asleep, but I'm a morning person--I'm usually too exhausted in the evenings to do any technical work.) But we of course have a firewall at work.

I've been very happy with Authoxy, which allows me to use applications that don't support proxy authentication.

So I tried to use it with the Android emulator, but with no success. I've posted on the Android Beginners mailing list hoping someone else has figured it out. I did get a helpful response, but I haven't been able to get it working yet.

Initially I didn't have any success with GData either (I'm using Python, naturally). I did a search and found a thread on proxy support with a reference to this Python CookBook recipe. So I tried setting the 'https_proxy' environment variable (to '') but it didn't work. I dug through Google's code and even stepped around in the debugger. I learned a few things (as I always do when reading code) but I just couldn't get it to work. So I set it aside.

When I came back to it, I noticed in (after searching for 'https_proxy' in Spotlight, which is very useful for searching sources on Leopard) that they also look for 'http_proxy'. So I set it too (also to '') and success! (This is certainly not the first time I've very quickly solved a problem when coming back to it after a break. Sometimes it seems like the longer the break the easier it gets.) As I learned from a Google Developer Podcast (which I recommend), one can use the Spreadsheets Data API to read and write entire rows, effectively using a spreadsheet as a flat file database. Pretty slick.

Update: I got the Android emulator working through Authoxy. See my reply on the Android Beginners mailing list. This morning (2008-01-14) Authoxy was batting 500, now it's batting 1000.

1 comment:

Yellow Blade said...
This comment has been removed by a blog administrator.