Open Source CF Part I - CF Eclipse

by allen 5:01 pm Monday, 14 March 2005.

I am lucky to have met up with Mark Drew at the Ben Forta UKCFUG meeting last month. 

This Thursday, we are kicking off the first of three seminars this year on ColdFusion and the Open Source community. 

Part I will be focused on CFEclipse.  Mark, it ends up, is one of the developers on the CFEclipse project.  He has done some very interesting work with integrating CFEclipse and FuseBox.  He will join us at the meeting to demo some of the work he has done and answer some questions.

The seminar will be an informal introduction to the Eclipse Tool Platform with a special focus on CFEclipse.  I’m also going to be walking through some best practices in development with Eclipse - ways to speed up your development.

If you new to Eclipse and are looking for a fast and very sophisticated tool to help your development, or if you have been using Eclipse and want to test your knowledge, this evening is for you.

I hope to see you there!

(more…)

Comments (0)



Blog Comment Security Code Implemented

by Niklas Richardson 2:00 pm Thursday, 3 March 2005.

So I’ve just implemented the SCODE anti-comment-spam plugin for MovableType.

To get the correct libraries, use the ppm install app which comes with ActivePerl and the following commands:

ppm> rep add UWinnipeg http://theoryx5.uwinnipeg.ca/ppms/
ppm> search GD
ppm> install GD

You can skip the search GD command, but it’s good to check that it’s found.

Then follow the rest of the installation notes that come with SCODE.

I also found this blog entry useful, however a bit cryptic!!

Enjoy!

Comments (0)



ActionScript 2 in ColdFusion MX 7

by Niklas Richardson 12:07 pm .

So, if you’re already started using the Flash Forms in CFMX 7 and you are writing AS2 (ActionScript2) in some of the Form controls to do more advanced “stuff”, then you’re probably getting tired of writing all your AS2 in one line in the onChange=”", etc… attributes.

I’ve been using a small little trick to get around the unreadability of writing your AS2 code in one line by using CFSAVECONTENT.

Here’s a snippet:

<cfsavecontent variable="actionscript">
if (actionslist.dataProvider.length == 1 && actionslist.dataProvider[0]['Action'] == null)
{
var gridPos = 0;
}
else
{
GridData.insertRow(actionslist);
var gridPos = actionslist.selectedIndex;
}

actionslist.dataProvider.editField(gridPos, 'Action', action.text);
actionslist.dataProvider.editField(gridPos, 'ActionByWhom', actionbywhom.text);
if (clientagreed.selected == true)
actionslist.dataProvider.editField(gridPos, 'ClientAgreed', 'Yes');
else
actionslist.dataProvider.editField(gridPos, 'ClientAgreed', 'No');
actionslist.dataProvider.editField(gridPos, 'ClientNotes', actionnotes.text);
</cfsavecontent>

I then just do the following in my CF tags:

<cfinput type="button" name="AddAction" value="Add Action" visible="Yes" enabled="Yes" onclick="#actionscript#"/>

I love this technique as it’s like my own little script block for ActionScript, and I dont’ have to cram all my AS onto one line! Yikes!

Enjoy!

Comments (0)