Monthly Archives: June 2008

Convert DAA disk images to ISO on Mac osX

DAA Converter icon

 DAA Converter for OS X
 Access DAA disk images on your Mac

Direct Access Archive (DAA) is a disk image format that’s currently unsupported on OS X.
DAA Converter is a free utility which allows you to access the contents of a DAA image file by converting it to ISO disk image format; The converted ISO disk image can be mounted as a readable volume on your Mac by double-clicking it.

DAA Converter is a native OS X GUI application which wraps the command-line tool, daa2iso, by Luigi Auriemma.
It runs on OS X 10.3 Panther or later, and does not currently support password-protected DAA files.


 DAA Converter v1.0

DAA Converter is free software, distributed under the GNU General Public License (GPL).
DAA Converter’s source code.

Installing a Subversion (SVN) server on Mac OS X

I use my Mac OS X laptop (a MacBook Pro) almost exclusively these days, often working in a library or coffee shop, but I still want the power of a version control system with me. I finally decided to install a Subversion (SVN) server on my MacBook, and it was surprisingly easy. (I say “surprisingly” because the few links I’ve found online led me to believe it would be much harder to install SVN on Mac OS X.)

Rather than write a full-blown SVN installation tutorial or SVN installation manual, I’m just going to put my notes out here. Hopefully they’ll be sufficient to help you get Subversion/SVN installed on your Mac as well.

  1. Open a Terminal, and run
    fink install svn

    . (The SVN package is the SVN server.) Supply the password when prompted.

  2. This installs

    , and nine other supporting packages. There’s more fink svn information here

  3. That’s all you need to do to get the server installed on your system. You still have to configure it and start it up, but before doing that I downloaded the SVN command line client.
  4. Type
    fink install svn-client

    to install the SVN client.

  5. Type
    fink install svn-doc

    to install the documentation.

  6. I want to create a repository out of my home directory (to make it easier for backups), so I created it like this:
    svnadmin create /Users/al/svnrepo
  7. I edited the

    file to change a few lines. If you want to use SVN without user accounts this isn’t 100% needed, but I do want to have my name on all those check-ins, so I made a few changes. See the “svnserve.conf configuration file” section later on this page for details.

  8. I also edited the

    file at this time. This is also discussed below.

  9. Technically I started

    at this time, but quickly ran into a permission problem on my first check-in. Reading the docs it looks like the repo needs to be owned by the “www” user (as that’s the owner of the


    process), so I ran this command from the directory just above my repo:

    find svnrepo -exec chown www.www {} \;

    . That gave me a warning/deprecated message, but still changed all the repo files to be owned by the “www” owner and group. (Break this into two separate commands if you need to.)

  10. I started the SVN server like this:
    sudo -u www /sw/bin/svnserve -d -r /Users/al/svnrepo
  11. I haven’t looked back since. 😉

svnserve.conf configuration file

With Subversion you have a configuration file named


. Here’s what my


configuration file looks like, with my comments still included:

### These options control access to the repository for unauthenticated
### and authenticated users.  Valid values are "write", "read",
### and "none".  The sample settings below are the defaults.
anon-access = read
auth-access = write

### The password-db option controls the location of the password
### database file.  Unless you specify a path starting with a /,
### the file's location is relative to the conf directory.
### Uncomment the line below to use the default password file.
password-db = passwd

### This option specifies the authentication realm of the repository.
### If two repositories have the same authentication realm, they should
### have the same password database, and vice versa.  The default realm
### is repository's uuid.
realm = Laptop Realm

Here’s what my


file looks like:

al = al

So if you want to bust into the SVN server on my MacBook Pro that should make it pretty easy. 🙂

The end

That was all I had to do to install a Subversion server on my Mac. After this I started using normal SVN commands and everything worked as advertised.

As mentioned, from my research it sounded like it was going to be hard to get an SVN server running on my Mac, but I didn’t have any real problems, other than I’d never installed an SVN server before, so this was my first time. I’m sure I’ll learn more as I go on, but hopefully that will help you get started using SVN on your Mac as well.


