Archive for August, 2008

A Toast to My Sister

Sunday, August 31st, 2008

From your early days as Conan the Destroyer to your wild teenage years to the beautiful woman with refined passion you are today, I am so happy to be your big brother. As a child, you proclaimed that you were going to be a famous country singer, but live in the big city. At times, […]

Finding the Day within the Year

Monday, August 11th, 2008

Unlike many other great languages, ActionScript 3 does not have a method for finding a date’s day within a year. For example, February 10, 2008, is the 41st day in the year. Here is my solution:
function getDayOfYear(date:Date):Number {
var monthLengths:Array = new Array (31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31);
// A […]

Quick and Memorable Proportional Resizing in Flash

Saturday, August 9th, 2008

When needing to scale loaded assets in ActionScript so that no side is larger than a particular dimension, you can spare manual proportion calculation by using the scaleX and scaleY display object properties.
Manual proportional scaling code looks like this:
myDisplayObject.height = (originalHeight * newWidth) / originalWidth;
myDisplayObject.width = newWidth;
That’s fine and dandy, but I typically need to […]

Media Along the Path to Atheism

Thursday, August 7th, 2008

As I was contemplating god and religion, several pieces of art / media accompanied my thoughts. Some of these are religious. Some are atheist. All were influential.
Contact (movie)
The topics of love, loss of a parent, and blunt discussion about the evidence of god’s existence make this one of my favorite movies of all time.
Great line: […]

What is the meaning of life?

Tuesday, August 5th, 2008

My friend John asked to interview me for a paper he’s writing in his high school English class. He had the same questions for a variety of topics and I chose the meaning of life. Here are my answers.

Why is this question important to you?
It’s a question that I’ve thought about for a long time. […]