Archive for March, 2008

Clean copies from Subversion

Tuesday, March 4th, 2008

This blog is turning into an elaborate mnemonic device.  This time, some more Subversion stuff I can never remember how to do.

To get a clean checkout (sans the .svn directories) of a trunk, branch, or tag from your repository, use the following:

$ svn export svn://server.com/repo/branch/name

Simple. Use the -r parameter to indicate a specific revision.

Pinging specific ports

Sunday, March 2nd, 2008

I stumbled across this incredibly useful command in Cygwin sometime back and, for whatever reason, I can never remember it when I need it.

httping is a simple little utility that pings specific port numbers — default port 80 of course — the same way that ping.. err, pings servers. The following, for example, will help alert you to recovery of that production machine you just knocked off the net thanks to a fat fingered root command (oops):

httping -h example.com

Add a -Gb switch combo to get transfer speed indicators.

The easiest way to get Emacs Tramp Mode to play nicely with Windows and secure ssh connections

Saturday, March 1st, 2008

The easiest way is to go “under” Emac’s head and not bother with Tramp at all..

The currently distributed version of Tramp (2.0.x) has a design flaw wherein it assumes that ports are designated with a “-p” switch.  If you’re running Emacs on Windows, however, you will probably want to use Putty’s <code>plink</code> command instead of an command line ssh client.  Problem is plink uses a capitalized “-P” to indicate the port.  Urgh.  (Supposedly this is fixed in Tramp 2.1.x..)

Rather than muck around with this, consider tools that map the remote connection such that it appears local.  The well done open source app WinSCP does a pretty good job of this, though is a bit clunky in the way it syncs up its temporary cache.  South River Technologies’ WedDrive, however, is practically seamless.  Well worth the $60 for a one year license.