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

2010-10-20 Thread Arsalan Tariq Keen

Well, I agree with David... giving PHP a try after using CF for around 8 
years, I have found PHP to be much faster on an average setup hardware. 
Having said that, Wil, I do realise your point, can you please guide us to 
some resource where we can learn performance tuning of CF specially on the 
JVM level? I stopped using ACF for this reason because it was just too 
resource intensive for my development machine, then I shifted to Railo which 
I found much better in speed and now PHP which is amazingly fast on the same 
machine.


Regards,
Arsalan

--
From: Wil Genovese jugg...@trunkful.com
Sent: Wednesday, October 20, 2010 2:06 AM
To: cf-talk cf-talk@houseoffusion.com
Subject: Re: CF (8.0.0) performance vs PHP (5)


 Again this means nothing.  I've worked on very high load high performance 
 ColdFusion based web applications that literally served up 2.5 to 3 
 million user requests per day and each request took less than 350ms on 
 average. It comes down to performance tuning at all layers.  The 
 out-of-the-box install of ColdFusion is not tuned for performance. It's 
 tuned to just run and let you get started.

 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator

 wilg...@trunkful.com
 www.trunkful.com

 On Oct 19, 2010, at 4:01 PM, John M Bliss wrote:


 For giggles, I just tried this on my box and got:

 HTML  33 milliseconds (static DataTime stamp and no queries to DB)
 CF  2910 milliseconds (cleared template cache and newly restarted CF
 service)
 CF  707 milliseconds (after above run)

 And here's the code I tested.  NOTE: only needed two cfdumps to get to 
 50K
 page size:

 cfset count = 10

 cfoutput#Now()#/cfoutput

 cfquery name=Q_GetData datasource=thedatasource
 select top #count# * from table1
 /cfquery

 cfdump var=#Q_GetData#

 cfquery name=Q_GetData datasource=thedatasource
 select top #count# * from table2
 /cfquery

 cfdump var=#Q_GetData#

 cfquery name=Q_GetData datasource=thedatasource
 select top #count# * from table3
 /cfquery

 cfquery name=Q_GetData datasource=thedatasource
 select top #count# * from table4
 /cfquery

 cfquery name=Q_GetData datasource=thedatasource
 select top #count# * from table5
 /cfquery

 On Tue, Oct 19, 2010 at 3:29 PM, Ketan Jetty kje...@yahoo.com wrote:


 This can lead to lots of controvertial posts. I did some performance
 testing long back between HTML, CF, PHP, ASP.NET and Java. The benchmark
 was a static HTML page and everything was measured against the 
 performance
 of HTML. Criteria used in the benchmarking was to generate a datetime 
 stamp,
 results from 5 queries to DB and a 50K page size

 The performance results matrix is given below:
 HTML  100% (static DataTime stamp and no queries to DB)
 PHP90% of HTML
 ASP.NET80% of HTML
 JAVA   75% of HTML
 CF 40% of HTML [but I can say that CF is slowly improving]

 These are my findings and may change from time to time.







 

~|
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:338351
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-10-20 Thread Jochem van Dieten

On Tue, Oct 19, 2010 at 10:51 PM, Bryan Stevenson wrote:
 Respectfully Ketanyour tests have nothing to do with the string
 concatenation performance issue that was the crux of this thread ;-)

I very much doubt the performance issue discussed here has anything to
do with string concatenation.

cffile action='append'... appends code to the file on the file
system. That means it waits until the data hits the disks. If you pull
the plug after 10K lines, you will have a file with 10K lines on the
filesystem when it comes back up. With a 15K RPM disk the rotational
latency alone limits you to 250 operations per second. So 20K lines
takes about 80 seconds. (If you test this you will frequently see
higher performance numbers which is due to write caching not in the OS
but on the disk. SAS disks typically allow you to disable that.)

cfset this.FileObject.write(arguments.fileData,0,
len(arguments.fileData)) doesn't write to disk, it writes to a JVM
buffer. Only the final FileObject.flush() writes the buffer to disk.
If you pull the plug after 10K lines, you will have a file with 0
lines on the filesystem when it comes back up.


That your PHP code runs in about 8 seconds simply means it does string
concatenation in memory followed by one write as well. Either
explicitly in a PHP memory variable or implicitly by not doing a real
fsync after writing to the filesystem.

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:338352
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-10-20 Thread Wil Genovese

Each server setup is unique and needs to be tuned for it's purpose, 
applications running and hardware.  I have a couple of JVM Tuning posts on my 
blog that serve as a guide but not meant as an exact this is how you do it.  
http://www.trunkful.com/index.cfm/JVM-Tuning  

The Adobe website has detailed posts on the exact science of tuning the JVM for 
your specific server and application(s).  Tuning your application, server, JVM, 
database and network are all part of building a high performance high 
availability setup.  Each is unique and it's really something that should be 
done no matter which web application layer you choose.


Wil Genovese
Sr. Web Application Developer/
Systems Administrator

wilg...@trunkful.com
www.trunkful.com

