09 September 2010

Watch out Java, here comes JavaScript

http://www.infoworld.com/d/developer-world/watch-out-java-here-comes-javascript-799
The benefits of JavaScript as a server-side language are clear and striking. It allows Web application developers to implement their entire code base using a single syntax, reducing the clutter and confusion of typical Web apps. JavaScript's performance is increasing at a breakneck pace, which has built-in benefits for developers. Its event-driven programming model makes building parallel applications easy and logical. And JavaScript itself has matured into a fine language, with features that support both the object-oriented and functional programming styles.

Get Virtual PC to see your localhost on Windows 7

I use Virtual PC to test on IE7 and need it to see the host machine's localhost (IP address). This is disabled by default via the Win 7 firewall. You can re-enable it by following these steps:
  1. On the host machine, open the Control Panel and choose the Windows Firewall.
  2. In the firewall, go to "Allow a program or feature through Windows Firewall."
  3. In the "Allowed programs and features" list, scroll down to "World Wide Web Services (HTTP) and check the box under "Domain."
  4. Click OK
Now go to Start and type cmd into the search box. This will bring up the command window. Type ipconfig and hit enter to see your machine's IP address. Now, back in the Virtual PC's IE window, type the IP address, followed by the path to your app. For example, if you access the app via http://localhost/myapp/mypage.htm, you'd type this in the Virtual PC's IE address: http://000.000.000.000/myapp/mypage.htm (replace the 0's with your IP address).