Re: CFParam vs. IsDefined

2010-09-01 Thread Tony Bentley

A classic issue yesterday related to isDefined():

This worked perfectly:


//pass boolean to determine if the given field is null in the
stored proc (1=submitted, 2=finalized)
if(arguments.status eq 1){
submitted = false;
finalized = true;
}
else if(arguments.status eq 2){
finalized = false;
submitted = true;
}








This did not:


//pass boolean to determine if the given field is null in the
stored proc (1=submitted, 2=finalized)
if(arguments.status eq 1){
submitted = true;
}
else if(arguments.status eq 2){
finalized = true;
}








I ran a DB trace and both values were coming out as defined in the second
code.


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


Re: Problem with Paypal since CF 9

2010-09-01 Thread Claude Schnéegans

  >>There are two dates the come over encoded but aren't  when you look at your
string back that caused my issues initially

Yeah, I've seen that. Fields ending with _date are not listed in 
form.fieldnames.
Curiously enough, this bug was already in CF 5, but Paypal would accept the 
verification anyway.
I added the date fields, but it still doesn't work under cf9

It is really a shame Paypal does not give any detail while in test mode about 
WHY the request is invalid.

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


Re: CFParam vs. IsDefined

2010-09-01 Thread Casey Dougall

On Wed, Sep 1, 2010 at 5:56 PM, Rick Root  wrote:

>
> Personally I like to  things that I know are supposed to
> exist, and I will go both ways on page variables that may or may not
> exist.
>
> I prefer to param it and then test for a valid value than to test for
> isDefined()
>
>

Yup, and you can throw all of them at the top of the script.

I'm not saying there isn't times you need to use StructKeyExists.
Readability is by far my biggest goal, the faster I can read though a
script, the less hassles I have with it as a whole, and cfparam allows you
to use a built in function to assist in setting up page variables.

Not saying there arn't times you should use StuctKeyExists, but if it was a
param to begin with, you already know the default value; That coupled with
StructKeyExists is a pain to type!


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


Re: Problem with Paypal since CF 9

2010-09-01 Thread Phillip Duba

There are two dates the come over encoded but aren't  when you look at your
string back that caused my issues initially and only when i outputted each
form value and looked at the resulting string did I see the issue. I forget
which ones they are and I'm not able to look at our listener right now,

Phil

On Wed, Sep 1, 2010 at 5:04 PM, <> wrote:

>
>  I'm pretty sure its it some sort of encoding problem.
> I've found this on the Paypal site:
>
> "PayPal's IPN server expects that your script will POST back all variables
> that were posted to it and more importantly, that they are encoded the same
> way as they were sent to your script. If your script inadvertently changed
> the encoding of a character or interprets an encoded character as another
> character and POSTs back, you will likely see INVALID."
>
> Under CF5, everything was iso-8859-1 by default, now it is UTF-8.
> I can see "Charset   UTF-8 " in the CFHTTP data, but there is also
> charset = windows-1252 in the form fields sent by Paypal.
>
> I checked, and the same template still works under CF5.
>
> 

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


Re: CFParam vs. IsDefined

2010-09-01 Thread Rick Root

Personally I like to  things that I know are supposed to
exist, and I will go both ways on page variables that may or may not
exist.

I prefer to param it and then test for a valid value than to test for
isDefined()

Ie...


  (or   )
   Holy Crap!


Rick

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


Re: Problem with Paypal since CF 9

2010-09-01 Thread Claude Schnéegans

  I'm pretty sure its it some sort of encoding problem.
I've found this on the Paypal site:

"PayPal's IPN server expects that your script will POST back all variables that 
were posted to it and more importantly, that they are encoded the same way as 
they were sent to your script. If your script inadvertently changed the 
encoding of a character or interprets an encoded character as another character 
and POSTs back, you will likely see INVALID."

Under CF5, everything was iso-8859-1 by default, now it is UTF-8.
I can see "Charset   UTF-8 " in the CFHTTP data, but there is also charset 
= windows-1252 in the form fields sent by Paypal.

I checked, and the same template still works under CF5.

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


Re: CFParam vs. IsDefined

2010-09-01 Thread David McGraw

The only general advantage I see is that you are reserving memory no matter 
what, even though it's not much, where as with the isDefined, your just 
checking, rather than reserving that memory.


>I prefer to CFParam my vars with a default value of a zero len string or a 0
>for numeric values. Then I skip the isdefined and just test against the
>value. Well recently someone I know said that it's better to test if it's
>defined. Is there a pro or con to doing it my way vs. IsDefined ?
>
>Thanks.



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


Re: cfcontent to serve PDF files hanging

2010-09-01 Thread Jason Fill

Thank you for the ideas.  We are going to change the mime/type and also add 
some I/O logging to see if we can find a correlation there.  Should we find the 
issue I will certainly post back.

Thanks for the time!

Jason

>ON the other hand... I would expect a mime/type problem to result in an
>error on the browser - not a hanging request, unless of the course the
>"hanging" is the browsers cycling through choices to figure out how to
>display the file.
>
>How may files are in the directory in question? Do you perhaps have an I/O
>problem?
>
>Mark A. Kruger, MCSE, CFG
>(402) 408-3733 ext 105
>Skype: markakruger
>www.cfwebtools.com
>www.coldfusionmuse.com
>www.necfug.com
>
>
>
>Good call I think Jake...
>
>
>
>
>The only think I could think of is use application/pdf for the Content-Type
>(that is technically the correct mime type).
>
>-Jake
>
>On Tue, Aug 31, 2010 at 10:33 AM, Jas 

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


Re: Upgrade to Windows 2008 server with IIS 7 while still running CF 8

2010-09-01 Thread Russ Michaels

cf9.0.1 includes proper support for IIS7, so I would upgrade windows first
and then install cf 9.0.1
Anything prior to cf 9.0.1 requires the IIS6 management compatibility mode
and management console to be installed, otherwise it will not work.

Russ

On Wed, Sep 1, 2010 at 5:58 PM, John M Bliss  wrote:

>
> I just upgraded my dev box to Win 7 including IIS 7 and gave up on getting
> it to work with CF8 after about 4 hours of following Googled instructions.
>  ("Reverted" to uninstalling IIS and using the dev webserver that comes
> with
> CF.)  Googling suggests that it *can* be done but be aware that it's not
> seamless.  (Or, at least, I found it to be not seamless.)
>
> On Wed, Sep 1, 2010 at 11:53 AM, Nathan Chen  wrote:
>
> >
> > All:
> >
> >
> >
> > Has anyone experienced any problem when upgrading the server to Windows
> > 2008 with IIS 7 while keeping CF 8? My IT is planning the upgrade but  I
> > am still running CF 8 and would like to know any issue so I can be
> > prepared.
> >
> >
> >
> > Nathan Chen
> >
> >
> >
> >
>
> 

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


Re: Problem with Paypal since CF 9

2010-09-01 Thread Phillip Duba

As someone who is working on a new PayPal integration and has run into the
same issue as you, make sure all form fields are lower case. I seem to
remember CF defaulting to upper case in the transition to MX,

Phil

On Wed, Sep 1, 2010 at 1:15 PM, <> wrote:

>
>  >>If you cfdump the cfhttp results in CF5 and CF9 and compare them then
> you
> will see the difference.
>
>
> Not easy to to. The template is called by the Paypal server for every
> transaction.
> The template should return all form fields IN SAME ORDER in another CFHTTP
> request to Paypal.
> If everything looks fine, Paypal returns VERIFIED, other wise it returns
> INVALID.
> This template that I developped myself has been working fine for years, so
> I suspect the problem is not with Paypal.
> CF 9 must be doing something wrong in the HTTP request.
>
> 

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


Re: Using ######## vs not using ########

2010-09-01 Thread Michael Grant

I have escaped your escape. Pray I don't escape it any further.


On Wed, Sep 1, 2010 at 1:08 PM, Rick Faircloth wrote:

>
> I'm not so sure... I understand that subject completely! ;o)
>
> -Original Message-
> From: Peter Boughton [mailto:bought...@gmail.com]
> Sent: Wednesday, September 01, 2010 12:44 PM
> To: cf-talk
> Subject: Re: Using  vs not using 
>
>
> Hmmm, I'm guessing the web interface to cf-talk is doing double escaping or
> something bad.
>
>
>
> 

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


Re: Problem with Paypal since CF 9

2010-09-01 Thread Claude Schnéegans

  >>If you cfdump the cfhttp results in CF5 and CF9 and compare them then you
will see the difference.


Not easy to to. The template is called by the Paypal server for every 
transaction.
The template should return all form fields IN SAME ORDER in another CFHTTP 
request to Paypal.
If everything looks fine, Paypal returns VERIFIED, other wise it returns 
INVALID.
This template that I developped myself has been working fine for years, so I 
suspect the problem is not with Paypal.
CF 9 must be doing something wrong in the HTTP request.

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


RE: Using ######## vs not using ########

2010-09-01 Thread Rick Faircloth

I'm not so sure... I understand that subject completely! ;o)

-Original Message-
From: Peter Boughton [mailto:bought...@gmail.com] 
Sent: Wednesday, September 01, 2010 12:44 PM
To: cf-talk
Subject: Re: Using  vs not using 


Hmmm, I'm guessing the web interface to cf-talk is doing double escaping or
something bad. 



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


Re: Upgrade to Windows 2008 server with IIS 7 while still running CF 8

2010-09-01 Thread John M Bliss

I just upgraded my dev box to Win 7 including IIS 7 and gave up on getting
it to work with CF8 after about 4 hours of following Googled instructions.
 ("Reverted" to uninstalling IIS and using the dev webserver that comes with
CF.)  Googling suggests that it *can* be done but be aware that it's not
seamless.  (Or, at least, I found it to be not seamless.)

On Wed, Sep 1, 2010 at 11:53 AM, Nathan Chen  wrote:

>
> All:
>
>
>
> Has anyone experienced any problem when upgrading the server to Windows
> 2008 with IIS 7 while keeping CF 8? My IT is planning the upgrade but  I
> am still running CF 8 and would like to know any issue so I can be
> prepared.
>
>
>
> Nathan Chen
>
>
>
> 

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


Upgrade to Windows 2008 server with IIS 7 while still running CF 8

2010-09-01 Thread Nathan Chen

All:

 

Has anyone experienced any problem when upgrading the server to Windows
2008 with IIS 7 while keeping CF 8? My IT is planning the upgrade but  I
am still running CF 8 and would like to know any issue so I can be
prepared.

 

Nathan Chen



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


Re: Using ######## vs not using ########

2010-09-01 Thread Peter Boughton

Hmmm, I'm guessing the web interface to cf-talk is doing double escaping or 
something bad. 

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


Re: Using #### vs not using ####

2010-09-01 Thread Peter Boughton

It'll have a (very very minor) impact on the first load.
I'd be surprised (and dissappointed) if it wasn't optimised away after that.


However, don't forget Human performance impact - if it takes an extra 0.5 
seconds to decipher whether it just says varName versus "#varName#i" (or 
similar), then it's better to correct it. 

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


Re: Using ## vs not using ##

2010-09-01 Thread Michael Grant

Thanks Eric.

On Wed, Sep 1, 2010 at 12:45 PM, Eric Cobb  wrote:

>
> According to Adobe, yes.
>
> http://www.adobe.com/devnet/coldfusion/articles/coldfusion_performance_04.html
>
> Although, I'm sure it's probably negligible.  All they really say is
> that the extra pound signs "will negatively affect performance".
>
> Thanks,
>
> Eric Cobb
> ECAR Technologies, LLC
> http://www.ecartech.com
> http://www.cfgears.com
>
>
>
> Michael Grant wrote:
> > Ok, i have another one. (In CF7)
> >
> > Here's an example of code I'm running into:
> >
> >  "bit
> > to add here."/>
> >
> > I would normally write this as:
> >
> >  add
> > here."/>
> >
> >
> > Other than the fact it's nicer to look at and just makes sense to do it
> my
> > way, is there actually any speed increase doing it my way?
> >
> >
> >
>
> 

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


Re: Using ## vs not using ##

2010-09-01 Thread Eric Cobb

According to Adobe, yes.  
http://www.adobe.com/devnet/coldfusion/articles/coldfusion_performance_04.html

Although, I'm sure it's probably negligible.  All they really say is 
that the extra pound signs "will negatively affect performance".

Thanks,

Eric Cobb
ECAR Technologies, LLC
http://www.ecartech.com
http://www.cfgears.com



Michael Grant wrote:
> Ok, i have another one. (In CF7)
>
> Here's an example of code I'm running into:
>
>  to add here."/>
>
> I would normally write this as:
>
>  here."/>
>
>
> Other than the fact it's nicer to look at and just makes sense to do it my
> way, is there actually any speed increase doing it my way?
>
>
> 

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


Re: CFParam vs. IsDefined

2010-09-01 Thread Peter Boughton

>I prefer to CFParam my vars with a default value of a zero len string or a 0
>for numeric values. Then I skip the isdefined and just test against the
>value. Well recently someone I know said that it's better to test if it's
>defined. Is there a pro or con to doing it my way vs. IsDefined ?

There is a difference between a value being undefined, and a value being zero.


Consider the following (contrived) example:






...

... 







vs







...

... 






(Using cfargument/default is equiv to using cfparam/default.)

Unless you can say with certainty that blank/zero is identically equivalent to 
undefined, you should always check for existance (using either isDefined or 
structKeyExists as preferred) instead of setting a default. 

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


Re: CFParam vs. IsDefined

2010-09-01 Thread Russ Michaels

of course as you are checking for url.myvar which doesn't exist as you
created variables.myvar not url.myvar.



On Wed, Sep 1, 2010 at 5:24 PM, John M Bliss  wrote:

