Error loading native library:

If you like me when running oracle on x86_64 get that damn : Error loading native library: when launching dbca and you have googled the thousands five hundred useless answer. Just add the path of the libs $ORACLE_HOME/lib and $ORACLE_HOME/lib32 to your /etc/ (or /etc/ on RH derivative) and rerun ldconfig. If this is [...]

How to get bright LS colors on Redhat with dark background

Something that i haven't find via goole. By default on RedHat (and derivatives) if you get a dark background the colored ls will be seen really humm bold from a xterm (since i guess there default gnome-terminal has been configured to have a white background ). The solution is to cp /etc/DIR_COLORS /etc/DIR_COLORS.xterm or to [...]

Cheetah Mode for Emacs

Here is a simple html derived mode for Cheetah templates files. The font-locking regexp can be improved thought but that’s a start. (define-derived-mode cheetah-mode html-mode "Cheetah" (make-face 'cheetah-variable-face) (font-lock-add-keywords nil '( ("\\(#\\(from\\|else\\|include\\|set\\|import\\|for\\|if\\|end\\)+\\)\\>" 1 font-lock-type-face) ("\\(#\\(from\\|for\\|end\\)\\).*\\" 3 font-lock-type-face) ("\\(\\$\\(?:\\sw\\|}\\|{\\|\\s_\\)+\\)" 1 font-lock-variable-name-face)) ) (font-lock-mode 1) ) (setq auto-mode-alist (cons '( "\\.tmpl\\'" . cheetah-mode ) auto-mode-alist ))

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

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

I have finally changed over a new provider. The new provider is called WebHost and i got a VPS with 50GB of bandwith and 2GB of storage for 10US$ a month. My first task was to compile python2.4 on that box which look like it's based on RH7.3 with heavy customization. Hopefully python really [...]