Thoughts and Ramblings

General things I find of interest.

The Road to Perian 1.1

Well, it started before 1.0 was even released. We started looking at methods to optimize the routines within Perian to run even faster. The road has been a bit of a long one. Now, we are in a private beta. The beta has been opened to those who have donated to the project as well as personal friends of developers. We often get the question as to why we limited the beta to donators. I find more often than not that such people are the kind who think they deserve something to which they have no right to have (see Open Source Attitudes). The reason we did this is simple. We didn’t want the beta to be fully public, but we wanted more testers. Those who have donated have already shown they use and care about the project, so they are a natural choice.


Google's Analytics Mistake

So, as I said earlier, I have started using Google Analytics. Google now suggests some new code to use in running the analytics. The problem: it’s broken! Here’s their code:

<script type="text/javascript"> var gaJsHost = (("https:" == document.location.protocol) ? " https://ssl." : "http://www."); document.write("\<script src='" + gaJsHost + " google-analytics.com/ga.js' type='text/javascript'>\<\/script>" );

var pageTracker = _gat._getTracker("UA-xxxxxx-x"); pageTracker._initData(); pageTracker._trackPageview(); </script>

Now for what is broken:

  1. There is a space between the " and google-analytics.com. This causes browsers to load the wrong (and invalid) address
  2. Code that is dependent on code in the ga.js is executed immediately after the html is written to load the external javascript. There is no explicit indication as to the order this should be done. Race condition!

So, here is the fixed code:


Sapphire Plugin

Well, it’s official. Sapphire, one of the best AppleTV plugins, has released beta 4. This is a major upgrade from beta 3, adding support for movies and improvements overall. One of the most interesting features is that this version also works as a frontrow plugin in Leopard. As far as I have been able to find out, this is the first plugin to do this, which means it could open up a whole new world for frontrow. Previously, it was limited to those with an AppleTV, but now, anyone with a mac can use it. The only question is how many would find it useful?


Custom RSS Feeds

So, lets break down the problem. I use RSS feeds a lot to read the news. For the uninitiated, RSS feeds (which stands for Really Simple Syndication), are a nice way to aggregate multiple sources and see changes from said sources in a convenient manner. Basically, I can see the headlines from many locations in one place and read the articles I want. Sounds good, right?

It would be, but most sites have only a single sentence description for the “article” which means you have to load the full site to realize that, more often than not, the article isn’t something you wanted to read, or so horribly written you wish you hadn’t read it. To make matters worse, some even go as far as to insert ads into the RSS feeds. Often the ad is bigger than the article description itself. Guess that means their articles aren’t good enough to bring traffic to their site so they feel they have to make money by inserting ads into their RSS feeds. This is akin to watching a commercial trying to get you to watch a new television show and inserting an ad in the middle of the commercial.


Ripping DVDs to play on the AppleTV

First, I should start off with the prerequisites for the AppleTV itself.

The second piece I used is Handbrake to actually rip the DVDs.

Most people try to make the choice between AVI or MP4 file formats. There are problems with both of these approaches.