Wordpress Theme Deals
BS Wordpress Search
Categories

Archive for the ‘Wordpress Howto’s’ Category

PostHeaderIcon Welcome To BS WordPress Templates and WordPress Plugins

Welcome to your number one place on the net to get WordPress Templates and WordPress Plugins.

Are you Tired of finding Templates and Plugins with one-way back links automatically included in them.  So are we, so we have decided to build this site and offer Free WordPress Templates and Free WordPress Plugins with out the links.   We understand that the persons who makes and develop those plug-ins and templates would love to see something in return, but forcing you have a link is the old way.

You should be giving a choice to Share a link!!

Any Template you get from this site, will either be 100% Free or you will be given an option to put a link on your site back to us, we will not force you too.

Enjoy

BS

PostHeaderIcon Generating Thumbnail Images from FLV with ffmpeg

This has been the easiest way for me to create thumbnails from flv files with ffmpeg in a php envirnment

$ffmpegpath = "/usr/bin/ffmpeg";

	function make_jpg($input, $output, $fromdurasec="01") {
		global $ffmpegpath;
		if(!file_exists($input)) return false;

		$command = "$ffmpegpath -i $input -an -ss 00:00:
                        $fromdurasec -r 1 -vframes 1 -f mjpeg -y $output";

		@exec( $command, $ret );
		if(!file_exists($output)) return false;
		if(filesize($output)==0) return false;
		return true;
	}

Then use

#extract frame at 00:00:01 as jpeg
make_jpg("/test.flv", "/test.jpg", "01");

PostHeaderIcon How to Run a Cron Job every 6 Hours

As a system admin you will run into times when you create a script that you want to run every so often and the best way to achive this is to set up a cron job.  A cron job is run the system and once you create the cron job, it will run until you remove it.

Today I needed a cron job to run every 6 hours to flush the mysql servers cache.

To achive this you can create a script like

#!/bin/bash
mysql -u root -pyour_root_password -e "flush query cache";

Then put that into the cron to run every so often, my case 6 hours

0 */6 * * * /location-to-script/script.sh

or you can just create a cron job like

0 */6 * * * mysql -u root -pyour_root_password -e "flush query cache";

PostHeaderIcon RENT10 – Voicemails + RENT



I love this concert Available for trade at jrbplease.wordpress.com

PostHeaderIcon Climategate : Prof Watson on Climate Science



Chief Scientist at the Department for the Environment, Professor Robert Watson on the science of climate change, and whether the case for man-made global warming is now unravelling after months of damaging revelations. See more: www.climategate2009.wordpress.com