Sunday, March 21, 2010    
Home My Books Blog ColdFusion About Me Back    

Calendar
<< Jan 2009 >>
S M T W T F S
        1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
             

Search

Categories
 • Acrobat (3) [RSS]
 • Adobe (90) [RSS]
 • AdobeMAX06 (45) [RSS]
 • AdobeMAX07 (59) [RSS]
 • AdobeMAX08 (66) [RSS]
 • AdobeMAX09 (39) [RSS]
 • AdobeMAX10 (1) [RSS]
 • AIR (219) [RSS]
 • Appearances (191) [RSS]
 • Books (72) [RSS]
 • CFEclipse (15) [RSS]
 • ColdFusion (1381) [RSS]
 • Data Services (34) [RSS]
 • Fish Tank (5) [RSS]
 • Flash (197) [RSS]
 • Flex (498) [RSS]
 • Home Automation (5) [RSS]
 • Jobs (116) [RSS]
 • JRun (14) [RSS]
 • Labs (43) [RSS]
 • LiveCycle (34) [RSS]
 • MAX (232) [RSS]
 • Mobile (120) [RSS]
 • Regular Expressions (17) [RSS]
 • RIA (21) [RSS]
 • SQL (40) [RSS]
 • Stuff (536) [RSS]
 • Tips (CF Studio) (80) [RSS]
 • Tips (CF) (795) [RSS]
 • Tips (Dreamweaver) (91) [RSS]
 • Tips (Flex Builder) (2) [RSS]
 • Using CF (162) [RSS]

Other BLOGs
 • Charlie Arehart
 • Lee Brimelow
 • Ray Camden
 • Christophe Coenraets
 • Sean Corfield
 • Mihai Corlan
 • Cornel Creanga
 • Mark Doherty
 • John Dowdell
 • Danny Dura
 • Enrique Duvos
 • Steven Erat
 • Kevin Hoyt
 • Serge Jespers
 • Adam Lehman
 • Duane Nickull
 • Miti Pricope
 • Andrew Shorten
 • Ryan Stewart
 • James Ward
 • Greg Wilson
 • Full As A Goog

RSS Feeds
 • Feed
 • Subscribe

Join my mailing list and find out about new books and other topics of interest.

Thoughts, ideas, tips, musings, and pontifications (not necessarily in that order) by Ben Forta ...
NOTE: This is my personal blog, and the opinions and statements voiced here are my own.

Viewing By Day : January 13, 2009 / Main
January 13, 2009

AIR Based Now Boarding Is An Addictive And Fun Game

Now Boarding is an AIR based airline simulation game. You get to buy planes and destinations, build your terminal, ensure that your passengers are happy, and (hopefully) build an airline that is profitable. This is a really great sim, and the fact that it is AIR based just makes it better. But be warned, it's addictive and quite the time-waster (not that I'd know from personal experience, of course).


MAX 2009 Is A Mere 9 Months Away

I know, we just wrapped MAX in the U.S. and Europe, and MAX Japan is still a week or so away, but ... MAX 2009 is just 9 months away. And, believe it or not, I am already involved in MAX 2009 planning e-mail threads, which, truth be told, is cool and exciting and sick and twisted all at the same time!


CF9 Enhancement Slip

While demoing the ORM features in Centaur (CF9) and Bolt (the CF IDE) during the MAX keynote, I showed and executed some code, and this snippet appeared on the screen for a short time:

<cffunction name="getAJAXGrid" access="remote" output="false" returntype="Any">
    <cfargument name="page">
    <cfargument name="pageSize">
    <cfargument name="gridsortcolumn">
    <cfargument name="gridsortdirection">
    <cfif arguments.gridsortcolumn eq "">
        <cfset arguments.gridsortcolumn = "DESTINATION_ID">
    </cfif>
    <cfset var Destination = EntityLoad("Destination", {}, "#arguments.gridsortcolumn# #arguments.gridsortdirection#")/>
    <cfset var startRow = ((page-1)*pageSize)+1>
    <cfset var endRow = page*pageSize>
    <cfset var qry = querynew("destination_id,location,description")/>
    <cfset QueryAddRow(qry,arraylen(Destination))/>
    <cfif arraylen(Destination) lt endrow>
        <cfset endrow = arraylen(Destination)/>
    </cfif>
    <cfloop from="#startrow#" to="#endrow#" index="i">
        <cfset querysetcell(qry,'destination_id',Destination[i].getDestination_id(),i)/>
        <cfset querysetcell(qry,'location',Destination[i].getLocation(),i)/>
        <cfset querysetcell(qry,'description',Destination[i].getDescription(),i)/>
    </cfloop>
    <cfreturn QueryConvertForGrid(qry, page, pageSize)>
</cffunction>

I have now received three e-mails asking if that code was real or not. And the answer is yes, that is real code generated by Bolt, and it really was running in Centaur. Really! And yes, I know the code is not great (heck, it's not even that good, good thing we're not shipping yet).

But, you have to wonder, what made them ask? And did we inadvertently let a CF9 enhancement slip out of the bag? ;-)

  © Copyright 1997-2009 Ben Forta, All Rights Reserved