Using JCaptcha and FreeTTS to embed captcha and audio for the visually impaired

2009-01-12 Thread cf coder
Hi everybody,

I am hoping someone could provide me with some help in implementing this on my 
application. I am running ColdFusion 7 on a Windows Server. I have been asked 
to display a image and audio captcha in my form. I've visited both the JCpatcha 
)http://jcaptcha.sourceforge.net/) and FreeTTS 
(http://freetts.sourceforge.net/docs/index.php) websites.

I have not been able to find any help online on how to set up the jar files in 
coldfusion. My Java knowledge is very very basic. Would anyone be kind enough 
to show me or at least point me to the right direction?

I look forward to hearing from you

Regards,
John 

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

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


Re: programming guidance, cftree

2009-01-12 Thread sam Detweiler
 XSL supports FUNCTION recursion, but NOT data isolation. variables
 are in the context of the xpath path, and are NOT hidden on function
 recursion. (ie you have to be done with the variables, they will NOT
 survive.  (I have a nice xslt that demonstrates the problem clearly)..

I'd be interested in seeing the problem case. 

-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
 ph: 781.769.0723

http://onTap.riaforge.org/blog

sent the code, data and xsl sheet to you via email.

sam 

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

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


Re: Loading data from a webservice call into MSSQL.

2009-01-12 Thread sam Detweiler

 Rob

I sent your updated code to you via email

Sam 

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

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


Re: Using JCaptcha and FreeTTS to embed captcha and audio for the visually impaired

2009-01-12 Thread sam Detweiler
 Hi everybody,
 
 I am hoping someone could provide me with some help in implementing 
 this on my application. I am running ColdFusion 7 on a Windows Server. 
 I have been asked to display a image and audio captcha in my form. 
 I've visited both the JCpatcha )http://jcaptcha.sourceforge.net/) and 
 FreeTTS (http://freetts.sourceforge.net/docs/index.php) websites.
 
 I have not been able to find any help online on how to set up the jar 
 files in coldfusion. My Java knowledge is very very basic. Would 
 anyone be kind enough to show me or at least point me to the right 
 direction?
 
 I look forward to hearing from you
 
 Regards,
 John 
application specific jar files usually go in 

webapps/application_name/web-inf/lib

Sam 

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

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


Newbie tripping over SQL Single Quotes

2009-01-12 Thread Ron Gruner
Need a little help.  This query fails when the encrypted PW contains a single 
quote...

UPDATE Members
SET PW = '#Encrypt(form.PW,EncryptKey)#'
WHERE Member_ID = #form.Member_ID#

I've tried PreserveSingleQuotes like this...

UPDATE Members
SET PW = '#PreserveSingleQuotes(Encrypt(form.PW,EncryptKey))#'
WHERE Member_ID = #form.Member_ID#

and get an Invalid CFML Construct Error.

What's a simple fix for this? Thanks. 


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

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


Re: Newbie tripping over SQL Single Quotes

2009-01-12 Thread JediHomer
Try something like...

UPDATE Members
SET PW = cfqueryparam value=#Encrypt(form.PW,EncryptKey)# /
WHERE Member_ID = cfqueryparam value=#form.Member_ID#
cfsqltype=cf_sql_integer /


HTH

2009/1/12 Ron Gruner webmas...@gruner.com:
 Need a little help.  This query fails when the encrypted PW contains a single 
 quote...

 UPDATE Members
 SET PW = '#Encrypt(form.PW,EncryptKey)#'
 WHERE Member_ID = #form.Member_ID#

 I've tried PreserveSingleQuotes like this...

 UPDATE Members
 SET PW = '#PreserveSingleQuotes(Encrypt(form.PW,EncryptKey))#'
 WHERE Member_ID = #form.Member_ID#

 and get an Invalid CFML Construct Error.

 What's a simple fix for this? Thanks.


 

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

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


RE: Newbie tripping over SQL Single Quotes

2009-01-12 Thread Milburn, Steve
Always wrap your query parameters in cfqueryparam tags as another poster 
already showed.  To elaborate a little bit on that, using cfqueryparam will 
avoid the exact problem you are having with the single quote, but more 
importantly, not using cfqueryparam opens you up to all kinds of sql 
injections attacks that can cause big problems for you.  The use of 
preserveSingleQuotes makes the problem even worse.

You can see a good demonstration on how sql injection works and how to prevent 
it here: http://www.meetup.com/coldfusionmeetup/messages/boards/thread/3147031 
- look for the Hack-Proofing Your ColdFusion Powered Sites presentation.

Steve


From: Ron Gruner [webmas...@gruner.com]
Sent: Monday, January 12, 2009 7:26 AM
To: cf-talk
Subject: Newbie tripping over SQL Single Quotes

Need a little help.  This query fails when the encrypted PW contains a single 
quote...

UPDATE Members
SET PW = '#Encrypt(form.PW,EncryptKey)#'
WHERE Member_ID = #form.Member_ID#

I've tried PreserveSingleQuotes like this...

UPDATE Members
SET PW = '#PreserveSingleQuotes(Encrypt(form.PW,EncryptKey))#'
WHERE Member_ID = #form.Member_ID#

and get an Invalid CFML Construct Error.

What's a simple fix for this? Thanks.




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

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


RE: Is it possible to reference a cfc method using ajax?

2009-01-12 Thread Dawson, Michael
I don't even want to know what value that method would return.

mike 

-Original Message-
From: Raymond Camden [mailto:rcam...@gmail.com] 
Sent: Sunday, January 11, 2009 9:44 PM
To: cf-talk
Subject: Re: Is it possible to reference a cfc method using ajax?

Don't forget that in CF8, you can convert a result to JSON over the
wire. So if some CFC, let's call it, um, nose, had a method, pick, that
returned an array, if you did an Ajax call to

nose.cfc?method=pickreturnFormat=json

The returnFormat argument will tell the CFC to JSON encode the result.
So there is no need to write a special method for the Ajax call.

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

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


RE: Server slowly dying - Possibly a memory leak --- CF7, MS SQL Server 2005 Express

2009-01-12 Thread Andy Matthews
My suggestion is to scan all your code for var scoping with varScoper:

http://varscoper.riaforge.org/

It helped us out a lot.

-Original Message-
From: Brett Hellman [mailto:bhellm...@gmail.com] 
Sent: Saturday, January 10, 2009 4:21 PM
To: cf-talk
Subject: Server slowly dying - Possibly a memory leak --- CF7, MS SQL Server
2005 Express

Hi All,
I'm hoping for a push in the right direction. My server's performance has
been slowing down lately only to finally come to a screeching for the last
10 hours. I've turned off all other sites on the server and limited IIS to
my main site. I've also removed all the scheduled tasks, thinking that they
possibly were overlapping.

The reason I believe I have a memory leak is bec when I restart the server
and/or the services everything works fine for a little while. Then SQL
Server and JRUN being to start eating up memory.

Task Manager is currently showing:
SQLSERV.EXE 384,580 K
JRUN.EXR 105,016K

The server is under very light load right now, anywhere between 1-3 request
per second. Can anyone please offer tips on steps I should take to resolve.
Does this sound like a memory leak to you? If so, what is the best tool
currently to use to find out what in my code is causing the memory leak?

Thanks for any advice,

Brett




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

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


Re: Using JCaptcha and FreeTTS to embed captcha and audio for the visually impaired

2009-01-12 Thread cf coder
Hi Sam,

Thank you for your post. I have copied the files FreeTTS.jar file to my 
standalone ColdFusion installation folder: C:\CFusionMX7\lib\freetts.jar. I 
restarted ColdFusion and the jar file is now showing up in the class-path which 
is good. I can dump the methods in the FreeTTS class like this:
cfset freettsObj = CreateObject(java, com.sun.speech.freetts.FreeTTS)/
cfdump var=#freettsObj#cfabort

Please follow this link to see the list of classes and packages. 
http://freetts.sourceforge.net/javadoc/index.html

I'm getting somewhere but I don't know how to invokve the textToSpeech() method 
of the FreeTTS class. Basically, I want to pass a string to this function (the 
text that the captch randomly generates) and to convert this text to 
speeach/voice. When I get an error when I try to call this method in my code: 
cfset freettsObj.textToSpeech(randomStr) /

The system has attempted to use an undefined value, which usually indicates a 
programming error, either in your code or some system code.

Null Pointers are another name for undefined values. 

Any ideas?



 Hi everybody,
application specific jar files usually go in 

webapps/application_name/web-inf/lib

Sam 

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

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


Re: Using JCaptcha and FreeTTS to embed captcha and audio for the visually impaired

2009-01-12 Thread Dave Watts
 I am hoping someone could provide me with some help in implementing this on my
 application. I am running ColdFusion 7 on a Windows Server. I have been asked 
 to display
 a image and audio captcha in my form. I've visited both the JCpatcha and 
 FreeTTS
 websites.

I would recommend that you avoid implementing CAPTCHAs at all. That's
probably not the answer you're looking for, but they're terrible
solutions from an accessibility perspective. Instead, you might look
at something like CFFormProtect (http://cfformprotect.riaforge.org/),
which lets you block spammers just as effectively without the
accessibility problems of CAPTCHAs.

Your client may have specifically requested a CAPTCHA, but ideally the
developer should recommend alternative solutions when those solutions
are clearly superior.

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

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

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

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


CFPDF + Text .... how do you change the font size?

2009-01-12 Thread Jeff Chastain
Hopefully this is very simple and I am just missing something here, but I am
trying to insert some text watermark-style onto a PDF document using the new
text attribute that was added to the CFPDF tag in 8.0.1.  The problem I am
having is that I cannot seem to affect the size of the font being rendered.
I can change the font family, style, color, etc. all using CSS styles, but
the font size never seems to apply.

 

Can anybody offer any suggestions here?

 

Thanks

-- Jeff



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

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


Re: Using JCaptcha and FreeTTS to embed captcha and audio for the visually impaired

2009-01-12 Thread sam Detweiler
 Hi Sam,
 
 Thank you for your post. I have copied the files FreeTTS.jar file to 
 my standalone ColdFusion installation folder: 
 C:\CFusionMX7\lib\freetts.jar. I restarted ColdFusion and the jar 
 file is now showing up in the class-path which is good. I can dump the 
 methods in the FreeTTS class like this:
 cfset freettsObj = CreateObject(java, com.sun.speech.freetts.
 FreeTTS)/
 cfdump var=#freettsObj#cfabort
 
 Please follow this link to see the list of classes and packages. 
 http://freetts.sourceforge.net/javadoc/index.html
 
 I'm getting somewhere but I don't know how to invokve the 
 textToSpeech() method of the FreeTTS class. Basically, I want to pass 
 a string to this function (the text that the captch randomly 
 generates) and to convert this text to speeach/voice. When I get an 
 error when I try to call this method in my code: 
 cfset freettsObj.textToSpeech(randomStr) /
 
 The system has attempted to use an undefined value, which usually 
 indicates a programming error, either in your code or some system code.
 
 
 Null Pointers are another name for undefined values. 
 
 Any ideas?
 
 
 Hi Sam,
 
 Thank you for your post. I have copied the files FreeTTS.jar file to 
 my standalone ColdFusion installation folder: 
 C:\CFusionMX7\lib\freetts.jar. I restarted ColdFusion and the jar 
 file is now showing up in the class-path which is good. I can dump the 
 methods in the FreeTTS class like this:
 cfset freettsObj = CreateObject(java, com.sun.speech.freetts.
 FreeTTS)/
 cfdump var=#freettsObj#cfabort
 
 Please follow this link to see the list of classes and packages. 
 http://freetts.sourceforge.net/javadoc/index.html
 
 I'm getting somewhere but I don't know how to invokve the 
 textToSpeech() method of the FreeTTS class. Basically, I want to pass 
 a string to this function (the text that the captch randomly 
 generates) and to convert this text to speeach/voice. When I get an 
 error when I try to call this method in my code: 
 cfset freettsObj.textToSpeech(randomStr) /
 
 The system has attempted to use an undefined value, which usually 
 indicates a programming error, either in your code or some system code.
 
 
 Null Pointers are another name for undefined values. 
 
 Any ideas?
 
 

While I agree with Dave that Capchas are particularly hard on the vision 
impaired (spent many years in IBM Research in this area).  they are appropriate 
and workable. 

like any additional java class, you must first instantiate the object with 
cfobject type=Java class= 
depending on the class requirements you also have to call several methods (init 
and others) to get the object in the correct state.

sam


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

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


Re: Comprehensive article on how CFID and CFTOKEN work?

2009-01-12 Thread Tyson Vanek
I'm building a cart-like application where I intend to store the
(usually anonymous) user's intra-session web site state in a database
table.  Using cfid and cftoken are the obvious choice to use to ID a
given user's state (I do realize that it would be system-unique and
wouldn't follow the user across computers, which is fine) when stored
in the database, but I feel like my understanding of how (and when)
CFID's and CFTOKEN's are created is incomplete.  Is there a
comprehensive guide to the how's and why's of cfid and cftoken
available online?

Thanks,

Pete

Pete,

I'll take a crack at this based on all that I recall and about 14 years of 
experience with ColdFusion.  =)

CFID and CFTOKEN are set as persistent cookies by ColdFusion.  This means that, 
assuming the end user has cookies enabled, the cookies are set and will retain 
the originally set value until they are specifically cleared by the end user.  
So, if a user visits your site for the very first time, ColdFusion will assign 
a new set of CFID and CFTOKEN values via a pair of cookies.  CFID is assigned 
sort of like an identity or autonumber, while CFTOKEN may be set in two 
different ways.  By default, CFTOKEN will be set as an 8-digit random number.  
However, there's an option in the ColdFusion Administrator under the Settings 
menu to assign CFTOKEN as a UUID instead of a random number.

And if you're dealing with a cluster of servers that might have unique host 
names but the same domain name, there's a boolean argument for the 
cfapplication tag called setdomaincookies (default: false) which will set 
the CFID and CFTOKEN cookies as domain-level cookies so that any hostname on 
that domain can read/write/share them.

Back many years ago, it used to be that there was a section in the registry 
where the seed value for CFID was stored and could be altered or reset.  These 
days, I'm not sure off the top of my head if that still exists.

Hope that helps.

-Tyson

--
Tyson Vanek
Principal Consultant
Webapper Services, LLC
http://www.webapper.com/ 

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

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


Re: Comprehensive article on how CFID and CFTOKEN work?

2009-01-12 Thread Tyson Vanek
I'm building a cart-like application where I intend to store the
(usually anonymous) user's intra-session web site state in a database
table.  Using cfid and cftoken are the obvious choice to use to ID a
given user's state (I do realize that it would be system-unique and
wouldn't follow the user across computers, which is fine) when stored
in the database, but I feel like my understanding of how (and when)
CFID's and CFTOKEN's are created is incomplete.  Is there a
comprehensive guide to the how's and why's of cfid and cftoken
available online?

Thanks,

Pete

Pete,

I'll take a crack at this based on all that I recall and about 14 years of 
experience with ColdFusion.  =)

CFID and CFTOKEN are set as persistent cookies by ColdFusion.  This means that, 
assuming the end user has cookies enabled, the cookies are set and will retain 
the originally set value until they are specifically cleared by the end user.  
So, if a user visits your site for the very first time, ColdFusion will assign 
a new set of CFID and CFTOKEN values via a pair of cookies.  CFID is assigned 
sort of like an identity or autonumber, while CFTOKEN may be set in two 
different ways.  By default, CFTOKEN will be set as an 8-digit random number.  
However, there's an option in the ColdFusion Administrator under the Settings 
menu to assign CFTOKEN as a UUID instead of a random number.

And if you're dealing with a cluster of servers that might have unique host 
names but the same domain name, there's a boolean argument for the 
cfapplication tag called setdomaincookies (default: false) which will set 
the CFID and CFTOKEN cookies as domain-level cookies so that any hostname on 
that domain can read/write/share them.

Back many years ago, it used to be that there was a section in the registry 
where the seed value for CFID was stored and could be altered or reset.  These 
days, I'm not sure off the top of my head if that still exists.

Hope that helps.

-Tyson

--
Tyson Vanek
Principal Consultant
Webapper Services, LLC
http://www.webapper.com/ 

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

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


Active Directory - Getting a users Accountname

2009-01-12 Thread Ian Vaughan
Hi

How do you query a logged in domain users networkID/accountname via
Coldfusion.

I would like CF to pick up automatically a users domain networkID and
then set this as a variable to query against another database, although
at the moment I am using a CFDUMP just to see the result. 

This is what I have at the moment, and I am getting the error below

Variable SAMACCOUNTNAME is undefined.

Any ideas?

CODE SNIPPET---

cfset StartOU=dc=domain, dc=co,dc=uk


cfldap action=query
name=adresult
attributes = sAMAccountName,dn, cn,sn,givenName,password, mail,ou
start=#StartOU#
scope=subtree
filter=samaccountName=#samaccountName#
server=server
port=389
username=username
password=password

/head

body

cfdump var=#sAMAccountName#

---


Regards,

Ian


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

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


Re: Newbie tripping over SQL Single Quotes

2009-01-12 Thread Ron Gruner
Steve, HTH -

The cfqueryparam change fixed the problem.  The support here is so much better 
than anything I've found on the Adobe site.

Thanks for the help


Need a little help.  This query fails when the encrypted PW contains a single 
quote...

UPDATE Members
SET PW = '#Encrypt(form.PW,EncryptKey)#'
WHERE Member_ID = #form.Member_ID#

I've tried PreserveSingleQuotes like this...

UPDATE Members
SET PW = '#PreserveSingleQuotes(Encrypt(form.PW,EncryptKey))#'
WHERE Member_ID = #form.Member_ID#

and get an Invalid CFML Construct Error.

What's a simple fix for this? Thanks. 

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

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


Re: Newbie tripping over SQL Single Quotes

2009-01-12 Thread Wil Genovese
You should use CFQUERYPARAM to prevent SQL Injection attacks from hurting
your database.  Here is a good example of why you want to use CFQUERYPARAM.
I just pulled this from my log files.

07/12/08 08:12.13: Error; christianmp3.com; Thread[ServletExec: request:
time=1228659133439, uri=/index.cfm,5,main];
Error Diagnostic Information  The value provided is longer than the
maxLength   Type=CF_SQL_VARCHAR; Data=[12668') and 1=convert(int,(select top
1 table_name from information_schema.tables))--sp_password]; Direction=IN;
Variable=null   Database   Date/Time: 12/07/2008 08:12:13  Browser:
Mozilla/4.0  Remote Address: 41.202.25.108  HTTP Referer:   Url:
www.redacted.com  Script Name: /index.cfm  Q
uery String:
/action=songprod=12668%27)%20and%201=convert(int,(select%20top%201%20table_name%20from%20information_schema.tables))--sp_password

