Using TortoiseSVN with svn+ssh tunnel over non-standard ports

Configuring recent versions of toirtoise SVN to work with non-standard ports is a bit tricky. I tried editing the “subversion config file” through Settings->General->Edit, to using an ssh command line, like the one I’m using on Linux for the same repository, but that didn’t work. A quick hack-style solution is to go to TortoiseSVN->Settings->Network and set the SSH client to (assuming port number XX): “C:\Program Files\TortoiseSVN\bin\TortoisePlink.exe -P XX” (The hack is also described here: http://www.

Using the tkiz package in latex [on RHEL5, CentOS, Fedora or Ubuntu Linux]

I needed to “compile” a latex document using the tkiz package. After spending quite a few time trying to set this up on CentOS and Fedora, I finally gave up. Fortunately Ubuntu had a working pre-built package that includes pfg and tkiz, but this also required two online searches to deal with latex errors. A summary of the process for RHEL/CentOS/Fedora  I searched many times for RPMs with tkiz/pgf for RHEL 5 or FC12 (to install it on our CentOS server).

How to count Lines of Code (LOC) using grep and wc

Contrary to the CLOC tool (http://cloc.sourceforge.net) I argue that comments in the code are useful and should be counted in the “real” lines of code. I think that this gives a nice incentive to developers for commenting their code. Of course that holds assuming that you are not trying to fool anyone by artificially increasing the lines of your code. If your are trying to fool people, you can still do it with comments being removed (but I’m not going to tell you how).