Tuesday, November 8, 2011

php code for perfect palindrome









<?php

    $word  = array("test","racecar","axe","madam","hu","ada");

    for($i=0;$i<=5;$i++)
    {
            if(strlen($word[$i])>2)
            {
                if(strlen($word[$i])%2==1)
                {
                        $word2[$i] = strrev($word[$i]);
                       
                        if($word[$i] == $word2[$i])
                        {
                            echo"<p>$word[$i] is a perfect palindrome</p>";
                        }
                   
                }

            }
            else
           
            if(strlen($word[$i])<3)
            {
                    echo"<p>$word[$i] is not a palindrome bacause it has less than 3 characters</p>";
            }
            if(strlen($word[$i])%2 !=1)
            {
                    echo"<p>$word[$i] is not a palindrome because it has even number of characters</p>";
            }
            if($word[$i] != $word2[$i])
            {
                    echo"<p>$word[$i] is not a palindrome because when we reverse the character, it produce different meaning</p>";
            }

    }
?>

Tuesday, August 16, 2011

How to get icons only in the firefox bookmarks toolbar

1. Log on to https://addons.mozilla.org/en-US/firefox/

2. Search for "smart bookmarks bar"











3. Click add to firefox










4. Click Install Now



5.  Restart Firefox
















6. When your browser has restart, go to "Tools" > "Add-ons"


7. Under Extentions, find Smart Bookmarks Bar. Then, click Options



 8. Press OK. You can also organize as you want.



9. Press OK



As you can see, the toolbars will look like this.







Thursday, August 11, 2011

How to create a new partition in Windows 7

1. Right click on Computer. Click 'manage'.


2. Click on Disk Management
















3. Right click on Acer (C): Then, click 'Shrink Volume'.











4. Set the amount of space to shrink in MB. Actually, i set to 214000 and not 214256. Click Shrink















5. Unallocated space has been created
















6. Right click on the unallocated space. Click 'New Simple Volume'










7. Click Next


















8. Set the simple volume. I set to 213999. Click Next




















9. Assign the drive letter. I assign to E.


















10. Click next.


















12. Click Finish.


















13. You will see a new partition has been created.




Sunday, July 3, 2011

How to format HP Mini 110-3004TU





















Before formatting your laptop,it is very important for you not to delete the Recovery folder in D:













1. Now, turn on / restart your laptop. Press F11.













2. Click on System Recovery













3. Choose whether you want to backup your folder before formatting or not. I choose to backup first. Insert your pendrive or removable hard disk. Then, click next.

























Click on the location that you want to backup your folder. Then, click Next.












Click Next










The process begin

















Backup success. Click next.













Now, it is time to format your laptop.
Click Next

















Process begin.
Click Finish. Your computer will restart now.



























Choose your country, time etc.













Key in your PC name.
 












Your password. You can skip this step.














Simply tick both of the check box.













I use Recommended settings.














Set the time.














I skip this step by clicking Skip.

Wait.....

Wait.....







































TADA!!!!!!! Click Go.














(From this step, it all depend on you)
To make it fast. Click Register Later.















No..no and no. Click Next.
















Next.















Are you sure? YES!











Sorry, this image blur. Click the green button pointing by the red arrow.


Click Next.

Wait..

FINISH.




Related Posts Plugin for WordPress, Blogger...