>
> > dot notation means nothing to isdefined()
>
> Um, really?  The following returns "NO" for me:
>
> 
>
> #IsDefined("url.myvar")#
>
>
> On Wed, Sep 1, 2010 at 11:16 AM, Russ Michaels 
> wrote:
>
> >
> > it depends how many vars you have in each scope.
> > If you have barely any then the search will be quick.
> > If you have a complex app with hundreds of vars then the result will of
> > course be different, especially if they are complex structs.
> >
> > There is also the fact that isdefined() will find the variable in ANY
> > scope,
> > which may not be the one you want.
> >
> > e.g.
> > isDefined('myvar')
> > would find
> >
> > variables.myvar
> > cookie.myvar
> > session.myvar
> >
> > etc
> > so if you are actually looking for myvar only in the form scope then this
> > could cause you issues, you also need to remember that dot notation means
> > nothing to isdefined(), so isDefined('form.myvar') could also find
> >
> > session.form.myvar
> > url.form.myvar
> > cookie.form.var
> >
> > etc
> >
> > On Wed, Sep 1, 2010 at 4:56 PM, Mark A. Kruger  > >wrote:
> >
> > >
> > > Russ,
> > >
> > > You are correct about that - but it's not typically a performance
> problem
> > > in
> > > my view. More of a "buggy/security" type problem :)
> > >
> > > -Mark
> > >
> > > Mark A. Kruger, MCSE, CFG
> > > (402) 408-3733 ext 105
> > > Skype: markakruger
> > > www.cfwebtools.com
> > > www.coldfusionmuse.com
> > > www.necfug.com
> > >
> > >
> > >
> > > -Original Message-
> > > From: Russ Michaels [mailto:r...@michaels.me.uk]
> > > Sent: Wednesday, September 01, 2010 10:51 AM
> > > To: cf-talk
> > > Subject: Re: CFParam vs. IsDefined
> > >
> > >
> > > defo better to make sure they are defined.
> > > Also using isDefined() is also bad as this search every single scope
> for
> > > your variable and is thus quite slow and can potentially cause
> timeouts.
> > > Much better to use StructKeyExists() and only test the scope your
> > variable
> > > is in.
> > >
> > > --
> > > Russ Michaels
> > > www.cfmldeveloper.com
> > > Supporting the cf community since 1999
> > > FREE ColdFusion/Railo hosting for developers.
> > >
> > >
> > > On Wed, Sep 1, 2010 at 4:40 PM, DURETTE, STEVEN J (ATTASIAIT) <
> > > sd1...@att.com> wrote:
> > >
> > > >
> > > > Using your way ensures that any variables that you are using already
> > > > exist.
> > > >
> > > > I was always taught that I should define my variables before I use
> them
> > > > in code (my ancient programming college courses).  So, I tend to
> follow
> > > > your method.
> > > >
> > > > Also, from a security stand, you should already know what should be
> > > > coming into your page. If it isn't there then something went wrong.
> And
> > > > if you didn't define it and it is there you should be ignoring it.
> > > >
> > > > Steve
> > > >
> > > > -Original Message-
> > > > From: Michael Grant [mailto:mgr...@modus.bz]
> > > > Sent: Wednesday, September 01, 2010 11:36 AM
> > > > To: cf-talk
> > > > Subject: CFParam vs. IsDefined
> > > >
> > > >
> > > > I prefer to CFParam my vars with a default value of a zero len string
> > or
> > > > a 0
> > > > for numeric values. Then I skip the isdefined and just test against
> the
> > > > value. Well recently someone I know said that it's better to test if
> > > > it's
> > > > defined. Is there a pro or con to doing it my way vs. IsDefined ?
> > > >
> > > > Thanks.
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > >
> >
> >
>
> 

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


Re: Problem with Paypal since CF 9

2010-09-01 Thread Russ Michaels

Things have changed a lot since CF5 and there is likley to be a fair few
things that no longer work the same.
If you cfdump the cfhttp results in CF5 and CF9 and compare them then you
will see the difference.

If you are using a 3rd party tag then there are more up to date ones you
could use instead, take a look on www.easycfm.com for a tutorial to help you
fix your existing code, or take a look at www.riaforge.org for an open
source solution or www.cftagstore.com for a commercial solution.


--
Russ Michaels
www.cfmldeveloper.com - Supporting the CF community since 1999
FREE ColdFusion/Railo hosting for developers.

blog: www.michaels.me.uk


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


Re: Using ## vs not using ##

2010-09-01 Thread Michael Grant

It makes me want to barf.
However I don't really have the time for it.


On Wed, Sep 1, 2010 at 12:31 PM, Dave Watts  wrote:

>
> > Ok, i have another one. (In CF7)
> >
> > Here's an example of code I'm running into:
> >
> >  "bit
> > to add here."/>
> >
> > I would normally write this as:
> >
> >  add
> > here."/>
> >
> > Other than the fact it's nicer to look at and just makes sense to do it
> my
> > way, is there actually any speed increase doing it my way?
>
> There will not be a significant speed increase, so don't worry about
> changing existing code unless you have time on your hands and it
> really offends you.
>
> 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 onsite.
>
> 

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


Problem with Paypal since CF 9

2010-09-01 Thread Claude Schnéegans

  Hi, I recently upgraded an old CF site from version 5 to version 9.
Since then, my Instant Payment Notification from Paypal is broken.

It CFHTTP the Paypal server, but the response is now INVALID instead of 
VERIFIED as it used to be.
There must be something changed in the CFHTTP which makes the request look bad 
to Paypal.
I don't know with which version since CF5 this would happen.

Has any one encountered any similar problem?

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


Re: Using ## vs not using ##

2010-09-01 Thread Dave Watts

> Ok, i have another one. (In CF7)
>
> Here's an example of code I'm running into:
>
>  to add here."/>
>
> I would normally write this as:
>
>  here."/>
>
> Other than the fact it's nicer to look at and just makes sense to do it my
> way, is there actually any speed increase doing it my way?

There will not be a significant speed increase, so don't worry about
changing existing code unless you have time on your hands and it
really offends you.

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 onsite.

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


Using ## vs not using ##

2010-09-01 Thread Michael Grant

Ok, i have another one. (In CF7)

Here's an example of code I'm running into:



I would normally write this as:




Other than the fact it's nicer to look at and just makes sense to do it my
way, is there actually any speed increase doing it my way?


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


Re: CFParam vs. IsDefined

2010-09-01 Thread Roger Austin

 Michael Grant  wrote: 
> 
> I prefer to CFParam my vars with a default value of a zero len string or a 0
> for numeric values. Then I skip the isdefined and just test against the
> value. Well recently someone I know said that it's better to test if it's
> defined. Is there a pro or con to doing it my way vs. IsDefined ?

I would use cfparam out of convenience and flow. If you use the incoming 
parameter several times, you don't have to test it but once with cfparam.
I'm lazy.
--
LinkedIn: http://www.linkedin.com/pub/roger-austin/8/a4/60
Twitter:  http://twitter.com/RogerTheGeek
Blog: http://rogerthegeek.wordpress.com/
http://www.misshunt.com/ Home of the Clean/Dirty Magnet


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


Re: CFParam vs. IsDefined

2010-09-01 Thread John M Bliss

Nevermind.  Misread your post.

On Wed, Sep 1, 2010 at 11:24 AM, John M Bliss  wrote:

> > dot notation means nothing to isdefined()
>
> Um, really?  The following returns "NO" for me:
>
> 
>
> #IsDefined("url.myvar")#
>
>
> On Wed, Sep 1, 2010 at 11:16 AM, Russ Michaels wrote:
>
>>
>> it depends how many vars you have in each scope.
>> If you have barely any then the search will be quick.
>> If you have a complex app with hundreds of vars then the result will of
>> course be different, especially if they are complex structs.
>>
>> There is also the fact that isdefined() will find the variable in ANY
>> scope,
>> which may not be the one you want.
>>
>> e.g.
>> isDefined('myvar')
>> would find
>>
>> variables.myvar
>> cookie.myvar
>> session.myvar
>>
>> etc
>> so if you are actually looking for myvar only in the form scope then this
>> could cause you issues, you also need to remember that dot notation means
>> nothing to isdefined(), so isDefined('form.myvar') could also find
>>
>> session.form.myvar
>> url.form.myvar
>> cookie.form.var
>>
>> etc
>>
>> On Wed, Sep 1, 2010 at 4:56 PM, Mark A. Kruger > >wrote:
>>
>> >
>> > Russ,
>> >
>> > You are correct about that - but it's not typically a performance
>> problem
>> > in
>> > my view. More of a "buggy/security" type problem :)
>> >
>> > -Mark
>> >
>> > Mark A. Kruger, MCSE, CFG
>> > (402) 408-3733 ext 105
>> > Skype: markakruger
>> > www.cfwebtools.com
>> > www.coldfusionmuse.com
>> > www.necfug.com
>> >
>> >
>> >
>> > -Original Message-
>> > From: Russ Michaels [mailto:r...@michaels.me.uk]
>> > Sent: Wednesday, September 01, 2010 10:51 AM
>> > To: cf-talk
>> > Subject: Re: CFParam vs. IsDefined
>> >
>> >
>> > defo better to make sure they are defined.
>> > Also using isDefined() is also bad as this search every single scope for
>> > your variable and is thus quite slow and can potentially cause timeouts.
>> > Much better to use StructKeyExists() and only test the scope your
>> variable
>> > is in.
>> >
>> > --
>> > Russ Michaels
>> > www.cfmldeveloper.com
>> > Supporting the cf community since 1999
>> > FREE ColdFusion/Railo hosting for developers.
>> >
>> >
>> > On Wed, Sep 1, 2010 at 4:40 PM, DURETTE, STEVEN J (ATTASIAIT) <
>> > sd1...@att.com> wrote:
>> >
>> > >
>> > > Using your way ensures that any variables that you are using already
>> > > exist.
>> > >
>> > > I was always taught that I should define my variables before I use
>> them
>> > > in code (my ancient programming college courses).  So, I tend to
>> follow
>> > > your method.
>> > >
>> > > Also, from a security stand, you should already know what should be
>> > > coming into your page. If it isn't there then something went wrong.
>> And
>> > > if you didn't define it and it is there you should be ignoring it.
>> > >
>> > > Steve
>> > >
>> > > -Original Message-
>> > > From: Michael Grant [mailto:mgr...@modus.bz]
>> > > Sent: Wednesday, September 01, 2010 11:36 AM
>> > > To: cf-talk
>> > > Subject: CFParam vs. IsDefined
>> > >
>> > >
>> > > I prefer to CFParam my vars with a default value of a zero len string
>> or
>> > > a 0
>> > > for numeric values. Then I skip the isdefined and just test against
>> the
>> > > value. Well recently someone I know said that it's better to test if
>> > > it's
>> > > defined. Is there a pro or con to doing it my way vs. IsDefined ?
>> > >
>> > > Thanks.
>> > >
>> > >
>> > >
>> > >
>> > >
>> >
>> >
>> >
>> >
>>
>> 

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


Re: CFParam vs. IsDefined

2010-09-01 Thread Sean Corfield

On Wed, Sep 1, 2010 at 8:54 AM, John M Bliss  wrote:
> 
> 
> 
> 
> 

Try that with  - I suspect
setVariable() is slowing that down.

> #Evaluate(getTickCount() - starttick)#

You don't need evaluate() here BTW.

In general, micro-benchmarks like this aren't really useful. For
example, you're generating lots of whitespace here so you'd do better
to wrap the loops in  or write them in . There are
all sorts of variable factors in code like this.
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood

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


Re: CFParam vs. IsDefined

2010-09-01 Thread John M Bliss

> dot notation means nothing to isdefined()

Um, really?  The following returns "NO" for me:



#IsDefined("url.myvar")#


On Wed, Sep 1, 2010 at 11:16 AM, Russ Michaels  wrote:

>
> it depends how many vars you have in each scope.
> If you have barely any then the search will be quick.
> If you have a complex app with hundreds of vars then the result will of
> course be different, especially if they are complex structs.
>
> There is also the fact that isdefined() will find the variable in ANY
> scope,
> which may not be the one you want.
>
> e.g.
> isDefined('myvar')
> would find
>
> variables.myvar
> cookie.myvar
> session.myvar
>
> etc
> so if you are actually looking for myvar only in the form scope then this
> could cause you issues, you also need to remember that dot notation means
> nothing to isdefined(), so isDefined('form.myvar') could also find
>
> session.form.myvar
> url.form.myvar
> cookie.form.var
>
> etc
>
> On Wed, Sep 1, 2010 at 4:56 PM, Mark A. Kruger  >wrote:
>
> >
> > Russ,
> >
> > You are correct about that - but it's not typically a performance problem
> > in
> > my view. More of a "buggy/security" type problem :)
> >
> > -Mark
> >
> > Mark A. Kruger, MCSE, CFG
> > (402) 408-3733 ext 105
> > Skype: markakruger
> > www.cfwebtools.com
> > www.coldfusionmuse.com
> > www.necfug.com
> >
> >
> >
> > -Original Message-
> > From: Russ Michaels [mailto:r...@michaels.me.uk]
> > Sent: Wednesday, September 01, 2010 10:51 AM
> > To: cf-talk
> > Subject: Re: CFParam vs. IsDefined
> >
> >
> > defo better to make sure they are defined.
> > Also using isDefined() is also bad as this search every single scope for
> > your variable and is thus quite slow and can potentially cause timeouts.
> > Much better to use StructKeyExists() and only test the scope your
> variable
> > is in.
> >
> > --
> > Russ Michaels
> > www.cfmldeveloper.com
> > Supporting the cf community since 1999
> > FREE ColdFusion/Railo hosting for developers.
> >
> >
> > On Wed, Sep 1, 2010 at 4:40 PM, DURETTE, STEVEN J (ATTASIAIT) <
> > sd1...@att.com> wrote:
> >
> > >
> > > Using your way ensures that any variables that you are using already
> > > exist.
> > >
> > > I was always taught that I should define my variables before I use them
> > > in code (my ancient programming college courses).  So, I tend to follow
> > > your method.
> > >
> > > Also, from a security stand, you should already know what should be
> > > coming into your page. If it isn't there then something went wrong. And
> > > if you didn't define it and it is there you should be ignoring it.
> > >
> > > Steve
> > >
> > > -Original Message-
> > > From: Michael Grant [mailto:mgr...@modus.bz]
> > > Sent: Wednesday, September 01, 2010 11:36 AM
> > > To: cf-talk
> > > Subject: CFParam vs. IsDefined
> > >
> > >
> > > I prefer to CFParam my vars with a default value of a zero len string
> or
> > > a 0
> > > for numeric values. Then I skip the isdefined and just test against the
> > > value. Well recently someone I know said that it's better to test if
> > > it's
> > > defined. Is there a pro or con to doing it my way vs. IsDefined ?
> > >
> > > Thanks.
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
> 

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


RE: CFParam vs. IsDefined

2010-09-01 Thread Andy Matthews

One reason to use IsDefined over StructKeyExists is when you don't know if
one of the child structures exists.

For example, in our control app, we assign permissions to our users like so:

SESSION.p <-- struct, always exists
SESSION.p.nav <-- struct, exists if the user has at least one perm in this
set 
SESSION.p.nav.SOMEPERMISSION  From: Michael Grant [mailto:mgr...@modus.bz]
> Sent: Wednesday, September 01, 2010 11:36 AM
> To: cf-talk
> Subject: CFParam vs. IsDefined
>
>
> I prefer to CFParam my vars with a default value of a zero len string 
> or a 0 for numeric values. Then I skip the isdefined and just test 
> against the value. Well recently someone I know said that it's better 
> to test if it's defined. Is there a pro or con to doing it my way vs. 
> IsDefined ?
>
> Thanks.
>
>
>
>
> 



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


Re: CFParam vs. IsDefined

2010-09-01 Thread Russ Michaels

it depends how many vars you have in each scope.
If you have barely any then the search will be quick.
If you have a complex app with hundreds of vars then the result will of
course be different, especially if they are complex structs.

There is also the fact that isdefined() will find the variable in ANY scope,
which may not be the one you want.

e.g.
isDefined('myvar')
would find

variables.myvar
cookie.myvar
session.myvar

etc
so if you are actually looking for myvar only in the form scope then this
could cause you issues, you also need to remember that dot notation means
nothing to isdefined(), so isDefined('form.myvar') could also find

session.form.myvar
url.form.myvar
cookie.form.var

etc

On Wed, Sep 1, 2010 at 4:56 PM, Mark A. Kruger wrote:

>
> Russ,
>
> You are correct about that - but it's not typically a performance problem
> in
> my view. More of a "buggy/security" type problem :)
>
> -Mark
>
> Mark A. Kruger, MCSE, CFG
> (402) 408-3733 ext 105
> Skype: markakruger
> www.cfwebtools.com
> www.coldfusionmuse.com
> www.necfug.com
>
>
>
> -Original Message-
> From: Russ Michaels [mailto:r...@michaels.me.uk]
> Sent: Wednesday, September 01, 2010 10:51 AM
> To: cf-talk
> Subject: Re: CFParam vs. IsDefined
>
>
> defo better to make sure they are defined.
> Also using isDefined() is also bad as this search every single scope for
> your variable and is thus quite slow and can potentially cause timeouts.
> Much better to use StructKeyExists() and only test the scope your variable
> is in.
>
> --
> Russ Michaels
> www.cfmldeveloper.com
> Supporting the cf community since 1999
> FREE ColdFusion/Railo hosting for developers.
>
>
> On Wed, Sep 1, 2010 at 4:40 PM, DURETTE, STEVEN J (ATTASIAIT) <
> sd1...@att.com> wrote:
>
> >
> > Using your way ensures that any variables that you are using already
> > exist.
> >
> > I was always taught that I should define my variables before I use them
> > in code (my ancient programming college courses).  So, I tend to follow
> > your method.
> >
> > Also, from a security stand, you should already know what should be
> > coming into your page. If it isn't there then something went wrong. And
> > if you didn't define it and it is there you should be ignoring it.
> >
> > Steve
> >
> > -Original Message-
> > From: Michael Grant [mailto:mgr...@modus.bz]
> > Sent: Wednesday, September 01, 2010 11:36 AM
> > To: cf-talk
> > Subject: CFParam vs. IsDefined
> >
> >
> > I prefer to CFParam my vars with a default value of a zero len string or
> > a 0
> > for numeric values. Then I skip the isdefined and just test against the
> > value. Well recently someone I know said that it's better to test if
> > it's
> > defined. Is there a pro or con to doing it my way vs. IsDefined ?
> >
> > Thanks.
> >
> >
> >
> >
> >
>
>
>
> 

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


RE: CFParam vs. IsDefined

2010-09-01 Thread Mark A. Kruger

Russ,

You are correct about that - but it's not typically a performance problem in
my view. More of a "buggy/security" type problem :)

-Mark

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Wednesday, September 01, 2010 10:51 AM
To: cf-talk
Subject: Re: CFParam vs. IsDefined


defo better to make sure they are defined.
Also using isDefined() is also bad as this search every single scope for
your variable and is thus quite slow and can potentially cause timeouts.
Much better to use StructKeyExists() and only test the scope your variable
is in.

--
Russ Michaels
www.cfmldeveloper.com
Supporting the cf community since 1999
FREE ColdFusion/Railo hosting for developers.


On Wed, Sep 1, 2010 at 4:40 PM, DURETTE, STEVEN J (ATTASIAIT) <
sd1...@att.com> wrote:

>
> Using your way ensures that any variables that you are using already
> exist.
>
> I was always taught that I should define my variables before I use them
> in code (my ancient programming college courses).  So, I tend to follow
> your method.
>
> Also, from a security stand, you should already know what should be
> coming into your page. If it isn't there then something went wrong. And
> if you didn't define it and it is there you should be ignoring it.
>
> Steve
>
> -Original Message-
> From: Michael Grant [mailto:mgr...@modus.bz]
> Sent: Wednesday, September 01, 2010 11:36 AM
> To: cf-talk
> Subject: CFParam vs. IsDefined
>
>
> I prefer to CFParam my vars with a default value of a zero len string or
> a 0
> for numeric values. Then I skip the isdefined and just test against the
> value. Well recently someone I know said that it's better to test if
> it's
> defined. Is there a pro or con to doing it my way vs. IsDefined ?
>
> Thanks.
>
>
>
>
> 



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


Re: CFParam vs. IsDefined

2010-09-01 Thread John M Bliss

FWIW, the following two tickcounts are nearly identical on my localhost so
the reason to use one over the other (cfparam versus isdefined/set) is
likely not due to performance...







#Evaluate(getTickCount() - starttick)#









#Evaluate(getTickCount() - starttick)#

On Wed, Sep 1, 2010 at 10:50 AM, Russ Michaels  wrote:

>
> defo better to make sure they are defined.
> Also using isDefined() is also bad as this search every single scope for
> your variable and is thus quite slow and can potentially cause timeouts.
> Much better to use StructKeyExists() and only test the scope your variable
> is in.
>
> --
> Russ Michaels
> www.cfmldeveloper.com
> Supporting the cf community since 1999
> FREE ColdFusion/Railo hosting for developers.
>
>
> On Wed, Sep 1, 2010 at 4:40 PM, DURETTE, STEVEN J (ATTASIAIT) <
> sd1...@att.com> wrote:
>
> >
> > Using your way ensures that any variables that you are using already
> > exist.
> >
> > I was always taught that I should define my variables before I use them
> > in code (my ancient programming college courses).  So, I tend to follow
> > your method.
> >
> > Also, from a security stand, you should already know what should be
> > coming into your page. If it isn't there then something went wrong. And
> > if you didn't define it and it is there you should be ignoring it.
> >
> > Steve
> >
> > -Original Message-
> > From: Michael Grant [mailto:mgr...@modus.bz]
> > Sent: Wednesday, September 01, 2010 11:36 AM
> > To: cf-talk
> > Subject: CFParam vs. IsDefined
> >
> >
> > I prefer to CFParam my vars with a default value of a zero len string or
> > a 0
> > for numeric values. Then I skip the isdefined and just test against the
> > value. Well recently someone I know said that it's better to test if
> > it's
> > defined. Is there a pro or con to doing it my way vs. IsDefined ?
> >
> > Thanks.
> >
> >
> >
> >
> >
>
> 

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


Re: CFParam vs. IsDefined

2010-09-01 Thread Russ Michaels

