7/26/2007

Gunbuntu tips and tricks

http://ubuntuguide.org/wiki/Ubuntu:Feisty

Display Icons on the desktop Linux Ubuntu

In Ubuntu Dapper Drake, there’s no trash icon in the Desktop, it’s in the bottom panel right side. In this article I’m going to explain how to show the Trash icon in the Desktop. Type the following:

gconf-editor &

a window will pop up, with the gnome registry:

There will be a panel in the left side.

Go to apps->nautilus->desktop and click on the variable trash_icon_visible and you’ll get the Trash in your desktop. See the screenshot below:

7/23/2007

Django Chapter 4 Environment variable DJANGO_SETTINGS_MODULE is undefined

Try:
import django.conf
django.conf.settings.configure()
from django.template import Template

7/16/2007

Datetime in Python

from datetime import date, timedelta
print date.today()
print date.today() - timedelta(1)

7/14/2007

DATETIME and TIMESTAMP in MySQL database

They have the same format (YYYY-MM-DD HH:MM:SS).
TIMESTAMP has the autoupdate function. When you update a row in a table, the timestamp will be updated automatically. DATETIME won't get updated until you specify the value.