Posted on January 10th, 2008 by linux
Here is an example of Zenity progress pulsate bar dialog. Depending on your desktop manager your output may be different:
yes | zenity –progress –width 350 –pulsate –text “Testing Zenity Progress Bar” –title “Zenity Pulsate Progress Bar”
Filed under: GNOME, Linux | No Comments »
Posted on January 7th, 2008 by linux
To create permanent redirect with php is very easy task. All what needs to be done is the create file index.php in your root directory of the site which you want to redirect from with following content:
<?
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.yoursitetoredirect.com” );
?>
Here you can test your php 301 Moved Permanently redirect.
Filed under: Programming | No Comments »
Posted on January 4th, 2008 by linux
Some Linux tools does not properly work with files which include spaces in their names. This simple bash for loop will remove white space from file names and rename/move for all files in the given directory.
First enter directory with cd:
cd /my/directory
and then run:
for f in *; do mv “$f” `echo $f | tr ‘ ‘ [...]
Filed under: Administration, Linux | 1 Comment »