RE: CF Blog software

2010-11-10 Thread Russ Michaels

Thus the previous discussion on sandbox security etc

-Original Message-
From: Sean Corfield [mailto:seancorfi...@gmail.com] 
Sent: 10 November 2010 00:37
To: cf-talk
Subject: Re: CF Blog software


Mango Blog is great but it won't run on a ColdFusion host that restricts CFC
creation...

On Tue, Nov 9, 2010 at 3:27 PM, AJ Mercer ajmer...@gmail.com wrote:


 I am running mangoBlog on Railo
http://www.mangoblog.org/
 http://www.mangoblog.org/






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


Strange issue with cfquery

2010-11-10 Thread Nkonye Oyewusi

Hello,

I am running CF 8 on an Oracle database. I'm trying to pass in a SQL script as 
a string and keep getting the error: ORA-00907: missing right parenthesis.

This is what I'm trying to do:
cfset sendMethod = createObject(component,components.sendMethods)
cfset sendMethod.init(dsn = request.selecteddns)
cfset sql=INSERT INTO nkonye_associated_person  /
cfset sql = sql  chr(10)  chr(13)  
(ADDED_DATE,ASSOCIATED_PERSON_ID,IS_REMOVED,PATIENT_ID,PROFILE_ID,ADDRESS_LINE1,ADDRESS_LINE2,ADDRESS_LINE3,ADDRESS_LINE4,ADDRESS_LINE5,ASSOCIATED_RELATIONSHIP_ID,ASSOCIATED_RELATIONSHIP_OTHER,DAYS_ATTENDED,EMAIL,FIRST_LANGUAGE_ID,FORENAME,FREQUENCY_OF_CARE,INTERPRETER_REQUIRED_ID,IS_KEYHOLDER,MODIFIED_DATE,ORGANISATION_NAME,OTHER_COMMUNICATION_ISSUE,POSTCODE,PREFERRED_LANGUAGE_ID,PREFERRED_METHOD_ID,SURNAME)
 /
