Monday, October 29, 2007

Subversion with Apache on Leopard - Extremely simple

Leopard has subversion (client/server) already installed!!

I had a subversion server running on Tiger and I wanted to do a clean install of Leopard so, I used the file to backup things.

After installing Leopard, my subversion server was my first priority. To my surprise, it was extremely simple.

1. Subversion is included.
2. Move my svn backup back onto the local disk. 
3. chmod -R www:www the directory.
4. edit /etc/apache2/httpd.conf adding a line withLoadModule dav_svn_module libexec/apache2/
5. add a svnlocation.conf file under /etc/apache2/other dir. something like ...
     DAV svn
     SVNPath /usr/local/svn
6. System Preferences/Sharing/Web Sharing - checked
7. Safari -> http://localhost/svn
8. Smile :) 

Labels: ,

Wednesday, May 10, 2006


For any one who cares, this blog has moved to...

Sunday, December 18, 2005

Symfony - Testing made easy

While working on a new project using symfony, I began to setup my test environment. Symfony makes this extremely easy as it has a built in mechanism to run tests that will validate your routing among other things. The one thing that the built in symfony testing currently doesn't do , is allow for testing of form submissions.

No worries though, the symfony test suite allows you to build tests extending SimpleTest's WebTestCase which, has support for form submissions. I needed this functionality and while I could have easily used Selenium, I like being able to run all of my tests using one simple command `symfony test This was extremely useful in testing my authentication routines to make sure that a valid user could login and logout.

Key to any test is test data. Symfony also provides an great way to define test data with data fixtures (note: this can also be used to initialize a new install with necessary default data). You can then specify a batch script in the `batch/` directory and simply run it from the command line.

I wanted to make sure that I used controlled data for my tests, so I set up a separate test database and configured symfony to use this database for my tests. I didn't want to have to create a new load script to load this data for my different databases so, I simply added the ability to specify a command line argument to set what database to populate. Now the environment can be specified like so `php load_data.php test`.


$env ='dev';

if( isset($argv[1]))
$env= $argv[1];

echo "Loading data into $env data base \n";

define('SF_ROOT_DIR', realpath(dirname(__FILE__).'/..'));
define('SF_APP', 'blogs');
define('SF_ENVIRONMENT', $env);
define('SF_DEBUG', true);


$data = new sfPropelData();


Now, thanks to symfony and simpletest, I can run my Unit and Functional tests from a single command which I think is extremely convenient.

technorati tags: ,

Thursday, December 01, 2005

Symfony's tutorial begins

symfony PHP5 framework symfony advent calendar day one: starting up a project

Day one is out!

technorati tags: ,

Wednesday, November 30, 2005

Symfony's answer...

What does your framework say about you?

I believe a quote from someone else best answers this question...

"Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something."
Robert Heinlein

technorati tags: ,

Developer for Symfony

I was very happy to learn today that I have been included as a developer for the symfony framework. I was originally just doing some documentation but I began to get invested in the framework and started sending in some patches.

Tomorrow is the big day for the Month long tutorial at I think it is a great idea and it will be a great way to bring new users up to speed quickly.

I have spent the last few months in Java land and symfony has rejuvenated my interest in Php.

technorati tags: , ,

Monday, November 28, 2005

Symfony - Month long tutorial

The Symfony project will be releasing a tutorial that will build a real world application to be released with an open source license upon completion.

While the details of what the application will be have not been released, it will include AJAX functionality, along with social aspects including tagging.

Each day between Dec 1st and Christmas, a daily tutorial will be released describing the development process of the application. This is to help fast track developers with the symfony framework while producing an application that can be used as a proof of concept for server load and scalability.

Check out Askeet! on Dec 1st!

technorati tags: , ,

Tuesday, November 15, 2005

Now Zend wants to play

Zend PHP Framework - (zênd p-h-p frãme'wûrk) * A Web application framework which standardizes the way PHP applications are built. The Zend PHP Framework accelerates and improves the development and deployment of mission-critical PHP Web applications. * Extreme Simplicity

PHP Collaboration Project

I remember at last years ApacheCon in Vegas, I spoke with a Zend
representative after he gave a talk on PHP5 features, I asked if Zend
would be developing a web framework for PHP. The response I received
was along the lines of "No. Why would we? We help to develop the
language. Frameworks, if needed, will be provided by others."

I guess they changed their mind.

Technorati Tags: ,