On Oct 20, 2010, at 1:17 AM, Arsalan Tariq Keen wrote:

 
 Well, I agree with David... giving PHP a try after using CF for around 8 
 years, I have found PHP to be much faster on an average setup hardware. 
 Having said that, Wil, I do realise your point, can you please guide us to 
 some resource where we can learn performance tuning of CF specially on the 
 JVM level? I stopped using ACF for this reason because it was just too 
 resource intensive for my development machine, then I shifted to Railo which 
 I found much better in speed and now PHP which is amazingly fast on the same 
 machine.
 
 
 Regards,
 Arsalan
 
 --
 From: Wil Genovese jugg...@trunkful.com
 Sent: Wednesday, October 20, 2010 2:06 AM
 To: cf-talk cf-talk@houseoffusion.com
 Subject: Re: CF (8.0.0) performance vs PHP (5)
 
 
 Again this means nothing.  I've worked on very high load high performance 
 ColdFusion based web applications that literally served up 2.5 to 3 
 million user requests per day and each request took less than 350ms on 
 average. It comes down to performance tuning at all layers.  The 
 out-of-the-box install of ColdFusion is not tuned for performance. It's 
 tuned to just run and let you get started.
 
 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator
 
 wilg...@trunkful.com
 www.trunkful.com
 
 On Oct 19, 2010, at 4:01 PM, John M Bliss wrote:
 
 
 For giggles, I just tried this on my box and got:
 
 HTML  33 milliseconds (static DataTime stamp and no queries to DB)
 CF  2910 milliseconds (cleared template cache and newly restarted CF
 service)
 CF  707 milliseconds (after above run)
 
 And here's the code I tested.  NOTE: only needed two cfdumps to get to 
 50K
 page size:
 
 cfset count = 10
 
 cfoutput#Now()#/cfoutput
 
 cfquery name=Q_GetData datasource=thedatasource
 select top #count# * from table1
 /cfquery
 
 cfdump var=#Q_GetData#
 
 cfquery name=Q_GetData datasource=thedatasource
 select top #count# * from table2
 /cfquery
 
 cfdump var=#Q_GetData#
 
 cfquery name=Q_GetData datasource=thedatasource
 select top #count# * from table3
 /cfquery
 
 cfquery name=Q_GetData datasource=thedatasource
 select top #count# * from table4
 /cfquery
 
 cfquery name=Q_GetData datasource=thedatasource
 select top #count# * from table5
 /cfquery
 
 On Tue, Oct 19, 2010 at 3:29 PM, Ketan Jetty kje...@yahoo.com wrote:
 
 
 This can lead to lots of controvertial posts. I did some performance
 testing long back between HTML, CF, PHP, ASP.NET and Java. The benchmark
 was a static HTML page and everything was measured against the 
 performance
 of HTML. Criteria used in the benchmarking was to generate a datetime 
 stamp,
 results from 5 queries to DB and a 50K page size
 
 The performance results matrix is given below:
 HTML  100% (static DataTime stamp and no queries to DB)
 PHP90% of HTML
 ASP.NET80% of HTML
 JAVA   75% of HTML
 CF 40% of HTML [but I can say that CF is slowly improving]
 
 These are my findings and may change from time to time.
 
 
 
 
 
 
 
 
 
 

~|
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:338353
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Find duplicated contacts (and typos)

2010-10-20 Thread Mack

Hi!

I have a contact application where I need to display possible
duplicates within the existing contacts. Possible duplicates means
different contact entries that refer to the same person and might have
the same or slightly different information (typos).

What I currently do is search for different levels of duplication
(it's a single union of 3 queries):
- the first query searches for exact duplicates (exactly the same
name, address, email, phone, etc);
- second query searches for matches using the soundex algorithm on a
restricted set of fields and is given a lower matching score;
- third query applies soundex on more fields and is given an even
lower matching score.

Is there a better algorithm or way to do this fuzzy duplication search
over multiple fields (firstname, lastname, address, etc) ? Pointers to
wikipedia, books, etc appreciated.

-- 
Mack

~|
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:338354
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cant access cf administrator

2010-10-20 Thread Mack

On Tue, Oct 19, 2010 at 6:32 PM, Jay Birdsell john_birds...@hotmail.com wrote:

  HI
 I have just installed CF9 on a Solaris 10 box with weblogic 11g, when i try 
 to log into cf administrator, I get a 500 error, cf itself is running as I 
 can pull the log in pages for all my apps, of course when actually log in i 
 get an error, as expected, because I have not configured anything. anyone 
 have an idea what could be causeing the 500 error?

What do the CF and web server logs say ?

-- 
Mack

~|
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:338355
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Find duplicated contacts (and typos)

2010-10-20 Thread Russ Michaels

Sadly I don;t think soundex is going to help you as this finds words that
sound like other words (there, their, they're), which isn't going to pickup
typos.
I think comparing each contact field on an OR basis is a sufficient way to
find dupes, if none of those fields are the same then it is not really a
duplicate. Even if you have a typo in the same, the other fields are going
to have a match surely.

Russ


On Wed, Oct 20, 2010 at 12:53 PM, Mack mrsmith.w...@gmail.com wrote:


 Hi!

 I have a contact application where I need to display possible
 duplicates within the existing contacts. Possible duplicates means
 different contact entries that refer to the same person and might have
 the same or slightly different information (typos).

 What I currently do is search for different levels of duplication
 (it's a single union of 3 queries):
 - the first query searches for exact duplicates (exactly the same
 name, address, email, phone, etc);
 - second query searches for matches using the soundex algorithm on a
 restricted set of fields and is given a lower matching score;
 - third query applies soundex on more fields and is given an even
 lower matching score.

 Is there a better algorithm or way to do this fuzzy duplication search
 over multiple fields (firstname, lastname, address, etc) ? Pointers to
 wikipedia, books, etc appreciated.

 --
 Mack

 

~|
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:338356
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Find duplicated contacts (and typos)

2010-10-20 Thread Mack

On Wed, Oct 20, 2010 at 4:22 PM, Russ Michaels r...@michaels.me.uk wrote:

 Sadly I don;t think soundex is going to help you as this finds words that
 sound like other words (there, their, they're), which isn't going to pickup
 typos.

In my testing soundex works reasonable well if I allow the 2 values to
be within a distance of each other (I'm not searching for exact
soundex matching but for the 2 numbers to be close to each other).

For example select soundex('Morris'), soundex('Moris'); returns the
same value M620 and that is ok for me.

 I think comparing each contact field on an OR basis is a sufficient way to
 find dupes, if none of those fields are the same then it is not really a
 duplicate. Even if you have a typo in the same, the other fields are going
 to have a match surely.

Unfortunately I get very little duplicates that way because of small
differences, especially in the address (East Drive vs East Dr.).

-- 
Mack

~|
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:338357
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cant access cf administrator

2010-10-20 Thread Jay Birdsell

 
 What do the CF and web server logs say ?
 
 -- 
Mack

here is the output from the exception log 


Error,[ACTIVE] ExecuteThread: '2' for queue: 'weblogic.kernel.Default 
(self-tuning)',10/20/10,09:36:24,cfadmin,Could not initialize class 
com.verity.security.k2.K2Encrypt The specific sequence of files included or 
processed is: 
/export/home/oraas11/Oracle/Middleware/user_projects/domains/ClassicDomain/servers/CF9/stage/cfmx/cfmx/CFIDE/administrator/enter.cfm,
 line: 241 
java.lang.NoClassDefFoundError: Could not initialize class 
com.verity.security.k2.K2Encrypt
at com.verity.administration.VAdmin.init(Unknown Source)
at com.verity.api.administration.VAdministration.init(Unknown Source)
at coldfusion.tagext.search.Utils$1.run(Utils.java:675)
at java.security.AccessController.doPrivileged(Native Method)
at coldfusion.tagext.search.Utils.adminConnect(Utils.java:668)
at coldfusion.tagext.search.Utils.adminConnect(Utils.java:634)
at 
coldfusion.tagext.search.Utils.getVerityCollectionInfo(Utils.java:1254)
at coldfusion.tagext.search.Utils.checkCollectionExists(Utils.java:914)
at 
coldfusion.tagext.search.CollectionTag.doActionCreateOrMap(CollectionTag.java:246)
at 
coldfusion.tagext.search.CollectionTag.doStartTag(CollectionTag.java:194)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)
at 
cffinish2ecfm369434798._factor2(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\setup\finish.cfm:241)
at 
cffinish2ecfm369434798._factor6(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\setup\finish.cfm:218)
at 
cffinish2ecfm369434798.runPage(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\setup\finish.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)
at 
cfwizard2ecfm1164273531._factor18(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\cftags\wizard.cfm:226)
at 
cfwizard2ecfm1164273531._factor19(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\cftags\wizard.cfm:225)
at 
cfwizard2ecfm1164273531._factor21(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\cftags\wizard.cfm:223)
at 
cfwizard2ecfm1164273531._factor14(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\cftags\wizard.cfm)
at 
cfwizard2ecfm1164273531._factor33(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\cftags\wizard.cfm:146)
at 
cfwizard2ecfm1164273531.runPage(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\cftags\wizard.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
at 
coldfusion.filter.CFVariablesScopeFilter.invoke(CFVariablesScopeFilter.java:56)
at coldfusion.tagext.lang.ModuleTag.doAfterBody(ModuleTag.java:352)
at 
cfindex2ecfm718213779.runPage(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\setup\index.cfm:44)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)
at 
cfApplication2ecfm1161156468._factor7(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\Application.cfm:242)
at 
cfApplication2ecfm1161156468.runPage(E:\cf9_final\cfusion\wwwroot\CFIDE\administrator\Application.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)
at 
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:261)
at 
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at 
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
at 
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126)
at coldfusion.CfmServlet.service(CfmServlet.java:200)
at 
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
at 
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)

