Re: Embedded colour profile killing server

2009-05-07 Thread Steven Erat - Webapper Services

CHF 2 is the current hotfix level for 801, and until recently it was omitted
from the hotfix summary page on Adobe.com.
Once installed, the System Information page will display the CF version as
the same, but the Update field will show the hotfix.


System Information
Server Details
Server Product ColdFusion
Version 8,0,1,195765
Edition Developer
Serial Number Developer
Operating System Mac OS X
OS Version 10.5.6
Update Level /opt/ColdFusion8/lib/updates/chf8010002.zip




On Wed, May 6, 2009 at 9:13 AM, Adrian Lynch cont...@adrianlynch.co.ukwrote:


 Tried this and still no joy.

 Out of interest, should the version number change after applying that
 hotfix?

 My version is still 8,0,1,195765.

 Thanks.

 Adrian



-- 
Steven Erat
Webapper Services, LLC.
http://www.webapper.com/


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322267
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


cfheader to create post data.

2009-05-07 Thread Ian Skinner

Can one create post data with cfheader?  If so, what might the syntax 
look like?



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322268
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Capturing requested URL in CFML

2009-05-07 Thread Andy Matthews

I recall having a similar problem. There's some Apache variable that's
triggered when a forward occurs.

It's something like request_forward_x or something like that. I'm trying to
ping the sysadmin where I used to work and ask him (that's where I last used
it).


andy 

-Original Message-
From: Ian Skinner [mailto:h...@ilsweb.com] 
Sent: Wednesday, May 06, 2009 5:02 PM
To: cf-talk
Subject: Re: Capturing requested URL in CFML


Scott Weikert wrote:
 We're on IIS. So that may make a difference.

Apparently it does.  I found this link talking about the diference in Apache
not providing the original URL in the query_string variable.
http://blog.sixsigns.com/2008/02/04/custom-404-pages-with-coldfusion-8-macos
-x-and-the-difference-with-iis/

Unfortunately their published solution to use modrewrite to put the path
back into the query_string had no affect on my system.  Can any apache types
out there guess why?





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322269
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Returning a CFSTOREPROC from a CFFUNCTION

2009-05-07 Thread David Torres

I have not thought of that Charlie. I will try that. Last night I thought a 
little more, and may be I will not need the Output variable at all.

Thanks, David

 On Wed, May 6, 2009 at 4:32 PM, David Torres djt...@yahoo.com 
 wrote:
 
  I have been doing a lot of reading about stored procedures. I have 
 worked w/ SPs in MS SQL. Now I am using ColdFusion.
 
  Well, with my reading done I have been able to call a SP from a 
 cffunction. I have all my functions in a CFC file, and I would like to 
 keep it that way. Now, I need to return the cfprocresult from my SP 
 within my function, which I can do, but if I pass a OUT paremeter to 
 my SP, how can I return my resultset and my output variable from the 
 function in order to use those values later?
 
 you can return anything from within a cffunction via the cfreturn 
 tag.
 
 create a struct in the function and populate the struct with your
 resultset and the output variable.  cfreturn the struct.
 
 
 -- 
 I have failed as much as I have succeeded. But I love my life. I love
 my wife. And I wish you my kind of success.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322270
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Capturing requested URL in CFML

2009-05-07 Thread Ian Skinner

Andy Matthews wrote:
 I recall having a similar problem. There's some Apache variable that's
 triggered when a forward occurs.

 It's something like request_forward_x or something like that. I'm trying to
 ping the sysadmin where I used to work and ask him (that's where I last used
 it).


 andy

Yes, cgi.redirect_url.  This does not show up in a cfdump ... of the 
CGI structure.  I found it 5 minutes before my train arrived yesterday.  
This is my first chance to give it a try, but it looks like it should 
work well.

That just leaves the idea, is it somehow possible to add post data to 
the redirected request?

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322271
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cfheader to create post data.

2009-05-07 Thread Steven Erat - Webapper Services

CFHEADER amends the headers of the server response.  Post data would be part
of client request instead.
For CF to make a client request you'd have to use CFHTTP type Post, and use
CFHTTPPARAM to send the post data, i.e. type=file.



On Thu, May 7, 2009 at 9:26 AM, Ian Skinner h...@ilsweb.com wrote:


 Can one create post data with cfheader?  If so, what might the syntax
 look like?




-- 
Steven Erat
Webapper Services, LLC.
http://www.webapper.com/


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322272
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Capturing requested URL in CFML

2009-05-07 Thread Andy Matthews

Session scope maybe? 

-Original Message-
From: Ian Skinner [mailto:h...@ilsweb.com] 
Sent: Thursday, May 07, 2009 8:38 AM
To: cf-talk
Subject: Re: Capturing requested URL in CFML


Andy Matthews wrote:
 I recall having a similar problem. There's some Apache variable that's 
 triggered when a forward occurs.

 It's something like request_forward_x or something like that. I'm 
 trying to ping the sysadmin where I used to work and ask him (that's 
 where I last used it).


 andy

Yes, cgi.redirect_url.  This does not show up in a cfdump ... of the CGI
structure.  I found it 5 minutes before my train arrived yesterday.  
This is my first chance to give it a try, but it looks like it should work
well.

That just leaves the idea, is it somehow possible to add post data to the
redirected request?



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322273
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


encryption shared with other services

2009-05-07 Thread Jared Legg

I can encrypt/decrypt within Coldfusion very easily. However, trying to decrypt 
something that was sent from a .net application is a different story. I have 
been trying to get this to work for the last week with no luck. They are able 
to decrypt my string, but I cannot decrypt theirs.

We have tried AES and DES algorithms and multiple encoding options, with 
different padding settings. Nothing seems to work.

I was running CF7, and I moved to CF8 to see if that would help with some of 
the minor enhancements, but no luck.

