Twitter: chmouel
- Drunken Bigot Tries to Commit Anti-Muslim Hate Crime, Gets His Ass Kicked Instead « SpeakEasy http://bit.ly/dv63P5 about 4 hours ago from TweetMeme
- Ps3 repaired, time to get those PES night running again! 09:17:04 PM September 01, 2010 from twidroid
- slashdot is down, digg has no useful news anymore, it's going to be a productive day today 03:05:03 PM August 31, 2010 from web
- On my way for a non-stop return to france to drop Noah in France 10:59:58 AM August 26, 2010 from Twitter for Android
- £10 for the bloody Spiderman branded toothbrush kid better wash his tooth for that price 06:50:24 PM August 24, 2010 from Twitter for Android
Archives
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- January 2010
- December 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- February 2009
- January 2009
- December 2008
- October 2008
- July 2008
- May 2008
- March 2008
- September 2007
- August 2007
- July 2007
- May 2007
- April 2007
- February 2007
- January 2007
- December 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
Meta
Monthly Archives: July 2006
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\\)\\).*\\<\\(for\\|import\\|if\\|in\\)\\>" 3 font-lock-type-face) ("\\(\\$\\(?:\\sw\\|}\\|{\\|\\s_\\)+\\)" 1 font-lock-variable-name-face)) … Continue reading
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 … Continue reading
Posted in Emacs, Programming
Leave a comment
Assignement in Python with list.extend()
This is weird for me : d = [’foo’, ‘bar’, ‘ba’, ‘c’] print d f = d f.extend(d) print d give me the result -*- mode: compilation; default-directory: “/tmp/” -*- Compilation started at Mon Jul 31 16:49:41 python “/tmp/a.py” [‘foo’, … Continue reading
Posted in Python
Leave a comment
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) … Continue reading
Posted in Programming
2 Comments
chmouel.com is moved.
I have finally changed chmouel.com 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 … Continue reading
Posted in Misc
Leave a comment
Going over Israel
Tuesday i will fly from Sydney, Australia to Jerusalem via Jordan. For a lot of people it does not look it is the right time to get there but i am sure it all going to be fine. As my … Continue reading
Posted in Travel
Leave a comment