Fibonacci

Not elegant, but effective:

#!/bin/bash
n1=0
n2=1
c=1
while [ 0==0 ]
do
  s=`echo “$n1+$n2” | bc`
  count=`echo “$c+1” | bc`
  echo -e “$c\t$s”
  n1=$n2
  n2=$s
done

Threw it together to demonstrate to Boy Wonder how to devise the sequence. Actually, this is the one I started with in pseudocode on the side of the refrigerator then it morphed into the one above to make it work in bash:
n1=0
n2=1
do
  result=n1+n2
  print result
  n1=n2
  n2=result
loop
Serves very little practical purpose other than to learn and see the relationship of numbers.

And Now, For Something Completely Different…

I love technology. Click through for more awesome quadrotor video from the U. Penn GRASP lab:

Yes, quite cool. Here are a few ideas:

  1. More quadrotors!
  2. Adjust the flight pattern to combine rotation and all three directions of travel in one or two combined movements instead of many separate movements. This one might be a bit tricker to implement effectively.
  3. Give them the ability to self-dock in a series of charging stations. Probably trivial to make them dock at a particular location (like one of, say, three charging stations). But to have a battery that can be charged quickly enough to be worthwhile — that might be somewhere in the future.
  4. Give them more parts to build larger, more awesome structures — like a shrine to our Robot Overlords.