How to create item list in drupal 7

$listItem = array('Drupal6','Drupal7');

theme_item_list(array('items'=>$listItem,'title'=>'', 'type'=>'ul', 'attributes'=>array('class' => 'dlist')))

How to find which php.ini used in console?

php -i display the phpinfo(). Grep that result and find the php.ini file like below

$ php -i | grep Config
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini
Configuration

MySQL - How to set password for the root

Go to MySQL bin directory and use mysqladmin command to set password

mysqladmin -u root password sasikala

then login as

mysql -u root -psasikala

To change the root password

mysqladmin -u root -pold_password password new_password

The new password will be set to the root user.

IT / Computer - Acronyms and Abbreviations

1. ODBC means open data base connectivity

2. ASCII stands for american standard for information interchange

3. FLOPS stands for floating point operation per second

4. RAID stands for redundant array of independent disks or redundant array of inexpensive disks

Laptop Battery Long run

Recently my laptop battery is not working. My laptop powers on only if it plugged in cable. It is not getting charged. I took it to service center, they replaced with battery and gave some tip for battery long life. I am sharing the tip with you all.

Charge the battery maximum level possible and unplug the cable. Work till it goes minimum level then recharge it back.

If you charge up to 80% or 90% or 95 or 100% and unplug it. Use the charged power till it goes to minimum level possible. So whatever input given,let it produce output.

If you keep input, output side capacity losses. for example if you power up to 90% and using it, when power goes to 50% or 60%, again if you recharge it. The output is not properly utilized so battery loss the capacity.

Try this idea maximum possible times. Don't go with 10% power for presentations and meetings to follow this idea :-), just kidding.

Syndicate content