Sunday, February 19, 2006

LAMP - Open Source Experiments

LAMP (Linux, Apache, MySQL, Perl) configuration on OpenSUSE Linux 10.0.

Here is some useful information :

The configuration files are in
/etc/apache2/

I had to create an empty file named include.conf in /etc/apache2/sysconfig.d
Else 'httpd2 -k start' (the way you need to start the daemon) was giving an error.

HTML files and other stuff like images go by default into :
/srv/www/htdocs
CGI files in /srv/www/cgi-bin


Also did some experimentation with 'mysql' based on info that I had got from the LFY magazine.
First installed the mysql server. Then the following commands to craete and update databases.

linux:~ # mysqladmin -u root -p XXXXX

linux:~ # mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 4.1.8-standard

mysql> create database testdb;
Query OK, 1 row affected (0.17 sec)

mysql> show databases
->
-> ;
+----------+
Database
+----------+
mysql
test
testdb
tmp
+----------+
4 rows in set (0.07 sec)

mysql> use testdb;
Database changed

mysql> create table registration ( memid int not null primary key, name varchar(20),
emailID varchar(30), Location varchar(25));
Query OK, 0 rows affected (0.06 sec)

mysql> describe registration
-> ;
+----------+-------------+------+-----+---------+-------+
Field Type Null Key Default Extra
+----------+-------------+------+-----+---------+-------+
memid int(11) PRI 0
name varchar(20) YES NULL
emailID varchar(30) YES NULL
Location varchar(25) YES NULL
+----------+-------------+------+-----+---------+-------+

mysql> insert into registration values(1,'Surendranath Boral','suboral@gmail.com',
'Jayanagar Bangalore');
Query OK, 1 row affected (0.04 sec)

mysql> select * from registration
-> ;
+-------+--------------------+-------------------+---------------------+
memid name emailID Location
+-------+--------------------+-------------------+---------------------+
1 Surendranath Boral suboral@gmail.com Jayanagar Bangalore
+-------+--------------------+-------------------+---------------------+
1 row in set (0.07 sec)

mysql> quit
Bye

Another thing:
Kaffeine gives this problem and doesnt play any mp3 or video by default
WIN32 Codecs...
No WIN32 codecs found in /usr/lib/win32. You're not able to play Windows Media 9 files,
newer Real Media files and some less common formats.

Friday, February 10, 2006

From 'Shame' to 'Light'

What a book 'Lajja' is; I don't know if you will get the same effect if you read the translated work. But I enjoyed it, even though it repeatedly stresses the injustice meted out to the Hindus in Bangladesh with statistics and facts after facts; the narration and the climax is just too good.



Read very few books with this kind of ending except Marquez's A Hundred Years Of Solitude. Nasrin has a knack of keeping you interested through each page and making the reader feel the pathos, sorrow and angst of the characters, except when she is rattling the facts in a non stop stream.

Also read the poem 'Lead me to the light'.

Wednesday, February 08, 2006

Poetic Injustice

Of unfulfilled duties, And unearned rights, Of worthless works, And stupid fights. Of loveless affairs, And heartless flings, Of remorseless apologies, And unattached strings. Of untrue lines, And mindless talks, Of late realizations, And retrospective walks. Of unleashed potential, And an unachieved dream...

Poetic Injustice - A collaborative blog of poesy ...
Nakul, Shreyas and yours truly.

More on the history behind this initiative on Shreyas's blog.

Saturday, February 04, 2006

Ajantrik

Dramatic and full of exaggeration, yet a very sentimental, realistic and good movie; just watched 'Ajantrik' (Pathetic Fallacy or The Unmechanical) by Ritwik Ghatak, which I have borrowed. The movie speaks about the attachment of a taxi driver Bimal (played by Kali Banerjee) to his old classic style car, which he calls by name. The car is in a dismal state, it is in shambles yet does its work, reaches the place where it is supposed to and in time. The movie revolves around a few scenes about the travels in the car and the driver's love for his car - he has no one else except for the car whch is his lifemate and a small boy who is his neighbour. Midway in the movie the car breaks down. He brings it back home, to the ridicule of his neighbours and vows to get it back to life. He spends all his money to repair it; everyone suggests he sell it off, but he works on it day and night relentlessly and finally makes it run again. As soon as he starts climbing a slope, the car works for the last time, sputters and falls silent. He is infuriated and in anger breaks the windows and finally sells off the scraps to a trader - the movie ends with the scraps being taken off in a push-cart; suddenly he hears the familiar sound of the car's horn. He is baffled about where the sound is coming from and looks around to find a little boy playing with the horn. The driver smiles at the smiling child, as tears stream out of his eyes.
The accompanying classical music by Ustad Ali Akbar Khan in the movie, is just amazing and blends perfectly ...
LINKS: [1] An excellent Essay on Ajantrik and Ghatak [2] [3]