Friday, November 9, 2007

jEdit MXML and ActionScript 3 edit modes

http://ubergeek.tv/code/jedit_actionscript_edit_modes.zip

I've been using these for a while and figured that I should put my mxml edit mode up for the world to enjoy. The actionscript mode was written by others, but I'm including it for completeness.

The mxml mode is just the xml mode but with:


  • Syntax Highlighting of Actionscript with CDATA tags.

  • If an attribute has some data binding, it shows up as a different color.



Not a huge change, but its quite nice to make things extra legible.

When installing PLEASE NOTE:
With jEdit closed, delete the file ~/.jedit/recent.xml to clear your recent files listing. You must delete this to see the changes take effect for mxml files in the recent files list.

To install:

Unzip the files to your ~/.jedit/modes directory. If you already have custom modes, modify your catalog xml to include the two modes inside the catalog xml given.

Happy Coding!

Wednesday, November 7, 2007

Facebook Developer's Garage - Phoenix - Nov. 14th

Nov 14th at the Tempe Center for the Arts in Tempe, AZ Terralever is hosting a
Facebook Developer's Garage. Highlights of the event include a presentation by Dave Morin of Facebook on the platform and a detailed look at the evolution of the Red Bull Roshambull application by Nate Warner of Red Bull. I will be giving a short presentation on Flash integration for Facebook also.

We have been able to expand the number of seats available to 200. Please
register if you want to go, as there is a very good chance this will fill up. Plus say hi if you do!

http://www.terralever.com/Facebook-Developers-Garage-Phoenix/

Tuesday, November 6, 2007

Deja Vu and Reverse Psychology

Here's an interesting conversation that I had last night at a barbecue:

'Yeah, I hear that Linux desktops may hit 1% of the market soon...'

'Interesting...so how are they tracking that?'

*shrug*'I think that they're planning on tracking installs on the hardware so that they have a better idea.'

'What on the new Dell Linux PCs?'

'No, those other linux pcs.'

'The XO Laptop?'

'No, the other ones'

'The Asus ones?'

'Yeah.'

Regardless, the following hardware review for the Asus EEE PC came out of right field:

I have been waiting for the eee pc since I saw a blurb about it in, of all places, Vogue. They were pushing it as a computer that fits in your clutch, and since I travel a lot, I was salivating.

I am writing on it now, and I am just thrilled with it. It does indeed fit into my purse (it's about the size of a small-ish notebook or journal) and my wifi connection worked right away when I opened it up. I've been using the battery for about 2 hours so far and it's still at 40% power, so that looks promising.


...

WHAT?!

Did I miss something? Since when are Linux computers featured in Vogue? Since when do people give glowing reviews for Linux hardware on Amazon?

And since when does my sister print out a Tux pumpkin stencil for Halloween?

But this reminds me of a point in my life from a long time ago. A point where I looked around and said 'there's no way that people are actually going to start using the internet, but boy it would be cool if they did'.

So now I'm thinking, 'There's no way that people are actually going to start using Linux, but boy it would be cool if they did'.


UPDATE Nov 7, 2007:
Great article on Forbes regarding the Asus Eee PC and the technical, cultural, economic hurdles involved: http://members.forbes.com/global/2007/1112/024a.html

Also, my friend Scott has almost simultaneously blogged about the XO Laptop!

The idea virus is go!

Wednesday, October 31, 2007

How to determine if you're running Leopard in Flash

One of those things that's just right in front of your face:


import flash.system.Capabilities;
trace(Capabilities.os);


Returns 'Mac OS 10.5.0'. Hallelujah.

Monday, October 29, 2007

File Upload on Leopard

I've spent a good amount of time today trying to work out this surprise issue. Ironically I got a new macbook pro this weekend...and boy it sure came in handy for a reason I did not anticipate.

File upload is stupendously broken in Flash, on all browsers, on OS X Leopard. As details come out I'll see what I can learn here. We have been searching for potential fixes here today, for some of our applications depend heavily on this feature.

First I found this little post here, and then in the comments of Mike Chamber's Blog people are also experiencing this issue with AIR. Lastly there is this forum post that shows that Adobe has become aware of the issue:

This issue has been addressed and will be implemented in the next release of Flash Player. Regards,

Darren J. McNally,
Technical Support Engineer, Adobe
Flash/Flash Player Support


My first thought is that while its nice that they're going to fix it, I think this needs to be addressed now. I mean, like, right now. Big companies are going to lose money on this. People expect consistent functionality, and this is a real showstopper bug on a big feature.

So far I've looked at the headers being sent by Firefox and Safari to see if there is any useful information:

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.8) Gecko/20071008 Firefox/2.0.0.8

And Safari:

User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-us) AppleWebKit/523.10.3 (KHTML, like Gecko) Version/3.0.4 Safari/523.10

So as you can see, we can tell....that we're on a Mac. Of some sort. Not very positive so far. Hopefully some more useful information should follow.

Tuesday, June 5, 2007

Come work with us!

We just updated our jobs page at work with some new positions. We're looking for great people to work with, including contractors, that are interested in doing kickass work for great clients.

http://terralever.com/about-us/careers

The flash positions are in the Phoenix or Tucson areas. All other positions are in the Phoenix area.

Peace!

Friday, June 1, 2007

Facebook Platform API for AS3, and group.

I mentioned briefly that we're building an api for working with Facebook's new Platform. As part of the 'release early, release often' open source mantra, we're releasing what we have right now. Its not fleshed out, but I think that the model that we've built is extensible and easy to use.

Download the API here

Our Facebook Group with more information, documentation, etc.


Here's some of our current features -

Authentication- The Facebook object handles authentication and security automatically. Its transparent, you just don't have to think about it.

Ease of use- Authentication can either be 'desktop' or 'web' style. This essentially means that you can test your app locally in desktop mode, and then deploy it web style. Our current testing model is to check a configuration xml to see what our authentication style should be:


if(configXML..mode == "desktop")
{
//start us up in desktop mode
var config_api_key:String = configXML..api_key;
var config_secret:String = configXML..secret;
fBook.startDesktopSession(config_api_key, config_secret);
}
else
{
//start us up in widget mode
fBook.startWidgetSession();
}

And so we deploy a different configXML file on our server which doesn't contain our secret for use in 'widget' mode, but we can test the flash locally, dramatically speeding development time!

Proxy support - When developing a Facebook application, you'll want to pass all requests to the Facebook API through your server for security reasons. This server should just mimic the Facebook api, and work in the same way:

fBook.useRedirectServer = true;
fBook.rest_url = configXML..redirect_server_url;

Extensibility - The Facebook AS3 object is extensible. This means that you can extend your proxy on the server with new methods, and extend the Facebook object with new FacebookDelegates to handle your application-specific service calls.


What we're currently looking at improving is fully implementing the Facebook API. After that we'll be adding more helper functions to improve the usability of the api. Things such as automatically grabbing all images in an album, etc.

Enjoy!!