Backup with duplicity on Rackspace CloudFiles (including UK) script.

It seems that my post about using duplicity to backup your data on Rackspace CloudFiles got popular and people may be interested to use with the newly (Beta) released Rackspace Cloud UK. You would just need to have a environnement exported at the top of your backup script like this : export CLOUDFILES_AUTHURL=https://lon.auth.api.rackspacecloud.com/v1.0 and it will use the UK auth server (the same goes for OpenStack auth server if you have your own Swift install)....

January 6, 2011

Howto use Cyberduck with Rackspace Cloud UK

If you are wondering howto use a graphical client like Cyberduck to access the Rackspace Cloud UK this is how you do it. We are going to use the Swift OpenStack support in Cyberduck to access the UK CloudFiles instance. You first Open Cyberduck and Click on open connection : In the Menu choose Swift (OpenStack Object Storage) and in Server field you specify : lon.auth.api.rackspacecloud.com and enter your Username and Api Key (in Password field) :...

January 4, 2011

How-to use the Rackspace Cloud UK API

Rackspace just released the public beta for the UK version of Rackspace Cloud. The UK Rackspace Cloud doesn’t have the same auth server as the US Cloud so there is a few change you need to do to support the UK Rackspace Cloud. This is the same way Amazon has different zone for EC2 we have now different geographical zone between the US and now the UK. If you access directly, you just need to adjust the Auth URL in your code to go to :...

January 4, 2011

Automatically spawn Rackspace Cloud Servers and customise it.

Lately I had to spawn some cloud servers and automatically customise them. I have used the python-cloudservers library and installed it automatically with pypi (works for Debian/Ubuntu you may want to check for other distros): pypi-install python-cloudservers From there writing the script was pretty straight forward, I needed to know what type of CloudServers I wanted which in my case the smallest was good enough which is number 1 for me....

November 23, 2010

Upload a file to Rackspace Cloud Files from Windows

I don’t have to use much of the Windows Operating System except when I have to synchronize my Garmin GPS to use the excellent SportsTrack software for my fitness training. I wanted to get safe and backup my SportsTrack ’logbook’ directly to Rackspace Cloud Files; while this is easy to do from Linux using some other script I made but I haven’t had anything at hand for Windows without having to install bunch of Unix tools....

October 11, 2010

Get latest lyrics of a scrobbled LastFM song

All my music players (Spotify, XBMC, Rythmbox etc…) are scrobbling over lastfm but not all of them display song lyrics properly so I came up with a quick Google AppEngine app that grab the latest or current song scrobbled over last.fm and display its lyrics. No fancy HTML or javascript just the lyrics displayed for your enjoyment. This is available here : http://getlastlastfmlyrics.appspot.com/ for the scripter around you can just get (via curl or other) :...

October 9, 2010

Sunday bike ride in London

This post is literally to test the embedding track feature from Garmin Connect ….. This is a easy bike ride, it start from Ealing to to Decathlon in Canada water and stop in Parsons-Green on my way back to watch Liverpool-Arsenal at mates place before coming back home, my pace was kind of slow since I have a broken thumb and I am trying to respect London traffic now and stop at traffic lights ;-)...

August 16, 2010

Python decorator to argument checking

I am sure there is billions or more people who already done that but I needed this quickly for my project and was not feeling googling around :

July 29, 2010

Exclude .git or .svn directories in Eclipse (Helios)

If you are using Ctrl+Shift+T in Eclipse and have .git or .svn directory showing up it is easy to fix it without having to use another plugin for eclipse like subeclipse or egit. Open the Properties of your project go to Resource=>Resource Filters and click on Add to add a new filter. Now just do like this ScreenShot : Change the *.git* to *.svn* if you like for subversion.

June 17, 2010

Upload to Rackspace Cloud Files in a shell script

I don’t really use much the GUI and always the command line so I don’t really use the Cloud File plugin I created for nautilus. So here is a shell script to upload to Rackspace Cloud Files and give you back a shortened URL of the public URL file. Great for quick sharing… You have to install the zenity binary first.. [Update: this is now available here https://github.com/chmouel/upcs]

June 9, 2010