From the looks of it someone was trying to tack on a query to my product id
number that gets used in a select statement.  I use CFQUERYPARAM so this
request failed since I have set the max length of my product ID's.

This is the part that tries to do the injection attack.
String:
/action=songprod=12668%27)%20and%201=convert(int,select%20top%201%20table_name%20from%20information_schema.tables))--sp_password

Last July/August there was a massive sustained SQL injection attack
targeting Coldfusion websites.  Some sites were hit real bad by the
injection itsself. others were taken down because the attack was so large
and distributed that it just overloaded the servers with web traffic.


Protect yourself use CFQUERYPARAM.

Wil Genovese
Sr. Web Application Developer


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

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


RE: Active Directory - Getting a users Accountname

2009-01-12 Thread Milburn, Steve
SAMACCOUNTNAME is not a variable you can dump in this example.  Try cfdump 
var=#adresult# / and you will see what you are getting back from the server. 
 Adresult should be similar to a query object, with samaccountname as a column.

Steve



From: Ian Vaughan [i.vaug...@neath-porttalbot.gov.uk]
Sent: Monday, January 12, 2009 10:34 AM
To: cf-talk
Subject: Active Directory - Getting a  users Accountname

Hi

How do you query a logged in domain users networkID/accountname via
Coldfusion.

