ERROR: rvm requires autoreconf to install the selected ruby interpreter however autoreconf was not found in the PATH

You can fixed it with:

 

apt-get install automake

Advertisements

Weird font rendering in Netbeans on Linux / Ubuntu

I had the same issue using Ubuntu and I resolved it this way:

Edit your netbeans.conf and add this line in your “netbeans_default_options” string

-laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd”

so you finally have something like:

> netbeans_default_options=”-J-client -J-Xss2m -J-Xms32m -J-XX:PermSize=32m -J-Dapple.laf.useScreenMenuBar=true -J-Dapple.awt.graphics.UseQuartz=true -J-Dsun.java2d.noddraw=true –laf Nimbus -J-Dswing.aatext=true -J-Dawt.useSystemAAFontSettings=lcd”

How to combine formtastic with Ajax form submission?

This is working for Rails 3.1

<%= semantic_form_for @mymodel, :remote => true do |f| %>
<% end %>

Caught AttributeError while rendering: ‘datetime.date’ object has no attribute ‘date’

To fix just replace this:

end = models.DateTimeField(default=datetime.date.today(), blank=True)

with this:

end = models.DateTimeField(default=datetime.datetime.now(), blank=True)

jpeg support not available bug in PIL 1.1.7 in Ubuntu 11.10

Before installing PIL edit the setup.py and add this line

add_directory(library_dirs, "/usr/lib/i386-linux-gnu")

before line 214  

add_directory(library_dirs, "/usr/lib")

Chamilo 1.8.7.1 is way faster than Dokeos 2.0

You might already know the new page speed test provided by Google, so I did a quick test with the current public campus, from Chamilo and Dokeos here are the results:

http://campus.chamilo.org

89/100

chamilo speed test

 

http://campus.dokeos.com

62/100

 

This is the explanation of the Page Speed Score :

The Page Speed Score indicates how much faster a page could be. A high score indicates little room for improvement, while a lower score indicates more room for improvement. The Page Speed Score does not measure the time it takes for a page to load.

Define merge program in Mercurial (hg)

Just edit or create your hgrc file in your mercurial repository

sudo vim .hg/hgrc
[ui]
merge = meld