cfset sql = sql  chr(10)  chr(13)  VALUES  (to_date('2009-10-07 
13:07:28','-mm-dd hh24:mi:ss'),8,0,17,142,'122 Cleland 
hospital',null,null,null,null,1014,null,null,null,null,'Borlotti',null,null,null,null,null,null,null,null,null,'Bean')
 /

cfset sendMethod.doRunScript(#sql#) /

The doRunScript method is as follows:
cffunction name=doRunScript access=public 
   cfargument name=sql type=string required=yes
  
   cfquery datasource=#request.selecteddns#
   #sql#
   /cfquery
  
/cffunction

Is there a workaround for this?

Thanks,

Nikki 

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


Re: Strange issue with cfquery

2010-11-10 Thread I. Addoum.

try and change the following

cfquery datasource=#request.selecteddns#
   #PreserveSingleQuotes(sql)#
/cfquery







From: Nkonye Oyewusi noyew...@hotmail.com
To: cf-talk cf-talk@houseoffusion.com
Sent: Wed, November 10, 2010 11:33:27 AM
Subject: Strange issue with cfquery


Hello,

I am running CF 8 on an Oracle database. I'm trying to pass in a SQL script as 
a 
string and keep getting the error: ORA-00907: missing right parenthesis.

This is what I'm trying to do:
cfset sendMethod = createObject(component,components.sendMethods)
cfset sendMethod.init(dsn = request.selecteddns)
cfset sql=INSERT INTO nkonye_associated_person  /
cfset sql = sql  chr(10)  chr(13)  
(ADDED_DATE,ASSOCIATED_PERSON_ID,IS_REMOVED,PATIENT_ID,PROFILE_ID,ADDRESS_LINE1,ADDRESS_LINE2,ADDRESS_LINE3,ADDRESS_LINE4,ADDRESS_LINE5,ASSOCIATED_RELATIONSHIP_ID,ASSOCIATED_RELATIONSHIP_OTHER,DAYS_ATTENDED,EMAIL,FIRST_LANGUAGE_ID,FORENAME,FREQUENCY_OF_CARE,INTERPRETER_REQUIRED_ID,IS_KEYHOLDER,MODIFIED_DATE,ORGANISATION_NAME,OTHER_COMMUNICATION_ISSUE,POSTCODE,PREFERRED_LANGUAGE_ID,PREFERRED_METHOD_ID,SURNAME)
 /
cfset sql = sql  chr(10)  chr(13)  VALUES  (to_date('2009-10-07 
13:07:28','-mm-dd hh24:mi:ss'),8,0,17,142,'122 Cleland 
hospital',null,null,null,null,1014,null,null,null,null,'Borlotti',null,null,null,null,null,null,null,null,null,'Bean')
 /

cfset sendMethod.doRunScript(#sql#) /

The doRunScript method is as follows:
cffunction name=doRunScript access=public 
   cfargument name=sql type=string required=yes
  
   cfquery datasource=#request.selecteddns#
   #sql#
   /cfquery
  
/cffunction

Is there a workaround for this?

Thanks,

Nikki 



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


Re: CFFILE ERROR

2010-11-10 Thread Monique Boea

I found it:

maxContentID is the name of the query

#ExpandPath('/contentFiles/#*maxContentID*#_#language#.cfm')#

This works

#ExpandPath('/contentFiles/#*maxContentID**.contentID*#_#language#.cfm')#




On Tue, Nov 9, 2010 at 8:47 PM, Dave Watts dwa...@figleaf.com wrote:


  I have a file that is creating a CF template using the following code:
 
 cfloop Query=languages
   cffile
   action = write
 *file =
  #ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')# *
 output = #Evaluate( #language#TEXT )#
 nameconflict=overwrite
  /cfloop
 
  It used to work fine but all of a sudden the red line is causing the
  following error:
 
  *Complex object types cannot be converted to simple values.
  The expression has requested a variable or an intermediate expression
 result
  as a simple value. However, the result cannot be converted to a simple
  value. Simple values are strings, numbers, boolean values, and date/time
  values. Queries, arrays, and COM objects are examples of complex values.
 
  The most likely cause of the error is that you tried to use a complex
 value
  as a simple one. For example, you tried to use a query variable in a cfif
  tag. *
 
  Any suggestions?

 First, I'd suggest that you not use nested hashes. Instead of this:

 #ExpandPath('/contentFiles/#maxContentID#_#language#.cfm')#

 use this:

 #ExpandPath('/contentFiles/'  maxContentID  '_'  language  '.cfm')#

 However, I don't think that's the cause of your problem. Instead, I
 suspect that one of your variables contains something other than what
 you think it does. Use CFDUMP to see what's in those variables.

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

 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our tr

 

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


Re: Ajax + 2 functions = error

2010-11-10 Thread Jessica Kennedy

ok, tried this, it failed on the var scoped line instead of the structAppend 
line... same error message though.

I have an ajax handler method which instantiates all of my ajax calls-- also 
with an access=public.  very strange.  I am able to call other methods, but I 
have to create an object for the cfc and then call the method within it.  seems 
ridiculous to do this for the component my code is already in.


try replacing your failing line with these 2:

var stuctTest = getTest();
structAppend(returnData, structTest);

Azadi


On 10/11/2010 09:56 , Jessica Kennedy wrote:
 structAppend(returnData, getTest());//failing here! 

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


RE: cfheader/cfheader not working as expected

2010-11-10 Thread DURETTE, STEVEN J (ATTASIAIT)

I don't remember if you posted any code, but I get by this with the
following:

cfset Variables.contVal = inline;filename=#Variables.myFileName# /
cfheader value=#Variables.contVal# name=content-disposition
cfcontent type=#Variables.myType# reset=Yes
variable=#Variables.mySpreadsheetVar#

Before All that I build the spreadsheet and put it into
Variables.mySpreadsheetVar. 

What version of CF are you on? Are you using HTML, CFSpreadsheet, or
some other method to generate the spreadsheet? 

I had an issue similar to what you had before, but I started building
the spreadsheets using POI then when they get pushed to the browser they
are in true spreadsheet format instead of html pretending to be xls (or
xlsx).

Sometimes the browser would see the xls extension but would then check
the content and see html and act weirdly. By using the poi I not only
get rid of those problems but it also got rid of the Excel Not in the
same format popup.

If you can consider this option let me know and I may be able to help a
little.  Also, do you have access to the server itself? I upgraded the
POI that comes with ColdFusion to the latest version and I can do a lot
more extra stuff.

Steve


-Original Message-
From: Robert Gallagher [mailto:robert.gallag...@honeywell.com] 
Sent: Tuesday, November 09, 2010 5:35 PM
To: cf-talk
Subject: Re: cfheader/cfheader not working as expected


I truly understand what you're saying but how these things work it not
consistent which is frustrating.  What's really crazy is we have dozens
of Excel download links in our various apps like this example and some
work perfectly with value=inline but most have the undesirable
behavior (code name and read-only) which actually still works.  

Why inline provides the dialog box option of remembering the download
decision but using attachment does not give that option (at least in
IE) is very inconsistent but not surprising.  Since this is not earth
shattering I will chalk this up to browser inconsistency and move on.  



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


Re: slow cfquery cfqueryparam?

2010-11-10 Thread Jessica Kennedy

Hey, maybe try something like this?  I haven't tested this, but it should 
theoretically be faster

cfset sqlstring =  /
cfset questionIDLen = arrayLen(questionIDArray)!---put this in a variable so 
it doesn't re-evaluate 2200 times---
cfset questionIDCheck = 0
cfloop index=i from=2 to=#questionIDLen#
 !---remove if statement so it doesn't evaluate 2200 times either.---
 cfset questionIDCheck = isNumeric(questionIDArray[i]  
parentQuestionIDArray[i]  parentLevelArray[i])!---since all your params were 
checking for a numeric value, lump together and be sure they are all numeric.  
probably could use a regEx or other cffunctions to accomplish the same thing if 
this does not fit the bill---
 cfif questionIDCheck!---only add to sql string if it passes the numeric 
check. ---
  cfset sqlstring = 
'#sqlstring#,(#questionIDArray[i]#,#parentQuestionIDArray[i]#,#parentLevelArray[i]#)'
 /cfif
/cfloop
!---run query.  manually add first line since we didn't loop over it.---
cfquery name=insertData datasource=dbname 
INSERT INTO parentquestions
VALUES (cfqueryparam value=#questionIDArray[1]# cfsqltype=cf_sql_bigint 
maxlength=20,cfqueryparam value=#parentQuestionIDArray[1]# 
cfsqltype=cf_sql_bigint maxlength=20,cfqueryparam 
value=#parentLevelArray[1]# cfsqltype=cf_sql_bigint maxlength=20)
 #sqlstring#
/cfquery 

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


Re: CF Blog software

2010-11-10 Thread Gerald Guido

I am currently evaluating Amazon's EC3 free tier (613 megs ram, 10 gig HD
space and a single core 2.66GHz processor) and right now I have an instance
running on a bare bone Centos 5.4 64 bit install with Railo, Apache 2.2,
Tomcat, Mysql and WebMin and it is running like a top. I still have a couple
hundred megs of ram head room. This should be plenty to run a couple of low
traffic sites. I ran my blog (Blog cfc) and 5-6 other sites on Railo for a
couple of years with out a hiccup.

I am still evaluating and experimenting with it but I will probably make a
public copy of the AMI so others can try it out.

BTW, Amazon's free tier is for good for 1 year for new customers. After that
you can rent the instance for as low as $10 a month with a years lease.

http://aws.amazon.com/free/

G!

On Tue, Nov 9, 2010 at 11:35 AM, DURETTE, STEVEN J (ATTASIAIT) 
sd1...@att.com wrote:


 Hi all,



 So I haven't blogged in about a year because of different issues with my
 website provider...  Any how I'm looking to get my blog going again, but
 I don't know how I should proceed. I used to use blogcfc, but my
 provider restricts a bunch of tags (below).  Can anyone suggest which
 blog software might be good to use under these restrictions or if there
 are any work around  tutorials for the latest versions of blogging
 code?  I'd prefer to stick with something CF based.



 The restrictions I have are as follows:

 CF Tags not allowed:

 CFCOLLECTION

 CFCONTENT

 CFDUMP

 CFEXECUTE

 CFLOG

 CFOBJECT

 CFOBJECTCACHE

 CFREGISTRY



 CF Functions not allowed:

 SetProfileString

 CreateObject(COM)

 CreateObject(CORBA)

 CreateObject(JAVA)



 Thanks for your insights.

 Steve





 

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


Upgrading ColdFusion from MX 7 to 9 - Any Advice, Guidance, Best Practices, Etc?

2010-11-10 Thread Christian N. Abad

Fellow CF Zealots:

 

I'm in the process of having a new dedicated server being built by
Hosting.com (formerly HostMySite.com) that will be running, among other
things, ColdFusion 9.  Once the build is completed in the next couple days,
I will be systematically moving a few dozen websites from the existing box
running CF MX 7 to the new box running CF 9.

 

I'm looking for any type of input or feedback regarding any gotchas,
pitfalls, etc. that I should be aware of during the upgrade.

 

Also, does anyone have any type of best practices document, upgrade
guide or whitepaper that I could review?

 

Any help would be greatly appreciated; thank you so very much in advance!

 

Sincerely,

 

Christian N. Abad - President

 

Accessible Computing, Inc.

1210 McLaughlin Drive

Charlotte, NC 28212

http://www.AccessibleComputing.com

 

704.900.1825 (Direct Line)

li...@accessiblecomputing.com

 

 




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


RE: Upgrading ColdFusion from MX 7 to 9 - Any Advice, Guidance, Best Practices, Etc?

2010-11-10 Thread Russ Michaels

Make sure you have all the hotfixes and updates installed, there were a few
things that got screwed with CF9 functionality wise that have since been
fixed plus some security issues as well. Other than that I think you will be
pretty safe, we have not had any issues moving customers to CF9.


Regards
--
Russ Michaels
www.cfmldeveloper.com - free CFML hosting for developers
my blog: http://russ.michaels.me.uk/
skype: russmichaels



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


Re: slow cfquery cfqueryparam?

2010-11-10 Thread Will Tomlinson

 Hi,
 
 I am running the following cfquery which inserts a large amount of 
 rows into a table (approx 2200)

Just out of curiosity, where does your insert data originate from? 

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


Macromedia JRun CFusion Server doesn't start automatically

2010-11-10 Thread Claude Schnéegans

Hi, since I installed CF 9 on my desk top, I get this error evry time I open a 
CF page for the first time:

Server Error


The Macromedia application server(s) are unreachable.

If I look the services, I can see that the Macromedia JRun CFusion Server, 
although in automatic mode, is not running.
I start it manually, and then I can reload the page and it works.

Any reason why a service in automatic mode wont start automatically?

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


CF9 Content extraction from PDF / CFspreadsheet excel extraction

2010-11-10 Thread cfcom

Need to upload pdf's thru form post and have their text/images extracted and
put into database.
- if I upload a 10 page pdf will the extraction make logical page breaks and
formatting etc?

Also need to upload excel spreadsheets thru form post and extract their data
into db.
- need to extract data and post to cfchart

Has anyone been doing this with CF9 that can share feedback on how it worked
for them?

Thank you in advance.


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


Re: Macromedia JRun CFusion Server doesn't start automatically

2010-11-10 Thread Dave Watts

 Any reason why a service in automatic mode wont start automatically?

Sure. Services may have to wait for other services to release some
resource before they can start. You can fiddle around with the order
of service startup using the DependsOnService registry key.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

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


JQuery Ajax Error issue with Site-wide Error Handler

2010-11-10 Thread Donnie Carvajal

I have some Ajax running via jQuery and I also have a site-wide error handler 
running for ColdFusion.  When the coldfusion template is called via ajax and an 
error is thrown via cfthrow, the ajax error handler is not triggered, instead 
the ajax success handler is.  If I remove the site-wide error handler, the 
ajax error handler is triggered.  This particular system is on CF 5.5.

What is the status code that CF sets the requests to when the site-wide error 
handler is triggered?  I believe the ajax success handler looks for a 200 
status code.  Is there someway to set the status code in the site-wide error 
handler?

Thanks,

Donnie 

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


Re: wrap function question

2010-11-10 Thread Pete Freitag

According to the docs Wrap() uses the OS line separator which is different
on Unix/Mac and Windows. That might cause an issue because for unix it only
looks for \n but on windows it is probably looking for a \r\n.

So if you are on windows, and your example text only used \n to break lines,
then it would produce the results you got.

Try passing a true into the third argument to strip out existing new line
chars, or you might need to find / write a UDF if you want to preserve
existing line breaks.

Pete Freitag
http://foundeo.com/ - ColdFusion Consulting  Products
http://petefreitag.com/ - My Blog
http://hackmycf.com - Is your ColdFusion Server Secure?


On Tue, Nov 9, 2010 at 12:32 PM, Eric Roberts 
ow...@threeravensconsulting.com wrote:


 I am trying to use the cf wrap function and I am getting some odd results.
 Here is the text (entered in a text area...the line breaks shown are from
 hitting the enter key)

 Life is but a stopping place,
 A pause in what's to be.
 A resting place along the road,
 To sweet eternity.

 Here is the results of the text string after it is wrapped and put into an
 array.  Why would A be in a single line instead of part of the contents of
 line three and also notice the odd breaks with 4,5,6, and 7

 array
 1 Life is but a stopping place,
 2 A
 3 pause in what's to be.
 4 A resting
 5 place along the road,
 6 To sweet
 7 eternity.

 Should look like
 1. Life is but a stopping place,
 2. A pause in what's to be.
 3. A resting place along the road,
 4  To sweet eternity.

 here is the code that accomplishes the above.  Arguments.char_count=34 int
 his case.

 cfset variables.text.txtWrapped=wrap(variables.text.string,
 arguments.char_count)
cfset nol=listlen(variables.text.txtWrapped,#chr(10)#)
cfset variables.text.txtLines=arrayNew(1)
cfloop from=1 to=#nol# step=1 index=x
cfset variables.text.txtLines[x]=
 listgetat(variables.text.txtWrapped,x,#chr(10)#)
/cfloop

 Any ideas as to what i am doing wrong?


 

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


RE: JQuery Ajax Error issue with Site-wide Error Handler

2010-11-10 Thread Brook Davies

What I've done to work around a similar type of issue is create a return
structure that is always consistent from all ajax calls. The data returned
looks like this:

{
 data:'',
 err:{
  errmsg:''
 }
 ,
 success:true
}

Errors are caught on the server side, (via try/catch, or site wide handler)
and the data structure above is returned with an error message/object and
success is set to false. No errors, then success=true and the data object
holds the returned data. 

Client, side your application can either use the data returned, or handle
the error if success == false.  

Brook

-Original Message-
From: Donnie Carvajal [mailto:donnie.carva...@transformyx.com] 
Sent: November-10-10 10:47 AM
To: cf-talk
Subject: JQuery Ajax Error issue with Site-wide Error Handler


I have some Ajax running via jQuery and I also have a site-wide error
handler running for ColdFusion.  When the coldfusion template is called via
ajax and an error is thrown via cfthrow, the ajax error handler is not
triggered, instead the ajax success handler is.  If I remove the site-wide
error handler, the ajax error handler is triggered.  This particular
system is on CF 5.5.

What is the status code that CF sets the requests to when the site-wide
error handler is triggered?  I believe the ajax success handler looks for
a 200 status code.  Is there someway to set the status code in the site-wide
error handler?

Thanks,

Donnie 



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


Re: CF Blog software

2010-11-10 Thread Adrocknaphobia

Of course, if this is CF9, you can replace all the createObject() calls by
using the 'new' keyword. Sorry to be a walking advertisement, but ColdFusion
Builder refactoring will make that task very easy.

-Adam

On Tue, Nov 9, 2010 at 2:11 PM, Raymond Camden rcam...@gmail.com wrote:


 To Dave's suggestion of replacing createObject w/ cfinvoke - I believe
 (stress - believe) other BlogCFC users have done it in the past. It
 isn't officially supported by BlogCFC, Inc (aka me) but I believe it
 can be done.


 On Tue, Nov 9, 2010 at 12:59 PM, Alan Rother alan.rot...@gmail.com
 wrote:
 
  Ah, that does make sense. Thanks Dave!
 
  =]
 
  On Tue, Nov 9, 2010 at 11:56 AM, Dave Watts dwa...@figleaf.com wrote:
 
 
   I know all about CreateObject's security risks from a hosting
  perspective,
   but I've never heard of an issue with CFCONTENT (I'm not doubting you,
  I'm
   just curious what the issues are.)
 
  It can be used to download any file that the CF service has permission
  to access, including sensitive Windows files (assuming you're on
  Windows). By default, on Windows the CF service runs as SYSTEM, which
  has practically unrestricted access to everything. Even if CF is
  configured to use a less-privileged user account (as it should be as a
  matter of course) that user account will certainly have permission to
  read any files used by, say, other hosting clients.
 
  My assumption is that CFCONTENT can be sandboxed, but again I'm no
  expert on sandboxing.
 
  Dave Watts, CTO, Fig Leaf Software
  http://www.figleaf.com/
  http://training.figleaf.com/
 
  Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
  GSA Schedule, and provides the highest caliber vendor-authorized
  instruction at our training centers, online, or onsite.
 
 
 
 

 

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


RE: Macromedia JRun CFusion Server doesn't start automatically

2010-11-10 Thread Russ Michaels

There is also a delayed start option on windows 2008

-Original Message-
From: Dave Watts [mailto:dwa...@figleaf.com] 
Sent: 10 November 2010 18:38
To: cf-talk
Subject: Re: Macromedia JRun CFusion Server doesn't start automatically


 Any reason why a service in automatic mode wont start automatically?

Sure. Services may have to wait for other services to release some resource
before they can start. You can fiddle around with the order of service
startup using the DependsOnService registry key.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule,
and provides the highest caliber vendor-authorized instruction at our
training centers, online, or onsite.



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


Re: Upgrading ColdFusion from MX 7 to 9 - Any Advice, Guidance, Best Practices, Etc?

2010-11-10 Thread Adrocknaphobia

Josh Adams recently posted a collection of information on the topic.
http://blog.joshuaadams.com/index.cfm/2010/11/2/Upgrading-from-ColdFusion-MX-7-or-ColdFusion-8-to-ColdFusion-9

http://blog.joshuaadams.com/index.cfm/2010/11/2/Upgrading-from-ColdFusion-MX-7-or-ColdFusion-8-to-ColdFusion-9
-Adam

On Wed, Nov 10, 2010 at 10:47 AM, Russ Michaels r...@michaels.me.uk wrote:


 Make sure you have all the hotfixes and updates installed, there were a few
 things that got screwed with CF9 functionality wise that have since been
 fixed plus some security issues as well. Other than that I think you will
 be
 pretty safe, we have not had any issues moving customers to CF9.


 Regards
 --
 Russ Michaels
 www.cfmldeveloper.com - free CFML hosting for developers
 my blog: http://russ.michaels.me.uk/
 skype: russmichaels



 

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


Re: Ajax + 2 functions = error

2010-11-10 Thread Azadi Saryev

is your component cached in some persistent scope (session/application)?
it sounds like you have added the getTest() method after the component 
has been instantiated - and thus its instance has no idea about the 
getTest() method added later...

Azadi

On 10/11/2010 21:50 , Jessica Kennedy wrote:
 ok, tried this, it failed on the var scoped line instead of the structAppend 
 line... same error message though.

 I have an ajax handler method which instantiates all of my ajax calls-- also 
 with an access=public.  very strange.  I am able to call other methods, but 
 I have to create an object for the cfc and then call the method within it.  
 seems ridiculous to do this for the component my code is already in.


 try replacing your failing line with these 2:

 var stuctTest = getTest();
 structAppend(returnData, structTest);

 Azadi


 On 10/11/2010 09:56 , Jessica Kennedy wrote:
 structAppend(returnData, getTest());//failing here!
 

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


RE: CF Blog software

2010-11-10 Thread Russ Michaels

It would be a bit more complicated than that surely, as you are not just
replacing a word, you are replacing a function call and all its arguments
with a tag and all its parameters, and as each instance will not be the name
it doesn't seem like something you could easily automate.



-Original Message-
From: Adrocknaphobia [mailto:adrocknapho...@gmail.com] 
Sent: 10 November 2010 16:40
To: cf-talk
Subject: Re: CF Blog software


Of course, if this is CF9, you can replace all the createObject() calls by
using the 'new' keyword. Sorry to be a walking advertisement, but ColdFusion
Builder refactoring will make that task very easy.

-Adam

On Tue, Nov 9, 2010 at 2:11 PM, Raymond Camden rcam...@gmail.com wrote:


 To Dave's suggestion of replacing createObject w/ cfinvoke - I believe 
 (stress - believe) other BlogCFC users have done it in the past. It 
 isn't officially supported by BlogCFC, Inc (aka me) but I believe it 
 can be done.


 On Tue, Nov 9, 2010 at 12:59 PM, Alan Rother alan.rot...@gmail.com
 wrote:
 
  Ah, that does make sense. Thanks Dave!
 
  =]
 
  On Tue, Nov 9, 2010 at 11:56 AM, Dave Watts dwa...@figleaf.com wrote:
 
 
   I know all about CreateObject's security risks from a hosting
  perspective,
   but I've never heard of an issue with CFCONTENT (I'm not doubting 
   you,
  I'm
   just curious what the issues are.)
 
  It can be used to download any file that the CF service has 
  permission to access, including sensitive Windows files (assuming 
  you're on Windows). By default, on Windows the CF service runs as 
  SYSTEM, which has practically unrestricted access to everything. 
  Even if CF is configured to use a less-privileged user account (as 
  it should be as a matter of course) that user account will 
  certainly have permission to read any files used by, say, other hosting
clients.
 
  My assumption is that CFCONTENT can be sandboxed, but again I'm no 
  expert on sandboxing.
 
  Dave Watts, CTO, Fig Leaf Software
  http://www.figleaf.com/
  http://training.figleaf.com/
 
  Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA 
  Schedule, and provides the highest caliber vendor-authorized 
  instruction at our training centers, online, or onsite.
 
 
 
 

 



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


Re: Macromedia JRun CFusion Server doesn't start automatically

2010-11-10 Thread Claude Schnéegans

 There is also a delayed start option on windows 2008

I'm under XP.
I suspect there is some time limit problem, the JRun server taking too long to 
start.
But where can I set this time limit ?

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


Re: Macromedia JRun CFusion Server doesn't start automatically

2010-11-10 Thread Dave Watts

 I suspect there is some time limit problem, the JRun server taking too long 
 to start.
 But where can I set this time limit ?

http://support.microsoft.com/kb/824344

Scroll down to the part that begins:

3. When a service starts, the service communicates to the Service
Control Manager ...

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

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


Re: Macromedia JRun CFusion Server doesn't start automatically

2010-11-10 Thread Claude Schnéegans

 http://support.microsoft.com/kb/824344
 Scroll down to the part that begins:

I put a 60 sec. time limit, and so far, it works.
Thanks a lot.


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


Re: CF Blog software

2010-11-10 Thread Dave Watts

 It would be a bit more complicated than that surely, as you are not just
 replacing a word, you are replacing a function call and all its arguments
 with a tag and all its parameters, and as each instance will not be the name
 it doesn't seem like something you could easily automate.

Not necessarily so complicated:
http://davidmichaelkarr.blogspot.com/2008/10/reformat-generated-getterssetters-with.html

I don't see why the same basic mechanism can't be used to rewrite
CreateObject calls to new.

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

Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
GSA Schedule, and provides the highest caliber vendor-authorized
instruction at our training centers, online, or onsite.

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


Re: CF Blog software

2010-11-10 Thread Paul Kukiel

Actually we have a largish site hosted at CrystalTech with a partner and
have been having constant issues.

Paul Kukiel
http://blog.kukiel.net

On Wed, Nov 10, 2010 at 4:40 AM, Jason Fisher ja...@wanax.com wrote:


 +1 Ben's idea


 Some of those are reasonable, but CFCONTENT, CFDUMP, CreateObject()??  Go
 to CrystalTech for a few bucks a quarter or something.

 

 From: Ben Forta b...@forta.com
 Sent: Tuesday, November 09, 2010 11:37 AM
 To: cf-talk cf-talk@houseoffusion.com
 Subject: Re: CF Blog software

 Change hosting companies. Really.

 --- Ben

 (Sent from my Flash enabled Android device)

 On Nov 9, 2010 2:35 PM, DURETTE, STEVEN J (ATTASIAIT) sd1...@att.com
 wrote:

 Hi all,

 So I haven't blogged in about a year because of different issues with my
 website provider...  Any how I'm looking to get my blog going again, but
 I don't know how I should proceed. I used to use blogcfc, but my
 provider restricts a bunch of tags (below).  Can anyone suggest which
 blog software might be good to use under these restrictions or if there
 are any work around  tutorials for the latest versions of blogging
 code?  I'd prefer to stick with something CF based.

 The restrictions I have are as follows:

 CF Tags not allowed:

 CFCOLLECTION

 CFCONTENT

 CFDUMP

 CFEXECUTE

 CFLOG

 CFOBJECT

 CFOBJECTCACHE

 CFREGISTRY

 CF Functions not allowed:

 SetProfileString

 CreateObject(COM)

 CreateObject(CORBA)

 CreateObject(JAVA)

 Thanks for your insights.

 Steve



 

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


Re: CF (8.0.0) performance vs PHP (5)

2010-11-10 Thread Larry Lyons

I ran a variant of John's code using the rand function for the string length 
and got fairly similar results as before.

It may well depend on the size and number of the strings, since the
main inefficiencies can be piling up of immutable strings and
subsequent GC. And like they say, there's lies, damn lies, and
statistics...

d


 

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


Re: slow cfquery cfqueryparam?

2010-11-10 Thread Jochem van Dieten

On Wed, Nov 10, 2010 at 12:40 AM, Richard White wrote:
 [query with 6600 cfqueryparams taking 9 seconds vs. 1 for plain SQL]

 In understand that adding the cfqueryparam is adding approx 6600 validations, 
 however would it really be the cause of slowing this query down so much?

cfqueryparam is not adding 6600 validations. Each use of cfqueryparam
is causing one variable to be set on the database side. So without
cfqueryparam you are sending 1 SQL statement to the JDBC driver, with
cfqueryparam you are first sending a prepare command with the
'structure' of the query, then the command to create an instance of
it, then 6600 commands to set the 6600 parameters, then the command to
execute it. I am not familiar with the wire protocol for MySQL and can
not look into the propietary JDBC driver Adobe uses for MySQL, but I
would not be surprised if this were implemented as a synchronous
protocol and there is significant roundtripping between the database
server and ColdFusion.

You are testing the pathological worst case scenario for cfqueryparam.
In addition to the overhead from specifiying the variables in separate
statements, you add the overhead for preparing the query and caching
the execution plan, and then you only execute it once.


But anyway, do you really care? If this is part of a scheduled job
that takes a few hours anyway ...

Jochem


-- 
Jochem van Dieten
http://jochem.vandieten.net/

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


RE: CF Blog software

2010-11-10 Thread Andrew Scott

You could with regex support, and I can't recall if refactoring supports it
or not..

Regards,
Andrew Scott
http://www.andyscott.id.au/


 -Original Message-
 From: Russ Michaels [mailto:r...@michaels.me.uk]
 Sent: Thursday, 11 November 2010 6:24 AM
 To: cf-talk
 Subject: RE: CF Blog software
 
 
 It would be a bit more complicated than that surely, as you are not just
 replacing a word, you are replacing a function call and all its arguments
with a
 tag and all its parameters, and as each instance will not be the name it
 doesn't seem like something you could easily automate.
 


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


CFMAIL Speed Issue

2010-11-10 Thread Jake Churchill

I'm having an odd issue with CFMAIL that comes and goes and Im not seeing a
reason for it.

Environment:
2 load balanced 64-bit windows 2003 servers with 8GB RAM and 2GHz Quad-core
processors running CF8

I have a mailer process which processes 1000 messages at a time and
alternates between the 2 web servers for relay (modifying the server
attribute of the cfmail tag).  Normally, this process can handle 1000
messages in under 15 seconds.  From time to time (now being one of those
times) it will take 3+ minutes to generate them.

From what I can tell, the bottleneck is in the generating phase (where it
actually creates the messages and drops them in the Spool directory).  The
background process which actually sends the email files off to the relay
servers seems to be running normal.

I've tried setting the spooler to the disk or to memory and the speed is the
same (maybe slightly faster via the memory setting, but still takes several
minutes to complete 1000 messages).  I've got the following jvm settings:

*java.args=-server -Xms3072m -Xmx5120m -Dsun.io.useCanonCaches=false
-XX:MaxPermSize=192m -XX:+UseParallelGC -Xbatch*

Frankly I don't really know what some of that does but I know we are using
up a crapload of memory which I assume would be a good thing.

There's nothing else really running on these servers except IIS and CF8.
I'm at a loss right now.  Any ideas would be helpful.

Thanks!

-Jake


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


Re: CF Blog software

2010-11-10 Thread Sean Corfield

On Wed, Nov 10, 2010 at 8:39 AM, Adrocknaphobia
adrocknapho...@gmail.com wrote:
 Of course, if this is CF9, you can replace all the createObject() calls by
 using the 'new' keyword.

Interesting. So if cfobject and createObject() are completed blocked
by sandbox security on CF9 Enterprise, new will still work? Good to
know.

 Sorry to be a walking advertisement, but ColdFusion
 Builder refactoring will make that task very easy.

ColdFusion Builder is an excellent product. I have it open 24x7x365
and use it for all my CFML editing. After seeing the sneak peek of
Storm at the ColdFusion Unconference at MAX, I'm really looking
forward to upgrading when that ships!

I'm bummed it won't run on Linux tho'... My Unbuntu netbook arrives
next week and I shall really miss CFBuilder on that when I'm traveling
:(
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

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

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


Re: Upgrading ColdFusion from MX 7 to 9 - Any Advice, Guidance, Best Practices, Etc?

2010-11-10 Thread Sean Corfield

On Wed, Nov 10, 2010 at 7:32 AM, Christian N. Abad
li...@accessiblecomputing.com wrote:
 I'm in the process of having a new dedicated server being built by
 Hosting.com (formerly HostMySite.com) that will be running, among other
 things, ColdFusion 9.  Once the build is completed in the next couple days,
 I will be systematically moving a few dozen websites from the existing box
 running CF MX 7 to the new box running CF 9.

One thing you'll notice is that CF9 is dramatically faster than CFMX7!
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

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

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


Re: Ajax + 2 functions = error

2010-11-10 Thread Jessica Kennedy

I do cache my component, but since I'm testing, I'm forcing a reload on each 
page load, and I am istantiating the component I call via ajax on every 
request... still, I did a test to be sure-- I attempted to call getTest() via 
ajax-- worked perfectly.  then attempted to call the original method test() 
from getTest... failure.  I'm really scratching my head on this one!

is your component cached in some persistent scope (session/application)?
it sounds like you have added the getTest() method after the component 
has been instantiated - and thus its instance has no idea about the 
getTest() method added later...

Azadi

On 10/11/2010 21:50 , Jessica Kennedy wrote:
 

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


Re: Ajax + 2 functions = error

2010-11-10 Thread Jessica Kennedy

correct.  I believe if you are calling it from the same root domain a public 
access will work
Confusing. Your access is public but you can call it via remote Ajax? 

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


Re: cfm vs html pages - one drawback

2010-11-10 Thread Rob Voyle

Thanks Dave
That has worked well.

Rob
  
Robert J. Voyle, Psy.D.
Director, Clergy Leadership Institute
For Coaching and Training in Appreciative Inquiry
Author: Core Elements of the Appreciative Way 
http://www.clergyleadership.com/
503-647-2378 or 503-647-2382

On 8 Nov 2010 at 18:07, Dave Watts wrote:

 
  Is there a way to view cf pages on my local computer without going
 to the web
  server. years ago Homesite had a cut down version of CF that
 worked well is
  there an alternative?
 
 You can just download CF and install it on your local computer.
 It's
 free for development use. That's what Homesite came with,
 actually.
 It's identical to the non-free version except that it only accepts
 a
 limited number of connections.
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 http://training.figleaf.com/
 
 Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on
 GSA Schedule, and provides the highest caliber vendor-authorized
 instruction at our training centers, online, or onsite.
 
 
 ~|
 Order the Adobe Coldfusion Anthology now!
 http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=
 houseoffusion
 Archive:
 http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:33
 8978
 Subscription:
 http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
 Unsubscribe:
 http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
 




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


Re: Moving to DC

2010-11-10 Thread Jason Birch

Well, it appears my thread has officially been hijacked. :)

JB




From:RobG sled...@gmail.com
To:cf-jobs-talk cf-jobs-talk@houseoffusion.com
Sent: Tue, November 9, 2010 9:18:00 AM
Subject: Re: Moving to DC


On 11/8/10 2:59 PM, Maureen wrote:

 That is legal in California.  I hate it, but apparently there have
 been few accidents because of it, and no fatalities.

No offense (seriously), but here's my take on why people hate it.  It's 
a generalization so please try not to take it too personally.  And I can 
relate because years ago before I rode I felt the same way.

You hate it because it requires you to actually pay attention.  You feel 
like you shouldn't have to watch out for anybody but yourself.  You hate 
it because of the VERY FEW dweebs out there (they exist in every group) 
that abuse the privilege and blow through traffic at too high a speed, 
or you've had a mirror broken by one of these guys.

OR, as somebody pointed out yesterday, you hate the idea that somebody 
should get there before you do.  Misery spread equally, that's the 
Liberal Way (tm).  Instead of Power To Those Who Can, we need to put a 
stop those people because it isn't FAIR that they should be able to do 
something we can't.

There was an article written in San Francisco back in 2000 talking about 
lane splitting.  They quoted one guy saying how he hates how people can 
get there sooner, and they shouldn't be allowed to.  They, should just 
get in line and wait with everybody else.

It's such a crock because bikes are much smaller than cars.  They fit in 
smaller spaces.  It just makes sense to let them use that space.

Consider this... at the grocery store or Walmart.  You have these big, 
wide aisles.  WHAT IF you were only allowed to walk single file down 
these aisles?  Even if somebody stopped to get stuff off the shelf, or 
was standing there staring, looking for the item that didn't exist, you 
COULD NOT go around them.  How dumb is that?  Very similar concept.

Rob



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


Re: Moving to DC

2010-11-10 Thread Larry C. Lyons

You'd think that this was CF-Community or something. ;)

One other suggestion I did have is go to one of the salary comparison
sites and check out possible cost of living in DC vs the suburbs that
way. You can look at how much more you'd need to make as well as
seeing how much more it would cost living in DC vs., the agony of the
commute.

Believe me, commuting in this region is ugly. You need to take that
into account. Driving into the district is not recommended if you can
avoid it.

regards,
larry

On Wed, Nov 10, 2010 at 5:19 PM, Jason Birch birchma...@yahoo.com wrote:

 Well, it appears my thread has officially been hijacked. :)

 JB



 
 From:RobG sled...@gmail.com
 To:cf-jobs-talk cf-jobs-talk@houseoffusion.com
 Sent: Tue, November 9, 2010 9:18:00 AM
 Subject: Re: Moving to DC


 On 11/8/10 2:59 PM, Maureen wrote:

 That is legal in California.  I hate it, but apparently there have
 been few accidents because of it, and no fatalities.

 No offense (seriously), but here's my take on why people hate it.  It's
 a generalization so please try not to take it too personally.  And I can
 relate because years ago before I rode I felt the same way.

 You hate it because it requires you to actually pay attention.  You feel
 like you shouldn't have to watch out for anybody but yourself.  You hate
 it because of the VERY FEW dweebs out there (they exist in every group)
 that abuse the privilege and blow through traffic at too high a speed,
 or you've had a mirror broken by one of these guys.

 OR, as somebody pointed out yesterday, you hate the idea that somebody
 should get there before you do.  Misery spread equally, that's the
 Liberal Way (tm).  Instead of Power To Those Who Can, we need to put a
 stop those people because it isn't FAIR that they should be able to do
 something we can't.

 There was an article written in San Francisco back in 2000 talking about
 lane splitting.  They quoted one guy saying how he hates how people can
 get there sooner, and they shouldn't be allowed to.  They, should just
 get in line and wait with everybody else.

 It's such a crock because bikes are much smaller than cars.  They fit in
 smaller spaces.  It just makes sense to let them use that space.

 Consider this... at the grocery store or Walmart.  You have these big,
 wide aisles.  WHAT IF you were only allowed to walk single file down
 these aisles?  Even if somebody stopped to get stuff off the shelf, or
 was standing there staring, looking for the item that didn't exist, you
 COULD NOT go around them.  How dumb is that?  Very similar concept.

 Rob



 

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