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

Cakephp Paginate – How to change separator “|”

In your view you just do something like this:

Paginator->prev('<'disabled'));?>
Paginator->numbers(array('separator'=>''));?>
Paginator->next(__('Next', true) . ' >>', array(), null, array('class' => 'disabled'));?>

PHP_Incomplete_Class problem

If you save an object in a session and you want to use it in another page you will receive that error.

To avoid this the class declaration has to be available before you call session_start().