Friday 1 August 2008

Subversion reported an error while creating a repository! Part 2

Its been a while since I my last post where I got very annoyed with a bug in TortoiseSVN which prevented me from creating a local repository. If you try to create a local repository using the svn context menu then it will show an uninformative error message.

Since then I have figured out how to create a repository using the command line subversion tool which can be found here.

Once you add the "bin" folder to your PATH environment variable, then to create a repository, all you need to type is:

This command will create a repository in c:\repository. Note that this directory does not need to exist; svnadmin will create it for you.

Checking out this repository can be done via TortoiseSVN by right clicking inside a folder and selecting "SVN Checkout". Then set the "url of repository" to "file:///c:/repository".

If one wanted a local repository then this is much simpler than either setting up svnserver as a service or setting up the apache server.

The simplest, easiest documentation I have found on subversion is here. Even though it is geared towards Linux users, Windows users should be able to follow it too.

Friday 18 July 2008

Subversion reported an error while creating a repository!

I now realise why hardly anyone uses Open Source software: it sucks!

I installed TortoiseSVN right clicked the desktop and tried to create a repository. I have done this with a previous release of TortoiseSVN, so I know what I was trying to do.

One would have thought that the creators of this allegedly good version control system would have at least tested it enough to know of this mis-feature.

Right now I am still searching for an answer, but Google is useless when it comes to obscure software.

If anyone finds out, please let me know in the comments.

Saturday 12 July 2008

Checking out the NMock Source Tree

At work I am primarily a .NET developer and we use NMock in our unit testing (together with NUnit).

NMock has some very cool functionality that is so mind boggling that you would wonder how it is done. For example you can instantiate an interface and add methods dynamically to this object. This same functionality is also a part of for example the Python programming language but python sucks due to its lack of speed.

It was not too hard to figure out how to checkout/get the NMock source tree but as with most Unix tools, they make it far harder than it needs to be. So here are the steps I carried out:

1. Download and install TortoiseSVN. Reboot.
2. make a folder called "nmock_source" or whatever you want to call it.
3. open a cmd prompt and cd to this directory.
4. type the following into the command prompt
It will then as you for a password. Just press enter. You will now be returned to the command prompt.
5. Now type the following to actually get all the source in the repository

Although the above steps are fairly straightforward, messing around with unix tools are a verifiable blackhole for time.

Tuesday 24 June 2008

Python for Win32 Chapter 4

Ages ago I downloaded this beautiful torrent called 500 O'Reilly books that literally contained 500 O'Reilly books. The reason why I am not too guilty about stealing it is that all those books are old and out of print.

I really wanted to learn a scripting language and I chose Python to learn and was reading "Python for Win32" until I got to Chapter 4 which was corrupt. I therefore spent an age downloading the chapter off Google books. Since it took me so long, you can have it for free.

Hello World!

This is my first blog ever! I am not sure what this blog will turn into but I hope its interesting!

This blog will probably be a lot about religion (this should be universally interesting as I am an ex-Muslim), programming (my profession and hobby), and a few other interesting topics like my mental illnesses.

Hopefully this blog will be fit for public consumption as I will more interesting here than in real life.

Anyway, lets start blogging!