Friday, June 29, 2007

You never know

You Never know
how And When
The Existence Will Start
Using You For Its Purpose

You Never Know
How And When
You Will Be Filled With
Abundance
And You Will Start Raining
Quenching The Thirst of Many

You Never Know
How And When
You Will Be Full Of
Fruits And Shade
And Travelers Will Take
Shelter And Food From You



You Never Know
How And When
You Will Be Full With
Love And Light
And You Will Start Spreading
The Fragrance of Beauty To Everyone


You Never Know
How And When
The Death Will Come
And Make You Deathless
And Life Will Start
Flowing Out Of You
You Never Know
How & When....Really !


~Sri Sri

Drupal mysql database creation and assigning priviledges

Archived herein so that I can refer to this, whicle createg databases and assigning privileges.

First, you must create a new database for your Drupal site (here, 'databasename' is the name of the new database):

mysqladmin -u username -p create databasename

MySQL will prompt for the 'username' database password and then create the initial database files. Next you must login and set the access database rights:

mysql -u username -p

Again, you will be asked for the 'username' database password. At the MySQL prompt, enter following command:

GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';

where

'databasename' is the name of your database 'username' is the username of your MySQL account 'password' is the password required for that username

Note: Unless your database user has all of the privileges listed above, you will not be able to run Drupal.

If successful, MySQL will reply with:

Query OK, 0 rows affected

To activate the new permissions, enter the following command:

FLUSH PRIVILEGES;

Tuesday, June 26, 2007

I do not believe in God

Archived, here, since its just so beautiful, copied from the author's discussion at orkut here, his profile is here..
I went to a barbershop to have his hair cut .

As the barber began to work, I began to have a good conversation.
We talked about so many things and various subjects. When we
eventually touched on the subject of God, the barber said:

"I don't believe that God exists."

"Why do you say that?" I asked .

Barber :

"Well, you just have to go out in the street to realize that God doesn't exist. Tell me, if God
exists, would there be so many sick people?

Would there be abandoned children?

If God existed, there would be neither suffering nor pain.

I can't imagine a loving God who would allow all of these things."

I thought for a moment, but didn't respond because I
didn't want to start an argument.

The barber finished his job and I left the shop.

Just after I left the barbershop, I saw a man in the street with
long, stringy, dirty hair and an untrimmed beard. He looked dirty and
unkempt.

I turned back and entered the barber shop again and said
to the barber: "You know what? Barbers do not exist."

"How can you say that?" asked the surprised barber.

"I am here, and I am a barber. And I just worked on you!"

"No!" I exclaimed. "Barbers don't exist because
if they did, there would be no people with dirty long hair
and untrimmed beards, like that man outside."

"Ah, but barbers DO exist! That's what happens when people do not come
to me."

"Exactly!" I affirmed . "That's the point! God, too, DOES
exist! That's what happens when people do not go to Him and don't look
to Him for help. That's! why there's so much pain and suffering in the
world."


The meaning to look to GOD is not to go to the temple or just rituals. Surrender yourself to GOD, kill your ego completely.
God is within U !


In Service with love
Ritesh Sharma

Monday, June 25, 2007

Tata Indicom are Fraudsters

After reading the full blog (here and here), I can only feel sorry that I opted for Tata indicom prepaid. My experience is as bad as any of you, when after using the phone for 2 months it died.

I brought it at the Tata true value (fraudsters) shop, and they told me, that I should take it to the Haier service station some 25 Kms away. I bowed to there insists and went there. They took my mobile away for repair asking me to come after 1 week. so long I am having to bear with no mobile. So after 1 week, like a donkey I go, and they give me a replacement certificate, and ask me to collect the new phone from tata true value (fraudsters) shop.

Like a donkey I go to there showroom, sit there for 1 hr for my turn to come. and then the kid, smartly dressed in jeans and yellow t-shirt, bull shits me, that all such replacements happen at nodal office, Ultadanga. which is another 25 Km from there.

After, requesting and feeling like a donkey, I again endure the long journey, to nodal office, and I meet, with Rikta Roy (033-65551181), and she informs me of the way a replacement is made. it goes like this...

"Once you get the Replacement Certificate you have two ways, either, you can deposit the handset at the True Value (fradusters) shop, and after a week you can get a refund, or, you can ask for a replacement, and if they have the same handset available, then they will replace you after 1 week."

I asked, what if they do not have the handset in stock,
she replied, " Then after a week, you can get another headset, provided you are willing to pay the difference."

And she added " We at nodal office, do not replace the thing, you go to the true value (fraudsters shop, and tell them this is the process."

