Re: DirectoryExists sometimes returning incorrect value

2011-12-07 Thread Carl Von Stetten

Since DirectoryExists returns a true/false, you don't need the IS No 
part of the statement.  Also, DirectoryExists expects you to pass it a 
variable, so you don't need the quotes and pound signs around 
variables.dirpath:

cfif NOT DirectoryExists(variables.dirpath)
cfdirectory action=CREATE directory=#variables.dirpath#
/cfif

HTH,
Carl

On 12/6/2011 1:56 PM, Shannon Rhodes wrote:
 This appears to happen randomly, making it difficult to replicate.  Code will 
 error that looks like this:

 cfif DirectoryExists(#variables.dirpath#) IS Nocfdirectory 
 action=CREATE directory=#variables.dirpath#/cfif

 The error looks like this:

 The specified directory attribute value
 \\blah\AppDev\ParisDocs\blah\docs\
 could not be created
 The most likely cause of this error is that (above) already exists on your 
 file system.  The exception occurred during a cfdirectory action = 'CREATE'.

 The directory definitely exists and most of the time the code works.  What 
 can I look at to discover why DirectoryExists would return No when it should 
 be yes?

 Thanks in advance!

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348988
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


(ot) getting rid of Cold Fusion 1.5 user guide - blast from the past!

2011-12-07 Thread Steve Johnson

i know this is somewhat off topic - but i just discovered a blast from the past 
in a box and instead of throwing it away i figured i'd throw it on eBay in case 
anyone here wants it - currently only $5 shipped...

it's kind of funny to look through the old 1.5 manual - i counted a grand total 
of 17 tags - i bet it was much easier to get certified back then! ;-)

http://www.ebay.com/itm/330654407101

it also includes the poster - i definitely remember having one of those hanging 
in my cubicle back in the day.

boy do i feel old all of a sudden. :-)

steve

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348989
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DirectoryExists sometimes returning incorrect value

2011-12-07 Thread Claude Schnéegans

 The specified directory attribute value
\\blah\AppDev\ParisDocs\blah\docs\

What is the double \\ for?
Sometimes it is taken as equivalent as one single \, but some other time it may 
not.
This could explain why DirectoryExists says it doesn't but it is found when 
being created.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348990
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Builder - Cut/Paste Delay Problem

2011-12-07 Thread Cameron Childress

Mark / Eric - Both solid suggestions.  I may give some alternate tools a
look. Little annoyances like this add up over the course of a
day/week/month.  I used CFEclipse before CFBuilder was released but haven't
tried IntelliJ yet.  Maybe I should give it a shot.

Thanks!

-Cameron

On Tue, Dec 6, 2011 at 10:43 PM, Mark Mandel mark.man...@gmail.com wrote:


 I may be on repeat at the moment, but while it has it's rough edges, the
 CFML plugin for IntelliJ is quite nice. You can always evaluate that for 30
 days.

 I just switched to using that full time, and I'm quite enjoying it.

 Mark

 On Wed, Dec 7, 2011 at 1:38 PM, Eric Roberts 
 ow...@threeravensconsulting.com wrote:

 
  I got rid of CFBuilder and went back to CFEclipse...CFBuilder is still
 too
  buggy and clunky...
 
  Eric
 
  -Original Message-
  From: Cameron Childress [mailto:camer...@gmail.com]
  Sent: Tuesday, December 06, 2011 11:01 AM
  To: cf-talk
  Subject: Re: ColdFusion Builder - Cut/Paste Delay Problem
 
 
  That did clear up the problem, though I suspect it's only temporary.  I
  restart Eclipse at least once a day already and see this problem
  continuously.
 
  If anyone else has any ideas of what I might try disabling in Eclipse or
  CFB
  relating to cut/pasting content, I'm willing to give it a try. I don't
  notice any sluggishness except for when I cut/paste
 
  -Cameron
 
  On Tue, Dec 6, 2011 at 11:24 AM, Steve 'Cutter' Blades 
  cold.fus...@cutterscrossing.com wrote:
  
   I've had similar issues, due to some kind of internal memory leak
   (possibly related to search). I've found that if I restart Eclipse
   when I first notice the issue, then I can avoid it until Eclipse gets
   bogged down again.
 
 
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348991
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DirectoryExists sometimes returning incorrect value

2011-12-07 Thread Cameron Childress

Could this same code be run concurrently by two threads/users?  One thread
could be int he process of creating the Dir when another does it's
dirExists() check.  You may want to toss a named lock around it to make
sure only one process is messing with the directory at once.  I'd use
hash(dirpath) as the name of the lock to make it a clean unique URL with no
special characters..

-Cameron

On Tue, Dec 6, 2011 at 4:56 PM, Shannon Rhodes shan...@rhodesedge.comwrote:


 This appears to happen randomly, making it difficult to replicate.  Code
 will error that looks like this:

 cfif DirectoryExists(#variables.dirpath#) IS Nocfdirectory
 action=CREATE directory=#variables.dirpath#/cfif

 The error looks like this:

 The specified directory attribute value
 \\blah\AppDev\ParisDocs\blah\docs\
 could not be created
 The most likely cause of this error is that (above) already exists on your
 file system.  The exception occurred during a cfdirectory action = 'CREATE'.

 The directory definitely exists and most of the time the code works.  What
 can I look at to discover why DirectoryExists would return No when it
 should be yes?

 Thanks in advance!

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348992
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) getting rid of Cold Fusion 1.5 user guide - blast from the past!

2011-12-07 Thread Cameron Childress

Very cool.  Did v1.5 have the Rubber Chicken easter egg in the book's
index?  I think that may have been added with v2.0...

-Cameron

On Wed, Dec 7, 2011 at 11:01 AM, Steve Johnson st...@stevejohnson.orgwrote:


 i know this is somewhat off topic - but i just discovered a blast from the
 past in a box and instead of throwing it away i figured i'd throw it on
 eBay in case anyone here wants it - currently only $5 shipped...

 it's kind of funny to look through the old 1.5 manual - i counted a grand
 total of 17 tags - i bet it was much easier to get certified back then! ;-)

 http://www.ebay.com/itm/330654407101

 it also includes the poster - i definitely remember having one of those
 hanging in my cubicle back in the day.

 boy do i feel old all of a sudden. :-)

 steve

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348993
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DirectoryExists sometimes returning incorrect value

2011-12-07 Thread Shannon Rhodes

Very unlikely, the directory definitely exists, since it's our main repository 
for documents...we aren't creating it all the time, it's just a best practice 
that we're checking for existence.

Could this same code be run concurrently by two threads/users?  One thread
could be int he process of creating the Dir when another does it's
dirExists() check.  You may want to toss a named lock around it to make
sure only one process is messing with the directory at once.  I'd use
hash(dirpath) as the name of the lock to make it a clean unique URL with no
special characters..

-Cameron

