Archive for 2012

How to Fix Windows Bootloader – Using bootrec.exe Tool


To run the Bootrec.exe tool, you must start Windows Recovery Environment. To do this, follow these steps:
Step 1
Put the Windows Vista or Windows 7 or Windows 8 installation disc in the disc drive, and then start the computer.

Step 2
Press a key when you are prompted.

Step 3
Select a language, a time, a currency, a keyboard or an input method, and then click Next.

Read more »

How to Repair GRUB 2 When Ubuntu Won’t Boot


Using Terminal Method

If you have Ubuntu 12.04 installed, ensure you use a Ubuntu 12.04 live CD.
Open a terminal after booting into the live environment. Identify the partition Ubuntu is installed on using one of the following commands:
sudo fdisk -l
sudo blkid
Step 1
Here is the output of both commands. In the sudo fdisk -l command, the Ubuntu partition is identified by the word Linux in the System column. 

Output of drive information 1

Read more »

Various Array Operations in PHP

An array can be created using the array() language construct. It takes any number of comma-separated key => value pairs as arguments.


    key  => value,

    key2 => value2,

    key3 => value3,



The comma after the last array element is optional and can be omitted. This is usually done for single-line arrays, i.e. array(1, 2) is preferred over array(1, 2, ).


Read more »