amazed, I was at my wits end of controlling the bhadrolok (gentleman) dying to kill her. anyway, I came back to the true value (fraudsters) office, and told them the process, and they asked me to come next day and it will be solved.

I went back happy, think at last tomorrow will be the day. The next day, my company sent me off to Coimbatore, and I came back 6 days later. yet I remembered the meeting and went ASAP. The lady kept me waiting. then finaly when my turnm came, she asked me to wait, as she was calling the godown people. wait wait wait all she said and 3 hrs passed. I started fuming, and she told me to come after 4 days, that is the time it will take for the headset to come from the godown. I got angry shouted at my lungs limit, and it fell on deaf years and the kids just made a dissapearing act.

so, I went through another 2 of such torments and finally recieved the money of the headset after exactly 37 days.
Now, I will never ever take an Indicom Connection.

Also, I will tell, you, however, cheap the tataindicom may seem to you, stay away from it. They are fraudsters. They supply the worst handsets on earth.

Incase any of you are planning to sue the company, count me in. I can give you good length of materials.

regards

Monday, June 4, 2007

My Guide To LVM

This is the Logical Volume manager, by default there on Redhat. A nifty tool from redhat, which scores over every other storage system. just because you will run out of space some day.

Firstly..
1) use fdisk to create the partitions. Change the Type to hex 8e (0x8e), on the fdisk (prompt) you need to say '8e' only, when changing type. Remember your partitions ie. /dev/hda1 /dev/hda2 etc..

2) use the pvcreate command to initialize the physical volume.
#>pvcreate /dev/hda1
similarly more if you have more partitions.

3) Create a Volume Group, if you want a knew mount point with the new space. or you can also extend an existing Volume Group. First how we create a new VolumeGroup..
#>vgcreate MyVolGroup01 /dev/hda1 /dev/hda2 ...
The command takes basically two parts, the first one has to be the new name of the Volume Group and the second has to be the Physical Volume which we have already created in step 1.

Now, How to extend to an existing VolumeGroup
#>vgextend VolGroup00 /dev/hdb1 /dev/hdb2 /dev/hdc1
which means the existing Volume Group called VolGroup00 will now encompass the Physical Volumes hdb1, hdb2 and hdc1.

4) Create the Logical Volume (this step is the final step, which creates the Logical Volume)
We can also extend a Logical Volume, we will be covering that next.
First before we create a Logical Volume, we should check the Total PE (Physical Extent available in the Volume Group)
#>vgdisplay MyVolGroup01
Note the PE amounts mentioned in 'Total PE' and 'Free PE'.
Now we can create the Logical Volume..
There are two ways.. we can also spell the Max Space in GB or we can also spell the Max PE's wanted.
A) Max PE.
#>lvcreate -l 340 MyVolGroup01 -n usrlv
this will create the device /dev/MyVolGroup01/usrlv block which will have the MAX 340 PE's (eaCH PE is nearly 4KB).
B) Max Space in GB
#>lvcreate -L 1.3GB MyVolGroup01 -n usrlv
this will create the device /dev/MyVolGroup01/usrlv block which will have the MAX 1.3 GB of Space.
Note: Allocating More space than possible will naturally shoot an error. so you can check what is feasible. Refer to vgdisplay command to know what space is available within a Volume Group.

Now How can we Extend an existing Logical Volume.. ? remember, You can only extend a Logical Volume, if its Volume Group has Free PE's left. ie, say usrlv is a Logical Volume for MyVolGroup01, as laid in step4 and we need to resize the Logical volume for it. We can only do that provided there is 'free PE's left in the Volume Group 'MyVolGroup01'. IF there is no space left, you can create the Physical Volumes as said in step 1 and extend it to the Volume Group, and then do the extend.. as mentioned hereafter.
#>lvextend -l 979 /dev/MyVolGroup01/usrlv (will extend the usrlv to 979 PE's which are free )
or
#>lvextend -L 2.5GN /dev/MyVolGroup01/usrlv

5)resize the restructuring of the Logical Volume, if you have done an extending. Or create the file system on the Logical Volume if its a newly created LV.
#>mkfs.ext3 /dev/MyVolGroup01/usrlv
or resize, while the FS is mounted via 'ext2online'
#>ext2online /dev/MyVolGroup01/usrlv
or unmount the LV. and then resize it via
#>resize2fs /dev/MyVolGroup01/usrlv

Hope this helps.. also I will check back when I need to..

List directories via 'ls -d' - surprised me

List directories via 'ls -d' - surprised me This was one of those feelings where I was left surprised with the humble linux comm...