Install PHPUnit in Windows, Wamp using PEAR

Go to the directory where PHP is located. Typically, this is <PATH-TO-YOUR-WAMP-INSTALLATION>\bin\php\php5.3.8

We’ll call this path “PHP’s location” throughout this article.

Now, install PEAR following instructions in this tutorial.

Open a command-prompt, go to PHP’s location using cd, and type:

pear channel-discover
pear channel-discover
pear channel-discover
pear install --alldeps phpunit/PHPUnit

We’re done! type phpunit –version to confirm installation.



Installing PEAR in Windows, Wamp

Go to the directory where PHP is located. Typically, this is <PATH-TO-YOUR-WAMP-INSTALLATION>\bin\php\php5.3.8

We’ll call this path “PHP’s location” throughout this article.

  1. Download “go-pear.phar” from this location:
  2. Create a folder “pear” in your PHP’s location
  3. Put the downloaded “go-pear.phar” file in this location.

Open a command prompt with administrative privilege. For this, click on start menu, type “cmd” – you can see the cmd.exe icon. Right-click on this icon and click “Run as administrator”

Cmd.exe will open. Go to the direcotry of your PHP’s location, by typing “cd” command. For example, my wamp is located in “D:\wamp”, so I write following command:

cd wamp\bin\php\php5.3.8

Now run the downloaded file, by typing:

php .\pear\go-pear.phar


Installation will begin! During installation, you’ll need to respond to some prompts, just hit enter/press “Y” when necessary.

After installing, double-click and instal “PEAR_ENV.reg” found in your PHP’s location.

Optionally, you can add your PHP’s location in your PATH variable.

How to use Greasemonkey User Scripts in Google Chrome

This tutorial is for windows users only!

Most of the Greasemonkey user javascripts run on Google Chrome. We’ll need to go through some easy steps to run these scripts on Google Chrome:

Change Channel:

Get the Google Chrome Channel Changer tool from here. Once you’ve finished downloading (several KBs) run the file.

Select “Dev” like the picture below:

Download & Place the Script

Now you need to download your script. If you know the link to download, simply download it.

BTW, you can get plenty of scripts from here

Place the Script:

Open your explorer and go to the following location of your computer:

Windows XP:

C:\Documents and Settings\*USER*\Local Settings\Application  Data\Google\Chrome\User Data\Default

Windows Seven/Vista:

C:\Users\*USER*\AppData\Local\Google\Chrome\User Data\Default

Note: Replace *USER* by your username.

Create the Directory

After going to the location mentioned above, create a new directory named “User Scripts”

Put your downloaded scritpts (something.user.js) files in this folder.

Final Step: Modify the Shortcut

Go to desktop (or whereever the Google Chrome icon is), right click on the shortcut of Chrome icon, click Properties.

Make sure you are in the “Shortcut” tab

put the text -enable-user-scripts right after the text in the "Target" box. Make sure you put a space before -enable-user-scripts

XP Users : Be sure that enable-user-scripts is outside the directory’s quotes.


You’re done.  Double click on the icon and start browsing. If the script is compatible, you’ll see the effects right now.

How to connect Two PC and Share BroadBand Internet in windows Seven/Vista

Assume you have two computers running in Windows Vista/Seven:

  • – PC1, already connected with Internet using BroadBand (Ethernet Cable)
  • – PC2, which you want to connect with PC1 and share the internet.

Well, that’s quite simple in Windows Seven/Vista. All you need is:

Well, Now let’s begin work. It’s quite simple. First, just install another LAN Card (the card where you plug the cable) in PC1 (just insert the card on your motherborard or use a USB lan card). Now, your PC1 has two LAN cards installed. The first card is connected with the internet. The second card will be used to connect with PC2!

Now, when you install the new LAN card on PC1, you can find a new Icon on Control Panel\Network and Internet\Network Connections. Just like the one shown in the picture below (I’ve renamed my first lan card as “cityccom” and the second card icon as “gigahome”)

Now, Double clidk on the icon of new lan card, Click Properties. From the property window, double click on Internet Protocol Version 4 (TCP/IP). A new window will appear, and make everything unchanged like the picgture below:

Now, Right click on the icon of the old LAN card which is connected to internet (in my case “citycom”) and go to Properties. Now, click on the sharing tab, and put tick on the sharing option.

You’re almost done! One final step, now go to PC2. Go to Control Panel\Network and Internet\Network Connections. Then Right click on the icon of the LAN card, go to properties, double click on Internet Protocol version 4 (TCP) and set everything default (Obtain IP address, DNS automatically)

You’re done! Now connect the new lan card of PC1 with PC2 using the cross-over cable, and you can enjoy networking and internet.

NB: If it troubles, try connecting and disconnecting the cables, or by restarting the computers.

Install Windows 7 From Pendrive: Make bootable usb drive in xp/vista

You can make your USB Flash Drive/Pendrive Bootable & Use it to install operating systems (like Windows 7)

You can also Check: Install Ubuntu from pen-drive – if you are running Ubuntu

In this tutorial, we will be describing how to install Windows 7 from your pen drive. I assume you are running Windows.

Important: Your motherboard must support booting from flash-drives. Before you boot from flash-drives, you must go to your BIOS settings panel & change Boot priority to USB drive.

First Step: You need a copy of bootable Windows 7 DVD/ Image – ISO. Mount this ISO on your pc using any virtual-drive software. If you don’t have any, get Magic ISO (Free)

Second Step: If you are using XP, go to the section below.

Windows Vista/Seven Users:

  1. Plug-in your pen-drive.
  2. Go to Start menu > All programs > Accessories, right click on Command Prompt and select Run as administrator.
  3. Type DISKPART and hit enter
  4. type LIST DISK command and note down the Disk number (i.e: Disk 1) of your USB flash drive. In my example, I assume that it was Disk 2. Type and execute the commands below one by one:
  6. CLEAN
  10. FORMAT FS=NTFS QUICK (Format process may take few seconds)
  11. ASSIGN
  12. EXIT
  13. Now minimize the Command-Prompt window. Insert your Windows7/Vista DVD or mount ISO by virtual drive then check the drive letter of the DVD drive. Suppose your DVD drive letter is “D” and USB drive letter is “H” (open my computer to know about it).
  14. Go to the Command-Prompt & type D: and hit enter.Where “D” is your DVD drive letter.
  15. Type CD BOOT and hit enter to see the below message. Next, type command given below to update the USB drive with BOOTMGR compatible code.
  16. Type BOOTSECT.EXE/NT60 H: where “H” is your USB drive letter. Once you enter the above command you will see the below message.
  17. Copy the contents of your Windows-7 DVD to your pen-drive. You’re Done!

Windows XP Users:

  1. Download MBR Wizard (Freeware) & Extract it in a folder. Remember the folder location, we will use it later!
  2. Connect your pen-drive & Format it. Insert Windows 7 DVD/Mount it from an ISO image. I assume “I” is your USB drive latter.
  3. Go to Start menu > All programs > Accessories, right click on Command Prompt and select Run as administrator.
  4. Type convert i: /fs:ntfs I assume “I” is your USB drive latter.
  5. In the command promt, go to the directory where you extracted the MBR Wizard software. If you extracted it in D:\my_folder, Then first type D: and hit Enter. Then type cd my_folder & hit Enter.
  6. Type mbrwiz /list (note down disk number of your USB Pen drive)
  7. Type mbrwiz /disk=1 /active=1 (Assume 1 is Disk Number of your USB Drive)
  8. Type exit
  9. Open another Command-Prompt window and type G: (Drive letter of Windows 7 DVD/Image)
  10. CD boot
  11. bootsect /nt60 I: (I is drive latter of your USB drive )
  12. Copy the contents of your Windows-7 DVD to your pen-drive. You’re Done!