satishgaudo.com

Understanding technology

Archive for January, 2010

Linux commands

sed -i ’s/abc/xyz/g’ *.php This command is used for mass replacemet using regular expression. In the above command “abc” is replace with “xyz” from all the files extension “php”. find /var/www/html/sch_admin/ -mtime -1 This command is used to list all the files within the specified folder,say “var/www/html/sch_admin/”, which have been created or modified within the period specified,say “-1″ which [...]

30 January 2010 at 12:22 - Comments

Export the query result in a temporary file

select video_file from videos INTO OUTFILE ‘/tmp/video1.txt’; Query Above exports all the rows for coulmn video_file into a text file “/tmp/video1.txt” .

20 January 2010 at 14:16 - Comments

100-year old building collapses at dockyard road – Mumbai,India

The evacuation of the 75 families who used to stay in the building was done in time otherwise there would have been many casualties. The five storied Reay building opposite the Dockyard railway station in Mumbai was more than 100 years old and notice had already been given for its evacuation. Residents picking their belongings from the debris

13 January 2010 at 17:33 - Comments

HTTP: Persistent connections

In HTTP/0.9 and 1.0, the connection is closed after a single request/response pair. In HTTP/1.1 a keep-alive-mechanism was introduced, where a connection could be reused for more than one request. Such persistent connections reduce lag perceptibly, because the client does not need to re-negotiate the TCP connection after the first request has been sent. Version 1.1 of [...]

8 January 2010 at 16:38 - Comments