Here’s a little more help … it’s the output from one of the commands I ran early on:

Type 'fink describe svn' to get usage help.

Type 'svnserve --help', 'man svnserve', 'svnadmin help', or 'man svnadmin'
for usage.
Some tools (e.g. hook and back-up scripts) and examples are stored in
/sw/share/svn/tools and /sw/share/svn/contrib
You can start the Subversion server manually using a command similar to
'/usr/bin/sudo -u www /sw/bin/svnserve -d -r /sw/var/svn' or you can
run 'daemonic enable svnserve' as root to create a StartupItem for it.
'svnserve' is run as user 'www' in order that apache and svnserve can
access the same repositories at the same time under '/sw/var/svn'
You could install the repositories under the preconfigured directory
which should have the correct permissions. Make sure that all files
in the new repository have the correct permissions for svnserve (and apache)
to read and write. E.g. run 'chown -R www /sw/var/svn/yourrepos' and
'chmod -R go-rwx /sw/var/svn/yourrepos'.

I didn’t know you could run


like that; learn something new every day. I didn’t run the


command, and haven’t had any problems, but I’ll do that next. It makes the ownership for “group” and “other” on all files to be “rwx”, or 777.

how to enable mod_rewrite in apache2.2 (debian/ubuntu)

Here i am going to describe how to enable mod_rewrite in apache2.2 -specaily for debian.

In default installion of apache2.2 on debian never enable mod_rewrite default. So you may need to enable .

First install the apache2.2 with this command :
debian user please use

Completion of IBM Java Programming Diploma

I have got my certification of completion of Java Programming Diploma last week.

The most usefull thing i got from this course is the stong concept of OOP in java which helped me a lot in PHP especially after working with PHP5 which is diversed to the OOP conecpt. and also using Zend Framework.

i would like to thank the one who encouraged me to take it. ; i am satisfied with it and it was something i must have taken.

i have written some Java tutorials here, i will right more when i am done with the couple of projects i am taking care of now.

Architectural principles

  1. Each project must have a clear customer and deliver a real benefit.
  2. Don’t Repeat Yourself (DRY). Life is too short to spend your time re-inventing things.
  3. Be as simple as possible. Just do what we need to do now.
  4. Be as open as possible. Assume that all services can be accessed from outside the BBC, by default.
  5. Start simple, then iterate. Build the smallest thing you could possibly need, deploy it, then build applications on top of it. Think building blocks, not monoliths.
  6. Don’t optimise prematurely. The service might not grow the way we think it will.
  7. Build to scale. Think stateless, think content delivery networks, think database resilience.
  8. Test often. So you know when you need to optimise. So you can maintain your code. So you can maintain your platform.
  9. Evolve. Teams, systems, support structures. The platform. These principles!
  10. Let it die. Be prepared to turn your system off, or change it unrecognisably.

The Seven ‘Lies’ Of Success

1. Everything happens for a reason and a purpose, and it serves us
2. There is no such thing as failure. There are only results
3. Whatever happens, take responsibility
4. It’s not necessary to understand everything to be able to use everything
5. People are your greatest resource
6. Work is play
7. There is no abiding success without commitment

Quoted from Unlimited Power for Tony Robinson.

The future is PHP

With PHP continuing to gain massive support from programmers looking to expand their programming horizon, new versions of the language are likely to be geared towards solidifying its position as opposed to revolutionising.

The job market is telling nothing but good news

When Perl 6 was being designed, many huge changes were brought that alienated a lot of developers – hopefully PHP will not go the same way.In the meantime, be happy that you have chosen such a popular language that is advancing so quickly – PHP is here to stay, and things are only going to get better.The simplicity of scripting language PHP means it will be more popular than Java for building Web-based applications, Internet browser pioneer Marc Andreessen predicted in a speech in Burlingame, California, at the Zend/PHP Conference.