I would like CF to pick up automatically a users domain networkID and
then set this as a variable to query against another database, although
at the moment I am using a CFDUMP just to see the result.

This is what I have at the moment, and I am getting the error below

Variable SAMACCOUNTNAME is undefined.

Any ideas?

CODE SNIPPET---

cfset StartOU=dc=domain, dc=co,dc=uk


cfldap action=query
name=adresult
attributes = sAMAccountName,dn, cn,sn,givenName,password, mail,ou
start=#StartOU#
scope=subtree
filter=samaccountName=#samaccountName#
server=server
port=389
username=username
password=password

/head

body

cfdump var=#sAMAccountName#

---


Regards,

Ian




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

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


RE: Active Directory - Getting a users Accountname

2009-01-12 Thread Dawson, Michael
If you are using Windows authentication security, it will be available
as cgi.auth_user.

It may be different, depending on your web server.  CFDUMP the cgi scope
to be sure.

Mike 

-Original Message-
From: Ian Vaughan [mailto:i.vaug...@neath-porttalbot.gov.uk] 
Sent: Monday, January 12, 2009 9:34 AM
To: cf-talk
Subject: Active Directory - Getting a users Accountname

Hi

How do you query a logged in domain users networkID/accountname via
Coldfusion.

I would like CF to pick up automatically a users domain networkID and
then set this as a variable to query against another database, although
at the moment I am using a CFDUMP just to see the result. 

This is what I have at the moment, and I am getting the error below

Variable SAMACCOUNTNAME is undefined.

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

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


RE: Active Directory - Getting a users Accountname

2009-01-12 Thread Dawson, Michael
Also, watch out for possible legal values that users pass in.

They can enter:

username
domain\username
domain/username
usern...@domain.com

You will need to strip off anything that is not the username before you
use it in your CFLDAP filter, if you are filtering on sAMAccountName.

If they type usern...@domain.com, you can filter on userPrincipalName.

However, I usually just strip everything except the username.

Mike 

-Original Message-
From: Ian Vaughan [mailto:i.vaug...@neath-porttalbot.gov.uk] 
Sent: Monday, January 12, 2009 9:34 AM
To: cf-talk
Subject: Active Directory - Getting a users Accountname

Hi

How do you query a logged in domain users networkID/accountname via
Coldfusion.

I would like CF to pick up automatically a users domain networkID and
then set this as a variable to query against another database, although
at the moment I am using a CFDUMP just to see the result. 

This is what I have at the moment, and I am getting the error below

Variable SAMACCOUNTNAME is undefined.

Any ideas?

CODE SNIPPET---

cfset StartOU=dc=domain, dc=co,dc=uk


cfldap action=query
name=adresult
attributes = sAMAccountName,dn, cn,sn,givenName,password, mail,ou
start=#StartOU#
scope=subtree
filter=samaccountName=#samaccountName#
server=server
port=389
username=username
password=password

/head

body

cfdump var=#sAMAccountName#

---


Regards,

Ian




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

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


cf and asterisk voip

2009-01-12 Thread Chad Gray
Has anyone tried tapping into Asterisk with CF?

I would like to look at building a manager interface or a page that at least 
displays what phone lines are being used or not used.

Any code tips or examples would be appreciated.

Thanks!


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

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


RE: Active Directory - Getting a users Accountname

2009-01-12 Thread Ian Vaughan
Hi Mike

It is using Windows authentication security but on a thin client device
not an actual PC

Then following just brings back a blank page?

pcfoutput#cgi.auth_user#/cfoutput/p

Ian


-Original Message-
From: Dawson, Michael [mailto:m...@evansville.edu] 
Sent: 12 January 2009 16:20
To: cf-talk
Subject: RE: Active Directory - Getting a users Accountname

If you are using Windows authentication security, it will be available
as cgi.auth_user.

It may be different, depending on your web server.  CFDUMP the cgi scope
to be sure.

Mike 

-Original Message-
From: Ian Vaughan [mailto:i.vaug...@neath-porttalbot.gov.uk] 
Sent: Monday, January 12, 2009 9:34 AM
To: cf-talk
Subject: Active Directory - Getting a users Accountname

Hi

How do you query a logged in domain users networkID/accountname via
Coldfusion.

I would like CF to pick up automatically a users domain networkID and
then set this as a variable to query against another database, although
at the moment I am using a CFDUMP just to see the result. 

This is what I have at the moment, and I am getting the error below

Variable SAMACCOUNTNAME is undefined.



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

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


Re: Using JCaptcha and FreeTTS to embed captcha and audio for the visually impaired

2009-01-12 Thread Peter Donahue
Good morning everyone,

No amount of audio will help an individual who is both blind and deaf.

Peter Donahue


- Original Message - 
From: cf coder mailinglistid2...@yahoo.com
To: cf-talk cf-talk@houseoffusion.com
Sent: Monday, January 12, 2009 8:35 AM
Subject: Re: Using JCaptcha and FreeTTS to embed captcha and audio for the 
visually impaired


Hi Sam,

Thank you for your post. I have copied the files FreeTTS.jar file to my 
standalone ColdFusion installation folder: C:\CFusionMX7\lib\freetts.jar. 
I restarted ColdFusion and the jar file is now showing up in the class-path 
which is good. I can dump the methods in the FreeTTS class like this:
cfset freettsObj = CreateObject(java, com.sun.speech.freetts.FreeTTS)/
cfdump var=#freettsObj#cfabort

Please follow this link to see the list of classes and packages. 
http://freetts.sourceforge.net/javadoc/index.html

I'm getting somewhere but I don't know how to invokve the textToSpeech() 
method of the FreeTTS class. Basically, I want to pass a string to this 
function (the text that the captch randomly generates) and to convert this 
text to speeach/voice. When I get an error when I try to call this method in 
my code:
cfset freettsObj.textToSpeech(randomStr) /

The system has attempted to use an undefined value, which usually indicates 
a programming error, either in your code or some system code.

Null Pointers are another name for undefined values.

Any ideas?



 Hi everybody,
application specific jar files usually go in

webapps/application_name/web-inf/lib

Sam



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

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


Re: Using JCaptcha and FreeTTS to embed captcha and audio for the visually impaired

2009-01-12 Thread Peter Donahue
Good afternoon again everyone,

Email verification is a much better alternative as it permits those who 
use all types of access technology systems to gain access to secured Web and 
application content.

Peter Donahue


- Original Message - 
From: Dave Watts dwa...@figleaf.com
To: cf-talk cf-talk@houseoffusion.com
Sent: Monday, January 12, 2009 8:40 AM
Subject: Re: Using JCaptcha and FreeTTS to embed captcha and audio for the 
visually impaired


 I am hoping someone could provide me with some help in implementing this 
 on my
 application. I am running ColdFusion 7 on a Windows Server. I have been 
 asked to display
 a image and audio captcha in my form. I've visited both the JCpatcha and 
 FreeTTS
 websites.

