Archive for September, 2006

Composting

Saturday, September 30th, 2006

Our house has a huge backyard with many large trees.  Last fall (which was our first fall here) we couldn’t keep up with all the leaves falling down.  And we only had a mulcher lawnmower, which is not good for the large, thick leaves that we have.

We also have a spot in our lawn that [...]

The Zeer Pot

Thursday, September 28th, 2006

This link courtesy of Slashfood.

Imagine a non-electric way to keep food (including meat) fresh yet cheap and easy enough to use in the Third World.  It’s called the Zeer Pot.  Read the Science in Africa story.  A simple idea that could just change a continent for the better.

In Praise of Emacs

Thursday, September 28th, 2006

In what other editor or IDE do you have:

Keyboard macros that you can call on a whim.
A tab key that acts like an “align” key — aligning lines to the right and left?  If this is not important to you, then you have never written anything in Python.

[...]

Unit Testing a Floating Point Result

Wednesday, September 27th, 2006

I’m mucking around with CppUnit again and kept getting caught with testing a floating point result. After scratching my head some, I figured out that duh I had a ton of precision from function, and there was no way that I could enter that exact number in.  So instead of this:

CPPUNIT_ASSERT(distance>121.815123542);

I just did:

CPPUNIT_ASSERT(distance>121.815 && distance<121.816);

What’s Your Command?

Wednesday, September 27th, 2006

Thanks to Brandon for the meme.

684 [mikeh@gideon]>history | awk ‘{print $2}’ | awk ‘BEGIN {FS=”|”} {print $1}’ | \ sort | uniq -c | sort -nr | head -10

69 cd 64 l 51 time 31 python 28 make 23 matrix 19 sudo 17 less 13 ./getdistance.py 10 sqlite3

Things You Say Only If You Are The Parent of a Toddler

Tuesday, September 26th, 2006

In addition to what Gina said, here is a collection of some funny things that Gina and I have been saying to Leah:

&#8220;If you are going to go on a journey with me, you have to have pants.&#8221;
&#8220;Tell Daddy he&#8217;s stinky.&#8221;
&#8220;It&#8217;s summer.  We don&#8217;t wear [...]

How To Be A Hero

Tuesday, September 26th, 2006

Our church has some very serious building needs.  The main building is forty years old and is not adequate for our ministry, and hasn’t been for many years.  Things have been done to band-aid it like add a classroom wing and a separate building with even more classrooms and a youth room, but we still [...]

Turning a string into a datetime object

Monday, September 25th, 2006

I think that all computer languages should be judged on how they handle dates and time in their standard library.  But then, most fail.

Python’s support improved greatly with the datetime but getting a string massaged into a datetime takes some doing.  This is what I came up with:

dateTup = time.strptime(dateStr,”%B %d, %Y”) rssItem.pubDate = [...]

To the Bid Snipers

Monday, September 25th, 2006

Dear eBay Snipers,

You tried, you really tried to snip all my bids away.  You frustrated me a lot — a lot — I never thought I would suceed.  I was down to less than a minute several times, but you guys and gals always stole it away.  Not matter how I priced it, you did [...]

Praying Psalm 23

Monday, September 25th, 2006

Our church theme for the year is “Building on Prayer”, and our pastor is trying to get the whole congregation to envelope themselves and our church in prayer. In that aspect, he has asked the Council members to take turns praying the congregational prayer during the service. This past Sunday was my turn.

Thinking [...]