apach configuration

January 22, 2015 Leave a comment
Categories: apache, aws, cakePhp, linux, php, Web

install php mysql apache and secure mysql at ec2 instance

October 14, 2014 Leave a comment
Categories: aws, linux, MYSQL, php, Web

Path to happiness

February 22, 2014 Leave a comment

Once a group of 50 people was attending a seminar.
Suddenly the speaker stopped and decided to do a group activity. He started giving each one a balloon. Each one was asked to write his/her name on it using a marker pen. Then all the balloons were collected and put in another room.

Now these delegates were let in that room and asked to find the balloon which had their name written, within 5 minutes. Everyone was frantically searching for their name, colliding with each other, pushing around others and there was utter chaos.

At the end of 5 minutes no one could find their own balloon.
Now each one was asked to randomly collect a balloon and give it to the person whose name was written on it.
Within minutes everyone had their own balloon.

The speaker began— exactly this is happening in our lives. Everyone is frantically looking for happiness all around, not knowing where it is.

Our happiness lies in the happiness of other people. Give them their happiness; you will get your own happiness.
And this is the purpose of human life.

Categories: Uncategorized

MAP REDUCE using couchdb

February 18, 2014 Leave a comment



  • If you don’t use the key field in the map function, you are probably doing it wrong.
  • If you are trying to make a list of values unique in the reduce functions, you are probably doing it wrong.
  • If you don’t reduce your values to a single scalar value or a small fixed-sized object or array with a fixed number of scalar values of small sizes, you are probably doing it wrong.

reset mysql password

November 13, 2013 Leave a comment

open terminal

#>sudo service mysqld stop

#>sudo mysqld_safe –skip-grant-tables

open another terminal

#>mysql -u root

mysql>show databases;

mysql>use mysql;

mysql>UPDATE user SET Password=PASSWORD(‘password’) WHERE User=’root’;


mysql> /q

now run command in first terminal that as follows

#>sudo service mysqld start

Categories: Uncategorized

delete all svn files from current directory recursively

November 13, 2013 Leave a comment

find . -type d -name ‘.svn’ -print -exec rm -rf {} \;

Categories: Uncategorized

how to check mac os bit


about this mac -> look at processor name and search in following table .

Intel Core Solo 32 bit
Intel Core Duo 32 bit
Intel Core 2 Duo 64 bit
Intel Quad-Core Xeon 64 bit
Dual-Core Intel Xeon 64 bit
Quad-Core Intel Xeon 64 bit
Core i3 64 bit
Core i5 64 bit
Core i7 64 bit
Categories: Uncategorized Tags: