Apr 17, 2012

How to redirect to different URL

From StackOverFlow

jQuery is not necessary, and window.location.replace(...) will best simulate an HTTP redirect.

It is better than using window.location.href =, because replace() does not put the originating page in the session history, meaning the user won't get stuck in a never-ending back-button fiasco. If you want to simulate someone clicking on a link, use location.href. If you want to simulate an HTTP redirect, use location.replace.

For example:

// similar behavior as an HTTP redirect

// similar behavior as clicking on a link
window.location.href = "http://stackoverflow.com";

Apr 13, 2012

“GodMode” folder on Windows

Create a folder named :


Double click it – you’ll see all the tasks in Control Panel !!! Quite neat.

Apr 9, 2012

To find out how long the system has been running

For Windows:

  • go to Command (Windows  + R, type “cmd”)
  • type: net statistics server


For Linux/Mac:

  • In Terminal, type : uptime
  • The result would be like this
    $ uptime [RET]
    3:34pm up 4:31, 4 users, load average: 0.01, 0.05, 0.07