Skip to main content

Posts

Showing posts from 2011

Quote

I have no right, by anything I do or say, to demean a human being in his own eyes. What matters is not what I think of him; it is what he thinks of himself. To undermine a man's self-respect is a sin. Antoine de Saint-Exupery 

set up hotmail on ur ipod touch!

Hwy guys I figured a way to syuc ur hotmail on to ur ipod touch using WiFi Under Settings, tap on “Mail, Contacts, Calendar”. Then choose “Add Account”. Choose “Microsoft Exchange”. Fill all the details Server / URL m.hotmail.com Username Enter full email address, for example: myname@hotmail.com Domain Leave this blank SSL Enable this Certificate Accept the SSL certificate when prompted Click done. And ur DONE!

Reset ID Field in an mysql table (1,2,3,4…)

u need to use the following command in an mysql terminal. -- your_table: The table to modify -- id: The id field/column to reset SET @num := 0; UPDATE your_table SET id = @num := (@num+1); ALTER TABLE your_table AUTO_INCREMENT =1; (This code is taken from http://www.daftspunk.com/code/how-to-reset-table-id-fields-1234-using-mysql.html)

ubuntu multiple wallpaper 4r ur workspace

Disable the "show desktop" feature in Nautilus. The process to do that is 1. Press ALT+F2 2. type gconf-editor press enter 3. navigate to Apps --> Nautilus --> Preferences 4. Uncheck "show desktop". Part 2 1. Press ALT + F2 2. type CCSM 3. on the left click on Utility and then on wallpaper 4. select the same number of wallpapers as the number of workspaces. UR DONE :)

Importing Mysql file using Source Command

1. Create an empty database in phpMyadmin. Main thing to do is give it the same name as the sql file you are trying to upload. One can also use command CREATE DATABASE databasename; 2. Log on into shell: mysql -u root -p. It will then ask you for your root password. Type it in 3. Let Mysql know which file you intend to use mysql> USE file.sql;. (If you fail to use the USE command you can end up with this error: “error 1046 (3D0000): no database selected. If your database is large this error can freeze the screen) 4. Dump the sql data file with this code: SOURCE /home/username/foldername/file.sql. AND U R DONE.

Brother Marriage

Yaaiii, I went back to India for 5days to attend my big brothers wedding. It was great seeing all the relatives, the dance and the work; and being with the ones I love and care. Now back in business.

Cricket World Cup 2011

Hey guys, 2nd April 2011, its 2:15 in the morning and I am sitting here wondering who will win this awesome game. It is between India and Srilanka. And more Sachin has 99 centuries on his pocket and I am hoping that he will get his 100th century and will help India to win the world cup. Its been so long (26 yrs may be) since last time in the captency of Kapil Dev we won 1986 world cup. I hope Dhoni does it again. I wish India all the best.

Yellow Ostrich Whale Lyrics

oh oh oh oh oh oh oh oh whale, swim with me whale we will go far into the sea you will take me onto your back never look back never look back whale, sing to me whale sing me a song tell me that things will never go wrong hide me away don’t let them stay don’t let them stay whale, come with me whale we will go far into the blue i will take you, listen to me then you will see then you will see whale, don’t worry whale just do as you please i will accept if you’d rather leave open my heart if you open your heart open your heart oh oh oh oh oh oh oh oh i’ve been swimming for a thousand years and i’ve seen more than you can realize i accept that you will never understand so i will gladly take your hand whale, come with me whale we will go far into the sea you will take me onto your back never look back never look back never look back never look back whale, come with me whale we will go far into the blue i will take you, listen to me then you will

Wrong permissions on configuration file, should not be world writable!

are u using lampp in ubuntu 10.10 and ur localhost page is wokring fine, but when u click on phpmyadmin u get this stupid error "Wrong permissions on configuration file, should not be world writable!" From what I feel is because we have set username password for mysql and have not updated the right file so that phpmyadmin can know about it so, 1.go to /opt/lampp/htdocs/xampp 2.look for mysql.php 3.update the mysql_connect("localhost") line (it will be inside a if loop) to mysql_connect("localhost"."mysql_username","passwo rd"); and then u can chmod the file to 0755.

XAMPP: Couldn't start MySQL!

XAMPP: Couldn't start MySQL! Trying to run mysql on ubuntu 10.10 and give this vauge error "XAMPP: Couldn't start MySQL!" Try this 1. Open a terminal. 2. run this command sudo chown -hR root /opt/lampp 3. then run this sudo chmod -R 777 /opt/lampp 4. Now Restart XAMPP sudo /opt/lampp/lampp restart U are all set. And if u r getting the follwing warning after restarting "Warning: World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored" 1.Open terminal 2.Migrate to /opt/lampp/etc 3.run the command sudo chmod 755 my.cnf

Agnee Song...

If you know hindi and like music(who dosen't)... listen to Agnee Song It is Agnee's performance at Rock On with MTV. Supposedly it is a theme song for a crappy soap similar to the bachelor.

linux directory structure

/bin - binary applications (most of your executable files) /boot - files required to boot (such as the kernel, etc) /dev - your devices (everything from drives to displays) /etc - just about every configuration file for your system /etc/profile.d - contains scripts that are run by /etc/profile upon login. /etc/X11 - configuration files for the X Window system /home - locally stored user files and folders /lib - system libraries (similar to Program Files) /media - mounted (or loaded) devices such as cdroms, digital cameras, etc. /mnt - mounted file systems /opt - location for “optionally” installed programs /proc - dynamic directory including information about and listing of processes /sys - contains information about the system /var - mainly logs, databases, etc. /usr/local/bin - the place to put your own programs. They will not be overwritten with upgrades. /usr/share/doc - documentation.