Oxfam - Be Humankind TV advert
April 19, 2008 – 10:47 pmWatch the new Oxfam TV advert and believe that you can make a difference, even if it is a tiny one. You could start by purchasing gifts from Oxfam Unwrapped.
Not just an another WordPress weblog
Watch the new Oxfam TV advert and believe that you can make a difference, even if it is a tiny one. You could start by purchasing gifts from Oxfam Unwrapped.
Recently I came back from a trip to Turin. The old part of the city is very pretty, but it seems that I took the rain with me
However, I had the chance to take a few “arty” photos with reflexions instead of/in addition to the usual photos of pretty old buildings. You can see all the photos in my photogallery. Below is just a small selection of them.
Steven Pinker seems to believe so. This idea is also investigated in his book The blank slate. Maybe it is about time I read it.
I have recently updated my Linux to the development version of Ubuntu 8.04. Even though it is still alpha release it is surprisingly stable. However, it is not possible to start Netbeans (or any other Java application). If you want to run Java program you need to type the following:
export LIBXCB_ALLOW_SLOPPY_LOCK=true
in a terminal before you start the application from command line. If you do this, you still get an error like:
Locking assertion failure. Backtrace: #0 /usr/lib/libxcb-xlib.so.0 [0xb3ed7767] #1 /usr/lib/libxcb-xlib.so.0(xcb_xlib_unlock+0×31) [0xb3ed78b1] #2 /usr/lib/libX11.so.6(_XReply+0xfd) [0xb3f2c29d]
but NetBeans seems to start without a problem.
(solution adapted from The Telarah Times)
One of the great features of the new NetBeans 6.0 is the possibility of developing Ruby code with it. Unfortunately if you run Linux you will find out that you cannot directly use the RubyGems you have installed with your distribution unless you set some very generous file permissions or run NetBeans as root. None of these solutions is appealing. A much better solution is to install your own version of RubyGems. The NetBeans wiki explains how this can be achieved, but unfortunately it does not work in my case (I am currently running Ubuntu 7.10). I suspect that this is due to some changes in the way RubyGems have to be installed. The rest of this post explains the steps I took in order to install RubyGems on my computer and use them in NetBeans 6.0.
tar -xzvf rubygem-0.9.4.tgz
mkdir ~/.localrubygems
mkdir ~/.localrubygems/lib
This step is not compulsory, but unless you set this option a lib directory is created in your home directory (which I did not like)
cd rubygem-0.9.4
GEM_HOME=/home/dinel/.localrubygems/ \ ruby setup.rb all --installdirs=home \ --prefix=/home/dinel/.localrubygems/ \ --libdir=/home/dinel/.localrubygems/lib/
the –installdirs=home indicates that the installation is done in the user’s directory and the –prefix and –libdir indicated where the files which go in the lib dir are stored
In order to use NetBeans with Ruby you need to set the GEM_HOME and GEM_PATH environment variable and start NetBeans:
export GEM_HOME=/home/dinel/.localrubygems/ export GEM_PATH=$GEM_PATH:/home/dinel/.localrubygems/ netbeans
If everything went fine you should be able to go to Tools/RubyGems and see:

Select the New Gems tab, click Reload Gems button and you will see all the Gems available for installation:

Now is time to try some real Ruby programming to find out whether this solution poses some problems.
I recently had to fly to France and I had the chance to spend a bit of time in Paris. Here are a few photos I took. I will post more in the days to come and the whole collection will make it at some point on my photogallery.
Last week I have decided to change my hosting company. Reasons? … too expensive, no database, too little space … and no Ruby on Rails support. So all I can say for the moment is Welcome to my new super duper blog. The previous entries are no longer available, but hopefully some of them will be restored. While I am moving my site and making everything working you can enjoy my photogallery.