Installing Python 3.0 on Ubuntu 8.10 Intrepid Ibex

UPDATE (Dec, 7): apt-get install python3 works now. this might be the prefered way for most of us.

Based on sofen’s blog’s post about python 2.6

This was the easiest thing I did recently. It went so smooth that this post is totally redundant.

Seven commands and you are all unicode.

Step 1: Make sure you got all the prerequisites

$ sudo apt-get install build-essential libncursesw5-dev libreadline5-dev libssl-dev libgdbm-dev libbz2-dev libc6-dev libsqlite3-dev tk-dev g++ gcc

Step 2: Grab the bits, extract them and build them

$ wget
$ tar xvzf Python-3.0.tgz
$ cd Python-3.0/
$ ./configure
$ make
$ sudo make install

That’s it my friend. You now have the best software development platform in the entire universe!

$ python3.0
Python 3.0 (r30:67503, Dec  4 2008, 21:27:40)
[GCC 4.3.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.

Good luck and enjoy the sweetness of open source software!


sub-process usr/bin/dpkg returned an error code (2)

I came across this annoying message and couldn’t get around it (running dpkg --configure -a  yields EOF related error message)  until I ran dpkg --clear-avail

Choosing the right (open-source) tools

From the announcement of the open source reddit:

There are only five of us who work on reddit; we couldn’t have made this site if it weren’t for a great community of developers. In no particular order, here’s a quick list of the open source products that reddit is built and runs upon: Debian, lighttpd, HAProxy, PostgreSQL, Slony-I, various python libraries, Psychopg, pylons, Solr, Tomcat, Ganglia, Mercurial, Git, gettext (translation), daemontools, and memcached.

Five people. 1,000,000’s of pages every day.

My Next Laptop Will NOT Be a Mac (But Dell’s)

Comparing to Microsoft aggressiveness,  I was wondering whether Apple is just passive aggressive?

Both  companies are making money selling proprietary, closed-source software (and hardware) . Perhaps Apple just dose it more gently with a wider smile on the face. That is all.

Even getting a legal copy of OS x runs on a virtual machine is almost impossible.

For now, I will stick with Dell which runs Linux smoothly.

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

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.

10 Years of Rendering Proprietary Vector Graphic Content

1997 was the releasing year of Macromedia Flash 2. Since then, GNU/Linux became the most progressive operating system, mySQL is one of the most popular database on earth. Firefox has bitten and beaten IE, and Open-Source software is the hottest thing Intel processors ever calculate. Yet, at this moment, in case my artistic soul has the desire of rendering slickly content over the web I am bound to do it using proprietary software.

The only browser which fully supports SVG is Opera, Firefox implements many features but not all. VML comes from the same streets that Windows came from. Canvas is owned by Steve Jobs, Flash is a proprietary of adobe [and I don’t feel like going into WHATWG and HTML5 and all the political arguments].

In March 2001, that is 6.5 years ago, Jeffrey Zeldman published an article titled: “SMIL When You Play That” and yet, I can barely remember myself seeing websites using this method.

On the other hand, in the  DHTML/DOM/JS field, we have many of the same, a great collection of community supported cross-browser libraries such as: YUI; Prototype+Scriptaculous;  jQuery; Mochikit; Dojo and many more, each of which dose more or less the same, making web development as easier and elegant as possible.

I wish I had enough time and knowledge require to push this into Mozilla. I just think it is time to do to Flash whatever was done to IE and Windows, taking away the monarchy and give us the freedom and comfort of open sourced technology.