Author Archives: wrostek

Ubuntu Linux 100% digital audio ( pulseaudio AC3 passthrough with a52 encoding )

For a long time, my Ubuntu machine could only play AC3 passthrough sound or Desktop sounds separately. If I was watching a DVD, and accidentally made a desktop sound effect the DVD AC3 audio would stop, and the desktop sound …

Leave a comment

Poster Grabber via PERL and IMDB

OK, so you are sitting at home, looking at your collection of legally obtained movie trailers. But what is missing? The cover art! wouldn’t it be great to have the poster image of each trailer stored with it? Yes! Luckily, …

1 Comment

Shell Script for recursive video transcoding

So here is the situation, you have a folder of videos in MKV format that you need demuxed and converted to avi’s using xvid codec and AC3 sound. How to do this? First step would be to run mkvextract to …

Leave a comment

Very simple Captcha function for forms

There are tonnes of bot scripts floating around the web these days, causing form hell for website administrators who have to sort through the spam hell. One solution to the problem is the use of Captcha codes on web forms. …

Leave a comment

Simulated CSV File Download in PHP

One of the most often requested features in websites dealing with accumulating data is a method of exporting it.  CSV format is an excellent choice for most situations, since it is extremely easy to generate, and Microsoft XL is so …

Leave a comment

Using Templates with PHP

Using templates in PHP can make complex tasks easier.  The template is the basic layout of your document. It contains placeholders for snippets of data that can be swapped into the template.  Here is some code to generate a sample …

Leave a comment