Re: XMLSearch not thread safe

2008-08-08 Thread James Holmes
A duplicate() deep copy will work in a similar way to the XMLParse as you say. We're comparing various workarounds including duplicate() and reparsing. If anyone else gets the time to do this we can compare notes. On Fri, Aug 8, 2008 at 10:30 PM, Brad Wood [EMAIL PROTECTED] wrote: James, to

Re: XMLSearch not thread safe

2008-08-07 Thread James Holmes
Yes, the tests I'll be doing tomorrow will be with jmeter. I'll post the results when we have them. On Thu, Aug 7, 2008 at 4:24 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 06 Aug 2008, Brad Wood wrote: iframes aren't good for load testing. Browsers like IE follow spec and only

XMLSearch not thread safe

2008-08-06 Thread James Holmes
The CF7 version of XMLSearch() is not thread safe (as noted in the livedocs http://livedocs.adobe.com/coldfusion/7/htmldocs/0672.htm by a helpful person and confirmed by us on several unfortunate occasions over the last few days). Does anyone know if this is fixed in CF8? -- mxAjax / CFAjax

Re: XMLSearch not thread safe

2008-08-06 Thread James Holmes
, and thread B modified the XML ob at the same time, I don't think I'd expect thread A to have updated results, but rather the results that would have been right at the time it began the search. On Wed, Aug 6, 2008 at 1:22 AM, James Holmes [EMAIL PROTECTED] wrote: The CF7 version of XMLSearch

Re: XMLSearch not thread safe

2008-08-06 Thread James Holmes
Another reference: http://davequested.blogspot.com/2007_02_01_archive.html On Wed, Aug 6, 2008 at 7:54 PM, James Holmes [EMAIL PROTECTED] wrote: This (old) post details it rather well: http://forums.devshed.com/coldfusion-development-84/caching-xml-in-cfcs-mx-7-problem-293958.html Just

Re: XMLSearch not thread safe

2008-08-06 Thread James Holmes
I'm attempting to produce a simple, definitive test case based on code we know to cause the problem. I'll post it when it's done. On Wed, Aug 6, 2008 at 9:42 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 06 Aug 2008, James Holmes wrote: Does anyone know if this is fixed in CF8

Re: XMLSearch not thread safe

2008-08-06 Thread James Holmes
Was that in CF7 or 8? That's definitely the issue we and others see. On Thu, Aug 7, 2008 at 6:40 AM, Brad Wood wrote: This put a giant light bulb over my head. I worked on an app at my last job that would run concurrent xmlsearch's on a shared XML object in the application scope. It always

Re: cfswitch

2008-08-04 Thread James Holmes
The docs are pretty clear (http://cfquickdocs.com/cf8/?getDoc=cfcase): The value or values must be simple constants or constant expressions, not variables. On Mon, Aug 4, 2008 at 10:12 PM, Brian Dumbledore [EMAIL PROTECTED] wrote: Can someone confirm that we cann't actually use variables in

Re: Null/empty values from the database.

2008-08-04 Thread James Holmes
On Mon, Aug 4, 2008 at 11:18 PM, Ioannis Papanikolaou [EMAIL PROTECTED] wrote: Browser is throughing error Variable RETURN is undefined however I know that if I my results from the DB are not empty the function works. Right - you are in a cfoutput loop and when there are no results in

Re: securing pdf's?

2008-08-04 Thread James Holmes
Serve the docs using cfcontent and secure the folder from direct access using your webserver. On Tue, Aug 5, 2008 at 10:00 AM, Jessica Kennedy [EMAIL PROTECTED] wrote: I have a directory of .pdf files nested within a secure section of my website. However, the application is not firing when a

Re: Reloading CFC's?

2008-08-03 Thread James Holmes
Is the CFC in the application scope? If so, you need to have some way of re-creating it in that scope. The restart you just did will have done this. It's better to do it programatically. On Sun, Aug 3, 2008 at 11:10 PM, Phillip M. Vector [EMAIL PROTECTED] wrote: Strange. I unchecked it (thanks)

Re: cfflush in CF 8

2008-07-28 Thread James Holmes
Copy and paste the link carefully. The page is working fine. On Tue, Jul 29, 2008 at 10:23 AM, Wes Middendorff [EMAIL PROTECTED] wrote: This link no longer works, does anyone know what this solution was supposed to be? My solution for cfflush on CF8 with IIS:

Re: CFajaxproxy VS AjaxCFC

2008-07-26 Thread James Holmes
It's returning a JSON string. use JSON.parse() on the string and you'll get a JavaScript object with arrays in it. On Sun, Jul 27, 2008 at 8:08 AM, Ioannis Papanikolaou [EMAIL PROTECTED] wrote: Hello everyone, I have deside to use the new CFajaxproxy. The functionality is truly simple from

Re: Is this a CF bug or just a Java behavior?

2008-07-25 Thread James Holmes
Add this to your demo: Is val(c) EQ val(6.2): #val(c) EQ val(6.2)# br / Val() sorts this out for you. On Sat, Jul 26, 2008 at 4:19 AM, Qasim Rasheed wrote: One of my fellow developer discovered some weird behaviour with ColdFusion number manipulation. Here is an example cfset a = 26.2 /

Re: Is this a CF bug or just a Java behavior?

2008-07-25 Thread James Holmes
Did you just say you should NEVER do something? And you hassled us for NEVER doing a query without a cfqueryparam. Typical. On Sat, Jul 26, 2008 at 4:33 AM, Claude Schneegans wrote: As a basic principle in programing, one should never (and I really mean *never* ;-) compare floating values,

Re: Load testing software for website with AD integrated authenti cation

2008-07-24 Thread James Holmes
Your load testing tool, if it's worth anything, should come with a browser proxy that records everything you do and provides a script you can then edit and to which you can add username/password pairs from a text file. On Thu, Jul 24, 2008 at 8:35 PM, Burns, John D [EMAIL PROTECTED] wrote: How

Re: (ot) URL Hack Attempt Leaves Me Scractching My Head...

2008-07-24 Thread James Holmes
Do you fully understand what cfqueryparam does when binding text parameters into the query? On Thu, Jul 24, 2008 at 9:54 PM, Claude Schneegans [EMAIL PROTECTED] wrote: 2. if both fields are text, CFQUERYPARAM won't detect anything harmful and won't help anyway. -- mxAjax / CFAjax docs and

Re: (ot) URL Hack Attempt Leaves Me Scractching My Head...

2008-07-24 Thread James Holmes
So you know that it *always* prevents SQL injection in a standard query (select, update or delete). That's a good enough reason to always use it for me. On Thu, Jul 24, 2008 at 10:58 PM, Claude Schneegans [EMAIL PROTECTED] wrote: Do you fully understand what cfqueryparam does when binding text

Re: (ot) URL Hack Attempt Leaves Me Scractching My Head...

2008-07-24 Thread James Holmes
This is not the only case. If you use pooled statements on the datasource (which is a default for CF) you can demonstrate another case: Create a table. Select * from it in a CF template. Add a column to the table in the DB. Run the same template again. See the problem. On Thu, Jul 24, 2008 at

Re: (ot) URL Hack Attempt Leaves Me Scractching My Head...

2008-07-24 Thread James Holmes
I'll say it again. ANY string passed into cfqueryparam cannot be executed as SQL: select somecolumn from sometable where someothercolumn = cfqueryparam cfsqltype=varchar value=URL.TryToHackThis It is irrelevant what gets passed in the URL.TryToHackThis; it cannot be executed as a SQL statement.

Re: (ot) URL Hack Attempt Leaves Me Scractching My Head...

2008-07-24 Thread James Holmes
Obviously cfsqltype=varchar should be cfsqltype=cf_sql_varchar (my typo). On Thu, Jul 24, 2008 at 11:55 PM, James Holmes [EMAIL PROTECTED] wrote: I'll say it again. ANY string passed into cfqueryparam cannot be executed as SQL: select somecolumn from sometable where someothercolumn

Re: (ot) URL Hack Attempt Leaves Me Scractching My Head...

2008-07-24 Thread James Holmes
Jeez, and value=URL.TryToHackThis should be value=#URL.TryToHackThis# That's what I get for answering at midnight. On Thu, Jul 24, 2008 at 11:57 PM, James Holmes [EMAIL PROTECTED] wrote: Obviously cfsqltype=varchar should be cfsqltype=cf_sql_varchar (my typo). On Thu, Jul 24, 2008 at 11:55 PM

Re: Directory contents to list/array?

2008-07-23 Thread James Holmes
The query you get from cfdirectory is an array (or rather, its columns are): cfset randomFilename = yourCFFileQuery[name][randRange(1,yourCFFileQuery.recordCount)] On Wed, Jul 23, 2008 at 10:05 PM, Melissa Cope [EMAIL PROTECTED] wrote: Here's the story: We have about 20 logos. We want a random

Re: cfhttp: HTTPServerError

2008-07-17 Thread James Holmes
If you are running this in a CFC, have you var'd a cfhttp variable at the top of the method first? On Fri, Jul 18, 2008 at 4:57 AM, Scott Brady [EMAIL PROTECTED] wrote: It looks like it's not cfhttp, but the fact that our code isn't sending in the right parameters into the request. Not sure

Re: Little brainstorming help needed (developing email app)

2008-07-15 Thread James Holmes
I'd serve the images from a CF template that tracks the same URL variables. On Tue, Jul 15, 2008 at 5:35 AM, William Nichols [EMAIL PROTECTED] wrote: Trackable links. I am imaging a link going to say www.urlhere.com/filename.htm going to something like

Re: CFDocument and border-collapse

2008-07-15 Thread James Holmes
Security via JavaScript; that is hilarious! On Tue, Jul 15, 2008 at 4:01 AM, Azadi Saryev [EMAIL PROTECTED] wrote: just disable js in your browser and see all the answers. they are all there, all the time (not just first time), way at the end of the page, after all the you need to be a member

Re: Components anomalies?

2008-07-15 Thread James Holmes
Did you specify output=no in your component and the methods? On Mon, Jul 14, 2008 at 11:05 PM, Lawrence Mak [EMAIL PROTECTED] wrote: Apparently it was the br/ tag that put all those spaces in each layoutarea and stopped a component binding cfgrid from working. I was even able to reproduce it

Re: Am I a thread or not ?

2008-07-15 Thread James Holmes
I'd use StructKeyExists(THREAD,name), as someone would be going out of their way to break their code by creating a struct called thread with a name key. On Tue, Jul 15, 2008 at 2:18 AM, Alan Rother [EMAIL PROTECTED] wrote: Point taken... ASSUMING... You haven't explicitly defined the variable

Re: Multiple queries from a CFC? Drop in Array?

2008-07-13 Thread James Holmes
I'd return a struct. Put each query result into one key of the struct. On Mon, Jul 14, 2008 at 12:43 PM, Ian Rutherford [EMAIL PROTECTED] wrote: I am trying to move some of my database access to cfcs and am trying to figure out how to get a set of five query results in a stored procedure out

Re: cffile error: String index out of range: -1

2008-07-10 Thread James Holmes
The fileField parameter is incorrect - just use the name of the form element: fileField=fileName On Thu, Jul 10, 2008 at 4:45 PM, Kamru Miah [EMAIL PROTECTED] wrote: While using cffile upload, I seems to be getting 'String index out of range: -1' after the file is placed in the application

Re: The error occurred on line -1

2008-07-09 Thread James Holmes
There are plenty of post 8.01 hotfixes: http://kb.adobe.com/selfservice/viewContent.do?externalId=kb402604 On Thu, Jul 10, 2008 at 6:55 AM, David Critchley [EMAIL PROTECTED] wrote: We are upgrading to 8.0.1 now. Hopefully this addresses the problem, if not I will post back here again. I

Re: cfimage captcha problem - broken images SOMETIMES

2008-07-08 Thread James Holmes
Well, hitting the image URL directly: http://www.saline1990.com/CFFileServlet/_cf_captcha/_captcha_img1333627722341645062.png about half the time I get a 404 error and the other half I get an image. I guess that's where the problem lies, whatever it is. On Wed, Jul 9, 2008 at 9:42 AM, Rick Root

Re: Coldfusion restarting itself

2008-07-07 Thread James Holmes
While Java 6 is the default, it breaks CF in a few respects: 1) The Java 6 classloader bug mans that it loads classes much slower than Java 1.5; a real problems for frameworks like Model-Glue etc. 2) JRun's internal webserver SSL doesn't work with Java 6. 3) It appears the hotspot compiler

