-
Archives
- January 2012
- December 2011
- September 2011
- August 2011
- June 2011
- January 2011
- December 2010
- November 2010
- October 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- January 2009
- November 2008
- September 2008
- August 2008
- July 2008
- March 2008
- February 2008
- January 2008
-
Meta
Monthly Archives: August 2010
mod_deflate for faster page load
Just make sure that the Header module is loaded LoadModule headers_module /path/mod_headers.so <IfModule mod_deflate.c> # Insert filter SetOutputFilter DEFLATE # The value must between 1 (less compression) and 9 (more compression). DeflateCompressionLevel 9 # Netscape 4.x has some problems… BrowserMatch … Continue reading
Synchronize time in Linux
This procedure needs root access. $ sudo ntpdate pool.ntp.org
Prohibit execution of PHP scripts inside include directory
Create a PHP file /** * prepend_goto_index.php */ header(‘Location: http://’ . $_SERVER['HTTP_HOST']); Inside the include directory, create .htaccess file php_value auto_prepend_file prepend_goto_index.php
Disable PHP in directory
In .htaccess php_flag engine off
Ignore whitespace in a Subversion diff
$ svn diff –diff-cmd diff -x -uw /path/to/file Solution copied from Ignore whitespace in a Subversion diff
selective mysqldump
$ mysqldump -uroot -p DB TBL –where=”COL_ID=3″ | grep INSERT