Accessing to Rackspace Cloud Files via servicenet (update)

Last week I have posted an article explaining how to connect to Rackspace Cloud Files via Rackspace ServiceNET but I actually got it wrong as pointed by my great colleague exlt so I had to take it down until figured out how to fix it. I have add that feature properly to the PHP and Python API in version 1.5.0 to add a ‘servicenet’ argument to the connection and updated the blog post here :...

October 20, 2009

How to connect to Rackspace Cloud Files via ServiceNET

If you are a Rackspace customer and you are are planning to use Rackspace Cloud Files via it’s internal network (ServiceNet) so you don’t get billed for the bandwidth going over Cloud Files this is how you can do. The first thing is to make sure with your support team if your servers are connected to ServiceNet and if you have that connection then there is a small change to do in your code....

October 14, 2009

Rackspace Cloud Files helper scripts

It’s really a collection of quickly written stuff put in the same file but at least if not useful for you it would give you an idea how the python-cloudfiles works. It is all available here : http://github.com/chmouel/cloud-files-helper

September 24, 2009

Upload to Rackspace Cloud files from GNOME nautilus

After seeing this script http://overhrd.com/?p=106 which allow to upload files with the file manager (finder) of MacosX to Rackspace Cloud Files, I have made a nautilus script that doe the same for us Gnome/Unix users. Available here : http://github.com/chmouel/nautilus-rackspace-cloud-file/tree/master

September 2, 2009

Better output from sqlite3 command line

That weird output from sqlite3 command line is annoying you as well ? Just set this up to get something better : cat < <EOF>~/.sqliterc .mode "column" .headers on .explain on EOF

July 15, 2009

Ruby XMLRPC over a Self Certified SSL with a warning

If you use the XMLRPC client in ruby over a self certified SSL you have this warning : warning: peer certificate won’t be verified in this SSL session You can get override that warning cleanly (i have seen some people who just comment the message in the standard library) like that : require 'xmlrpc/client' require 'net/https' require 'openssl' require 'pp' module SELF_SSL class Net_HTTP < Net::HTTP def initialize(*args) super @ssl_context = OpenSSL::SSL::SSLContext....

March 21, 2008

Yum Force Exclude List

While talking with my fellow colleague Darren Birkett about what seems a design limitation of yum to not be able to force listing the excludes from yum. I had a shoot to make a yum plugin to force listing the excludes. Here is how it works : root@centos5:~> grep exclude /etc/yum.conf exclude=rpm* root@centos5:~> yum install rpm-devel Loading “installonlyn” plugin Loading “changelog” plugin Loading “chmouel” plugin Loading “priorities” plugin Setting up Install Process...

March 20, 2008

Generating md5 encrypted password for chpasswd

If you want to generate properly encrypted password to feed to chpasswd, the most easier and proper way is to do that from command line : [code lang=“bash”] echo “encryptedpassword”|openssl passwd -1 -stdin [/code] If you want to generate in pure python you can do it like that : [code lang=“python”] def md5crypt(password, salt, magic=’$1$’): import md5 m = md5.new() m.update(password + magic + salt) # /* Then just as many characters of the MD5(pw,salt,pw) */...

August 17, 2007

Linus Torvalds on GIT

Pretty good video to look if you like to know more about git and its creation : http://www.youtube.com/watch?v=4XpnKHJAok8

May 29, 2007

Access Gajim within Emacs

Here is some function to launch a gajim window from Emacs : (defvar gajim-remote "/usr/bin/gajim-remote") (defvar gajim-user-list ()) (defun my-gajim-get-list() (save-excursion (with-temp-buffer (call-process gajim-remote nil t nil "list_contacts") (goto-char (point-min)) (while (re-search-forward "^jid[ ]*:[ ]*\\(.*\\)$" (point-max) t ) (setq gajim-user-list (append gajim-user-list (list (match-string-no-properties 1))))))) gajim-user-list) (defun my-gajim-talk() (interactive) (let* ((ff (if (not gajim-user-list)(my-gajim-get-list) gajim-user-list)) (answer (completing-read "Jabber: " (mapcar (lambda (tt)(list tt)) ff)))) (message answer) (start-process "*GAJIM*" nil gajim-remote "open_chat" answer) ) ) (global-set-key '[(control x)(j)] 'my-gajim-talk) If Emacs had a dbus support that would have been cool....

July 31, 2006