assertTrue is the professional blog of Luke Bayes and Ali Mills

REST on IT Matters from Thoughtworks

Posted by: Luke Bayes Fri, 18 Apr 2008 16:44:00 GMT

I recently discovered a great podcast that is put out by Thoughtworks. I can’t remember at the moment who turned me on to this thing (probably Ali), but it really is fantastic.

http://www.thoughtworks.com/what-we-say/podcasts.html

Podcast #4 “REST – Representation State Transfer” is well worth a listen. Especially for those of us that build SWFs and even more so for those of you that push for binary data protocols.

In a bit of a meta joke, there doesn’t seem to be a link directly to the REST entry, so as this post gets older, the link above will become less meaningful!

I’m sure much of this is old news to many of you, but some key points that I took away were:

Read more...

Tags ,  | no comments

Microsoft uses Flash for Video?

Posted by: Luke Bayes Wed, 01 Aug 2007 17:22:00 GMT

It looks like the folks over at MSN agree that SWF really is the best way to get video content in front of the most users!

Maybe this is just a switch for those of us on Mac?



This is probably old news to you, but Ali and I were pretty surprised.

Tags ,  | 1 comment | no trackbacks

Flex Builder 2 and Flash Authoring CS3 on OS X

Posted by: Luke Bayes Fri, 27 Apr 2007 20:44:00 GMT

Is it just me? or is this a strange decision?

After installing CS3, debugging in Flex Builder suddenly launches Flash Authoring and stops sending trace output to Eclipse.

Read more...

Tags , , ,  | 2 comments | no trackbacks

Flash Player 9 Installation errors on OSX intel

Posted by: Luke Bayes Sat, 25 Nov 2006 19:36:00 GMT

Those of you who know me might be surprised to hear that I purchased a Mac mini earlier this summer.

There were quite a few reasons for me to get a mac. Ali and I needed a modern mac for testing, I’m curious about OSX/Intel performance, I needed a home media center and didn’t want a giant, noisy box in the living room, I’m attracted to linux, and wanted a more friendly introduction than red hat, all the cool kids are doing it, I’m a sucker for pretty, shiny things…

If you ask Nancy, I’m sure she’ll tell you that my daily mac-bashing railing and ranting can be entertaining (at first)... I’m not going to get too far into that stuff here (for fear of being firebombed).

Overall, I think OSX is successful and even though my mini is brutally slow, I am convinced that it’s because I scrimped on RAM and it will be considerably faster once I outlay a few hundred bones to rectify the situation.

What I want to talk about here, is the truly awesome and simple work flow for installing the Flash 9 player on Macintel…

Read more...

Tags  | 16 comments

Firefox and Flash SWF selection and focus problems

Posted by: Luke Bayes Sat, 18 Nov 2006 01:02:00 GMT

Ali and I have been providing support for the past couple of months on a large application that we built and deployed earlier this year. We had an interesting bug filed today and I set about trying to address it.

The bug is this:

If I click around in the SWF application, and especially if I select a text input field at some point, I can no longer edit the Firefox Location bar (Address bar).

In addressing this issue, I immediately suspected our focus/selection management layer, then moved on to our TextInput controls, and eventually wound up scouring the web to see if anyone else reported the same problem. As it turned out, I still haven't found anyone else reporting this issue, but in my searching - I did discover the root cause.

It's the "wmode" parameter of the embed tag. As far as I can tell, this attribute can be set to "opaque", "transparent" or not set at all. Setting it with an empty value, or an unexpected one appears to default to the opaque behavior. NOT declaring it at all behaves very differently as I soon discovered...

I was surprised to find an issue with this setting because we're using the swfObject deployment package and it came highly recommended. As it turned out, there doesn't seem to be much the swfObject folks could have done, and by not declaring this property at all, they in fact chose the least of 3 evils...

