Stream movies to iPad…

All my movies are stored on my telly-computer, in the front room, and sometimes I just want to watch them in bed on the iPad, or even download them to the iPad for watching while out and about. The proper way to do this is to convert all the movies to a format supported by the iPad such as MP4 and then use iTunes to download them onto the iPad, but that’s not the fun way.

Tada! We now have VLC for iPad! 😀

VLC has been an amazing media player for years, It’ll play nearly any video/music format and it’s now available for iPad (and iPhone) for FREE!

Since the new VLC app lets you download or stream a movie from a web-link, all we need is a web-server running on the computer with the movies, in my case Stevie the TV. That’s normally a hassle but as we don’t need anything fancy we can use a tiny web-server like Boa. Simple and easy.

I’ve got all my movies saved in “/home/user/Videos/Movies” (well technically “~/Videos” is a symbolic link to a mounted 3TiB HDD, but that’s a story for another day) and once we have the Boa web-server up-and-running we can point our VLC app at the video(s) we want to stream or download over the local network.

I’ve made a quick and easy Boa config file to get the job done, but first we need to install Boa. On Linux, in terminal execute:

sudo apt-get install boa

Continue reading “Stream movies to iPad…”

Stream movies to iPad…

PHP preg_match and Regular Expressions…

Regular expressions are a powerful tool for examining and modifying text. Regular expressions themselves, with a general pattern notation almost like a mini programming language, allow you to describe and parse text. They enable you to search for patterns within a string, extracting matches flexibly and precisely. However, you should note that because regular expressions are more powerful, they are also slower than the more basic string functions. You should only use regular expressions if you have a particular need.

This tutorial gives a brief overview of basic regular expression syntax and then considers the functions that PHP provides for working with regular expressions.

PHP supports two different types of regular expressions: POSIX-extended and Perl-Compatible Regular Expressions (PCRE). The PCRE functions are more powerful than the POSIX ones, and faster too, so we will concentrate on them.

Continue reading “PHP preg_match and Regular Expressions…”

PHP preg_match and Regular Expressions…