Re: cant access cf administrator

2010-10-20 Thread Mack

Jay,

From the log file it seems for some reason CF cannot find the
K2Encrypt class. On a standard install the class should be in
#cf_home#/wwwroot/web-inf/lib/verity.jar. Do you have that file ?

Is this the only error message that you get or do you get some other
error messages early in the initialization phase ?

-- 
Mack

~|
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:338359
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


using cfdocument to generate PDF

2010-10-20 Thread Monte Chan

Hi all,

 

The actual table is a lot larger than the mock-up one that I am going to show 
you but this mock-up one does explain the problem.  Please go to 
http://www.monteandjanicechan.com/test_table.cfm

 

The thickness of the grid lines in the table are coming up the way I want in 
the HTML version.  You can do a View Source to see the actual HTML stuff that 
gets generated. Now, I put these HTMl codes within the cfdocument tag with 
format=pdf; please go to 
http://www.monteandjanicechan.com/test_table_pdf.cfm.  You will see the 
inconsistent thickness of the grid line for sneezing and for flu.  To further 
illustrate my point, I removed the background colors and generate a PDF; please 
go to http://www.monteandjanicechan.com/test_table_pdf_nocolor.cfm.  The 
thickness of the grid lines is back to normal.

 

This leads me to believe that the background color of one cell somehow goes 
over to the cell right next to it and cover up the border.  Here are the 
strange things:

1) This is ONLY happening in rowspan and ONLY happening from the second row on 
to the rest of the rowspan.  For example, first Sneezing is okay but the border 
of the second sneezing is not correct; the first Flu is okay but the borders of 
the second and the third Flu are not correct.

2) The background color does NOT cover the border of its own cell at all; it 
only cover the border of the cell right next to it.

 

My question is, how can I fix this issue?

 

Any suggestions and pointers are greatly appreciated. 

~|
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:338360
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Memory Upgrade - Revisited

2010-10-20 Thread Steve LaBadie

We purchase 12 GB of memory for our web server and come to find out that
we need Windows 2003 Enterprise or upgrade to Windows 2008  in order for
the memory to be recognized. We currently have MX 7 standard installed.
I am going to upgrade to CF 9, Standard. I understand that CF 9 Standard
comes in 64 bit and can run 64 bit heaps. And I believe you can still
run 32 bit ODBC drivers on a 64 bit windows so I can still use my Access
DB's.

 

 

Steve LaBadie, Web Manager

East Stroudsburg University

200 Prospect St.

East Stroudsburg, Pa 18301

570-422-3999

http://www.esu.edu http://www.esu.edu 

slaba...@po-box.esu.edu mailto:slaba...@po-box.esu.edu 



~|
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:338361
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Memory Upgrade - Revisited

2010-10-20 Thread David McGraw

There is something wrong with the idea of using such a beastly web-server
with an Access DB backend, upgrade your DB while you are at it.

Regards,
David McGraw
Oyova Software, LLC
http://www.oyova.com




On Wed, Oct 20, 2010 at 11:48 AM, Steve LaBadie slaba...@po-box.esu.eduwrote:


 We purchase 12 GB of memory for our web server and come to find out that
 we need Windows 2003 Enterprise or upgrade to Windows 2008  in order for
 the memory to be recognized. We currently have MX 7 standard installed.
 I am going to upgrade to CF 9, Standard. I understand that CF 9 Standard
 comes in 64 bit and can run 64 bit heaps. And I believe you can still
 run 32 bit ODBC drivers on a 64 bit windows so I can still use my Access
 DB's.





 Steve LaBadie, Web Manager

 East Stroudsburg University

 200 Prospect St.

 East Stroudsburg, Pa 18301

 570-422-3999

 http://www.esu.edu http://www.esu.edu

 slaba...@po-box.esu.edu mailto:slaba...@po-box.esu.edu



 

~|
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:338362
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Memory Upgrade - Revisited

2010-10-20 Thread Steve LaBadie

I have a couple of Access DB's (which were done sometime ago) along with
MySQL and MS SQL. I guess I am too lazy to switch them over.

Steve LaBadie, Web Manager
East Stroudsburg University
200 Prospect St.
East Stroudsburg, Pa 18301
570-422-3999
http://www.esu.edu
slaba...@po-box.esu.edu
-Original Message-
From: David McGraw [mailto:david.mcg...@gmail.com] 
Sent: Wednesday, October 20, 2010 11:54 AM
To: cf-talk
Subject: Re: Memory Upgrade - Revisited