On Tue, Dec 6, 2011 at 4:56 PM, Shannon Rhodes shan...@rhodesedge.comwrote:

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348994
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DirectoryExists sometimes returning incorrect value

2011-12-07 Thread Shannon Rhodes

I understand and agree with your style preferences, but neither complaint with 
legacy code would cause issues.

Since DirectoryExists returns a true/false, you don't need the IS No 
part of the statement.  Also, DirectoryExists expects you to pass it a 
variable, so you don't need the quotes and pound signs around 
variables.dirpath:

cfif NOT DirectoryExists(variables.dirpath)
cfdirectory action=CREATE directory=#variables.dirpath#
/cfif

HTH,
Carl

On 12/6/2011 1:56 PM, Shann
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348995
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DirectoryExists sometimes returning incorrect value

2011-12-07 Thread Shannon Rhodes

I honestly don't know; it's coming from the global variable for all of our 
applications. I guess I always assumed it had to do with mappings or something, 
since we can't have a relative path here.  I can definitely strip it out and 
see if that solves the problem.

  The specified directory attribute value
 \\blah\AppDev\ParisDocs\blah\docs\
 
 What is the double \\ for?
 Sometimes it is taken as equivalent as one single \, but some other 
 time it may not.
 This could explain why DirectoryExists says it doesn't but it is found 
 when being created.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348996
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DirectoryExists sometimes returning incorrect value

2011-12-07 Thread Carl Von Stetten

It may be more than a style preference.  I'm not sure that No as a 
string value is always equivalent to a true/false boolean value.  My 
suggestion was intended to help identify if that might actually be your 
issue.

I've experienced intermittent issues with FileExists and trying to 
delete files in similar logic as yours.

Carl

On 12/7/2011 9:14 AM, Shannon Rhodes wrote:
 I understand and agree with your style preferences, but neither complaint 
 with legacy code would cause issues.

 Since DirectoryExists returns a true/false, you don't need the IS No
 part of the statement.  Also, DirectoryExists expects you to pass it a
 variable, so you don't need the quotes and pound signs around
 variables.dirpath:

 cfif NOT DirectoryExists(variables.dirpath)
 cfdirectory action=CREATE directory=#variables.dirpath#
 /cfif

 HTH,
 Carl

 On 12/6/2011 1:56 PM, Shann
 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348997
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DirectoryExists sometimes returning incorrect value

2011-12-07 Thread Cameron Childress

Only other thing that immediately comes to mind is that it looks like that
may be a network drive so perhaps something's going on on that network
device or the network itself.

If the directory should pretty much always exist, I'd run that code in your
onApplicationStart() or find another way to only check it when the
application first starts up.  That way it's only running once.  Fewer of
these errors, and touching the filesystem less often is always a good thing
for performance.

-Cameron

On Wed, Dec 7, 2011 at 12:12 PM, Shannon Rhodes shan...@rhodesedge.comwrote:

 Very unlikely, the directory definitely exists, since it's our main
 repository for documents...we aren't creating it all the time, it's just a
 best practice that we're checking for existence.

 Could this same code be run concurrently by two threads/users?  One thread
 could be int he process of creating the Dir when another does it's
 dirExists() check.  You may want to toss a named lock around it to make
 sure only one process is messing with the directory at once.  I'd use
 hash(dirpath) as the name of the lock to make it a clean unique URL with
 no
 special characters..
 
 -Cameron
 
 On Tue, Dec 6, 2011 at 4:56 PM, Shannon Rhodes shan...@rhodesedge.com
 wrote:
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348998
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DirectoryExists sometimes returning incorrect value

2011-12-07 Thread Judah McAuley

A path that starts with \\ is a UNC path. UNC paths can be funky as
they are not necessarily real physical paths on your server but rather
logical paths on a mapped device, like SAN.

UNC paths should work, in general. Sometimes permissions will be
problematic with UNC paths but that shouldn't cause it to be an
intermittent failure. You might have your sysadmin look at what
account CF is running as and then try logging into the server as that
account and look at permissions and visibility on those UNC paths from
the point of view of the CF service.

Judah

On Wed, Dec 7, 2011 at 9:16 AM, Shannon Rhodes shan...@rhodesedge.com wrote:

 I honestly don't know; it's coming from the global variable for all of our 
 applications. I guess I always assumed it had to do with mappings or 
 something, since we can't have a relative path here.  I can definitely strip 
 it out and see if that solves the problem.

  The specified directory attribute value
 \\blah\AppDev\ParisDocs\blah\docs\

 What is the double \\ for?
 Sometimes it is taken as equivalent as one single \, but some other
 time it may not.
 This could explain why DirectoryExists says it doesn't but it is found
 when being create

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:348999
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Builder - Cut/Paste Delay Problem

2011-12-07 Thread Cameron Childress

Mark-

I just installed IntelliJ and like it quite a bit in the little bit I've
used it so far.  It opened my CFBuilder project right up.  Any significant
weaknesses you've noticed?  I think I am going to try to use this for 30
days and see how it goes.

-Cameron

On Wed, Dec 7, 2011 at 11:39 AM, Cameron Childress camer...@gmail.comwrote:

 Mark / Eric - Both solid suggestions.  I may give some alternate tools a
 look. Little annoyances like this add up over the course of a
 day/week/month.  I used CFEclipse before CFBuilder was released but haven't
 tried IntelliJ yet.  Maybe I should give it a shot.

 Thanks!

 -Cameron


 On Tue, Dec 6, 2011 at 10:43 PM, Mark Mandel mark.man...@gmail.comwrote:


 I may be on repeat at the moment, but while it has it's rough edges, the
 CFML plugin for IntelliJ is quite nice. You can always evaluate that for
 30
 days.

 I just switched to using that full time, and I'm quite enjoying it.

 Mark

 On Wed, Dec 7, 2011 at 1:38 PM, Eric Roberts 
 ow...@threeravensconsulting.com wrote:

 
  I got rid of CFBuilder and went back to CFEclipse...CFBuilder is still
 too
  buggy and clunky...
 
  Eric
 
  -Original Message-
  From: Cameron Childress [mailto:camer...@gmail.com]
  Sent: Tuesday, December 06, 2011 11:01 AM
  To: cf-talk
  Subject: Re: ColdFusion Builder - Cut/Paste Delay Problem
 
 
  That did clear up the problem, though I suspect it's only temporary.  I
  restart Eclipse at least once a day already and see this problem
  continuously.
 
  If anyone else has any ideas of what I might try disabling in Eclipse or
  CFB
  relating to cut/pasting content, I'm willing to give it a try. I don't
  notice any sluggishness except for when I cut/paste
 
  -Cameron
 
  On Tue, Dec 6, 2011 at 11:24 AM, Steve 'Cutter' Blades 
  cold.fus...@cutterscrossing.com wrote:
  
   I've had similar issues, due to some kind of internal memory leak
   (possibly related to search). I've found that if I restart Eclipse
   when I first notice the issue, then I can avoid it until Eclipse gets
   bogged down again.
 
 
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349000
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: (ot) getting rid of Cold Fusion 1.5 user guide - blast from the past!

2011-12-07 Thread Steve Johnson

no - this one didn't even have an index - i guess it wasn't long enough to 
require one. :-)

steve


On Dec 7, 2011, at 11:50 AM, Cameron Childress wrote:

 
 Very cool.  Did v1.5 have the Rubber Chicken easter egg in the book's
 index?  I think that may have been added with v2.0...
 
 -Cameron
 
 On Wed, Dec 7, 2011 at 11:01 AM, Steve Johnson st...@stevejohnson.orgwrote:
 
 
 i know this is somewhat off topic - but i just discovered a blast from the
 past in a box and instead of throwing it away i figured i'd throw it on
 eBay in case anyone here wants it - currently only $5 shipped...
 
 it's kind of funny to look through the old 1.5 manual - i counted a grand
 total of 17 tags - i bet it was much easier to get certified back then! ;-)
 
 http://www.ebay.com/itm/330654407101
 
 it also includes the poster - i definitely remember having one of those
 hanging in my cubicle back in the day.
 
 boy do i feel old all of a sudden. :-)
 
 steve


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349001
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


debugging doesn't display on local sevrver

2011-12-07 Thread Greg Morphis

I have CF 9 developer version running on IIS 7, my server is http://localhost:81
I look in the cfadmin and the debugging options are selected, I check
Application.cfc and I've got

cfsetting
requesttimeout=200
showdebugoutput=true
enablecfoutputonly=false
/

And yet, there's no debugging at the bottom showing queries ran,
structures, etc.

Is it because I have it running in IIS or a different port? Is there a
setting I turn on to allow me to see the debugging info?

Thanks!

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349002
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: debugging doesn't display on local sevrver

2011-12-07 Thread Russ Michaels

cf only cares about the IP address, by default it allows localhost in
the IP restrictions.
Try removing all the IP restrictions and see if that helps.

Also are u sure you don;t have another cfsetting further down your
code disabling the debugging again ?


On Wed, Dec 7, 2011 at 6:53 PM, Greg Morphis gmorp...@gmail.com wrote:

 I have CF 9 developer version running on IIS 7, my server is 
 http://localhost:81
 I look in the cfadmin and the debugging options are selected, I check
 Application.cfc and I've got

        cfsetting
                requesttimeout=200
                showdebugoutput=true
                enablecfoutputonly=false
                /

 And yet, there's no debugging at the bottom showing queries ran,
 structures, etc.

 Is it because I have it running in IIS or a different port? Is there a
 setting I turn on to allow me to see the debugging info?

 Thanks!

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349003
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: debugging doesn't display on local sevrver

2011-12-07 Thread Greg Morphis

Hey Russ, thanks for the tip, removing the IP addresses worked..
apparently my IP address is ::1

Thanks!



On Wed, Dec 7, 2011 at 1:01 PM, Russ Michaels r...@michaels.me.uk wrote:

 cf only cares about the IP address, by default it allows localhost in
 the IP restrictions.
 Try removing all the IP restrictions and see if that helps.

 Also are u sure you don;t have another cfsetting further down your
 code disabling the debugging again ?


 On Wed, Dec 7, 2011 at 6:53 PM, Greg Morphis gmorp...@gmail.com wrote:

 I have CF 9 developer version running on IIS 7, my server is 
 http://localhost:81
 I look in the cfadmin and the debugging options are selected, I check
 Application.cfc and I've got

        cfsetting
                requesttimeout=200
                showdebugoutput=true
                enablecfoutputonly=false
                /

 And yet, there's no debugging at the bottom showing queries ran,
 structures, etc.

 Is it because I have it running in IIS or a different port? Is there a
 setting I turn on to allow me to see the debugging info?

 Thanks!



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349004
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Builder - Cut/Paste Delay Problem

2011-12-07 Thread Mark Mandel

A couple of things (I need to do a blog post on this)
- There are some rough edges around auto formatting
- the mxunit support is nowhere near as good as Eclipse's
- Script support can be flaky in some places.
- No dedicated debugger.

But overall, I'm liking IntelliJ a lot more than Eclipse - it has a lot
going for it. (I really need to write that blog post actually).

Make sure to join up with the mailing list, in case you need to ask
questions:
https://groups.google.com/forum/#!forum/cfml-plugin-for-intellij-idea

Mark


On Thu, Dec 8, 2011 at 5:13 AM, Cameron Childress camer...@gmail.comwrote:


 Mark-

 I just installed IntelliJ and like it quite a bit in the little bit I've
 used it so far.  It opened my CFBuilder project right up.  Any significant
 weaknesses you've noticed?  I think I am going to try to use this for 30
 days and see how it goes.

 -Cameron

 On Wed, Dec 7, 2011 at 11:39 AM, Cameron Childress camer...@gmail.com
 wrote:

  Mark / Eric - Both solid suggestions.  I may give some alternate tools a
  look. Little annoyances like this add up over the course of a
  day/week/month.  I used CFEclipse before CFBuilder was released but
 haven't
  tried IntelliJ yet.  Maybe I should give it a shot.
 
  Thanks!
 
  -Cameron
 
 
  On Tue, Dec 6, 2011 at 10:43 PM, Mark Mandel mark.man...@gmail.com
 wrote:
 
 
  I may be on repeat at the moment, but while it has it's rough edges, the
  CFML plugin for IntelliJ is quite nice. You can always evaluate that for
  30
  days.
 
  I just switched to using that full time, and I'm quite enjoying it.
 
  Mark
 
  On Wed, Dec 7, 2011 at 1:38 PM, Eric Roberts 
  ow...@threeravensconsulting.com wrote:
 
  
   I got rid of CFBuilder and went back to CFEclipse...CFBuilder is still
  too
   buggy and clunky...
  
   Eric
  
   -Original Message-
   From: Cameron Childress [mailto:camer...@gmail.com]
   Sent: Tuesday, December 06, 2011 11:01 AM
   To: cf-talk
   Subject: Re: ColdFusion Builder - Cut/Paste Delay Problem
  
  
   That did clear up the problem, though I suspect it's only temporary.
  I
   restart Eclipse at least once a day already and see this problem
   continuously.
  
   If anyone else has any ideas of what I might try disabling in Eclipse
 or
   CFB
   relating to cut/pasting content, I'm willing to give it a try. I don't
   notice any sluggishness except for when I cut/paste
  
   -Cameron
  
   On Tue, Dec 6, 2011 at 11:24 AM, Steve 'Cutter' Blades 
   cold.fus...@cutterscrossing.com wrote:
   
I've had similar issues, due to some kind of internal memory leak
(possibly related to search). I've found that if I restart Eclipse
when I first notice the issue, then I can avoid it until Eclipse
 gets
bogged down again.
  
  
  
  
  
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349005
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Builder - Cut/Paste Delay Problem

2011-12-07 Thread Cameron Childress

I can live with those things.  Someone (Mike Nimer?) has actually been
suggesting IntelliJ to me for years as a Flex IDE, I just haven't ever
taken the time to try it.  Feels a little like CFStudio to me - that's a
good thing.

Thanks!

-Cameron

On Wed, Dec 7, 2011 at 3:09 PM, Mark Mandel mark.man...@gmail.com wrote:


 A couple of things (I need to do a blog post on this)
 - There are some rough edges around auto formatting
 - the mxunit support is nowhere near as good as Eclipse's
 - Script support can be flaky in some places.
 - No dedicated debugger.

 But overall, I'm liking IntelliJ a lot more than Eclipse - it has a lot
 going for it. (I really need to write that blog post actually).

 Make sure to join up with the mailing list, in case you need to ask
 questions:
 https://groups.google.com/forum/#!forum/cfml-plugin-for-intellij-idea

 Mark


 On Thu, Dec 8, 2011 at 5:13 AM, Cameron Childress camer...@gmail.com
 wrote:

 
  Mark-
 
  I just installed IntelliJ and like it quite a bit in the little bit I've
  used it so far.  It opened my CFBuilder project right up.  Any
 significant
  weaknesses you've noticed?  I think I am going to try to use this for 30
  days and see how it goes.
 
  -Cameron
 
  On Wed, Dec 7, 2011 at 11:39 AM, Cameron Childress camer...@gmail.com
  wrote:
 
   Mark / Eric - Both solid suggestions.  I may give some alternate tools
 a
   look. Little annoyances like this add up over the course of a
   day/week/month.  I used CFEclipse before CFBuilder was released but
  haven't
   tried IntelliJ yet.  Maybe I should give it a shot.
  
   Thanks!
  
   -Cameron
  
  
   On Tue, Dec 6, 2011 at 10:43 PM, Mark Mandel mark.man...@gmail.com
  wrote:
  
  
   I may be on repeat at the moment, but while it has it's rough edges,
 the
   CFML plugin for IntelliJ is quite nice. You can always evaluate that
 for
   30
   days.
  
   I just switched to using that full time, and I'm quite enjoying it.
  
   Mark
  
   On Wed, Dec 7, 2011 at 1:38 PM, Eric Roberts 
   ow...@threeravensconsulting.com wrote:
  
   
I got rid of CFBuilder and went back to CFEclipse...CFBuilder is
 still
   too
buggy and clunky...
   
Eric
   
-Original Message-
From: Cameron Childress [mailto:camer...@gmail.com]
Sent: Tuesday, December 06, 2011 11:01 AM
To: cf-talk
Subject: Re: ColdFusion Builder - Cut/Paste Delay Problem
   
   
That did clear up the problem, though I suspect it's only temporary.
   I
restart Eclipse at least once a day already and see this problem
continuously.
   
If anyone else has any ideas of what I might try disabling in
 Eclipse
  or
CFB
relating to cut/pasting content, I'm willing to give it a try. I
 don't
notice any sluggishness except for when I cut/paste
   
-Cameron
   
On Tue, Dec 6, 2011 at 11:24 AM, Steve 'Cutter' Blades 
cold.fus...@cutterscrossing.com wrote:

 I've had similar issues, due to some kind of internal memory leak
 (possibly related to search). I've found that if I restart Eclipse
 when I first notice the issue, then I can avoid it until Eclipse
  gets
 bogged down again.
   
   
   
   
   
  
  
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349006
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Builder - Cut/Paste Delay Problem

2011-12-07 Thread Aaron

You should try running from a command prompt or via modifying a shortcut:
CFBuilder.exe -clean

That will clear the caches and sometimes makes CF Builder usable again when
it feels clunky.  This is an Eclipse thing you can look up if you like.

Aaron DeRenard

On Tue, Dec 6, 2011 at 8:55 AM, Cameron Childress camer...@gmail.comwrote:


 Some weeks ago I started having a problem where using
 CTRL+X, CTRL+C, CTRL+V in ColdFusion builder seems to work
 only sporadically.  Eventually I narrowed it down to a problem where
 Eclipse/CFB seems to need me to hold the keys for a second or two before
 the cut/paste takes effect.  If I copy an item quickly it doesn't end up on
 my clipboard, but if I carefully hold the keys down a little longer than
 normal, it works.

 I suspect Eclipse or CFB is doing something as the text goes into the
 clipboard and that's causing the problem, but I haven't been able to figure
 out what.

 I'm on:
 Mac OS 10.7.2
 Eclipse Helios SR2
 CFB2 v2.0.0.278082 (as a plugin)

 Is anyone else experiencing this?  Any suggestions?

 -Cameron

 --
 Cameron Childress
 --
 p:   678.637.5072
 im: cameroncf
 facebook http://www.facebook.com/cameroncf |
 twitterhttp://twitter.com/cameronc |
 google+ https://profiles.google.com/u/0/117829379451708140985


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349007
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Get text value from xmlsearch()

2011-12-07 Thread Christophe Maso

Is there any way to get the 09-09-2009 string using xmlSearch() for the below 
xml?

employee
   startDate09-09-2009/startDate
/employee

I've been doing something like this, which is a real pain:

