Marcos Placona Blog

Programming, technology and the taming of the web.

Category: CFML – 101 (page 1 of 3)

My series of ColdFusion, CFML, Railo for beginners

Object-Oriented Programming in ColdFusion

Reading time: 1 – 2 minutes

I know it must be pretty old news by now that Matt Gifford has written a book called Object-Oriented Programming in ColdFusion.

I’ve been approached by the folks at Packt last week and asked to read it and write a review about the book.

I’m still waiting for it to be delivered, but will be writing the review as soon as I’m done with the book. In the meantime, you can have a sneak peek of the sample chapter or buy the book directly.

CFML 101 – Grouping arrays for column presentation

Reading time: 1 – 2 minutes

This is an idea I got from a Ruby on Rails extension called in_groups_of.
Basically the idea behind this method, is to be able to get an array of any size, and split it up in groups of arrays with smaller sizes.
One application that keeps coming back over and over again, is the ability to display tabular data in columns instead of rows.
Imagine the following array as an example:

<cfset ArrFruits = ["Orange", "Apple", "Peach", "Blueberry",
"Blackberry", "Strawberry", "Grape", "Mango",
"Clementine", "Cherry", "Plum", "Guava",
"Cranberry"]>

Continue reading

CFEclipse 1.3.5 – Bug found + workaround

Reading time: 1 – 2 minutes

Bug found on CFEclipse 1.3.5
(Photo: slowdown)

Earlier today, I posted about CFEclipse 1.3.5 being released. Right after doing that, I found this and tried reporting on track, but it wouldn’t let me register for some reason.

This will only work for newly installed CFE 1.3.5, as if you’ve already tweaked your install, you most likely “fixed” it.

After updating to 1.3.5, I’ve noticed that whenever I copied and pasted a tag, a bloody space (indent) would be added before the tag. While this helps, it’s a bit annoying when you’re pasting things that are not supposed to be indented.

i.e.
Let say you have:
<cfset tmp = true />

Continue reading

CFEclipse 1.3.5 Released

Reading time: 1 – 2 minutes

CFEclipse 1.3.5 Release news
(Photo: TalkingTree)

It just came to my attention that CFEclipse 1.3.5 has been released, and as usual I am a bit late announcing it.
From the what’s new page, we can see that loads have been added to it, but the highlights in my opinion are:

  1. Proposal Categories
  2. Function Proposals
  3. An option to automatically format code
  4. Occurrence marking, which will automatically highlight all the occurrences of a selected string
  5. Opening Files from the OS (CFEclipseCall)
Well done to the CFEclipse team!

Railo 3.1.1 released

Reading time: 2 – 2 minutes

Railo 3.1.1 Relased
Railo 3.1.1.000 has just been released and is available at www.getrailo.org
From the changelogs:

  • [ RAILO-163 ] cfexecute and arguments containing spaces (Linux)
  • [ RAILO-257 ] Railo will not start – start/stop shells contain ^M characters
  • [ RAILO-275 ] Binary arguments to Railo treated as array
  • [ RAILO-302 ] CFHTTP PUT sends corrupted binary data in body
  • [ RAILO-342 ] Query/Array Rows not Bracketed; on large volumes causes slow performance and poor UI [FDAPI]
  • [ RAILO-347 ] Unable to create remote clients in 3.1.0.024
  • [ RAILO-349 ] Mapping stripped from CFCATCH.MissingFile value
  • [ RAILO-356 ] Spelling Error in upgrade script
  • [ RAILO-359 ] Problem with CF_SQL_CHAR type
  • [ RAILO-360 ] XML lost when serializing an XML document to JSON
  • [ RAILO-361 ] java.util.Calendar
  • [ RAILO-362 ] ordered keys in struct dump
  • [ RAILO-364 ] Error when using cf_sql_numeric with floating number
  • [ RAILO-365 ] Query bracketing does not have correct row numbers in drill down [FDAPI]
  • [ RAILO-366 ] Misspelled struct key on exceptions
  • [ RAILO-368 ] serialize xml
  • [ RAILO-370 ] Query Exception Compatibility: SQL
  • [ RAILO-372 ] Query Exception Compatibility: Datasource

 
To update your current installation, simply access Railo Server Administrator, select the left item on the menu called “update“, and make sure the URL is set to be “http://www.getrailo.org“. Simply click update, and the available updates will be shown.
Click the button called execute updates, and wait for about 10 seconds while it does all the work for you.

Older posts