scandalz.net
 
 
 
BETA (Google AJAX Search)

Cold Fusion

This is where I'll put some of my cold fusion code snippets.

There has never been a better time to be a ColdFusion Developer

by Adobe Systems at 21:05 PM, 01/05/2009

Adobe® ColdFusion® 8 software is a must-have release for developers to create compelling internet applications that fit in today's enterprise environment. Now you can build rich and engaging application experiences for users that do more and look better faster than ever. There has never been a better time to be a ColdFusion Developer. Get the Free Trial

The Fusion Authority Quarterly Update Volume 2, Issue 4 is out now

by Fusion Authority at 21:05 PM, 01/05/2009

If you want your ColdFusion skills to be up-to-date then you need the Fusion Authority Quarterly Update. The current issue is all about Best Practices and Development Environments. Just what we all need. Order now

How do you guys deploy databases to shared servers?

by Jochem van Dieten at 20:08 PM, 01/05/2009

On Tue, Jan 6, 2009 at 12:52 AM, Mike Kear wrote:
> @jochem,   the reason you have to do the copy

I understand the technical challenge in implementing the workflow. My
question was more related to why you would want the workflow to work
the way it
[more]

For days now (well, days in man hours, today is my first day back from vacation), I've been struggling with an issue concerning Flex and BlazeDS. Specifically an issue with the Flex front end receiving messages being sent by BlazeDS. I finally found the answer today, but before I go on, please note I'm a bit fuzzy on the details here - all I know is that it worked and I'm about as freaking relieved as a developer can get. [More]

Ok, so I know "Validate Your Form Fields" is one of the ten commandments of web development, but even Jedis can screw this up at times. Here is a great, and maybe a bit subtle, example of something I screwed up in BlogCFC. [More]

Migration from ColdFusion 5 to ColdFusion 8 plus Dev issues

by douglas cohn at 03:38 AM, 01/05/2009

Thanks for the advice
>
>Yes, you can use CF Standard with any load balancer. You can't set up
>session replication with CF Standard, but you don't necessarily need
>session replication in a load balanced environment anyway.
>

>
>You are required
[more]

How to cfdump a single row in a query?

by Dave Watts at 03:19 AM, 01/05/2009

> I'm using cfloop to go through a query result set.  Some
> of the data is giving me trouble...is there a way to use
> cfdump to dump out the contents of the current row in the
> recordset?

No, I don't think so. There's no object that corresponds
[more]

Return JSON from a CFC

by Raymond Camden at 02:21 AM, 01/05/2009

On Mon, Jan 5, 2009 at 9:00 PM, Joe <joe_tseng@hotmail.com> wrote:
> The reason I'm making a web service is b/c I want the JSON to be parsed by
> jQuery.  Are you telling me client-side Javascript can handle CFCs?

jQuery doesn't read WSDL (afaik).
[more]

Return JSON from a CFC

by Joe at 02:08 AM, 01/05/2009

The reason I'm making a web service is b/c I want the JSON to be parsed by
jQuery.  Are you telling me client-side Javascript can handle CFCs
[more]

How to cfdump a single row in a query?

by AJ Mercer at 02:04 AM, 01/05/2009

try myQuery[myQuery.CurrentRow]

2009/1/6 Pete Ruckelshaus <pruckelshaus@gmail.com>

> I'm using cfloop to go through a query result set.  Some of the data
> is giving me trouble...is there a way to use cfdump to dump out the
> contents of the
[more]

How to cfdump a single row in a query?

by Pete Ruckelshaus at 01:50 AM, 01/05/2009

I'm using cfloop to go through a query result set.  Some of the data
is giving me trouble...is there a way to use cfdump to dump out the
contents of the current row in the recordset?

Thanks

Pete
[more]

Return JSON from a CFC

by Raymond Camden at 01:46 AM, 01/05/2009

You don't want to call your local CFC with ?wsdl. That's the web
service URL. You want to just call the CFC with it's normal name, and
pass the method and the returnFormat argument. So your url should be
something like:

url="my.cfc?method=
[more]

Migration from ColdFusion 5 to ColdFusion 8 plus Dev issues

by Dave Watts at 23:24 PM, 01/04/2009

> Their other site had 3 server running CF5 enterprise.  Only 1 server was
> public and the others were the dev server and an internal administration
> server.  They want to move to a lb site with 2 server using Radware units
> they own already.  I was
[more]

How do you guys deploy databases to shared servers?

by Mike Kear at 23:00 PM, 01/04/2009

@jochem,   the reason you have to do the copy is because without
system administrator privileges, you cant use any of the features
built in to SQLServer - you can use backup/restore,   you cant use the
copy database wizard, you cant use the synchronise
[more]

Migration from ColdFusion 5 to ColdFusion 8 plus Dev issues

by douglas.cohn at 22:55 PM, 01/04/2009

I can use some advice please.

I am working with a client that has been running CF5 enterprise since before
2000.  They had one site running on a 10 server farm on NT4 and they were
all licensed copies obviously.  They used Cluster Cats for Load
[more]

How do you guys deploy databases to shared servers?