I would recommend that you avoid implementing CAPTCHAs at all. That's
probably not the answer you're looking for, but they're terrible
solutions from an accessibility perspective. Instead, you might look
at something like CFFormProtect (http://cfformprotect.riaforge.org/),
which lets you block spammers just as effectively without the
accessibility problems of CAPTCHAs.

Your client may have specifically requested a CAPTCHA, but ideally the
developer should recommend alternative solutions when those solutions
are clearly superior.

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

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



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

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


Re: cf and asterisk voip

2009-01-12 Thread Ryan Stille
Chad I would start by looking at how the flash panel (from asternic.org) 
works, I think it has a Perl backend that talks AGI to asterisk.  I 
think AGI works all through pipes, so that will be hard to do with CF.  
I think you'll need to reach down into Java to do it.

-Ryan

Chad Gray wrote:
 Has anyone tried tapping into Asterisk with CF?

 I would like to look at building a manager interface or a page that at least 
 displays what phone lines are being used or not used.

 Any code tips or examples would be appreciated.

 Thanks!
   



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

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


RE: cf and asterisk voip

2009-01-12 Thread Chad Gray
Thanks for the info Ryan.

I found one small chunk of code using PHP and they appear to be using the 
fsockopen function in PHP that opens an socket connection.  I don't know much 
about PHP though.

http://www.telephreak.org/code/basic/

I will keep playing with it and see what I can figure out.



 -Original Message-
 From: Ryan Stille [mailto:r...@cfwebtools.com]
 Sent: Monday, January 12, 2009 12:15 PM
 To: cf-talk
 Subject: Re: cf and asterisk voip
 
 Chad I would start by looking at how the flash panel (from asternic.org)
 works, I think it has a Perl backend that talks AGI to asterisk.  I
 think AGI works all through pipes, so that will be hard to do with CF.
 I think you'll need to reach down into Java to do it.
 
 -Ryan
 
 Chad Gray wrote:
  Has anyone tried tapping into Asterisk with CF?
 
  I would like to look at building a manager interface or a page that at
 least displays what phone lines are being used or not used.
 
  Any code tips or examples would be appreciated.
 
  Thanks!
 
 
 
 
 

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

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


Re: Is it possible to reference a cfc method using ajax?

2009-01-12 Thread Cutter (CFRelated)
That depends on the function's attributes. The returnFormat argument 
will automatically serialize the ColdFusion datatype into a JSON object. 
I suggest that anyone using it should play with the returns a bit to see 
what comes back for the different CF datatypes. Most things are fairly 
standard, with the exception of Adobe's implementation of returning a 
query. Adobe's implementation provides for a much smaller data return, 
but it isn't in the standard format used by most other app servers, so 
it requires a small bit of client-side parsing to get the intended 
result. Nothing painful, just important to know the difference. I've 
written a CFQueryReader object for Ext, to parse CF query returns for 
use with Ext components:

http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com

Dawson, Michael wrote:
 I don't even want to know what value that method would return.
 
 mike 
 
 -Original Message-
 From: Raymond Camden [mailto:rcam...@gmail.com] 
 Sent: Sunday, January 11, 2009 9:44 PM
 To: cf-talk
 Subject: Re: Is it possible to reference a cfc method using ajax?
 
 Don't forget that in CF8, you can convert a result to JSON over the
 wire. So if some CFC, let's call it, um, nose, had a method, pick, that
 returned an array, if you did an Ajax call to
 
 nose.cfc?method=pickreturnFormat=json
 
 The returnFormat argument will tell the CFC to JSON encode the result.
 So there is no need to write a special method for the Ajax call.
 
 

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

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


ColdFusion 8.0.1 Kills our Apache

2009-01-12 Thread Ian Skinner
We just installed ColdFusion 801 64bit on a brand new Solaris server.  
The install did not properly configure the Apache web server to connect 
to ColdFusion.  When we manually ran the wsconfig tool, the connection 
is made but then Apache will no longer serve up any content, ColdFusion, 
HTML or plain text.  If we stop the JRun4 cfusion server, Apache starts 
serving up standard content.  Of course it no longer serves up 
ColdFusion files.

We can not find anything out of the ordinary, but it just does not seem 
to work.  Anybody got any ideas on what we can do to track down and|or 
resolve this problem?


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

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


RE: Active Directory - Getting a users Accountname

2009-01-12 Thread Dawson, Michael
Regardless of the device (PC, thin client, phone), if you are using
Windows Basic Authentication, it probably brings back a
username/password in the CGI scope.

Dump the entire CGI scope and see if you can find the username/password
values.

Are you using a different type of authentication such as NT
Challenge/Response or Digest?

Mike

-Original Message-
From: Ian Vaughan [mailto:i.vaug...@neath-porttalbot.gov.uk] 
Sent: Monday, January 12, 2009 11:09 AM
To: cf-talk
Subject: RE: Active Directory - Getting a users Accountname

Hi Mike

It is using Windows authentication security but on a thin client device
not an actual PC

Then following just brings back a blank page?

pcfoutput#cgi.auth_user#/cfoutput/p

Ian


-Original Message-
From: Dawson, Michael [mailto:m...@evansville.edu]
Sent: 12 January 2009 16:20
To: cf-talk
Subject: RE: Active Directory - Getting a users Accountname

If you are using Windows authentication security, it will be available
as cgi.auth_user.

It may be different, depending on your web server.  CFDUMP the cgi scope
to be sure.

Mike 

-Original Message-
From: Ian Vaughan [mailto:i.vaug...@neath-porttalbot.gov.uk]
Sent: Monday, January 12, 2009 9:34 AM
To: cf-talk
Subject: Active Directory - Getting a users Accountname

Hi

How do you query a logged in domain users networkID/accountname via
Coldfusion.

I would like CF to pick up automatically a users domain networkID and
then set this as a variable to query against another database, although
at the moment I am using a CFDUMP just to see the result. 

This is what I have at the moment, and I am getting the error below

Variable SAMACCOUNTNAME is undefined.





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

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


RE: Is it possible to reference a cfc method using ajax?

2009-01-12 Thread Rick Faircloth
Good to know...thanks, Cutter...

Rick

 -Original Message-
 From: Cutter (CFRelated) [mailto:cold.fus...@cutterscrossing.com]
 Sent: Monday, January 12, 2009 12:30 PM
 To: cf-talk
 Subject: Re: Is it possible to reference a cfc method using ajax?
 
 That depends on the function's attributes. The returnFormat argument
 will automatically serialize the ColdFusion datatype into a JSON object.
 I suggest that anyone using it should play with the returns a bit to see
 what comes back for the different CF datatypes. Most things are fairly
 standard, with the exception of Adobe's implementation of returning a
 query. Adobe's implementation provides for a much smaller data return,
 but it isn't in the standard format used by most other app servers, so
 it requires a small bit of client-side parsing to get the intended
 result. Nothing painful, just important to know the difference. I've
 written a CFQueryReader object for Ext, to parse CF query returns for
 use with Ext components:
 
 http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader
 
 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer
 
 Co-Author of Learning Ext JS
 http://www.packtpub.com/learning-ext-js/book
 _
 http://blog.cutterscrossing.com
 
 Dawson, Michael wrote:
  I don't even want to know what value that method would return.
 
  mike
 
  -Original Message-
  From: Raymond Camden [mailto:rcam...@gmail.com]
  Sent: Sunday, January 11, 2009 9:44 PM
  To: cf-talk
  Subject: Re: Is it possible to reference a cfc method using ajax?
 
  Don't forget that in CF8, you can convert a result to JSON over the
  wire. So if some CFC, let's call it, um, nose, had a method, pick, that
  returned an array, if you did an Ajax call to
 
  nose.cfc?method=pickreturnFormat=json
 
  The returnFormat argument will tell the CFC to JSON encode the result.
  So there is no need to write a special method for the Ajax call.
 
 
 
 

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

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


Re: Is it possible to reference a cfc method using ajax?

2009-01-12 Thread Dave Watts
  Don't forget that in CF8, you can convert a result to JSON over the
   wire. So if some CFC, let's call it, um, nose, had a method, pick, that
   returned an array, if you did an Ajax call to
  
   nose.cfc?method=pickreturnFormat=json ...
 
  I don't even want to know what value that method would return.

 That depends on the function's attributes.

Cutter, I think you missed Mike's point, although I think it's clear
that the resultset would be ... elastic.

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

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

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

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


Re: ColdFusion 8.0.1 Kills our Apache

2009-01-12 Thread Dave Watts
 We just installed ColdFusion 801 64bit on a brand new Solaris server.
 The install did not properly configure the Apache web server to connect
 to ColdFusion.  When we manually ran the wsconfig tool, the connection
 is made but then Apache will no longer serve up any content, ColdFusion,
 HTML or plain text.  If we stop the JRun4 cfusion server, Apache starts
 serving up standard content.  Of course it no longer serves up
 ColdFusion files.

What version of Apache? Is it also 64-bit? When you start it, do you
get any error messages within the shell?

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

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

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

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


Re: ColdFusion 8.0.1 Kills our Apache

2009-01-12 Thread Jordan Michaels
Sounds like an Apache connector issue. You'll want to double check that
your version of Solaris and Apache are supported by the CF Installer.

If you've got your heart set on your current config, you may end up
needing to compile the connector by hand for your particular system.
Adobe was cool enough to think of situations like this before-hand and
does offer compilable source code for their adapter just for situations
like this.

Props to Adobe for being forward-thinking in that regard. Very few
companies would do that.

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Adobe Solution Provider


Ian Skinner wrote:
 We just installed ColdFusion 801 64bit on a brand new Solaris server.  
 The install did not properly configure the Apache web server to connect 
 to ColdFusion.  When we manually ran the wsconfig tool, the connection 
 is made but then Apache will no longer serve up any content, ColdFusion, 
 HTML or plain text.  If we stop the JRun4 cfusion server, Apache starts 
 serving up standard content.  Of course it no longer serves up 
 ColdFusion files.
 
 We can not find anything out of the ordinary, but it just does not seem 
 to work.  Anybody got any ideas on what we can do to track down and|or 
 resolve this problem?
 
 
 

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

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


Re: ColdFusion 8.0.1 Kills our Apache

2009-01-12 Thread Ian Skinner
Jordan Michaels wrote:
 Sounds like an Apache connector issue. You'll want to double check that
 your version of Solaris and Apache are supported by the CF Installer.

Any hints or pointers to information in what is involved in manually 
compiling the ws configuration?  We apparently have Solaris 5.10 which 
came with Apache 2.0.63.  According to Adobe's ColdFusion 8 system 
requirements page, they support Apache 2.0.43 and 2.2 on Solaris 64bit.

Is this the source of our headache?


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

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


Inconsistent cfmail behavior

2009-01-12 Thread Victor Moore
Hi,

I have a CF8 dev server and production server (both with the same
version 8,0,1,195765 and the latest code)

When sending an html format email using the dev server the email is
sent ok, while on the production server the email being sent out has:
MIME-Version: 1.0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 7bit
X-Mailer: ColdFusion 8 Application Server

at the top

I have checked the settings in Admin also and can't find anything
different between the two servers.

Also the br on the dev server are properly converted to new lines
while on the production  server they show as text in the email and as
a result the email format is all screwed up.

Any pointer are appreciated.

Thanks
Victor

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

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


Re: programming guidance, cftree

2009-01-12 Thread s. isaac dealey
 sent the code, data and xsl sheet to you via email.

Thanks Sam, I got them... Haven't had a chance to look at them yet...
been busy preparing for a move. Hopefully soon. :)

