Life on Rails » Technological travels in Flex, Air, RIA and life in general
Imagine a beautiful autumn park, and a bald ginger man reading books and playing guitar, and doing other stuff

subversion and apache problem

My relationship with subversion has been akin to someone who drinks white lightening for several years who then, slowly, but surely sobers up, gets a life

The white lightening (super strong, semi-fuel, part of the staple diet of any leet alcoholic) was visual sourcesafe 4, 5 and 6, so I wasn’t grokking svn at all. That’s all good now though, because as a result of switching to mac, and then using darwin ports anr rails, I fell in love with subversion, and (despite some peolple worries about Berkley db) have now happily integrated it into most areas of my (techno) life

However, setting it up on windows with apache can be a bitch!

It was driving me truly mad, truly truly mad.

It kept crashing, and making apache fall over.

Turns out there are a couple of issues: 1. You have to use the correct version of subversion for your apache server (I wasn’t), and 2. it turns out that the mod_dav_svn.so module you load in your apache config, should be in the bin directory of your apache install – I found this after searching everywhere on the net for more info

autorun batch files, and command

I switch from mac to windows a lot. As such, I often find myself typing ls, instead of dir in a windows command shell (we’ll get onto the copy paste issue another time) and it gets really really annoying.

However, you can set up aliases in windows, much the same as you would on os x/ix systems:

doskey ls=dir $

This creates an alias of ls, equivalent to dir

You can set up other commands too, but of course, you want to run them each time you open a new command window. Do the following:

  • Create a batch file with the commands you want to run each time you start a command window
  • Save file in a sensible location
  • Change the following registry key to point to your file:
    HKEY_LOCAL_MACHINE\SOFTWARE\MICROSFOT\COMMAND PROCESSOR\AutoRun

Now that bactch file will run everytime.

Word of warning!! Don’t use cd to change dir in the autorun, as it will stop all manner of scripts, which launch their own command processes (such as rails script/server) from working correctly.