ColdFusion Weekly Version 2.13 - April 23, 2007 - The "Rough Week for ColdFusion" Edition

The "The Rough Week for ColdFusion" Edition

Introduction & Comments

  • What Matt's been up to:
  • What Peter's been up to: 
    • Attended a funeral
    • Had a Mach-II coding party with Kurt

CFReport - at 11:30

Konference Korner - at 33:22

  • CFUnited is June 27 - 30 in Bethesda, MD
      This week's entry code is ... listen to the podcast for this week's code!
  • MAX 2007--pricing announced
  • ApolloRanch - a free mini-conference on Apollo in Boulder, CO on Saturday, May 5th from 5-11:30pm

CF_Quiz - at 38:30

  • Version 2.10 - Deadline: Saturday, April 21, 2007
    • Be a human CF compiler. This is a brain teaser so resist the urge to fire up a scribble page to test. Can you spot the five errors?
      <cffunction name="funkyMethod" access="public"        returntype="struct" output="false">        <cfargument name="someStruct" type="struct" required="true"/>            <cfset var coolThings = "" />            <cfloop collection="arguments.someStruct" index="i">
      <cfif arguments.someStruct[i] EQ "cool" />          <cfset ListAppend(coolThings, i) />       </cfif>    </cfloop>            <cfreturn coolThings /></cffunction>
    • Winner: Matt Osbun!
    • Answer:
      1. the stucture to be looped over in the collection attribute needs #'s around it
      2. looping over a struct with cfloop uses item NOT index
      3. the var i for the loop has NOT been var'ed
      4. the returntype for the method has been defined as struct when you are really returning a string
      5. ListAppend doesn't modify the list, it returns the original list of the value you wanted append. You must assign it to a variable.
      6. Bonus (Accidental error) - The <cfif> tag was closed "/"
  • Version 2.11 - Deadline: Saturday, April 28, 2007
    • You're looping over a query with cfloop and you want to highlight ever over row of data so you need to know which row number is getting outputted (using the MOD trick). What variable tells you this when using cfloop with a query? Hint, Livedocs is missing this!
  • Version 2.13 - Deadline: Saturday, May 5, 2007
    • Another programming exercise! Matt ran into this at work and thought it would be interesting to see how other people would solve this problem.

      Assume you have an array with n number of elements, and you want to retrieve a random number of elements from this array. The random number you want to retrieve is less than n, but greater than 1, and you cannot retrieve the same element twice. So for example, let's say your array has 10 elements in it and you want to retrieve 5 random elements, but none of these 5 can duplicate one another. How would you do that?

  • Want to win? Skype user cfweekly or call us at 469-293-3820.

CFExit Music

A Window Seat by The Exchange

(download)

ColdFusion Weekly Version 2.12 - April 16, 2007 - The "Matt Flies Solo" Edition

The "Matt Flies Solo" Edition

Introduction & Comments

  • What Matt's been up to:

CFReport

Konference Korner - at 2:46

  • cf.Objective()
  • CFunited this week's giveaway code is... listen to the podcast for this week's code! You have 2 more chances to win!
    • Conference is June 27th - 30th in Bethesda MD
    • The (new) winner of the (regifted) CFUnited Pass for March is ... Justin Kay!

CF_Quiz - at 5:17

  • Version 2.10 - Deadline: Saturday, April 21, 2007
    • Be a human CF compiler. This is a brain teaser so resist the urge to fire up a scribble page to test. Can you spot the five errors?
      <cffunction name="funkyMethod" access="public"
              returntype="struct" output="false">
              <cfargument name="someStruct" type="struct" required="true"/>
              
          <cfset var coolThings = "" />
              
          <cfloop collection="arguments.someStruct" index="i">
             <cfif arguments.someStruct[i] EQ "cool" />
                <cfset ListAppend(coolThings, i) />
             </cfif>
          </cfloop>
              
          <cfreturn coolThings />
      </cffunction>
  • Version 2.11 - Deadline: Saturday, April 28, 2007
    • You're looping over a query with cfloop and you want to highlight ever over row of data so you need to know which row number is getting outputted (using the MOD trick). What variable tells you this when using cfloop with a query? Hint, Livedocs is missing this!
  • Want to win? Skype user cfweekly or call us at 469-293-3820.

CF_HotSeat with Brian Rinaldi - at 7:33

Bonus CF_HotSeat with Ed Slack - at 50:14

CFExit Music

Three Squares by Ed Slack and the Slackestra

(
download)

Not So Weekly This Week - April 9, 2007

As Matt and I mentioned on the last podcast, there's no weekly this weekend.  We will draw the winner to the second and last ticket to cf.Objective() on Sunday and notify the winner via email.  We'll announce the winner on the next podcast.  Be sure get your last entry in if you haven't done it yet and keep an eye on your email -- maybe you'll win!

Matt & Peter

ColdFusion Weekly Version 2.11 - April 2, 2007 - The "Peter's Old, But Matt's Older" Edition

The "Peter's Old, But Matt's Older" Edition

Introduction & Comments

  • What Matt's been up to:
    • MachBlog final coming out either this weekend or very early next week. Yes, there's more to do, but we'll get 1.0 out and start adding stuff immediately thereafter. Next on the list are my CFUG app and BoardFusion
    • Lots and lots of work-related stuff
    • Just got back from the kite festival here in DC--very cool to see hundreds of kites flying around the monuments. And yes, I forgot my camera.
    3. Won't have a show next week since it's Easter weekend, however we'll do a short 5 minute show announcing the winner of the 2nd (and last) pass to cf.Objective()
  • What Peter's been up to:
    • Celebrating my birthday - I'm a fools baby
    • Talked with Kurt about Mach-II 1.5 (at my party at that) and the things the last things that need to be finished before cf.Objective()

CFReport – at 7:39

Konference Korner – at 32:43

  • MAX 2007 blog online
  • CF_Quiz – at 39:31

    • Version 2.09 Winner - Michael Wright of Leeds, U.K.!
      • Another historical question. ColdFusion used to be spelled with a "space" between cold and fusion as in Cold [space] Fusion.. What version of Allaire ColdFusion did this they remove the space and change to the current camel-case spelling of ColdFusion (all one word)?
      • ANSWER: Allaire ColdFusion 4.0
    • Version 2.10 – Deadline: Saturday, April 14, 2007
      • Be a human CF compiler. This is a brain teaser so resist the urge to fire up a scribble page to test. Can you spot the five errors?
    • Version 2.11 – Deadline: Saturday, April 21, 2007
      • You're looping over a query with cfloop and you want to highlight ever over row of data so you need to know which row number is getting outputted (using the MOD trick). What variable tells you this when using cfloop with a query? Hint, Livedocs is missing this!
    • Want to win? Skype user cfweekly or call us at 469-293-3820.

    Wrap Up – at 45:11

    CFExit Music

    In Summary The Exchange

    (download)