I tried to use Java Cipher, but I think that is going to give the same result 
as CF encrypt. I may have to install .net services, and use their .net class 
for the encryption. I hate to do that though, and I am hoping to avoid it.

Code example(key  salt changed):
cfset key = tc/b12Ez4rTdS6FYZaH17i== /   
cfset encoding = Hex /
cfset salt = 58239B418D378659 /
cfset incoming_string = 
EVjcpBhCfyCVuO2tz10a31f4U/XrSpHbCg4BRZ+JSjhDSQBY3SeHpVgl1eNM2KyN /
cfset decrypted = decrypt(incoming_string, key, 'AES/CFB/NoPadding', encoding, 
salt) /

My google searches have given some results, but nothing fruitful. Anyone have 
any experience with this? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322274
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Capturing requested URL in CFML

2009-05-07 Thread Andy Matthews

Ian...

This is the variable I was talking about:

CGI.HTTP_X_FORWARDED_FOR

Give that one a shot. My old sysadmin says that we used it because we
forwarded CF requests from another machine. Might help you out, might now. 

-Original Message-
From: Ian Skinner [mailto:h...@ilsweb.com] 
Sent: Wednesday, May 06, 2009 5:02 PM
To: cf-talk
Subject: Re: Capturing requested URL in CFML


Scott Weikert wrote:
 We're on IIS. So that may make a difference.

Apparently it does.  I found this link talking about the diference in Apache
not providing the original URL in the query_string variable.
http://blog.sixsigns.com/2008/02/04/custom-404-pages-with-coldfusion-8-macos
-x-and-the-difference-with-iis/

Unfortunately their published solution to use modrewrite to put the path
back into the query_string had no affect on my system.  Can any apache types
out there guess why?





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322275
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Capturing requested URL in CFML

2009-05-07 Thread Ian Skinner

Andy Matthews wrote:
 Session scope maybe? 

Not in this case, the redirect is on a different server.  The data has 
to be part of the redirected request.  I currently have it working by 
adding a get value in the redirect url, but I feel that might have 
negative search engine consequences.

If it could be possible to add the information to the form or cookie 
data as part of the redirect... but I suspect that is not possible, 
since it would be very abusable.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322276
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Compare Strings

2009-05-07 Thread Priya Koya

Hi Charlie,

This post is like long time ago .. but I also have a similar problem for 
comparision.
Let me usse the same example:
String1: 0010as1
String2: 10as1 .. this was solved using rereplace() but what if I actually need 
something like this.

String1: 10as1
String1: 10as1121abc or 10as1abc or 10as1121  should be equal

or 

String1: abc201
String1: abc20101 or abc201abc or abc20101dc or abc201dc01  should be equal

It means that the string1 charecters should exactly match with String2 but 
string2 can have equal or more charecters than string1.

Thanks in Advance,
Priya

I'm still learning regex, so i'm less concerned with inefficient and
more concerned with holy crap it worked :)

I had the + in place of the * initially, but read something that
made me think the * would be better in that case.  I probably
misunderstood (and don't recall what it was specifically, as I read it
late last night and I'm typing this early the next morning), but I
think I get what you're saying.

The + matches 1 or more, whereas the * matches zero or more... so with
the asterisk the engine always hits the beginning and end (even in
the case of zero zeros).

Thanks.  Just woke up and learned something.  I can go back to bed :)

-- 
I have failed as much as I have succeeded. But I love my life. I love
my wife. And I wish you my kind of success 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322277
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Compare Strings

2009-05-07 Thread Justin Scott

 String1: abc201
 String1: abc20101 or abc201abc or abc20101dc or abc201dc01  
 should be equal

cfif string1 is left(string2, len(string1))
they are equal
/cfif


-Justin


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322278
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Compare Strings

2009-05-07 Thread Scott Weikert

If I'm reading you right, you want the *first* part of String2 to match 
the entirety of String1...?

If so, you could use the Left() function, i.e.

cfif Len(string2) GE Len(string1) AND Left(string2, Len(string1)) IS 
string1
match
/cfif

If you're just looking to see if String1 is *in* String2, anywhere...

FindNoCase(String1, String2) would suffice.

--Scott



Priya Koya wrote:
 Hi Charlie,

 This post is like long time ago .. but I also have a similar problem for 
 comparision.
 Let me usse the same example:
 String1: 0010as1
 String2: 10as1 .. this was solved using rereplace() but what if I actually 
 need something like this.

 String1: 10as1
 String1: 10as1121abc or 10as1abc or 10as1121  should be equal

 or 

 String1: abc201
 String1: abc20101 or abc201abc or abc20101dc or abc201dc01  should be equal

 It means that the string1 charecters should exactly match with String2 but 
 string2 can have equal or more charecters than string1.

 Thanks in Advance,
 Priya
   


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322279
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Compare Strings

2009-05-07 Thread Priya Koya

O yes.. I didnt even thought of it . Thanx Justin.

Priya.

 String1: abc201
 String1: abc20101 or abc201abc or abc20101dc or abc201dc01  
 should be equal

cfif string1 is left(string2, len(string1))
   they are equal
/cfif


-Justin 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322280
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Returning a CFSTOREPROC from a CFFUNCTION

2009-05-07 Thread Jared Legg

Welcome to CF David! Ideally you never want to output data in your CFC 
functions. The best approach is to input arguments into the function and then 
return data to be displayed. Here is an example I am working on right now. Hope 
it helps:

cffunction name=GetSubscriberInformation access=public returnType=query
  cfargument name=div_id type=numeric required=true /
  cfargument name=acc_num type=string required=true /

  cfset var loc = structnew() /
  cfstoredproc procedure=schema_name.getSubscriberInformation 
datasource=test
cfprocparam type=in value=#arguments.div_id# 
cfsqltype=CF_SQL_NUMERIC /
cfprocparam type=in value=#arguments.acc_num# 
cfsqltype=CF_SQL_VARCHAR /
cfprocresult name=loc.query_data
  /cfstoredproc

  cfreturn loc.query_data /
