Monday, November 26, 2007

Little fix for the Flight Reservation sample app for Flex Builder 3

I used to work on http://www.qantas.com and thought this might be a cool little thing to check out. In fact we had some small talks about Adobe Flex when I was there.

Anyway, I downloaded this sample app and discovered a small bug that prevented me from giving it a whirl. The following error existed :


1067: Implicit coercion of a value of type int to an unrelated type Array


Here's the code :

private function formatDistance(km:Number):String
{
var distanceConversionFactor:Number =
resourceManager.getNumber(MY_BUNDLE, "DISTANCE_CONVERSION");

return resourceManager.getString(MY_BUNDLE, "DISTANCE_FORMAT",
int(km * distanceConversionFactor));
}


This is my change :

private function formatDistance(km:Number):String
{
var distanceConversionFactor:Number =
resourceManager.getNumber(MY_BUNDLE, "DISTANCE_CONVERSION");

var result:Number = km * distanceConversionFactor;
var parameters:Array = new Array();
parameters.push(result);

return resourceManager.getString(MY_BUNDLE, "DISTANCE_FORMAT", parameters);
}


Matt

Thursday, November 22, 2007

Joel Johnson on the Fujitsu u810




I've been thinking about getting a Fujitsu U1010/U810. Really enjoyed this review.

Matt

Thursday, November 08, 2007

Flex Builder 3 CRUD App Generation Demo Video

By accident I stumbled across this cool little demo video of the CRUD app generation feature in Flex Builder 3.

It's pretty cool.

Seems to handle server-side code generation for J2EE, ASP.NET and PHP back-ends. As well as a nice little CRUD GUI for Flex at the front.

I haven't started yet but I wouldn't mind to investigate the feasibility of using this as a starter for beginning a more serious project. I've used such things before and things can get tricky when your data model relations get complex and code generation won't always translate them nicely.

Although can't comment yet.

Anyway, I wanted to make this link available here for friends alike.

Regards,

Matt

Friday, November 02, 2007

The Latin Library @ Ad Fontes Academy

Great resource for many classic writings in their original Latin text. Right here!

Matt