There is something wrong with the idea of using such a beastly
web-server
with an Access DB backend, upgrade your DB while you are at it.

Regards,
David McGraw
Oyova Software, LLC
http://www.oyova.com




On Wed, Oct 20, 2010 at 11:48 AM, Steve LaBadie
slaba...@po-box.esu.eduwrote:


 We purchase 12 GB of memory for our web server and come to find out
that
 we need Windows 2003 Enterprise or upgrade to Windows 2008  in order
for
 the memory to be recognized. We currently have MX 7 standard
installed.
 I am going to upgrade to CF 9, Standard. I understand that CF 9
Standard
 comes in 64 bit and can run 64 bit heaps. And I believe you can still
 run 32 bit ODBC drivers on a 64 bit windows so I can still use my
Access
 DB's.





 Steve LaBadie, Web Manager

 East Stroudsburg University

 200 Prospect St.

 East Stroudsburg, Pa 18301

 570-422-3999

 http://www.esu.edu http://www.esu.edu

 slaba...@po-box.esu.edu mailto:slaba...@po-box.esu.edu



 



~|
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:338363
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFPDF=merge to create 1 page with merged documents

2010-10-20 Thread Brook Davies

Does anyone know if you can use CFPDF=merge to merge to small PDF segments
into a 1 page document. Whenever I run merge, it creates a new page. I want
to build a single page from multiple source documents (which have a height
of 2 inches each and should combine into a single page okay...

 

Brook 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:338364
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Find duplicated contacts (and typos)

2010-10-20 Thread Russ Michaels

Crikey, you must just have a really shagged contacts list LOL.
Have you tried Plaxo, this does a very good job of removing duplicates.
Or does it need to be an in-house app ?

Russ

-Original Message-
From: Mack [mailto:mrsmith.w...@gmail.com] 
Sent: 20 October 2010 14:43
To: cf-talk
Subject: Re: Find duplicated contacts (and typos)


On Wed, Oct 20, 2010 at 4:22 PM, Russ Michaels r...@michaels.me.uk wrote:

 Sadly I don;t think soundex is going to help you as this finds words 
 that sound like other words (there, their, they're), which isn't going 
 to pickup typos.

In my testing soundex works reasonable well if I allow the 2 values to be
within a distance of each other (I'm not searching for exact soundex
matching but for the 2 numbers to be close to each other).

For example select soundex('Morris'), soundex('Moris'); returns the same
value M620 and that is ok for me.

 I think comparing each contact field on an OR basis is a sufficient 
 way to find dupes, if none of those fields are the same then it is not 
 really a duplicate. Even if you have a typo in the same, the other 
 fields are going to have a match surely.

Unfortunately I get very little duplicates that way because of small
differences, especially in the address (East Drive vs East Dr.).

--
Mack



~|
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:338365
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Memory Upgrade - Revisited

2010-10-20 Thread Maureen

If you are only using the data tables in Access and not any of the
reports or forms, you can upsize the tables to MSSQL in just a few
minutes with the upsize tool.

On Wed, Oct 20, 2010 at 8:59 AM, Steve LaBadie slaba...@po-box.esu.edu wrote:

 I have a couple of Access DB's (which were done sometime ago) along with
 MySQL and MS SQL. I guess I am too lazy to switch them over.


~|
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:338366
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CFPDF=merge to create 1 page with merged documents

2010-10-20 Thread Jochem van Dieten

On Wed, Oct 20, 2010 at 6:31 PM, Brook Davies wrote:
 Does anyone know if you can use CFPDF=merge to merge to small PDF segments
 into a 1 page document. Whenever I run merge, it creates a new page. I want
 to build a single page from multiple source documents (which have a height
 of 2 inches each and should combine into a single page okay...

You can use a blank PDF of the proper page size as a starting point
and then overlay the PDF segments in the right position as watermarks
using DDX. You probably need to flatten the PDF after each watermark
has been added.

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:338367
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cant access cf administrator

2010-10-20 Thread Jay Birdsell

Jay,

From the log file it seems for some reason CF cannot find the
K2Encrypt class. On a standard install the class should be in
#cf_home#/wwwroot/web-inf/lib/verity.jar. Do you have that file ?

Is this the only error message that you get or do you get some other
error messages early in the initialization phase ?

-- 
Mack

I do have that file, but in a different directory web-inf/cfusion/lib.
I might have to add it to the class path. 

~|
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:338368
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-10-20 Thread Bryan Stevenson

Whatever Jochemyou get the pointa simple page load test with
some queries etc. has nothing to do with the threadit was a SPECIFIC
performance issue.

I bow down to your superior knowledge and use of semantics ;-)

Cheers

On Wed, 2010-10-20 at 09:56 +0200, Jochem van Dieten wrote:

 On Tue, Oct 19, 2010 at 10:51 PM, Bryan Stevenson wrote:
  Respectfully Ketanyour tests have nothing to do with the string
  concatenation performance issue that was the crux of this thread ;-)
 
 I very much doubt the performance issue discussed here has anything to
 do with string concatenation.
 
 cffile action='append'... appends code to the file on the file
 system. That means it waits until the data hits the disks. If you pull
 the plug after 10K lines, you will have a file with 10K lines on the
 filesystem when it comes back up. With a 15K RPM disk the rotational
 latency alone limits you to 250 operations per second. So 20K lines
 takes about 80 seconds. (If you test this you will frequently see
 higher performance numbers which is due to write caching not in the OS
 but on the disk. SAS disks typically allow you to disable that.)
 
 cfset this.FileObject.write(arguments.fileData,0,
 len(arguments.fileData)) doesn't write to disk, it writes to a JVM
 buffer. Only the final FileObject.flush() writes the buffer to disk.
 If you pull the plug after 10K lines, you will have a file with 0
 lines on the filesystem when it comes back up.
 
 
 That your PHP code runs in about 8 seconds simply means it does string
 concatenation in memory followed by one write as well. Either
 explicitly in a PHP memory variable or implicitly by not doing a real
 fsync after writing to the filesystem.
 
 Jochem
 



Bryan Stevenson B.Comm.
VP  Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: br...@electricedgesystems.com
web: www.electricedgesystems.com
 
Notice:
This message, including any attachments, is confidential and may contain
information that is privileged or exempt from disclosure. It is intended
only for the person to whom it is addressed unless expressly authorized
otherwise by the sender. If you are not an authorized recipient, please
notify the sender immediately and permanently destroy all copies of this
message and attachments.
Please consider the environment before printing this e-mail



~|
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:338369
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cant access cf administrator

2010-10-20 Thread Jay Birdsell

Jay,
Mack

I do have that file, but in a different directory web-inf/cfusion/lib.
I might have to add it to the class path.

the only other error message shows up as a single line entry in the application 
log


Could not initialize class com.verity.security.k2.K2Encrypt The specific 
sequence of files included or processed is: 
/export/home/oraas11/Oracle/Middleware/user_projects/domains/ClassicDomain/servers/CF9/stage/cfmx/cfmx/CFIDE/administrator/enter.cfm,
 line: 241  

~|
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:338370
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Apache Axis Does Not Generate All Classes of Web Service

2010-10-20 Thread Donnie Carvajal

I am having a problem with the NetSuite wsdl.  There are stub class files that 
are missing.  I've seen some posts in some other forums indicating that when 
the web service is setup through Coldfusion, there are class files missing, but 
when wsdl2java is run from the command line, it works just fine.

Is anyone else experiencing this problem with any other web services? If so, is 
there a fix or do I need to compile all wsdl classes from the command line from 
here on out?

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:338371
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: CFPDF=merge to create 1 page with merged documents

2010-10-20 Thread Brook Davies

OK, good idea Jochem - thank you!

-Original Message-
From: Jochem van Dieten [mailto:joch...@gmail.com] 
Sent: October-20-10 10:09 AM
To: cf-talk
Subject: Re: CFPDF=merge to create 1 page with merged documents


On Wed, Oct 20, 2010 at 6:31 PM, Brook Davies wrote:
 Does anyone know if you can use CFPDF=merge to merge to small PDF
segments
 into a 1 page document. Whenever I run merge, it creates a new page. I
want
 to build a single page from multiple source documents (which have a height
 of 2 inches each and should combine into a single page okay...

You can use a blank PDF of the proper page size as a starting point
and then overlay the PDF segments in the right position as watermarks
using DDX. You probably need to flatten the PDF after each watermark
has been added.

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:338372
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Upgrade

2010-10-20 Thread Donnie Carvajal

Are there any special intructions for upgrading Axis in ColdFusion?  It seems 
the webservices.jar file also has a wsdl2java class that maybe being called 
over the class in the upgrades Axis jar files.

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:338373
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Does Not Generate All Classes of Web Service

2010-10-20 Thread Russ Michaels

you should only need to generate the class files once, it is not likley that
the web service is changing very often, so if wsdl2java generates them all
properly then you should be able to call the web service after doing so.


Russ
On Wed, Oct 20, 2010 at 7:37 PM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:


 I am having a problem with the NetSuite wsdl.  There are stub class files
 that are missing.  I've seen some posts in some other forums indicating that
 when the web service is setup through Coldfusion, there are class files
 missing, but when wsdl2java is run from the command line, it works just
 fine.

 Is anyone else experiencing this problem with any other web services? If
 so, is there a fix or do I need to compile all wsdl classes from the command
 line from here on out?

 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:338374
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Upgrade

2010-10-20 Thread Russ Michaels

u can just open the jar file in winzip or any other archive program and
check that.
It was a very long time ago i did an axis upgrade so I don't remember if I
did anything special, but I don;t think so.

On Wed, Oct 20, 2010 at 8:18 PM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:


 Are there any special intructions for upgrading Axis in ColdFusion?  It
 seems the webservices.jar file also has a wsdl2java class that maybe being
 called over the class in the upgrades Axis jar files.

 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:338375
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Upgrade

2010-10-20 Thread Donnie Carvajal

Which jar file are you talking about opening and what am I looking for?  If 
this determines that the webservices.jar has the wsdl2java class, how do I get 
ColdFusion to use the upgraded Axis jar?

Thanks. 

~|
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:338376
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Upgrade

2010-10-20 Thread Russ Michaels

In your previous reply you said axis.jar, so this is what i am referring to.
if you can determine which one is being used, you can copy the updates class
into the jar and see if that helps.

On Wed, Oct 20, 2010 at 8:37 PM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:


 Which jar file are you talking about opening and what am I looking for?  If
 this determines that the webservices.jar has the wsdl2java class, how do I
 get ColdFusion to use the upgraded Axis jar?

 Thanks.

 

~|
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:338377
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Catching Invalid CFML construct found in OnError

2010-10-20 Thread Tony Bentley

I am trying to catch this error type but it is not passing through onError in 
the Application Class. It simply is evaluated and thrown as is. How do I catch 
it without a try/catch? 

~|
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:338378
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Importing from CSV to a database

2010-10-20 Thread Claude Schnéegans

Hi,

I have to create a new database from a CSV text file.
I have an ODBC datasource defined for the CSV file and I can read the file with 
a query like:
CFQUERY NAME=getMembers DATASOURCE=Import
SELECT * FROM membersImport.csv
/CFQUERY

The problem is that column names have blanks and special characters that makes 
them illegal variable names.
If I have a column like memberId, I can use the data in getMembers.membId with 
no problem,
but haw can I get the value in a column like Région administrative ?

I've tried getMembers['Région administrative'] but it causes an error.




~|
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:338379
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Catching Invalid CFML construct found in OnError

2010-10-20 Thread Claude Schnéegans

 I am trying to catch this error type but it is not passing through onError 
 in the Application Class. It simply is evaluated and thrown as is. How do I 
 catch it without a try/catch?

I don't think you can. onError will only catch execution errors.
Invalid CFML construct is a compilation error, your code is not even executed.

~|
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:338380
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Catching Invalid CFML construct found in OnError

2010-10-20 Thread Tony Bentley

So basically if there is a typo in the syntax and the code does not compile
it will throw an error and I cannot catch it?  Hmmm... I guess I need to
figure out something else.


~|
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:338381
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Catching Invalid CFML construct found in OnError

2010-10-20 Thread Claude Schnéegans

 So basically if there is a typo in the syntax and the code does not compile
it will throw an error and I cannot catch it?

More precisely: if there is a typo, the code does get compiled, but is not 
executed.
Since it is not executed, you cannot catch it at execution.

~|
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:338382
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Does Not Generate All Classes of Web Service

2010-10-20 Thread Donnie Carvajal

The problem is that there are class files missing from the intitial generation. 
 I'm trying to figure out how to get either ColdFusion or Apache Axis to 
generate all of the files. 

~|
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:338383
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Does Not Generate All Classes of Web Service

2010-10-20 Thread Russ Michaels

you said it worked fine when doing it via wsdl2java ?

On Wed, Oct 20, 2010 at 9:24 PM, Donnie Carvajal 
donnie.carva...@transformyx.com wrote:


 The problem is that there are class files missing from the intitial
 generation.  I'm trying to figure out how to get either ColdFusion or Apache
 Axis to generate all of the files.

 

~|
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:338384
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Apache Axis Does Not Generate All Classes of Web Service

2010-10-20 Thread Donnie Carvajal

No.  I never got it to work.  When I run wsdl2java from the command line, it 
times out trying to access the wsdl. 

~|
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:338385
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: totaling items in a recordset

2010-10-20 Thread Joel Black

You can query the database to extract the records you want, then query the 
query for a total.  This example actually gets the total if there are multiple 
quantity for each item

!--- get the totals ---
cfquery dbtype=query name=total
SELECT SUM(PriceSold*Quantity) AS TheTotal
FROM cart
/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:338386
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Importing from CSV to a database

2010-10-20 Thread Leigh

 I've tried getMembers['Région administrative'] but it
 causes an error.

Did you forget the row number or is that typo? 

ie
queryName[column name][ rowNumber ] 


  

~|
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:338387
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Catching Invalid CFML construct found in OnError

2010-10-20 Thread Russ Michaels

you can probably catch it using the default error template.

On Wed, Oct 20, 2010 at 9:30 PM,  wrote:


  So basically if there is a typo in the syntax and the code does not
 compile
 it will throw an error and I cannot catch it?

 More precisely: if there is a typo, the code does get compiled, but is not
 executed.
 Since it is not executed, you cannot catch it at execution.

 

~|
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:338388
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Find duplicated contacts (and typos)

2010-10-20 Thread Mack

On Wed, Oct 20, 2010 at 7:35 PM, Russ Michaels r...@michaels.me.uk wrote:

 Crikey, you must just have a really shagged contacts list LOL.
 Have you tried Plaxo, this does a very good job of removing duplicates.
 Or does it need to be an in-house app ?

Russ,

This is part of a larger app and the contacts are coming from
different sources (a couple of websites that currently have their own
databases with customers and need to be integrated into the intranet
app).

-- 
Mack

~|
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:338389
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Catching Invalid CFML construct found in OnError

2010-10-20 Thread Dave Watts

 More precisely: if there is a typo, the code does get compiled, but is not 
 executed.
 Since it is not executed, you cannot catch it at execution.

Well, not exactly - if there is a typo in CFML syntax (rather than
within attribute values, etc), the code will not be compiled at all.
CF will attempt to compile it, but the attempt will fail.

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:338390
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cant access cf administrator

2010-10-20 Thread Mack

On Wed, Oct 20, 2010 at 9:25 PM, Jay Birdsell john_birds...@hotmail.com wrote:

Jay,
Mack

I do have that file, but in a different directory web-inf/cfusion/lib.
I might have to add it to the class path.

 the only other error message shows up as a single line entry in the 
 application log

Jay,

I found this http://www.lmft4u.com/?p=36 by googling for the error
message. See if it helps.

-- 
Mack

~|
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:338391
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Catching Invalid CFML construct found in OnError

2010-10-20 Thread Dave Watts

 So basically if there is a typo in the syntax and the code does not compile
 it will throw an error and I cannot catch it?  Hmmm... I guess I need to
 figure out something else.

The site-wide error handler will catch compile-time errors. But
really, you should catch them yourself - if you get one, it indicates
that you never ran the page in question since you last changed the
code.

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:338392
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ColdFusion Administration 9:: Debugging IP Addresses

2010-10-20 Thread Matthew Lowrey

I have a question about the Debugging IP Addresses (DIPA) section of the CFIDE. 
 We have our developing team  IP addresses set in the DIPA section with the 
understanding that, IF debugging is turned on for our site(s), those of us who 
are included on this DIPA listing will see the debugging information.

With that said, does debugging run 100% of the time when  turned on, only 
displaying the information for the DIPA members?  Or, does it know to only 
run/process information for DIPA members.

The reason for this question is because it seems the server is running slowly 
for our LIVE site and when the feedback comes back it’s usually because we 
have debugging turned on.  I just wanted to know if it runs all the time behind 
the scenes or it checks the DIPA listing first before running every time 
someone sends a page request.

Thank you in advance for your insight.

~|
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:338393
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Administration 9:: Debugging IP Addresses

2010-10-20 Thread Dave Watts

 With that said, does debugging run 100% of the time when  turned on, only 
 displaying the information for the DIPA members?  Or,
 does it know to only run/process information for DIPA members.

It runs 100% of the time, whether anyone sees it or not. For this
reason, it should never be enabled in a production environment unless
needed immediately for debugging.

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 onsit

~|
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:338394
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: ColdFusion Administration 9:: Debugging IP Addresses

2010-10-20 Thread Matthew Lowrey

I had a feeling that was the case, thanks Dave for the clarification.  And, my 
response to that is BOO. Ha ha...  It would be great to have it the other way. 

~|
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:338395
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl

Hello all.

I built a Content Management system that uses the fckEditor.

The problem is that when a user adds CF tags, they aren't read correct when the 
content is retrieved from the database.

I did a bit of research which lead me to the following url which instructed me 
to edit the fckconfig.js file.

http://www.cfshopkart.org/viewtopic.php?f=12t=125

I changed the file as instructed and the cf tags are still not being read.

Any suggestions? 

~|
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:338396
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Catching Invalid CFML construct found in OnError

2010-10-20 Thread Tony Bentley

Dave,

You are correct but stuff slips through the cracks. It's how well you can
track back the error to the source when it occurs that will dictate if the
code will be fixed when or if it happens. I can show a pretty nice user
friendly error, but the question remains the same. How will I track errors
in my site back to the template it occurs on and how did the user create
that error. Simply put, Adobe has not developed much of an error tracking
system. Now a days, I am tracking not only every click event and on which
element up the DOM tree but also using that information when catching server
errors that will help me figure out how it happened. I'd bet some of the
other developers here would pay good money to have the same system in place
for their websites.


~|
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:338397
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Catching Invalid CFML construct found in OnError

2010-10-20 Thread Dave Watts

 You are correct but stuff slips through the cracks. It's how well you can
 track back the error to the source when it occurs that will dictate if the
 code will be fixed when or if it happens. I can show a pretty nice user
 friendly error, but the question remains the same. How will I track errors
 in my site back to the template it occurs on and how did the user create
 that error. Simply put, Adobe has not developed much of an error tracking
 system. Now a days, I am tracking not only every click event and on which
 element up the DOM tree but also using that information when catching server
 errors that will help me figure out how it happened. I'd bet some of the
 other developers here would pay good money to have the same system in place
 for their websites.

I'm not sure where you're going with this. First, compile-time errors
shouldn't ever slip through the cracks. A compile-time error means
that a script was never tested AT ALL. It's the developer's
responsibility to check for compile-time errors.

Second, you don't really need to ask how the user creates a
compile-time error, because it will occur if ANY user runs the script
that can't compile. It doesn't matter what the user did - it's not a
runtime exception.

Third, it's pretty trivial to add error handling to your application.
The site-wide error handler can capture a lot of information about
compile-time errors or runtime exceptions. The onError event (or
CFERROR tag, if you're still using Application.cfm) can capture a lot
of information about runtime exceptions - you can easily capture all
values sent to the server for the request that generated the
exception. You can log them in an existing log file or a custom log
file using CFLOG.

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:338398
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Matt Robertson

Are you trying to retrieve coldFusion code from a database and then execute it?

-- 
-...@robertson--
Janitor, The Robertson Team
mysecretbase.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:338399
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Catching Invalid CFML construct found in OnError

2010-10-20 Thread Tony Bentley

How do you catch compile time errors when they occur? Regardless if a
template was tested or not. I understand best practices and that your code
should be tested but it doesn't mean it will never happen. So when it does,
how do you deal with it? If I get a server error from my applications, I get
an email but these are run time only errors. So logging is good for tracing
but not for learning if and when they occur. Seems like any error regardless
of how it happens should be sent through onError since ColdFusion doesn't
have any build tools so to speak to check before run time occurs. I figured
out a solution but it only works for ajax requests (pass back the html to a
function if the error code is 500). I'm not sure about page requests.


~|
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:338400
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Catching Invalid CFML construct found in OnError

2010-10-20 Thread Dave Watts

 How do you catch compile time errors when they occur? Regardless if a
 template was tested or not. I understand best practices and that your code
 should be tested but it doesn't mean it will never happen. So when it does,
 how do you deal with it? If I get a server error from my applications, I get
 an email but these are run time only errors. So logging is good for tracing
 but not for learning if and when they occur. Seems like any error regardless
 of how it happens should be sent through onError since ColdFusion doesn't
 have any build tools so to speak to check before run time occurs. I figured
 out a solution but it only works for ajax requests (pass back the html to a
 function if the error code is 500). I'm not sure about page requests.

The site-wide error handler will catch compile-time errors.

But again, if a program won't compile, it won't work for anybody. When
you write a program, you have to run it at least once, right?
Otherwise, how do you know if it works at all?

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:338401
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Catching Invalid CFML construct found in OnError

2010-10-20 Thread Tony Bentley

Okay so running the code is gonna have to be the answer. The original reason
for asking was because in my Ajax app I was not able to pass a custom header
if I got a compile time error so catching it was a bit more difficult. It
makes sense on a page request but an ajax request could be messy.
Fortunately I have a dedicated server, otherwise I'd be screwed I think.
Thanks Dave.


~|
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:338402
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Importing from CSV to a database

2010-10-20 Thread Claude Schnéegans

 Did you forget the row number or is that typo?

Actually, I'm in a loop on the query, I thought the row number would be 
implicit as usual.
But you're right, queryName[column name][queryName.currentRow] does work.
This is kind of weird since queryName.columnName works, bur not 
queryName[columnName]

Thanks anyway, you solved my problem.


~|
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:338403
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl

yep.






Are you trying to retrieve coldFusion code from a database and then execute it?

-- 
-...@robertson--
Janitor, The Robertson Team
mysecretbase.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:338404
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl

Please tell me this can be done :0


Are you trying to retrieve coldFusion code from a database and then execute it?

-- 
-...@robertson--
Janitor, The Robertson Team
mysecretbase.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:338405
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: totaling items in a recordset

2010-10-20 Thread Michael Grant

You should read the rest of this thread Joel.

On Wed, Oct 20, 2010 at 4:46 PM, Joel Black j...@blackbeardesign.comwrote:


 You can query the database to extract the records you want, then query the
 query for a total.  This example actually gets the total if there are
 multiple quantity for each item

 !--- get the totals ---
 cfquery dbtype=query name=total
 SELECT SUM(PriceSold*Quantity) AS TheTotal
 FROM cart
 /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:338406
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CFExchange Connection Problems

2010-10-20 Thread raiola

Hi all

 

This is my first post to this group.

 

I have started working with the Microsoft exchange integration with CF9
however I receive the following error message

 

Exchange service is not available on 192.168.0.1.

 

cfexchangeConnection

 action=open

 username=myusername

 password=mypassword/

 server=192.168.0.1

 connection=testconn1

 

MS exchange 2003 is running on 192.168.0.1 and works as I am able to send
emails from within cf successfully with 192.168.0.1 setup in cf admin  as
the ip address for the exchange server.

 

Regards

Claude Raiola (B.Econ Acc; B.Hot. Mngt)
Samaris Software
Email:  mailto:i...@trackingcentral.om.au i...@samaris.net
Website:  http://www.TrackingCentral.com.au www.SAMARIS.net
Mobile: 0414 228 948

 




~|
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:338407
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Kym Kovan

On 21/10/2010 11:26, Torrent Girl wrote:

 Please tell me this can be done :0


yes, indirectly. The editor will by default change any  or  to their 
equivalents lt: and  gt;

One has to ask who is going to write this code? It is the world's second 
biggest security issue letting code be created this way...



-- 

Yours,

Kym Kovan
mbcomms.net.au


~|
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:338408
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Importing from CSV to a database

2010-10-20 Thread Leigh

 This is kind of weird since queryName.columnName works, bur
 not queryName[columnName]

I guess the difference is queryName[columnName] gives you access to the 
column array. I thought it was strange at first too. But realized it is a good 
thing, since it allows you to access values in any row with array notation. 
Just change the row index.

-Leigh 


  

~|
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:338409
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl

Developers will write it.

Its in a protected CMS.

Just forms and cfoutput tags are really going to be the only code in the CMS.

We just want to have a completely dynamic site.

I found this snippet:

cffunction name=CleanUpCode access=public returntype=string output=true
cfargument name=string type=string required=true/
 cfset string = #Replace(string, rsquo;, ', all)#
 cfset string = #Replace(string, lt;, , all)#
 cfset string = #Replace(string, gt;, , all)# 
  cfreturn string
/cffunction

at the following url 

http://cksource.com/forums/viewtopic.php?f=6t=13848start=0

but my brain is too fried to put it all together. Actually I don't think it 
will work for me because I have different translations of the text.




On 21/10/2010 11:26, Torrent Girl wrote:

 Please tell me this can be done :0


yes, indirectly. The editor will by default change any  or  to their 
equivalents lt: and  gt;

One has to ask who is going to write this code? It is the world's second 
biggest security issue letting code be created this way...



-- 

Yours,

Kym Kovan
mbcomms.net.au 

~|
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:338410
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Claude Schnéegans

 Just forms and cfoutput tags are really going to be the only code in the CMS.

Even so, you cannot have a CFML template create CFML code and expect it to be 
executed.
The only way to do it would be to write the code into a file, then CFINCLUDE 
it, kind of cumbersome,
especially in a multiuser environment.


~|
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:338411
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: fckEditor and Coldfusion tags

2010-10-20 Thread andy matthews

ColdFusion has a function called Evaluate. One way to run this code would be
to pass the contents of your dbField into the function. The problem is that
if it contained anything OTHER than CF code it would probably die.

Another option might be for the user to input their code, then you save it
out as a cf file on the file system and save a reference to it's path. Then
you could execute the file anytime you wanted, but still save changes to it.


andy


-Original Message-
From: Torrent Girl [mailto:torrentg...@gmail.com] 
Sent: Wednesday, October 20, 2010 5:12 PM
To: cf-talk
Subject: fckEditor and Coldfusion tags


Hello all.

I built a Content Management system that uses the fckEditor.

The problem is that when a user adds CF tags, they aren't read correct when
the content is retrieved from the database.

I did a bit of research which lead me to the following url which instructed
me to edit the fckconfig.js file.

http://www.cfshopkart.org/viewtopic.php?f=12t=125

I changed the file as instructed and the cf tags are still not being read.

Any suggestions? 



~|
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:338412
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl

This function is working for me.

cffunction name=CleanUpCode access=public returntype=string output=true 
cfargument name=string type=string required=true/  
cfset string = #Replace(string, ’, ', all)#  
cfset string = #Replace(string, , , all)#  
cfset string = #Replace(string, , , all)#   
cfreturn string 
/cffunction 

The content is displaying correctly.

Now I have to add it to my dynamically retrieved language translations :0


~|
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:338413
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl

hmmm...maybe I'll add the function before i enter the text into the DB





 This function is working for me.
 
 cffunction name=CleanUpCode access=public returntype=string 
 output=true cfargument name=string type=string 
 required=true/  
 cfset string = #Replace(string, ’, ', all)#  
 cfset string = #Replace(string, , , all)#  
 cfset string = #Replace(string, , , all)#   
 cfreturn string 
 /cffunction 
 
 The content is displaying correctly.
 
 Now I have to add it to my dynamically retrieved language translations 
 :0


~|
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:338414
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Torrent Girl

I spoke too soonit's not working


hmmm...maybe I'll add the function before i enter the text into the DB 

~|
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:338415
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Mike Kear

I get round this issue in my CMS by having a fileName field.  For
security reasons, this field only appears in forms offered to
validated users who have permission to upload such files.  (not
many!).They can upload the file, using the uploader on the
'content' page,   then instead of putting content in the CKEditor,
they put the name of the CFM file in that 'filename' field.

When I produce the page,   the logic is like this:

cfif  len(content.fileName) GT '0' cfinclude
template=/includes/clientfiles/#content.filename#/cfelse ,   yada
yada yada

This allows me to have some pages produced programmatically,  while
the majority are simple reads from the database and then rendered.

Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month


On Thu, Oct 21, 2010 at 1:22 PM, Torrent Girl moniqueb...@gmail.com wrote:

 I spoke too soonit's not working


hmmm...maybe I'll add the function before i enter the text into the DB

 

~|
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:338416
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Fckeditor html vs xhtml

2010-10-20 Thread Mike Kear

Yes.  Upgrade to the latest version of FCKEditor,  or even to the new CKEditor.

IF you are using the built-in editor in CF8,  you will find there's a
FCKEditor folder in the forms files   (in CF9 it's at
\CFIDE\scripts\ajax\FCKeditor  and from memory I think that's where it
is in CF8 too).   You can upgrade your version by unzipping the
FCKEditor download into that folder, making sure you have the newer
versions of the files in the same places.

The latest versions of the product produce XHTML as default,  and you
can edit the configuration if you want to use the older HTML



Cheers
Mike Kear
Windsor, NSW, Australia
Adobe Certified Advanced ColdFusion Developer
AFP Webworks
http://afpwebworks.com
ColdFusion 9 Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month



On Tue, Oct 19, 2010 at 1:45 PM, Terry Troxel te...@it-werks.com wrote:

 Is there anyway to configure Fckditor so when it writes richtext in CF8 it
 switches between shorttag and longtag?

 Ie: br br / foe example.



 Terry




 

~|
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:338417
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: fckEditor and Coldfusion tags

2010-10-20 Thread Matt Robertson

 The only way to do it would be to write the code into a file, then CFINCLUDE 
 it, kind of cumbersome,

Not quite the only way.

1. Write the code in the editor ... as if it were a code editor :-|
2. Store the form field data using the gymnastics described earlier.
3. Publish the data as a discrete .CFM template that you use somehow
in your application.  Since its a physical .CFM you can CFINCLUDE it,
CFMODULE it, call it directly as a discrete template etc.

If its a CMS you could use code to auto-handle naming, pathing etc.
etc.  My CMS does all that now but I don't allow CF code to be written
into the pages it publishes.  On the surface it doesn't sound like an
ideal way to write code and build applications but its a big world I
guess and someone needs to do it.  Glad its not me.

-- 
-...@robertson--
Janitor, The Robertson Team
mysecretbase.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:338418
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm