Archive for March, 2009

WP > Show DB info in Admin Dashboard

Tuesday, March 31st, 2009

add following lines to dashboard.php

	/* gz show database */
        GLOBAL $table_prefix;
	echo "<p><b>Database:</b> ".DB_USER." with prefix \"".$table_prefix."\" on ".DB_HOST."</p>";

Unix > run command in the background

Monday, March 30th, 2009

nohup is a Unix command that is used to run another command while suppressing the action of the HUP (hangup) signal, enabling the command to keep running after the user who issues the command has logged out. It is most often used to run commands in the
[...more...]

Content Wrapper to avoid wrong clearing

Tuesday, March 10th, 2009

to avoid long empty spaces when clearing a float environment, wrap the content into a div with the following properties:

.wrapper {
position:relative;
overflow: hidden;
}