Watch this :

You need a basic LAMP stack and “mp3info” – should be available in your repo’s.

This is totally open – if anyone wants to help out with development leave a comment or send me a message.

The goal is to stream remote media over the web with an intuitive web interface.

Installation :

apt-get install mp3info

cd /var/www

wget https://downloads.sourceforge.net/project/cimediaplayer/Media.tar.gz?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fcimediaplayer%2Ffiles%2F&ts=1282412797&mirror=master

tar -zxvf Media.tar.gz

Add an Apache virtual host.

create a database : mysqladmin -u root -p create media

edit application/config/database.php using your database creds.

That should be about it – I know these instructions are lazy but it is Saturday… Leave comments if you need help.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

So it is time to check out Zend Framework seeing how powerful everyone says it is. Setup is a bit annoying in comparison to other “funner” frameworks so I am going to document my findings as I learn. Here’s a guide to getting ZF working on your *nix dev box.

Setting up your environment

Using a SSH client such as Putty – connect to your web server and create a directory in your users home named “bin”

$ cd ~
$ mkdir bin
$ cd bin

Next we need to download a stable copy of Zend Framework via subversion using the following command :

$ svn checkout http://framework.zend.com/svn/framework/standard/branches/release-1.10/

If svn (Subversion) is not installed you can download via wget using the following command :

$ wget http://framework.zend.com/releases/ZendFramework-1.10.3/ZendFramework-1.10.3-minimal.tar.gz

Next we need to untar (decompress) the framework :

$ tar -zxvf ZendFramework-1.10.3-minimal.tar.gz

Rename the decompressed folder :

$ mv ZendFramework-1.10.3-minimal Zend

** Note if you used subversion to acquire Zend Framework – you probably have downloaded the release directory – use the command above replacing the first argument with the release directory name.

Move the scripts from the Zend/bin directory into the ~/bin directory; make them executable; rename zf.sh to just zf (for simplicity) :

$ mv Zend/bin/* .
$ chmod +x zf.sh
$ mv zf.sh zf

The next step is to add the zf script to the users include path, this allows us to use the zf command without having to specify the absolute path. Copy and paste the next 6 lines into your shell :

cat << EOF >> ~/.bashrc
if [ -d ~/bin ] ; then
PATH=~/bin:"\${PATH}"
fi
export PATH
EOF

You must now log out and back in to activate this path. Once you are logged back in you can test the zf command by typing :

$ zf show version

If you see “Zend Framework Version: 1.10.3″ you are ready to start your first project.

Creating your first project

Change to your web server document root, assuming you are using a Debian based server you can find it usually in /var/www (RHEL generally defaults to /var/www/html) :

$ cd /var/www

Create a project using the following command :

$ zf create project <project_name>

Where <project_name> is the name of your project in lowercase alpha numeric form (no symbols, spaces, uppercase letters (hyphens and underscores are OK))

Link your Zend library to your projects library directory as such :

$ ln -s ~/bin/Zend /var/www/project_name/library

Where /var/www is your web server document root and project_name is the name of your project.

If all went well – point your browser to your web server hostname or IP / your project name / public ( http://example.com/project_name/public ).

That is all for now – we’ll get into the actually writing some code next time. Leave me some comments below!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

This little application will save you big time when you run out of hard drive space and begin backing up your movie collection to DVD.  Take a look at the video and download the application here.  Installation instructions can be found here.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

I have been busy integrating Asterisk into NimbleBilling – take a look see and let me know what you think!

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace

It gets very repetitive writing forms for clients – that’s why I decided to take the last hour to write this piece of fine code.

It takes whatever title you give a form object and creates a copy / paste dump for your view, controller and Javascript.  It doesn’t handle checkboxes or select boxes – but that is because I find the form is not the time killer; it’s the Javascript and validation.  The nice part is that most of the heavy lifting is done for you – plus you do not have to worry about spelling mistakes or silly syntax stuff because it is all duped in the script.

I’d like to pop this up on a subdomain after making it pretty – please comment if you think you will find this little app useful.

PS. During the recording I noticed a small error in the code – no need to comment, it is fixed now.  The json_encoded array was returning a value that would not display in the error fields due to a mismatch in the name.

UPDATE : Check Out the Application Here!

I have fully tested the generated code and it works great, here’s a video demonstrating how to use “FormTorch”.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • YahooMyWeb
  • Google Bookmarks
  • Yahoo! Buzz
  • TwitThis
  • Live
  • LinkedIn
  • Pownce
  • MySpace