Archive for July, 2009

Aquacue Barnacle saves the day

July 29, 2009

Over the past couple of days I was surprised at how much water the Aquacue Barnacle was reporting that we were using. The Barnacle was reporting over 80 gallons per minutes. Initially I though this was a false alert as we had just changed the software. But after some investigation that included help from San Jose Water Company we found the leak under the house. The Barnacle was right after all. Here is the proof of the leak:

The Barnacle reported water usage matched the water meter to 99.44% accuracy. The water pipe connecting the water meter to the house was old rusty galvanized pipe and it had just given up being a pipe. The cost of repair $3500 (included digging the sidewalk and front yard to get access to the water pipe and fixing the sidewalk, …). Damages to the house: none. Without the Barnacle I wouldn’t have found about the leak until after significant damage to the house was done. If I had acted immediately after the first Barnacle alert, the leak would have been detected in two hours.

How to add revision id to SVN controlled files

July 19, 2009

First register the file with subversion for keyword substitution. For example, you may need to add the actual revision number to the source code.

$ svn propset svn:keywords "Revision" source_file.c
property 'svn:keywords' set on 'source_file.c'
$

Next, edit your source code and add the keywords that you wish to be replaced, e.g.

#define VERSION "V 1.0 $Rev$"

Finally, from now on each time you commit the file to subversion, e.g., after you commit the file:

$ svn commit source_file.c -m "file with rev. id"
Sending        source_file.c
Transmitting file data .
Committed revision 190.
$

Now if you view your source code, it will have the revision number in the code, e.g.

#define VERSION "V 1.0 $Rev 190 $"

and each time you edit and commit the changes the revision number will be updated.

Nine Hills vista, Alamaden Quicksilver Bike Trail

July 6, 2009

Arduino development with command-line tools

July 2, 2009

You may find that after your Arduino program grows to be over 1000 lines of C code that the Arduino IDE becomes increasing more annoying to use. Well, you can use TextMate, but first you need to set yourself up for command line programming. There are some instructions on the Arduino site for this, but it is a bit out of date. Specifically, the Makefile that they recommend simply does not work. (more…)


Follow

Get every new post delivered to your Inbox.