Saturday, February 11, 2012

Google Web Elements

Google Web Elements allow you to easily add your favorite Google products to your website.

http://www.google.com/webelements/#!/custom-search





http://klairvoyant.in

Monday, November 14, 2011

Resetting the Root Password in MySQL

1) Stop mysqld and restart it with the --skip-grant-tables option.

(This enables anyone to connect without a password and with all privileges. Because this is insecure, you might want to use --skip-grant-tables in conjunction with --skip-networking to prevent remote clients from connecting.)

2)Connect and  Issue the following statements in the mysql client. (Replace the password with the password that you want to use.)

    mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass')
        ->                   WHERE User='root';
    mysql> FLUSH PRIVILEGES;

   ( The FLUSH statement tells the server to reload the grant tables into memory so that it notices the password change.)

3) now  able to connect to the MySQL server as root using the new password. Stop the server, then restart it normally (without the --skip-grant-tables and --skip-networking options).


Source MySQL help Site

http://klairvoyant.in

Monday, October 10, 2011

For makeing beautiful Tooltips using jQuery plugin

Chek the below link for the plugin and for useage details

http://plugins.jquery.com/project/bt


useage.

1) put 1) jquery.bt.min.js  and 2) jquery.bt.css in the javascript folder and stylesheet folders respectively.

2) $('#accordion').bt({ padding: 20, width: 100, spikeLength: 60, spikeGirth: 10, cornerRadius: 30, fill: 'rgba(0, 0, 0, .4)', strokeWidth: 2, strokeStyle: '#CC0', cssStyles: {color: '#FFF', fontWeight: 'bold'}, positions: ['right','top' ] });

where #accordian id given to a div element and others are configurable options for the tool tip.


by http://klairvoyant.in