-- 
s. isaac dealey  ^  new epoch
 isn't it time for a change? 
 ph: 781.769.0723

http://onTap.riaforge.org/blog



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

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


Re: ColdFusion 8.0.1 Kills our Apache

2009-01-12 Thread Jordan Michaels
It's a bit out-dated, but here's the info:

http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_18572#Apache

---excerpt---
Where is the Apache connector source located and how can I compile my
own Apache EAPI connector?
For ColdFusion MX Updater Release 3 or higher, the code and compile
instructions are included incf_root/runtime/lib/wsconfig.jar in the
/connectors/src/ApacheModule.zip file. See ApacheBuildInstructions.txt
in the ApacheModule.zip.
---excerpt---

I am not certain if this still applies to CF8, but it may be something
similar.

Regarding your version of Apache and Solaris, I wouldn't think that such
a minor version number change could cause such an obvious problem, but I
wouldn't rule it out.

Also, as Dave suggested, check for errors both from the console and in
the apache logs. It may be something as simple as an incorrect path. ;)


Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
Open BlueDragon Steering Committee
Adobe Solution Provider


Ian Skinner wrote:
 Jordan Michaels wrote:
 Sounds like an Apache connector issue. You'll want to double check that
 your version of Solaris and Apache are supported by the CF Installer.
 
 Any hints or pointers to information in what is involved in manually 
 compiling the ws configuration?  We apparently have Solaris 5.10 which 
 came with Apache 2.0.63.  According to Adobe's ColdFusion 8 system 
 requirements page, they support Apache 2.0.43 and 2.2 on Solaris 64bit.
 
 Is this the source of our headache?
 
 
 

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

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


Is it possible to use a CF variable in jQuery?

2009-01-12 Thread Rick Faircloth
$('#input_cfoutput#mls_number#/cfoutput').show()...

or

var mls_number = cfoutput#mls_number#/cfoutput

$('#input_' + mls_number).show()...

or

???

Rick


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

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


Re: Dynamic Path

2009-01-12 Thread Keith McGee
thank you Breadcrumbs worked perfectly.

Keith 

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

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


RE: Is it possible to use a CF variable in jQuery?

2009-01-12 Thread Andy Matthews
Yes it is. Remember that jQuery code executes after the page is fully loaded
in the browser. 

-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Monday, January 12, 2009 12:47 PM
To: cf-talk
Subject: Is it possible to use a CF variable in jQuery?

$('#input_cfoutput#mls_number#/cfoutput').show()...

or

var mls_number = cfoutput#mls_number#/cfoutput

$('#input_' + mls_number).show()...

or

???

Rick




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

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


Re: Is it possible to use a CF variable in jQuery?

2009-01-12 Thread Charlie Griefer
erm... did you try? :)

On Mon, Jan 12, 2009 at 10:46 AM, Rick Faircloth
r...@whitestonemedia.comwrote:

 $('#input_cfoutput#mls_number#/cfoutput').show()...

 or

 var mls_number = cfoutput#mls_number#/cfoutput

 $('#input_' + mls_number).show()...

 or

 ???

 Rick


 

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

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


Re: Is it possible to use a CF variable in jQuery?

2009-01-12 Thread Jason Fisher
Yes, should work just fine.  To keep the code clean and safe, you could use 
jsStringFormat(), too:

var mls_input = cfoutput##input_#jsStringFormat(mls_number)#;/cfoutput

$(mls_input).show()...


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

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


RE: Is it possible to use a CF variable in jQuery?

2009-01-12 Thread Rick Faircloth
Thought I'd ask from the fount of wisdom first,
rather than use half-an-hour with trials... :o)


 -Original Message-
 From: Charlie Griefer [mailto:charlie.grie...@gmail.com]
 Sent: Monday, January 12, 2009 1:55 PM
 To: cf-talk
 Subject: Re: Is it possible to use a CF variable in jQuery?
 
 erm... did you try? :)
 
 On Mon, Jan 12, 2009 at 10:46 AM, Rick Faircloth
 r...@whitestonemedia.comwrote:
 
  $('#input_cfoutput#mls_number#/cfoutput').show()...
 
  or
 
  var mls_number = cfoutput#mls_number#/cfoutput
 
  $('#input_' + mls_number).show()...
 
  or
 
  ???
 
  Rick
 
 
 
 
 

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

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


RE: Is it possible to use a CF variable in jQuery?

2009-01-12 Thread Rick Faircloth
Thanks, Jason, and everyone...

Rick

 -Original Message-
 From: Jason Fisher [mailto:ja...@wanax.com]
 Sent: Monday, January 12, 2009 1:53 PM
 To: cf-talk
 Subject: Re: Is it possible to use a CF variable in jQuery?
 
 Yes, should work just fine.  To keep the code clean and safe, you could use 
 jsStringFormat(), too:
 
 var mls_input = cfoutput##input_#jsStringFormat(mls_number)#;/cfoutput
 
 $(mls_input).show()...
 
 
 

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

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


Re: Is it possible to use a CF variable in jQuery?

2009-01-12 Thread Charlie Griefer
half an hour?  really?  the time it took to type the code into the e-mail
could have been typed into the IDE and run.
unless it took you a half hour to compose the e-mail.  in which case... my
condolences :)

On Mon, Jan 12, 2009 at 11:00 AM, Rick Faircloth
r...@whitestonemedia.comwrote:

 Thought I'd ask from the fount of wisdom first,
 rather than use half-an-hour with trials... :o)


  -Original Message-
  From: Charlie Griefer [mailto:charlie.grie...@gmail.com]
  Sent: Monday, January 12, 2009 1:55 PM
  To: cf-talk
  Subject: Re: Is it possible to use a CF variable in jQuery?
 
  erm... did you try? :)
 
  On Mon, Jan 12, 2009 at 10:46 AM, Rick Faircloth
  r...@whitestonemedia.comwrote:
 
   $('#input_cfoutput#mls_number#/cfoutput').show()...
  
   or
  
   var mls_number = cfoutput#mls_number#/cfoutput
  
   $('#input_' + mls_number).show()...
  
   or
  
   ???
  
   Rick
  
  
  
 
 

 

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

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


Re: Spry Auto Suggest values selection - HELP!

2009-01-12 Thread Peter Kim
any suggestions, anyone?

 I have a Spry Auto suggest widget where I select a list of names from 
 a cfc object which generates an XML data set. What I need to do is to 
 add those selections to a list below the widget input box, so as I 
 search in the auto suggest list and select a name John Doe, for 
 example, I need to be able to add John Doe to the list below, as I 
 continue selecting more names, until I got everyone. I would also need 
 to be able to delete names from my list of selections and add new ones. 
 Does Spry do that or perhaps Scriptaculous? 
 
 How can I easily do that? 
 
 Any suggestions are appreciated. THANKS!


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

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


Re: Is it possible to reference a cfc method using ajax?

2009-01-12 Thread Cutter (CFRelated)
Haha! So busy reading the thread as a whole that I missed the full 
context of that particular postOne of the few examples where I would 
have rather had one of Ben Nadel's examples over Ray's (Sorry bro)...

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com

Dave Watts wrote:
 Don't forget that in CF8, you can convert a result to JSON over the
 wire. So if some CFC, let's call it, um, nose, had a method, pick, that
 returned an array, if you did an Ajax call to

 nose.cfc?method=pickreturnFormat=json ...
 I don't even want to know what value that method would return.
 That depends on the function's attributes.
 
 Cutter, I think you missed Mike's point, although I think it's clear
 that the resultset would be ... elastic.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 
 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 
 

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

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


Load testing tools.

2009-01-12 Thread Robert Rawlins
Afternoon guys,

Any good recommendations on load testing tools? I’m just looking for 
something that’ll make HTTP requests to a bunch of given URLS on set 
intervals for a period of time, monitoring response times etc. I’ve used a 
couple in the past but forget which, thought I’d get your suggestions.

Obviously I'm quite partial to something free or open source ;-)

Cheers,

Rob



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

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


Re: ColdFusion 8.0.1 Kills our Apache

2009-01-12 Thread Ian Skinner
Jordan Michaels wrote:
 It's a bit out-dated, but here's the info:

 http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_18572#Apache

Thanks, I finally found that and this 
[http://www.zrinity.com/developers/apache/apache2cfmx.cfm].  With these 
two resources, we where able to get to the ApacheBuildInstruction.txt 
file inside of the wsconfig.jar file.  After bashing our heads because 
of a typo in the line to compile the connector we successfully compiled 
the connector and our Apache is not properly serving up ColdFusion 
templates.

Our only remaining issue is how to configure Apache so that different 
VirturalHosts use different ColdFusion instances in our multi-home 
configuration.  It does not work the same as I am familiar with from the 
Windows flavors.

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

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


Re: Is it possible to reference a cfc method using ajax?

2009-01-12 Thread Raymond Camden
Steve, I've admittedly only skimmed your blog post, but could your
problem with CF's JSON encode of Queries be fixed with the queryFormat
attribute? It's another 'special' attribute like returnFormat.


On Mon, Jan 12, 2009 at 11:30 AM, Cutter (CFRelated)
cold.fus...@cutterscrossing.com wrote:
 That depends on the function's attributes. The returnFormat argument
 will automatically serialize the ColdFusion datatype into a JSON object.
 I suggest that anyone using it should play with the returns a bit to see
 what comes back for the different CF datatypes. Most things are fairly
 standard, with the exception of Adobe's implementation of returning a
 query. Adobe's implementation provides for a much smaller data return,
 but it isn't in the standard format used by most other app servers, so
 it requires a small bit of client-side parsing to get the intended
 result. Nothing painful, just important to know the difference. I've
 written a CFQueryReader object for Ext, to parse CF query returns for
 use with Ext components:

 http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader


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

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


RE: Is it possible to reference a cfc method using ajax?

2009-01-12 Thread Rick Faircloth
Most people use their most common personal experiences when
creating examples... :o)

