Warning: fopen(/nfs/c02/h04/mnt/22658/domains/blog.jordanrounds.com/html/wp-content/cache/) [function.fopen]: failed to open stream: Is a directory in /nfs/c02/h04/mnt/22658/domains/blog.jordanrounds.com/html/wp-content/plugins/wp-cache/wp-cache-phase2.php on line 96
Some Randoms Some Randoms

23
Jan

Chumby Development - Getting Started

First things first. You have to get yourself a Chumby device. The device I ended up working with is the Insignia Infocast 8″ The first question you will have is how do I get my swf up on the device for actual testing. It really is not all that straight forward. The best place to start is the Chumby Developer Wiki. From here you can find the various things you can do on the different Chumby devices.

Initially I started trying to test on the device with Flash Lite 4, only to find out it was not supported. This is the initial output I received.

Adobe FlashLite 3.1.7 Release (Version 9,1,122,0)- Chumby Industries (version 9 build 107-3548 [GCC 4.3.2])
Portions copyright (C) 2005-2010 Chumby Industries, Inc.
Built for: silvermoon; Features: Video ALSA ARM-optimizations
Build time: Thu 09Dec2010 1318
2011-01-23 11:49:29 HTTPCurlObject::Done(id=1) returning true due to error condition, response code=404
2011-01-23 11:49:29 ClientObject::OpenSWFFile(): cannot open swf file http://10.0.1.14/greader/greader.swf
2011-01-23 11:49:29 ChumbyVidStats::RuntimeCleanup(): 0 sessions started, 0 cancelled, originating pid=23838, last reporting pid=0
2011-01-23 11:49:30 err[1]: 2011-01-23 11:49:29 HTTPCurlObject::Done(id=1) returning true due to error condition, response code=404

2011-01-23 11:49:30 err[2]: 2011-01-23 11:49:29 ClientObject::OpenSWFFile(): cannot open swf file http://10.0.1.14/greader/greader.swf

2011-01-23 11:49:30 Exiting _chumby_flashplayer_version=317.9.00107-3548
2011-01-23 11:49:30 Start time: 2011-01-23 11:49:29
2011-01-23 11:49:30 End time : 2011-01-23 11:49:30
2011-01-23 11:49:30 Elapsed : 1s (1)
2011-01-23 11:49:30 main() - closing and deleting pid file /var/run/chumbyflashplayer.pid
2011-01-23 11:49:30 chumbyflashplayer main() - exiting, return code -1

Now my initial reaction to this not working was a big WTF. So I started looking through the output and the one line that stuck out like a sore thumb was:

Adobe FlashLite 3.1.7 Release (Version 9,1,122,0

So from there I started to frantically google trying to figure out how to get this thing running Flash Lite 4, and I ended up on the developer wiki, and the rest of the steps I took are laid out below.

The first thing you need to do is follow the instructions to install the latest developer firmware. The firmware itself can be downloaded here. Once you have the firmware downloaded, you need to put it on an empty usb drive. I’m on a mac and formatted it to MS-DOS using disk utility. I have no idea if this is necessary, but at least worth mentioning. After you put the zip file for the firmware on the drive, plug it into the back of the device. With you fingernail on the screen restart the device and you will be able to choose to load up the firmware from the USB drive, and the actual install from there is pretty straight forward.

Once the firmware is installed the device will reboot, and you will have to go through all the configuration. After this is complete you need to enable ssh. Tap on the Apps category. Tap on the Insignia logo. Near the upper right of that popup window there is a pi symbol. Tap on the pi symbol. From this window there are a few different options that can be enabled. The one we care about is SSHD. Tap on SSHD. Also note the devices IP which is found near the top of the window below the ID.

With SSH now enabled we are totally ready to rock.

The following instructions are for if you don’t already have a web server running. Skip ahead if you do already. The instructions are for Mac only, sorry PC people.

Open up system preferences, and click on “Sharing.” Make sure you have enabled Web Sharing, and note the path to your “personal website,” it will be something like http://10.0.1.14/~username/ This url is pointing to a directory in your home directory called Sites. You should be publishing your swf out to any place within Sites.

So, you now have a web server running. Lets continue on. At this point you need to open up terminal, and SSH into your device. You will be logging in as root, and there is no password. Type this in:

ssh 10.0.1.11 -l root

Keep in mind that the IP of your device may be different, and you should have noted it back when we were in the configuration panel.

Once you are logged into the device, you need to call the command: stop_control_panel
At this point the device will sit there with a black screen waiting. You then call:

chumbyflashplayer.x -i http://the.path.to.your.swf

An example of the path would be something like http://10.0.1.14/~jordan/project/project.swf

At this point you should now see your swf up and running on the display of the device.

The flash project I used was an AS3 project, with Flash Lite 4 as my target player under publish settings.

To stop the process just press CTRL-C, and you can then just execute the chumbyflashplayer.x command again.

30
Sep

A New Personal Website

I have decided I need to build a new personal website. At first I was thinking about building a full flash/flex website, but I decided I need to brush up on my html/javascript skills. I started looking for a javascript library to add a little more interactivity to the whole thing. I started looking at mootools.net, and then headed over to jquery.com. I think that jquery might be a better option. There seems to be quite the following and community around jquery. On with the research….

26
Sep

Blog Update

Updated to WordPress 2.6 and changed the theme. Not much more than that. Maybe I’ll even start to write more again.

18
Mar

The Media Library Project

Last night I began work on a project I have been planning on working on for a while. I kept thinking about it saying I should do it but never really got into it. Finally last night I started working on it. The first version is planned on being a simple cataloging system for my DVD rips. Currently I organize them in a spread sheet that tells what formats I have encoded and what hard drive they are stored on but the list is getting long and looking through 300+ rows in a spreadsheet is getting annoying. This project will hopefully help me to better organize my rips/encodes so that I can easily search, watch, and organize the movies. The project is being built in Flex 3 and AIR. Probably the best part of the project is getting to take advantage of Adobe’s AIR, which is now version 1.0 and the ability to work with AIR’s ability to write to the local file system in a database file. Right now the screen shot below does not do a whole lot other than allow for you to add a new library, but tonight I plan on adding the functionality to be able to add videos to a library, and just maybe be able to watch them. We will see how it goes.

Media Library First Pass

07
Jan

When is stage available?

I’m not sure if anyone else has run into this…. So for some reason, when writing Flex apps I have been relying on the creationComplete event to initialize my application, but at the time that event fires off the stage is not available yet. I found out there is an applicationComplete event, and after this event is fired off the stage is available.

07
Jan

A Fun Fact

According to a March 2007 comScore Video Metrix rankings study, five out of every seven Internet users (71.4 percent) in the US streamed video online. In addition, a June 2007 Pew Internet & American Life Project report states that 47% of adults in the US have high-speed connections at home. 

 

Source 

29
Aug

Campsite Beta v0.2

I figured I would give it another shot and I think I’ve got a reasonably stable version of Campsite. It doesn’t seem to error out from what I’ve tested. Basic functionality is simple.

  1. Enter the sub domain for your campsite account (if in the url it says someplace.campfirenow.com then you would enter someplace in the field)
  2. Enter your email address and password, at this point it will log you in
  3. Choose a room to join
  4. After you choose a room it will load up the current chat of the room. Don’t click around or anything until you see chat messages in the display, or you will probably break it ;)
  5. Type a message and click send, after sending a message it will auto-refresh
  6. If you want to see new messages others have typed click the refresh button

So far that is all there is to it. Its pretty simple and very unfriendly as far as usability and design goes, but that can be taken care of later.

You will need to download AIR, which can be found here.

Then next you will need to download campsite which is here

Give it a try and let me know how it works. Hope someone finds this interesting.

22
Aug

Campsite Delayed

I have not had the time necessary to continue to work on Campsite. I really want to get this thing up and running, so hopefully sometime this week or maybe the beginning of next week I will have some spare time to throw at it.

22
Aug

Sandbox Violations

So this is pretty lame. In flash when you see a sandbox violation you immediately think “Do I have a crossdomain.xml file to allow this?” so you then go check and if not it usually fixes it. Well, this is not the case all the time. I was trying to make a request and instead of http:// I typed http:/. By forgetting the second slash it threw a sandbox violation instead of just simply saying invalid url or something a bit more descriptive. Anyways thats my rant on non-descriptive error messages. They waste time!

20
Aug

Motorcycle Stolen!

It pretty much says it in the title. My motorcycle was stolen today around 12:20 PM in broad daylight from the front of the mall parking lot. It was ridiculous. I walked into the mall and came out 20 minutes later to find my motorcycle gone. I immediately thought I had been towed, but unfortunately that was not the case.