Support ZendCasts

Published on February 10, 2010 by Andrew Sledge in PHP, Zend Framework

I came across the site ZendCasts a few days ago. Jon Lebensold does a fantastic job of simplifying the set up of Zend Framework with unit testing and Doctrine. I encourage everyone to peruse the site and donate via his PayPal account.

Read the full entry

New Year, New Site

Published on January 13, 2010 by Andrew Sledge in Announcements

You may have noticed that VBS has a new look and feel: this is to give a little more “softness” and usability. In this transition, we also moved away from Drupal for content management to Django. This is not to say that Drupal is not a capable system: it very ...

Read the full entry

Chatbots in Python

Published on January 11, 2010 by Andrew Sledge in Python

Chatbots have always been around, but they have mainly been used by annoying IM-marketers or spammers. Now you, too, can have that annoying chatbot at your disposal.

Read the full entry

Using VIM to Remove SQL Comments

Published on January 6, 2010 by Andrew Sledge in Quick Tips

Cleaning up the comments in a SQL file, specifically after using mysqldump.

:%s/^--[a-zA-Z0-9\`\ \_]*$\n//g

Read the full entry

Using m4 to Quickly Produce SQL

Published on January 5, 2010 by Andrew Sledge in Quick Tips

Using m4 to produce SQL is quick and easy.  m4 is a macro processing language and is available on all *nix platforms. Copy the following, save it to a file called test.m4 and run it as:

$ m4 test.m4 < insertusers.sql

and now in the file test.m4:

divert ...

Read the full entry

Using Zend Studio with Zend Framework and Subversion

Published on December 31, 2009 by Andrew Sledge in PHP, Zend Framework

This tutorial guides you through setting up Zend Studio to work with Zend Framework and using a Subversion server with the IDE. This tutorial will also guide you though setting up a module-based ZF application.

Prerequisites: An installation of Zend Studio and Zend Server installed locally and subversion installed on a server.

This tutorial was written for a Linux box. Windows will be a little different with respect to path names and locations of stuff. There is an expectation that the reader is somewhat familiar with Zend Framework and has gone through the ZF Quickstart Tutorial at http://framework.zend.com/docs/quickstart. A familiarity of version control is also desired.

Read the full entry