by Jochem van Dieten at 22:02 PM, 01/04/2009

On Mon, Jan 5, 2009 at 1:30 AM, Mike Kear wrote:
> I'm heartily sick of the tedious way I have to spend half a day or
> more EACH WEEK uploading and downloading databases from my
> SQLServer2005 web sites.

The thing I don't understand is why you
[more]

Best performace/practice for storing temp data

by Matt Robertson at 22:01 PM, 01/04/2009

Whatever you do, don't take ease of programming your solution as a
valid way to look at the problem.  You are talking about a cart
checkout process.  The payoff to your client's entire business model.
Paramount is making something that will not step on
[more]

Personalizing a CFLoop - validation error- fixed

by cfcom at 21:45 PM, 01/04/2009

I separated the Recipients and Senders into two different tables and the
validation error resolved. Thanks so much!

-----Original Message-----
From: webmaster@pegweb.com [mailto:webmaster@pegweb.com]
Sent: 2009-01-05 4:28 PM
To: cf-talk
Subject
[more]

Personalizing a CFLoop - validation error

by cfcom at 21:39 PM, 01/04/2009

It's more like a newsletter, except it's not sent out by site owner to all
the members - but from individual that is filling out the form. So have to
personalize apx. one hundred different members on list of 'TO'  and end it
personalized in the 'FROM
[more]

Best performace/practice for storing temp data

by Glyn Jackson at 21:29 PM, 01/04/2009

I think a struct in a session is so much easier first you dont have to worry about cleaning up the database after the uses has finished or if the user drops out you dont have to create tasks to find redundancy data. you can have just as much hassle
[more]

How do you guys deploy databases to shared servers?

by John M Bliss at 21:13 PM, 01/04/2009

Red-Gate's answer to this (for SQL Server) is
http://www.red-gate.com/products/SQL_Comparison_SDK/ (I think)

No, I do not work for Red-Gate.  :-)

On Mon, Jan 5, 2009 at 4:00 PM, Matt Robertson <websitemaker@gmail.com>wrote:

> An unhelpful
[more]

How do you guys deploy databases to shared servers?

by Matt Robertson at 21:08 PM, 01/04/2009

An unhelpful observation:

I just migrated a guy off of SQL Server and onto mySQL so we could
handle this sort of thing so much more smoothly.  SQLYog has a
command-line utility you can schedule that will do as many one-way or
two-way synchs as
[more]

Return JSON from a CFC

by Judah McAuley at 20:58 PM, 01/04/2009

I recall reading a blog posting that mentioned that CF returns
non-standard JSON by default. Its a more compact design but required a
custom data reader for the Ext library. While that isn't jQuery, it
might help you to your goal:

http://blog.
[more]

Best performace/practice for storing temp data

by Matt Robertson at 20:57 PM, 01/04/2009

What Dave said about client scope and db rows.

For my own cart I wound up using client variables.  I felt they were
more survivable than session vars.  Restart CF and lose your session
vars... bad news on a shared server where the host might have an
[more]

Personalizing a CFLoop - validation error

by brad at 20:45 PM, 01/04/2009

Agreed.  If you are having problems finding the offending record, just
wrap a try around the cfmail and output that record in the catch.

I am slightly confused as to exactly what you are building.  At first I
assumed it was something like an "E-mail
[more]

Personalizing a CFLoop - cfmail validation error

by cfcom at 20:38 PM, 01/04/2009

No still throwing validation error. For the most part the application is now
working - if I can only eliminate the error.

-----Original Message-----
From: Rob Parkhill [mailto:robert.parkhill@gmail.com]
Sent: 2009-01-05 4:20 PM
To: cf-talk

[more]

Personalizing a CFLoop - validation error

by webmaster at 20:36 PM, 01/04/2009

The only reason it should give you that error is if there is an empty
email for one of the records. Try dumping out the same query to a
cfoutput to verify.


-----Original Message-----
From: cfcom [mailto:cfcom@aceligent.com]
Sent: Monday,
[more]

Updated CF Evangelism Kit Posted

at 20:31 PM, 01/04/2009

ColdFusion Product Marketing Manager, Kristen Schofield, has announced (a few weeks ago) that she has updated the "ColdFusion Evangelism Kit" to include competitive information and more.

Personalizing a CFLoop - validation error

by cfcom at 20:30 PM, 01/04/2009

Ok, I'll try.

-----Original Message-----
From: Rob Parkhill [mailto:robert.parkhill@gmail.com]
Sent: 2009-01-05 4:20 PM
To: cf-talk
Subject: Re: Personalizing a CFLoop - validation error

I know this will sound odd, but put them on separate
[more]

Personalizing a CFLoop - validation error

by Rob Parkhill at 20:28 PM, 01/04/2009

I know this will sound odd, but put them on separate lines... so this:
<cfmail to="#GetRecipients.recip_email#"  from="#form.sender_email#"
subject="My Message To You 2009"  >

becomes this:

<cfmail to="#GetRecipients.recip_email#"
            
[more]

Personalizing a CFLoop - validation error

