Pages

Saturday, May 29, 2010

Mercurial: publish multiple repositiory with hgwebdir.cgi

The biggest problem I had was adding a script handler into the apache directory configuration.  Otherwise everything went smoothly

http://mercurial.selenic.com/wiki/PublishingRepositories#multiple

http://mercurial.selenic.com/wiki/PublishingRepositories

Reliable Windows backup

My wife has over 100K files and some very, very log file names.  These have caused me lots of grief over the years.  The following robocopy seems to work the best out of everything.
 
The file name/folder path length is the oddity.  I don't remember all the details, but it is something like... NTFS allows very large if not infinite file name and folder path lengths.  However, very view applications accomiadate this.  The includes Microsofts file explorer.  I don't recall if I attempted using the file explorer in Windows7, but I am certain it failed as late as Vista.
 
robocopy f:\Users\rox\Desktop g:\Desktop /s /e /eta
robocopy f:\Users\rox\Favorites g:\Favorites /s /e /eta
robocopy f:\Users\rox\Documents g:\Documents /s /e /eta
robocopy f:\Users\rox\Pictures g:\Pictures /s /e /eta

Friday, May 28, 2010

Ubuntu equivalent of Mac Spotlight


or another alternative

http://projects.gnome.org/deskbar-applet/index.html

sudo apt-get install deskbar-applet

alt-f2 runs an application (I believe regardless)

Right-click on the panel and select "Add to panel..."

Right click on the Desktop Applet icon to set preferences.

Tuesday, May 18, 2010

Creating diff patch patches

diff -ruN orig/ new/ > my.patch
cd orig
patch < ../my.patch

Takes care of new files, removed files, and changes within files.

http://stephenjungels.com/jungels.net/articles/diff-patch-ten-minutes.html
http://iihm.imag.fr/blanch/howtos/DiffPatch.html

Compiling mercurial (hg) from source

Fedora Core 10 (FC10)

Required rpm (among others)
sudo rpm -ivh python-devel-2.5.2-1.fc10.i386.rpm

Download and extract mercurial source (this example is 1.5.2)

sudo make all
sudo make install
sudo python setup.py install

hg debuginstall -- will debug the ~/.hgrc settings

~/.hgrc
[ui]
username = matt
verbose = True

mkdir test
cd test
hg init
hg serve -d


Saturday, May 15, 2010

Capturing config file for a remote on the USBUIRT

irrecord --driver=uirt2 --device=/dev/ttyUSB0 lircd.conf



Sunday, May 2, 2010

UNISON Tips

For windows add:
fastcheck = yes

Not sure how to fix the PROPS "question mark" confusion.  Seems to be mostly with svn stuff... which I really don't want in a UNISON sync anyway.

Reference:

RPMs required on FC10 to add VMWare Tools

rpm --force -ivh make-3.81-14.fc10.i386.rpm kernel-headers-2.6.27.5-117.fc10.i386.rpm gcc-4.3.2-7.i386.rpm glibc-devel-2.9-2.i386.rpm glibc-headers-2.9-2.i386.rpm kernel-devel-2.6.27.5-117.fc10.i686.rpm 

VMWare tools requires
make
gcc
kernel-headers