Showing posts with label tipsandtricks. Show all posts
Showing posts with label tipsandtricks. Show all posts

Tuesday, March 23, 2010

WampServer 2.0 Port Configuration

Now that you have WampServer 2.0 installed, you'll want to use it along side with other servers such as IIS. This is easily done by changing the port that WampServer 2.0 listens to. I suggest changing the port from 80 to 81.

Use Notepad or WordPad to open the files below.

  1. Open the httpd.conf file for the Apache server. On my machine, it's located here:

    C:\wamp\bin\apache\apache2.2.6\conf\httpd.conf
    • Do a search for "Listen 80" and replace it with "Listen 81".
    • Save and close the file.

  2. Open the wampmanager.tpl file. On my machine, it's located here:

    C:\wamp\wampmanager.tpl
    • Do a search for "http://localhost/" and replace it with "http://localhost:81/" (There are three total).
    • Do a search for "${w_testPort80}" and replace it with "${w_testPort81}".
    • Save and close the file.

  3. Open the testPort.php file. On my machine, it's located here:

    C:\wamp\scripts\testPort.php
    • Do a search for "80" and replace it with "81" (There are three total).
    • Save and close the file.

  4. Open the english.lang file. On my machine, it's located here:

    C:\wamp\lang\english.lang
    • Do a search for "$w_testPort80 = 'Test Port 80';" and replace it with "$w_testPort81 = 'Test Port 81';".
    • Save and close the file.

  5. Right click on the WampServer icon and click on "Exit".

  6. Restart your WampServer.

Thursday, May 21, 2009

Regular Expressions

Phone or Fax 999-999-9999
"\d{3}\-\d{3}\-\d{4}"

Phone or Fax (999) 999-9999
"\(\d{3}\) \d{3}\-\d{4}"

Simple Email
(\w[-._\w]*\w@\w[-._\w]*\w\.\w{2,3})

Email blah@blah.com
"^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$"

Email blah._blah@blah.com
"^(([\w-]+\.)+[\w-]+|([a-zA-Z0-9]{1}|[\w-]{2,}))+@([-0-9a-zA-Z]+[._])+[a-zA-Z]{2,6}$"

Number 965
"\d\"

Friday, February 20, 2009

Windows XP mouse Snap To

Enable the Microsoft Window XP mouse Snap To feature to automatically focus on dialog box buttons. Enabling this feature will automatically move your mouse cursor to the default button on any dialog box that appears on Windows. This is a great way to save a little time and not have to move you mouse cursor to the "Ok" button each time a dialog box appears. To enable this feature follow the below steps.

1. Click Start, Settings, Control Panel.
2. Double-click the Mouse icon
3. In the Mouse Properties window click the Pointer Options tab and check the "Automatically move pointer to the default button in a dialog box" option.

Create desktop shortcuts to your favorite web pages

Easily create Windows desktop shortcuts to your favorite web pages by following the below steps.

1. Open the web page you wish to create a shortcut for.
2. Resize your browser window so it's not maximized.
3. Once in a window mode click the icon to the left of the Internet address in the address bar and drag it to your desktop and let go to create a shortcut.