Archives by Month



Red5 running on Ubuntu Amazon EC2 ami

Over the last few weekends I have been getting back into looking at Red5 as a solution for some streaming applications that I am working on. If you need a way to deploy a quick server instance of Red5 and you have an Amazon EC2 account then I a the solution for you. 

I customized an Amazon EC2 instance that is running Ubuntu 11.04 64bit and installed everything needed to run Red5 1.0. I also added a start script so you don’t have to boot Red5 via ssh after the instance is running. Simply search for the following public AMI when you go to create a new EC2 instance..

Thanks to Dominick Accattato for helping me find a start script for starting red5 on boot. 


ami-de27dcb7 (updated to fix owner permisssions on red5 directory)

You should be able to choose from a number of inctance sizes. This was very key for me as different size instances are going to be used based on the amount of connections you think your app will need. Keep in mind as of the date of this post micro instances are free to use for new customers for the first year! Great for testing!

I plan on creating a few more customized instances with Red5 for clustering and will share some of the results as I get them built. 

Once you get your instance running you should be able to copy the public DNS and navigate to ec2-public-dns-example:5080 to see the Red5 start page. 

Feel free to commit below if you have any questions or suggestions.

HTML5 still lagging behind Flash

High-end mobile browser gaming still some way off as research finds HTML5 routinely outperformed by Flash.

Despite constantly being touted for some time as the future for mobile gaming, new research has shown that HTML5 remains some way behind Flash in terms of performance.

Software architect Sean Christmann used his benchmarking tool, GUIMark, to assess the current disparity in performance between HTML5 and Flash on nine different mobile devices.

In three tests – bitmap drawing, vector graphics and computation – Flash outperformed HTML5 every single time, often achieving double or triple the framerate. While Christmann openly admits that his work was funded, through his employer, by Adobe, the figures speak for themselves: HTML5 is still far from an ideal platform for mobile gaming.

Thank God for Project Sprouts

For a few years now I have looked for the holy grail for Flash / Flex Development workflow. The ultimate as a Mac user would be to use TextMate, with some sort of code hinting (see actionscript 3 / flex bundle) when needed, and some generators for creating files quickly, like you get with Rails development.

I had heard about Sprouts for a while now but never really took the time to give it a try. Well this past weekend I did and it is FANFUCKINGTASTIC. This ruby gem gives you all the tools you need to create projects, classes, debug and compile code that you need. On top of that you can create your own templets, and generators to customize your work flow. I will be posting more on my setup and some if the minor tweaks that I applied to my workflow in the days to come.

What Is It?

Project Sprouts is a highly cohesive, loosely coupled collection of features that take some of the suck out of programming.

Sprouts is a modular development platform that takes advantage of Ruby and RubyGems to share code generators, libraries, executables and automated build tasks. It runs anywhere Ruby does, including OS X, Windows, and *nix variants.

Sprouts has been seen working on Mac, Windows and Linux and while it currently targets ActionScript, Flex and AIR development, tools can be easily created to improve any programming environment.

Image courtesy of KatieL366 and the Creative Commons license.


What are are folks saying?

The best thing to happen to Flex since Matt Chotin….

Ryan Stewart, Adobe Flash Platform Evangelist

I swear project sprouts is the most significant single thing in terms of changing my work flow.

Stray, ActionScript developer

Why would someone use Sprouts?

There are lots of reasons to use Sprouts for your projects, here are some of mine:

  • Test-Driven Development is much easier
  • Decouple builds from development tools
  • Consistent environment across any size team
  • Platform independent tool chain
  • Automatically generate project files, directories, classes, test cases, and test suites
  • Continuous Integration simplified

Upgrading to Rails 3.1 step by step.

If you follow the RoR world at all you know that Rails 3.1.0 is about too launch. I like to stay on the bleeding edge of stuff like this so I jump right in and install beta releases. Of course if you have a big production app you should dip your toe in carefully when doing such things but I am still learning ruby and rails so I see doing things like this as a great opportunity to gain a little more knowledge about the language and framework.

First up OS X 10.6.6 is my preferred OS so I am speaking to all you Mac users. My setup by the end of this post will be running ruby 1.9.2 and Rails 3.1.0.rc2. My goal was to get it up and running and also to launch an existing rails app even if I fall back to using rails 3.0 for now, until I get time to migrate the app to the latest version.

A couple of issues I ran into where around sqlite3 drivers and also when installing ruby with RVM, and there are some function names with in the sqlite3 bundle that need to be changes. I am not going to go into great detail but rather point you in the direction buy supplying step by step links that I used after searching on ways to fix each issue I ran into.

Each resource will get you going and is ment to be followed in order. My guess is you will run into issues that I didn’t see but at least you will have a good start and wont have to hunt for some of the solutions like I did.

  1. Upgrade or install ruby 1.9.2 using RVM – 
  2. Install pre-release Rails 3.1.0.rc2 or whatever version it is gem install rails –pre from the command line. (check for more info) 
  3. You may have to fix an issue with your sqlite3 bundle so read this post if you get an error when trying to use sqlite3 
  4. You will probably run into a driver issue with sqlite3 now that you are using ruby 1.9.2 so you will need to make sure that any projects are using 1.3.1 gem or higher by adding the following line to any projects gem file or just installing the latest gem fromt he command line like so. 

gem ‘sqlite3-ruby’, “>= 1.3.1”, :require => ‘sqlite3’

Read the following post for more info on the sqlite3 gem issue I ran into if you like. It’s addressing a windows user issue but the fix worked for me as well.

The Flash Argument With Apple Is Over (

Adobe CEO Shantanu Narayen says the argument with Apple over supporting its Flash software on the iPad and iPhone devices is over. “It’s an argument that the press likes to continue bringing up,” he said in an on-stage conversation with Walt Mossberg at the D conference.

Earlier, Narayen said he thinks the issue with Apple has less to do with technology than about control. “It’s control over the app store that’s at issue here,” he said. “We allow people to author once and get as wide a distribution as possible….If you build in Flash, you can run the apps on other platforms.” He said Flash is supported on 130 million mobile devices, though Mossberg reminded him that Flash “struggles” on the Android platform.

Narayen said that software developers can work around Apple’s no-Flash restrictions by building their applications first in Flash and then compiling them in another Adobe platform, AIR. “If you can build an app using our tools, and if you run it through AIR, it can be in the App Store.”

He also said that Adobe is contributing some of its expertise around type and design to HTML5, the technology that Apple has thrown its weight behind for Web video and multimedia on the iPad and iPhone. “We welcome the evolution to HTML5, and are actively contributing to it.”

The First Rule of Flex Development (wallpaper)

Inspired by a little dailybooth banter that seantheflexguy and I where having one day I made some desktop wallpaper for you Flex Developers out there that are also fans of Fight Club.

If you are interested in taking this corse then submit your email. I'll make sure you get a discount for signing up early.