I must say, however, that Dave's comment stuck with me for awhile...

 -Original Message-
 From: Cutter (CFRelated) [mailto:cold.fus...@cutterscrossing.com]
 Sent: Monday, January 12, 2009 2:21 PM
 To: cf-talk
 Subject: Re: Is it possible to reference a cfc method using ajax?
 
 Haha! So busy reading the thread as a whole that I missed the full
 context of that particular postOne of the few examples where I would
 have rather had one of Ben Nadel's examples over Ray's (Sorry bro)...
 



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

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


Re: Is it possible to reference a cfc method using ajax?

2009-01-12 Thread Cutter (CFRelated)
Ray, (Please, call me Cutter.) I want to say I looked at that once 
before, but I just don't remember. At the time, I was also looking to 
write an implementation that would take the JSON return at it's base 
level, without additional attributes. I'll take another look at it 
though, it may be that the non-default may work better...

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com

Raymond Camden wrote:
 Steve, I've admittedly only skimmed your blog post, but could your
 problem with CF's JSON encode of Queries be fixed with the queryFormat
 attribute? It's another 'special' attribute like returnFormat.
 
 
 On Mon, Jan 12, 2009 at 11:30 AM, Cutter (CFRelated)
 cold.fus...@cutterscrossing.com wrote:
 That depends on the function's attributes. The returnFormat argument
 will automatically serialize the ColdFusion datatype into a JSON object.
 I suggest that anyone using it should play with the returns a bit to see
 what comes back for the different CF datatypes. Most things are fairly
 standard, with the exception of Adobe's implementation of returning a
 query. Adobe's implementation provides for a much smaller data return,
 but it isn't in the standard format used by most other app servers, so
 it requires a small bit of client-side parsing to get the intended
 result. Nothing painful, just important to know the difference. I've
 written a CFQueryReader object for Ext, to parse CF query returns for
 use with Ext components:

 http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader

 
 

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

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


Invalid method Code length

2009-01-12 Thread Jon F
I get an error in CF while trying to create an object for a CFC. The error is 
as follows:

Invalid method Code length 74584 in class file [filename]

This file has just over 4200 lines of code and 2200 lines in the largest of 4 
functions. When I remove the function, I can create the object just fine. 
Removing lines from the large function also allows it to work.

A Google search indicates there is a Java limitation of 64k, but that answer 
doesn't satisfy me. 

Does anyone know another way in which I can resolve this issue? 

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

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


Re: Inconsistent cfmail behavior

2009-01-12 Thread Jochem van Dieten
On Mon, Jan 12, 2009 at 7:29 PM, Victor Moore wrote:
 When sending an html format email using the dev server the email is
 sent ok, while on the production server the email being sent out has:
 MIME-Version: 1.0
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: 7bit
 X-Mailer: ColdFusion 8 Application Server

 at the top

What is the header line directly above this?

Jochem

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

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


Re: Invalid method Code length

2009-01-12 Thread Barney Boisvert
You'll have to break your method up in to smaller methods.  CFSWITCH
used to have this same problem, but Adobe (or maybe Macromedia)
changed the compiler to work around it.  CFC's also are exempt, but
function bodies apparently aren't.  Make sure you submit a bug to
Adobe on it as well:
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

On a related note, if you have a 2200-line method, chances are good
it's time for some refactoring.  There aren't hard boundaries on
reasonable method length, but I rarely leave methods longer than a
screen unrefactored.

cheers,
barneyb

On Mon, Jan 12, 2009 at 12:34 PM, Jon F j...@thefid.com wrote:
 I get an error in CF while trying to create an object for a CFC. The error is 
 as follows:

 Invalid method Code length 74584 in class file [filename]

 This file has just over 4200 lines of code and 2200 lines in the largest of 4 
 functions. When I remove the function, I can create the object just fine. 
 Removing lines from the large function also allows it to work.

 A Google search indicates there is a Java limitation of 64k, but that answer 
 doesn't satisfy me.

 Does anyone know another way in which I can resolve this issue?

 

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

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


Re: Invalid method Code length

2009-01-12 Thread Dave Watts
 A Google search indicates there is a Java limitation of 64k, but that answer 
 doesn't satisfy
 me.

I'm not sure what you mean by it not satisfying you. You can't
create a function larger than that. There is no workaround, other than
writing two or more smaller functions.

Each function is compiled into a single class, which is why a single
CFC could exceed the limit, as long as no individual function within
that CFC exceeds the limit. But it is definitely a hard limit, and you
can't do anything about that other than refactor your code.

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

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

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

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


Re: Invalid method Code length

2009-01-12 Thread Dave Watts
 Make sure you submit a bug to Adobe on it as well:
 http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

Do you really consider that a bug? Given that there has to be some
maximum size for an individual program, where should that line be
drawn?

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

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

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

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


Re: Load testing tools.

2009-01-12 Thread Mark Mandel
I got quite into jMeter, but its a bit finicky to get into.

Once you understand how it works, tho', its very flexible (and free!)

Mark

On Tue, Jan 13, 2009 at 6:28 AM, Robert Rawlins 
robert.rawl...@thinkbluemedia.co.uk wrote:

 Afternoon guys,

 Any good recommendations on load testing tools? I'm just looking for
 something that'll make HTTP requests to a bunch of given URLS on set
 intervals for a period of time, monitoring response times etc. I've used a
 couple in the past but forget which, thought I'd get your suggestions.

 Obviously I'm quite partial to something free or open source ;-)

 Cheers,

 Rob



 

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

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


Re: Invalid method Code length

2009-01-12 Thread Barney Boisvert
Yes, I think it's a bug.  Just because Java has a hard limit doesn't
mean that CFML should.  CFML is NOT Java.  An analogous bug was fixed
in CFSWITCH's compilation (the _factorN classes), and I don't see a
fundamental difference here.  Obviously the underlying Java is
different, but from the CFML side it's the same.  They're both JVM
limitations affecting your CFML's structure.

To put that another way, I've never seen any documented limits imposed
on my CFML code's size, and Macromedia/Adobe have addressed issues
that created undocumented limits.

As to where the max-size line should be drawn, it's fairly irrelevant,
but it's totally unreasonable to let the JVM's trickle up to CFML.
All the more because there's no way to know what your CFML compiles
down to in bytecode, so there's no way to predict where the JVM's hard
limits will actually be in terms of your CFML.  If there were a
reliable way to do that, then inheriting the JVM's limitations
implicitly would be somewhat reasonable, even if it'd be rather
cumbersome.  With Java, you can predict the line because the
Java-bytecode transformation is documented, but with CF it's a black
box.  For OBD, and soon Railo, it isn't a black box so they have a bit
of an argument in their favor.

cheers,
barneyb

On Mon, Jan 12, 2009 at 1:19 PM, Dave Watts dwa...@figleaf.com wrote:
 Make sure you submit a bug to Adobe on it as well:
 http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

 Do you really consider that a bug? Given that there has to be some
 maximum size for an individual program, where should that line be
 drawn?

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

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

 

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

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


Re: Invalid method Code length

2009-01-12 Thread Dave Watts
 Yes, I think it's a bug.  Just because Java has a hard limit doesn't
 mean that CFML should.  CFML is NOT Java.  An analogous bug was fixed
 in CFSWITCH's compilation (the _factorN classes), and I don't see a
 fundamental difference here.  Obviously the underlying Java is
 different, but from the CFML side it's the same.  They're both JVM
 limitations affecting your CFML's structure.

 To put that another way, I've never seen any documented limits imposed
 on my CFML code's size, and Macromedia/Adobe have addressed issues
 that created undocumented limits.

 As to where the max-size line should be drawn, it's fairly irrelevant,
 but it's totally unreasonable to let the JVM's trickle up to CFML.

Well, ok, would you consider this bug resolved if Adobe stated in the
documentation that you can't have a CF file larger than x KB?

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

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

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

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


Re: Is it possible to reference a cfc method using ajax?

2009-01-12 Thread Raymond Camden
Cool - sorry Cutter. ;)

FYI, the ability to generate 2 styles of json from a query is also
available in serializeJSON, and can also be used within deserialize as
well.

On Mon, Jan 12, 2009 at 2:07 PM, Cutter (CFRelated)
cold.fus...@cutterscrossing.com wrote:
 Ray, (Please, call me Cutter.) I want to say I looked at that once
 before, but I just don't remember. At the time, I was also looking to
 write an implementation that would take the JSON return at it's base
 level, without additional attributes. I'll take another look at it
 though, it may be that the non-default may work better...

 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer

 Co-Author of Learning Ext JS
 http://www.packtpub.com/learning-ext-js/book
 _
 http://blog.cutterscrossing.com

 Raymond Camden wrote:
 Steve, I've admittedly only skimmed your blog post, but could your
 problem with CF's JSON encode of Queries be fixed with the queryFormat
 attribute? It's another 'special' attribute like returnFormat.


 On Mon, Jan 12, 2009 at 11:30 AM, Cutter (CFRelated)
 cold.fus...@cutterscrossing.com wrote:
 That depends on the function's attributes. The returnFormat argument
 will automatically serialize the ColdFusion datatype into a JSON object.
 I suggest that anyone using it should play with the returns a bit to see
 what comes back for the different CF datatypes. Most things are fairly
 standard, with the exception of Adobe's implementation of returning a
 query. Adobe's implementation provides for a much smaller data return,
 but it isn't in the standard format used by most other app servers, so
 it requires a small bit of client-side parsing to get the intended
 result. Nothing painful, just important to know the difference. I've
 written a CFQueryReader object for Ext, to parse CF query returns for
 use with Ext components:

 http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader




 

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

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


