Sunday, February 19, 2012

8 Tips to Focus Your Mind

Hello ,

Found one good article to stop our monkey mind thinking.
Sometime need to get rid of stress , and need to focus on one thing.
 
http://www.care2.com/greenliving/8-tips-to-focus-your-mind-how-to.html
 
Hope this will be helpful.
 
Best Regards,
Girish

Saturday, February 18, 2012

Ubuntu Single User Mode without root password for maintenance


Hello Friends,

I came across problem , while resetting ubuntu password , Generally when we reset password for RHEL 5 OS , we enter into single user mode through grub by editing Kernel line with Single or 1  , and simply you will boot into single user mode.

But with Ubuntu it was a kinda different.


1.Reboot your machine; press 'Esc' to get to the GRUB menu; select your image; press 'e' to edit; select the Kernel line.

2.Press 'e' to edit the kernel line. Edit the line to get rid of quiet and splash; change 'ro' to 'rw'; and add 'init=/bin/bash'. The line should look something like this:

kernel /vmlinuz-2.6.15-27-386 root=/dev/mapper/Ubuntu-root rw init=/bin/bash3.Press 'enter' then 'b' to boot with these new settings.

Then you can fire up passwd command to reset root password.

Reffered from : http://www.noah.org/wiki/Single_User_Mode

It Works!

Best Regards,
Girish

Samsung Duos GT C-3222 Secrete code


Hello Friends,

You can play around with *#52828378#  code , I have tested it on my duos , and working fine with me.
I wanted to install java application on my duos , for that you need to get in :
OTA test basic >> set Maximum JAR size (kb)" between 500 to  650 , and you will be able to install small java applications on your duos , upto 650 to 700 Kb

Best Regards,
Girish...

Friday, February 17, 2012

Now we can have chat !

Hello Readers,

I have included simple chat plugin , so that we can have chat on technical topics.
We can share our views and get to know each other.

Thank & Regards,
Girish

Monday, February 13, 2012

Most Famous logos and its meaning

Hi Friends ,

This is  a simple but very good link to know famous Logo's and meanings associated with it.

Click here 

Best Regards,
Girish



Wednesday, February 1, 2012

Mysql installation on MAC OS X version 10.6.8


Hi,
Untar mysql in /usr/local/mysql  --> tar -zxvf filename .
As per instructions from INSTALL_BINARY (mysql) , we need to add groups , users , set permissions.

Once done , go to :

1. /usr/local/musql/bin
2. execute ./mysqladmin -u root -p Newpassword (Change root password for MySql)
3. ./mysql -u root -p
4. Enter new set password.

Once connected, you can list databases using

mysql> show databases;
mysql> use databasename;
mysql> show tables;
mysql> create table customer (custid INT , name TEXT);
mysql> insert into customer values(12,'Girish');

Database name --> test
Table name --> customer

While trying to connect using PHP we got following error :
------------------------------------------------------------
warning mysql_connect() function.mysql-connect 2002 no such file or directory (trying to connect via unix:///

Refer Link:
http://stackoverflow.com/questions/3968013/cakephp-no-such-file-or-directory-trying-to-connect-via-unix-var-mysql-mysq

Code :
--------


$con = mysql_connect("localhost","peter","abc123");
...
Error was with above line.

Solution :
----------
mysql defaults to use local unix domain sockets if you use localhost. Switching to the IP forces it to use TCP sockets instead

In above code insted of localhost we user 127.0.0.1 ip , and it worked Fine!!!!


Regards,
Girish

Tuesday, January 31, 2012