defo better to make sure they are defined.
Also using isDefined() is also bad as this search every single scope for
your variable and is thus quite slow and can potentially cause timeouts.
Much better to use StructKeyExists() and only test the scope your variable
is in.

--
Russ Michaels
www.cfmldeveloper.com
Supporting the cf community since 1999
FREE ColdFusion/Railo hosting for developers.


On Wed, Sep 1, 2010 at 4:40 PM, DURETTE, STEVEN J (ATTASIAIT) <
sd1...@att.com> wrote:

>
> Using your way ensures that any variables that you are using already
> exist.
>
> I was always taught that I should define my variables before I use them
> in code (my ancient programming college courses).  So, I tend to follow
> your method.
>
> Also, from a security stand, you should already know what should be
> coming into your page. If it isn't there then something went wrong. And
> if you didn't define it and it is there you should be ignoring it.
>
> Steve
>
> -Original Message-
> From: Michael Grant [mailto:mgr...@modus.bz]
> Sent: Wednesday, September 01, 2010 11:36 AM
> To: cf-talk
> Subject: CFParam vs. IsDefined
>
>
> I prefer to CFParam my vars with a default value of a zero len string or
> a 0
> for numeric values. Then I skip the isdefined and just test against the
> value. Well recently someone I know said that it's better to test if
> it's
> defined. Is there a pro or con to doing it my way vs. IsDefined ?
>
> Thanks.
>
>
>
>
> 

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


Re: CFParam vs. IsDefined

2010-09-01 Thread Dave Watts

> I prefer to CFParam my vars with a default value of a zero len string or a 0
> for numeric values. Then I skip the isdefined and just test against the
> value. Well recently someone I know said that it's better to test if it's
> defined. Is there a pro or con to doing it my way vs. IsDefined ?

No, this is a matter of personal preference really. My preference
tends to align with yours for the reasons that Steven mentioned, but
that's more of a documentation issue than anything else.

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 onsite.

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


RE: CFParam vs. IsDefined

2010-09-01 Thread DURETTE, STEVEN J (ATTASIAIT)

Using your way ensures that any variables that you are using already
exist.

I was always taught that I should define my variables before I use them
in code (my ancient programming college courses).  So, I tend to follow
your method.

Also, from a security stand, you should already know what should be
coming into your page. If it isn't there then something went wrong. And
if you didn't define it and it is there you should be ignoring it.

Steve

-Original Message-
From: Michael Grant [mailto:mgr...@modus.bz] 
Sent: Wednesday, September 01, 2010 11:36 AM
To: cf-talk
Subject: CFParam vs. IsDefined


I prefer to CFParam my vars with a default value of a zero len string or
a 0
for numeric values. Then I skip the isdefined and just test against the
value. Well recently someone I know said that it's better to test if
it's
defined. Is there a pro or con to doing it my way vs. IsDefined ?

Thanks.




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


CFParam vs. IsDefined

2010-09-01 Thread Michael Grant

I prefer to CFParam my vars with a default value of a zero len string or a 0
for numeric values. Then I skip the isdefined and just test against the
value. Well recently someone I know said that it's better to test if it's
defined. Is there a pro or con to doing it my way vs. IsDefined ?

Thanks.


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


Encryption Performance for PayPal

2010-09-01 Thread Phillip Duba

I'm working on integrating PayPal's web standard into a site using their
Java EWPS toolkit. They have a utility class that takes the string of
parameters, the paths to the certificate files needed and the paswword for
the private one. In our test and local development environments, this whole
process took about 500ms. Once we moved it over to our production area,
we're now talking requests taking over 30 seconds. I've confirmed all the
libraries are in each environment, settings and code are the same. I put in
logging around every single function or block of code that might take long
and the delay is around the call to the encryption function, which utilizes
the Bouncy Castle encryption libraries and the strong encryption library.
Our test server is even throttled back from a memory utilization perspective
with settings in instance specific jvm.config files. I really don't see much
when looking at the CF monitor, but I could be missing something to look at.
If anyone's run into this either trying to integrate into PayPal and its Web
Payment Standard, or similar issues using the Bouncy Caste encryption, I'd
appreciate any thoughts or suggestions on what to look at. Thanks,

Phil


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


Re: Build embedded PDF buttons using coldfusion

2010-09-01 Thread Dave Watts

> Is it possible to create interactive buttons within a PDF form using 
> coldfusion 8?
> Specifically, I would like to add "email", "print", and "save a copy" buttons 
> to a pdf form I'm building using coldfusion.

No, not really. That is, CF doesn't provide an easy way to do this.
The idea is that you design your forms in advance using LiveCycle
Designer, then interact with them via CF. That said, if you want to be
hardcore, PDF forms are expressed as XML, so in theory you could
generate that XML at runtime. I wouldn't want to have to do that,
though.

If you have LiveCycle Server, you can modify PDF forms in various
ways, including adding buttons, etc.

> Alternatively, is it possible to add fields to an existing pdf form using 
> coldfusion?

You can append one PDF to another, and this might get you where you
want to be. If you can put your fields in a form at design time, you
can append that form to another PDF at runtime. This is demonstrated
in the Advanced ColdFusion 8 curriculum, which is available here:

http://www.adobe.com/education/instruction/teach/cfcurriculum.html

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 onsite.

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


Re: (ot) Perl Groups

2010-09-01 Thread Jose Diaz

Duane,

I came across this link on the community page http://www.pm.org/ Lists Perl
Monger groups worldwide. Could be a good place to start.

HTH,

Jose Diaz

On Wed, Sep 1, 2010 at 3:04 PM, Jose Diaz  wrote:

> Hi Duane,
>
> These chaps might be able to help - might be worth pinging them a message.
>
> http://www.perl.org/
>
> HTH,
>
> Jose Diaz
>
>   On Wed, Sep 1, 2010 at 2:51 PM, Rick Root  wrote:
>
>>
>> I doubt it.
>>
>> Perl pre-dates email ;)
>>
>> On Tue, Aug 31, 2010 at 5:53 PM, Duane Boudreau 
>> wrote:
>> >
>> > Hi All,
>> >
>> > Since many of you out there are multi-talented developers, I was hoping
>> I could ask if anyone is on a similar list for Perl or wouldn't mind
>> answering a Perl question off list?
>> >
>> > Thanks,
>> > DUANE BOUDREAU  |  SANDY BAY NETWORKS
>> > PRESIDENT AND CHIEF TECHNOLOGY OFFICER
>> > P: 902.735. x222   |  P: 603.879.0249 x222   |  F: 866.631.6272
>> > SMART PEOPLE. SMART SOLUTIONS. | http://www.sandybay.com<
>> http://www.sandybay.com/>
>> >
>> __
>> > Confidentiality Notice:  This message including any attachments is for
>> the sole use of the
>> > intended recipient(s) and may contain confidential and privileged
>> information. Any
>> > unauthorized review, use, disclosure or distribution is prohibited. If
>> you are not the intended
>> > recipient, please contact the sender and delete any copies of this
>> message.
>> >
>> >
>> >
>> >
>>
>> 

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


Re: (ot) Perl Groups

2010-09-01 Thread Jose Diaz

Hi Duane,

These chaps might be able to help - might be worth pinging them a message.

http://www.perl.org/

HTH,

Jose Diaz

On Wed, Sep 1, 2010 at 2:51 PM, Rick Root  wrote:

>
> I doubt it.
>
> Perl pre-dates email ;)
>
> On Tue, Aug 31, 2010 at 5:53 PM, Duane Boudreau 
> wrote:
> >
> > Hi All,
> >
> > Since many of you out there are multi-talented developers, I was hoping I
> could ask if anyone is on a similar list for Perl or wouldn't mind answering
> a Perl question off list?
> >
> > Thanks,
> > DUANE BOUDREAU  |  SANDY BAY NETWORKS
> > PRESIDENT AND CHIEF TECHNOLOGY OFFICER
> > P: 902.735. x222   |  P: 603.879.0249 x222   |  F: 866.631.6272
> > SMART PEOPLE. SMART SOLUTIONS. | http://www.sandybay.com<
> http://www.sandybay.com/>
> >
> __
> > Confidentiality Notice:  This message including any attachments is for
> the sole use of the
> > intended recipient(s) and may contain confidential and privileged
> information. Any
> > unauthorized review, use, disclosure or distribution is prohibited. If
> you are not the intended
> > recipient, please contact the sender and delete any copies of this
> message.
> >
> >
> >
> >
>
> 

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


RE: ODBC (microsoft access) DSN's not working

2010-09-01 Thread Mark A. Kruger

Russ,

H I wonder how much those methods have changed since version 6. I
would suspect not much. You might figure out what you need from a previous
version.

-Mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Wednesday, September 01, 2010 8:48 AM
To: cf-talk
Subject: Re: ODBC (microsoft access) DSN's not working


all the cfadmin files are encrypted, so it is not possible to view them, and
the decrypt tools no longer seem to work on current versions of cf files.

Russ

On Wed, Sep 1, 2010 at 2:18 PM, Mark A. Kruger
wrote:

>
> Russ,
>
> I would unpack the Admin scripts that create DSN's (from inside the CF
> Admin) and figure out what they are doing differently. There must be an
> attribute you can use to set the port - or a path to a config file or
> something.
>
> -Mark
>
>
> -Original Message-
> From: Russ Michaels [mailto:r...@michaels.me.uk]
> Sent: Tuesday, August 31, 2010 5:39 PM
> To: cf-talk
> Subject: Re: ODBC (microsoft access) DSN's not working
>
>
> thanks for the Idea Brian, sadly no dice.
> And to the other person who asked, yes the unicode driver works.
>
> I also just noticed something new.
> It is only new DSN's (created via the adminapi) that are not working.
> Existing MSACCESS DSN's are actually still working, they will verify ok
> from
> the cfadmin , I just cannot edit them  as I get the error stating the
> service is not running,
>
> So I checked out the neo-datasource.xml to see what is the the difference
> between an old DSN and a new DSN, and I noticed this.
>
> 
>
>
>
jdbc:sequelink:msaccess://localhost:2;serverDatasource=111 ng>
>
> 
>
> if I look at the old still working DSN's I see
>
> 
>
>
>
jdbc:sequelink:msaccess://localhost:19998;serverDatasource=PCK;MaxPo
> oledStatements=1000
>
> 
>
> So it appears that the CFADMIN is using the wrong port to connect to the
> ODBC service and to create DSN;s, so if I can find where this port setting
> is coming from then I think I will be able to fix it.
>
> Russ
>
>
>
> On Tue, Aug 31, 2010 at 3:46 PM, Brian Anderson  wrote:
>
> >
> > > I am having issues with the Microsoft Access DSN's on a cf9 server
> > > (windows 2000)
> > >
> > > Here is the original problem I had after upgrading from CF8 to CF9,
> > > which as you can see I solved
> > >
> > > http://russ.michaels.me.uk/index.
> > cfm/2010/3/5/Mi>
> > crosoft-Access-DSNs-no-longer-working-after-upgrading-to-ColdFusion-9
> > >
> >
> > >
> > >
> > > However since upgrading to cf9.0.1 it has stopped working again and I
> > > cannot figure out why this time, and none of my fellow CFGURU's have
> > > been able to shed any light either, thus why I am posting here as a
> > > last resort.
> > >
> >
> > >
> > >
> > > The ODBC services are running
> > >
> > > The ports in swandm.ini are still correct
> > >
> > > Nothing in D:\ColdFusion9\db\slserver54\logging
> > >
> >
> > >
> > >
> > > However every site is giving the error
> > >
> > > [Macromedia][SequeLink JDBC Driver]TCP/IP error, connection refused.
> > >
> >
> > >
> > >
> > > And when editing a dsn in the cfadmin I get
> > >
> > > The ColdFusion ODBC Server service is not running or has not been
> > > installed.. You may also use the "MS Access with Unicode" driver to
> > > connect to MS Access datasources
> > >
> >
> > >
> > >
> > > Anyone got any ideas?
> >
> > Russ,
> >
> > I'm not sure if this will help, but try restoring the
> > macromedia_drivers.jar from the CF 9.0 install and then restart
> ColdFusion
> > and see if that works..  I had to do that on one server after the CF
> 9.0.1
> > upgrade to get the datasources to work, although the error I got was
> > different.  Thought I'd mention it just in case.
> >
> > Brian A
> >
> >
> >
>
>
>
> 



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


Re: (ot) Perl Groups

2010-09-01 Thread Rick Root

I doubt it.

Perl pre-dates email ;)

On Tue, Aug 31, 2010 at 5:53 PM, Duane Boudreau  wrote:
>
> Hi All,
>
> Since many of you out there are multi-talented developers, I was hoping I 
> could ask if anyone is on a similar list for Perl or wouldn't mind answering 
> a Perl question off list?
>
> Thanks,
> DUANE BOUDREAU  |  SANDY BAY NETWORKS
> PRESIDENT AND CHIEF TECHNOLOGY OFFICER
> P: 902.735. x222   |  P: 603.879.0249 x222   |  F: 866.631.6272
> SMART PEOPLE. SMART SOLUTIONS. | 
> http://www.sandybay.com
> __
> Confidentiality Notice:  This message including any attachments is for the 
> sole use of the
> intended recipient(s) and may contain confidential and privileged 
> information. Any
> unauthorized review, use, disclosure or distribution is prohibited. If you 
> are not the intended
> recipient, please contact the sender and delete any copies of this message.
>
>
>
> 

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


Re: ODBC (microsoft access) DSN's not working

2010-09-01 Thread Russ Michaels

all the cfadmin files are encrypted, so it is not possible to view them, and
the decrypt tools no longer seem to work on current versions of cf files.

Russ

On Wed, Sep 1, 2010 at 2:18 PM, Mark A. Kruger wrote:

>
> Russ,
>
> I would unpack the Admin scripts that create DSN's (from inside the CF
> Admin) and figure out what they are doing differently. There must be an
> attribute you can use to set the port - or a path to a config file or
> something.
>
> -Mark
>
>
> -Original Message-
> From: Russ Michaels [mailto:r...@michaels.me.uk]
> Sent: Tuesday, August 31, 2010 5:39 PM
> To: cf-talk
> Subject: Re: ODBC (microsoft access) DSN's not working
>
>
> thanks for the Idea Brian, sadly no dice.
> And to the other person who asked, yes the unicode driver works.
>
> I also just noticed something new.
> It is only new DSN's (created via the adminapi) that are not working.
> Existing MSACCESS DSN's are actually still working, they will verify ok
> from
> the cfadmin , I just cannot edit them  as I get the error stating the
> service is not running,
>
> So I checked out the neo-datasource.xml to see what is the the difference
> between an old DSN and a new DSN, and I noticed this.
>
> 
>
>
> jdbc:sequelink:msaccess://localhost:2;serverDatasource=111 ng>
>
> 
>
> if I look at the old still working DSN's I see
>
> 
>
>
> jdbc:sequelink:msaccess://localhost:19998;serverDatasource=PCK;MaxPo
> oledStatements=1000
>
> 
>
> So it appears that the CFADMIN is using the wrong port to connect to the
> ODBC service and to create DSN;s, so if I can find where this port setting
> is coming from then I think I will be able to fix it.
>
> Russ
>
>
>
> On Tue, Aug 31, 2010 at 3:46 PM, Brian Anderson  wrote:
>
> >
> > > I am having issues with the Microsoft Access DSN's on a cf9 server
> > > (windows 2000)
> > >
> > > Here is the original problem I had after upgrading from CF8 to CF9,
> > > which as you can see I solved
> > >
> > > http://russ.michaels.me.uk/index.
> > cfm/2010/3/5/Mi>
> > crosoft-Access-DSNs-no-longer-working-after-upgrading-to-ColdFusion-9
> > >
> >
> > >
> > >
> > > However since upgrading to cf9.0.1 it has stopped working again and I
> > > cannot figure out why this time, and none of my fellow CFGURU's have
> > > been able to shed any light either, thus why I am posting here as a
> > > last resort.
> > >
> >
> > >
> > >
> > > The ODBC services are running
> > >
> > > The ports in swandm.ini are still correct
> > >
> > > Nothing in D:\ColdFusion9\db\slserver54\logging
> > >
> >
> > >
> > >
> > > However every site is giving the error
> > >
> > > [Macromedia][SequeLink JDBC Driver]TCP/IP error, connection refused.
> > >
> >
> > >
> > >
> > > And when editing a dsn in the cfadmin I get
> > >
> > > The ColdFusion ODBC Server service is not running or has not been
> > > installed.. You may also use the "MS Access with Unicode" driver to
> > > connect to MS Access datasources
> > >
> >
> > >
> > >
> > > Anyone got any ideas?
> >
> > Russ,
> >
> > I'm not sure if this will help, but try restoring the
> > macromedia_drivers.jar from the CF 9.0 install and then restart
> ColdFusion
> > and see if that works..  I had to do that on one server after the CF
> 9.0.1
> > upgrade to get the datasources to work, although the error I got was
> > different.  Thought I'd mention it just in case.
> >
> > Brian A
> >
> >
> >
>
>
>
> 

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


Re: Build embedded PDF buttons using coldfusion

2010-09-01 Thread Russ Michaels

I don't know if you can add thos einto the PDF itself, but when it is viewed
in a browser these options are there by default.

Russ

On Wed, Sep 1, 2010 at 1:36 PM, Richard Cooper  wrote:

>
> Hi,
>
> Is it possible to create interactive buttons within a PDF form using
> coldfusion 8?
>
> Specifically, I would like to add "email", "print", and "save a copy"
> buttons to a pdf form I'm building using coldfusion.
>
> Alternatively, is it possible to add fields to an existing pdf form using
> coldfusion?
>
> Thanks,
>
> Richard
>
> 

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


New Coldfusion User Group in the DC Area

2010-09-01 Thread Sandra Clark

The Capital Area ColdFusion User Group is now beginning to meet.  Our first
meeting will be Tuesday, September 14th at 6pm. It will be a social
gathering, held at Timpanos Italian Grill, 12021 Rockville Pike Rockville MD
20852. View Map of
Location

If you are in the DC Metro area, please come and join your fellow developers
for an evening of networking and fun.

You can get information on the CACFUG at http://www.dc-coldfusion.com/

We look forward to seeing you there.

If you want to present, please let me know at (sclark) at (aboutweb) dot
(com)

Sandy Clark


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


RE: ODBC (microsoft access) DSN's not working

2010-09-01 Thread Mark A. Kruger

Russ,

I would unpack the Admin scripts that create DSN's (from inside the CF
Admin) and figure out what they are doing differently. There must be an
attribute you can use to set the port - or a path to a config file or
something.

-Mark


-Original Message-
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Tuesday, August 31, 2010 5:39 PM
To: cf-talk
Subject: Re: ODBC (microsoft access) DSN's not working


thanks for the Idea Brian, sadly no dice.
And to the other person who asked, yes the unicode driver works.

I also just noticed something new.
It is only new DSN's (created via the adminapi) that are not working.
Existing MSACCESS DSN's are actually still working, they will verify ok from
the cfadmin , I just cannot edit them  as I get the error stating the
service is not running,

So I checked out the neo-datasource.xml to see what is the the difference
between an old DSN and a new DSN, and I noticed this.



jdbc:sequelink:msaccess://localhost:2;serverDatasource=111



if I look at the old still working DSN's I see



jdbc:sequelink:msaccess://localhost:19998;serverDatasource=PCK;MaxPo
oledStatements=1000



So it appears that the CFADMIN is using the wrong port to connect to the
ODBC service and to create DSN;s, so if I can find where this port setting
is coming from then I think I will be able to fix it.

Russ



On Tue, Aug 31, 2010 at 3:46 PM, Brian Anderson  wrote:

>
> > I am having issues with the Microsoft Access DSN's on a cf9 server
> > (windows 2000)
> >
> > Here is the original problem I had after upgrading from CF8 to CF9,
> > which as you can see I solved
> >
> > http://russ.michaels.me.uk/index.
> cfm/2010/3/5/Mi>
> crosoft-Access-DSNs-no-longer-working-after-upgrading-to-ColdFusion-9
> >
>
> >
> >
> > However since upgrading to cf9.0.1 it has stopped working again and I
> > cannot figure out why this time, and none of my fellow CFGURU's have
> > been able to shed any light either, thus why I am posting here as a
> > last resort.
> >
>
> >
> >
> > The ODBC services are running
> >
> > The ports in swandm.ini are still correct
> >
> > Nothing in D:\ColdFusion9\db\slserver54\logging
> >
>
> >
> >
> > However every site is giving the error
> >
> > [Macromedia][SequeLink JDBC Driver]TCP/IP error, connection refused.
> >
>
> >
> >
> > And when editing a dsn in the cfadmin I get
> >
> > The ColdFusion ODBC Server service is not running or has not been
> > installed.. You may also use the "MS Access with Unicode" driver to
> > connect to MS Access datasources
> >
>
> >
> >
> > Anyone got any ideas?
>
> Russ,
>
> I'm not sure if this will help, but try restoring the
> macromedia_drivers.jar from the CF 9.0 install and then restart ColdFusion
> and see if that works..  I had to do that on one server after the CF 9.0.1
> upgrade to get the datasources to work, although the error I got was
> different.  Thought I'd mention it just in case.
>
> Brian A
>
>
> 



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


Build embedded PDF buttons using coldfusion

2010-09-01 Thread Richard Cooper

Hi,

Is it possible to create interactive buttons within a PDF form using coldfusion 
8?

Specifically, I would like to add "email", "print", and "save a copy" buttons 
to a pdf form I'm building using coldfusion.

Alternatively, is it possible to add fields to an existing pdf form using 
coldfusion?

Thanks,

Richard 

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