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 components.ez.no
pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony-project.com
pear install --alldeps phpunit/PHPUnit

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

Reference:

http://www.ankara-gtug.org/2011/11/15/phpunit-installation-on-wamp-in-windows-7-and-integration-with-eclipse-2/

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: pear.php.net/go-pear.phar
  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:

D:
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.