Blog

Railo can do array notation from method calls

Posted by Luis Majano
Apr 06, 2009 00:00:00 UTC
I just found out about this by trying it out and thought wow, FINALLY!

Let's say I have a method that returns an array. Example below:

As you can see, a very simple example. So now, in my code outside my method I want to be able to access let's say item number 3 from the method call and the key called awesomeLevel from the structure call. Then I can do this:

item3 = getArray()[3];

MyAwesomeLevel = getStruct()['awesomeLevel'];

How cool is that, finally!! Array syntax from method calls.

Railo and multi-variable assignments rock!

Posted by Luis Majano
Apr 03, 2009 00:00:00 UTC
I found a neat little feature in Railo 3.1 which I myself is calling multi-variable assignments.

Let's say you want to assign a value to multiple variables in coldfusion. You would usually do this:

Name = "Luis Majano";

ColdboxAuthor = Name;

CodexAuthor = Name;

AwesomenessAuthor = Name;

That is really neat right, well, Railo makes it fun!

Name = "Luis Majano"

ColdboxAuthor = CodexAuthor = AwesomenessAuthor = Name

How about that!! I can assign values to multiple variables, by just concatenaning the equals. Keep exploring Railo and you will find some nice hidden gems.

Railo goes open source and sporting new looks!

Posted by Luis Majano
Mar 31, 2009 00:00:00 UTC
I am so glad to see this day as CFML becomes open source. Railo has just gone open source and WOW!! What an incredible engine. Not only that, but they are sporting 3 new websites:

The websites look phenomenal and we also get a documentation website powered by Codex. I wonder who did the initial documentation?

You can download the open source version of Railo from their nice downloads page.

CFUnited Early Bird Ends Soon

Posted by Luis Majano
Mar 31, 2009 00:00:00 UTC
Get your registration going for CFUnited 2009 as the early bird registration is ending soon. They have also provided a great manager's guide of why YOU should attend and why YOUR manager should let you. So please download it here.

You can also register for our CBOX-100 Pre-Conference ColdBox Training class while you are there. Register Now!!

Railo 3.1 Supports Optional Semicolons

Posted by Luis Majano
Mar 31, 2009 00:00:00 UTC
Wouldn't you know it? Railo 3.1 supports optional semicolons! I totally love this syntax enhancement as my cfscripting can become even less noisy by adding those pesky semi-colons. How cool is this:

/* Start Exporter */

sqlBuffer = createObject("java","java.lang.StringBuilder").init('')

/* Create Function Namespace */

createNamespace(fncNamespace)

/* Read fnc Library */

xmlDoc = xmlParse(expandPath('web-cfmfunctionlibrary_1_0'))

fncXML = xmlSearch(xmlDoc,"//function")

fncXMLLen = arrayLen(fncXML)

I like this! No more noisy semi-colons. Just beware that if you are doing multiple statements on a single line, you will actually HAVE to put in the semicolons.

function formatnow(){ return "#dateformat(now(),"yyyy-mm-dd")# #timeformat(now(),"HH:mm:ss")#"; }

A part from that, I love it!

Speaking at OCDev in April

Posted by Luis Majano
Mar 16, 2009 00:00:00 UTC
I will be attending the OCDev's User Group meeting on April 8th and talking about ColdBox. So please mark your calendars and hopefully you can attend!

http://ocdev.org/post.cfm/ocdev-april-meeting-coldbox-platform-more-than-mvc

Review of Flex vs Silverlight Debate at Cal Poly Pomona

Posted by Luis Majano
Mar 10, 2009 00:00:00 UTC

I completely forgot to post about this and post a link to the event we hosted at Cal Poly Pomona last month between Adobe and Microsoft. The debate was excellent and we had great attendance for the IECFUG. We where able to get more students and interest in our ColdFusion User Group and hopefully get to recruit some more after an awe inspiring presentation by Kevin Hoyt.

Unfortunately, I won't say anything bad about Microsoft because I won a copy of Vista Ultimate! :) (hmm, what did I do with it?)

If you want to see the video for yourself and see how the debate was laid out see who won, check this link out:

http://video.csupomona.edu/streaming/Events/FutureOfComputing.html

Paging in MSSQL 2005-Greater? Help

Posted by Luis Majano
Feb 19, 2009 00:00:00 UTC
I wanted to shoot out on this as I do not use MSSQL 2005 and greater too much and need help on what would be the best and great way to do record paging. I am so used to this in MySQL and you can see a sample of MySQL below:

SELECT SQL_CALC_FOUND_ROWS

Users.user_id, Users.user_fname, Users.user_lname, Users.user_email, Users.user_isActive

FROM wiki_users as Users

WHERE Users.user_isActive =

LIMIT ,

SELECT found_rows() AS foundRows

First of all, do you see any problems with this approach?

Second, how would I reproduce this in MSSQL?

ColdBox 2.6.3 is now available

Posted by Luis Majano
Feb 15, 2009 00:00:00 UTC

ColdBox 2.6.3 was released today and you can now download it from the main coldbox website.

This version tightens up the new features introduced into 2.6.2 and actually did more optimizations and cleanup.  So you will see that the core size has actually been reduced in this release (Go figure!!).  We have also introduced some nice enhancements to the new features introduced in 2.6.2 and you can read all about it in the What's New Document for 2.6.3.  You can also read all about the fixes and optimizations in our Latest Release Notes.

ColdBox Training at CFUnited 2009

Posted by Luis Majano
Feb 14, 2009 00:00:00 UTC
We will be holding a pre-conference training at CFUnited 2009.

Below you can find information about the course and how to register.

What is CBOX-100?

Intro to ColdBox is an intense 1-day training course that will get you started with ColdBox Application Development. This course focuses

on the main aspects of ColdBox Development and it delivers a one-two punch to get you started.

Event Details: http://www.coldboxframework.com/index.cfm/events/cfunited-2009-cbox100


Registration: https://secure.teratech.com/training/classReg.cfm?TrackID=361

Pre-conference classes are a separate cost from the main CFUnited event.

Location:

Lansdowne Resort and Conference Center.

Date:

August 11, 2009

Hours:

9:00am - 5:30pm

Food:

Breakfast, Lunch, and fully replenished snacks and beverages are provided throughout the day.

Cost:

$549

Seats per class:

20

Extras

  • Free wireless Internet
  • Includes all materials and Certificate of Completion
  • ColdBox Schwag

Site Updates

Archives

Entries Search