Re: Newbie tripping over SQL Single Quotes

2009-01-12 Thread Peter Boughton
Something else that should be pointed out about the example...

UPDATE Members
SET PW = cfqueryparam value=#Encrypt(form.PW,EncryptKey)# /
WHERE Member_ID = cfqueryparam value=#form.Member_ID#
cfsqltype=cf_sql_integer /

Simple one first - there's no cfsqltype attribute on the first cfqp. Although 
it defaults to varchar, this is one of the times when being explicit is a good 
idea.

But, more importantly that than: even with cfqueryparam, the code may be 
insecure.

Why? Well, cfqueryparam will ensure that form.member_id is an Integer, but it 
wont check it is the correct id.

If this is a user-level password changing screen, and you're passing member_id 
from the form, you're allowing any user to change the password of any other 
user - simply by editing the form html (which is trivial in any modern browser) 
to specify a different value.

If this is an admin screen, it's not an issue, since an admin might be allowed 
to edit anyone's password anyway, but if it's not then you should instead be 
storing the current user's id in the session scope, and using that, rather than 
passing it around with the form.



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

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


Re: Invalid method Code length

2009-01-12 Thread Barney Boisvert
On Mon, Jan 12, 2009 at 1:36 PM, Dave Watts dwa...@figleaf.com wrote:
 Well, ok, would you consider this bug resolved if Adobe stated in the
 documentation that you can't have a CF file larger than x KB?

That doesn't address the issue.  The issue is that a bytecode method
can't be longer than X, and there's no way to translate between CFML
and bytecode.  If it was possible, the statement would still have to
be a CF UDF or CFC method larger than x KB, because as Jon's example
shows, you can have multiple things in one file that add up to greater
than the limit.  But even that's not a very good measure because I
always 'waste' two characters per CFSET (the  / for a self-close),
so my limit would be higher that for people who don't.

cheers,
barneyb

On Mon, Jan 12, 2009 at 1:36 PM, Dave Watts dwa...@figleaf.com wrote:
 Yes, I think it's a bug.  Just because Java has a hard limit doesn't
 mean that CFML should.  CFML is NOT Java.  An analogous bug was fixed
 in CFSWITCH's compilation (the _factorN classes), and I don't see a
 fundamental difference here.  Obviously the underlying Java is
 different, but from the CFML side it's the same.  They're both JVM
 limitations affecting your CFML's structure.

 To put that another way, I've never seen any documented limits imposed
 on my CFML code's size, and Macromedia/Adobe have addressed issues
 that created undocumented limits.

 As to where the max-size line should be drawn, it's fairly irrelevant,
 but it's totally unreasonable to let the JVM's trickle up to CFML.

 Well, ok, would you consider this bug resolved if Adobe stated in the
 documentation that you can't have a CF file larger than x KB?

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

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

 

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

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


Re: Is it possible to reference a cfc method using ajax?

2009-01-12 Thread Cutter (CFRelated)
Yeah, I have to look at the two formats again (I think the attribute is 
queryFormat), but I personally like the default format over the standard 
format. It has a much smaller footprint, with a lot smaller bit set 
going over the wire. If I remember correctly though, even the alternate 
format doesn't conform to what most consider the 'standard' format. I'll 
have to play around with it tonight...

Steve Cutter Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer

Co-Author of Learning Ext JS
http://www.packtpub.com/learning-ext-js/book
_
http://blog.cutterscrossing.com

Raymond Camden wrote:
 Cool - sorry Cutter. ;)
 
 FYI, the ability to generate 2 styles of json from a query is also
 available in serializeJSON, and can also be used within deserialize as
 well.
 
 On Mon, Jan 12, 2009 at 2:07 PM, Cutter (CFRelated)
 cold.fus...@cutterscrossing.com wrote:
 Ray, (Please, call me Cutter.) I want to say I looked at that once
 before, but I just don't remember. At the time, I was also looking to
 write an implementation that would take the JSON return at it's base
 level, without additional attributes. I'll take another look at it
 though, it may be that the non-default may work better...

 Steve Cutter Blades
 Adobe Certified Professional
 Advanced Macromedia ColdFusion MX 7 Developer

 Co-Author of Learning Ext JS
 http://www.packtpub.com/learning-ext-js/book
 _
 http://blog.cutterscrossing.com

 Raymond Camden wrote:
 Steve, I've admittedly only skimmed your blog post, but could your
 problem with CF's JSON encode of Queries be fixed with the queryFormat
 attribute? It's another 'special' attribute like returnFormat.


 On Mon, Jan 12, 2009 at 11:30 AM, Cutter (CFRelated)
 cold.fus...@cutterscrossing.com wrote:
 That depends on the function's attributes. The returnFormat argument
 will automatically serialize the ColdFusion datatype into a JSON object.
 I suggest that anyone using it should play with the returns a bit to see
 what comes back for the different CF datatypes. Most things are fairly
 standard, with the exception of Adobe's implementation of returning a
 query. Adobe's implementation provides for a much smaller data return,
 but it isn't in the standard format used by most other app servers, so
 it requires a small bit of client-side parsing to get the intended
 result. Nothing painful, just important to know the difference. I've
 written a CFQueryReader object for Ext, to parse CF query returns for
 use with Ext components:

 http://blog.cutterscrossing.com/index.cfm/2008/11/20/ColdFusion-Query-Json-Data-Reader



 
 

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

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


Re: Invalid method Code length

2009-01-12 Thread Dave Watts
 Well, ok, would you consider this bug resolved if Adobe stated in the
 documentation that you can't have a CF file larger than x KB?

 That doesn't address the issue.  The issue is that a bytecode method
 can't be longer than X, and there's no way to translate between CFML
 and bytecode.  If it was possible, the statement would still have to
 be a CF UDF or CFC method larger than x KB, because as Jon's example
 shows, you can have multiple things in one file that add up to greater
 than the limit.  But even that's not a very good measure because I
 always 'waste' two characters per CFSET (the  / for a self-close),
 so my limit would be higher that for people who don't.

Well, no, it certainly could address the issue. If the maximum size
for a Java class is 64KB, and the smallest amount of CF code that
would generate that was, say, 32KB, Adobe could just say, don't write
any CF files greater than 32KB or they might not work. It wouldn't be
necessary to know how much bytecode would be generated by a specific
file, it would only be necessary to know the worst case scenario, so
to speak.

All I'm asking is, given some arbitrary number, would you accept that
as a bug fix?

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

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

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

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


Re: Invalid method Code length

2009-01-12 Thread Barney Boisvert
 All I'm asking is, given some arbitrary number, would you accept that
 as a bug fix?

No, that just makes it a known issue.  But it's really irrelevant.  If
I ever write 250-line method/UDF, I'll be quite surprised, let alone a
2000-line one.  I've got plenty of files that are far larger than
that, but no single method/UDF that is even close to approaching that
size.

cheers,
barneyb

On Mon, Jan 12, 2009 at 2:04 PM, Dave Watts dwa...@figleaf.com wrote:
 Well, ok, would you consider this bug resolved if Adobe stated in the
 documentation that you can't have a CF file larger than x KB?

 That doesn't address the issue.  The issue is that a bytecode method
 can't be longer than X, and there's no way to translate between CFML
 and bytecode.  If it was possible, the statement would still have to
 be a CF UDF or CFC method larger than x KB, because as Jon's example
 shows, you can have multiple things in one file that add up to greater
 than the limit.  But even that's not a very good measure because I
 always 'waste' two characters per CFSET (the  / for a self-close),
 so my limit would be higher that for people who don't.

 Well, no, it certainly could address the issue. If the maximum size
 for a Java class is 64KB, and the smallest amount of CF code that
 would generate that was, say, 32KB, Adobe could just say, don't write
 any CF files greater than 32KB or they might not work. It wouldn't be
 necessary to know how much bytecode would be generated by a specific
 file, it would only be necessary to know the worst case scenario, so
 to speak.

 All I'm asking is, given some arbitrary number, would you accept that
 as a bug fix?

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

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

 

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

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


RE: Load testing tools.

2009-01-12 Thread Jaime Metcher
+1 for jMeter.  It's not *too* finicky...

Coupla nice features worth mentioning:
1. You can set it to either remember or forget cookies.  With cookies on,
you can script a whole login sequence and use that as your load test.  With
cookies off, you can stress your server with 50,000 live sessions in the
blinking of an eye.
2. The test scripts can read parameters out of a comma-delimited file.  If
you point the above-mentioned login sequence at a file containing a bunch of
user accounts, you can get the worst of both worlds and have 50,000 live
*authenticated* sessions. 

Kind of fun.  Your server *will* crash - but do you know when? (cue spooky
music).

Jaime

 -Original Message-
 From: Mark Mandel [mailto:mark.man...@gmail.com] 
 Sent: Tuesday, 13 January 2009 7:23 AM
 To: cf-talk
 Subject: Re: Load testing tools.
 
 I got quite into jMeter, but its a bit finicky to get into.
 
 Once you understand how it works, tho', its very flexible (and free!)
 
 Mark
 
 On Tue, Jan 13, 2009 at 6:28 AM, Robert Rawlins  
 robert.rawl...@thinkbluemedia.co.uk wrote:
 
  Afternoon guys,
 
  Any good recommendations on load testing tools? I'm just 
 looking for 
  something that'll make HTTP requests to a bunch of given 
 URLS on set 
  intervals for a period of time, monitoring response times etc. I've 
  used a couple in the past but forget which, thought I'd get 
 your suggestions.
 
  Obviously I'm quite partial to something free or open source ;-)
 
  Cheers,
 
  Rob
 
 
 
  
 
 

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

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


