Thursday, December 10, 2009

sharpsvn getting list of locked files

public struct LockedFileMetaData
{
public string FilePath { get; set; }
public string LockOwner { get; set; }
}


public List GetListOfAllLockedFiles()
{
List lockedFiles = new List();
SvnTarget target = SvnTarget.FromUri(RepositoryUri);
System.Collections.ObjectModel.Collection ListEventArgs;
SvnListArgs args = new SvnListArgs();
args.RetrieveLocks = true;
_svnClient.GetList(target, args, out ListEventArgs); //lock doesn't get populated

if (ListEventArgs != null)
{
foreach (var fileStatus in ListEventArgs)
{
if (null != fileStatus.Lock)
{
lockedFiles.Add(new LockedFileMetaData() {
FilePath = fileStatus.Lock.FullPath,
LockOwner = fileStatus.Lock.Owner
});
}
}
}
return lockedFiles;
}

Sunday, April 20, 2008

Pollution: Tactic agreement

There is no doubt that producers save a great deal money in building products without regard for the pollution that is created. Although this is the case we make decisions to purchase those products at the lowest cost. Are we not providing tactic agreements to their actions by doing so?
One would love to say yes or no and have the debate on the issue complete; after all who wants to talk about garbage.
The real problem seems to be that we are not given the information about the actual cost to the planet. After all we all share the garbage, not the profits. The producer is better off in hiding or not knowing how much damage they are producing. Very much an ostrich like phenomenon. Problem is that the garbage is piling up.

Friday, April 4, 2008

Parallels: Ubuntu networking not working

Well, I'm not exactly sure what I did to break thing as the networking worked fine when I install Ubuntu 7.1 into Parallel on my new Macbook., but I broke it. You now a computer without a good internet connection is really just an expensive calculator.

I checked the OS everything seemed fine, it had an IP address, DNS entries, ...
Turns out that the network setting within Parallels got buggered somehow when I installed KDE 4.0.

I noticed networking settings at the bottom of the Parallels window.
I swear that I tried every combination that I could think of but it didn't seem to work.

I restarted my computer and restarted the Ubuntu image the model that says there is a networking error popped up, like many times previously
I set it to use my AirPort adapter then selected to Shared Networking. When I look at it now the Shared Networking is selected but the AirPort adapter is not.

I you run into this problem, good luck; I'm pretty experienced with computer and beyond saying try a reboot, I don't have any tangible advice