/cffunction


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322281
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFHTTP Disabled (7.0.1)?

2009-05-07 Thread Andrew Tegenkamp

I have a server with 7.0.1 and Apache 2.0 series and it acts like CFHTTP is 
disabled. It will not let me CFHTTP to anything, inside or out. I have tried 
various cfhttpparam (Accept-Encoding, TE, charset) and combinations of 
resolveurl and redirect but nothing lets it go through.

Does anyone have any memory or idea if it's possible to just have CFHTTP 
disabled like that, and how you'd fix it?

Thanks,
Andrew


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322282
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Event gateway problem with directory watcher

2009-05-07 Thread Phillip B

I have a directory watcher event gate way that looks for new files added to the 
server via FTP. Each file has to be renamed with an incrementing number. 
Problem is when more than one file comes in, the files get processed at the 
same time and don't get the next number. Any suggestions on how to get around 
this?

Thanks

Phil 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322283
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Small scale Twitter Clone for CF?

2009-05-07 Thread Nathan C. Smith

I know somebody is working on an identi.ca type software in CF but I wondered 
if anyone had a smaller-scale twitter-like application.  I'm not looking for 
super-fancy APIs or the ability to federate sites.  This would be something 
used experimentally on an intranet for now.

Thanks for any pointers.

-Nate

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322284
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Returning a CFSTOREPROC from a CFFUNCTION

2009-05-07 Thread Dave Watts

 Ideally you never want to output data in your CFC functions.

There is nothing wrong with generating output using a CFC function.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322285
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFHTTP Disabled (7.0.1)?

2009-05-07 Thread Dave Watts

 I have a server with 7.0.1 and Apache 2.0 series and it acts like CFHTTP is 
 disabled. It will  not let me CFHTTP to anything, inside or out. I have 
 tried various cfhttpparam (Accept-
 Encoding, TE, charset) and combinations of resolveurl and redirect but 
 nothing lets it go
 through.

 Does anyone have any memory or idea if it's possible to just have CFHTTP 
 disabled like
 that, and how you'd fix it?

Using sandbox security, you can disable arbitrary tags, but you should
receive an error message that clearly identifies this as the cause in
that case.

Otherwise, no. That said, CFHTTP relies on the ability of your server
to make connections to other servers, and there are all sorts of
things that might prevent or inhibit that. DNS, firewall
configuration, etc, etc. From the server's console, are you able to
browse the sites in question? If so, is the browser configured to use
a proxy?

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322286
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Returning a CFSTOREPROC from a CFFUNCTION

2009-05-07 Thread David Torres

Hello Jared, thanks for the tip. 

I was trying your example but is not working for me. Here is a my function:

cffunction name=updatePKG returntype=any  
cfargument name=in_table type=any required=false default=
cfargument name=in_column type=any required=false default=
cfargument name=in_new_value type=any required=false default=
cfargument name=in_where type=any required=false default= 
cfset var loc = structnew() /

cfstoredproc procedure = sp_test datasource=#Application.Global.dsn# 
username=#Application.Global.dsnUN# password=#Application.Global.dsnPW# 
cfprocresult name= rs1

cfprocparam type = IN cfsqltype=cf_sql_varchar 
value=#arguments.in_table#
cfprocparam type = IN cfsqltype=cf_sql_varchar 
value=#arguments.in_column#
cfprocparam type = IN cfsqltype=cf_sql_varchar 
value=#arguments.in_new_value#
cfprocparam type = IN cfsqltype=cf_sql_varchar 
value=#arguments.in_where#
cfprocparam type = OUT cfsqltype=cf_sql_varchar value=results
/cfstoredproc

cfreturn loc.rs1
/cffunction   

I have seem many samples with the IN paremeter, but not with the out. 
How would you put the OUT parameter in the struct in order to return the struct 
and use the OUT paremeter value later?

Thanks 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322287
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Returning a CFSTOREPROC from a CFFUNCTION

2009-05-07 Thread David Torres

Sorry, but I missed to include the loc in the cfprocresult name= loc.rs1.

That's good. Now I just need to know how to include my OUPUT variable in the 
struct.
The resulset is be dump correclty to the output.

David 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322288
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Returning a CFSTOREPROC from a CFFUNCTION

2009-05-07 Thread Jared Legg

Dave is right outputting in CFCs is not wrong, there are just different schools 
of though on the subject. Forgive me for diverting the conversation.

Back on topic, try adding the variable attribute to your cfprocparam with the 
out. Instead of the value attribute. It gets pointed out in this thread:
http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:53754 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322289
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Event gateway problem with directory watcher

2009-05-07 Thread James White

 I have a directory watcher event gate way that looks for new files 
 added to the server via FTP. Each file has to be renamed with an 
 incrementing number. Problem is when more than one file comes in, the 
 files get processed at the same time and don't get the next number. 
 Any suggestions on how to get around this?
 
 Thanks
 
 Phil 

I can think of two things:

1.  Use cflock, this should lock the 1st process to come up and keep it until 
it is done especially if set the lock type to exclusive which will not allow 
another resource to neither read nor write during the time the lock is in 
effect.  Read only will work too, since your problem is the two objects getting 
written at the same time.

2.  Some sort of thread checking/processing.  if you use CF 8 the new cfthread 
tag is available, I have not used it myself, but I'm sure you can find info on 
how to use it on the live docs site.  If that is not an option and you have 
some Java programming skills you could write a little Java in cfscript tags and 
create the threads.  I'm sure there's a .NET equivalent as well, again you need 
CF 8.  If you are not into using .NET or Java, the 1st option may be your best 
bet.

--JW 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322290
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFHTTP Disabled (7.0.1)?

2009-05-07 Thread Andrew Tegenkamp

