TFL.GOV.UK and mozilla quick search
If you want to bookmark a quick mozilla search from your house to another postcode you can use this URI :
http://journeyplanner.tfl.gov.uk/user/XSLT_TRIP_REQUEST2?language=en&sessionID=0&type_destination=locator&name_destination=DESTINATION_POSTCODE&type_origin=locator&name_origin=ORIGIN_POSTCODE&place_origin=London&place_destination=London
just change the DESTINATION and ORIGIN_POSTCODE to %s if you like or make it as static bookmark.
Filed under: Travel on July 29th, 2008 | No Comments »
Eurodisney with Noah
Went with noah to see that Euro Disney thing and he seems to really enjoyed it. I am not a big fan of Eurodisney personally but the kid was so enjoying it. Last time i was there was like 11 years ago, things got way more expensive now as well.
Filed under: Noah on May 5th, 2008 | 2 Comments »
FFAP and Ruby in Emacs
If you want to use FFAP (find-file-at-point) in ruby-mode you can add this to your .emacs
(defvar ruby-program-name "ruby") (defun ruby-module-path(module) (shell-command-to-string (concat ruby-program-name " -e " "\"ret='()';$LOAD_PATH.each{|p| " "x=p+'/'+ARGV[0].gsub('.rb', '')+'.rb';" "ret=File.expand_path(x)" "if(File.exist?(x))};printf ret\" " module))) (eval-after-load "ffap" '(push '(ruby-mode . ruby-module-path) ffap-alist))
When you do ffap (i bind it to C-x f) near a require ‘PP’ for example it will find it in your ruby path.
Filed under: Emacs on May 4th, 2008 | 2 Comments »
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.new
@ssl_context.verify_mode = OpenSSL::SSL::VERIFY_NONE
end
end
class XMLRPC_Client < XMLRPC::Client
def initialize(*args)
super
@http = SELF_SSL::Net_HTTP.new( @host, @port,
@proxy_host,@proxy_port )
@http.use_ssl = @use_ssl if @use_ssl
@http.read_timeout = @timeout
@http.open_timeout = @timeout
end
end
end
if __FILE__ == $0
f = SELF_SSL::XMLRPC_Client.new2("https://url")
puts f.call("method", 'arg')
end
Filed under: Programming, Ruby on March 21st, 2008 | No Comments »
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
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
0 packages excluded due to repository priority protections
Parsing package install arguments
Nothing to do
rpm* is excluded, but if we use the environment variable FORCE_EXCLUDE
it will force it.
root@centos5:~> FORCE_EXCLUDE=true yum install rpm-devel
Loading “installonlyn” plugin
Loading “changelog” plugin
Loading “chmouel” plugin
Loading “priorities” plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
0 packages excluded due to repository priority protections
Parsing package install arguments
Resolving Dependencies
–> Populating transaction set with selected packages. Please wait.
—> Downloading header for rpm-devel to pack into transaction set.
rpm-devel-4.4.2-47.el5.i3 100% |=========================| 17 kB 00:00
—> Package rpm-devel.i386 0:4.4.2-47.el5 set to be updated
–> Running transaction check
[.....]
It will allow you to list the excluded rpm as well :
root@centos5:~> FORCE_EXCLUDE=true yum list|grep rpm
rpm.i386 4.4.2-47.el5 installed
rpm-libs.i386 4.4.2-47.el5 installed
rpm-python.i386 4.4.2-47.el5 installed
redhat-rpm-config.noarch 8.0.45-22.el5.centos base
rpm-build.i386 4.4.2-47.el5 base
rpm-devel.i386 4.4.2-47.el5 base
root@centos5:~> yum list|grep rpm
rpm.i386 4.4.2-47.el5 installed
rpm-libs.i386 4.4.2-47.el5 installed
rpm-python.i386 4.4.2-47.el5 installed
redhat-rpm-config.noarch 8.0.45-22.el5.centos base
See the README.txt in the rpm file to see how to use/install it.
You can download the rpm here and the src.rpm here
Filed under: Programming, Python, RedHat on March 20th, 2008 | 4 Comments »
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 of good friends in Sydney and for the last 3 month in Melbourne. Well anyway i am sorta looking forward to come back to France to be near my kid and see all my friends there.
And as always on my way back to France i am going to travel a bit in South America until december, i have made a website which show all places i am going to which i would update on the go.
The website is here :
It is probably only interesting to my mum but it as well give me some good understanding of all thoses new Ajax technology and others MVC Framework (via Django).
For all my french friends i hope to see you soon in Paris!
Filed under: Programming on September 19th, 2007 | 2 Comments »
Emacs config
To anyone interested my extensive Emacs configuration is available here :
http://code.google.com/p/chmouel/source
And here is the usual screen shot :
Filed under: Emacs on September 7th, 2007 | 1 Comment »
Netapp sue Sun
This is fun, theses two CEO of theses big companies are dog fighting each others :
Dave post:
http://blogs.netapp.com/dave/2007/09/netapp-sues-sun.html
Johanthan answer:
http://blogs.sun.com/jonathan/entry/on_patent_trolling
but the real (fake) truth about that post is here :
http://fakeschwartz.blogspot.com/2007/09/bring-it-cowboy.html
I tend to believe more NetAPP in this case, just because i don’t know how many time i have sweared on that bloody ps -aux that does not work on solaris.
Filed under: Misc, Solaris on September 7th, 2007 | No Comments »