Re: Coldfusion restarting itself

2008-07-07 Thread James Holmes
Ah, sorry to hear that. Hopefully, a clean install of Enterprise helps. On Tue, Jul 8, 2008 at 11:07 AM, Rick Root [EMAIL PROTECTED] wrote: Alright, I just downgraded to JVM 1.5_15 I re-enabled hotspot compilation (removed the -Xint arg) Had to delete all the existing class files in the

Re: Coldfusion restarting itself

2008-07-05 Thread James Holmes
, James Holmes [EMAIL PROTECTED] wrote: Have you cleared out the contents of the cfclasses folder? Try stopping CF, deleting everything in that folder (C:\CFusionMX\wwwroot\WEB-INF\cfclasses or the equivalent) and then starting CF. This might make the original error go away. Trying that now, I'll

Re: Coldfusion restarting itself

2008-07-04 Thread James Holmes
Try using the JVM startup parameters described in the blog entry to see if that stops the issue from occurring. On Fri, Jul 4, 2008 at 12:08 PM, Rick Root [EMAIL PROTECTED] wrote: This has happened twice in the last 5 minutes. Exact same issue as described below. I have fusionreactor system

Re: Coldfusion restarting itself

2008-07-04 Thread James Holmes
Have you cleared out the contents of the cfclasses folder? Try stopping CF, deleting everything in that folder (C:\CFusionMX\wwwroot\WEB-INF\cfclasses or the equivalent) and then starting CF. This might make the original error go away. On Sat, Jul 5, 2008 at 2:50 AM, Rick Root [EMAIL PROTECTED]

