Changing times…

After 7.5 years of employment at Electronic Arts, I’ve decided to change jobs.  It’s been a fantastic time, with an amazing group of people I only wish the best for.   It was one of the hardest decisions I’ve ever had to make leaving the company; they’ve treated me very well over the years and I have no major complaints.  The way I was treated by the upper management through the exit process was handled with the utmost integrity, which I greatly appreciated.  But the opportunity I am leaving it for with both grow my career, and allow me to focus on projects that are more in-line with my personality.

So it’s a very bittersweet parting, but onward and upward :)

Electric Bicycle Conversion, phase 1

I’ve been planning for a long time to convert my bicycle to electric power, and I’ve finally cracked.  After looking at several online sellers, I settled on ‘AmpedBikes.com‘ for their front wheel kit.  And since this is the first time doing it, I figured I’d settle on some sealed lead-acid batteries rather than fancier (lighter, but much more expensive) ones, so I picked up three 12v-10ah bricks from Gruber Power Services.

My current ride is a 14 year old Scott Magnum MK 1.0 that has served me faithfully over the years.  Only problem was, it had an aluminum front fork with suspension.  According to AmpedBikes, the electric motors can snap aluminum forks because of the high torque.  So recently my son and I went out and picked up a new shiny, chromed out steel front fork for it (plus new brakes), and did the install.

Now, all we have to do is wait for the components to show up.  Looking forward to commuting to work on my new ride!

Kodu Game Lab

Yesterday I downloaded Kodu Game Lab from Xbox Live Marketplace.  I’d seen some demos of it online of a young girl (10?) programming games on the fly on the Xbox, and thought it would be something cool for my son.  Well, I was right, he hasn’t been able to put it down (although, we do make him 😉 )

Here are some links:

It’s a very visual programming environment, letting your quickly sculpt terrain, program bots, and plot paths.  Kind of like a mashup of Spore, The Sims, and Civilization.   Of course this is all sharable over Xbox Live.  I’ll be looking to see what kind of “expansion packs” they provide over time.  I now need to go help my son program a robot to shoot something…

SohCahToa!

Time to get back to the basics.  I use trig at work, and at home in PyGame\Processing, but I like understanding the fundamentals of how it works.  So I sat down this afternoon and made up a “SohCahToa” PyGame program that really illustrates (to me at least)  what the values behind sine, cosine and tangent mean.  They are after all, ratios of the sides of a triangle.

So the mnemonic device is “Soh-Cah-Toa”, which means:

  • Sine = Opposite / Hypotenuse
  • Cosine = Adjacent / Hypotenuse
  • Tangent = Opposite / Adjacent

I wanted a visual way to see this in action, and that’s what this little program does:

sohCahToa01

Click through (twice) to larger image...

It plots a triangle defined by the opposite, adjacent, and hypotenuse sides.  As time goes by ‘degrees \ radians \ pi’ values increase, and the triangle changes.  The lengths of each side are plotted, and at the bottom, the math behind the sin, cos, and tan are shown in real-time.

The source code is online here, feel free to grab it:
http://www.akeric.com/python/sohCahToa01.py

Also, with a lot of help from this post (and several followup emails from its author), I was able to (finally) turn my PyGame apps into Windows executable.  Find the zipped version here:
http://www.akeric.com/python/sohCahToa01.zip

I built it with Python 2.6.2 and PyGame 1.9.1, but nothing fancy is going on with either, so it should work with older versions.

5 days in Carmel…