[FWD: RE: Invalid method Code length]

2009-01-12 Thread brad
I don't really know much about how the aforementioned black box works,
but I wonder if it would be possible for CF to somehow break up your
code and split it into multiple classes behind the scenes.
I don't know if I am in the bug camp on this one, but isn't CF's job
to keep us from having to know about/deal with the Java stuff that
happens behind the scenes?  
Even though I don't condone giant files of doom in your code, it seems
CF has failed to abstract us from what is happening by not finding a way
to gracefully work around the JVM's quirks.

But then again, I generally expect too much from CF.  :)  I seem to
remember a thread where Dave W and I argued about whether it was fair
that very deep recursion would throw a Java stack over flow error.

~Brad

    Original Message 
 Subject: Re: Invalid method Code length
 From: Barney Boisvert bboisv...@gmail.com
 Date: Mon, January 12, 2009 3:43 pm
 To: cf-talk cf-talk@houseoffusion.com
 
 On Mon, Jan 12, 2009 at 1:36 PM, Dave Watts dwa...@figleaf.com wrote:
  Well, ok, would you consider this bug resolved if Adobe stated in the
  documentation that you can't have a CF file larger than x KB?
 
 That doesn't address the issue. The issue is that a bytecode method
 can't be longer than X, and there's no way to translate between CFML
 and bytecode. If it was possible, the statement would still have to
 be a CF UDF or CFC method larger than x KB, because as Jon's example
 shows, you can have multiple things in one file that add up to greater
 than the limit. But even that's not a very good measure because I
 always 'waste' two characters per CFSET (the  / for a self-close),
 so my limit would be higher that for people who don't.
 
 
 



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

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


Re: Is it possible to use a CF variable in jQuery?

2009-01-12 Thread Tony Bentley
The question to further this discussion is to ask, is it a good idea to mix 
coldfusion markup and javascript?

What is a better approach? 

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

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


RE: Is it possible to use a CF variable in jQuery?

2009-01-12 Thread brad
To me, that's kind of like asking Is it a good idea to use a database
in my application?

If you need something to happen on the server, then use CF.  If you need
processing to happen on the client, use JavaScript.
If you want the JavaScript to be dependent on the outcome of CF code,
then you dynamically produce the necessary JS in your CF or write
JavaScript capable of executing appropriately based on the return of an
Ajax call.

It's not really that one is better, it's that they both have their
place.

~Brad

 Original Message 
Subject: Re: Is it possible to use a CF variable in jQuery?
From: Tony Bentley t...@tonybentley.com
Date: Mon, January 12, 2009 4:41 pm
To: cf-talk cf-talk@houseoffusion.com

The question to further this discussion is to ask, is it a good idea to
mix coldfusion markup and javascript?

What is a better approach? 



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

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


Re: Load testing tools.

2009-01-12 Thread Will Tomlinson
I played around with WebLoad and thought it was pretty easy to use. 

http://www.webload.org/

Will 

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

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


Re: Is it possible to use a CF variable in jQuery?

2009-01-12 Thread Gerald Guido
   is it a good idea to mix coldfusion markup and javascript?

Try doing it with PHP or mixing and escaping it with another C-ish/ECMA type
language... say cfscript.

The goggles... they do NOTHING

G!


On Mon, Jan 12, 2009 at 5:41 PM, Tony Bentley t...@tonybentley.com wrote:

 The question to further this discussion is to ask,

 What is a better approach?

 

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

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


Re: CFPDF + Text .... how do you change the font size?

2009-01-12 Thread Mike Chabot
Jeff,
If the font size is smaller than you would like it might be due to the
automatic scaling done to try to fit text into the available space.
Just a guess. Can you make the font smaller but not larger? Are you
using inline styles? Posting a code snippet might help.

-Mike Chabot

On Mon, Jan 12, 2009 at 9:57 AM, Jeff Chastain li...@admentus.com wrote:
 Hopefully this is very simple and I am just missing something here, but I am
 trying to insert some text watermark-style onto a PDF document using the new
 text attribute that was added to the CFPDF tag in 8.0.1.  The problem I am
 having is that I cannot seem to affect the size of the font being rendered.
 I can change the font family, style, color, etc. all using CSS styles, but
 the font size never seems to apply.



 Can anybody offer any suggestions here?



 Thanks

 -- Jeff

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

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


Re: Is it possible to use a CF variable in jQuery?

2009-01-12 Thread Shannon Peevey
I found that you need to include javascript w cf variables in the .cfm
file, and not a .js file (for obvious reasons).

Speeves

On 1/12/09, Gerald Guido gerald.gu...@gmail.com wrote:
is it a good idea to mix coldfusion markup and javascript?

 Try doing it with PHP or mixing and escaping it with another C-ish/ECMA type
 language... say cfscript.

 The goggles... they do NOTHING

 G!


 On Mon, Jan 12, 2009 at 5:41 PM, Tony Bentley t...@tonybentley.com wrote:

 The question to further this discussion is to ask,

 What is a better approach?



 

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

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


Re: Can't get 301 permanent redirect to work properly

2009-01-12 Thread Scott Doc
Thanks Paul and Brad,
Looks like I'll have to ask the host about this one. I have no idea what 
CRLFCRLF is nor anything about web proxies or IIS.. a bit beyond me. And yes, 
the downloading the source must be why it is rendered as text in the browser. 
Strange indeed.
Cheers


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

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


Re: Can't get 301 permanent redirect to work properly

2009-01-12 Thread Dave Watts
 Looks like I'll have to ask the host about this one. I have no idea what 
 CRLFCRLF is nor
 anything about web proxies or IIS.. a bit beyond me. And yes, the downloading 
 the source
 must be why it is rendered as text in the browser. Strange indeed.

CRLF is carriage return and line feed. Your server isn't sending
back the initial carriage return, according to Brad's Fiddler trace.

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

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

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

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


Re: Inconsistent cfmail behavior

2009-01-12 Thread Victor Moore
This app is used for client communication. It basically creates an
email based on existing form fields and sends it to the client.
The funny part is that it seems it's happening only with that
particular form (not the form it self, just the information entered on
form).

The line above is:
contact info and remove jack

which actually was supposed to be part of the subject line. Something
strange is happening here. The good thing is that it seems it's not
related to the server

Thanks
Victor

On Mon, Jan 12, 2009 at 3:37 PM, Jochem van Dieten joch...@gmail.com wrote:
 On Mon, Jan 12, 2009 at 7:29 PM, Victor Moore wrote:
 When sending an html format email using the dev server the email is
 sent ok, while on the production server the email being sent out has:
 MIME-Version: 1.0
 Content-Type: text/html; charset=UTF-8
 Content-Transfer-Encoding: 7bit
 X-Mailer: ColdFusion 8 Application Server

 at the top

 What is the header line directly above this?

 Jochem

 

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

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


Re: Inconsistent cfmail behavior

2009-01-12 Thread Jochem van Dieten
On Tue, Jan 13, 2009 at 5:35 AM, Victor Moore wrote:
 The line above is:
 contact info and remove jack

 which actually was supposed to be part of the subject line.

Make sure you remove all carriage returns and linebreaks from your
subject (do a replace on the variable) and try again.

Jochem

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

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


need some database advice

2009-01-12 Thread Mike Soultanian
Hey Everyone,
I have a project and I'm trying to figure out the best way to go about 
it.  What I want to do is keep track of what songs a user has listened 
to and what songs they haven't.  The first thing that comes to mind is a 
table with song IDs and a table with user IDs and a join table between 
the two that keeps track of what song a user has listened to.  With 
50,000 songs, that could be a lot of records in the join table.  Is 
there a more efficient way to tackle this kind of problem?  I don't 
think I'll have that many users, but even if I had ten users, that table 
could be pretty big.

I'm trying to think if there are any tricks such as whether to store if 
a user has listened to a track or store if they haven't.  I plan to have 
a button called mark all as listened, which could empty the join table 
of any records pertaining to that user if I was storing the tracks they 
didn't listen to.  So the join table would initially start out very 
large for a user and then drop down... that's just one thought I had.

If anyone has any tricks, I'd appreciate your advise!

Thanks,
Mike

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

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


Re: need some database advice

2009-01-12 Thread Barney Boisvert
Databases are good at storing data.  With proper indexing, a few  
million rows is nothing.  I'd store tracks listened to.  Make the  
model simpler, speed user creation, and odds are most people are going  
to listen to less than 25K distinct songs so it'll require less rows  
too.

---
Barney Boisvert
bboisv...@gmail.com
http://www.barneyb.com

On Jan 12, 2009, at 11:37 PM, Mike Soultanian msoul...@csulb.edu  
wrote:

 Hey Everyone,
 I have a project and I'm trying to figure out the best way to go about
 it.  What I want to do is keep track of what songs a user has listened
 to and what songs they haven't.  The first thing that comes to mind  
 is a
 table with song IDs and a table with user IDs and a join table between
 the two that keeps track of what song a user has listened to.  With
 50,000 songs, that could be a lot of records in the join table.  Is
 there a more efficient way to tackle this kind of problem?  I don't
 think I'll have that many users, but even if I had ten users, that  
 table
 could be pretty big.

 I'm trying to think if there are any tricks such as whether to store  
 if
 a user has listened to a track or store if they haven't.  I plan to  
 have
 a button called mark all as listened, which could empty the join  
 table
 of any records pertaining to that user if I was storing the tracks  
 they
 didn't listen to.  So the join table would initially start out very
 large for a user and then drop down... that's just one thought I had.

 If anyone has any tricks, I'd appreciate your advise!

 Thanks,
 Mike

 

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

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