arrDate = xmlSearch(xml, //employee/startDate);
strDate = arrDate[1].XmlText;

It seems that xmlSearch() must always return an array and is unable to return a 
string, which makes sense, but using the above code has gotten old, real fast. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349008
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Get text value from xmlsearch()

2011-12-07 Thread Dominic Watson

It's getting old in the tooth and could do with some JavaLoader love,
but this project can help with that sorta thing:

http://betterxml.riaforge.org

Dominic

On 7 December 2011 21:09, Christophe Maso zum...@hotmail.com wrote:

 Is there any way to get the 09-09-2009 string using xmlSearch() for the 
 below xml?

 employee
   startDate09-09-2009/startDate
 /employee

 I've been doing something like this, which is a real pain:

 arrDate = xmlSearch(xml, //employee/startDate);
 strDate = arrDate[1].XmlText;

 It seems that xmlSearch() must always return an array and is unable to return 
 a string, which makes sense, but using the above code has gotten old, real 
 fast.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349009
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: debugging doesn't display on local sevrver

2011-12-07 Thread Carl Von Stetten

That looks like a IPv6 address, rather than the #.#.#.# IPv4 addresses.

On 12/7/2011 12:03 PM, Greg Morphis wrote:
 Hey Russ, thanks for the tip, removing the IP addresses worked..
 apparently my IP address is ::1

 Thanks!



 On Wed, Dec 7, 2011 at 1:01 PM, Russ Michaelsr...@michaels.me.uk  wrote:
 cf only cares about the IP address, by default it allows localhost in
 the IP restrictions.
 Try removing all the IP restrictions and see if that helps.

 Also are u sure you don;t have another cfsetting further down your
 code disabling the debugging again ?


 On Wed, Dec 7, 2011 at 6:53 PM, Greg Morphisgmorp...@gmail.com  wrote:
 I have CF 9 developer version running on IIS 7, my server is 
 http://localhost:81
 I look in the cfadmin and the debugging options are selected, I check
 Application.cfc and I've got

 cfsetting
 requesttimeout=200
 showdebugoutput=true
 enablecfoutputonly=false
 /

 And yet, there's no debugging at the bottom showing queries ran,
 structures, etc.

 Is it because I have it running in IIS or a different port? Is there a
 setting I turn on to allow me to see the debugging info?

 Thanks!



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349010
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: debugging doesn't display on local sevrver

2011-12-07 Thread Greg Morphis

REMOTE_ADDR=::1REMOTE_HOST=::1

right
On Wed, Dec 7, 2011 at 3:36 PM, Carl Von Stetten
vonner.li...@vonner.net wrote:

 That looks like a IPv6 address, rather than the #.#.#.# IPv4 addresses.

 On 12/7/2011 12:03 PM, Greg Morphis wrote:
 Hey Russ, thanks for the tip, removing the IP addresses worked..
 apparently my IP address is ::1

 Thanks!



 On Wed, Dec 7, 2011 at 1:01 PM, Russ Michaelsr...@michaels.me.uk  wrote:
 cf only cares about the IP address, by default it allows localhost in
 the IP restrictions.
 Try removing all the IP restrictions and see if that helps.

 Also are u sure you don;t have another cfsetting further down your
 code disabling the debugging again ?


 On Wed, Dec 7, 2011 at 6:53 PM, Greg Morphisgmorp...@gmail.com  wrote:
 I have CF 9 developer version running on IIS 7, my server is 
 http://localhost:81
 I look in the cfadmin and the debugging options are selected, I check
 Application.cfc and I've got

         cfsetting
                 requesttimeout=200
                 showdebugoutput=true
                 enablecfoutputonly=false
                 /

 And yet, there's no debugging at the bottom showing queries ran,
 structures, etc.

 Is it because I have it running in IIS or a different port? Is there a
 setting I turn on to allow me to see the debugging info?

 Thanks!





 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349011
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Get text value from xmlsearch()

2011-12-07 Thread Raymond Camden

You can use functions to get values:



cfxml variable=test
employee
  startDate09-09-2009/startDate
/employee
/cfxml

cfset r = xmlSearch(test, string(//employee/startDate))
cfdump var=#r#

Docs: http://www.w3schools.com/xpath/xpath_functions.asp#string

On Wed, Dec 7, 2011 at 3:23 PM, Dominic Watson
watson.domi...@googlemail.com wrote:

 It's getting old in the tooth and could do with some JavaLoader love,
 but this project can help with that sorta thing:

 http://betterxml.riaforge.org

 Dominic

 On 7 December 2011 21:09, Christophe Maso zum...@hotmail.com wrote:

 Is there any way to get the 09-09-2009 string using xmlSearch() for the 
 below xml?

 employee
   startDate09-09-2009/startDate
 /employee

 I've been doing something like this, which is a real pain:

 arrDate = xmlSearch(xml, //employee/startDate);
 strDate = arrDate[1].XmlText;

 It seems that xmlSearch() must always return an array and is unable to 
 return a string, which makes sense, but using the above code has gotten old, 
 real fast.



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349012
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: debugging doesn't display on local sevrver

2011-12-07 Thread Carl Von Stetten

Yup.  That's the IPv6 equivalent of 127.0.0.1
-Carl

On 12/7/2011 1:43 PM, Greg Morphis wrote:
 REMOTE_ADDR=::1REMOTE_HOST=::1

 right
 On Wed, Dec 7, 2011 at 3:36 PM, Carl Von Stetten
 vonner.li...@vonner.net  wrote:
 That looks like a IPv6 address, rather than the #.#.#.# IPv4 addresses.

 On 12/7/2011 12:03 PM, Greg Morphis wrote:
 Hey Russ, thanks for the tip, removing the IP addresses worked..
 apparently my IP address is ::1

 Thanks!



 On Wed, Dec 7, 2011 at 1:01 PM, Russ Michaelsr...@michaels.me.ukwrote:
 cf only cares about the IP address, by default it allows localhost in
 the IP restrictions.
 Try removing all the IP restrictions and see if that helps.

 Also are u sure you don;t have another cfsetting further down your
 code disabling the debugging again ?


 On Wed, Dec 7, 2011 at 6:53 PM, Greg Morphisgmorp...@gmail.comwrote:
 I have CF 9 developer version running on IIS 7, my server is 
 http://localhost:81
 I look in the cfadmin and the debugging options are selected, I check
 Application.cfc and I've got

  cfsetting
  requesttimeout=200
  showdebugoutput=true
  enablecfoutputonly=false
  /

 And yet, there's no debugging at the bottom showing queries ran,
 structures, etc.

 Is it because I have it running in IIS or a different port? Is there a
 setting I turn on to allow me to see the debugging info?

 Thanks!



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349013
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Get text value from xmlsearch()

2011-12-07 Thread Raymond Camden

Actually, you want to limit yourself to these - since CF9 is still
xpath1 (Zeus is adding xpath2)

http://en.wikipedia.org/wiki/XPath_1.0


On Wed, Dec 7, 2011 at 3:56 PM, Raymond Camden raymondcam...@gmail.com wrote:
 You can use functions to get values:



 cfxml variable=test
 employee
  startDate09-09-2009/startDate
 /employee
 /cfxml

 cfset r = xmlSearch(test, string(//employee/startDate))
 cfdump var=#r#

 Docs: http://www.w3schools.com/xpath/xpath_functions.asp#string

 On Wed, Dec 7, 2011 at 3:23 PM, Dominic Watson
 watson.domi...@googlemail.com wrote:

 It's getting old in the tooth and could do with some JavaLoader love,
 but this project can help with that sorta thing:

 http://betterxml.riaforge.org

 Dominic

 On 7 December 2011 21:09, Christophe Maso zum...@hotmail.com wrote:

 Is there any way to get the 09-09-2009 string using xmlSearch() for the 
 below xml?

 employee
   startDate09-09-2009/startDate
 /employee

 I've been doing something like this, which is a real pain:

 arrDate = xmlSearch(xml, //employee/startDate);
 strDate = arrDate[1].XmlText;

 It seems that xmlSearch() must always return an array and is unable to 
 return a string, which makes sense, but using the above code has gotten 
 old, real fast.



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349014
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Get text value from xmlsearch()

2011-12-07 Thread Judah McAuley

But what happens if there is more than one node that matches your
search?  Searches expect to return one or more results, which is why
it returns an array. Trying to turn what may be a complex result into
a simple string with no logic seems like an unstable approach, unless
I'm misunderstanding the question (which happens plenty).

Instead, I'd write a UDF called FirstXMLNodeText or some some such
that you pass an XPath value to along with an xml doc and then have it
return the XmlText of the first array result returned.

What you are doing with the array is correct, in my opinion. If it is
too much typing and you are doing it a lot, build a function to do it.

Cheers,
Judah

On Wed, Dec 7, 2011 at 1:56 PM, Raymond Camden raymondcam...@gmail.com wrote:

 You can use functions to get values:



 cfxml variable=test
 employee
  startDate09-09-2009/startDate
 /employee
 /cfxml

 cfset r = xmlSearch(test, string(//employee/startDate))
 cfdump var=#r#

 Docs: http://www.w3schools.com/xpath/xpath_functions.asp#string

 On Wed, Dec 7, 2011 at 3:23 PM, Dominic Watson
 watson.domi...@googlemail.com wrote:

 It's getting old in the tooth and could do with some JavaLoader love,
 but this project can help with that sorta thing:

 http://betterxml.riaforge.org

 Dominic

 On 7 December 2011 21:09, Christophe Maso zum...@hotmail.com wrote:

 Is there any way to get the 09-09-2009 string using xmlSearch() for the 
 below xml?

 employee
   startDate09-09-2009/startDate
 /employee

 I've been doing something like this, which is a real pain:

 arrDate = xmlSearch(xml, //employee/startDate);
 strDate = arrDate[1].XmlText;

 It seems that xmlSearch() must always return an array and is unable to 
 return a string, which makes sense, but using the above code has gotten 
 old, real fast.





 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349015
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Get text value from xmlsearch()

2011-12-07 Thread Judah McAuley

Yay for XPath 2, that's good news.  Just today I was wrestling with
XSLT that needed a Replace function which XPath 2 supports but XPath 1
(for some reason) does not. What kind of language doesn't have a
Replace function?

Cheers,
Judah

On Wed, Dec 7, 2011 at 2:03 PM, Raymond Camden raymondcam...@gmail.com wrote:

 Actually, you want to limit yourself to these - since CF9 is still
 xpath1 (Zeus is adding xpath2)

 http://en.wikipedia.org/wiki/XPath_1.0


 On Wed, Dec 7, 2011 at 3:56 PM, Raymond Camden raymondcam...@gmail.com 
 wrote:
 You can use functions to get values:



 cfxml variable=test
 employee
  startDate09-09-2009/startDate
 /employee
 /cfxml

 cfset r = xmlSearch(test, string(//employee/startDate))
 cfdump var=#r#

 Docs: http://www.w3schools.com/xpath/xpath_functions.asp#string

 On Wed, Dec 7, 2011 at 3:23 PM, Dominic Watson
 watson.domi...@googlemail.com wrote:

 It's getting old in the tooth and could do with some JavaLoader love,
 but this project can help with that sorta thing:

 http://betterxml.riaforge.org

 Dominic

 On 7 December 2011 21:09, Christophe Maso zum...@hotmail.com wrote:

 Is there any way to get the 09-09-2009 string using xmlSearch() for the 
 below xml?

 employee
   startDate09-09-2009/startDate
 /employee

 I've been doing something like this, which is a real pain:

 arrDate = xmlSearch(xml, //employee/startDate);
 strDate = arrDate[1].XmlText;

 It seems that xmlSearch() must always return an array and is unable to 
 return a string, which makes sense, but using the above code has gotten 
 old, real fast.





 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349016
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Builder - Cut/Paste Delay Problem

2011-12-07 Thread Cameron Childress

Since restarting without this fixes the problem temporarily. I'm not sure
that adding it will change anything (since it's fixed after restart either
way), but I may give it a shot, assuming I stop using IntelliJ and go back
to CFBuilder.

-Cameron

On Wed, Dec 7, 2011 at 3:44 PM, Aaron deren...@gmail.com wrote:

 You should try running from a command prompt or via modifying a shortcut:
 CFBuilder.exe -clean

 That will clear the caches and sometimes makes CF Builder usable again when
 it feels clunky.  This is an Eclipse thing you can look up if you like.


-- 
Cameron Childress
--
p:   678.637.5072
im: cameroncf
facebook http://www.facebook.com/cameroncf |
twitterhttp://twitter.com/cameronc |
google+ https://profiles.google.com/u/0/117829379451708140985


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349017
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Get text value from xmlsearch()

2011-12-07 Thread Raymond Camden

The poster asked about getting a text value, so obviously he was using
a xpath search that matched one value. So... don't do it on ones that
would return multiple. You can use functions on multiple things
though. For example:

cfxml variable=test
employee
  salary200/salary
  salary100/salary
/employee
/cfxml

cfset r = xmlSearch(test, sum(//employee/salary))
cfdump var=#r#

On Wed, Dec 7, 2011 at 4:06 PM, Judah McAuley ju...@wiredotter.com wrote:

 But what happens if there is more than one node that matches your
 search?  Searches expect to return one or more results, which is why
 it returns an array. Trying to turn what may be a complex result into
 a simple string with no logic seems like an unstable approach, unless
 I'm misunderstanding the question (which happens plenty).

 Instead, I'd write a UDF called FirstXMLNodeText or some some such
 that you pass an XPath value to along with an xml doc and then have it
 return the XmlText of the first array result returned.

 What you are doing with the array is correct, in my opinion. If it is
 too much typing and you are doing it a lot, build a function to do it.

 Cheers,
 Judah

 On Wed, Dec 7, 2011 at 1:56 PM, Raymond Camden raymondcam...@gmail.com 
 wrote:

 You can use functions to get values:



 cfxml variable=test
 employee
  startDate09-09-2009/startDate
 /employee
 /cfxml

 cfset r = xmlSearch(test, string(//employee/startDate))
 cfdump var=#r#

 Docs: http://www.w3schools.com/xpath/xpath_functions.asp#string

 On Wed, Dec 7, 2011 at 3:23 PM, Dominic Watson
 watson.domi...@googlemail.com wrote:

 It's getting old in the tooth and could do with some JavaLoader love,
 but this project can help with that sorta thing:

 http://betterxml.riaforge.org

 Dominic

 On 7 December 2011 21:09, Christophe Maso zum...@hotmail.com wrote:

 Is there any way to get the 09-09-2009 string using xmlSearch() for the 
 below xml?

 employee
   startDate09-09-2009/startDate
 /employee

 I've been doing something like this, which is a real pain:

 arrDate = xmlSearch(xml, //employee/startDate);
 strDate = arrDate[1].XmlText;

 It seems that xmlSearch() must always return an array and is unable to 
 return a string, which makes sense, but using the above code has gotten 
 old, real fast.







 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349018
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Get text value from xmlsearch()

2011-12-07 Thread Judah McAuley

Sure, some functions work on multiple nodes and they are awesome for
all sorts of things. I just hesitate to use a function that will blow
up if more than one node is returned when you can write a function
that will always return the first node and therefore not blow up. I've
just had two many times where I've written code that assumes that a
query/search/whatever will only return one record and it works fine
with all my test cases (because there is only supposed to be one
record so that's what I put in my test case) and then lo and behold,
someone inserts a second matching record and things start throwing
errors because of that assumption I made.

Cheers,
Judah

On Wed, Dec 7, 2011 at 2:24 PM, Raymond Camden raymondcam...@gmail.com wrote:

 The poster asked about getting a text value, so obviously he was using
 a xpath search that matched one value. So... don't do it on ones that
 would return multiple. You can use functions on multiple things
 though. For example:

 cfxml variable=test
 employee
  salary200/salary
  salary100/salary
 /employee
 /cfxml

 cfset r = xmlSearch(test, sum(//employee/salary))
 cfdump var=#r#

 On Wed, Dec 7, 2011 at 4:06 PM, Judah McAuley ju...@wiredotter.com wrote:

 But what happens if there is more than one node that matches your
 search?  Searches expect to return one or more results, which is why
 it returns an array. Trying to turn what may be a complex result into
 a simple string with no logic seems like an unstable approach, unless
 I'm misunderstanding the question (which happens plenty).

 Instead, I'd write a UDF called FirstXMLNodeText or some some such
 that you pass an XPath value to along with an xml doc and then have it
 return the XmlText of the first array result returned.

 What you are doing with the array is correct, in my opinion. If it is
 too much typing and you are doing it a lot, build a function to do it.

 Cheers,
 Judah

 On Wed, Dec 7, 2011 at 1:56 PM, Raymond Camden raymondcam...@gmail.com 
 wrote:

 You can use functions to get values:



 cfxml variable=test
 employee
  startDate09-09-2009/startDate
 /employee
 /cfxml

 cfset r = xmlSearch(test, string(//employee/startDate))
 cfdump var=#r#

 Docs: http://www.w3schools.com/xpath/xpath_functions.asp#string

 On Wed, Dec 7, 2011 at 3:23 PM, Dominic Watson
 watson.domi...@googlemail.com wrote:

 It's getting old in the tooth and could do with some JavaLoader love,
 but this project can help with that sorta thing:

 http://betterxml.riaforge.org

 Dominic

 On 7 December 2011 21:09, Christophe Maso zum...@hotmail.com wrote:

 Is there any way to get the 09-09-2009 string using xmlSearch() for the 
 below xml?

 employee
   startDate09-09-2009/startDate
 /employee

 I've been doing something like this, which is a real pain:

 arrDate = xmlSearch(xml, //employee/startDate);
 strDate = arrDate[1].XmlText;

 It seems that xmlSearch() must always return an array and is unable to 
 return a string, which makes sense, but using the above code has gotten 
 old, real fast.









 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349019
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Get text value from xmlsearch()

2011-12-07 Thread Raymond Camden

I don't know man - if you are parsing xml, you are making some
assumptions about the structure. The functions are there just for that
reason. Sometimes you need the string value of a node. That's it.It's
no more safe/dangerous than any other xpath function.


On Wed, Dec 7, 2011 at 4:31 PM, Judah McAuley ju...@wiredotter.com wrote:

 Sure, some functions work on multiple nodes and they are awesome for
 all sorts of things. I just hesitate to use a function that will blow
 up if more than one node is returned when you can write a function
 that will always return the first node and therefore not blow up. I've
 just had two many times where I've written code that assumes that a
 query/search/whatever will only return one record and it works fine
 with all my test cases (because there is only supposed to be one
 record so that's what I put in my test case) and then lo and behold,
 someone inserts a second matching record and things start throwing
 errors because of that assumption I made.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349020
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: DirectoryExists sometimes returning incorrect value

2011-12-07 Thread Claude Schnéegans

I'm having a similar problem, although in a completely different context, since 
I migrate my development server from XP to Windows 7.
I'm still using ColdFusion Studio, and starting with W7, when I search for some 
string in files and it finds one say in C:\inetsrv\wwwroot\myProjet\myFile.cfm, 
it will actally open C:\inetsrv\wwwroot\myProjet\\myFile.cfm, even if the file 
is already open using the name with only one \
If I modify the files, it causes an update conflict then.
It started with W7, never happend before.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349021
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


KCfinder with CKeditor and Coldfusion?

2011-12-07 Thread Terry Troxel

Anyone have any success with KCeditor integration into CKeditor?

 

I do not need file uploading of any kind, just to be able to browse to a
predefined image directory

Under the website root to insert images stored there.

 

Any help would be appreciated.

Terry



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349022
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ColdFusion 9 on One Computer and IIS 7 on Another Computer

2011-12-07 Thread Eugene Colucci

I'm tackling a problem, but I am a little lost as to how and where to look for 
a solution; my hope is someone reading this post can point me in the correct 
direction.

We currently have 32-bit ColdFusion 9 Standard Edition executing on a computer 
with IIS 7 (32 bit) and Windows Server 2008 (32 bit).  On this same computer we 
also have a vendor CMS that does not play well with CF 9.  All our attempts 
thus far--including 2 support calls to Adobe--do not permit us to use all CF 
9's features given our current configuration.  I'll call this physical machine 
our Primary Web Server.

What we would like to do is completely separate our CF 9 server from the rest 
of our current Web configuration.  That is, we want to place 32 bit ColdFusion 
9 on a separate (64 bit) Windows Server 2008 computer running IIS 7.5.  I'll 
call this physical machine our ColdFusion Server.

All our CMS-generated Web-page content will appear on our Primary Web Server 
because that is where our CMS software resides.  However, we would like to be 
able to point to ColdFusion applications on our ColdFusion Server from various 
Web pages on our Primary Web Server so that our ColdFusion Server can process 
those requests and spit the results onto our ColdFusion Server.  That is, most 
of our ColdFusion-generated content will appear on our ColdFusion Server, but 
we still might require some ColdFusion-generated content to appear on our 
Primary Web Server integrated with our CMS-generated Web pages.  Is this 
feasible, and if so, can it be accomplished with CF 9 Standard Edition, or is 
the Enterprise Edition required and why?

Thank you.  I appreciate your time. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349023
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion 9 on One Computer and IIS 7 on Another Computer

2011-12-07 Thread Dave Watts

 What we would like to do is completely separate our CF 9 server from the rest 
 of our current Web configuration.  That is, we want to place 32 bit
 ColdFusion 9 on a separate (64 bit) Windows Server 2008 computer running IIS 
 7.5.  I'll call this physical machine our ColdFusion Server.

Out of curiosity, at that point why not use 64-bit CF on your 64-bit server?

 All our CMS-generated Web-page content will appear on our Primary Web Server 
 because that is where our CMS software resides.  However, we
 would like to be able to point to ColdFusion applications on our ColdFusion 
 Server from various Web pages on our Primary Web Server so that our
 ColdFusion Server can process those requests and spit the results onto our 
 ColdFusion Server.  That is, most of our ColdFusion-generated
 content will appear on our ColdFusion Server, but we still might require some 
 ColdFusion-generated content to appear on our Primary Web Server
 integrated with our CMS-generated Web pages.  Is this feasible, and if so, 
 can it be accomplished with CF 9 Standard Edition, or is the Enterprise
 Edition required and why?

There are two ways you could do this: using distributed mode in CF,
or using IIS as a reverse proxy for specific URL patterns that
correspond to your web applications on the other server. The
distributed mode functionality is somewhat limited and CF-specific,
and may not work in your environment, so I'd suggest the reverse proxy
approach. Google IIS reverse proxy for more information.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
http://training.figleaf.com/

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or on

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349024
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion 9 on One Computer and IIS 7 on Another Computer

2011-12-07 Thread Eugene Colucci

  What we would like to do is completely separate our CF 9 server from 
 the rest of our current Web configuration.  That is, we want to place 
 32 bit
  ColdFusion 9 on a separate (64 bit) Windows Server 2008 computer 
 running IIS 7.5.  I'll call this physical machine our ColdFusion 
 Server.
 
 Out of curiosity, at that point why not use 64-bit CF on your 64-bit 
 server?


Fear of the unknown.  We considered it but discarded the idea because we 
believe we are going to have sufficient hurdles to overcome just divorcing our 
CF server from the rest of our Web configuration.  Once we get/if we get this 
proposed configuration functional, then we plan to erect a duplicated 
environment using 64 bit CF 9.


 
  All our CMS-generated Web-page content will appear on our Primary 
 Web Server because that is where our CMS software resides.  However, 
 we
  would like to be able to point to ColdFusion applications on our 
 ColdFusion Server from various Web pages on our Primary Web Server so 
 that our
  ColdFusion Server can process those requests and spit the results 
 onto our ColdFusion Server.  That is, most of our 
 ColdFusion-generated
  content will appear on our ColdFusion Server, but we still might 
 require some ColdFusion-generated content to appear on our Primary Web 
 Server
  integrated with our CMS-generated Web pages.  Is this feasible, and 
 if so, can it be accomplished with CF 9 Standard Edition, or is the 
 Enterprise
  Edition required and why?
 
 There are two ways you could do this: using distributed mode in CF,
 or using IIS as a reverse proxy for specific URL patterns that
 correspond to your web applications on the other server. The
 distributed mode functionality is somewhat limited and CF-specific,
 and may not work in your environment, so I'd suggest the reverse 
 proxy
 approach. Google IIS reverse proxy for more information.
 


Forgive my obtuseness, but does this mean we can use the Standard Edition of CF 
9?


 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or 
on

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349025
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: KCfinder with CKeditor and Coldfusion?

2011-12-07 Thread Mike Kear

If you mean CKFinder and CKeditor, i find they cooperate beautifully
and flawlessly with ColdFusion.  I use them both together in my CMS
systems.  The trick is to note that when they install, they put
application.cfm in a few places, which creates new applications and
therefore all your application variables are unavailable. I found
i had to disable the application.cfm that they installed and move the
relevant code to my site's application.cfc
.
Then the only issue is setting the paths up properly.

Do those two things and you'll be sailing!

Happy to help more if you need it.

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month




On Thu, Dec 8, 2011 at 10:25 AM, Terry Troxel terry.tro...@gmail.com wrote:

 Anyone have any success with KCeditor integration into CKeditor?



 I do not need file uploading of any kind, just to be able to browse to a
 predefined image directory

 Under the website root to insert images stored there.



 Any help would be appreciated.

 Terry


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349026
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: KCfinder with CKeditor and Coldfusion?

2011-12-07 Thread Terry Troxel

Mike,
If you google CKfinder Alternative you will find KCfinder.
It supposedly works with FCKeditor, CKeditor and Tinymce.

http://kcfinder.sunhater.com/ 

I was asking if anyone has gotten it to hook up with Coldfusion safely.
I do not want to allow uploading just want to browse a single image
Directory on a single website.

Terry

-Original Message-
From: Mike Kear [mailto:afpwebwo...@gmail.com] 
Sent: Wednesday, December 07, 2011 6:31 PM
To: cf-talk
Subject: Re: KCfinder with CKeditor and Coldfusion?


I use them both together in my CMS
systems.  The trick is to note that when they install, they put
application.cfm in a few places, which creates new applications and
therefore all your application variables are unavailable. I found
i had to disable the application.cfm that they installed and move the
relevant code to my site's application.cfc
.
Then the only issue is setting the paths up properly.

Do those two things and you'll be sailing!

Happy to help more if you need it.

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month




On Thu, Dec 8, 2011 at 10:25 AM, Terry Troxel terry.tro...@gmail.com
wrote:

 Anyone have any success with KCeditor integration into CKeditor?



 I do not need file uploading of any kind, just to be able to browse to a
 predefined image directory

 Under the website root to insert images stored there.



 Any help would be appreciated.

 Terry




~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349027
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: KCfinder with CKeditor and Coldfusion?

2011-12-07 Thread Mike Kear

In that case Terry, I'm not much help to you - I've not used KCFinder.
  Good luck with it though.I might check it out myself just to
stay on top of things.

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month

On Thu, Dec 8, 2011 at 3:32 PM, Terry Troxel terry.tro...@gmail.com wrote:

 Mike,
 If you google CKfinder Alternative you will find KCfinder.
 It supposedly works with FCKeditor, CKeditor and Tinymce.

 http://kcfinder.sunhater.com/

 I was asking if anyone has gotten it to hook up with Coldfusion safely.
 I do not want to allow uploading just want to browse a single image
 Directory on a single website.

 Terry

 -Original Message-
 From: Mike Kear [mailto:afpwebwo...@gmail.com]
 Sent: Wednesday, December 07, 2011 6:31 PM
 To: cf-talk
 Subject: Re: KCfinder with CKeditor and Coldfusion?


 I use them both together in my CMS
 systems.      The trick is to note that when they install, they put
 application.cfm in a few places, which creates new applications and
 therefore all your application variables are unavailable.     I found
 i had to disable the application.cfm that they installed and move the
 relevant code to my site's application.cfc
 .
 Then the only issue is setting the paths up properly.

 Do those two things and you'll be sailing!

 Happy to help more if you need it.

 Cheers
 Mike Kear
 Windsor, NSW, Australia
 Adobe Certified Advanced ColdFusion Developer
 AFP Webworks
 http://afpwebworks.com
 ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month




 On Thu, Dec 8, 2011 at 10:25 AM, Terry Troxel terry.tro...@gmail.com
 wrote:

 Anyone have any success with KCeditor integration into CKeditor?



 I do not need file uploading of any kind, just to be able to browse to a
 predefined image directory

 Under the website root to insert images stored there.



 Any help would be appreciated.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349028
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm