How NOT to ignore a single file in Subversion?

January 4, 2008 by pikemon

svn propset svn:ignore "filename"

You might think that’s what you want to do.

However, you will get something like:

~/www/spacevictory pirkka$ svn propset svn:ignore log/call_graph.html
subversion/clients/cmdline/propset-cmd.c:149: (apr_err=205001)
svn: Explicit target required ('log/call_graph.html' interpreted as prop value)

At which point you realise that you are confused about how svn ignore works.

You will study the relevant section in the svn book and type

svn propedit svn:ignore log

and use a default text editor to add the ignored file name/type to the ignored properties of the directory.

Wasn’t that easy, was it? Is there a shortcut that doesn’t involve an editor?

CakePHP

January 3, 2008 by pikemon

CakePHP is basically Ruby On Rails written in PHP. I chose to implement CakePHP instead of RoR because I didn’t want to shop hosting for such a small client project.

It’s quite functional – my friend with CakePHP experience convinced me to go for 1.2 Beta instead of the stable version because he’s already running it on production sites. Documentation is a bit lacking, but googling can get you to places. Most of the basic tutorials are 1.1 stuff so you will have to know a couple of things to be able to use them with 1.2.

If you want to give CakePHP a spin, here are couple of links:

21 things you must know…
what’s new in 1.2 (check the links in comments also)

port = socket

December 28, 2007 by pikemon

I’m just in the middle of my very first CakePHP implementation. I was trying to figure out how to pass the socket to the CakePHP because I’m running MAMP and the MySQL socket is a somewhat non-standard ‘/Applications/MAMP/tmp/mysql/mysql.sock’.

Turns out that PHP’s mysql_connect function accepts either a socket or a port interchangeably.

So I used this in my CakePHP database configuration file:

‘port’ => ‘/Applications/MAMP/tmp/mysql/mysql.sock’

CakePHP is a Ruby On Rails clone written in PHP. This far it’s promising, but naturally it has PHP in it which I happen to dislike.