Science Fare

Tuesday, May 22, 2007

Home Built Canoe Hoist




Hah! REI wanted $100 bucks for a set of pulleys to put the canoe on the ceiling. A 25$ Home Depot gift card was all I needed to set one up for myself. Well, that and some hardware I had sitting around.

The trick is to use multiple pulleys to give yourself leverage. The new (used) canoe is pretty heavy -- probably 80 lbs or so. And awkward! Now it lives conveniently out of the way on the ceiling of the garage....




Monday, May 21, 2007

Context sensitive debugging in GDB (XCode)

Occassionally you're trying to debug something where a regular breakpoint won't work. For example, for some reason bringing the debugger to the front might interfere with tracking down the bug.

For example, if you are examining focus.

Here is a way to alter a breakpoint in XCode so that it prints something, then pauses, then resumes.

Open the breakpoints window. Click the auto-play checkbox for your breakpoint. Then add a "Debugger Command" action and put some code like this:

up
dbt
call (void) sleep( 3 )

(dbt is my presonal macro for a traceback function.) Using call to invoke sleep makes it pause for three seconds before continuing.

Sunday, May 20, 2007

Lucy's Page is Back

I repaired Lucy's page, which hadn't been working since my Linux machine crashed in March.

I did a test run of one of the silly old Mad Libs: Here is what I got.

One day, Lucy decided to conduct a scientific experiment. She wanted to find out the temperature at which a long way home boils. She went to the ballroom, got out a content wine glass and filled it full of long way homes. But that wasn't soft white enough, so she added a pages of cookiess and some who is to blame. Then, she put the wine glass on the catastrophic refrigerator to boil. She waited and waited. Finally the long way home started to boil. The bubbles got so adored they looked like they were going to spill right over the sides of the wine glass. Lucy didn't know what to do. First, she baked at the wine glass to try to scare the bubbles, but nothing happened. Then, she tried pulling the wine glass off the catastrophic refrigerator, but it was too mysterious. Suddenly, Andy came in and saw the mess. He turned off the catastrophic refrigerator and said,'Don't you know long way home boils at 77 ounces Farenheit.' 'Really?' asked Lucy. 'I guess I didn't need to boil long way home after all!'

Make your own madlib here:

http://paddlefish.net/lucy/

( Click on "Games" )