Re: What's in your toolkit?

2004-11-24 Thread Sean Corfield
On Wed, 24 Nov 2004 11:59:28 +1100, Paul Wilson [EMAIL PROTECTED] wrote:
 OK CFEclipse seems to be a must. DWMX is driving me a bit mad at the
 moment so I'll give it a go. What about modelling applications? Is there
 anything specific for CFMX?

I'm hoping to produce a UML / CFC round-trip plugin for CFEclipse at
some point, as I find time.

As for the FB4 questions, Simeon and I are looking at a FB4 plugin for
CFEclipse.

What features would you like?
-- 
Sean A Corfield -- http://www.corfield.org/
Team Fusebox -- http://www.fusebox.org/
Breeze Me! -- http://www.corfield.org/breezeme
Got Gmail? -- I have 1 invite

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

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185282
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF Crash : Server Config or J2EE

2004-11-24 Thread Micha Schopman
Steven, are there any indications that Macromedia focuses on fixing the
foundation and adding new features afterwards? These issues come up a
lot, I see more stability issues than regular questions about the
language. I would hate to see new CFMX installs can only be used in
production environments after clients have invested $5000 in monitoring,
tuning, configuring, and biting their nails. CFMX becomes due to these
issues one of the most expensive packages you can imagine.

Micha Schopman
Software Engineer

Modern Media, Databankweg 12 M, 3821 AL  Amersfoort
Tel 033-4535377, Fax 033-4535388
KvK Amersfoort 39081679, Rabo 39.48.05.380



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185283
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Sessions, losing CFID/CFTOKEN

2004-11-24 Thread Umer Farooq
Are you positive  that there is no session sharing going on..

its possible that two users are sharing sessions.. and one logs out.. 
kicking the other one out..



