Monday, February 11, 2013

How to get google page rank?

Answer: You can use the php here -


How to put counter in NUS SOC

To put counter on index.htm
1. pagecount -h index.htm
2. Put

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

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

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

3. Use to view the webpage

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


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