Thanks Dave. It was a DNS issue after all. Working great now! 

  I have a server with 7.0.1 and Apache 2.0 series and it acts like 
 CFHTTP is disabled. It will  not let me CFHTTP to anything, inside or 
 out. I have tried various cfhttpparam (Accept-
  Encoding, TE, charset) and combinations of resolveurl and redirect 
 but nothing lets it go
  through.
 
  Does anyone have any memory or idea if it's possible to just have 
 CFHTTP disabled like
  that, and how you'd fix it?
 
 Using sandbox security, you can disable arbitrary tags, but you 
 should
 receive an error message that clearly identifies this as the cause in
 that case.
 
 Otherwise, no. That said, CFHTTP relies on the ability of your server
 to make connections to other servers, and there are all sorts of
 things that might prevent or inhibit that. DNS, firewall
 configuration, etc, etc. From the server's console, are you able to
 browse the sites in question? If so, is the browser configured to use
 a proxy?
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 
 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more 
information! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322291
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Event gateway problem with directory watcher

2009-05-07 Thread James White

 I have a directory watcher event gate way that looks for new files 
 added to the server via FTP. Each file has to be renamed with an 
 incrementing number. Problem is when more than one file comes in, the 
 files get processed at the same time and don't get the next number. 
 Any suggestions on how to get around this?
 
 Thanks
 
 Phil 
I'm not sure if the message board took my 1st post so I am reposting to make 
sure you get this info


I can think of two things:

1.  Use cflock, this should lock the 1st process to come up and keep it until 
it is done especially if set the lock type to exclusive which will not allow 
another resource to neither read nor write during the time the lock is in 
effect.  Read only will work too, since your problem is the two objects getting 
written at the same time.

2.  Some sort of thread checking/processing.  if you use CF 8 the new cfthread 
tag is available, I have not used it myself, but I'm sure you can find info on 
how to use it on the live docs site.  If that is not an option and you have 
some Java programming skills you could write a little Java in cfscript tags and 
create the threads.  I'm sure there's a .NET equivalent as well, again you need 
CF 8.  If you are not into using .NET or Java, the 1st option may be your best 
bet.

--JW 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322292
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Returning a CFSTOREPROC from a CFFUNCTION

2009-05-07 Thread David Torres

That example was good. It helped part of my situation, but remember that my 
cfstoredproc is inside a cffunction. I would like to know how to do that. 

I spent a few more minutes trying something, and it's working the way I want it.
This is my final solution:

The function:
cffunction name=updatePKG returntype=any  
cfargument name=in_table type=any required=false default=
cfargument name=in_column type=any required=false default=
cfargument name=in_new_value type=any required=false default=
cfargument name=in_where type=any required=false default= 
cfset loc = structnew() /

cfstoredproc procedure = sp_test datasource=#Application.Global.dsn# 
username=#Application.Global.dsnUN# password=#Application.Global.dsnPW# 
cfprocresult name= rs1  

cfprocparam type = IN cfsqltype=cf_sql_varchar 
value=#arguments.in_table#
cfprocparam type = IN cfsqltype=cf_sql_varchar 
value=#arguments.in_column#
cfprocparam type = IN cfsqltype=cf_sql_varchar 
value='#arguments.in_new_value#'
cfprocparam type = IN cfsqltype=cf_sql_varchar 
value=#arguments.in_where#
cfprocparam type = OUT cfsqltype=cf_sql_varchar variable=results

/cfstoredproc
cfset loc = {
r1 = rs1,
r2 = #results#
} /
cfreturn loc
/cffunction

I need to do something like this because I wanted to used the output variable 
from my calling javascript function. Now I can use it.

Thanks to you all guys,

You are the best! 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322293
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Returning a CFSTOREPROC from a CFFUNCTION

2009-05-07 Thread Jared Legg

I think your asking, how would you call the function and display the results?

Here would be an example:
cfset cfcObject = createObject(component,componentPath.ComponentName) /
cfset testVar = cfcObject.updatePKG(table,column,in_new,in_where) /

If you do a cfreturn rs1 /, that will return the query result to the testVar 
variable.

Then you can loop through the query:
cfloop query=testVar
  #column_name_example#
/cfloop


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322294
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: File upload suddenly stops working

2009-05-07 Thread UXB Internet

 no longer able to upload files to their website via HTML forms.  
 The code was written 6 (?) years ago on CF5/IIS/Win2000 using CFFILE.


We had a case a while ago where a client using a similar cffile upload
script/HTML form suddenly couldn't upload files through their admin page.
The problem was that their anti-virus/internet security program on the
client PC was blocking the upload and would not send the data in the form.

I couldn't replicate it until I went to their location and saw the issue in
person.  Temporarily disabling the firewall allowed the upload. They
eventually called Symantec tech support and was given instructions on how to
allow the post to go through. 

I see this type of thing a lot on another website that uses FTP for
download. The Internet Security programs close off port 21 by default and
most all but the basic HTTP, SMTP  POP3 ports.  Now they are blocking all
traffic not going through their own proxies and need exceptions for just
about any outbound traffic.

-Dennis



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322295
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC Wrapper for ImageMagick?

2009-05-07 Thread Michael Muller

I've just started using it too, and would love a CFC interface to it rather 
than using CFEXECUTE.

Have to say, their docs are horrible though. Very little in the way of actual 
command line syntax, and some of the examples are just plain wrong.

Mik


That would be cool!

If noone has one...I'd be willing to try a crack at a cfc...I have been 
slammed though, so I can't make any promises on a timeline.

--Josh


---
Exciteworks -- expert hosting for less!
http://exciteworks.com
specializing in reseller accounts


Burns, John wrote:

 I seem to remember hearing about a CFC written to interface with 
 ImageMagick.  All I can seem to find is the MagickTag custom tag for 
 doing that.  Does anyone know of a CFC?  Thanks.


 John Burns
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322296
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Small scale Twitter Clone for CF?

