RE: Two questions

2006-12-21 Thread Turetsky, Seth
I think I have OCD with the unneeded #'s, if I ever open a coworkers' code and 
see them I have to remove them or I feel like bugs are crawling all over me. 

-Original Message-
From: Ben Forta [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 20, 2006 7:15 PM
To: CF-Talk
Subject: RE: Two questions

No need to escape that, it'll work as is. It may look funny in editors, but  
is fine.

But what you really don't need are the #'s around string.

--- Ben
 

-Original Message-
From: Richard Colman [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 20, 2006 6:59 PM
To: CF-Talk
Subject: RE: Two questions

1) if I want to do a replace where the character to be replaced is a forward or 
backward angle bracket  or  then I assume that this will not work:

  cfset name = replace(#string1#, ,, ALL)

How do I escape the bracket character to make it work?

2) this is from the CFFILE doc for action=read:

It is not intended for use with large files, such as logs, because this can 
bring down the server.

Will a 500K text file bring down the server?

TNX for any thoughts.

Rick Colman

 






~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264709
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Two questions

2006-12-21 Thread Ryan Emerle
I would recommend REReplace instead, so that you can replace both left
and right angle brackets in one shot since you're dealing with a large
file.

REReplace(string,(|),,ALL)

If you're worried about the speed, you can always drop down to straight Java:
http://www.google.com/search?hl=enq=coldfusion+java+bufferedreader

-- 
Ryan Emerle

Query2Excel - Write Excel files from ColdFusion
http://www.emerle.net/programming/display.cfm/t/cfx_query2excel

Excel2Query - Read Excel files from ColdFusion
http://www.emerle.net/programming/display.cfm/t/cfx_excel2query
 -Original Message-
 From: Richard Colman [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, December 20, 2006 6:59 PM
 To: CF-Talk
 Subject: RE: Two questions

 1) if I want to do a replace where the character to be replaced is a forward 
 or backward angle bracket  or  then I assume that this will not work:

   cfset name = replace(#string1#, ,, ALL)

 How do I escape the bracket character to make it work?

 2) this is from the CFFILE doc for action=read:

 It is not intended for use with large files, such as logs, because this can 
 bring down the server.

 Will a 500K text file bring down the server?

 TNX for any thoughts.

 Rick Colman

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264720
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Two questions

2006-12-20 Thread Charlie Griefer
On 12/20/06, Richard Colman [EMAIL PROTECTED] wrote:
 1) if I want to do a replace where the character to be replaced is a
 forward or backward angle bracket  or  then I assume that this
 will not work:

   cfset name = replace(#string1#, ,, ALL)

why assume?  did you try it?

-- 
Charlie Griefer


...All the world shall be your enemy, Prince with a Thousand Enemies,
and whenever they catch you, they will kill you. But first they must catch
you, digger, listener, runner, prince with a swift warning.
Be cunning and full of tricks and your people shall never be destroyed.

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264673
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Two questions

2006-12-20 Thread Jerry Johnson
Depends on the server, the load, and what else is going on.

I do it all the time, on a privately owned dev server.
I don't think I would do that (often) on a production server.
I would never do it in a shared hosting environment. Honest. Really. Never.
=)

Jerry

On 12/20/06, Richard Colman [EMAIL PROTECTED] wrote:

 1) if I want to do a replace where the character to be replaced is a
 forward or backward angle bracket  or  then I assume that this
 will not work:

   cfset name = replace(#string1#, ,, ALL)

 How do I escape the bracket character to make it work?

 2) this is from the CFFILE doc for action=read:

 It is not intended for use with large files, such as logs, because this
 can bring down the server.

 Will a 500K text file bring down the server?

 TNX for any thoughts.

 Rick Colman




 

~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264674
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Two questions

2006-12-20 Thread Richard Colman
1) if I want to do a replace where the character to be replaced is a
forward or backward angle bracket  or  then I assume that this
will not work:

  cfset name = replace(#string1#, ,, ALL)

How do I escape the bracket character to make it work?

2) this is from the CFFILE doc for action=read:

It is not intended for use with large files, such as logs, because this
can bring down the server.

Will a 500K text file bring down the server?

TNX for any thoughts.

Rick Colman

 


~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264675
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Two questions

2006-12-20 Thread Ben Forta
No need to escape that, it'll work as is. It may look funny in editors, but
 is fine.

But what you really don't need are the #'s around string.

--- Ben
 

-Original Message-
From: Richard Colman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 20, 2006 6:59 PM
To: CF-Talk
Subject: RE: Two questions

1) if I want to do a replace where the character to be replaced is a forward
or backward angle bracket  or  then I assume that this will not work:

  cfset name = replace(#string1#, ,, ALL)

How do I escape the bracket character to make it work?

2) this is from the CFFILE doc for action=read:

It is not intended for use with large files, such as logs, because this can
bring down the server.

Will a 500K text file bring down the server?

TNX for any thoughts.

Rick Colman

 




~|
Create robust enterprise, web RIAs.
Upgrade  integrate Adobe Coldfusion MX7 with Flex 2
http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:264677
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Two Questions for the price of one!

2001-05-18 Thread Craig Bowes

It really doesn't matter what I put for the requesttimeout.  It breaks way
before that.

-Original Message-
From: Dan Phillips [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 4:14 PM
To: CF-Talk
Subject: RE: Two Questions for the price of one!

Query String: fuseaction=getmessagesrequesttimeout=300
Sounds to me like the process it timing out before it has a chance to
download all the mail. You would think that 5 minutes would be enough time
though to pull 1600 message though...unless we are not talking about
standard text only messages. If you have a rather big attachment in the mail
that could put it over the 5 minute time limit. Just taking a guess here.

Dan Phillips

-Original Message-
From: Craig Bowes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 4:54 PM
To: CF-Talk
Subject: Two Questions for the price of one!


I have two related questions:

I am trying to pull in emails from a pop server using cfpop and database
them.  However, the account I need to pull from  has some 1600 emails in it.
cfpop doesn't seem to want to cooperate.  It gives me the following error:


Error Occurred While Processing Request


Error Diagnostic Information

unknown exception condition
unknown error while executing a tag.
Date/Time: 05/17/01 15:13:45
Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
Remote Address: 66.80.49.128
HTTP Referer:
http://www.hospitalityadventures.com/admin/index.cfm?fuseaction=menu
Query String: fuseaction=getmessagesrequesttimeout=300
Please inform the site administrator mailto:[EMAIL PROTECTED]  that
this error has occurred (be sure to include the contents of this page in
your message to the administrator).

Just a little cryptic, eh?  My code seems to work fine if I check my own
email account which is why I suspect it is the amount of messages it is
trying to pull.  I put maxes for the queries but I'm not certain that helps
the cfpop tag in the retrieval process.  Here's my code:



CFPOP  action=GETALL name=Messages
attachmentpath=#request.attachpath# maxrows=50
generateuniquefilenames=Yes server=#request.messageserver#
username=#request.messageusername# password=#request.messagepassword#



1)   What am I doing wrong here?  I even tried some of the custom POP
tags out there and they failed also.
2)   Someone mentioned pulling the cftalk mailing list messages from
outlook into a database through VB or VBA.  Does anyone know of this and
would it be a viable solution?

Thanks,
-Craig
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: Two Questions for the price of one!

2001-05-17 Thread Dan Phillips

Query String: fuseaction=getmessagesrequesttimeout=300
Sounds to me like the process it timing out before it has a chance to
download all the mail. You would think that 5 minutes would be enough time
though to pull 1600 message though...unless we are not talking about
standard text only messages. If you have a rather big attachment in the mail
that could put it over the 5 minute time limit. Just taking a guess here.

Dan Phillips

-Original Message-
From: Craig Bowes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 4:54 PM
To: CF-Talk
Subject: Two Questions for the price of one!


I have two related questions:

I am trying to pull in emails from a pop server using cfpop and database
them.  However, the account I need to pull from  has some 1600 emails in it.
cfpop doesn’t seem to want to cooperate.  It gives me the following error:


Error Occurred While Processing Request


Error Diagnostic Information

unknown exception condition
unknown error while executing a tag.
Date/Time: 05/17/01 15:13:45
Browser: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
Remote Address: 66.80.49.128
HTTP Referer:
http://www.hospitalityadventures.com/admin/index.cfm?fuseaction=menu
Query String: fuseaction=getmessagesrequesttimeout=300
Please inform the site administrator mailto:[EMAIL PROTECTED]  that
this error has occurred (be sure to include the contents of this page in
your message to the administrator).

Just a little cryptic, eh?  My code seems to work fine if I check my own
email account which is why I suspect it is the amount of messages it is
trying to pull.  I put maxes for the queries but I’m not certain that helps
the cfpop tag in the retrieval process.  Here’s my code:



CFPOP  action=GETALL name=Messages
attachmentpath=#request.attachpath# maxrows=50
generateuniquefilenames=Yes server=#request.messageserver#
username=#request.messageusername# password=#request.messagepassword#



1)   What am I doing wrong here?  I even tried some of the custom POP
tags out there and they failed also.
2)   Someone mentioned pulling the cftalk mailing list messages from
outlook into a database through VB or VBA.  Does anyone know of this and
would it be a viable solution?

Thanks,
-Craig
~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists