Friday, July 30, 2010

Invalid query 1: Got a packet bigger than 'max_allowed_packet' bytes

Invalid query 1: Got a packet bigger than 'max_allowed_packet' bytes

If your script generates this error change the following variables:

File: /etc/my.cnf

Restart the mysql daemon after these changes

max_allowed_packet = 16M

Monday, April 12, 2010

Convert any Video format to Xvid with Virtual Dub

Convert any Video format to Xvid with Virtual Dub

Convert a DVD to avi
Backup a DVD
Xvid Encoding
Convert movies to Xvid
Compress a Video File


- Download and install the latest Xvid video codec
- Download and install the latest Virtual Dub

1) Open the video file in Virtual Dub. Enable the Fast Recompress in Video > Fast Recompress. Next, Click Video > Compression.

2) Select the Xvid codec at the bottom.

3) Select profile. Choose Unrestricted or choose a profile that best selects the target device you want to watch the Xvid video.

4) Hit F7 on the keyboard or go to File > Save as AVI and enter a filename.

5) Watch the newly created compressed Xvid Video!

or Batch Convert Videos

1) File > Queue Batch Operation > Batch Wizard
- Drag n Drop the Files into the Batch box
- Choose the destination folder
- Click Add to Queue - Re-Save as AVI

2) File > Job Control > Click Start

Friday, February 12, 2010

Convert: missing an image filename, Command not found

convert: missing an image filename 'image-test.jpg'.

sh: line 1: image-test.jpg: command not found

Running the convert function through system() in a PHP script may result in the following error, "convert: missing an image filename"

The filename has been passed correctly to convert. The error persists.

Why does the error appear?

Line breaks. During the dump process it is possible that extra line breaks were added to the filenames.

Line breaks are invisible. That is why you cannot see the problem in the filename. The problem is not visible.

The solution is to run a trim() on all the filenames. That will instantly clean up and remove all the extra line breaks.

Thursday, February 11, 2010

phpMyAdmin Blank Page and eaccelerator

Blank phpmyadmin

So you've installed a brand new version of phpmyadmin. Running the config tool displays a blank page.

phpmyadmin displays a blank config page. The page is blank. Changing the configs manually will not work.

This issue appears if you have a version of php eaccelerator installed. It appears that certain versions of phpmyadmin will not work correctly with a version eaccelerator.

Disable php eaccelerator.

Heres how:

Open the /etc/php.ini file and edit the following line: