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 [...]

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” [...]

Moving from Australia and going back to Paris.

Finally after three years (almost i arrived on 29 September 2004 here) i am following all my french friends (except Aurelien whos staying here) and i am moving back to France. It is a heartbreak since this is one (if not the one) of the best country i ever lived. I made a lot [...]

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 :

echo "encryptedpassword"|openssl passwd -1 -stdin

If you want to generate in pure python you can do it like that :

def md5crypt(password, salt, magic='$1$'):
[...]

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

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 )
[...]

crypt(3) on unix maximal length

When i have a password comparaison function using crypt(3) i really should remember that the comparaison stop at the 7 bytes, because that stuff is weird for me :
In [1]: import crypt
In [2]: seed=’foo!bar’
In [3]: crypt.crypt(’abcdefghaa123456681′, seed)
Out[3]: ‘foEoVhbk7ad7A’
In [4]: crypt.crypt(’abcdefghpax;lalx;al’, seed)
Out[4]: ‘foEoVhbk7ad7A’
In [5]:
any stuff after the 6 char will always get ignored by the hash [...]

Jabber/Asterisk and Gajim notification

At work we are using Asterisk and Jabber and i am using Gajim as my client. I did a quick patch to have a notification on my desktop when someone call me and i get my big headphones (not that i like the phone very much but well), here is the patch for people who [...]