- accept the file download request in a particular format – for ex : www.xyz.com/download.php?src=filename.ext
- verifies the presence of the file
- serves the file for download
- log the details – client’s IP and the file downloaded – into a file
6 Feb
how to write a download counter of your own in PHP
3 Feb
how to enable confirm exit on chrome
The biggest feature lacking in chrome (as of today 03 February 2010) is “Confirm on Exit” prompt. Countless times I have cursed chrome when I accidentally end up closing chrome rather than a tab.
Solution / Relief
Confirm Close Chrome Plugin
A life saver from Pauvan (blog)
Cheers man!
Imp Update : The plugin seems to be a little shaky – Its not working in my 4.0.249.78 version of Chrome (Windows)
29 Jan
how to get CPU load as a percentage
Googling is an addiction – but it is distressing if you can’t find a result with the first 10 minutes of search. I searched for an hour to locate this guy.
Requirement : To plot/record CPU load summary as a percentage values as is reported by Task Manager (in windows) or System Monitor (in Linux)
Solution : Use “sar“
Usage :
$ sar – u 1
Install :
$ apt-get install atsar
29 Jan
There is no more “sun”
29 Jan
how to print tabular data using bash
Looking to print tabular data?
Rows and rows of data in a neat-formatted table-like pattern in BASH?
“echo” botching up tabular data display?
Look no further than “printf” command in BASH
printf: usage: printf [-v var] format [arguments]
example :
$ printf “%20s %40s\n” “data 01″ “data 02″




