UKCFUG: Coldpsring and Model Glue 2 Presentation tonight!

by Niklas Richardson 10:02 am Thursday, 22 June 2006.

Mark Drew will finally be presenting ColdSpring and Model Glue 2.0: Unity tonight at the UKCFUG after two (!) re-shedulings. We got there in the end.

This is going to be an interesting presentation as nearly 90% of it doesn’t even touch ColdFusion code but Mark will still be creating an application faster than you have ever seen.

This is a must-attend presentation to get yourself informed on some advanced ColdFusion frameworks that will change the way you code.

Sign up for the presentation over at the UKCFUG website and join Mark Drew and myself for a beer afterwards too!

p.s. Yeah, I know this looks like Mark’s post! ;-)

Comments (0)



Adobe Developer Week Sessions now live.

by Neil Middleton 7:21 pm Wednesday, 21 June 2006.

Yup, finally, Adobe have made last weeks sessions available to everyone who couldn't make the original live sessions (i.e those of us not in the U.S)

The Adobe Engagement Platform
Introduction to Developing with Flex
Introduction to Adobe LiveCycle
Building Flex Apps with Flex Builder
Flex Data Services
Building Killer RIAs? Meet: Adobe's Next-Gen Technology
Architecture and Overview of Adobe's Security Model
ColdFusion Powered Flex
An Introduction to Adobe LiveCycle Workflow and Qpac
ActionScript 3 for Flash Developers
Looking for IT Agility, Sizzling Apps & Fast Processes
ColdFusion and Model Glue
Using InDesign Server with Flex
Building Applications using LiveCycle and Flex
Flex and AJAX Better together
Smart Client Architecture and Processing Models

Comments (0)



Running Apache and IIS 6 together on the same server

by Niklas Richardson 5:11 pm Tuesday, 20 June 2006.

We have a Windows Small Business Server at work, which we wanted to install Subversion onto. We therefore wanted to run Apache on the same server. However, IIS is also installed on the same machine for Small Business Server purposes so I couldn’t just remove IIS.

I had added multiple IP addresses to the server so that IIS could have one and Apache could have another (so they could both run on port 80). However, I ran into the problem that IIS was taking control of all IP addresses on port 80 and so Apache wouldn’t start. It seems that IIS 6.0 has a “feature” called Socket Pooling that claims all ports for all loaded IP address (even if not configured in IIS) - nice! So IIS had control of the port 80 on the IP address I had assigned to Apache.

Do not fear - there is a workaround:

  1. Extract the httpcfg.exe utility from the support tools area on the Win2003 CD.
  2. stop all IIS services: net stop http /y
  3. have IIS listen only on the IP address I’d designated for IIS: httpcfg set iplisten -i 192.168.1.253
  4. make sure: httpcfg query iplisten (the ip’s listed are the only ip addresses that IIS will be listening on and no other)
  5. restart IIS Services: net start w3svc
  6. start Apache service

You’ll then find that Apache and IIS will then play nicely together and run on the correct ports on the correct IP addresses. Woo hoo!

Note: Thanks to agrikk on p2p.wrox.com.

Comments (27)



Flex 2 Puzzle No 3

by Neil Middleton 4:31 pm .

Real quick test this week due to lack of time on my part, but still something that puzzled me somewhat coming from a CF background.

Quite simple. How do I evaluate something in Flex?

e.g The equivalent in CF:

Comments (0)



Flex 2 Puzzle No 2: The Answer(s)

by Neil Middleton 2:17 pm Thursday, 15 June 2006.

Another puzzle down, and again, a whole load of good answers and feedback. Hopefully some of you are learning something from this.

The answers I am using today are from Kevin Hoyt as they provide the clearest examples of the way to do things. They are also the closest to what I had. This code can be downloaded in a zip file from here.

Ok, lets break this down into two parts. The “Please Select” prompt, and the formatting of the select items.

1) Please select

Some of you spotted the very easy way of doing this, i.e via the mx:ComboBox “prompt” attribute. This gives you the ability to provide a string as the selected element until another item is selected. At this point, the Prompt value is removed.

So what if you want to have the item showing all the time, i.e you want to add an element that has meaning, but is not returned from the webservice? Well, this is where we need to treat the combo as what it really is, an array of objects. By manipulating this array, we can perform pretty much anything we want on it. We can reformat values, we can add or remove values etc etc. If you take a look at the source of squirrelFixed.mxml you will notice a function doPrompt(). This function creates a new object, then sticks it into element 0 of the categories arrayCollection. Due to the bindings, this essentially has the same effect as adding it to the combo.

So why the arrayCollection? Well, these come in handy for quite a few things, mainly being able to manipulate some data without having to do anything fancy such as reinvoking a webservice. Try to think of an array collection as an array of structures in CF.

2) Reformatting the options

Easy one this, that a lot of people made extra complicated for themselves. The key? The labelFunction attribute of mx:ComboBox. This little gem lets Flex redirect an object to a given function that then returns a string containing the label. The benefit of this is that you do not need to pre-process this label, or save it off anywhere in another object. You simply process the labels when you need to see them. Cool huh? For an example, take a look at squirrelPrompt.mxml and categoryMerge(). Notice that this is only talking in the context of the single object passed in (which happens automagically).

So in summary, I hope that this has pointed out that Flex usually provides a neat simple way of doing most things, you just need to look through the API's. And secondly, that if something doesn't quite fit, you can take it on yourself and do it your own way.

Stay tuned next week for the next test.

Comments (0)


Older Posts »