I posted a pic of my son a little over a year ago while I was holding him and trying to use the computer: http://blog.eflow.org/archives/307

He has since tripled in size and now is attempting to write some OpenMRS code. I need to sign him up for an OpenMRS ID soon so that he has a good username reserved for when he starts submitting patches. 🙂

This is in the babble category

1 comment »

Over time the messages in our Spring message.properties files grow stale. When a developer updates/changes code he/she doesn’t necessarily go to the messages.properties and remove all the keys that they removed from code. This has not detrimental effect on code, it just means that when translating into a new language the translator is potentially more work than they need to.

I wrote this quick shell script to loop over the file and do a recursive grep for that key. The key is considered “used” if it exists in the current directory with quotes around it (single or double). This WILL NOT find keys if they are only used programmatically. (e.g. VAR + “.started”)


# Loops over all the keys in the given messages.properties file
# and looks in the current directory for the string in quotes.
# Results are printed to stdout
# use: (from the “web” dir in openmrs)
# sh ./findunusedmessages.sh WEB-INF/messages.properties

props=`awk -F= ‘{print $1}’ $propfile`

echo “These property keys were not found in the code base:”
for prop in $props
#echo “Looking for property: $prop”
if [ ! -z “$prop” ];
total=`expr $total + 1`
output=`grep –exclude-dir=”.svn” -re “[\’\”]$prop[\’\”]” *`
if [ -z “$output” ];
echo “$prop”
count=`expr $count + 1`

echo “done! Found $count possibly uneeded message keys in $propfile (out of $total total keys)”

Download the file here: findunusedmessages.sh

This is in the babble, openmrs category tagged as , , , ,

Add a comment »

- 26 Feb 2010 -

Andy sleeping in front of computer My wife gave birth to our first son on Saturday: Andrew Benjamin Wolfe. He was a very healthy 8 pounds and 21 inches long. He has been eating and sleeping very well. Sleep is at a premium in the Wolfe household and we take it whenever we can get it. Our daughter, Eden, is 14 months old, and does her best to keep us both up all day to play with her!

I’ve been attempting to keep up with email while at home, but Andy has been fighting me for computer time!

This is in the babble, openmrs category tagged as ,

Add a comment »

This seems fairly simple in hindsight, but I had a difficult time finding an answer to it, so I putting it down here for posterity’s sake.


I put this as the first changeset in a liquibase xml file. This disables the foreign key and constraint checking in mysql. This would work for other db’s as well, but I haven’t looked up their syntax just yet.

This is in the babble category tagged as ,

Add a comment »

- 31 Jan 2010 -

After futile searches and a lot of old pages, I finally found a linux screencast tool: recordmydesktop.

Using the synaptic package manager, I installed recordmydesktop.  Eventually I discovered that this was not the gui part of the program and installed gtk-recordmydesktop.

I’ve been very happy with the results.

This is in the babble category tagged as ,

Add a comment »

« Previous Entries