How to Install PostgreSQL on Ubuntu Gutsy Gibbon (7.10)

Useful and simple guide, step by step.

Installing postgresql (8.2)

sudo apt-get install postgresql-8.2

Setting up the password for postgres’ postgres user

sudo -u postgres psql template1
ALTER USER postgres WITH PASSWORD 'your-password';

Configure postgres’ authentication method :

sudo cp /etc/postgresql/8.2/main/pg_hba.conf /etc/postgresql/8.2/main/pg_hba.conf_bak
sudo nano /etc/postgresql/8.2/main/pg_hba.conf

Add the following at the bottom of the file

# TYPE  DATABASE    USER        IP-ADDRESS        IP-MASK           METHOD
host    all         all    password

Restart postgres:

sudo /etc/init.d/postgresql-8.2 restart

The Truth About Python

from: Python Is Not Java (dirtSimple)

So, if you don’t feel like you’re at least ten times more productive with Python than Java, chances are good that you’ve been forgetting to use the time machine! (And if you miss your Java IDE, consider the possibility that it’s because your Python program is much more complex than it needs to be.)

One might replace the word Java with .Net, it would remain the same, wouldn’t it?

Getting rid of Insert Ubuntu Disc Message

This “Insert Disc” message was annoying and frustrating almost at any time I was trying to install a new software on my Ubuntu (7.10 gutsy-gibbon).

Media change: please insert the disc labeled 'Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1)' in the drive '/cdrom/' and press enter

If you want to get rid of it you should comment out the line that point to the “CD-ROM” Source.

Type the following in the terminal:

gksudo gedit /etc/apt/sources.list

Locate the line that reads:

deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted

and comment it out

#deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted

Save the file, close the editor, back in the terminal window type:

sudo apt-get update

Good luck and thank you for choosing Ubuntu.

The Zen of Steve Jobs

Ever wondered about Apples designers sources of inspiration?
I thinks I just found one, its name is Steve Jobs.

I was worth about over a million dollars when I was twenty-three
and over ten million dollars when I was twenty-four,
and over a hundred million dollars when I was twenty-five and it wasn’t that important because I never did it for the money.

The following is a photo was taken by Diana Walker and it shows Steve Jobs in his house in 1982


Jobs said about it:

This was a very typical time. I was single.
All you needed was a cup of tea, a light, and your stereo,
you know, and that’s what I had.

•Bare in mind• the fact that in 1982 Jobs was already 27 years old, 2 years after he was already worth more than hundred million dollars, and yet, he kept that elegant minimalism principle.

Is Facebook the next Microsoft?

I just came across this post by Robert Scoble

If you are trying to contact me on Facebook, please don’t. My account has been “disabled” for breaking Facebook’s Terms of Use. I was running a script that got them to keep me from accessing my account. I’m appealing. I’ll tell you what I was doing as soon as I talk with the developers who built what I was using and as soon as I talk with Facebook’s support (I sent an email in reply to the one below, but haven’t heard back yet).

I am working with a company to move my social graph to other places and that isn’t allowable under Facebook’s terms of service.

While they wrote their own screen scrappers Your addressbook and facebookso they can read all your contacts and friends that stored in the addresses books at gmail or hotmail or, and many others. They blocked Robert Scoble’s account for running a script that (as far as I can read between the lines) exports his own friends list.

It is pretty clear now why Facebook preferred to go along with Microsoft instead of Google.
It is even more clear why they don’t join open social.
I can see what they thought at the first place when they released that cursed Beacon, and I don’t buy the apologizes that came after the rush.

Here is a short description of [Windows|Facebook] (you choose) platform.

  • It is a closed source system that comes with a set of APIs, which let third parties develop new applications.
  • If a user wants to use a third party application he must install that application.
  • If a user decided to uninstall a third party software.
  • When a user run the uninstall process, most of the data might remain in the system.
  • You never know who has access to your private data.

New Version for JS HotKeys

I finally was able to fix a few minor bugs and compile a new version of my js-hotkeys module. Get your copy now (tar.gz || zip)

Js-Hotkeys is a jQuery plugin that lets you easily add and remove handlers for keyboard events anywhere in your code supporting almost any key combination.

Read more at:
Live demo at:

Learning Lisp

I started learning Lisp.

You can see my homework at