After finding out about this attribute, I immediately set it to "opaque" in my embed tag and found that my bug disappeared. I was so excited I started integrating and was just about to check in to version control, when it occurred to me that this setting might actually have side-effects beyond the background opacity... As a last minute double-check, I began searching google for the meaning of this parameter and quickly learned that this seemingly innocuous little attribute was sitting on top of a giant mountain of subtle bugs...

Following are the side-effects that I discovered:

Read more...

Tags ,  | 6 comments

HaXe 1.05 Supports Flash Player 9!

Posted by: Ali Mills Thu, 17 Aug 2006 20:58:00 GMT

I just noticed that haXe 1.05 was released yesterday, and it now supports publishing to Flash Player 9. I’m impressed. Nicolas (of MTASC, the first ActionScript 2 Open Source free compiler fame) is a super-coder.

I haven’t tried publishing a Flash Player 9 SWF yet, but I will soon. Here are some haXe links:

Tags ,  | no comments

Flash Player 7 === Universally Available

Posted by: Ali Mills Wed, 02 Aug 2006 07:06:00 GMT

To make the most universally available application today (multiplatform / cross-platfrom / cross-software / cross-hardware) that runs on win, mac, and nix desktops; multiple palmtops; and all modern browsers, you need to publish to the Flash Player 7. That’s right, the SWF format that’s two versions old.

The most recent mobile phone player, Flash Lite 2.0, is based on the Flash Player 7, so by targeting Flash Player 7 you can develop for phones. Flash Player 7 also runs on Pocket PCs and is the most recent version of the player for Linux, so you also get Pocket PC and Linux support by deploying to it.

If you’re interested in developing a code-base that’ll be able to run in as many environments as possible, write that code-base in a language that will compile to Flash Player 7 bytecode. Languages to choose from today are ActionScript 2.0, C#, XAML, RVML, and haXe.

Have fun building the future today!

Tags  | no comments

Invest Regulary in Your Knowledge Portfolio

Posted by: Ali Mills Wed, 26 Jul 2006 06:30:00 GMT

I must have learned something from the first chapter of The Pragmatic Programmer by Dave Thomas (who’s probably better known these days for his contributions to the Ruby community through his publishing company and must-have book Programming Ruby) when I read it long ago. In that chapter, Dave’s 8th tip is to, “Invest Regulary in Your Knowledge Portfolio”. One of the ways he suggests doing so is to learn one new language a year. Well, this year I seem to be making up for years gone by, because I’ve been spending a lot of my extra time working with several different languages and their frameworks. This year, I’ve been working with – in order as of today – haXe, Flash Lite 1.1, Ruby, ActionScript 3.0, XUL, and the Nullsoft Scriptable Install System. I’ve been working with their frameworks Ruby on Rails, Flex, and XULRunner.

All of these languages are tools to build the kind of software that I’m interested in building: software that’s fun to write, easy to distribute, a pleasure to use, useful, and affordable. For software to be distributed easily and a pleasure to use has to be universally available. And, to be universally available it needs to be truely cross-platform – cross-software and cross-hardware. It needs to work on win, mac, and nix and also in a browser, on a desktop, and on a palmtop. Today, the best format to make software universally available is the SWF format. It’s undeniable, more people have the Flash Player than any other piece of software .

It is, granted, worth noting that some feel like traditional Java, non-traditional Java, Python, Ruby, .NET, and the Mozilla Foundation’s XUL are also acceptable tools to make available software, and depending on the goal, they’re correct. In many cases, these technologies can even enhance a SWF’s funcionality. For example, it’s possible to use Mozilla’s XULRunner as a desktop wrapper for SWFs, or if you’re really smart, to do what Rich Kilmer did and write a SWF view to a Ruby controller and Berkeley DB model. Rich gave me and Luke a sneak peak at his indi product at RailsConf, and we were blown away. The product is a great idea, and it’s built on an extremely smart and interesting architecture. Get indi when it’s available.

Invest regularly in your knowledge portfolio.

Tags , , , , , , , , ,  | no comments