This is the web log of Tim Bennett, web designer. He also runs Texelate, offering the best web design Leeds, Yorkshire has to offer

Tim Bennett's Blog

How to convert WMV to FLV on a Mac without installing extra software

November 5th, 2009

I’m on Flash CS4 and it seems on a Mac (probably due to a licensing problem) the media encoder won’t accept .wmv. There is extra software you can buy to do a direct convert but there is a free way you can do it with the software that comes on your Mac.

It requires that you have a version of OS X with iMovie HD (I’m on Leopard and it works fine).

Simply start a new project in iMovie, import your .wmv and then go to Share > Share…

Choose Quicktime and then Expert Settings then Share. Now you are essentially converting the file to a .mov which the Flash Media Encoder has no problem with. If you choose Options… and then Settings under video you can choose the setting for the export.

Once you have your .mov file simply encode as normal.

SQL to delete all post revisions in WordPress

April 16th, 2009

If you want to trim down your WordPress database here’s a MySQL query you can use to do so.

DELETE FROM wp_posts WHERE post_type = ‘revision’

If it doesn’t work, check your table name.

Crackling sounds with Compiz and Ubuntu

April 16th, 2009

I don’t think I’ve ever had a smooth Ubuntu upgrade – and upgrading from Gutsy to Hardy was no exception. I found that when Compiz was running and I was playing music in VLC, especially with visualisations on,  the sound popped and cracked. I’m no Linux expert but I found that if you force the system and VLC to use ALSA (mine was defaulting to Pulse Audio) it fixes it.

To set the OS to ALSA go to System > Preferences > Sound. In the first four dropdowns choose ALSA.

screenshot-sound-preferences

Then open VLC and go to Settings > Preferences and check the Advanced Options box. Expand the Audio section on the left and choose Output modules and then choose ALSA audio output.

And now the sounds works perfectly again.

Real time alerts when people visit your site with PHP

April 1st, 2009

I thought I’d post this code I use on some of my sites. Basically when someone finds your site from another site it emails you and tells you where they came from. I know stats software is much more powerful but this is quite nice as it’s in real time.

if( !empty( $_SERVER[ "HTTP_REFERER" ] ) && substr_count( $_SERVER[ "HTTP_REFERER" ], “www.yourdomain” ) == 0 ) {

    $subject = “Someone has found YOUR WEBSITE NAME HERE”;

    $m = $_SERVER[ "HTTP_REFERER" ] . “\n” . $_SERVER[ "REQUEST_URI" ] . “\n”;

    $m .= “\n\nMessage sent on ” . date( “H:i:s, d/m/Y” );

    $headers = “From: Your website name <contact@yourdomain.com> Reply-To: Your website name <contact@yourdomain.com>n”;

    $to = “youremail@yourdomain.com”;

    mail( $to, $subject, $m, $headers );

}

Although I’ve spent a lot of time reading the mails during the working day it gives you a good idea of how and when people find your site.

Web design Leeds

March 19th, 2009

I’ve just done a bit of SEO and here are some shameless links to get them indexed by the search engines.

 

http://twitter.com/WebDesign_Leeds

http://www.myspace.com/web_design_leeds

http://webdesigninleeds.wordpress.com/

http://webdesigninleeds.blogspot.com/

http://delicious.com/leedswebdesign

http://www.squidoo.com/Web-design-in-Leeds

 

It’s not like the site isn’t plastered with adverts for my web design company in Leeds but that’s basically what I’m plugging with this post and all these other social networking links.

So if you need any of the following services:

  1. Web design
  2. Web development
  3. Web updates
  4. Web outsourcing
  5. eCommerce
  6. Content management systems
  7. Internet marketing
  8. Online media and games

Then give my site a visit and get a free quote. I promise you it is quick and very easy.

Do you need a website or web-related service?
I run an award-winning web design studio.