Re: CF8 on SLES 10.2 - where is an updated glibc ?

2008-07-03 Thread James Holmes
:44 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On Wednesday 02 Jul 2008, James Holmes wrote: I'll be watching this carefully - we've just deployed on SLES 32 bit because we were aware of this issue Did you report it to Adobe anywhere (contact install support, ...) ? -- mxAjax / CFAjax docs

Re: Coldfusion restarting itself

2008-07-03 Thread James Holmes
This looks like a bug in the Sun java hotspot compiler (the thing that converts Java bytecode into native code after a certain number of calls to the same class). http://www.talkingtree.com/blog/index.cfm/2006/4/28/Understanding-HotSpot-in-Plain-English On Fri, Jul 4, 2008 at 11:45 AM, Rick Root

Re: CF8 on SLES 10.2 - where is an updated glibc ?

2008-07-02 Thread James Holmes
I'll be watching this carefully - we've just deployed on SLES 32 bit because we were aware of this issue and we wanted to wait until it was resolved and 64 bit had more exposure in the wild. Please keep us all posted... On Wed, Jul 2, 2008 at 9:58 PM, Tom Chiverton [EMAIL PROTECTED] wrote: On

Re: Any way to make this query work like this?

2008-06-30 Thread James Holmes
Yes, you forgot the () around the cfqueryparam tag. Check my code again... On Mon, Jun 30, 2008 at 9:14 PM, Rick Faircloth [EMAIL PROTECTED] wrote: Ok... it's a draw. I think you both replied simultaneously and with equal fervor! Now, back to the issue at hand! :o) The solution isn't

Re: Any way to make this query work like this?

2008-06-30 Thread James Holmes
Crap, even my code had a typo; I missed a : where p.city in (cfqueryparam cfsqltype=cf_sql_varchar value=#session.approved_cities# list=true) On Mon, Jun 30, 2008 at 9:17 PM, James Holmes [EMAIL PROTECTED] wrote: Yes, you forgot the () around the cfqueryparam tag. Check my code again

Re: Any way to make this query work like this?

2008-06-29 Thread James Holmes
select p.street_number, p.street_name, p.city from properties p where p.city in (#session.approved_cities#) Although you should use cfqueryparam. On Mon, Jun 30, 2008 at 12:56 PM, Rick Faircloth [EMAIL PROTECTED] wrote: Hi, all... Any way to make this kind of

Re: Any way to make this query work like this?

2008-06-29 Thread James Holmes
In fact cfqueryparam is the best solution, now I see your data is a string: select p.street_number, p.street_name, p.city from properties p where p.city in (cfqueryparam cfsqltype=cf_sql_varchar value=#session.approved_cities# list=true) On Mon, Jun 30, 2008 at 1:07 PM, James Holmes [EMAIL

Re: Any way to make this query work like this?

2008-06-29 Thread James Holmes
Agreed, hence my followup post. On Mon, Jun 30, 2008 at 1:10 PM, Charlie Griefer [EMAIL PROTECTED] wrote: On Sun, Jun 29, 2008 at 10:07 PM, James Holmes [EMAIL PROTECTED] wrote: select p.street_number, p.street_name, p.city from properties p where p.city

Re: variables.whatever isn't defined in CFC

2008-06-24 Thread James Holmes
Yes, that's the general idea, although as I recall the access needs to be remote, not public. On Tue, Jun 24, 2008 at 11:17 PM, Ian Rutherford [EMAIL PROTECTED] wrote: So I would have something like this? cfcomponent displayname=couponWrapper hint=Used by remote services to handle coupon

Re: (ot) mod_rewrite with VirtualHost and .htaccess

2008-06-24 Thread James Holmes
The vhost file also needs to configure Options FollowSymLinks for the sites and the .htaccess file mey also need to also have RewriteEngine On. On Wed, Jun 25, 2008 at 5:14 AM, Adrian Lynch [EMAIL PROTECTED] wrote: I'd like to have my rewrite rules in a .htaccess per site. I'm using virtual

Re: CF tags in CFFILE write

2008-06-24 Thread James Holmes
Build the output using cfsavecontent and write the result using the cffile tag. On Wed, Jun 25, 2008 at 8:37 AM, Rick Sanders [EMAIL PROTECTED] wrote: Hey everyone, I need to dynamically write a javascript file from Cold fusion. However, it keeps giving me errors. Is there a way to write a

Re: cffile upload temporary folder changes

2008-06-24 Thread James Holmes
, denstar [EMAIL PROTECTED] wrote: On Sun, Jun 22, 2008 at 9:39 PM, James Holmes wrote: I knew this would be a stumper. I win the list! Patience, grasshopper, the list is not always fast like the rabbit. :-) You tried setting environment variables and whatnot? Passing JVM arguments

Re: How to select an entry from an array

2008-06-23 Thread James Holmes
You can also use the underlying Java object's indexOf() method: cfset theIndex = myArray.indexOf(XYZ) Just remember to add 1 to the result. On Tue, Jun 24, 2008 at 6:08 AM, Bobby Hartsfield [EMAIL PROTECTED] wrote: This will either return 0 if the string isn't found or the array position in

Re: variables.whatever isn't defined in CFC

2008-06-23 Thread James Holmes
You've dumped application.admin.ds to make sure something is in that? On Tue, Jun 24, 2008 at 11:55 AM, Ian Rutherford [EMAIL PROTECTED] wrote: I restarted CF several times to make sure. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/

Re: variables.whatever isn't defined in CFC

2008-06-23 Thread James Holmes
Further to this, in which method in Application.cfc is this code being run? On Tue, Jun 24, 2008 at 12:04 PM, James Holmes [EMAIL PROTECTED] wrote: You've dumped application.admin.ds to make sure something is in that? On Tue, Jun 24, 2008 at 11:55 AM, Ian Rutherford [EMAIL PROTECTED] wrote

Re: variables.whatever isn't defined in CFC

2008-06-23 Thread James Holmes
You need to write a static wrapper CFC that has inside it a reference to your application scoped CFC. It mirrors the methods and proxies the calls to your app scoped object. On Tue, Jun 24, 2008 at 1:22 PM, Ian Rutherford [EMAIL PROTECTED] wrote: Okay, I figured out the problem but don't know

Re: cffile upload temporary folder changes

2008-06-22 Thread James Holmes
I knew this would be a stumper. I win the list! On Wed, Jun 11, 2008 at 12:34 PM, James Holmes [EMAIL PROTECTED] wrote: I predict this is another stumper. Occasionally, on one of our servers, the temporary folder into which cffile uploads go before they are moved to the final location changes

Re: determine host name on CFHTTP redirect

2008-06-21 Thread James Holmes
I had to do the work around you suggested rather recently. It's the only easy way I could think of to solve the problem. I'd also like to see a struct come back with every URL redirect followed along the way to get to the final content that's returned. On Sat, Jun 21, 2008 at 4:09 AM, Brad Wood

Re: Clarification Required Concerning CFC...

2008-06-21 Thread James Holmes
The variables scope in page1.cfm and the variables scope in page2.cfm are called the same thing and are not related. The variables scope in cfc1.cfc is also not related. It's perfectly consistent. On Sun, Jun 22, 2008 at 11:10 AM, Rick Faircloth [EMAIL PROTECTED] wrote: That would make less

Re: Waaahhhh! Why won't my CFC work!

2008-06-19 Thread James Holmes
The method needs to return THIS or Rick's code in the previous post will fail. cffunction name=init cfargument name=dsn cfset variables.dsn = arguments.dsn / cfreturn this /cffunction On Fri, Jun 20, 2008 at 5:34 AM, Matt Williams [EMAIL PROTECTED] wrote: On Thu, Jun 19, 2008 at 4:27 PM, Rick

Re: How can I restate this without using EVALUATE?

2008-06-19 Thread James Holmes
Actually it can, technically speaking, although why you'd do this is beyond me: In dynamictest.cfc: cfcomponent cffunction name=init access=public returntype=dynamictest cfargument name=someProperty type=string required=yes cfset

Re: How can I restate this without using EVALUATE?

2008-06-19 Thread James Holmes
Sure, but they could use cfinvoke to do the job too. On Fri, Jun 20, 2008 at 11:02 AM, Mark Kruger wrote: This is done frequently in frameworks that use controllers (ie model glue) -mark Mark A. Kruger, CFG, MCSE www.coldfusionmuse.com -Original Message- From: James Holmes Sent

Re: JNDI, Coldfusion and the AdminAPI

2008-06-18 Thread James Holmes
Does that have anything to do with this? http://kb.adobe.com/selfservice/viewContent.do?externalId=kb403432 On Wed, Jun 18, 2008 at 6:02 AM, Kenton Gray [EMAIL PROTECTED] wrote: I am 99% sure coldfusion 8 has as massive JNDI bug, which makes me think no-one is using this feature. Any

Re: SOLUTION: JVM Tuning and cthreads... I'm Back

2008-06-18 Thread James Holmes
If the memory is filled, have you tried increasing the amount of memory available? On Wed, Jun 18, 2008 at 4:20 AM, Ian Skinner [EMAIL PROTECTED] wrote: At least partially. After getting appropriate approval from the powers-that-be I upgraded the ColdFusion server from 8.0.0 to 8.0.1. This

Re: Cold Fusion Cookies

2008-06-18 Thread James Holmes
What does the firefox web developer extension say about the cookie when it's created? On Wed, Jun 18, 2008 at 2:15 AM, Cody W. [EMAIL PROTECTED] wrote: http://69.26.48.70Hello, I am currently working on a small application that uses CFcookies to let people into this particular microsite. If

Re: Date parsing and formatting...

2008-06-18 Thread James Holmes
Di you try ParseDateTime() ? On Thu, Jun 19, 2008 at 9:26 AM, Rick Sanders [EMAIL PROTECTED] wrote: OK, here's the scoop... I'm grabbing the date from an XML web service which is returning the date in the following format: May 21, 2008 How can I change it to 05/21/2008 ? Naturally I

Re: ComboBox?

2008-06-18 Thread James Holmes
ExtJS. On Thu, Jun 19, 2008 at 9:44 AM, Les Mizzell [EMAIL PROTECTED] wrote: I've been searching, but so far, not found anything that I can get to work or does what I need... All I need is a dropdown list that I can type a new value into if what I want (coming from a database) isn't already

Re: Hours long process how to control?

2008-06-18 Thread James Holmes
Use a cfsetting tag to change the page timeout. On Thu, Jun 19, 2008 at 9:46 AM, Gonzo Rock [EMAIL PROTECTED] wrote: What's the best way to manage a process that takes a couple of hours to complete? It's reading a records set from a database(2 seconds to load the query) and then given the

Re: Date parsing and formatting...

2008-06-18 Thread James Holmes
and the error I get is: May 21, 2008 is an invalid date or time string My code: cfset myDoc=XMLParse(XMLResult) cfset xdate = #ToString(myDoc.michiganMasons.event_begin_date[1])# cfset cdate = #ParseDatetime(xdate)# Rick -Original Message- From: James Holmes [mailto:[EMAIL PROTECTED] Sent

Re: Accessibility testing

2008-06-17 Thread James Holmes
How would selenium help with accessibility testing? On Wed, Jun 18, 2008 at 9:13 AM, denstar [EMAIL PROTECTED] wrote: I think it would be a safe bet that 98% of us should be testing more... I know I should do it more often. perhaps some type of automated deal, as you suggest... h

Re: application design - frames or no frames?

2008-06-16 Thread James Holmes
On Tue, Jun 17, 2008 at 8:53 AM, Mike Little wrote: what i wanted to know is, are frames still a viable option for application design? I'm going to throw on my flameproof suit and say, categorically, no. They've even been removed from the upcoming version of the HTML standard. -- mxAjax /

Re: application design - frames or no frames?

2008-06-16 Thread James Holmes
: * frame * frameset * noframes http://www.w3.org/TR/html5-diff/ On Tue, Jun 17, 2008 at 9:47 AM, denstar [EMAIL PROTECTED] wrote: On Mon, Jun 16, 2008 at 7:00 PM, James Holmes wrote: On Tue, Jun 17, 2008 at 8:53 AM, Mike Little wrote: what i wanted to know is, are frames still a viable

Re: Using Java in ColdFusion

2008-06-14 Thread James Holmes
If you don't want to restart CF to use a new class/jar, you can use a classloader: http://javaloader.riaforge.org/ On Sun, Jun 15, 2008 at 4:42 AM, Dominic Watson [EMAIL PROTECTED] wrote: When using java classes before, I have had to restart ColdFusion for changes to take effect. I imagine /

Re: CF thinks 0F is boolean.

2008-06-13 Thread James Holmes
It is. Section 2.7.1 of the CF8 EULA clearly prohibits any decompiling. On Wed, Jun 11, 2008 at 2:58 PM, Brad Wood [EMAIL PROTECTED] wrote: I had gotten it in my head that it was illegal to decompile a closed-source program like Adobe ColdFusion -- mxAjax / CFAjax docs and other useful

Re: Jrun Memory Usage Problem: could fileexists() be the culprit?

2008-06-12 Thread James Holmes
CF8 ships with JDK 1.6 Version 1.6_06 isn't supported by CF8; 1.6_04 is the latest version showing in the support matrix. Regardless, 1.6_06 still suffers the classloader issue (which isn't fixed until 1.6u10 and that's still in beta). On Fri, Jun 13, 2008 at 9:01 AM, Alex DeMarco [EMAIL

cffile upload temporary folder changes

2008-06-10 Thread James Holmes
I predict this is another stumper. Occasionally, on one of our servers, the temporary folder into which cffile uploads go before they are moved to the final location changes from the correct cf_root/runtime/servers/coldfusion/SERVER-INF/temp/wwwroot-tmp/ to /var/tmp. Has anyone else experienced

Re: Recommendations for a Knowledgebase written in CFML?

2008-06-04 Thread James Holmes
Works for me (if that helps, which I suspect it doesn't). On Thu, Jun 5, 2008 at 11:47 AM, Raymond Camden [EMAIL PROTECTED] wrote: What was broken with the search? On Wed, Jun 4, 2008 at 10:17 PM, Alex Sherwood [EMAIL PROTECTED] wrote: Try perhaps riaforge.com? -- mxAjax / CFAjax docs and

Re: CF8 server for intranet, which OS? what hardware? what network?

2008-05-31 Thread James Holmes
If at all possible, put the DB on a different machine. Stick with 32 bit for now. 4 GB will be fine. If you value your data and really want a reliable server, get ECC RAM. AD (or any LDAP solution) is good for hundreds or thousands of users. For 10 users it may be overkill. On Sat, May 31,

Re: Best CF editor?

2008-05-30 Thread James Holmes
I'd want to look at code before assuming that it was built with a wizard. On Fri, May 30, 2008 at 4:56 PM, Mark Drew [EMAIL PROTECTED] wrote: I vill build a IDE that will last two zounsand yearz! Ehem... no.. its the fact that if you made the effort to know CFEclipse, in comparison to the

Re: Best CF editor?

2008-05-30 Thread James Holmes
When was the last time you looked at Dreamweaver's code view? On Fri, May 30, 2008 at 5:07 PM, Mark Drew [EMAIL PROTECTED] wrote: Its like reading that they have used Access compared to MS SQL to me. -- mxAjax / CFAjax docs and other useful articles: http://www.bifrost.com.au/blog/

Re: Best CF editor?

2008-05-29 Thread James Holmes
I'm one of these (apparently) rare Dreamweaver CF coders. We get code onto our test server with FTP and DW just makes this too easy. The new version (in beta, as mentioned before) not only has SVN integration (yay!) but it has code hinting for JQuery, Prototype and Spry, AIR authoring and the

Re: Best CF editor?

2008-05-29 Thread James Holmes
Heh, maybe we should all start a DW CF coders support/therapy group, to deal with all the discrimination and emotional abuse :-) On Fri, May 30, 2008 at 8:28 AM, Josh Nathanson [EMAIL PROTECTED] wrote: People used to say it's too slow compared to HomeSite/CFStudio but these people have now

Re: Best CF editor?

2008-05-29 Thread James Holmes
So are you assuming that all DW users are unskilled and only Eclipse users delve into frameworks and other cutting edge tech? On Fri, May 30, 2008 at 9:39 AM, Gerald Guido [EMAIL PROTECTED] wrote: I actually like that phrase and find it rather fitting. VERY Interesting. I would venture to say

Re: When is is time to upgrade to Enterprise Edition?

2008-05-29 Thread James Holmes
Yes, for a 1024 MB heap, the perm size is probably too small (it depends on your code, primarily). The perm size needs to be proportionately increased with the heap; try doubling it to 256 MB. On Fri, May 30, 2008 at 6:49 AM, Jaime Metcher [EMAIL PROTECTED] wrote: Have you tried making the perm

Re: Best CF editor?

2008-05-29 Thread James Holmes
I suspect it's actually a fair observation, unfortunately. It might have prompted the bizarre requirement I noted in a recent contract opportunity on CF-Jobs; the advertisement specified that the remote contractor must use CFEclipse. It's amazing that a choice of IDE could affect a teleworking

Re: Session and Request variables are being shared between users

2008-05-29 Thread James Holmes
You probably have a proxy or cache between your users and the servers, which is serving old data from the cache. You can control cache behavior with HTTP headers. On Thu, May 29, 2008 at 10:45 PM, Dustin Martin [EMAIL PROTECTED] wrote: Here is an EXTREMELY strange issue I'm having with an

Re: Problem with onSessionStart

2008-05-27 Thread James Holmes
For the record, CFID and CFTOKEN are used only for client variables when J2EE sessions are active. With J2EE sessions, the session is keyed to the JSESSIONID in-memory cookie. setClientCookies = false is fine with J2EE sessions if client variables aren't necessary. On Wed, May 28, 2008 at 1:48

Re: CFHTTP Post

2008-05-27 Thread James Holmes
Can you successfully do a GET request with no params or headers? On Wed, May 28, 2008 at 12:36 PM, Rick [EMAIL PROTECTED] wrote: I am trying to connect to CDGCommerce using CFHHTP. cfhttp url=https://secure.cdgcommerce.com/cdggateway.cgi; method=POST resolveurl=false throwonerror=Yes

CF WSRP solution?

2008-05-26 Thread James Holmes
Assuming no-one has already done it, is anyone interested in participating in an open source project to create a WSRP producer in CF? I've been looking at this for integration into a Sun Portal server and I think it would be of benefit for others; many hands make light work. -- mxAjax / CFAjax

Re: Coldfusion's execution time relative to C++

2008-05-22 Thread James Holmes
Especially when the hotspot optimiser starts compiling the java bytecode to native code. On Thu, May 22, 2008 at 10:21 PM, Scott Stewart [EMAIL PROTECTED] wrote: This is an assumption but.. Seeing as ColdFusion 7 and 8 compile to java byte code It *should* be in the same ratio ball park. --

Re: ColdFusion 8 Ajax questions

2008-05-20 Thread James Holmes
Does this help? http://www.coldfusionjedi.com/index.cfm/2007/8/5/Reminder-about-forms-and-ColdFusion-8-Ajax-Containers On Wed, May 21, 2008 at 12:54 AM, William Seiter [EMAIL PROTECTED] wrote: Hey all, I am currently embroiled with my first full coldfusion ajax system for a client. I am

Re: Default value in cfparam being used, even though variable exists

2008-05-20 Thread James Holmes
The sessionGateway is being called because cfparam evaluates the default argument whether or not it needs to assign it to something. Does your sessionGateway's getById() method automatically assign session.userBean or does it only return a value? Is it perhaps writing over a value passed by

Re: JMS ActiveMQ

2008-05-19 Thread James Holmes
http://javaloader.riaforge.org/ On Mon, May 19, 2008 at 10:14 PM, Rich [EMAIL PROTECTED] wrote: On Sat, May 17, 2008 at 3:55 AM, Adam Haskell wrote: Dependency conflicts are a fact of life as far as I have found. These can usually be avoided by getting everything into a classloader and

Re: CF Store Locator - almost there - order results

2008-05-18 Thread James Holmes
I can't see any ordering in that query; there's no order by clause. On Mon, May 19, 2008 at 11:21 AM, [EMAIL PROTECTED] wrote: This the last thing I have to figure out. I've got this CF store finder application that does what it's suppose to do. It takes the zipcode and the radius and

Re: JMS ActiveMQ

2008-05-17 Thread James Holmes
On Sat, May 17, 2008 at 3:55 AM, Adam Haskell wrote: Dependency conflicts are a fact of life as far as I have found. These can usually be avoided by getting everything into a classloader and calling the classes from that. -- mxAjax / CFAjax docs and other useful articles:

Re: freelance cf web developer wanted

2008-05-17 Thread James Holmes
Why would someone state that an offsite telecommuter must use CFEclipse as their development platform? If someone wants to code in vi or notepad, surely that's their problem and not the contracting company's? On Sat, May 17, 2008 at 4:40 AM, site mgt [EMAIL PROTECTED] wrote: Hello, Looking

Re: freelance cf web developer wanted

2008-05-17 Thread James Holmes
Yes, this is what I was getting at - the fact the SVN happens to be part of Eclipse doesn't preclude someone with DW and TortoiseSVN from being productive (sure, notepad may not be the best tool :-) On Sat, May 17, 2008 at 10:24 PM, Jeffry Houser [EMAIL PROTECTED] wrote: If someone I was hiring

Re: New error for me.

2008-05-16 Thread James Holmes
Have you verified that the user as which CF runs has access to the file? For example, try to su to the CF runtime user and then read the file. Check the permissions with ls -l and also getfacl (if your OS and filesystem supports ACLs). On Sat, May 17, 2008 at 3:23 AM, Ian Skinner [EMAIL

Re: Dealing with MySQL escape sequences

2008-05-15 Thread James Holmes
Encapsulate the value in a cfqueryparam tag, which you should always be doing anyway. On Fri, May 16, 2008 at 3:58 AM, Jim McAtee [EMAIL PROTECTED] wrote: I ran into a problem inserting records into a MySQL 5.0 database when there's a backslash as the final character of a string value. I never

Re: JRun 600MB+ shortly after boot up

2008-05-14 Thread James Holmes
It might be a classic case of the Java 6 classlaoder bug. Try the 1.5_13 JVM. On Thu, May 15, 2008 at 9:48 AM, Jason Durham [EMAIL PROTECTED] wrote: Here is a link to the error I receive when trying to load the index. The fusebox files haven't been altered except for a couple of variable

Re: defining variables in a new loop from an old loop

2008-05-13 Thread James Holmes
Eww. There's no need for evaluate(): cfset tempQuery = VARIABLES[Songs k] cfloop query=tempQuery cfoutput#tempQuery.name#/cfoutput /cfloop or of course just use the column name, since we're inside a loop: cfloop query=Songs#k# cfoutput#name#/cfoutput /cfloop On Tue, May 13,

Re: DateCompare or Diff? To determine if the Current Date is the Weekend or a Weekday

2008-05-13 Thread James Holmes
http://www.cfquickdocs.com/?getDoc=DayOfWeek DayOfWeek() Description: Determines the day of the week, in a date. Returns: The ordinal for the day of the week, as an integer in the range 1 (Sunday) to 7 (Saturday). So, switch DayOfWeek(Now()) case 1,7 - weekend. On Wed, May 14, 2008 at 9:38 AM,

Re: DateCompare or Diff? To determine if the Current Date is the Weekend or a Weekday

2008-05-13 Thread James Holmes
OK, so you use DayOfWeek() along with Hour(). On Wed, May 14, 2008 at 1:47 PM, Nate Willard [EMAIL PROTECTED] wrote: Dave James. This is for a time tracker tool, so I would like the weekend to start Friday at 6pm... Is there anyway to do a DateCompare for a set date range? The weekend

<    1   2   3   4   5   6   7   8   9   10   >