carl moonan | the dude abides

Howto rsync folders

The command below will rsync the wordpress folder with carlmoonan.com rsync -a -u wordpress/ carlmoonan.com/ -n The trailing -n will make i do a dry run. To do this to a remote machine you can use the following command: rsync cmoonan@217.155.133.176:'/Users/cmoonan/Documents/svnroot/trunk/java/' ~/Documents/svnroot/trunk/java/ --progress --recursive -n --exclude-from '/Users/carl/Documents/rsync-exclude.txt' --stats -e 'ssh -p 22' -v

How to include log4net in a dot net application

Log4net is a great logger for .net, sadly i can not understand the apache.org support docs. To make log4net work in dot net you can do the following: Get log4net binaries from here e.g. log4net 1.2.10 Add reference to log4net.dll Add this to your app.config document: Sample app.config Make sure you add this if its a standard .exe XmlConfigurator.Configure(); Add this line to your class to get a logger object: private static readonly ILog _log ...

,