Change remote desktop (RDP) listening port

If you find yourself unable to access your remote PC because a firewall is blocking port 3389, you may want to try one the following options listed below:

First Option

create a NAT route on your firewall, to route all traffic from one port to another. let's say you choose port 80 as your entry port; the firewall should not block this port. 

1. Open port 80 on your router 2. Create the NAT route to port 3389 (see image below) 3. On your RDP client access your remote pc using "youridaddress:80"

Second Option

Use this microsoft tool to change the RDP port from 3389 to something else (run it on the computer you are trying to access remotely).

http://support.microsoft.com/kb/306759

Third Option

Change it Manually in the Registry
“1.Start Registry Editor.
2.Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber3.On the Edit menu, click Modify, and then click Decimal.
4.Type the new port number, and then click OK.
5.Quit Registry Editor.
6.Restart the computer”
Source: http://support.microsoft.com/kb/306759#LetMeFixItMyselfAlways

Meaning of Curly Braces in PHP

What is the meaning of curly braces in PHP?

In PHP curly braces are used to explicitly indicate the end of a string.

for example let’s say you have this:

$computer = ‘computer’;

if i write

echo “There are 10 $computers in the room”;

The parser will tell that it does not recognize $computers.

Notice: Undefined variable …

however the parser will be very happy with the following:

echo "There are 10 {$computer}s in the room";

Reference

http://www.php.net/manual/en/language.types.string.php

Move Firefox Reload or Refresh Button

Firefox is so cool. For weeks I kept whining about why Firefox moved the reload button to the right side of the address bar, but little that i know, i could move it to the left by the “back and forth” navigation where it belongs.

To do the same follow these steps:

First

Right click on your "navigation toolbar" and click on Customize:

Second

Just drag the reload icon/button from one side to the other.