16:12 Sunday, December 12 2004

ho-hum

About 3 weeks ago, I started 'forcing' david to drink water from a normal cup/glass, rather than his sippy cup. I figured it was time for him to learn how to drink on his own, without a special lid on the cup. He's doing really well. When he gets distrcted he tends to pour water all over himself, but as long as he's focusing on drinking, he handles it well.
I ran into a bug in my webam temperature script today. Seems that the awk portion that i was using assumed a specific number of fields in the current weater conditions output. However, I forgot that the weater can be more than just a single word (Sunny, Cloudy, Raining, etc), but also two words such as 'Mostly Cloudy'. So that caused awk to grab the wrong field. I fixed it by using the 2nd field from the right end, rather than hardcoding the sixth field from the left end. So here's the new command:

grep humid /tmp/weather.out | awk -F " " '{print $(NF - 1) "F" }'

All good now.

</p>