BlogCFC: Extend the life of your blog posts

If your a BlogCFC user but don't post too often, like me, then you've probably seen the following message pop up on your blog:

Sorry There are no blog entries available.

By default, BlogCFC shows only entries posted within the last 30 days. If you'd like to extend this, simply locate the tags folder in your BlogCFC root and find getmode.cfm. Around line 68 you'll find the following declaration:

params.lastxdays = 30

Simply change 30 to the number of days you'd like new entries to stay on the homepage and you're set, your blog will no longer look sad and abandoned.

Connecting Abobe AIR (beta) to Coldfusion via mx:RemoteObject

While Flex 3 and AIR are still in beta, there are lots of little bugs and quirks that need to be worked around. Today I was porting over a Flex application to AIR, and received an error whenever using mx:RemoteObject. It looked something like the following:

[RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://myApp-debug.swf/flex2gateway/'"]

I searched for hours and hours trying to find out why my application worked correctly as a regular Flex application but not as an AIR app. I finally stumbled upon the solution and I thought I would share... in order to save everyone else the same headache. The key is to explicitly specify the endpoint attribute in the RemoteObject tag. If you are testing locally it may look something like this:

<mx:RemoteObject id="AIR_Service"
     destination="ColdFusion"
     showBusyCursor="true"
     endpoint="http://localhost:8500/flex2gateway"
     source="myApp.cfc.cfcName">

This is something I hope Adobe will fix before the official release of both these applications, but in the meantime, here is your workaround.

A Huge Thanks to Ray Camden

I can't conscionably use this blog without giving credit to its creator – Ray Camden. If you're a Coldfusion developer, like myself, and want a great tool for creating and managing your blog, please check out BlogCFC. It a great application and Ray should be applauded for his time and effort.

Thanks Ray.

BlogCFC was created by Raymond Camden. This blog is running version 5.7.002.