Twitter: chmouel
- RT @rackerhacker: Want to work on a huge deployment of @OpenStack at @Rackspace? Join my team as a Linux Engineer and let's do this. DM ... about 21 hours ago from Twitter for Mac ReplyRetweetFavorite
- RT @flepied: My e-book #Quality #Python Development is available for free on Amazon: http://t.co/3z8Su0Ai . Plz RT and make a review if ... about 21 hours ago from Twitter for Mac ReplyRetweetFavorite
Archives
- April 2012
- February 2012
- December 2011
- November 2011
- September 2011
- July 2011
- May 2011
- April 2011
- February 2011
- January 2011
- November 2010
- October 2010
- 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
From Australia to Jerusalem via Jordan
I have finally arrived to Jerusalem after 30 hours of travel going via Jordan.
It has been a long and tirering Journey here is some highlight of it :
-
In the plane i meet a dude which i am playing soccer with every Sunday. It’s pretty amazing to make some meeting like that, how many chances there is that
i meet this person in the same plane as me. The other funny thing is, that is going to be the same time as me in Dubai. -
In Dubai i meet a french girl from the 16e arrondisement in Paris. Never seen a posh girl coming from this area of paris traveling by herself. Pretty nice person
thought. - I was late for my plane in Dubai so i had the speaker calling me at the airport in loud with my names. And i was trying to don’t make myself remarked.
- Watching Fashion TV on the plane with catwalk of arabic girls is pretty awesome, never seen arabic gilrs from that humm angle.
- When arrived at Amman Airport i was thinking that having the names Chmouel and Reouven was going to be trouble. But in fact it was pretty straightforward.
-
Since i went straight to the south of Jordan i had to take the bus, firstable i lost myself trying to find the bus station. I finally arrived after walking all over the city
with my backpack under the sun. Funny thing i had to wait under the sun for 3hours until the next bus was coming for Aqaba. After that i slept all over the
bus ride. -
Decided to go straight from Aqaba to the border. Nothing special here except that i spent some good 20minutes trying to figure out where i need to get
my passport stamped.
Walking between the Jordanian and Israeli border is weird its a huge alley with big electric fence all over. -
Arrived to Eilat it was too late to take a bus to Jerusalem. So i went to the taba hostel, same hostel i stayed 2 years ago. Could not sleep because
of the jetlag so i went having a beer with an American and Israel guys. There is a lot of teenagers around here, and they all dressing like going to a
New York nightclub on a Saturday night. I find weird as well some young girls of 16/18 having a boob-job. - No sleeping at all that night and took the bus at 7 to Jerusalem, slept all over the bus ride.
- Finally here with all my sisters brother and parents, it’s pretty cool to be with everybody since it has been a long since we did not see each others.
Posted in Travel
Leave a comment
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)) ) (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)) (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.
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', 'bar', 'ba', 'c']
['foo', 'bar', 'ba', 'c', 'foo', 'bar', 'ba', 'c']
Compilation finished at Mon Jul 31 16:49:4
It seems that extend assign as well the non extended part (d) which is confusing because to merge list i need to use temporary variable.
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)
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 algorithm.
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 that box which look like
it’s based on RH7.3 with heavy customization. Hopefully python really can compile everywhere.
I would like to thanks Vincent Danen for all his free hosting
during all theses years. He has been answering me every
questions i had and provided me a nice hosting for all theses years i was in travel.
I hope to pass by Alberta one day and invite him for the couples
of hundred beers that i own him now.
So now that i have a private server what can i do with that ? not too
much since webdev is not my hobbies (i have to do that at work and i
find it a pain in the a***), but well it’s cool to have a ssh
from everywhere in the world.
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 experience when people say ”don’t go to a country” it is exactly the right time to get to the country.
I will try to keep updated here of my travel.
Posted in Travel
Leave a comment
France Brazil
France Brazil tonight is going to be huge here in Bondi with the huge brazilian colony. With the small 23 Beach Road going to be full of french at 5h oclock Sunday morning.
Posted in Football
Leave a comment
Give up
I think i will give up on Football this is too disappointing.
Posted in Football
Leave a comment
