Monday, August 16, 2010

Browsing Subversion with SharpSvn

Using SharpSvn to browse a Subversion repository:
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using SharpSvn;

public IEnumerable<string> GetSubBranches(string baseUrl)
{
SvnClient client = new SvnClient();
SvnTarget target = new SvnUriTarget(baseUrl);
var list = new Collection();
client.GetList(target, out list);
return list.
Where(l => !string.IsNullOrEmpty(l.Path)).
Select(l => l.Path);
}

Sunday, August 15, 2010

Personal wiki

Last month I read Pragmatic Thinking and Learning, and have since picked up the suggestion that I should keep a personal wiki of ideas, notes, research, and whatever other things I usually scribble down or drop in a text file. I use it daily now and I find it makes more sense now to keep all the notes, when it's easier to search and navigate between the notes.

On the technical side, I use TiddlyWiki, which is a single html file with a lot of javascript to make things smooth.