Monday, February 11, 2013

How to get google page rank?

Answer: You can use the php here -
http://code.google.com/p/seostats/

Source:
http://stackoverflow.com/questions/1344917/getting-google-pagerank-via-an-api-php

How to put counter in NUS SOC

To put counter on index.htm
1. pagecount -h www.comp.nus.edu.sg index.htm
2. Put

<!--#include virtual="/cgi-bin/pagecount"-->
on the webpage

How to not display on the counter
1. pagecount -h www.comp.nus.edu.sg -m /dev/null index.htm
2. Put 

<!--#include virtual="/cgi-bin/pagecount"-->

3. Use http://www.comp.nus.edu.sg/cgi-bin/pagecount?/~tianhuat/index.htm to view the webpage

What is the fastest way to delete folders and files on windows

Answer:

Fastest: 
The best I've found is a two line batch file with a first pass to delete files and outputs to nul to avoid the overhead of writing to screen for every singe file. A second pass then cleans up the remaining directory structure:
del /f/s/q foldername > nul
rmdir /s/q foldername
2nd: use rmdir /s/q foldername from the command line. del /f/s/q foldername is good too, but it leaves behind the directory structure.

3rd: shift+delete with Windows Explorer: it wastes loads of time checking the contents before starting deleting anything.

Slowest: Send to Recycle Bin, as you still need to delete them

Source:
http://stackoverflow.com/questions/186737/whats-the-fastest-way-to-delete-a-large-folder-in-windows/6208144#6208144