Ken Dunnington wrote:
 Thanks for the tip, but I'm afraid that wasn't it either (though
 that's good to know for the future!)
 
 I'm at the point now where the machines that lose session info are
 losing it immediately after it's set! In other words, if I add an item
 to a shopping cart, as soon as the user clicks off the View Cart page,
 the session is gone. Yet, my workstation (and several others around
 the office) don't have this problem. I checked to see if cookies were
 enabled (they are) and I've tried several combinations of
 cfapplication tag properties.
 
 This whole thing has me baffled. I know I shouldn't be mucking around
 this much just to get session management working properly.
 
 On Tue, 23 Nov 2004 15:27:43 -0500, Sandy Clark [EMAIL PROTECTED] wrote:
 
The set domain cookies issue losing CFID/CFTOKEN is an IE issue.

I can't find the knowledge base item, but I remember I ran into this a long
time ago.  Try it in another better browser.  If it works there, you still
have the issue, but at least you know what is causing it.




-- 
Umer Farooq
Octadyne Systems
[EMAIL PROTECTED]
+1 (519) 772-5424 voice
+1 (519) 635-2795 mobile
+1 (208) 275-3824 fax


LOOKING FOR A USED CAR IN IOWA VISIT: http://www.IowaMotors.com


WARNING: --- The information contained in 
this document and attachments is confidential and intended only for the 
person(s) named above. If you are not the  intended recipient you are 
hereby notified that any disclosure, copying, distribution, or any other 
use of the information is strictly prohibited.  If you have received 
this document by mistake, please notify the sender immediately and 
destroy this document and attachments without making any copy of any kind.


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185284
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: MSDE VS. SQL Server

2004-11-24 Thread Jerry Barnes
http://www.teratrax.com/articles/msde_vs_sql_server.html



-Original Message-
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 23, 2004 8:21 PM
To: CF-Talk
Subject: MSDE VS. SQL Server

I'm thinking about different options for my clients when suggesting the
right database for the right application. My question is this: Is MSDE
designed to even a viable option? Or is it mainly used for testing apps,
then running live with SQL Server?


Thanks,
Will



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185285
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Week() and DayOfWeek() issues

2004-11-24 Thread COLLIE David
Can someone confirm that this isn't right and I'm not missing something
obvious?  Cheers.

ISSUE
Week() uses Monday as it's first day of the week
DayOfWeek() uses Sunday as it's first day of the week


CODE
cfscript
test = structNew();

test.saturday = structNew();
test.saturday.date = createDate(2004,11,20);
test.saturday.weekNo = week(test.saturday.date);
test.saturday.dayOfWeek = dayOfWeek(#test.saturday.date#);
test.saturday.weekNoISO = ISOWeek(test.saturday.date);

test.sunday = structNew();
test.sunday.date = createDate(2004,11,21);
test.sunday.weekNo = week(test.sunday.date);
test.sunday.dayOfWeek = dayOfWeek(#test.sunday.date#);
test.sunday.weekNoISO = ISOWeek(test.sunday.date);

test.monday = structNew();
test.monday.date = createDate(2004,11,22);
test.monday.weekNo = week(test.monday.date);
test.monday.dayOfWeek = dayOfWeek(#test.monday.date#);
test.monday.weekNoISO = ISOWeek(test.monday.date);
cfscript
cfdump var=#test#



OUTPUT
Saturday.weekno = 47 - OK   
Saturday.dayOfWeek = 7 - OK

sunday.weekno = 47 - WRONG?
sunday.dayOfWeek = 1 - OK

monday.weekno = 48 - OK
monday.dayOfWeek = 2 - OK




Assuming it's wrong for the now
Anybody know of a prebuilt function for fixing this? (I tried the
ISOWeek on cflib)
Is this a CFMX issue or all versions (only got access to CFMX at the
moment)?


Cheers



-- 
dc

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185286
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Scripting.FileSystemObject

2004-11-24 Thread Robertson-Ravo, Neil (RX)
How efficient is the Scripting.FileSystemObject COM call in CFMX?  We are
seeing huge amounts of memory consumption when running some templates using
this - especially when in a custom tag.

N


This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185287
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Mambo SQL query help.... Please

2004-11-24 Thread Scott Stroz
This looks like a job for OLAP.


On Tue, 23 Nov 2004 15:31:07 -0600, Mark W. Breneman
[EMAIL PROTECTED] wrote:
 
 John, I thought about that and also just caching the results, but that will
 not work in my case. I fear that I did not explain this very well. This is a
 dynamic query that can get the results for a different years, different ages
 and different school districts. The user can pick several items from several
 pull down list in a form.
 
 Any other ideas?
 
 Thanks.
 
 Mark W. Breneman
 
 Here is the full CFquery tag:
 
 cfquery name=getData datasource=#database#
 SELECT  count(*) as totalRecords,
 (SELECT count(*) FROM
 CheckListData WHERE review_no = 1
 cfif form.schoolyear is not allAND schoolyear =
 #form.schoolyear#/cfifcfif form.cesadivision is not allAND
 cesadivision = #form.cesadivision#/cfif
 #PreserveSingleQuotes(disabilitySQL)# #PreserveSingleQuotes(ageSQL)#
 #PreserveSingleQuotes(districtSQL)#) as tot_Q1R1,
 (SELECT count(*) FROM
 CheckListData WHERE review_no = 1 AND ONE_INVITED = 'yes'
 cfif form.schoolyear is not allAND schoolyear =
 #form.schoolyear#/cfifcfif form.cesadivision is not allAND
 cesadivision = #form.cesadivision#/cfif
 #PreserveSingleQuotes(disabilitySQL)# #PreserveSingleQuotes(ageSQL)#
 #PreserveSingleQuotes(districtSQL)#) as tot_Q1R1Yes,
 (SELECT count(*) FROM
 CheckListData WHERE review_no = 1 AND ONE_INVITED = 'no'
 cfif form.schoolyear is not allAND schoolyear =
 #form.schoolyear#/cfifcfif form.cesadivision is not allAND
 cesadivision = #form.cesadivision#/cfif
 #PreserveSingleQuotes(disabilitySQL)# #PreserveSingleQuotes(ageSQL)#
 #PreserveSingleQuotes(districtSQL)#) as tot_Q1R1No,
 (SELECT count(*) FROM
 CheckListData WHERE review_no = 2
 cfif form.schoolyear is not allAND schoolyear =
 #form.schoolyear#/cfifcfif form.cesadivision is not allAND
 cesadivision = #form.cesadivision#/cfif
 #PreserveSingleQuotes(disabilitySQL)# #PreserveSingleQuotes(ageSQL)#
 #PreserveSingleQuotes(districtSQL)#) as tot_Q1R2,
 (SELECT count(*) FROM
 CheckListData WHERE review_no = 2 AND ONE_INVITED = 'yes'
 cfif form.schoolyear is not allAND schoolyear =
 #form.schoolyear#/cfifcfif form.cesadivision is not allAND
 cesadivision = #form.cesadivision#/cfif
 #PreserveSingleQuotes(disabilitySQL)# #PreserveSingleQuotes(ageSQL)#
 #PreserveSingleQuotes(districtSQL)#) as tot_Q1R2Yes,
 (SELECT count(*) FROM
 CheckListData WHERE review_no = 2 AND ONE_INVITED = 'no'
 cfif form.schoolyear is not allAND schoolyear =
 #form.schoolyear#/cfifcfif form.cesadivision is not allAND
 cesadivision = #form.cesadivision#/cfif
 #PreserveSingleQuotes(disabilitySQL)# #PreserveSingleQuotes(ageSQL)#
 #PreserveSingleQuotes(districtSQL)#) as tot_Q1R2No,
 
 (SELECT count(*) FROM
 CheckListData WHERE review_no = 1
 cfif form.schoolyear is not allAND schoolyear =
 #form.schoolyear#/cfifcfif form.cesadivision is not allAND
 cesadivision = #form.cesadivision#/cfif
 #PreserveSingleQuotes(disabilitySQL)# #PreserveSingleQuotes(ageSQL)#
 #PreserveSingleQuotes(districtSQL)#) as tot_Q2R1,
 (SELECT count(*) FROM
 CheckListData WHERE review_no = 1 AND TWO_ATTEND = 'yes'
 cfif form.schoolyear is not allAND schoolyear =
 #form.schoolyear#/cfifcfif form.cesadivision is not allAND
 cesadivision = #form.cesadivision#/cfif
 #PreserveSingleQuotes(disabilitySQL)# #PreserveSingleQuotes(ageSQL)#
 #PreserveSingleQuotes(districtSQL)#) as tot_Q2R1Yes,
 (SELECT count(*) FROM
 CheckListData WHERE review_no = 1 AND TWO_ATTEND = 'no'
 cfif form.schoolyear is not allAND schoolyear =
 #form.schoolyear#/cfifcfif form.cesadivision is not allAND
 cesadivision = #form.cesadivision#/cfif
 #PreserveSingleQuotes(disabilitySQL)# #PreserveSingleQuotes(ageSQL)#
 #PreserveSingleQuotes(districtSQL)#) as tot_Q2R1No,
 (SELECT count(*) FROM
 CheckListData WHERE review_no = 2
 cfif form.schoolyear is not allAND schoolyear =
 #form.schoolyear#/cfifcfif form.cesadivision is not allAND
 cesadivision = #form.cesadivision#/cfif
 #PreserveSingleQuotes(disabilitySQL)# #PreserveSingleQuotes(ageSQL)#
 #PreserveSingleQuotes(districtSQL)#) as tot_Q2R2,
 (SELECT count(*) FROM
 CheckListData WHERE review_no = 2 AND TWO_ATTEND = 'yes'
 cfif form.schoolyear is not allAND schoolyear =
 #form.schoolyear#/cfifcfif form.cesadivision is not allAND
 cesadivision = #form.cesadivision#/cfif
 #PreserveSingleQuotes(disabilitySQL)# #PreserveSingleQuotes(ageSQL)#
 #PreserveSingleQuotes(districtSQL)#) as tot_Q2R2Yes,
 

Re: What's in your toolkit?

2004-11-24 Thread Dan O'Keefe
 I'm hoping to produce a UML / CFC round-trip plugin for CFEclipse at
 some point, as I find time.

Now that would be cool. Would it work off of an XMI file, or are you
thinking of a particular modeling tool? Does Adalon export XMI? I
doubt it.

Dan

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185289
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: process ColdFusion tag written inside a string

2004-11-24 Thread Kevin Marino
You can always take the tag, wrap it in a UDF and call the UDF from within
the string which will in turn call the tag you want.



Michael,

I am not sure I understand. when you say wrap tag in UDF do you mean something 
like;

cffunction name=importfunc
cfimport taglib...
/cfunction

Then in the string do you mean;

cfset mystring = 'this is some stuff'  importfunc()  'some more stuff' 

Is that what you mean?

Kevin

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185290
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Sessions, losing CFID/CFTOKEN

2004-11-24 Thread Ken Dunnington
I don't believe so. I think the issue had to do with storing the
session identifier. I believe what happened is, the server uses
cookies to store the session identifier, and I was using cflocation
tags in the checkout portion of the site. When you use cflocation
tags, cookies are not properly set, so (and I'm not exactly sure why
this is, since the cookie was already set) the server was issuing a
new CFID/CFTOKEN after the cflocation tag. This behavior occurs no
matter what parameters are set in the cfapplication tag. The way I
(finally!) got around this problem was to manually attach
#session.urltoken# to the end of the URL in the action attribute of my
forms, and to the end of the URL in my cflocation tags.

The lesson? Avoid cflocation tags whenever possible? Avoid overusing
sessions? I'm not exactly sure, but I do know that my next e-commerce
app is going to approach things differently. That's the one good point
of having to track down a really sneaky problem, you get to clean up a
lot of existing code in the process.

I never was able to determine if using j2ee session vars would have
solved (or at least helped) with this problem. I suppose this
experience is good preparation for using web services, where you do
have to physically pass in identifiers.

On Wed, 24 Nov 2004 06:45:16 -0500, Umer Farooq [EMAIL PROTECTED] wrote:
 Are you positive  that there is no session sharing going on..
 
 its possible that two users are sharing sessions.. and one logs out..
 kicking the other one out..
 
 
 
 
 Ken Dunnington wrote:
  Thanks for the tip, but I'm afraid that wasn't it either (though
  that's good to know for the future!)
 
  I'm at the point now where the machines that lose session info are
  losing it immediately after it's set! In other words, if I add an item
  to a shopping cart, as soon as the user clicks off the View Cart page,
  the session is gone. Yet, my workstation (and several others around
  the office) don't have this problem. I checked to see if cookies were
  enabled (they are) and I've tried several combinations of
  cfapplication tag properties.
 
  This whole thing has me baffled. I know I shouldn't be mucking around
  this much just to get session management working properly.
 
  On Tue, 23 Nov 2004 15:27:43 -0500, Sandy Clark [EMAIL PROTECTED] wrote:
 
 The set domain cookies issue losing CFID/CFTOKEN is an IE issue.
 
 I can't find the knowledge base item, but I remember I ran into this a long
 time ago.  Try it in another better browser.  If it works there, you still
 have the issue, but at least you know what is causing it.
 
 
 
 -- 
 Umer Farooq
 Octadyne Systems
 [EMAIL PROTECTED]
 +1 (519) 772-5424 voice
 +1 (519) 635-2795 mobile
 +1 (208) 275-3824 fax
 
 LOOKING FOR A USED CAR IN IOWA VISIT: http://www.IowaMotors.com
 
 WARNING: --- The information contained in
 this document and attachments is confidential and intended only for the
 person(s) named above. If you are not the  intended recipient you are
 hereby notified that any disclosure, copying, distribution, or any other
 use of the information is strictly prohibited.  If you have received
 this document by mistake, please notify the sender immediately and
 destroy this document and attachments without making any copy of any kind.
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185291
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


get directory name

2004-11-24 Thread Robert Orlini
Using CFFile or another tag, is there a way to get the name of directories?

I have a folder with directory names I need to use in a drop-down list.

For example, in this directory: d:\wwwroot\trials\science the name I would 
need to isolate would be science.

Thanks.

Robert O.
HWW


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185292
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: get directory name

2004-11-24 Thread Ben Forta
Use ListLast(), ListLast(d:\wwwroot\trials\science, \) will return
science (the last member in a \ delimited list).

--- Ben


-Original Message-
From: Robert Orlini [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 24, 2004 9:52 AM
To: CF-Talk
Subject: get directory name

Using CFFile or another tag, is there a way to get the name of
directories?

I have a folder with directory names I need to use in a drop-down list.

For example, in this directory: d:\wwwroot\trials\science the name I would
need to isolate would be science.

Thanks.

Robert O.
HWW




~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185293
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: get directory name

2004-11-24 Thread Greg Morphis
Use cfdirectory
Then 
cfif dirlist.type eq Dir
...


On Wed, 24 Nov 2004 09:52:16 -0500, Robert Orlini [EMAIL PROTECTED] wrote:
 Using CFFile or another tag, is there a way to get the name of directories?
 
 I have a folder with directory names I need to use in a drop-down list.
 
 For example, in this directory: d:\wwwroot\trials\science the name I would 
 need to isolate would be science.
 
 Thanks.
 
 Robert O.
 HWW
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185294
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


cfftp/6.1

2004-11-24 Thread Scott Mulholland
Recently upgraded a dev box to 6.1 and now I am experiencing these types
of errors:
 
Diagnostics: An exception occurred when establishing a FTP connection.
The cause of this exception was that: java.net.NoRouteToHostException:
No route to host: connect. 

Diagnostics: An exception occurred when performing the FTP PUTFILE
operation. The cause of this exception was that: Accept timed out. 
 
Is this a known issue with 6.1 or just coincidental after the upgrade.
I wanted to find out some more info before I call up the vendor who
houses the ftp server to have them check it out.
 
Thanks,
Scott

---
[This E-mail scanned for viruses by Declude Virus]


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185295
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Getting a CFX to read variables from the calling template.

2004-11-24 Thread Keith Gaughan
I need to build a Java CFX to do a little socket programming. Thing is,
the protocol involved needs me to remember a session identifier.

My first thought was to look to see if there was any way to read
variables--just like using the CALLER scope with regular pure CF
tags--but there doesn't seem to be any way of doing so. I wanted to
do this so as I could store the session id in the REQUEST scope.

So my question is, is there any way to persist data (per request:
static variables aren't an option because this stuff isn't shared
between all instances of the tag. Same with getSetting()) for the
duration of a request so that a CFX can refer to it between invocations?

K.

-- 
Keith Gaughan, Developer
Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
http://digital-crew.com/

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185296
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: MSDE VS. SQL Server

2004-11-24 Thread Dave Watts
 Interestingly the upcoming SQL Server Express is limited to 
 one processor, but MSDE is not.  MSDE is limited to 25 (?) 
 concurrent connections but as I understand it all connections 
 are made thru CF so the number of connections you will use is 
 a total of one.

While CF will use the same connection string, assuming you're using a single
datasource, username and password, it will make more than one connection in
most cases. All queries within a single page using the same connection
string will use the same connection, but if two pages are run
simultaneously, CF will create a second connection because the first one's
in use. By default, CF will create as many connections as it needs, although
it will reuse connections if they're available. So it's not impossible that
you may bump into the MSDE connection ceiling, especially if you're using
multiple databases.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185297
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: process ColdFusion tag written inside a string

2004-11-24 Thread Michael Dinowitz
Basically, yes. There are some evaluate tricks you can use for strings where the
function is embedded in the string and the string is stored somewhere else like
a DB, but the basic concept it there. You're just wrapping the tag in a
different method of access.


 You can always take the tag, wrap it in a UDF and call the UDF from within
 the string which will in turn call the tag you want.
 
 

 Michael,

 I am not sure I understand. when you say wrap tag in UDF do you mean something
like;

 cffunction name=importfunc
 cfimport taglib...
 /cfunction

 Then in the string do you mean;

 cfset mystring = 'this is some stuff'  importfunc()  'some more stuff' 

 Is that what you mean?

 Kevin

 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185298
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Easy NumberFormat Question

2004-11-24 Thread Peterson, Andrew S.
Hello,
 
Is there a number formatting function that will show a maximum of two
decimal places when a remainder exists and no decimal places if it
doesn't exist? Right now I'm using numberformat and it's showing two
decimal places when there is no remainder. I'd just like for those cases
to show up as X, not X.00.
 
The last time I did something like this, I did an if statement to check
for the remainder and formatted correspondingly. I think that was CF 5.
Does a function exist for this? 
 
Thanks in advance!
 
Sincerely,
 
Andrew


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185299
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfftp/6.1

2004-11-24 Thread Dave Watts
 Recently upgraded a dev box to 6.1 and now I am experiencing 
 these types of errors:
  
 Diagnostics: An exception occurred when establishing a FTP connection.
 The cause of this exception was that: java.net.NoRouteToHostException:
 No route to host: connect. 
 
 Diagnostics: An exception occurred when performing the FTP 
 PUTFILE operation. The cause of this exception was that: 
 Accept timed out. 
  
 Is this a known issue with 6.1 or just coincidental after the upgrade.
 I wanted to find out some more info before I call up the 
 vendor who houses the ftp server to have them check it out.

Are you sure you can resolve the hostname from the server console? You might
try using a command-line ftp client to see what happens.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185300
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Week() and DayOfWeek() issues

2004-11-24 Thread COLLIE David
Seems that it reports correctly in CF5... But doesn't on CFMX Anyone
got any ideas what gives with this?


-Original Message-
From: COLLIE David 
Sent: 24 November 2004 13:20
To: '[EMAIL PROTECTED]'
Subject: Week() and DayOfWeek() issues


Can someone confirm that this isn't right and I'm not missing something
obvious?  Cheers.

ISSUE
Week() uses Monday as it's first day of the week
DayOfWeek() uses Sunday as it's first day of the week


CODE
cfscript
test = structNew();

test.saturday = structNew();
test.saturday.date = createDate(2004,11,20);
test.saturday.weekNo = week(test.saturday.date);
test.saturday.dayOfWeek = dayOfWeek(test.saturday.date);

test.sunday = structNew();
test.sunday.date = createDate(2004,11,21);
test.sunday.weekNo = week(test.sunday.date);
test.sunday.dayOfWeek = dayOfWeek(test.sunday.date);

test.monday = structNew();
test.monday.date = createDate(2004,11,22);
test.monday.weekNo = week(test.monday.date);
test.monday.dayOfWeek = dayOfWeek(test.monday.date);
cfscript
cfdump var=#test#



OUTPUT
Saturday.weekno = 47 - OK   
Saturday.dayOfWeek = 7 - OK

sunday.weekno = 47 - WRONG?
sunday.dayOfWeek = 1 - OK

monday.weekno = 48 - OK
monday.dayOfWeek = 2 - OK




Assuming it's wrong for the now
Anybody know of a prebuilt function for fixing this? (I tried the
ISOWeek on cflib) Is this a CFMX issue or all versions (only got access
to CFMX at the moment)?


Cheers



-- 
dc

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185301
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Easy NumberFormat Question

2004-11-24 Thread James Smith
You can use...

cfset myNumber = round(myNumber * 100)/100

To get you desired formatting. 

--
Jay

 -Original Message-
 From: Peterson, Andrew S. [mailto:[EMAIL PROTECTED] 
 Sent: 24 November 2004 15:20
 To: CF-Talk
 Subject: Easy NumberFormat Question
 
 Hello,
  
 Is there a number formatting function that will show a 
 maximum of two decimal places when a remainder exists and no 
 decimal places if it doesn't exist? Right now I'm using 
 numberformat and it's showing two decimal places when there 
 is no remainder. I'd just like for those cases to show up as 
 X, not X.00.
  
 The last time I did something like this, I did an if 
 statement to check for the remainder and formatted 
 correspondingly. I think that was CF 5.
 Does a function exist for this? 
  
 Thanks in advance!
  
 Sincerely,
  
 Andrew
 
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185302
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: cfftp/6.1

2004-11-24 Thread Scott Mulholland
Turns out that I can.  Looking further it seems the ftp server sent back
a confirmation from their IP but not on port 21 so the firewall deemed
it an attack and blocked traffic from them so our connections were
dropping.  

Thanks.

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 24, 2004 10:29 AM
To: CF-Talk
Subject: RE: cfftp/6.1


 Recently upgraded a dev box to 6.1 and now I am experiencing
 these types of errors:
  
 Diagnostics: An exception occurred when establishing a FTP connection.

 The cause of this exception was that: java.net.NoRouteToHostException:

 No route to host: connect.
 
 Diagnostics: An exception occurred when performing the FTP
 PUTFILE operation. The cause of this exception was that: 
 Accept timed out. 
  
 Is this a known issue with 6.1 or just coincidental after the upgrade.

 I wanted to find out some more info before I call up the vendor who 
 houses the ftp server to have them check it out.

Are you sure you can resolve the hostname from the server console? You
might try using a command-line ftp client to see what happens.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444




~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185303
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Force use of HTTPS

2004-11-24 Thread Douglas Knudsen
I use IIS and did this sitewide by moding the 403.4 error page in IIS.
 I added this to the 403.4 error template

SCRIPT LANGUAGE=JavaScript
if (location.protocol != 'https:'){
 window.location= 'https://' + location.host + location.pathname +
location.search
}
/SCRIPT

Doug


On Tue, 23 Nov 2004 23:38:03 -0700, Jim McAtee [EMAIL PROTECTED] wrote:
 You'll probably also want to append the query_string (url variables).
 
 cfif cgi.server_port neq 443
   cfset redir = https://;  cgi.http_host  cgi.path_info
   cfif Len(cgi.query_string)
 cfset redir = redir  ?  cgi.query_string
   /cfif
   cflocation url=#redir#
 /cfif
 
 
 
 
 - Original Message -
 From: Patricia Lee [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Tuesday, November 23, 2004 11:10 PM
 Subject: Re: Force use of HTTPS
 
  Would this help?
 
  cfif cgi.SERVER_PORT NEQ 443
   cfset redir = 'Https://'  HTTP_HOST  PATH_INFO
   cflocation url=#redir# addtoken=No
  /cfif
 
  Hi again - how do I force hte use of HTTPS pages ? I can force the flow
  of
  pages with cflocation tags, but I want to stop a user just typing in
  the
  URL as HTTP ? Thanks
 
 
 
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185304
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Week() and DayOfWeek() issues

2004-11-24 Thread Stephen Moretti (cfmaster)
COLLIE David wrote:

Seems that it reports correctly in CF5... But doesn't on CFMX Anyone
got any ideas what gives with this?
  

Probably something to do with Java and the calculations that are being 
done - he says guessing.

If you fancy writing your own functions this link should be useful : 
http://snipurl.com/iso_week_number

Regards

Stephen


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185305
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF Crash : Server Config or J2EE

2004-11-24 Thread Steven Erat
 Micha,

I reiterate; I don't believe that casting a broad net for specious reports,
incomplete data, and hyperbole will serve to solve whatever particular
difficulty ails a given server.  I think most every case is rather unique,
although where common threads are drawn they get turned around into Technote
advisories, documentation, or possibly bug reports.  I think each case needs
to be founded in contextual information. In other words... Show me the data!


Customer applications really do vary widely, and we in Macromedia Support
have the opportunity to see the full breadth of ingenious applications that
emerge from the developer community.  Realize that out of the box, the
ColdFusion and underlying JRun server are tuned as best possible to meet the
general needs of such a diverse audience, where their servers may run on any
possibly configuration within a broad spectrum of configurations limited
only (but not always) by the published System Requirements.  This
encompasses the range of internet protocols, operating system quirks, other
third party software integration.  Further, it is assumed that there is some
basic knowledge of best practices for tuning the CF and JRun servers, and it
is expected that each application will undergo testing to determine the best
server settings configuration for that specific app.  Through Macromedia
Devnet, Livedocs, and Technotes, Macromedia strives to help customer
understand the performance options available.

Even so, it is expected that customers understand their applications and
their context.  Does a public shopping cart app need a SQL statement that is
10 to perhaps 50 lines long, composed of numerous WHEREs, LIKEs, INs, and
subselects?

Let me illustrate through anecdote some common themes resulting from reports
of server stablility or performance problems:

Mistake
Q: I was reviewing your server settings, and I was wondering why general
timeout wasn't enabled?
R: Oh, really?  I thought I had set that.  I know I set it appropriately on
the other server

Misunderstanding
Q: Why is that your Simultaneous Request setting is set at 300?
R: Well when the server seemed to hang we thought it would help to just
bump that up

Not knowing the application
Q: So I found that after you enabled the Log Slow Page setting that
somepage.cfm is chronically reported to run 180-225 seconds.  Can you
account for what in that page is taking up the bulk of that time?
R: Oh, I really don't know.  We inherited this application when the
developer quit.  How do we find that out?

Unexpected
Q: I've reviewed the thread dumps and found that all web threads are stuck
on the same line of code a specific CFC
R: We load tested the application in development but didn't see this CPU
spiking behavior. It's odd that under more load that this should happen, but
at least we know where to look now

Unsupported
Q: So your server is down and you have this HotSpot crash log.  I found the
crash was in this function call, and all Google hits for that function call
point to Java on Debian... Oh, you are running on Debian?

ColdFusion/JRun bug
Q: Your site is just fine under load all day, but at night it's completely
idle until 4am when your other server spiders it... I found that the thread
dumps contain absolutely no jrpp threads.  That looks like a recent bug just
discovered, and its good that you have a very reproducible case because
we've been lacking that.

Sun bug 
Q: You found a HotSpot crash log with error code 4F530E43505002EF.  Yes,
we've found this on Sun's bug parade.  Its a known issue in the JVM.  You
can turn off the HotSpot optimizer with -Xint, but that trades stability for
performance

My point here is that when you dig down into the server configuration, the
application, and other raw data, we can most often attribute the problem to
something very specific. Sometimes that turns out to be a bug, and that gets
logged and helps improve the product, and most often a workaround or hotfix
is provided.  Sometimes it turns out to be configuration or code dependent.

Argumentum ad Misericordiam.  Argumentum ad Populum.  Aggregating all
reports of server instability under one heading is not only futile, but
fallacious.  Be diligent during development and staging, and be thorough in
production.  This will usually keep that $5000 consulting fee in your
pocket, although a manicure may still be in order :)

-Steve

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185306
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: get directory name

2004-11-24 Thread Robert Orlini
Thanks Ben and Greg.

I'm using the CFDirectory example on Macromedia's site. It lists the directory 
name and size of files found. 

One step further: How can I filter out any files (if #size# = 0 which means it 
is a directory name and not a file) and then insert the directory names in a 
table?

Robert O.

See code I'm using:

cfdirectory 
   directory=#GetDirectoryFromPath(GetTemplatePath())# 
   name=myDirectory
   
! Output the contents of the cfdirectory as a cftable - 
cftable query=myDirectory htmltable colheaders 
   cfcol 
  header=NAME: 
  text=#Name# 
   cfcol 
  header=SIZE: 
  text=#Size# 
/cftable 

-Original Message-
From: Greg Morphis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 10:09 AM
To: CF-Talk
Subject: Re: get directory name


Use cfdirectory
Then 
cfif dirlist.type eq Dir
...


On Wed, 24 Nov 2004 09:52:16 -0500, Robert Orlini [EMAIL PROTECTED] wrote:
 Using CFFile or another tag, is there a way to get the name of directories?
 
 I have a folder with directory names I need to use in a drop-down list.
 
 For example, in this directory: d:\wwwroot\trials\science the name I would 
 need to isolate would be science.
 
 Thanks.
 
 Robert O.
 HWW
 
 



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185307
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: process ColdFusion tag written inside a string

2004-11-24 Thread Kevin Marino
Ok, well you got me asking what evaluate tricks do you mean?

Are you saying;

Evaluate(this is some stuff  importfunc()  some more stuff) 

I have been experimenting with the stuff I have (the cfimport I reference is 
actually a tag replacement a former coworker wrote for forms and I built a 
wysiwyg tool to gen. a form using CFCs so marrying the 2 together).  Looks like 
I may be able to just use a Prefix in the cfimport and create calls like;

thistag:form name=#test# action=fsda method=post validate=true 
errordisplay=adfs style=border:1px solid;background-color:##FF6699 

So got a solution (you got me thinking, thx), but interested in what you are 
saying, knowledge and all.

Kevin


Basically, yes. There are some evaluate tricks you can use for strings where 
the
function is embedded in the string and the string is stored somewhere else like
a DB, but the basic concept it there. You're just wrapping the tag in a
different method of access.


like;


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185308
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


DataDirect Test Suite

2004-11-24 Thread Robertson-Ravo, Neil (RX)
Does CF Ship with these?  Since it does indeed contain DataDirect 3.3?

http://www.datadirect.com/products/jdbc/jdbccomps/index.ssp


N


This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185309
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Creating zip files on the fly without CreateObject

2004-11-24 Thread Marco Antonio C. Santos
Hi all

how to create zip files on the fly with CF and without use
CreateObject statement? CFX_Zip could be an option but your price is
proibitive... what you suggest?

Cheers

Win2K3
CFMX 6.1

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185310
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: get directory name

2004-11-24 Thread Ian Skinner
Thanks Ben and Greg.

I'm using the CFDirectory example on Macromedia's site. It lists the directory 
name and size of files found. 

One step further: How can I filter out any files (if #size# = 0 which means it 
is a directory name and not a file) and then insert the directory names in a 
table?

Robert O.

Instead of using size, I would use the type field which equals file for 
files and dir for directories.

cfdirectory 
   directory=#GetDirectoryFromPath(GetTemplatePath())# 
   name=myDirectory

cfloop query=myDirectory
cfif type EQ dir
!--- Do something, I'm a directory ---
/cfif
/cfloop


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

C code. C code run. Run code run. Please!
- Cynthia Dunning



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. 



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185311
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Easy NumberFormat Question

2004-11-24 Thread S . Isaac Dealey
Sierra Bufe submitted this udf to cflib.org:

function RoundIt(num,digits) {
var i = num;
// multiply by 10 to the power of the number of digits to be
preserved
i = i * (10 ^ digits);
// round off to an integer
i = Round(i);
// divide by 10 to the power of the number of digits to be preserved
i = i / (10 ^ digits);
// return the result
return i;
}


cfoutput
div#roundit(10,2)#/div
div#roundit(10.258,2)#/div
/cfoutput

seems to do what you want.

Also seems consistent with James' answer to your question.

 Hello,

 Is there a number formatting function that will show a
 maximum of two
 decimal places when a remainder exists and no decimal
 places if it
 doesn't exist? Right now I'm using numberformat and it's
 showing two
 decimal places when there is no remainder. I'd just like
 for those cases
 to show up as X, not X.00.

 The last time I did something like this, I did an if
 statement to check
 for the remainder and formatted correspondingly. I think
 that was CF 5.
 Does a function exist for this?

 Thanks in advance!

 Sincerely,

 Andrew


 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185312
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Force use of HTTPS

2004-11-24 Thread S . Isaac Dealey
just as an fyi, using 'window.location = ' has a tendancy to muck with
people's back-buttons -- which they complain about often... There is
however an alternative which works with most browsers dating back to
NS 3 which is location.replace() ... so you might consider this
modification:

if (typeof location.replace == 'undefined')
  { ... original code snippet ... }
else {
  location.replace('https://'
+ location.host
+ location.pathname
+ location.search);
}

This function behaves the same way as cflocation with regard to
preserving the back-button by replacing the current page in the
browser's history stack instead of appending to the history.

 I use IIS and did this sitewide by moding the 403.4 error
 page in IIS.
  I added this to the 403.4 error template

 SCRIPT LANGUAGE=JavaScript
 if (location.protocol != 'https:'){
  window.location= 'https://' + location.host +
  location.pathname +
 location.search
 }
 /SCRIPT

 Doug


 On Tue, 23 Nov 2004 23:38:03 -0700, Jim McAtee
 [EMAIL PROTECTED] wrote:
 You'll probably also want to append the query_string (url
 variables).

 cfif cgi.server_port neq 443
   cfset redir = https://;  cgi.http_host 
   cgi.path_info
   cfif Len(cgi.query_string)
 cfset redir = redir  ?  cgi.query_string
   /cfif
   cflocation url=#redir#
 /cfif




 - Original Message -
 From: Patricia Lee [EMAIL PROTECTED]
 To: CF-Talk [EMAIL PROTECTED]
 Sent: Tuesday, November 23, 2004 11:10 PM
 Subject: Re: Force use of HTTPS

  Would this help?
 
  cfif cgi.SERVER_PORT NEQ 443
   cfset redir = 'Https://'  HTTP_HOST  PATH_INFO
   cflocation url=#redir# addtoken=No
  /cfif
 
  Hi again - how do I force hte use of HTTPS pages ? I
  can force the flow
  of
  pages with cflocation tags, but I want to stop a
  user just typing in
  the
  URL as HTTP ? Thanks


s. isaac dealey   954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477DE=1
http://www.sys-con.com/story/?storyid=45569DE=1
http://www.fusiontap.com




~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185313
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Week() and DayOfWeek() issues

2004-11-24 Thread COLLIE David
 If you fancy writing your own functions this link should be useful : 
 http://snipurl.com/iso_week_number

Cheers for that Stephen... Think I'm going to need to now :(

-- 
dc



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185314
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: get directory name

2004-11-24 Thread Greg Morphis
Yeah, see my example..

Basically:
cfdirectory
  directory=#GetDirectoryFromPath(GetTemplatePath())#
  name=myDirectory

cfif myDirectory.type eq Dir
Directory
cfelse
File
/cfif





On Wed, 24 Nov 2004 08:17:38 -0800, Ian Skinner
[EMAIL PROTECTED] wrote:
 Thanks Ben and Greg.
 
 I'm using the CFDirectory example on Macromedia's site. It lists the 
 directory name and size of files found.
 
 One step further: How can I filter out any files (if #size# = 0 which means 
 it is a directory name and not a file) and then insert the directory names in 
 a table?
 
 Robert O.
 
 Instead of using size, I would use the type field which equals file for 
 files and dir for directories.
 
 cfdirectory
   directory=#GetDirectoryFromPath(GetTemplatePath())#
   name=myDirectory
 
 cfloop query=myDirectory
cfif type EQ dir
!--- Do something, I'm a directory ---
/cfif
 /cfloop
 
 --
 Ian Skinner
 Web Programmer
 BloodSource
 www.BloodSource.org
 Sacramento, CA
 
 C code. C code run. Run code run. Please!
 - Cynthia Dunning
 
 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.
 
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185315
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: DataDirect Test Suite

2004-11-24 Thread Dave Carabetta
On Wed, 24 Nov 2004 16:14:09 -, Robertson-Ravo, Neil (RX)
[EMAIL PROTECTED] wrote:
 Does CF Ship with these?  Since it does indeed contain DataDirect 3.3?
 
 http://www.datadirect.com/products/jdbc/jdbccomps/index.ssp
 

No it doesn't.

Regards,
Dave.

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185316
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Easy NumberFormat Question

2004-11-24 Thread Peterson, Andrew S.
Thanks guys. I checked cflib but missed this. 
 
Sincerely,
 
Andrew

-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 24, 2004 10:24 AM
To: CF-Talk
Subject: Re: Easy NumberFormat Question

Sierra Bufe submitted this udf to cflib.org:

function RoundIt(num,digits) {
var i = num;
// multiply by 10 to the power of the number of digits to be
preserved
i = i * (10 ^ digits);
// round off to an integer
i = Round(i);
// divide by 10 to the power of the number of digits to be
preserved
i = i / (10 ^ digits);
// return the result
return i;
}


cfoutput
div#roundit(10,2)#/div
div#roundit(10.258,2)#/div
/cfoutput

seems to do what you want.

Also seems consistent with James' answer to your question.

 Hello,

 Is there a number formatting function that will show a maximum of two 
 decimal places when a remainder exists and no decimal places if it 
 doesn't exist? Right now I'm using numberformat and it's showing two 
 decimal places when there is no remainder. I'd just like for those 
 cases to show up as X, not X.00.

 The last time I did something like this, I did an if statement to 
 check for the remainder and formatted correspondingly. I think that 
 was CF 5.
 Does a function exist for this?

 Thanks in advance!

 Sincerely,

 Andrew


 



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185318
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Creating zip files on the fly without CreateObject

2004-11-24 Thread Keith Gaughan
Marco Antonio C. Santos wrote:
 Hi all
 
 how to create zip files on the fly with CF and without use
 CreateObject statement? CFX_Zip could be an option but your price is
 proibitive... what you suggest?

You could write your own. The ZipBrowser example tag could serve as the
basis for a tag like CFX_Zip. All the heavy lifting is already done
by Java's built-in libraries.

K.

-- 
Keith Gaughan, Developer
Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
http://digital-crew.com/

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185317
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Scripting.FileSystemObject

2004-11-24 Thread Ryan Emerle
I can't imagine that it has any level of reasonable efficiency since
COM is not native to Java.  You may want to reconsider writing java
native or CFML versions of those COM calls.

Is there any specific reason for using the FSO anyway?

-Ryan

On Wed, 24 Nov 2004 13:39:07 -, Robertson-Ravo, Neil (RX)
[EMAIL PROTECTED] wrote:
 How efficient is the Scripting.FileSystemObject COM call in CFMX?  We are
 seeing huge amounts of memory consumption when running some templates using
 this - especially when in a custom tag.


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185319
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Scripting.FileSystemObject

2004-11-24 Thread Robertson-Ravo, Neil (RX)
Legacy code!

-Original Message-
From: Ryan Emerle [mailto:[EMAIL PROTECTED] 
Sent: 24 November 2004 16:47
To: CF-Talk
Subject: Re: Scripting.FileSystemObject

I can't imagine that it has any level of reasonable efficiency since
COM is not native to Java.  You may want to reconsider writing java
native or CFML versions of those COM calls.

Is there any specific reason for using the FSO anyway?

-Ryan

On Wed, 24 Nov 2004 13:39:07 -, Robertson-Ravo, Neil (RX)
[EMAIL PROTECTED] wrote:
 How efficient is the Scripting.FileSystemObject COM call in CFMX?  We are
 seeing huge amounts of memory consumption when running some templates
using
 this - especially when in a custom tag.




~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185320
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: DataDirect Test Suite

2004-11-24 Thread Robertson-Ravo, Neil (RX)
Damn it.may have to get version 3.4 ;-)  it seems kinda a cheat since
you are effectively getting 3.3 as part of CF1

-Original Message-
From: Dave Carabetta [mailto:[EMAIL PROTECTED] 
Sent: 24 November 2004 16:32
To: CF-Talk
Subject: Re: DataDirect Test Suite

On Wed, 24 Nov 2004 16:14:09 -, Robertson-Ravo, Neil (RX)
[EMAIL PROTECTED] wrote:
 Does CF Ship with these?  Since it does indeed contain DataDirect 3.3?
 
 http://www.datadirect.com/products/jdbc/jdbccomps/index.ssp
 

No it doesn't.

Regards,
Dave.



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185322
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: MSDE VS. SQL Server

2004-11-24 Thread Will Tomlinson
Excellent! Very helpful, thanks guys!

Will

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185321
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Verisign Payflow Pro

2004-11-24 Thread Ryan Emerle
No, the CFX tag will not know what to do with it.  Your best bet is to
just keep the password from being immediately visible in the code if
you can help it.  Any way you look at it, it will be decrypted before
it is sent over to verisign (though it is sent via SSL).

I'm sure you can get creative with encryption so that you decrypt it
as you pass it to the tag..  I have a CFC version of the PFPro tag
that might give you a bit more flexibility in this area, though I
personally wouldn't trust a stranger's CC gateway code :)

I'd be more than happy to post it if anyone is interested though.

On Wed, 24 Nov 2004 01:23:24 -0500, Ryan Mannion [EMAIL PROTECTED] wrote:
 Has anyone ever configured the verisign payflow pro system? The main
 thing I read in the manual is the importance of encrypting the
 password. My question is, if I use encrypt(password) when sending the
 password how will the cfx tag decrypt this? Or should I store the
 passwords encrypted in a database, then decrypt them on the way out of
 the DB? I'm not sure how one is supposed to accomplish this. Any
 suggestions would be appreciated.
 
 Here is the code to run.
 Thanks Ryan
 
 CFX_PAYFLOWPRO QUERY  = RESULT
 HOSTADDRESS= test-payflow.verisign.com
 HOSTPORT   = 443
 TIMEOUT= 30
 PROXYADDRESS   = 
 PROXYPORT  = 
 PROXYLOGON = 
 PROXYPASSWORD  = 
 TRXTYPE= S
 TENDER = C
 PARTNER= VeriSign
 USER   = YourTestAccountName
 PWD= YourAccountPassword
 ACCT   = 5105105105105100
 EXPDATE= 1209
 AMT= 27.33
 COMMENT1   = This is a comment - note that it is
 automatically escaped
 COMMENT2   = Embedded = and  work when escaped
 CERTPATH= C:\CFusionMX\certs

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185323
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


COM and CF5`

2004-11-24 Thread Robertson-Ravo, Neil (RX)
On CF5 and using the QuickAddress COM object I am having issues with the
value returned is generating the following error:

Error attempting to convert between object and ColdFusion datatypes.

It is supposed to be an Array Return Value which is 2 longs containing the
grid reference of a locality. Position 0 is grid reference Easting. Position
1 is grid reference Northing

Anyone have issues like this with COM where you cannot convert or use the
value? Are there any workarounds?

N




















This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant,
Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business,
Registered in England, Number 678540.  It contains information which is
confidential and may also be privileged.  It is for the exclusive use of the
intended recipient(s).  If you are not the intended recipient(s) please note
that any form of distribution, copying or use of this communication or the
information in it is strictly prohibited and may be unlawful.  If you have
received this communication in error please return it to the sender or call
our switchboard on +44 (0) 20 89107910.  The opinions expressed within this
communication are not necessarily those expressed by Reed Exhibitions.
Visit our website at http://www.reedexpo.com

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185324
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CF Crash : Server Config or J2EE

2004-11-24 Thread Douglas Knudsen
good posts Steven!  Being in charge of supporting our CF servers here
in my company I know first hand some of these difficulties introduced
with CFMX.   CFMX introduced the whole J2EE platform stuffs to a large
crowd of non J2EE folks.  Not being a JAR head I found this to be a
big jump in managing the servers and I'm far from complete on this
jump for sure.  I recently ran into this with Flex.  The beginners
install docs are quite lean on the J2EE info for installing it,
expecting everyone trying it out to be well versed in J2EE installs of
wars, something probably quite uncommon in the Flash community, eh?  I
guess this can be summed up as growing pains, eh?

keep on keeping on

Doug


On Wed, 24 Nov 2004 10:59:06 -0500, Steven Erat [EMAIL PROTECTED] wrote:
  Micha,
 
 I reiterate; I don't believe that casting a broad net for specious reports,
 incomplete data, and hyperbole will serve to solve whatever particular
 difficulty ails a given server.  I think most every case is rather unique,
 although where common threads are drawn they get turned around into Technote
 advisories, documentation, or possibly bug reports.  I think each case needs
 to be founded in contextual information. In other words... Show me the data!
 
 Customer applications really do vary widely, and we in Macromedia Support
 have the opportunity to see the full breadth of ingenious applications that
 emerge from the developer community.  Realize that out of the box, the
 ColdFusion and underlying JRun server are tuned as best possible to meet the
 general needs of such a diverse audience, where their servers may run on any
 possibly configuration within a broad spectrum of configurations limited
 only (but not always) by the published System Requirements.  This
 encompasses the range of internet protocols, operating system quirks, other
 third party software integration.  Further, it is assumed that there is some
 basic knowledge of best practices for tuning the CF and JRun servers, and it
 is expected that each application will undergo testing to determine the best
 server settings configuration for that specific app.  Through Macromedia
 Devnet, Livedocs, and Technotes, Macromedia strives to help customer
 understand the performance options available.
 
 Even so, it is expected that customers understand their applications and
 their context.  Does a public shopping cart app need a SQL statement that is
 10 to perhaps 50 lines long, composed of numerous WHEREs, LIKEs, INs, and
 subselects?
 
 Let me illustrate through anecdote some common themes resulting from reports
 of server stablility or performance problems:
 
 Mistake
 Q: I was reviewing your server settings, and I was wondering why general
 timeout wasn't enabled?
 R: Oh, really?  I thought I had set that.  I know I set it appropriately on
 the other server
 
 Misunderstanding
 Q: Why is that your Simultaneous Request setting is set at 300?
 R: Well when the server seemed to hang we thought it would help to just
 bump that up
 
 Not knowing the application
 Q: So I found that after you enabled the Log Slow Page setting that
 somepage.cfm is chronically reported to run 180-225 seconds.  Can you
 account for what in that page is taking up the bulk of that time?
 R: Oh, I really don't know.  We inherited this application when the
 developer quit.  How do we find that out?
 
 Unexpected
 Q: I've reviewed the thread dumps and found that all web threads are stuck
 on the same line of code a specific CFC
 R: We load tested the application in development but didn't see this CPU
 spiking behavior. It's odd that under more load that this should happen, but
 at least we know where to look now
 
 Unsupported
 Q: So your server is down and you have this HotSpot crash log.  I found the
 crash was in this function call, and all Google hits for that function call
 point to Java on Debian... Oh, you are running on Debian?
 
 ColdFusion/JRun bug
 Q: Your site is just fine under load all day, but at night it's completely
 idle until 4am when your other server spiders it... I found that the thread
 dumps contain absolutely no jrpp threads.  That looks like a recent bug just
 discovered, and its good that you have a very reproducible case because
 we've been lacking that.
 
 Sun bug
 Q: You found a HotSpot crash log with error code 4F530E43505002EF.  Yes,
 we've found this on Sun's bug parade.  Its a known issue in the JVM.  You
 can turn off the HotSpot optimizer with -Xint, but that trades stability for
 performance
 
 My point here is that when you dig down into the server configuration, the
 application, and other raw data, we can most often attribute the problem to
 something very specific. Sometimes that turns out to be a bug, and that gets
 logged and helps improve the product, and most often a workaround or hotfix
 is provided.  Sometimes it turns out to be configuration or code dependent.
 
 Argumentum ad Misericordiam.  Argumentum ad Populum.  Aggregating all
 reports of server 

RE: CF Crash : Server Config or J2EE

2004-11-24 Thread Ben Rogers
Steve,

First, your posts in this thread have been extraordinarily informative.
Thank you very much.

That said, what I take out of this is that, to develop applications for the
ColdFusion MX platform, we developers need a very thorough understanding of
the JVM. This includes how to debug JVM related issues and where to go to
locate information about JVM error messages.

I believe that this is a relatively new requirement for ColdFusion
developers. I'd go so far as to say it is a skill that most of us lack. I've
been developing in ColdFusion since the dbm days, and much of what you wrote
was foreign to me.

This is not entirely unexpected. Since the release of ColdFusion MX, I've
spent a good deal of time sifting through Axis fault errors. In general, I
find that I have to know a lot more about the internals of ColdFusion MX
than I had to know about ColdFusion 5.

With ColdFusion MX, I routinely have to make changes to the JRun XML config
files. For example, I have to duplicate ColdFusion mappings in JRun so that
cfimport and Axis pick them. With ColdFusion 5, I believe there was only one
setting that I changed outside of the ColdFusion Administrator. That was a
registry key change.

Speaking on behalf of myself, I'm willing to learn. Consequently, besides
the links that were posted so far in this thread, can you recommend any good
reading on this topic? Personally, I'd prefer sources that don't require an
intimate knowledge of Java itself as I have only a passing familiarity with
the language.

Regardless, thank you for the tips and links you've already provided.

Ben Rogers
http://www.c4.net
v.508.240.0051
f.508.240.0057


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185326
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Verisign Payflow Pro

2004-11-24 Thread Ryan Mannion
Thanks for the info, have you had any experience installing the
verisign sdk or the CFX tag? If so can you provide any tips, or
caveats I may have when doing it?

Thanks agian. 

Ryan


On Wed, 24 Nov 2004 12:00:30 -0500, Ryan Emerle [EMAIL PROTECTED] wrote:
 No, the CFX tag will not know what to do with it.  Your best bet is to
 just keep the password from being immediately visible in the code if
 you can help it.  Any way you look at it, it will be decrypted before
 it is sent over to verisign (though it is sent via SSL).
 
 I'm sure you can get creative with encryption so that you decrypt it
 as you pass it to the tag..  I have a CFC version of the PFPro tag
 that might give you a bit more flexibility in this area, though I
 personally wouldn't trust a stranger's CC gateway code :)
 
 I'd be more than happy to post it if anyone is interested though.
 
 
 
 On Wed, 24 Nov 2004 01:23:24 -0500, Ryan Mannion [EMAIL PROTECTED] wrote:
  Has anyone ever configured the verisign payflow pro system? The main
  thing I read in the manual is the importance of encrypting the
  password. My question is, if I use encrypt(password) when sending the
  password how will the cfx tag decrypt this? Or should I store the
  passwords encrypted in a database, then decrypt them on the way out of
  the DB? I'm not sure how one is supposed to accomplish this. Any
  suggestions would be appreciated.
 
  Here is the code to run.
  Thanks Ryan
 
  CFX_PAYFLOWPRO QUERY  = RESULT
  HOSTADDRESS= test-payflow.verisign.com
  HOSTPORT   = 443
  TIMEOUT= 30
  PROXYADDRESS   = 
  PROXYPORT  = 
  PROXYLOGON = 
  PROXYPASSWORD  = 
  TRXTYPE= S
  TENDER = C
  PARTNER= VeriSign
  USER   = YourTestAccountName
  PWD= YourAccountPassword
  ACCT   = 5105105105105100
  EXPDATE= 1209
  AMT= 27.33
  COMMENT1   = This is a comment - note that it is
  automatically escaped
  COMMENT2   = Embedded = and  work when escaped
  CERTPATH= C:\CFusionMX\certs
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185327
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Creating zip files on the fly without CreateObject

2004-11-24 Thread Keith Gaughan
Marco Antonio C. Santos wrote:

 Hi all
 
 how to create zip files on the fly with CF and without use
 CreateObject statement? CFX_Zip could be an option but your price is
 proibitive... what you suggest?

Or, seeing as Dan is after giving me a kick and reminding me that there
are alternatives, you might want to take a look at CFX_JZip:

 http://www.cftagstore.com/tags/cfxjzip.cfm

K.

-- 
Keith Gaughan, Developer
Digital Crew Ltd., Pembroke House, Pembroke Street, Cork, Ireland
http://digital-crew.com/

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185328
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: COM and CF5`

2004-11-24 Thread Dave Watts
 On CF5 and using the QuickAddress COM object I am having 
 issues with the value returned is generating the following error:
 
 Error attempting to convert between object and ColdFusion datatypes.
 
 It is supposed to be an Array Return Value which is 2 longs 
 containing the grid reference of a locality. Position 0 is 
 grid reference Easting. Position
 1 is grid reference Northing
 
 Anyone have issues like this with COM where you cannot 
 convert or use the value? Are there any workarounds?

In the past, I've occasionally worked around these sorts of issues by
writing my own COM wrapper. You can do this with any COM language, even
VBScript/JScript using Windows Script Components.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
phone: 202-797-5496
fax: 202-797-5444


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185329
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Getting a CFX to read variables from the calling template.

2004-11-24 Thread Lewis Sellers
Keith Gaughan wrote:
 I need to build a Java CFX to do a little socket programming. Thing is,
 the protocol involved needs me to remember a session identifier.
 
 My first thought was to look to see if there was any way to read
 variables--just like using the CALLER scope with regular pure CF
 tags--but there doesn't seem to be any way of doing so. I wanted to
 do this so as I could store the session id in the REQUEST scope.
 
 So my question is, is there any way to persist data (per request:
 static variables aren't an option because this stuff isn't shared
 between all instances of the tag. Same with getSetting()) for the
 duration of a request so that a CFX can refer to it between invocations?
 
 K.
 

The CFX API is rather limited as to what it can pass back and forth. 
You can _set_ variables from within a CFX, but (with an exception for 
custom tags(?) ... oh, that's getSetting. Never used it.) the only data 
you can read is what you pass to it -- i.e., one (1) query and all the 
attributes (ie, parameters).

Can you simply pass the session as:
CFX_mytag SessionID=blah123456789

and from the CFX

Request.SetVariable(SessionID,newblah123);

?

-- 
--Lewis Sellers (AKA min)
Intrafoundation Software
http://www.intrafoundation.com

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185330
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Creating zip files on the fly without CreateObject

2004-11-24 Thread Lewis Sellers
how to create zip files on the fly with CF and without use
CreateObject statement? CFX_Zip could be an option but your price is
proibitive... what you suggest?
 
 Or, seeing as Dan is after giving me a kick and reminding me that there
 are alternatives, you might want to take a look at CFX_JZip:
 
  http://www.cftagstore.com/tags/cfxjzip.cfm
 
 K.

I have a vauge recollection that one of the java cfx examples included 
with CFMX might have been a showing how to use java's built in funtion 
to zip a file.  Well. Looked. It only browse them. But you could 
extension the functionality to zip as well.


-- 
--Lewis Sellers (AKA min)
Intrafoundation Software
http://www.intrafoundation.com

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185331
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Quick MySQL + CF question

2004-11-24 Thread Yves Arsenault
Hey there,

Is there anyway to connect to MySQL datasources without creating a
datasource name in CF admin?

Thanks,

-- 
Yves Arsenault

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185332
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Creating zip files on the fly without CreateObject

2004-11-24 Thread Greg Morphis
I use cfexecute and gzip on one of my apps
dump the little exe out there and call it..



On Wed, 24 Nov 2004 12:53:16 -0500, Lewis Sellers
[EMAIL PROTECTED] wrote:
 how to create zip files on the fly with CF and without use
 CreateObject statement? CFX_Zip could be an option but your price is
 proibitive... what you suggest?
 
  Or, seeing as Dan is after giving me a kick and reminding me that there
  are alternatives, you might want to take a look at CFX_JZip:
 
   http://www.cftagstore.com/tags/cfxjzip.cfm
 
  K.
 
 I have a vauge recollection that one of the java cfx examples included
 with CFMX might have been a showing how to use java's built in funtion
 to zip a file.  Well. Looked. It only browse them. But you could
 extension the functionality to zip as well.
 
 --
 --Lewis Sellers (AKA min)
 Intrafoundation Software
 http://www.intrafoundation.com
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185333
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Quick MySQL + CF question

2004-11-24 Thread Jordan Michaels
Yves Arsenault wrote:

Hey there,

Is there anyway to connect to MySQL datasources without creating a
datasource name in CF admin?

Thanks,

  

Do you mean like MS Windows ODBC datasources or are you simply trying to 
connect to a MySQL DB without using a datasource at all?

-- 
Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
[EMAIL PROTECTED] 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185334
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Queries in CFC, cfoutput has issues

2004-11-24 Thread Robert Everland III
I have a CFC that I have put all of my stored procedures into. I then input the 
CFC into the application scope for use throughout my application. The issue I 
have is that I can reference the query in a cfdump like this cfdump 
var=#application.queries.testquery()# and it will dump the query. I can do 
isquery(application.queries.testquery()) and it returns yes, but when I do 
cfoutput query=application.queries.testquery() or cfoutput 
query=#application.queries.testquery()# it throws an error. I can set the 
method to a local variable and then I'm able to reference the query, but it 
would be nice to use the method without having to move it to a local variable. 
Has anyone ran into this issue?


Bob

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185335
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Verisign Payflow Pro

2004-11-24 Thread Ryan Emerle
Nah, it's really rather easy, just follow the install instructions.  

Just make sure that you provide all of the default information such as
hostname, port, proxy_username, proxy_password, etc.  It's weird, but
the proxy information needs to be specified whether you are using it
or not.

HTH
-Ryan


On Wed, 24 Nov 2004 12:27:22 -0500, Ryan Mannion [EMAIL PROTECTED] wrote:
 Thanks for the info, have you had any experience installing the
 verisign sdk or the CFX tag? If so can you provide any tips, or
 caveats I may have when doing it?
 
 Thanks agian.
 
 Ryan

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185336
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Queries in CFC, cfoutput has issues

2004-11-24 Thread Douglas Knudsen
try

cfset myQ = application.queries.testquery() /
cfoutput query=#myQ# 

Doug


On Wed, 24 Nov 2004 13:20:40 -0400, Robert Everland III
[EMAIL PROTECTED] wrote:
 I have a CFC that I have put all of my stored procedures into. I then input 
 the CFC into the application scope for use throughout my application. The 
 issue I have is that I can reference the query in a cfdump like this cfdump 
 var=#application.queries.testquery()# and it will dump the query. I can do 
 isquery(application.queries.testquery()) and it returns yes, but when I do 
 cfoutput query=application.queries.testquery() or cfoutput 
 query=#application.queries.testquery()# it throws an error. I can set the 
 method to a local variable and then I'm able to reference the query, but it 
 would be nice to use the method without having to move it to a local 
 variable. Has anyone ran into this issue?
 
 Bob
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185337
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Queries in CFC, cfoutput has issues

2004-11-24 Thread Greg Morphis
Use the cfinvoke function... or if you're just passing like one
variable use cfset ie..
cfset myquery = application.queries.getName(form.emplid) /




On Wed, 24 Nov 2004 13:20:40 -0400, Robert Everland III
[EMAIL PROTECTED] wrote:
 I have a CFC that I have put all of my stored procedures into. I then input 
 the CFC into the application scope for use throughout my application. The 
 issue I have is that I can reference the query in a cfdump like this cfdump 
 var=#application.queries.testquery()# and it will dump the query. I can do 
 isquery(application.queries.testquery()) and it returns yes, but when I do 
 cfoutput query=application.queries.testquery() or cfoutput 
 query=#application.queries.testquery()# it throws an error. I can set the 
 method to a local variable and then I'm able to reference the query, but it 
 would be nice to use the method without having to move it to a local 
 variable. Has anyone ran into this issue?
 
 Bob
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185338
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Queries in CFC, cfoutput has issues

2004-11-24 Thread Greg Morphis
but those create local variables so you may not want that..  heh


On Wed, 24 Nov 2004 12:25:51 -0600, Greg Morphis [EMAIL PROTECTED] wrote:
 Use the cfinvoke function... or if you're just passing like one
 variable use cfset ie..
 cfset myquery = application.queries.getName(form.emplid) /
 
 
 
 
 On Wed, 24 Nov 2004 13:20:40 -0400, Robert Everland III
 [EMAIL PROTECTED] wrote:
  I have a CFC that I have put all of my stored procedures into. I then input 
  the CFC into the application scope for use throughout my application. The 
  issue I have is that I can reference the query in a cfdump like this 
  cfdump var=#application.queries.testquery()# and it will dump the 
  query. I can do isquery(application.queries.testquery()) and it returns 
  yes, but when I do cfoutput query=application.queries.testquery() or 
  cfoutput query=#application.queries.testquery()# it throws an error. I 
  can set the method to a local variable and then I'm able to reference the 
  query, but it would be nice to use the method without having to move it to 
  a local variable. Has anyone ran into this issue?
 
  Bob
 
  

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185339
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Queries in CFC, cfoutput has issues

2004-11-24 Thread Ryan Emerle
Yeah, ran into that myself.  

As far as i could tell, it seems to be a limitation of the cfouptut
and cfloop tags.  It looks like MACR needs to update those tags for
the new syntax made available by MX.  Until then, i guess we'll have
to settle on copying it to the variable scope.


On Wed, 24 Nov 2004 13:20:40 -0400, Robert Everland III
[EMAIL PROTECTED] wrote:
 I have a CFC that I have put all of my stored procedures into. I then input 
 the CFC into the application scope for use throughout my application. The 
 issue I have is that I can reference the query in a cfdump like this cfdump 
 var=#application.queries.testquery()# and it will dump the query. I can do 
 isquery(application.queries.testquery()) and it returns yes, but when I do 
 cfoutput query=application.queries.testquery() or cfoutput 
 query=#application.queries.testquery()# it throws an error. I can set the 
 method to a local variable and then I'm able to reference the query, but it 
 would be nice to use the method without having to move it to a local 
 variable. Has anyone ran into this issue?
 
 Bob
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185340
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: get directory name - one more thing

2004-11-24 Thread Robert Orlini
works fine Ian thank you.

One more thing please: How can I add each directory name into a table using a 
cfquery?

I have this:
CFQUERY name=get datasource=marketing
INSERT INTO directories (name)
VALUES ('#mydirectory.name#')
/CFQUERY

But it adds just the first entry. I guess your gonna say use a cfloop, if so 
what type?

Robert O.

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 11:18 AM
To: CF-Talk
Subject: RE: get directory name


Thanks Ben and Greg.

I'm using the CFDirectory example on Macromedia's site. It lists the directory 
name and size of files found. 

One step further: How can I filter out any files (if #size# = 0 which means it 
is a directory name and not a file) and then insert the directory names in a 
table?

Robert O.

Instead of using size, I would use the type field which equals file for 
files and dir for directories.

cfdirectory 
   directory=#GetDirectoryFromPath(GetTemplatePath())# 
   name=myDirectory

cfloop query=myDirectory
cfif type EQ dir
!--- Do something, I'm a directory ---
/cfif
/cfloop


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

C code. C code run. Run code run. Please!
- Cynthia Dunning



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. 





~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185341
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Queries in CFC, cfoutput has issues

2004-11-24 Thread Ryan Emerle
Well, now that i think about it, you would want to copy it to the
variable scope anyway.  Otherwise, each iteration of the loop you'd be
executing the query again by calling the function every time.

that is:
cfloop query=application.queries.getQuery()
  cfoutput#application.querys.getQuery().name#/cfouput
/cfloop

If that worked, it would exec the function getQuery() in
application.queries and iterate over the rows.  Then each iteration we
re-call the function to get the same query and we'd only return the
name field for the first row.

You need to copy the _results_ of the query to a variable so you can
iterate over it.  In other words, you can't iterate over a function
call :)

On Wed, 24 Nov 2004 13:30:02 -0500, Ryan Emerle [EMAIL PROTECTED] wrote:
 Yeah, ran into that myself.
 
 As far as i could tell, it seems to be a limitation of the cfouptut
 and cfloop tags.  It looks like MACR needs to update those tags for
 the new syntax made available by MX.  Until then, i guess we'll have
 to settle on copying it to the variable scope.
 
 
 
 
 On Wed, 24 Nov 2004 13:20:40 -0400, Robert Everland III
 [EMAIL PROTECTED] wrote:
  I have a CFC that I have put all of my stored procedures into. I then input 
  the CFC into the application scope for use throughout my application. The 
  issue I have is that I can reference the query in a cfdump like this 
  cfdump var=#application.queries.testquery()# and it will dump the 
  query. I can do isquery(application.queries.testquery()) and it returns 
  yes, but when I do cfoutput query=application.queries.testquery() or 
  cfoutput query=#application.queries.testquery()# it throws an error. I 
  can set the method to a local variable and then I'm able to reference the 
  query, but it would be nice to use the method without having to move it to 
  a local variable. Has anyone ran into this issue?
 
  Bob
 
  

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185342
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: get directory name - one more thing

2004-11-24 Thread Greg Morphis
I use cfoutput query=NameOfDirCall
I suppose you could use cfloop query= too.



On Wed, 24 Nov 2004 13:27:49 -0500, Robert Orlini [EMAIL PROTECTED] wrote:
 works fine Ian thank you.
 
 One more thing please: How can I add each directory name into a table using a 
 cfquery?
 
 I have this:
 CFQUERY name=get datasource=marketing
 INSERT INTO directories (name)
 VALUES ('#mydirectory.name#')
 /CFQUERY
 
 But it adds just the first entry. I guess your gonna say use a cfloop, if so 
 what type?
 
 Robert O.
 
 -Original Message-
 From: Ian Skinner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 11:18 AM
 To: CF-Talk
 Subject: RE: get directory name
 
 Thanks Ben and Greg.
 
 I'm using the CFDirectory example on Macromedia's site. It lists the 
 directory name and size of files found.
 
 One step further: How can I filter out any files (if #size# = 0 which means 
 it is a directory name and not a file) and then insert the directory names in 
 a table?
 
 Robert O.
 
 Instead of using size, I would use the type field which equals file for 
 files and dir for directories.
 
 cfdirectory
   directory=#GetDirectoryFromPath(GetTemplatePath())#
   name=myDirectory
 
 cfloop query=myDirectory
cfif type EQ dir
!--- Do something, I'm a directory ---
/cfif
 /cfloop
 
 --
 Ian Skinner
 Web Programmer
 BloodSource
 www.BloodSource.org
 Sacramento, CA
 
 C code. C code run. Run code run. Please!
 - Cynthia Dunning
 
 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.
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185343
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Creating zip files on the fly without CreateObject

2004-11-24 Thread Al Everett
You might want to look into this CFC:

http://www.webclarity.com/developers/zip.cfm

--- Marco Antonio C. Santos [EMAIL PROTECTED] wrote:
 how to create zip files on the fly with CF and without use
 CreateObject statement? CFX_Zip could be an option but your price is
 proibitive... what you suggest?


=
-- 
Al Everett
[EMAIL PROTECTED]
Madness takes its toll. Please have exact change.



__ 
Do you Yahoo!? 
Yahoo! Mail - Helps protect you from nasty viruses. 
http://promotions.yahoo.com/new_mail

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185344
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: get directory name - one more thing

2004-11-24 Thread Robert Orlini
Sorry I may have not specified this correctly. I need to put each dir name into 
a table

-Original Message-
From: Greg Morphis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 1:38 PM
To: CF-Talk
Subject: Re: get directory name - one more thing


I use cfoutput query=NameOfDirCall
I suppose you could use cfloop query= too.



On Wed, 24 Nov 2004 13:27:49 -0500, Robert Orlini [EMAIL PROTECTED] wrote:
 works fine Ian thank you.
 
 One more thing please: How can I add each directory name into a table using a 
 cfquery?
 
 I have this:
 CFQUERY name=get datasource=marketing
 INSERT INTO directories (name)
 VALUES ('#mydirectory.name#')
 /CFQUERY
 
 But it adds just the first entry. I guess your gonna say use a cfloop, if so 
 what type?
 
 Robert O.
 
 -Original Message-
 From: Ian Skinner [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 11:18 AM
 To: CF-Talk
 Subject: RE: get directory name
 
 Thanks Ben and Greg.
 
 I'm using the CFDirectory example on Macromedia's site. It lists the 
 directory name and size of files found.
 
 One step further: How can I filter out any files (if #size# = 0 which means 
 it is a directory name and not a file) and then insert the directory names in 
 a table?
 
 Robert O.
 
 Instead of using size, I would use the type field which equals file for 
 files and dir for directories.
 
 cfdirectory
   directory=#GetDirectoryFromPath(GetTemplatePath())#
   name=myDirectory
 
 cfloop query=myDirectory
cfif type EQ dir
!--- Do something, I'm a directory ---
/cfif
 /cfloop
 
 --
 Ian Skinner
 Web Programmer
 BloodSource
 www.BloodSource.org
 Sacramento, CA
 
 C code. C code run. Run code run. Please!
 - Cynthia Dunning
 
 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.
 
 



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185345
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Verisign Payflow Pro

2004-11-24 Thread Ryan Mannion
I downloaded the sdk, unzipped it to my server, but I have no clue how
to use this thing. After you unzip it to your directory what else do
you have to do? Is there any install for the SDK? What about the cert
path it refers to? Is that only for the cold fusion CFX Tag certpath
=?

Lost when it comes to this stuff!

Ryan


On Wed, 24 Nov 2004 13:23:52 -0500, Ryan Emerle [EMAIL PROTECTED] wrote:
 Nah, it's really rather easy, just follow the install instructions.
 
 Just make sure that you provide all of the default information such as
 hostname, port, proxy_username, proxy_password, etc.  It's weird, but
 the proxy information needs to be specified whether you are using it
 or not.
 
 HTH
 -Ryan
 
 
 On Wed, 24 Nov 2004 12:27:22 -0500, Ryan Mannion [EMAIL PROTECTED] wrote:
  Thanks for the info, have you had any experience installing the
  verisign sdk or the CFX tag? If so can you provide any tips, or
  caveats I may have when doing it?
 
  Thanks agian.
 
  Ryan
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185346
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: get directory name - one more thing

2004-11-24 Thread Greg Morphis
loop over the directory and use a insert query statement.
cfloop query=dirlist
  cfquery ...
 insert into table values(#dirlist.name#)
  /cfquery
/cfloop



On Wed, 24 Nov 2004 13:41:30 -0500, Robert Orlini [EMAIL PROTECTED] wrote:
 Sorry I may have not specified this correctly. I need to put each dir name 
 into a table
 
 
 
 -Original Message-
 From: Greg Morphis [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 1:38 PM
 To: CF-Talk
 Subject: Re: get directory name - one more thing
 
 I use cfoutput query=NameOfDirCall
 I suppose you could use cfloop query= too.
 
 On Wed, 24 Nov 2004 13:27:49 -0500, Robert Orlini [EMAIL PROTECTED] wrote:
  works fine Ian thank you.
 
  One more thing please: How can I add each directory name into a table using 
  a cfquery?
 
  I have this:
  CFQUERY name=get datasource=marketing
  INSERT INTO directories (name)
  VALUES ('#mydirectory.name#')
  /CFQUERY
 
  But it adds just the first entry. I guess your gonna say use a cfloop, if 
  so what type?
 
  Robert O.
 
  -Original Message-
  From: Ian Skinner [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, November 24, 2004 11:18 AM
  To: CF-Talk
  Subject: RE: get directory name
 
  Thanks Ben and Greg.
 
  I'm using the CFDirectory example on Macromedia's site. It lists the 
  directory name and size of files found.
 
  One step further: How can I filter out any files (if #size# = 0 which means 
  it is a directory name and not a file) and then insert the directory names 
  in a table?
 
  Robert O.
 
  Instead of using size, I would use the type field which equals file 
  for files and dir for directories.
 
  cfdirectory
directory=#GetDirectoryFromPath(GetTemplatePath())#
name=myDirectory
 
  cfloop query=myDirectory
 cfif type EQ dir
 !--- Do something, I'm a directory ---
 /cfif
  /cfloop
 
  --
  Ian Skinner
  Web Programmer
  BloodSource
  www.BloodSource.org
  Sacramento, CA
 
  C code. C code run. Run code run. Please!
  - Cynthia Dunning
 
  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.
 
 
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185347
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Queries in CFC, cfoutput has issues

2004-11-24 Thread Ian Skinner
cfoutput 
 query=#application.queries.testquery()# it throws an error. I can 
 set the method to a local variable and then I'm able to reference the 
 query, but it would be nice to use the method without having to move 
 it to a local variable. Has anyone ran into this issue?

Yes, I have run into this problem or one very similar to it.  cfoutput seems 
to have trouble with queries that are inside complex variables.  It does not 
recognize them as queries.  I don't know if this problem has been addressed yet 
or not.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

C code. C code run. Run code run. Please!
- Cynthia Dunning



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. 



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185348
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: get directory name - one more thing

2004-11-24 Thread Robert Orlini
perfect...thanks much!

-Original Message-
From: Greg Morphis [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 1:54 PM
To: CF-Talk
Subject: Re: get directory name - one more thing


loop over the directory and use a insert query statement.
cfloop query=dirlist
  cfquery ...
 insert into table values(#dirlist.name#)
  /cfquery
/cfloop



On Wed, 24 Nov 2004 13:41:30 -0500, Robert Orlini [EMAIL PROTECTED] wrote:
 Sorry I may have not specified this correctly. I need to put each dir name 
 into a table
 
 
 
 -Original Message-
 From: Greg Morphis [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 24, 2004 1:38 PM
 To: CF-Talk
 Subject: Re: get directory name - one more thing
 
 I use cfoutput query=NameOfDirCall
 I suppose you could use cfloop query= too.
 
 On Wed, 24 Nov 2004 13:27:49 -0500, Robert Orlini [EMAIL PROTECTED] wrote:
  works fine Ian thank you.
 
  One more thing please: How can I add each directory name into a table using 
  a cfquery?
 
  I have this:
  CFQUERY name=get datasource=marketing
  INSERT INTO directories (name)
  VALUES ('#mydirectory.name#')
  /CFQUERY
 
  But it adds just the first entry. I guess your gonna say use a cfloop, if 
  so what type?
 
  Robert O.
 
  -Original Message-
  From: Ian Skinner [mailto:[EMAIL PROTECTED]
  Sent: Wednesday, November 24, 2004 11:18 AM
  To: CF-Talk
  Subject: RE: get directory name
 
  Thanks Ben and Greg.
 
  I'm using the CFDirectory example on Macromedia's site. It lists the 
  directory name and size of files found.
 
  One step further: How can I filter out any files (if #size# = 0 which means 
  it is a directory name and not a file) and then insert the directory names 
  in a table?
 
  Robert O.
 
  Instead of using size, I would use the type field which equals file 
  for files and dir for directories.
 
  cfdirectory
directory=#GetDirectoryFromPath(GetTemplatePath())#
name=myDirectory
 
  cfloop query=myDirectory
 cfif type EQ dir
 !--- Do something, I'm a directory ---
 /cfif
  /cfloop
 
  --
  Ian Skinner
  Web Programmer
  BloodSource
  www.BloodSource.org
  Sacramento, CA
 
  C code. C code run. Run code run. Please!
  - Cynthia Dunning
 
  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.
 
 
 
 



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185349
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Queries in CFC, cfoutput has issues

2004-11-24 Thread Robert Everland III
If you were looping over the query you wouldn't need to refer to the function. 
Also if you did myquery().name, you would only be getting the first record 
every time, you would just refer to name. I think it's just a limitation in 
ColdFusion, looks like a lot of people are having this issue. We're very close 
to being able to do object oriented with CFC, but there still needs to be some 
work so that we can do the same thing as .NET . 


Bob

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185350
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


connecting to linkpoint problem

2004-11-24 Thread Brook Davies
I am having problems connecting to linkpoint via their com object on our 
production server. It works fine on our development server on the same 
network. Anyone have any guess to what might be the issue? I am looking at 
the firewall settings but they look okay...

Brook



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185351
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: connecting to linkpoint problem

2004-11-24 Thread Brook Davies
Just to follow up on that, when I try using CFHTTP to connect to linkpoint 
(cfhttp url=https://secure.linkpt.net:1129; method=get), I get a 
result. But when I run the method of the COM object that does the 
connection the request runs forever and never returns a result

Brook

At 11:20 AM 11/24/2004, you wrote:
I am having problems connecting to linkpoint via their com object on our
production server. It works fine on our development server on the same
network. Anyone have any guess to what might be the issue? I am looking at
the firewall settings but they look okay...

Brook





~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185352
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Quick MySQL + CF question

2004-11-24 Thread Yves Arsenault
Thanks  for the reply,

I wanted to know if I could work with a MySQL DB without the datasource.

I know that (at least in CF5) I could create DSN-less connections to
say an Access DB

Is it possible to use CFMX with MySQL without creating a datasource in
the CF admin?


Thanks,

Yves




On Wed, 24 Nov 2004 10:18:28 -0800, Jordan Michaels
[EMAIL PROTECTED] wrote:
 Yves Arsenault wrote:
 
 Hey there,
 
 Is there anyway to connect to MySQL datasources without creating a
 datasource name in CF admin?
 
 Thanks,
 
 
 
 Do you mean like MS Windows ODBC datasources or are you simply trying to
 connect to a MySQL DB without using a datasource at all?
 
 --
 Warm regards,
 Jordan Michaels
 Vivio Technologies
 http://www.viviotech.net/
 [EMAIL PROTECTED]
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185353
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Quick MySQL + CF question

2004-11-24 Thread Rick Root
DSNless queries are no longer supported in CFMX and beyond.

  - Rick

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185354
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Queries in CFC, cfoutput has issues

2004-11-24 Thread Ryan Emerle
in some cases, you'll need to use something to specify the scope:

cfloop query=query1
cfloop query=query2
   cfoutput#query1.name# != #query2.name#br/cfoutput
/cfloop
/cfloop

Now try that with the unstored results of a function call.

On Wed, 24 Nov 2004 14:10:13 -0400, Robert Everland III
[EMAIL PROTECTED] wrote:
 If you were looping over the query you wouldn't need to refer to the 
 function. Also if you did myquery().name, you would only be getting the first 
 record every time, you would just refer to name. I think it's just a 
 limitation in ColdFusion, looks like a lot of people are having this issue. 
 We're very close to being able to do object oriented with CFC, but there 
 still needs to be some work so that we can do the same thing as .NET .
 
 
 Bob
 


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185355
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Quick MySQL + CF question

2004-11-24 Thread Yves Arsenault
That's what I thought

I just wanted to make 100% sure.

Thanks,

Yves


On Wed, 24 Nov 2004 14:54:42 -0500, Rick Root [EMAIL PROTECTED] wrote:
 DSNless queries are no longer supported in CFMX and beyond.
 
   - Rick
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185356
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF Crash : Server Config or J2EE

2004-11-24 Thread Steven Erat
Ben,

 That said, what I take out of this is that, to develop 
 applications for the
 ColdFusion MX platform, we developers need a very thorough 
 understanding of
 the JVM. This includes how to debug JVM related issues and 
 where to go to
 locate information about JVM error messages.

Not necessarily.  As a developer you can continue to build robust ColdFusion
applications without having to worry about the J2EE underpinnings.  CFML is
still CFML, but the language has grown and there's more if you want it,
including Java integration via tag libraries, JSP, and servlets.  Although
even Blackstone's wicked cool new features are implemented by the developer
using CFML tag based development.  

 This is not entirely unexpected. Since the release of 
 ColdFusion MX, I've
 spent a good deal of time sifting through Axis fault errors. 

Yes, I suppose debugging during development will expose you to new areas.
Apache Axis errors are returned in raw format, and might be somewhat obtuse.
That is an area that could use improvement where a friendly error message
might be more helpful.  Although even in older versions some CFML like COM
integration would return equally obtuse errors (AutomationException
0xF2E57770AD).  Stack traces often follow friendly ColdFusion error
messages, so while the stack could be helpful if you want it, you still have
a readable error message.(1)

 With ColdFusion MX, I routinely have to make changes to the 
 JRun XML config
 files. For example, I have to duplicate ColdFusion mappings 
 in JRun so that
 cfimport and Axis pick them. 

Not sure what you mean here.  CF Mappings are still handled through the
CFAdmin.  Perhaps you mean JRun virtual mappings ?
Where possible and appropriate ColdFusion tries to make settings available
through the CFAdmin, although there are times when you may want to dabble in
the config files, but this is usually done only when using advanced
configurations like JRun clustering (soon be improved in Blackstone).

 Speaking on behalf of myself, I'm willing to learn. 
 Consequently, besides
 the links that were posted so far in this thread, can you 
 recommend any good
 reading on this topic? 

If you'd like to become more familiar with the J2EE underpinnings, the
Devnet articles (http://www.macromedia.com/devnet/mx/coldfusion/) are
probably the best first choice.  For learning Java development try Java for
ColdFusion Developers, ISBN 0130461806.  Also, Hal Helms has an awesome
course on Object Oriented Development with ColdFusion, and of course CFDJ
routinely offers easy to read articles that cover all the bases (including
OOCF from Hal).

All this said, I would expect most CF shops to invest some time in
understanding J2EE to save money on consulting so they can take advantage of
J2EE diagnostics available in CF.  Frankly, I think those diagnostics
mentioned in my previous posts are far more helpful than what was available
in earlier versions of CF.

-Steve


(1) ColdFusion aims to have clear and friendly error messages that are
helpful, although historically some of them have deviated from this goal:
- waitpid() returned something nasty when forking processes with
CFEXECUTE on Unix in CF4.5
-
CFTempOnlyForSetVariableNeverUseThisNameInYourCFMLCode1223335654321
 in CF5 with CFPARAM default= name=url.
- Error Occurred While Processing Request
temptaciousjedimastersupremewhopper1=[drivername] in CFMX 6.0 when
sorting driver list (thanks Ray!)

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185357
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: What's in your toolkit?

2004-11-24 Thread Rob
BTW I was looking for this yesterday and couldnt find it, but stumbled
on it again today

http://cfcxmi.tigris.org/



On Wed, 24 Nov 2004 08:53:49 -0500, Dan O'Keefe [EMAIL PROTECTED] wrote:
  I'm hoping to produce a UML / CFC round-trip plugin for CFEclipse at
  some point, as I find time.
 
 Now that would be cool. Would it work off of an XMI file, or are you
 thinking of a particular modeling tool? Does Adalon export XMI? I
 doubt it.
 
 Dan
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185358
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Easy NumberFormat Question

2004-11-24 Thread S . Isaac Dealey
 Thanks guys. I checked cflib but missed this.

 Sincerely,

 Andrew

Welcome. It was something I'd seen in the code recently at my 9-5 job,
otherwise I likely wouldn't have been able to offer the suggestion. :)

s. isaac dealey   954.927.5117

new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework
http://www.sys-con.com/story/?storyid=44477DE=1
http://www.sys-con.com/story/?storyid=45569DE=1
http://www.fusiontap.com




~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185359
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


OT: Scan Docs to Edit

2004-11-24 Thread Donna French
Okay, sorry for the OT post, but I'm trying to help a lawyer friend of
mine and not real sure how to tackle this. I need to scan a document
then allow them to enter text either on top of the scan, or scan in as
a PDF or similar?

Any help greatly appreciated.

TIA,
Donna

-- 

Donna French
[EMAIL PROTECTED]

Blog: http://dgfrench.blogspot.com
Site: http://www.dgfrenchdesigns.com

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185360
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Bug fix follow-up application

2004-11-24 Thread CFDEV
Does anyone knows a good open source project of following bugs for software
developement? preferably an application that is written in CF.
 
Thanks
 
Pat


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185361
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OT: Scan Docs to Edit

2004-11-24 Thread dana tierney
you need to put text on top of the scanned image? Is Photoshop available?


On Wed, 24 Nov 2004 15:41:11 -0600, Donna French [EMAIL PROTECTED] wrote:
 Okay, sorry for the OT post, but I'm trying to help a lawyer friend of
 mine and not real sure how to tackle this. I need to scan a document
 then allow them to enter text either on top of the scan, or scan in as
 a PDF or similar?
 
 Any help greatly appreciated.
 
 TIA,
 Donna
 
 --
 
 Donna French
 [EMAIL PROTECTED]
 
 Blog: http://dgfrench.blogspot.com
 Site: http://www.dgfrenchdesigns.com
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185362
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OT: Scan Docs to Edit

2004-11-24 Thread Donna French
Yes but we are talking about very computer illiterate folks here. Need
something simple if possible.

~ D


On Wed, 24 Nov 2004 14:51:15 -0700, dana tierney [EMAIL PROTECTED] wrote:
 you need to put text on top of the scanned image? Is Photoshop available?
 
 
 
 
 On Wed, 24 Nov 2004 15:41:11 -0600, Donna French [EMAIL PROTECTED] wrote:
  Okay, sorry for the OT post, but I'm trying to help a lawyer friend of
  mine and not real sure how to tackle this. I need to scan a document
  then allow them to enter text either on top of the scan, or scan in as
  a PDF or similar?
 
  Any help greatly appreciated.
 
  TIA,
  Donna
 
  --
  
  Donna French
  [EMAIL PROTECTED]
 
  Blog: http://dgfrench.blogspot.com
  Site: http://www.dgfrenchdesigns.com
 
 
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185363
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Bug fix follow-up application

2004-11-24 Thread Rob
bugzilla?

not cf (php) but highly used

On Wed, 24 Nov 2004 16:41:14 -0500, CFDEV [EMAIL PROTECTED] wrote:
 Does anyone knows a good open source project of following bugs for software
 developement? preferably an application that is written in CF.
 
 Thanks
 
 Pat
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185364
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OT: Scan Docs to Edit

2004-11-24 Thread dana tierney
what are they trying to do exactly? 


On Wed, 24 Nov 2004 15:58:59 -0600, Donna French [EMAIL PROTECTED] wrote:
 Yes but we are talking about very computer illiterate folks here. Need
 something simple if possible.
 
 ~ D
 
 
 
 
 On Wed, 24 Nov 2004 14:51:15 -0700, dana tierney [EMAIL PROTECTED] wrote:
  you need to put text on top of the scanned image? Is Photoshop available?
 
 
 
 
  On Wed, 24 Nov 2004 15:41:11 -0600, Donna French [EMAIL PROTECTED] wrote:
   Okay, sorry for the OT post, but I'm trying to help a lawyer friend of
   mine and not real sure how to tackle this. I need to scan a document
   then allow them to enter text either on top of the scan, or scan in as
   a PDF or similar?
  
   Any help greatly appreciated.
  
   TIA,
   Donna
  
   --
   
   Donna French
   [EMAIL PROTECTED]
  
   Blog: http://dgfrench.blogspot.com
   Site: http://www.dgfrenchdesigns.com
  
  
 
 
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185365
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OT: Scan Docs to Edit

2004-11-24 Thread Anders Green
At 04:58 PM 11/24/2004, Donna French wrote:
Yes but we are talking about very computer illiterate folks here. Need
something simple if possible.

In that case, recommend new hardware:

Photocopier

*grin*

Anders
+===+
|Anders GreenEmail: [EMAIL PROTECTED]|
| Home: 919.303.0218|
|   Off Road Rally Racing Team: http://LinaRacing.com/  |
|Do you like Evite? This is better: http://RSVPtracker.com/ |
+===+


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185366
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Variant Arrays and COM

2004-11-24 Thread Lewis Sellers
Someone please jog my memory. :)

If you have CF5 and a COM that returns a SAFEARRAY of VARIANT type 
long's ... can you access that data from CF5? At last theoretically? 
(Assuming God is smiling down on you that day.)

Thanks.


-- 
--Lewis Sellers (AKA min)
Intrafoundation Software
http://www.intrafoundation.com

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185367
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


OT-Mortgage Rates

2004-11-24 Thread Eric Creese
Is there anything out there for free that can be used to display current 
mortgage rates on one of my sites I am developing that will not need any daily 
interaction on my part. Something automated?



~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185368
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Creating zip files on the fly without CreateObject

2004-11-24 Thread Dawson, Michael
I use cfexecute and gzip on one of my apps dump the little exe out
there and call it..

This is what I use and it works great! 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185369
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: process ColdFusion tag written inside a string

2004-11-24 Thread Michael Dinowitz
CFFUNCTION name=getnow
CFRETURN now()
/CFFUNCTION

CFSET text=left of now - ##left(getnow(), 10)## - by 10 characters
CFOUTPUT#evaluate('#text#')#/CFOUTPUT

Basically, you set a function within a string where the function is
surrounded by pound signs. I'm using double there as it's a CFSET but if
that string was in a DB field, you would use single.
When you evaluate the string, you do a double set of quotes (single then
double or visa versa) with the variable within pound signs. This has a
multi-evaluation effect where the variable is evaluated normally, then the
string is evaluated which turns the internal variable into its value. 
In this case, the value is a custom function call which can contain a query
or anything else I want. All you have to be sure of is the data being
returned.

 Ok, well you got me asking what evaluate tricks do you mean?
 
 Are you saying;
 
 Evaluate(this is some stuff  importfunc()  some more stuff)
 
 I have been experimenting with the stuff I have (the cfimport I reference
 is actually a tag replacement a former coworker wrote for forms and I
 built a wysiwyg tool to gen. a form using CFCs so marrying the 2
 together).  Looks like I may be able to just use a Prefix in the cfimport
 and create calls like;
 
 thistag:form name=#test# action=fsda method=post validate=true
 errordisplay=adfs style=border:1px solid;background-color:##FF6699 
 
 So got a solution (you got me thinking, thx), but interested in what you
 are saying, knowledge and all.
 
 Kevin
 
 
 Basically, yes. There are some evaluate tricks you can use for strings
 where the
 function is embedded in the string and the string is stored somewhere
 else like
 a DB, but the basic concept it there. You're just wrapping the tag in a
 different method of access.
 
 
 like;
 
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185370
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF Crash : Server Config or J2EE

2004-11-24 Thread Ben Rogers
 Not necessarily.  As a developer you can continue to build robust
 ColdFusion applications without having to worry about the J2EE 
 underpinnings.

I disagree with this statement. I have had to learn a great deal about JRun
to develop in and host on ColdFusion MX. I have justified it with the well,
ColdFusion MX is a complete rewrite from scratch excuse. Nevertheless, I
had to become intimate with the JRun config files, Axis error messages, etc.

Again, I don't think this is the end of the world. I'm just stating my
experience. I don't think my experience is exceptional...but this wouldn't
be the first time I was wrong. :)

 Although even in older versions some CFML like COM
 integration would return equally obtuse errors (AutomationException
 0xF2E57770AD).  Stack traces often follow friendly ColdFusion error
 messages, so while the stack could be helpful if you want it, you still
 have a readable error message.(1)

Perhaps this is true, but I generally found those COM errors much easier to
decipher than stack traces. In general, I found ColdFusion 5 error messages
much more accurate than those in ColdFusion MX. I think that's to be
expected with a complete rewrite. In fact, I think it's perfectly
acceptable.

 Not sure what you mean here.  CF Mappings are still handled through the
 CFAdmin.  Perhaps you mean JRun virtual mappings ?

Yes, ColdFusion mappings are still handled through the ColdFusion
administrator. However, ColdFusion mappings are/were ignored in *many*
situations. Since the initial release of ColdFusion MX, there have been
several bug fixes to this extent. I believe the cfimport issue was fixed in
6.1.

Nevertheless, I still run into problems where, for instance, invoking a
component locally works. However, if I invoke it as a web service, it fails
unless all the mappings referenced in the component are also set up in JRun.

If you run only a single site on your server, then the / mapping, which is
set up in ColdFusion and JRun by default, will always work. However, if you
run multiples sites on a single server, then you will need to set up
explicit mappings for each site since, obviously, only one site can use the
/ mapping.

Again, my point here is that ColdFusion MX really feels like a language
interpreter sitting on top of J2EE and the JVM. Before your earlier posts, I
was convinced that I had to know a great deal about J2EE (and JRun in
particular) to build and host ColdFusion apps. Now I see that I need to know
more about the JVM than I currently know to host them.

 If you'd like to become more familiar with the J2EE underpinnings, the
 Devnet articles (http://www.macromedia.com/devnet/mx/coldfusion/) are
 probably the best first choice.  For learning Java development try Java
 for ColdFusion Developers, ISBN 0130461806.

I've read most of the applicable DevNet articles. I've purchased the
aforementioned book. It is a very, very bad book, full of examples that will
not compile and poor metaphors. I don't consider myself a Java developer,
but I knew more about Java than what the author was attempting to teach in
that book.

Anyway, I probably misstated my question. I'm looking for books and
information on debugging JVM issues. I've learned enough about J2EE and JRun
that I feel comfortable with these elements. However, the content of your
earlier posts suggest that I need to learn a great deal more about the JVM
than I already know.

 Also, Hal Helms has an awesome course on Object Oriented Development with 
 ColdFusion, and of course CFDJ routinely offers easy to read articles that

 cover all the bases (including OOCF from Hal).

Uhg. I didn't say that I wasn't familiar with OOP. What does OOP even have
to do with this discussion?

Just as a point of reference, at this very moment, I have Core J2EE Patters,
Domain Driven Design, Enterprise Integration Patterns, and Refactoring to
Patterns sitting on my desk. I had let a friend borrow them, and he returned
them just today.

I simply don't consider myself a Java programmer. Consequently, I'm looking
for discussions/books/information about the JVM that don't require an
in-depth knowledge of Java. The tech notes that you pointed to are good --
if brief -- examples of this. I'm well aware that what I'm asking for might
not exist. :)

 All this said, I would expect most CF shops to invest some time in
 understanding J2EE to save money on consulting so they can take advantage
 of J2EE diagnostics available in CF.  Frankly, I think those diagnostics
 mentioned in my previous posts are far more helpful than what was
 available in earlier versions of CF.

Agreed. That's why I was willing to learn about J2EE when I first tackled
ColdFusion MX. But it doesn't change the fact that I didn't know some of the
debug and log files you referred to even existed until you mentioned them.
It also doesn't change the fact that I need to know more about the JVM to
understand them.

 (1) ColdFusion aims to have clear and friendly error messages that are
 

Re: Bug fix follow-up application

2004-11-24 Thread Jon Austin
Check out 'lighthouse' by Ray Camden. http://www.camdenfamily.com/morpheus/blog/


 On Wed, 24 Nov 2004 16:41:14 -0500, CFDEV [EMAIL PROTECTED] wrote:
  Does anyone knows a good open source project of following bugs for software
  developement? preferably an application that is written in CF.

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185372
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Bug fix follow-up application

2004-11-24 Thread Douglas Knudsen
i just wrote one in CF using Machii, its in way early alpha stage, but
ur welcome to it.  drop me an email if ur interested.

Doug


On Thu, 25 Nov 2004 10:21:55 +1000, Jon Austin [EMAIL PROTECTED] wrote:
 Check out 'lighthouse' by Ray Camden. 
 http://www.camdenfamily.com/morpheus/blog/
 
 
  On Wed, 24 Nov 2004 16:41:14 -0500, CFDEV [EMAIL PROTECTED] wrote:
   Does anyone knows a good open source project of following bugs for 
   software
   developement? preferably an application that is written in CF.
 
 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185373
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Strict email validation

2004-11-24 Thread Jon Austin
Does anyone know of a function to validate email addresses that
matches the accepted address formats for CFMAIL?

I.e. will return true for:

[EMAIL PROTECTED]

[EMAIL PROTECTED]

Rob Smith [EMAIL PROTECTED]

Rob Smith [EMAIL PROTECTED]

[EMAIL PROTECTED] (Rob Smith)

The one from cflib.org will only validate the first example.

Kind Regards,

Jon Austin

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185374
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Strict email validation

2004-11-24 Thread Michael Dinowitz
I plan to be working on the HoF system over the next 2 days and this is
something covered in the code. I just have to wrap it nice and neat.


 Does anyone know of a function to validate email addresses that
 matches the accepted address formats for CFMAIL?

 I.e. will return true for:

 [EMAIL PROTECTED]

 [EMAIL PROTECTED]

 Rob Smith [EMAIL PROTECTED]

 Rob Smith [EMAIL PROTECTED]

 [EMAIL PROTECTED] (Rob Smith)

 The one from cflib.org will only validate the first example.

 Kind Regards,

 Jon Austin

 

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185375
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Strict email validation

2004-11-24 Thread Jon Austin
Well, if you feel like sharing... 

I just don't trust my regex's enought yet... :)

On Thu, 25 Nov 2004 00:03:24 -0500, Michael Dinowitz
[EMAIL PROTECTED] wrote:
 I plan to be working on the HoF system over the next 2 days and this is
 something covered in the code. I just have to wrap it nice and neat.

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185376
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Strict email validation

2004-11-24 Thread Jim McAtee
CFMAIL in which version of CF?  My experience has been that CFMAIL in CF5 
accepts pretty much anything.  It's the SMTP relay that accepts only 
certain formats, and I've seen differences among SMTP servers.  I've also 
seen differences between the accepted formats for the FROM and TO 
addresses.  So a universal UDF to do this would be unlikely - it would 
have to be customized to each environment.

I've never had a need to validate the address in this manner, though. 
There's no good reason to permit people to enter addresses like this. 
It's much easer for both them and yourself if they enter their name and 
email address separately.  You validate the email address, the name (non 
blank?) and then you store them seperately and use CF to format the TO and 
FROM as you're sending messsages.


- Original Message - 
From: Jon Austin [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Wednesday, November 24, 2004 8:21 PM
Subject: Strict email validation


 Does anyone know of a function to validate email addresses that
 matches the accepted address formats for CFMAIL?

 I.e. will return true for:

 [EMAIL PROTECTED]

 [EMAIL PROTECTED]

 Rob Smith [EMAIL PROTECTED]

 Rob Smith [EMAIL PROTECTED]

 [EMAIL PROTECTED] (Rob Smith)

 The one from cflib.org will only validate the first example.

 Kind Regards,

 Jon Austin


~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185377
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Strict email validation

2004-11-24 Thread Jon Austin
The four formats listed above are for MX. They are all RFC compliant,
so there should be very very few SMTP servers that reject any one of
the formats.

As for requirements, it's for an email client I've built. It is so the
user can type a portion of the name, or email address (which comes
from a CRM module) and have it pop-up nicely formatted. The same way
Outlook (Lookout!) and GMail does...

Regards,

Jon


On Wed, 24 Nov 2004 22:56:29 -0700, Jim McAtee [EMAIL PROTECTED] wrote:
 CFMAIL in which version of CF?  My experience has been that CFMAIL in CF5
 accepts pretty much anything.  It's the SMTP relay that accepts only
 certain formats, and I've seen differences among SMTP servers.  I've also
 seen differences between the accepted formats for the FROM and TO
 addresses.  So a universal UDF to do this would be unlikely - it would
 have to be customized to each environment.
 
 I've never had a need to validate the address in this manner, though.
 There's no good reason to permit people to enter addresses like this.
 It's much easer for both them and yourself if they enter their name and
 email address separately.  You validate the email address, the name (non
 blank?) and then you store them seperately and use CF to format the TO and
 FROM as you're sending messsages.

~|
Special thanks to the CF Community Suite Gold Sponsor - CFHosting.net
http://www.cfhosting.net

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:185378
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations  Support: http://www.houseoffusion.com/tiny.cfm/54