Monthly Archives: July 2008

Oakland to Yosemite

Google Maps provides a route from the San Francisco Bay Area to Yosemite National Park which runs along 580 to Highway 120. I find this route to be intolerably populated, unattractive, and often ground to a stop due to accidents … Continue reading

Posted in Backpacking, Climbing, Travel | Leave a comment

Weirdness With Echo and Parentheses Within Conditional Statements

The if command in Windows batch files has some strange implications. One problem is that parentheses take on special meaning. I first ran into this problem because my batch file would terminate shortly after showing, “folder unexpected at this time“. … Continue reading

Posted in Technology | Leave a comment

Organizing Files by Date Using Find

I had taken pictures using a friend’s SD card. He copied all the files to my flash drive, but this left me without a nice, tidy directory structure. Normally, I organize my photos like: 2008 2008_06_27 2008_06_28 2008_06_29 First off, … Continue reading

Posted in Scripting, Technology | Leave a comment

Extracting a Version Number From a Text File Using Batch Files and Cygwin

We have a version.h file. It contains lines such as: #define VERSION_MAJOR 3 #define VERSION_MINOR 1 By piping this through grep, I can get the line I’m looking for: c:\>grep “VERSION_MAJOR” version.h #define VERSION_MAJOR 3 But what I really want … Continue reading

Posted in Scripting, Technology | Leave a comment

Installing Graphviz Dot Without Root Access

I want to install Graphviz on a machine in order to get access to the dot diagram generator. However, I don’t have root access on this box, so I want to install it in my home directory, under ~/bin/graphviz. To … Continue reading

Posted in Technology | 4 Comments

Linking to XML Stylesheet Stored on Local Server in Firefox

Problem I created an XML stylesheet which I wanted to place on a local Samba share. In the XML file to be transformed, I placed a file:// URI in the xml-stylesheet tag, but it wouldn’t work in Firefox. Internet Explorer … Continue reading

Posted in Technology | Leave a comment