Software Blogs

PHP Zend Framework REST Server Tutorial under Apache + Linux
Last edited on: 18/10/2010 - 08:06

The Zend Framework lends itself to web services due to the bundled classes which come with the Framework. It is ideal both for consuming services (client) and exposing services (server). With this tutorial we'll put together a working REST server using the Framework. If you haven't completed my earlier tutorial on creating a Zend Framework Hello World, you should read it now since we'll be using it as our starting point.

For those who haven't completed the earlier tutorial, make sure you:

»   Read more
Linux Convert YouTube Flash Video (FLV) to MP3
Last edited on: 16/10/2010 - 18:59

Ever wanted to download music videos from YouTube, then extract the music component from the video and convert to MP3? Well here's how to do it!

Firstly, to download the videos from YouTube, you will need to install the Flashgot extension into your Firefox web browser. This will add a small icon at the bottom right of the browser, and when it detects video (such as when you go to YouTube), you will be able to click on the icon and the video is grabbed and (in my instance) saved to the /tmp directory.

»   Read more
Linux Batch Prepend Header File to Series of Files
Last edited on: 30/09/2010 - 12:38

Have you ever been in a position where you need to prepend a header file to a series of other files? Typically, if you have created a series of program files and needed to add a standard copyright notice at the top of every file in the suite, then this would be the case.

Below is a method of achieving exactly this. We are going to use the UNIX tac command line utility (cat backwards!) to achieve this, and use a shell script for statement to loop though each file in the directory.

The basic syntax will be:

tac program_file prepend_file | tac > new_file

»   Read more
PHP Zend Framework Hello World Tutorial under Apache + Linux
Last edited on: 15/08/2010 - 13:49

The following tutorial shows the steps involved in creating a simple Hello World example for the free PHP Zend Framework using Apache server on a Linux openSUSE platform. I am assuming here you are familiar with the concept of the Model-View-Controller (MVC) - if not, click on the link and do some mugging up on Wikipedia.

»   Read more
Linux Directory Batch .jpg Image Resizing and Watermarking
Last edited on: 08/08/2010 - 15:22

These days whenever I take digital pictures I always make sure the image quality and image size settings are set to maximum. It makes sense since hard disk storage is cheap, and processors have the power to crunch large files under Photoshop or Gimp.

However, the problems arrive when I want to upload the images to Photobucket for my friends to access. The saved images are usually above 6MB which is a ridiculous size to attempt to upload to these free image hosting services.

»   Read more
DAViCal Dollar Token Database Write Problem
Last edited on: 20/07/2010 - 11:01

During the testing of my public DAViCal server I noticed a very strange phenomenon. This phenomenon wasn't present in my localhost system which had passed all my testing. Any rate, when I attempted to PUT a calendar .ics file into the PostgreSQL database, the caldav_data table / caldav_data column was being mangled.

This was occurring for all of my calendar files, so at least the error was consistent. My calendar files SHOULD look like (snipped for brevity):

CALSCALE:GREGORIAN
METHOD:PUBLISH
PRODID:Data::ICal 0.15
VERSION:2.0
X-WR-CALNAME:Barrow
BEGIN:VEVENT

»   Read more
openSUSE 11.2 DAViCal Installation
Last edited on: 20/07/2010 - 10:29

There are quite a few choices when it comes to running your own open source Caldav server, including heavyweight groupware solutions such as Scalix and Zimbra, and more dedicated caldav only servers such as DAViCal and Chandler. One of my users was having a problem connecting my jCaldav client to a DAVical server, so I decided to install DAViCal and try it out enabling me to (a) debug my jCaldav client, and (b) offer a hosted caldav server to the community for my sports fixtures.

»   Read more
openSUSE 11.2 DAViCal Upgrade
Last edited on: 20/07/2010 - 10:28

In my earlier tutorial, http://www.badzilla.co.uk/openSUSE-11-2-DAViCal-Installation, I demonstrated how to get a DAViCal server working on my openSUSE laptop. I used the most up-to-date version at the time, version 0.9.8.4, which regrettably had a broken public.php resulting in the diagnostic

Fatal error: Call to undefined function qpg() in /home/f27badz/public_html/caldav/inc/CalDAVRequest.php on line 272

»   Read more
Migration of localhost DAViCal server to Hosted cPanel Solution
Last edited on: 20/07/2010 - 10:28

In my earlier tutorial openSUSE 11.2 DAViCal Installation I went through the steps to install a DAViCal server on a local box. I now want to migrate this installation on to my hosted Badzilla website under the path http://caldav.badzilla.co.uk

This tutorial is to a large extent contingent upon your hosts.

»   Read more
Drupal 6 SMS Framework: Esendex PHP5 SOAP Gateway
Last edited on: 10/05/2010 - 14:50

Drupal 6 SMS Framework enables the sending of SMS from a Drupal 6 website, through a suitable bureau service. The 'glue' between the SMS Framework module and the chosen SMS bureau is called a 'gateway'. Each bureau needs the development of a dedicated gateway, and currently there are few available. In reality, the only gateways for Drupal 6 are Clickatell and a generic email facility.

»   Read more
Syndicate content