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

¿Qué es el Software Libre?

Excelente resumen de lo que significa Software Libre.

Denis Dutton: A Darwinian theory of beauty

Cakephp – Never empty password in auth component

Replace if (isset($data[$model->alias][$this->fields['username']]) && isset($data[$model->alias][$this->fields['password']])) {

with

if (isset($data[$model->alias][$this->fields['username']]) && !empty($data[$model->alias][$this->fields['password']])) {

In the cake/libs/controller/components/auth.php file

wordbb (mybb wordpress plugin) “Default post author username does not exist on MyBB” bug RESOLVED

Go to the wp-content/plugins/wordbb/wordbb.php line 139

Remove the

if(empty($prefix))
$prefix=’mybb_’;

And that’s it!

The problem is your db prefix this plugin assumes that everybody have a “mybb_” db prefix