Jure Cuhalev

Archive for the ‘python’ Category

Source: FlickrWhen using python-boto package to list keys in your S3 bucket, you might hit a limit of 1000 keys when using function call bucket.get_all_keys(). In order to get full list of keys just do something along the lines of

keylist = [k for k in self.bucket]

since as it turns out, bucket has an iterator over [...]

14 Aug, 2007

Prevoz.org in Google Earth

Posted by: Jure Cuhalev In: Planet Kiberpipa| Planet LiveCD| ideas| python

I’ve been playing a bit with writing Google Earth xml files to try to make some nice visualizations. Here is a first screenshot of how users of Slovenian carpooling site Prevoz.org are traveling around the country.
(historical data of all carshares, only showing locations with 10 or more entries in the database).

Aaahh, it’s good to be awake again. Something in summer smell awoke my community and open source spirit in me again which in turn forced me to work once again on old projects and new open source ideas. Currently I only have to announce two things that managed to kick me back in action. Prevoz.org [...]

26 Aug, 2006

MSN Live Search python API access

Posted by: Jure Cuhalev In: Planet Kiberpipa| Planet LiveCD| Tech| python

Here is a little code snippet that will allow your python script to access MSN Search.
I’m posting it here in hope that google picks it up and that next person who wants to just google it won’t have to start from scratch.
(I’m not sure how to post it to retain formatting, but since it’s [...]