2009-05-07 Thread Casey Dougall

On Thu, May 7, 2009 at 11:19 AM, Nathan C. Smith nathan.sm...@ipmvs.comwrote:


 I know somebody is working on an identi.ca type software in CF but I
 wondered if anyone had a smaller-scale twitter-like application.  I'm not
 looking for super-fancy APIs or the ability to federate sites.  This would
 be something used experimentally on an intranet for now.

 Thanks for any pointers.

 -Nate


there are a few floating around on riaforge.

Simplest

http://twittercfc.riaforge.org/

Methods:
init(username,password)
postToTwitter(status,username,password)
getFriendsTimeline(username,password)
getPublicTimeline()


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322297
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC Wrapper for ImageMagick?

2009-05-07 Thread Dan Baughman

I know it was done once as a custom tag, with nested parameters and all
that.

Was called cf_magicktag... really old but it is what I used prior to image
support in cf8.



On Thu, May 7, 2009 at 12:26 PM, Michael Muller ad...@montaguema.netwrote:


 I've just started using it too, and would love a CFC interface to it rather
 than using CFEXECUTE.

 Have to say, their docs are horrible though. Very little in the way of
 actual command line syntax, and some of the examples are just plain wrong.

 Mik


 That would be cool!
 
 If noone has one...I'd be willing to try a crack at a cfc...I have been
 slammed though, so I can't make any promises on a timeline.
 
 --Josh
 
 
 ---
 Exciteworks -- expert hosting for less!
 http://exciteworks.com
 specializing in reseller accounts
 
 
 Burns, John wrote:
 
  I seem to remember hearing about a CFC written to interface with
  ImageMagick.  All I can seem to find is the MagickTag custom tag for
  doing that.  Does anyone know of a CFC?  Thanks.
 
 
  John Burns
 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322298
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Returning a CFSTOREPROC from a CFFUNCTION

2009-05-07 Thread Dave Watts

 I spent a few more minutes trying something, and it's working the way I want 
 it.
 This is my final solution:

 The function:
 cffunction name=updatePKG returntype=any
 cfargument name=in_table type=any required=false default=
 cfargument name=in_column type=any required=false default=
 cfargument name=in_new_value type=any required=false default=
 cfargument name=in_where type=any required=false default=
 cfset loc = structnew() /

 cfstoredproc procedure = sp_test datasource=#Application.Global.dsn# 
 username=#Application.Global.dsnUN# password=#Application.Global.dsnPW# 
 cfprocresult name= rs1

 cfprocparam type = IN     cfsqltype=cf_sql_varchar 
 value=#arguments.in_table#
 cfprocparam type = IN     cfsqltype=cf_sql_varchar 
 value=#arguments.in_column#
 cfprocparam type = IN     cfsqltype=cf_sql_varchar 
 value='#arguments.in_new_value#'
 cfprocparam type = IN     cfsqltype=cf_sql_varchar 
 value=#arguments.in_where#
 cfprocparam type = OUT cfsqltype=cf_sql_varchar variable=results

 /cfstoredproc
 cfset loc = {
 r1 = rs1,
 r2 = #results#
 } /
 cfreturn loc
 /cffunction

I would recommend that you replace this:

cfset loc = structNew()

with this:

cfset var loc = structNew()
cfset var rs1 = 

This will create local variables, rather than variables accessible to
the entire CFC or function container, and is a best practice unless
you explicitly want to create variables with a broader scope.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more info

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322299
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Returning a CFSTOREPROC from a CFFUNCTION

2009-05-07 Thread David Torres

From Javascript? I am doing an AJAX call here.

David

 I think your asking, how would you call the function and display the 
 results?
 
 Here would be an example:
 cfset cfcObject = createObject(component,componentPath.
 ComponentName) /
 cfset testVar = cfcObject.updatePKG(table,column,in_new,
 in_where) /
 
 If you do a cfreturn rs1 /, that will return the query result to the 
 testVar variable.
 
 Then you can loop through the query:
 cfloop query=testVar
  
 #column_name_example#
 /cfloop


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322300
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Event gateway problem with directory watcher

2009-05-07 Thread Phillip B

I tried cflock but had some issues getting it to work the way I was wanting it 
to. I'll try again though.

Im on CF 8 Ent. I think the issue is partially because each file will run in 
its own thread at the same time. I'm new with event gateways so I'll look more 
into the threading side of it. 

Thanks

Phil

 
 I can think of two things:
 
 1.  Use cflock, this should lock the 1st process to come up and keep 
 it until it is done especially if set the lock type to exclusive which 
 will not allow another resource to neither read nor write during the 
 time the lock is in effect.  Read only will work too, since your 
 problem is the two objects getting written at the same time.
 
 2.  Some sort of thread checking/processing.  if you use CF 8 the new 
 cfthread tag is available, I have not used it myself, but I'm sure you 
 can find info on how to use it on the live docs site.  If that is not 
 an option and you have some Java programming skills you could write a 
 little Java in cfscript tags and create the threads.  I'm sure there's 
 a .NET equivalent as well, again you need CF 8.  If you are not into 
 using .NET or Java, the 1st option may be your best bet.
 
 --JW 


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322301
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC Wrapper for ImageMagick?

2009-05-07 Thread Nathan Strutz

I used cf_magicktag back in the day, and I will let you all know that it's
complete crap - never use it. seriously.

Michael - Use cfexecute, put it in a cfc as a wrapper for the exe. Sorry,
that's all I've got.