by cfcom at 20:22 PM, 01/04/2009

They all have email addresses, I just don't know why it's throwing the
validation error on the CFMail 'TO'. I want to send out to about 100
different addresses, is there any issues with that?

-----Original Message-----
From: Billy Cox [mailto:
[more]

Personalizing a CFLoop - validation error

by Billy Cox at 20:15 PM, 01/04/2009

How about amending your query to only return results that have an email
address?

-----Original Message-----
From: cfcom [mailto:cfcom@aceligent.com]
Sent: Monday, January 05, 2009 3:01 PM
To: cf-talk
Subject: RE: Personalizing a CFLoop -
[more]

Personalizing a CFLoop - validation error

by cfcom at 20:08 PM, 01/04/2009

I added four columns to database; 'recip_firstname, recip_lastname,
recip_title, recip_email'. Now all the 'sender and recipient' data in the
same table of db, but I keep getting an error:

//Attribute validation error for tag CFMAIL.
//The value of
[more]

Return JSON from a CFC

by brad at 19:32 PM, 01/04/2009

Ok, first of all to get the obligatory warning out of the way.. you need
to be careful with your use of preservesinglequotes().  You're opening
yourself up for a doozy of a SQL injection attack with the searchparam
variable which isn't being sanitized
[more]

Personalizing a CFLoop

by webmaster at 19:25 PM, 01/04/2009

I would just do something like this then.

<CFQUERY NAME="GetRecipients" DATASOURCE="#DataSource#">
SELECT * FROM Recipients
</CFQUERY>

<cfloop query="GetRecipients">

<cfmail to="#GetRecipients.Email#" from="#sender_email#"
subject="My
[more]

Personalizing a CFLoop

by webmaster at 19:20 PM, 01/04/2009

I would just do something like this then.

<CFQUERY NAME="GetRecipients" DATASOURCE="#DataSource#">
SELECT * FROM Recipients
</CFQUERY>

<cfloop query="GetRecipients">

<cfmail to="#GetRecipients.Email#" from="#sender_email#"
subject="My
[more]

Personalizing a CFLoop

by Rob Parkhill at 19:15 PM, 01/04/2009

well in your original post, your list contained only email addresses.
If you are going to do a list with a pairing of information (ie Name, email,
name, email, name, email)  I would think that going with a 2d array as brad
suggested would make your
[more]

Personalizing a CFLoop

by cfcom at 18:56 PM, 01/04/2009

Not sure if I have this right. Some of the recipients Names are not used in
their email, such as ('Mark Jones', 'manager@zzz.com') How would that
structure work?

<cfset fisttoat = find(#recipient#, '@')>

<cfset firstname = left(#recipient#, #
[more]

Return JSON from a CFC

by Joe at 18:50 PM, 01/04/2009

All,

I recently created a small CFC returning query results in JSON format.  The
querying works, the regular CF page is able to call the CFC as a WSDL page
properly passing params, and I am getting back JSON-like content.  However I
have been
[more]

Personalizing a CFLoop

by brad at 18:32 PM, 01/04/2009

Lists are pretty one-dimensional.  They basically just store a single
string at each index (and I don't really like lists in lists).  What you
have is groupings of related data.  (name, e-mail)

I would graduate up to a two-dimensional array or a
[more]

Lots of folks have been asking for the cool ColdFusion Rocks t-shirt (originally designed by eBoy for the AIR Launch poster, and tweaked for a special MAX 2008 t-shirt design). Adam Lehman has announced that he is giving one of these t-shirts away every day in January, see his post for details.

Phill Nacelli On Adobe Labs

at 12:19 PM, 01/02/2009

Not sure how I missed this one, but ... AboutWeb's Phill Nacelli posted his rendition of Adobe Labs.

This week the Camdens decided to take a little field trip down to Avery Island, also known as the place where Tabasco is made. (By the way - do note they are a ColdFusion site!) While there, we did the factory tour, which is really just a long commercial, but pretty darn interesting none the less. I had no idea they used old whiskey barrels to help prepare the peppers. [More]

Flasher Magazine As A Video Podcast

at 09:18 AM, 01/02/2009

Lee Brimelow's new Flasher Magazine is now also available as a video podcast.

structClear and Sessions - Still bad?

at 05:31 AM, 01/02/2009

In yesterday's blog post about cflogout, sessions, and the back button, there was a passing discussion about the structClear function and sessions. Phillip Senn asked if it was safe to use it on the session scope. It seems like it should be as long as you remember that this will not end the session but simply clear the current values. [More]

Steph has a few questions/concerns about cflogout, sessions, and the back button. His email to me was: Hi Ray, What's the best practice for logging out users using cflogin and cflogout? I'm using CF7, and I cant figure out how to workaround the following issues listed in livedocs: [More]

My New Years Resolutions

at 08:01 AM, 01/01/2009

I'm keeping my 2009 resolutions nice and simple so that I can - you know - actually achieve some of them instead of failing horribly. So in no particular order, here is what I'd like to accomplish this year. [More]

2009 Is Going To Be Fun ...

at 07:34 AM, 01/01/2009

Terry Ryan's post yesterday got me thinking. 2009 does indeed look like it'll be a lot of fun. We've already started talking about Centaur (aka ColdFusion 9), Bolt (the CF IDE), Gumbo (aka Flex Builder 4), Catalyst (aka Thermo), and there's more we've not discussed yet. Humm, I think it's time to start scheduling a massive usergroup tour. ;-) So, Happy New Year to all. And get your rest, you're going to need it!

Terry Ryan Predicts 2009

at 19:31 PM, 12/31/2008

Terry Ryan has posted his 2009 predictions, several of which pertain to ColdFusion. And while I won't confirm or deny any of his comments, it's good to see folks get excited in anticipation of Centaur and Bolt.

Happy New Year!

at 17:16 PM, 12/31/2008

While it is still a bit early (frankly I'll be happy to make it till EST New Years) I thought I'd wish folks a Happy New Years while I still have a modicum of typing ability left in me. Be safe, and have fun everyone.

Just a quick note to share that RefreshingApps.com (I need to bookmark this site!) has reviewed the Broadchoice Workspace: Broadchoice Workspace - team collaboration on AIR Don't forget, you can download Workspace right now and give it a test drive:

A few days ago I posted a blog entry discussing a method to allow someone to browse thousands of records within a form. The blog entry made use of ColdFusion 8 built-in Ajax technology. I promised a jQuery version and I finally got around to it. (Reminder - I'm still rather new to jQuery so this code does not represent best practice. Well, probably not. If it does, I'm unexpectedly brilliant.) [More]

Ratings added to CFLib

at 07:06 AM, 12/30/2008

This morning I pushed up ratings to CFLib. CFLib used to have ratings some time ago, so this is actually an old feature coming back. I used the same jQuery plugin that SlideSix uses (http://php.scripts.psu.edu/rja171/widgets/rating.php). To be honest, I really don't like this plugin. Turning off the cancel was a pain in the rear. I would have used the Spry rating widget instead, but I really wanted to give jQuery ratings a try. At the end of the day though it works, so I'll leave it be. One nice thing about it though - I can pass it a rating value of X.2 and it rounds it down to X starts. Pass it X.5 and it correctly shows a half star. Later this week I'll be adding a right hand list of the top rated UDFs. Oh, and in case folks are curious, I did not add any protection from multiple voting. I originally used code that stored your rankings in a session variable. I turned that off during testing and didn't bother re-enabling it. I figure it someone is so bored they want to cheat their UDF up, more power to em. ;)

Fellow Adobe Platform Evangelist, Lee Brimelow, has launched his new project, Flasher Magazine. Issue 1 is online now.

The title says it all. We held an uberpanel (my silly name for a group of ColdFusion experts) at the CFUnconference during MAX 2008. Brian Meloche ran it and recorded it for his CFConversations podcast. You can get the recording here: CFConversations 26, Roundtable 10 - 12/30/08 - MAX 2008 Day 3 podcast of the ColdFusion Uber Panel Enjoy.

Marc Esher On Speeding Up Eclipse

at 18:08 PM, 12/29/2008

Developers seem to either love or hate Eclipse, few are neutral on the subject. But, like it or not, Eclipse is an important part of our lives as the platform on which Flex Builder is built, and is about to become an even bigger part of our lives when "Bolt" is released. The most frequent Eclipse gripes are related to performance, and so Marc Esher's post entitled Speeding Up Eclipse caught my attention. Marc offers a few practical suggestions that are worth a quick read. But, equally useful, are the comments on his post.

RIAForge Milestone

at 17:23 PM, 12/29/2008

Woot. I just approved project number 600 at RIAForge. For those who are stat happy like me, some other items I track are... Total Active Projects: 600
Total Views: 6,295,475
Total Downloads: 410,802
Total Verified Users: 4,549
Updates in past 24 hours: 2
Unique Logins in past 24 hours: 19
New users in past 24 hours: 29
The uptime has been pretty good too, although I just checked ServersAlive and it seems to be down. The product seems cool, but is very difficult to setup via RDP. You would think they would improve that, but I found quite a few people having issues with the setup. I thought I had it set up well, but I guess not. I can't complain too much as it didn't cost me anything, but, meh. I think I may go low-tech and simply set up a scheduled task from my server here to ping RIAForge every 30 minutes.

Ok, forgive the overly dramatic title. This week will be a bit slow for blogging. I'm off work and just puttering round with the wife and kids doing, well, nothing much, which is pretty fun. (Although I'm doing some fun updates to Soundings.) I have a favor to ask of my readers and I hope you guys can help. I've got a simple survey I'd like you to fill out: 2008 Survey It covers this blog and a few of my community sites (but not RIAForge or my OS stuff). I'm looking for feedback and what I can do better in 2009. Now - if you are like me (and I hope to God you are not), you don't like to criticize something you get for free. It's like getting a meal from someone learning to cook. If most of the food was great but one side dish tasted like warmed over poo, you probably wouldn't say anything. Unfortunately that doesn't help the prospective chef prepare better food. (This example sounded a lot better in my head before I wrote it down.) So with that in mind, I'd definitely appreciate the honest feedback. If you are reading this you obviously care about the blog so anything you can do to make it better will help the community out as well. (If I may be so bold to count this site as a community resource!) Thanks. I'll have more thoughts on 2008, and 2009, as the week goes on. I'll warn folks now that most of the content this week will probably be less tech, more OT, but I'm going to make the most of this vacation!

Finding Trends in Internet Security

at 08:45 AM, 12/29/2008

As a new year approaches we must prepare for new Internet security threats. Every year, new and innovative ways of attacking computer users emerge and continue to increase in volume and severity. To know where we are going it is helpful to look at where we have been. Finding trends in Internet security has become a valuable, if not necessary, action for companies developing software to protect computer users.

read more

cf.Objective() 2009 Registration Open

at 18:03 PM, 12/27/2008

cf.Objective has rightfully earned a reputation for quality content appealing to the higher end of the ColdFusion developer spectrum. cf.Objective() 2009 has been scheduled for May 14-16, 2009 at the Hyatt Regency Minneapolis, MN. Registration is now open.

What was "THE" game for you this year?

at 15:56 PM, 12/27/2008

2007 was a banner year for video games, at least for me. With Bioshock, Call of Duty 4, Mass Effect, and Halo 3 all coming and all being, in general, "big" games, it was a great year for the consoles. (I didn't do any PC gaming at all last year.) I'm not so sure about this year.
[More]

It's been a while since I blogged about Transfer, but I finally got time to look into caching and performance issues with Transfer. I'm pretty impressed by what I've found. If I had known about some of this back when I was working on CFLib 2008, I probably would have done things quite a bit differently. (In fact, I may take a look at re-building things a bit and blogging about the changes.) Here is a quick summary of some of the things you can do to improve performance issues with Transfer. [More]

The Deccan Herald is the largest English-language daily newspaper in the Indian state of Karnataka (home to Adobe's Bangalore office). The Deccan Herald is running a story entitled Top 10 Web platforms of 2008, and Adobe AIR is #3 on the list. eWeek in the U.S., The Deccan Herald in India, ... where next?

Check Out Peldi's Balsamiq

at 18:13 PM, 12/22/2008

Many of you probably remember Peldi (aka Giacomo Guilizzoni) from his appearances at MAX events. Peldi spent 6 years at Adobe where he worked on Connect and more. I bumped into him at MAX in Milan, and we chatted briefly about his new company and product, and he gave me his card. Over the weekend I had the chance to tinker with his latest creation, Balsamiq Mockups, a utility used to create screen mockups. This is a fun little app. The UI is very slick, the included controls are extensive and highly configurable, and the app is available as a desktop application (courtesy of AIR) and as a plug-in for poplar web apps. He's posted online demos that explain the app better than I could in a few words here, so check it out.

Use Dreamweaver to build and use a simple CFC.

AIR Makes eWeek Top 10 Of 2008

at 19:51 PM, 12/20/2008

eWeek has published it's list of The Top 10 Products of the Year, and the very first listed is Adobe AIR, concluding: "The product that comes closest right now to the true vision of this next-generation Web application is Adobe AIR. Descended from Flash, AIR makes it possible to build powerful and interactive applications that have all of the benefits of both Web and desktop apps (such as offline capabilities, in the latter case)."

How do I parse RSS feeds?

at 06:33 AM, 12/20/2008

RSS is a form of syndication in use by almost all blogs and many other types of web sites. It is a simple way to list, via XML, the latest content that has been updated on a web site. While parsing XML isn't difficult in ColdFusion, to work with RSS you have to have a good understanding of both the multiple "flavors" or RSS in use today as well a deep understanding of how the content is encoded within the XML. Luckily ColdFusion makes this relatively easy with the <CFFEED> tag. As a si...

How do I create RSS feeds?

at 06:33 AM, 12/20/2008

The <cffeed> tag can be used to both read and create RSS feeds. To create an RSS feed, you need two things. First you need the data that will provide the content for RSS feed. Next you need a set of properties that define the RSS feed. Let's begin by getting the data for the feed. <cffeed> supports generating a feed from a query or structure. Most people will want to use a query, so let's begin with that: select ...

Check Out Adobe Hair

at 06:34 AM, 12/19/2008

No, that's no a typo, Adobe Hair it is.

Speaking At Flex Camp Chicago

at 06:04 AM, 12/18/2008

Flex Camps are small highly focused events, usually one or two days in length, concentrating on Flex, AIR, and related technologies. Chicago is hosting Flex Camp Chicago on January 22-23, 2009. This event boasts a pretty compelling speaker lineup, including fellow Adobe evangelists James Ward and Kevin Hoyt, as well as well known names in this space, including Michael Labriola, Jeff Tapper, and Mike Nimer. I plan on attending and presenting an opening session. Registration is required.

AIR 1.5 Available For Linux

at 05:59 AM, 12/18/2008

The AIR team has announced the immediate availability of AIR 1.5 for Linux.

Dynamic image manipulation with ColdFusion

by Adam Lehman at 00:12 AM, 12/15/2008

Learn some of the native image manipulation features in ColdFusion 8.

Cloud computing promises to change much of how we as developers, designers, and architects currently design and build web applications. For one, concurrency is big issue that need to be addressed if the apps of the next decade are going to scale on this cloud infrastructure.

read more

Consider all the items when architecting ColdFusion high availability applications.

Working with PDF forms in ColdFusion

by Adam Lehman at 00:11 AM, 11/24/2008

Learn how to programmatically prepopulate and extract data from PDF forms with ColdFusion on the server.

Developing Facebook applications with ColdFusion

by Ray Camden at 00:11 AM, 11/17/2008

Build your first Facebook application with server-side ColdFusion code.

Reading conference speaker's agreements may reveal some interesting gems. Since I don't have a PR agent, I have to make the following public statement by myself: "I'm not going to damage anyone's reputation (including developers of PureMVC framework) for abuse of design patterns. I'm ready to buy a beer to any Adobe Flex team member who can convince me that LCDS is that much better than BlazeDS."

read more

Using Ajax to retrieve data from ColdFusion

by Adam Lehman at 00:10 AM, 10/20/2008

Leverage ColdFusion data using Ajax with the built-in functionality of ColdFusion 8.

Since its emergence, Web Service technology has gone a long way towards perfecting itself and finding its right application in the real world. With the maturity of the specifications, Web Service technology, with its power of interoperability, is now the major enabling technology of SOA, which is being adopted by more and more enterprises to build their application integration infrastructure.

read more

An introduction to ColdFusion frameworks

by Mark Mandel at 00:09 AM, 09/29/2008

Decide which ColdFusion framework or combination of frameworks is right for you.

Developer spotlight: Giorgio Natili

by Giorgio Natili at 00:09 AM, 09/02/2008

Meet Giorgio Natili, picked for his use of Flex, Flash, Flash Media Server, and ColdFusion to build great user experiences.

Get the basics and theory of clustering high availability as it pertains to ColdFusion.

How do I create a query by hand?

at 07:33 AM, 08/14/2008

Most (but not all) ColdFusion queries come straight from the database, but there are times when you need to work with a query without using a database. Whether for debugging or other purposes, it is sometimes useful to be able to create a query manually. To create a query, you use the queryNew() function. This takes two arguments. The first argument is required and is a list of column names. The second argument is option and is a corresponding list of data types for the columns. If you use this ...

SQL Injection attacks are one of the easiest ways to hack into a website. One recent hack, using a script from verynx.cn, involves injecting sql into a web form that then appends some JavaScript code into fields in a database that then gets executed on the client side when a user views a database-driven page.

read more

CF does not offer an easy way to compare two single dimension arrays. The most common solution involving looping through one array and comparing each item to the second array. It is a complicated and messy solution. Actually there's a very simple way of comparing two arrays using CF's underlying java. According to a recent blog by Rupesh Kumar of Adobe (http://coldfused.blogspot.com/), ColdFusion arrays are an implementation of java lists (java.util.List). So all the Java list methods are ava...

Use the listLast() function. #myExt#

Event Gateways: Directory Watcher Open the ColdFusion Administrator and go to "EVENT GATEWAYS/Gateway Types". ColdFusion comes with a few predefined Gateway Types one of them being "DirectoryWatcher". Now select "Gateway Instances" under the "EVENT GATEWAYS" heading in the left-hand menu. Create a new directory somewhere on your server to host the CFC and Configuration files that will handle your new Gateway operation. For example: C:\Inetpub\wwwroot\com\company\services\dw 1. Inside...

How do I get information about a file?

at 06:40 AM, 07/18/2008

Use the getFileInfo() function. GetFileInfo returns a structure with the following information: filename, path, parent directory, type, size, when the file was most recently modified, whether the file has read permission, write permission, and is hidden.

Use <cfpop> with the action attribute set to 'getall' and the attachmentpath attribute set to the directory on your server that you want to save any attachments. You can then loop over the resulting query object to perform any other required logic such as logging the attachment information ...

Use <cfpop> with the action attribute set to 'delete' and the messagenumber attribute or uuid attribute set to the message you wish to delete. This entry was based on a suggestion by Stefan Leroux

What does the AJAX community want from future browsers? How are these different requests prioritized? Web developers have done amazing things with AJAX for both Web 1.0 and Web 2.0 applications, but what barriers need to be removed to enable the next generation of browser-based innovations? The future of AJAX runtime environments matters more than ever today.

read more

Many people use database tables with autonumber primary keys. These are columns (typically named "id") that the database will provide a value for by simply adding one to the last highest value. So if the last record inserted had an ID value of 5, the next will be 6. (Note that this isn't always true. You can't assume the next value will be one over the last highest value.) If you need to find out what value was used for the primary key, ColdFusion provides a simple way to do that. To use thi...

AJAX is about a rich user interface that is not just reactive but also pro-active; it's about content, perhaps socialized (user-generated) content; and it's about pain-free deployment, with loosely coupled services.

read more

Food Dial is not just a book of recipes. Here's the big idea - you came back home, tired and hungry. Start the Food Dial application and open the fridge. Here's the red pepper. Turn the dial with food categories...

read more

Easy rich Internet applications with ColdFusion 8

by Scott Stroz at 00:07 AM, 07/07/2008

Step-by-step instructions guide you through building your first RIA\'a simple user manager application.

Easy rich Internet applications with ColdFusion 8

by Scott Stroz at 00:07 AM, 07/07/2008

Step-by-step instructions guide you through building your first RIA\'a simple user manager application.

Easy rich Internet applications with ColdFusion 8

by Scott Stroz at 00:07 AM, 07/07/2008

Step-by-step instructions guide you through building your first RIA\'a simple user manager application.

Yahoo & Microsoft: Week 21

at 05:45 AM, 07/06/2008

On Tuesday TechCrunch and CNet, based on the usual 'sources,' reported that talks between Yahoo and Microsoft were back on, stories that prevented Yahoo's desperate, bewildered, shuttlecock stock from dropping below the 20-dollar barrier and landing in the high teens where it was when Microsoft entered the picture on February 1. It was certainly headed in that direction.

read more

Red Hat Numbers Up

at 05:30 AM, 07/03/2008

Red Hat saw earnings rise 6.6% to $17.3 million, or eight cents a share in its first fiscal quarter ended May 31 on revenue up 32% year-over-year and 11% sequentially to $156.6 million. EPS was dead flat year-over-year. Subscription revenue was $130.7 million, up 27% year-over-year and up 7% sequentially. Training and services were up 64% to $25.9 million.

read more

Novell announced it is collaborating with VMware to improve Linux performance in VMware environments by incorporating support for the VMware Virtual Machine Interface (VMI) into the SUSE Linux Enterprise kernel. Demonstrating their commitment to provide open interoperability and optimization for virtualized environments, the companies have worked together to optimize SUSE Linux Enterprise for the VMware platform.

read more

A panel of experts and executives from organizations that are leading providers and consumers of technology will discuss trends and important technologies for enterprise and Internet computing. The experts will discuss the role of databases and database technology trends that enhance SOA and Web development. The session will also focus on preferred solutions for architecture and middleware to enable applications and services to access data from SQL and other data sources.

read more

VirtenSys has developed a PCI Express based I/O technology that virtualizes and shares off-the-shelf I/O adapters among multiple physical servers without the need for adapter, device driver, or server modifications. This technology is a critical capability that will accelerate adoption of the VirtenSys PCI Express I/O virtualization products. The cost effective VirtenSys products improve I/O utilization to greater than 80 percent; enhance throughput, and reduce I/O cost and power consumption by as much as 50 percent. The products also simplify data center management by dynamically allocating, sharing, and migrating I/O resources among servers without physical re-configuration, resulting in reduced Operational Expenses (OpEx).

read more

Mule is an open source Enterprise Service Bus (ESB). Designed to support high-performance, multi-protocol transactions between heterogeneous systems and services, Mule provides the basis for service oriented architecture (SOA). With a standards-based, zero intrusion approach to existing infrastructure and a simplified development model, Mule adapts to your environment and prevents vendor lock-in. The open source model allows organizations to achieve rapid ROI, and open access to source code enables developers to customize Mule to readily meet their needs.

read more

Data center architects naturally seek to employ server virtualization to maximize the use of their hardware systems. An often overlooked factor that can undermine this goal is data connectivity. 75 to 95 percent of the response time now associated with database access can often be attributed to the data connectivity layer - and that's using traditional, non-virtualized servers. Running multiple virtual servers on a single machine can introduce additional complications involving data access. This presentation will examine the importance of data connectivity in a virtualized environment, and the need to take an intelligent approach to data access in order to truly reap the benefit of a virtualization strategy.

read more

One aspect of the debate over software productivity and assembly is whether or not visual tools can help. I think that they do - visual abstractions can be very meaningful - but I do not know of any visual system that actually solves the complete problem (i.e none have solved the customization/round trip problem). UML tools are furthermore too object oriented for some applications - such as services and REST.

read more

Build a ColdFusion-powered Flex application

by Ben Forta at 00:06 AM, 06/09/2008

Ben Forta shows you how to use ColdFusion wizards to create a ColdFusion-powered Flex application without writing a single line of code.

rPath announced that the U.S. Department of Energy (DOE) and the European Organization for Nuclear Research (CERN) have been using rBuilder to deliver virtual appliances to both scientists' desktops and computational clouds. The use of rBuilder in these environments reduces the effort required to support users and allows researchers to take advantage of underutilized computational resources.

read more

Announcing the Flex Cookbook Cook Off contest

by Amy Wong at 00:06 AM, 06/02/2008

Bask in the glow of helping your fellow developers during O\'Reilly\'s contest, and you might win some great prizes too.

While SOA can deliver dramatic cost reduction of an organization's business operations, it is a complex, multidisciplinary undertaking, and therefore introduces significant risk. This session presents a list of the most important risk factors and ways to mitigate them BEFORE it is too late. The session will be of interest to anyone planning an SOA initiative, primarily CIOs, Technical Managers, Project Directors and Technical Architects.

read more

SOA is mostly associated with technologies such as BPEL, SCA and Web Services. But does SOA really imply these technologies? In this session we will show how you can use the service oriented approach while staying inside the Java world. jBPM is a powerful lightweight framework that can be used to orchestrate services in the broadest sense. It is highly extendable, very versatile and can be easily embedded in client and/or server applications. Attendees will learn how jBPM can be used in a pure workflow scenario as well as in a situation involving automated business steps.

read more

Service Oriented Architectures (SOA) can deliver tremendous value in flexibility, adaptability and cost savings. But SOA environments are complex by definition, with lots of loosely coupled components and a potentially vast combination of platforms, software, databases, applications and networks. One of the biggest challenges inherent in realizing the benefits of SOA is effectively managing all of these diverse components to ensure the high availability and performance of the applications running in them to meet crucial Service Level Agreements (SLAs). This session will explore Complex Event Processing (CEP) engines and offer practical insights into how CEP can be leveraged to enable rapid real-time problem correction and predictive problem prevention that is vital to successful SOA implementations.

read more

Ruby on Rails 2.1 is Very Close

at 11:30 AM, 05/28/2008

Nearly four years after its initial release, Ruby on Rails is edging ever closer to version 2.1. Rails 0.5 was released June 24 of 2004, and its creator David Heinemeier Hansson hopes that v2.1, currently in release candidate state, will be out any moment. 'We've been adding a ton of extra deliciously nice goodies in preparation of its release,' blogged Heinemeier Hansson just last month.

read more

But that same virtualization is perhaps even more valuable in the performance lab, if you can apply serious load testing to it. The constraints of having a realistic environment and test data to test and develop against is holding these teams back from finding performance issues much earlier - so we can gauge SLAs (service levels) at the component level. And in SOA - where you are dealing with services and underlying systems that are distributed and constantly changing, replicating that whole environment is incredibly costly and time consuming.

read more

Can Windows Save OLPC?

at 11:00 AM, 05/23/2008

Despite hisses and boos from the open source side of the house One Laptop Per Child (OLPC) is now officially soldered at the hip to Microsoft. Its novel XO laptop is supposed to go to trials in a half-dozen developing countries next month fitted with XP and a student version of Office and it expects to have a dual-boot Windows-Red Hat version ready by October.

read more

Office will support the Open Document Format (ODF) 1.1 format when Office 2007 Service Pack 2 arrives in the first half of 2009. Microsoft said users will be able to open, edit and save documents in ODF from directly inside Office application without having to install any other code. That means no more translators. They will even be able to set ODF as the default.

read more

Neocleus announced a suite of trusted virtual solutions for endpoints such as desktops and laptops. The solution, Neocleus Trusted Edge, provides the means for employees, partners and customers to connect to corporate resources from any endpoint regardless of its state of security. Neocleus Trusted Edge is also a solution to come to market leveraging Neocleus' hypervisor open source contributions which include enhancements the company made to the Xen Hypervisor to work directly on endpoints.

read more

I am going to go ahead and contend that although a good number of ColdFusion developers can grasp and understand Flex very well, there are also a good number of ColdFusion developers who have no business going anywhere near Flex. Why do I say this? I am a big fan of Flex. I use it daily to create, what I think are, some kick-ass applications. It is a powerful tool that really changes the game on the web and the desktop. That being said, it is not a tool that every ColdFusion developer can grasp.

read more

Object-Oriented programming: Using inheritance wisely

by Hal Helms at 00:05 AM, 05/12/2008

A Java programmer explores the rich, powerful OO features in ColdFusion and explains why the technical reasons why it's one of the most productive programming choices out there.

Building an IM Bot Using ColdFusion

at 10:45 AM, 05/07/2008

I recently brought a Google Talk bot that I put online at cfdocs@gmail.com. Google Talk users can add this user to their buddy list and then submit CFML tag and function lookups to it. (I've also brought Yahoo IM and AIM versions online as nickname cflivedocs, but more on those shortly). In this column I'll explain exactly what the IM bot is and what it does, and show you how to easily create a bot of your own.

read more

If you read CF-related blogs, you've undoubtedly stumbled upon discussions of seemingly arcane subjects like continuations or closures or first-class objects or absence of side effects. It's likely bloggers have tracked down the source - some would say fount - of such concepts and you'll find them waxing eloquent. As they should.

read more

Taking advantage of 64-bit support ColdFusion 8

by Manjukiran Pacchhipulusu at 00:04 AM, 04/07/2008

Learn about the newly supported feature that makes your ColdFusion apps run faster and hold more data, and puts supports your apps in an enterprise-ready environment.

The wait is coming to an end. We are working feverishly to get the open source version of BlueDragon into the wild on the 3rd of May 2008 at cf.Objective(), when Vince presents his BOF. Vince will illustrate the first public open source version of BlueDragon. This will including the building of it, the deployment and other items of interest. If you want to be among the first to witness this, then get over there.

read more

New Atlanta will