nathan strutz
[Blog and Family @ http://www.dopefly.com/]
[AZCFUG Manager @ http://www.azcfug.org/]



On Thu, May 7, 2009 at 10:55 AM, Dan Baughman dan.baugh...@gmail.comwrote:


 I know it was done once as a custom tag, with nested parameters and all
 that.

 Was called cf_magicktag... really old but it is what I used prior to image
 support in cf8.



 On Thu, May 7, 2009 at 12:26 PM, Michael Muller ad...@montaguema.net
 wrote:

 
  I've just started using it too, and would love a CFC interface to it
 rather
  than using CFEXECUTE.
 
  Have to say, their docs are horrible though. Very little in the way of
  actual command line syntax, and some of the examples are just plain
 wrong.
 
  Mik
 
 
  That would be cool!
  
  If noone has one...I'd be willing to try a crack at a cfc...I have been
  slammed though, so I can't make any promises on a timeline.
  
  --Josh
  
  
  ---
  Exciteworks -- expert hosting for less!
  http://exciteworks.com
  specializing in reseller accounts
  
  
  Burns, John wrote:
  
   I seem to remember hearing about a CFC written to interface with
   ImageMagick.  All I can seem to find is the MagickTag custom tag for
   doing that.  Does anyone know of a CFC?  Thanks.
  
  
   John Burns
  
 
 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322302
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CF8 SSL GZIP Scheduler

2009-05-07 Thread Dennis House of Fusion

I've run into the known issue with the CF Scheduler where the page will return 
the Error Detail Connect Exception: Connection timed out: connect.

On my dev box I followed instructions found at : 
http://www.talkingtree.com/blog/index.cfm/2004/7/1/keytool

this changed the error messages and I then ran across the Integrated security 
issue.  I turned off IA and then set file permissions to Everyone has ALL 
rights and I think that was the final issue...

NOW, I have the same issue on Production.  I've run the first fix stated above 
and I still get the same error.  I exported the cer file from the site using 
IE's cert export feature, and imported it using those instructions.

Result from a page using a call to CFHTTP:

struct
Charset  [empty string]
ErrorDetail  Connect Exception: Connection timed out: connect
Filecontent  Connection Failure
Header   [empty string]
Mimetype Unable to determine MIME type of file.
Responseheader  
struct [empty]
Statuscode   Connection Failure. Status code unavailable.
Text YES

I've gone as far as allowing the page in question to be served via HTTP instead 
of HTTPS and I still get the SAME error message?

I've modified the call to CFHTTP to add a few params to see if GZIP is the 
problem...

cfheader name=httpZip value=no-compression / 
cfhttp method=get 
url=http://unison.medicarecrm.com/Automation/RRDonnelley.cfm; 
result=AllData  
  cfhttpparam type=header name=Accept-Encoding value=* /  
  cfhttpparam type=Header name=TE value=deflate;q=0 
/cfhttp 
cfdump var=#AllData# 
cfabort

I get the same result...  What is the solution here ...  Anyone? 
.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322303
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 SSL GZIP Scheduler

2009-05-07 Thread Dave Watts

 I've gone as far as allowing the page in question to be served via HTTP 
 instead of HTTPS and I still get the SAME error message?

 I've modified the call to CFHTTP to add a few params to see if GZIP is the 
 problem...

 cfheader name=httpZip value=no-compression /
 cfhttp method=get 
 url=http://unison.medicarecrm.com/Automation/RRDonnelley.cfm; 
 result=AllData
  cfhttpparam type=header name=Accept-Encoding value=* /
  cfhttpparam type=Header name=TE value=deflate;q=0
 /cfhttp
 cfdump var=#AllData#
 cfabort

 I get the same result...  What is the solution here ...  Anyone?

Lots of things can cause a connection failure. Are you able to browse
that URL from the server's console?

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more informat

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322304
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CFC Wrapper for ImageMagick?

2009-05-07 Thread Casey Dougall

On Thu, May 7, 2009 at 2:26 PM, Michael Muller ad...@montaguema.net wrote:


 I've just started using it too, and would love a CFC interface to it rather
 than using CFEXECUTE.

 Have to say, their docs are horrible though. Very little in the way of
 actual command line syntax, and some of the examples are just plain wrong.

 Mik



re-read this thread and see if you really still need imageMagic

imageCFC should do the trick for ya...

http://www.houseoffusion.com/groups/cf-community/thread.cfm/threadid:29624


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322305
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 SSL GZIP Scheduler

2009-05-07 Thread Dennis House of Fusion

 Lots of things can cause a connection failure. Are you able to browse
 that URL from the server's console?

Dave,

Yes, I can call the file directly and i get the expected response.

Calling it via CFHTTP or using the scheduler (which mimics cfhttp) gives me the 
error stated above.

D. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322306
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: mail attachments prob

2009-05-07 Thread Eric P

The cfmailparam tag has a new attribute in CF 8 to delete an
attachment after it has been sent.

E.g.,
cfmailparam file=/tmp/attachment.txt remove=true

Eric

On Fri, May 2, 2008 at 10:22 AM, Richard Meredith-Hardy
r...@flymicro.com wrote:
 Don't worry, found it.

 In this case I was copying a file from one with a uuid name to one with a
 sensible name to send, sending it in cfmail, and then deleting it.

 In CF5 this was fine, but the copy was clearly being deleted in cf8 before
 cfmail got round to actually dealing with the attached file, hence the
 error.

 Richard

 -Original Message-
 From: Richard Meredith-Hardy [mailto:r...@flymicro.com]
 Sent: 02 May 2008 12:29
 To: CF-Talk
 Subject: mail attachments prob

 Sending a mail with an attachment. (works fine without)

 Can someone explain why code which works fine in CF5 won't
 work in CF8?

 Error in mail log is: IOException while sending message

 I can't see anything immediately obvious from the
 documentation, a mime type or something?  (these attachments
 are always pdf's)

 Thanks

 Richard






 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322307
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 SSL GZIP Scheduler

2009-05-07 Thread Dennis House of Fusion

 Are you able to browse
 that URL from the server's console?

Actually..  hmmm...  No, not the servers console...  When I try I get no 
response.

This is a hardware load balanced setup.  From the server I cannot browse the 
site... so I guess I am going to have problems calling this page inside the 
scheduler.

if I tracert the urls from the cmd window I get this 

Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\Documents and Settings\universal.MCRMtracert unison.medicarecrm.com

Tracing route to unison.medicarecrm.com [76.12.202.220]
over a maximum of 30 hops:

  11 ms 1 ms 1 ms  76.12.202.225
  2 2 ms 1 ms 1 ms  76.12.202.220

Trace complete.

C:\Documents and Settings\universal.MCRMtracert cdphp.medicarecrm.com

Tracing route to cdphp.medicarecrm.com [76.12.202.221]
over a maximum of 30 hops:

  11 ms 1 ms 1 ms  76.12.202.225
  2   438 ms 7 ms 1 ms  76.12.202.221

Trace complete.



But when I browse to the URLs I get no response...

C:\Documents and Settings\universal.MCRMtelnet unison.medicarecrm.com 443
Connecting To unison.medicarecrm.com...Could not open connection to the host, 
on port 443: Connect failed

C:\Documents and Settings\universal.MCRMtelnet unison.medicarecrm.com 80
Connecting To unison.medicarecrm.com...Could not open connection to the host, 
on port 80: Connect failed


So what do I do now?




~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322308
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: CF8 SSL GZIP Scheduler

2009-05-07 Thread Dave Watts

 Actually..  hmmm...  No, not the servers console...  When I try I get no 
 response.

 This is a hardware load balanced setup.  From the server I cannot browse the 
 site... so I guess I am going to have problems calling this page inside the 
 scheduler.

 if I tracert the urls from the cmd window I get this

 Microsoft Windows [Version 5.2.3790]
 (C) Copyright 1985-2003 Microsoft Corp.

 C:\Documents and Settings\universal.MCRMtracert unison.medicarecrm.com

 Tracing route to unison.medicarecrm.com [76.12.202.220]
 over a maximum of 30 hops:

  1    1 ms     1 ms     1 ms  76.12.202.225
  2     2 ms     1 ms     1 ms  76.12.202.220

 Trace complete.

 C:\Documents and Settings\universal.MCRMtracert cdphp.medicarecrm.com

 Tracing route to cdphp.medicarecrm.com [76.12.202.221]
 over a maximum of 30 hops:

  1    1 ms     1 ms     1 ms  76.12.202.225
  2   438 ms     7 ms     1 ms  76.12.202.221

 Trace complete.

That indicates that the names resolve to reachable IP addresses, which is good.

 But when I browse to the URLs I get no response...

 C:\Documents and Settings\universal.MCRMtelnet unison.medicarecrm.com 443
 Connecting To unison.medicarecrm.com...Could not open connection to the host, 
 on port 443: Connect failed

 C:\Documents and Settings\universal.MCRMtelnet unison.medicarecrm.com 80
 Connecting To unison.medicarecrm.com...Could not open connection to the host, 
 on port 80: Connect failed

 So what do I do now?

You talk to your network administrator, and see how you can resolve
this. If you are the network administrator, you should be able to
resolve this directly. Or, if those names point to a cluster, try
accessing one of the cluster members directly.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322309
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


http authentication for createObject-ed webservice

2009-05-07 Thread denstar

Hi!

I'm trying to use a webservice that uses http-based authentication.

Using cfinvoke works fine, but I need createObject, as the returned
documents are in the request as attachments.

If I define the WS in the CF admin area, createObject works fine, but
I don't want to have to access the admin to do what I want to do.

It's easy enough to use some existing code I have, to compile the WSDL
myself, on the fly, and use a javaloader-- or just a plain java
wsclient, or this 3rd party lib -- but I'm stubborn, and think there
should be a way to do what I want within the system (now that I've got
3 ways of doing it outside the system).

Anyone have any nifty ideas?

I know CF-WS-consumption-land is a land of fun,
undocumented-yet-super-useful functions, so I'm thinking there's a
possibility... even if it's something dumb and not nifty, like using
cfhttp first and passing that session along or something.

Just plain curious, as I'm liking what I ended up with, so original
problem solved... but still.

Is there a more obvious way I overlooked?

-d

-- 
The dynamics of capitalism is postponement of enjoyment to the
constantly postponed future.
Norman O. Brown

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322310
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 SSL GZIP Scheduler

2009-05-07 Thread denstar

On Thu, May 7, 2009 at 3:17 PM, Dave Watts wrote:
...
 So what do I do now?

 You talk to your network administrator, and see how you can resolve
 this. If you are the network administrator, you should be able to
 resolve this directly. Or, if those names point to a cluster, try
 accessing one of the cluster members directly.

Yeah.  What he said.

And maybe use IP numbers instead of DNS names, since there could be
some wanky-ness going on there.

=DeN*

-- 
The view only changes for the lead dog.
Norman O. Brown

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322311
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Coldfusion 8 w/Apache 2 Server Load Guidelines?

2009-05-07 Thread Chris Roberts

Web Server: Apache 2.2
CPU(s): Intel(R) Xeon(R) CPU, 5160  @ 3.00GHz, 2 core
Memory: 4G
Operating System: SUSE Linux Enterprise Server 10 (i586), VERSION = 10, 
PATCHLEVEL = 2

Application Server: Cold Fusion 8 Standard
 
Database Server: postgresql CPU(s):Dual Core AMD Opteron(tm) Processor 275, 
Memory: 2G
Operating System: SUSE LINUX Enterprise Server 9 (x86_64), VERSION = 9, 
PATCHLEVEL = 3
Database Version:8.3.5

For 99% percent of the time we have a pretty light load with 1500 hits a day 
mostly info pieces and some light e-commerce to register for classes. On 
registration days we get annihilated jumping from 200 connections to 1000 right 
when we open. 

We have used jmeter to try and gauge exactly what our one server is capable of 
handling. And I guess we still really do not know. I have noticed that if we 
sustain anything over 700 apache connects JRUN will throw errors. This seems to 
be by a design limit and happens automatically regardless of the pages 
involved. Seefusion does not show any specially slow page or query.

Can anyone suggest some general guidelines as to how many apache connections we 
should allow and what cf8 standard should be able to handle. The registration 
process is db intensive requiring many calls per page to maintain session etc. 
We have to do this to maintain compatibility with our internal system.

I believe we are hoping to be able to accomodate 1,000 users at peak. Is this 
something we can do with cf 8 standard on a single box? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322312
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 SSL GZIP Scheduler

2009-05-07 Thread Dennis House of Fusion

On Thu, May 7, 2009 at 3:17 PM, Dave Watts wrote:
And maybe use IP numbers instead of DNS names, since there could be
some wanky-ness going on there.
=DeN*

... and a third option has presented itself...

I'm going to use my DEV servers Scheduler to call upon the production page.  
It's not necessarily elegant, but atleast it all works!

Thanks for responses thus far...  I did try using the IP of one of the load 
balanced virtual IPs but no love.  I wonder if CF error page caching is 
occurring?  Anyway doesn't matter... DEV scheduler is going to do the job of 
calling over to the Prod page... Works for me!

D. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322313
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Coldfusion 8 w/Apache 2 Server Load Guidelines?

2009-05-07 Thread Judah McAuley

I can't provide the guidance you are looking for, but if the spikes
really are severe and limited you might want to look into hosting with
a cloud computing setup, like at Amazon. You can get a Railo image
hosted with Amazon for pretty cheap. Once you get it configured to
your liking you can save an image and then run a load monitoring app
and spin up new machines with your custom image to load balance and
handle the traffic spikes. In that scenario you only pay for
additional resource utilization when you really need it and you don't
have to pay for an overbuilt server the rest of the time. Might be
just the thing for your situation.

Cheers,
Judah

On Thu, May 7, 2009 at 3:35 PM, Chris Roberts crobe...@thprd.com wrote:

 Web Server: Apache 2.2
 CPU(s): Intel(R) Xeon(R) CPU, 5160  @ 3.00GHz, 2 core
 Memory: 4G
 Operating System: SUSE Linux Enterprise Server 10 (i586), VERSION = 10, 
 PATCHLEVEL = 2

 Application Server: Cold Fusion 8 Standard

 Database Server: postgresql CPU(s):Dual Core AMD Opteron(tm) Processor 275,
 Memory: 2G
 Operating System: SUSE LINUX Enterprise Server 9 (x86_64), VERSION = 9, 
 PATCHLEVEL = 3
 Database Version:8.3.5

 For 99% percent of the time we have a pretty light load with 1500 hits a day 
 mostly info pieces and some light e-commerce to register for classes. On 
 registration days we get annihilated jumping from 200 connections to 1000 
 right when we open.

 We have used jmeter to try and gauge exactly what our one server is capable 
 of handling. And I guess we still really do not know. I have noticed that if 
 we sustain anything over 700 apache connects JRUN will throw errors. This 
 seems to be by a design limit and happens automatically regardless of the 
 pages involved. Seefusion does not show any specially slow page or query.

 Can anyone suggest some general guidelines as to how many apache connections 
 we should allow and what cf8 standard should be able to handle. The 
 registration process is db intensive requiring many calls per page to 
 maintain session etc. We have to do this to maintain compatibility with our 
 internal system.

 I believe we are hoping to be able to accomodate 1,000 users at peak. Is this 
 something we can do with cf 8 standard on a single box?

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322314
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF8 SSL GZIP Scheduler

2009-05-07 Thread Dave Watts

 Anyway doesn't matter... DEV scheduler is going to do the job of calling over 
 to the Prod page... Works for me!

What I usually try to do in these sorts of cases is to route HTTP
request from CF to the same server via localhost. You can create a new
virtual server in IIS or Apache for this, if you need to, or use CF's
own web server.

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

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322315
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Coldfusion 8 w/Apache 2 Server Load Guidelines?

2009-05-07 Thread James Holmes

If you hit what seems to be limit when the number of simultaneous
connections is a certain number, it's possible that the stack space
used for each thread is filling up the memory.

What does SeeFusion say is happening to the memory in the JVM as the
client count rises? What are your JVM memory settings? What are the
errors being thrown?

mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

2009/5/8 Chris Roberts crobe...@thprd.com:

 Web Server: Apache 2.2
 CPU(s): Intel(R) Xeon(R) CPU, 5160  @ 3.00GHz, 2 core
 Memory: 4G
 Operating System: SUSE Linux Enterprise Server 10 (i586), VERSION = 10, 
 PATCHLEVEL = 2

 Application Server: Cold Fusion 8 Standard

 Database Server: postgresql CPU(s):Dual Core AMD Opteron(tm) Processor 275,
 Memory: 2G
 Operating System: SUSE LINUX Enterprise Server 9 (x86_64), VERSION = 9, 
 PATCHLEVEL = 3
 Database Version:8.3.5

 For 99% percent of the time we have a pretty light load with 1500 hits a day 
 mostly info pieces and some light e-commerce to register for classes. On 
 registration days we get annihilated jumping from 200 connections to 1000 
 right when we open.

 We have used jmeter to try and gauge exactly what our one server is capable 
 of handling. And I guess we still really do not know. I have noticed that if 
 we sustain anything over 700 apache connects JRUN will throw errors. This 
 seems to be by a design limit and happens automatically regardless of the 
 pages involved. Seefusion does not show any specially slow page or query.

 Can anyone suggest some general guidelines as to how many apache connections 
 we should allow and what cf8 standard should be able to handle. The 
 registration process is db intensive requiring many calls per page to 
 maintain session etc. We have to do this to maintain compatibility with our 
 internal system.

 I believe we are hoping to be able to accomodate 1,000 users at peak. Is this 
 something we can do with cf 8 standard on a single box

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322316
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4