RE: Jsp Vs Cfm (CFMX) -- Test Code

2002-09-19 Thread Gaulin, Mark
What makes this so compelling (and so frustrating) is that we all are on the same side! This situation is often called violent agreement. It generally happens when everyone has a valid point. I think the cf *should* be better optimized folks need to ask themselves if CFMX is better/faster/more

RE: Verity

2002-09-27 Thread Gaulin, Mark
Look in the pdfs that come with CF5 (and maybe other versions). One of them (don't remember which) describes the verity query language in detail. Mark -Original Message- From: Adam Reynolds [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 9:20 AM To: CF-Talk Subject:

RE: Verity

2002-09-27 Thread Gaulin, Mark
at the appendix -Original Message- From: Gaulin, Mark [mailto:[EMAIL PROTECTED]] Sent: 27 September 2002 14:26 To: CF-Talk Subject: RE: Verity Look in the pdfs that come with CF5 (and maybe other versions). One of them (don't remember which) describes the verity query language in detail

RE: Ben's J2EE Book

2002-09-27 Thread Gaulin, Mark
I'm still waiting for Amazon to ship my order of Reality CF MX: Flash Integration, CFMX Web App Construction Kit, and Advanced CFMX App Development (a B.F. triple!)... it's been over a month and not a peep out of them. Frustrating! -Original Message- From: Ben Forta [mailto:[EMAIL

RE: cfhtmlhead

2002-09-27 Thread Gaulin, Mark
Try using text= and not text=''. You can get the double quotes in a quoted string by doubling them up (so text=a string with another string in it) -Original Message- From: Critter [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 12:09 PM To: CF-Talk Subject: cfhtmlhead oi

RE: Ben's J2EE Book

2002-09-27 Thread Gaulin, Mark
Well, that might be me, since I don't know Flash or ActionScript at all but don't want a beginners book. -Original Message- From: Matt Liotta [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 2:57 PM To: CF-Talk Subject: RE: Ben's J2EE Book Now all we need is for someone to

RE: So many problems with CFC scopes...

2002-09-27 Thread Gaulin, Mark
Why not put the not IsDefined() test right inside any udf library that can potentially be included more than one time? (Just put the body of the udf inside the CFIF block.) This is like the old #ifndef _MYFILE_H_, #define _MYFILE_H_ style that is used all the time in C and C++ programming.

RE: cfhtmlhead

2002-09-27 Thread Gaulin, Mark
That's a nice trick for handling long strings. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 2:32 PM To: CF-Talk Subject: RE: cfhtmlhead I usually do this: cfsavecontent variable=script SCRIPT LANGUAGE=JavaScript

RE: Ben's J2EE Book

2002-09-27 Thread Gaulin, Mark
. Matt Liotta President CEO Montara Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 -Original Message- From: Gaulin, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, September 27, 2002 11:18 AM To: CF-Talk Subject: RE: Ben's J2EE Book I'm still waiting for Amazon to ship my

RE: Variable locking

2002-10-04 Thread Gaulin, Mark
Actually, that using NAME is not a better practice... the SCOPE attribute is safer and is also what MM support advised us to use (when applicable). Sure, the scope of a NAME-based lock will be tighter than using SCOPE, but SCOPE will be safer and, as a bonus, you can use CF 5's (and prior)

RE: LONG time CF Supporter - About ready to dump CF!

2002-10-08 Thread Gaulin, Mark
I'm jumping in to this thread late, but to me this sounds just like the problems we were having until we got *all* of our locking straight (CF5 and earlier). I found that turning on the lock-checking/reporting in the admin screen was enough to highlight all of the little places where locking was

cfservlet in cfmx... deprecated, but how to replace it?

2002-10-09 Thread Gaulin, Mark
Hi I rely on cfservlet to talk to jrun on a box other than the one that cf server is installed on. I see that in CFMX this tag has been marked as deprecated. Usually that is a warning not to use the tag in new code, and usually if the new version has restrictions they would be spelled out. I have

RE: Client Variable Storage and SQL Server

2002-10-14 Thread Gaulin, Mark
Hi Andy Yes, this is real, and we stopped using client variables because of it. I suspect that most of the load is spent updating the last-time-someone-visited-the-site information in the database tables... it has to do this on every hit, whether or not the client even has any client variables.

RE: Verity Expertise? Macromedia?

2002-10-18 Thread Gaulin, Mark
I don't know about that... Verity for CF is free. Have you checked out the price of actually buying Verity? Or of buying a decent replacement for verity? Have you tried using any of the free alternatives? The power and level of integration you get with CF Verity is pretty good, so I'm happy to

RE: whitespace woes

2002-10-24 Thread Gaulin, Mark
Did you check for something in application.cfm? -Original Message- From: Will Stalder [mailto:skith_diphi;hotmail.com] Sent: Thursday, October 24, 2002 3:13 PM To: CF-Talk Subject: whitespace woes I'm having with trouble with ColdFusion and extraneous whitespace. And yes, I've done my

RE: CFMX: CFPARAM possible within CFSCRIPT?

2002-10-31 Thread Gaulin, Mark
Hi Couldn't you use IsDefined() in the UDF and only assign a default value if not IsDefined()? This would not give you the type-checking that cfparam does though... Mark -Original Message- From: Pete Ruckelshaus [mailto:cflist;ruckelshaus.com] Sent: Thursday, October 31, 2002

RE: Another Verity Search Problem

2003-03-11 Thread Gaulin, Mark
Hi I don't know exactly what the problem is, but the Verity style and filter stuff has to do with extracting content from files of different types (extensions, mime types)... there might be a filter for .txt or .html or .doc, etc. It is possible that there is an unrecognized file extension

RE: Jrun ISAPI

2003-04-02 Thread Gaulin, Mark
The ISAPI filter might have been installed on a specific web site (below the master)... check there too. Also, when you say it works, are you using a /servlet/ url on port 80 (where IIS is running) or something with a port number in it? If you've got a port number in your url then you are

RE: Verity Head Aches EMERGENCY

2002-11-06 Thread Gaulin, Mark
Did you try restarting CF? (and/or the Verity K2 service, if you are using that?) Mark -Original Message- From: Timothy Heald [mailto:healdt;dsmail.state.gov] Sent: Wednesday, November 06, 2002 8:07 AM To: CF-Talk Subject: RE: Verity Head Aches EMERGENCY Hey, We just

RE: nrotbko: sql server big int

2002-11-07 Thread Gaulin, Mark
The all-F's number in calculator is unsigned, and I bet BigInt is signed, so you loose one bit. That generally means you have to divide by two and subtract one to get the largest positive integer that fits. Mark -Original Message- From: Tony Weeg [mailto:tony;navtrak.net] Sent:

OT: generating GUIDs in cross-platform java/CFMX

2002-11-07 Thread Gaulin, Mark
Hi I'm generating microsoft-style GUIDs for an app. I've been looking for a globally-safe algorithm for use with CFMX/java but nothing seems to be as good as the microsoft way which uses (a portion of) the local machine's MAC address as part of the ID... the java ones I've seen don't look like

RE: GUID generation in CFMX/Java in general

2002-11-08 Thread Gaulin, Mark
Hi Tom Thanks for the pointers. Q: Does CFMX expose its GUID-generating functionality in a way that I can use (so I don't have to do it myself)? Thanks Mark -Original Message- From: Tom Harwood [mailto:tharwood;macromedia.com] Sent: Friday, November 08, 2002 2:46 PM To: CF-Talk

RE: GUID generation in CFMX/Java in general

2002-11-11 Thread Gaulin, Mark
Software, Inc. http://www.montarasoftware.com/ 888-408-0900 x901 -Original Message- From: Gaulin, Mark [mailto:mgaulin;globalspec.com] Sent: Friday, November 08, 2002 3:06 PM To: CF-Talk Subject: RE: GUID generation in CFMX/Java in general Hi Tom Thanks for the pointers. Q: Does

RE: ColdFusion practical limits

2002-11-19 Thread Gaulin, Mark
Hi Howie If by simultaneous transactions you truly mean concurrent hits, then 2000 is a pretty big number. If you mean concurrent users then things relax quite a bit, since a user is making requests (page hits) at a pretty slow rate. I suggest making a quick model in Excel to play around with the

RE: (OT - SQL) Changing Data Type Screws up Query

2002-12-04 Thread Gaulin, Mark
The error message is correct... ntext (and text) fields cannot be used the same as varchar (or char) fields... that's part of what makes them different. (text fields can be huge, and are not stored in a way that is convenient for SQL Server to do the normal kinds of things like grouping and

RE: CF 5 Page Filing massively... Ideas?

2002-12-09 Thread Gaulin, Mark
I would look for queries that could potentially return a very large number of rows. Since queries are completely loaded into memory as part of cfquery, it doesn't take much to grab tons of RAM that way. -Original Message- From: Jeremy Bruck - MfgQuote, Inc. [mailto:[EMAIL PROTECTED]]

RE: Random Iterations -

2002-12-18 Thread Gaulin, Mark
So what you want to do is like shuffling a deck of cards, but you only have 15 cards. The way I always handled that kind of thing was to make an array of the right length (N=15), initialize it with identity values (so array[1] = 1, array[2] = 2, etc). Then write a loop that goes from 1 to N. In

RE: thistag.generatedContent

2003-04-03 Thread Gaulin, Mark
Move the cfset = into the END processing... where you have it (in the start) there no content generated yet. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 03, 2003 3:57 PM To: CF-Talk Subject: thistag.generatedContent I have a custom tag:

RE: RegEx Question

2003-07-02 Thread Gaulin, Mark
Hi First off, remove the leading '^.* and trailing .*$; they aren't necessary in this case and just get in the way Also, you need to backquote the literal ()'s to distinguish them from ()'s that are part of the regex. Also, you could use the [[:digit:]] thing instead of [0-9], but you don't need

RE: OT: Dynamic DNS

2003-01-10 Thread Gaulin, Mark
The delay will be based on the Time To Live (TTL) that is set up for your domain. My personal domain is served by DynDNS and the TTL is four hours, so that is the more or less the longest time it would be wrong. I have used ipconfig /flushdns (or something like that) to clear my *local* dns

RE: Custom Tag Usage

2003-01-10 Thread Gaulin, Mark
Hi I hacked something like this together a couple of years ago called CFCalls. It doesn't check for COM usage though, and I wish I had defined the database tables better to support more reporting, but it works pretty good for what it is. It uses perl for parsing, Access as a database, and CF as a

RE: Locking question?

2003-01-23 Thread Gaulin, Mark
No locking is needed for the REQUEST scope. -Original Message- From: Tilbrook, Peter [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 22, 2003 6:09 PM To: CF-Talk Subject: Locking question? Do I need to LOCK variables (when setting or reading)variables in the REQUEST scope -

Missing CFMAGIC cookie??

2003-01-31 Thread Gaulin, Mark
Hi Folks You know the three cookies that CFAPPLICATION sets when you use session management... CFID, CFTOKEN, and CFMAGIC? (CFMAGIC is just CFID:CFTOKEN). Well we just noticed that one of our development servers is not setting CFMAGIC. I don't know when this happened, but it is weird. Anybody

RE: Missing CFMAGIC cookie??

2003-01-31 Thread Gaulin, Mark
. HTH, barneyb -Original Message- From: Gaulin, Mark [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 9:11 AM To: CF-Talk Subject: Missing CFMAGIC cookie?? Hi Folks You know the three cookies that CFAPPLICATION sets when you use session management... CFID, CFTOKEN

RE: WDDX for row of a query

2003-02-03 Thread Gaulin, Mark
Hi Keith The wddx packet will be defined on a single query (not row in a query). If you have a query with three rows and really want to break it into three wddx packets then you'll need to get three different queries. Queries don't break apart into individual rows very easily... if you cfdump the

RE: cookie/location

2002-08-13 Thread Gaulin, Mark
Hi In the bad-old days I did my cgi programming in C++, and I wrote out the headers by hand. Back then, browsers (NS2, for example) did not handle the case when both Set-cookie and Location headers were included in a response. That may have lead to earlier versions of CF not needing to do the

RE: Verity Performance

2002-08-27 Thread Gaulin, Mark
Did you try messing with the maxFiles option in the ini file? How about the online mode for each collection (which I expect would only affect start-up time)? Are you timing the first search of a collection, or are you doing a few searches to warm it up? Also, is k2 under load, or are you the

RE: CF 5 and CFMX and headers

2002-09-10 Thread Gaulin, Mark
This could be an IIS setup issue. Cache control is available in the web site properties, as are additional (ie user specified) headers. -Original Message- From: Mark A. Kruger - CFG [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 10, 2002 11:18 AM To: CF-Talk Subject: CF 5 and CFMX

RE: FW: Jsp Vs Cfm (CFMX) -- Test Code

2002-09-17 Thread Gaulin, Mark
It seems to me that a code written in JSP or java has the benefit of being strongly typed... that long loops definition in the JSP code is very significant to a compiler. Try running that loop again using new Integer in each iteration and see what you get. CF-translated code may be compiled into

RE: Jsp Vs Cfm (CFMX) -- Test Code

2002-09-17 Thread Gaulin, Mark
Hi I think the optimization approach that could work is to allow for explicit variable typing to be added to CF code. This would obviously have to be optional; all existing code should continue to work. You could also limit the typing to primitive CF variable types, if only to simplify the work

RE: Web Address?

2002-07-17 Thread Gaulin, Mark
Do you want CGI.HTTP_HOST ? -Original Message- From: Eric Hoffman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 12:17 PM To: CF-Talk Subject: RE: Web Address? cfif (entered web address) is webmail.domain.com cflocation url=webmail/index.cfm /cfif How do I test for

Error stack trace not as good in CF5??

2002-07-26 Thread Gaulin, Mark
Hi Folks In CF4.5 I could get a really nice, detailed stack trace when errors occurred. If there is a trick to getting them back easily in CF5, I'd love to hear it. We have a site-wide error handler installed and it dumps things from the error object (including error.diagnostics, which is where

RE: T-SQL division drops the decimal?

2003-07-31 Thread Gaulin, Mark
Actually it's acting the way I would expect, which is like a C compiler: If all of the numbers appear to be ints then it does integer math. If *any* of the numbers is a float then it does float math. Try this expression instead and see what you get: icode=tblDomReportData.rpoints/2.0 Since 2.0

RE: Whitespace Woes

2005-03-22 Thread Gaulin, Mark
The standard answer for this question is Did you check any application.cfm files? -Original Message- From: Jim McAtee [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 22, 2005 4:10 PM To: CF-Talk Subject: Whitespace Woes CF5/IIS5 I have a CFML tag constructed to produce as little white

RE: Locking shared scope variables

2005-03-30 Thread Gaulin, Mark
As was said earlier, the right thing to do really changed from CF5 and prior to CFMX. Prior to CFMX you *had* to overlock (in my opinion) to get keep CF stable, and that meant using scoped locks everywhere. With CFMX, locking is where it should be: use it to when your application logic needs

RE: SQL prob

2005-04-05 Thread Gaulin, Mark
There's a good reason to use the new style of joins: because they are more powerful. Here is an example of a query that, to my knowledge, can't be done with *= syntax: select * from t1 left outer join t2 on (t1.id = t2.id and t1.rating t2.max_rating) This is

RE: SQL prob - a reason other than style

2005-04-05 Thread Gaulin, Mark
There's a good reason to use the new style of joins: because they are more powerful. Here is an example of a query that, to my knowledge, can't be done with *= syntax: select * from t1 left outer join t2 on (t1.id = t2.id and t1.rating t2.max_rating) This is

RE: CFTRY/CFCATCH exposing CF errors?

2005-04-07 Thread Gaulin, Mark
We use a site-wide error handler (and generally don't use cfcatch), but I seem to recall that an error in the error handler code itself can cause the original error to be displayed. Mark -Original Message- From: Bryan Stevenson [mailto:[EMAIL PROTECTED] Sent: Thursday, April

RE: Stupid SQL Question

2005-04-07 Thread Gaulin, Mark
What are some values for col1, col2, etc for different blue cars? The same value for all blue cars, different? if different, which value would you want? It sort of sounds like you want a group by CATEGORY, which will give you one row per CATEGORY value, but then you'll need to use aggregate

RE: CF5 and Hyperthreading

2005-04-12 Thread Gaulin, Mark
If you are not doing cflocks *everywhere* you need to on CF5 then going to a faster machine will be more unstable than the same code on a slow machine. I haven't seen hyperthreading cause issues with CF before, for whatever that's worth. Mark -Original Message- From: stephen

RE: CF5 and Hyperthreading

2005-04-12 Thread Gaulin, Mark
Yeah, if you are using shared-scope variables (like session, application, or server) without using cflock on CF5, then you have a race condition for bad things happening. The faster the box, the more like the bad things will happen. (Yes, this sucks.) Actually, hyperthreading could be

RE: Looped cfform unique variable names?

2005-04-13 Thread Gaulin, Mark
I think this syntax will work: Form[Resolution i] (or whatever generates a string that matches the field name on the previous age) -Original Message- From: Paul Henderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 13, 2005 1:10 PM To: CF-Talk Subject: Looped cfform unique variable

RE: Web Service question

2005-04-14 Thread Gaulin, Mark
sounds like the content is an html page, not xml. Try hitting the server's url directly in a browser to see what you get. -Original Message- From: Calvin Ward [mailto:[EMAIL PROTECTED] Sent: Thursday, April 14, 2005 2:02 PM To: CF-Talk Subject: Web Service question I'm getting a

RE: Application Scope in Virtual Directories (IIS)

2005-04-21 Thread Gaulin, Mark
Aren't the distinct application scopes identified by the name param to cfapplication, and not by file location on disk? So as long as cfapplication was called somewhere in the request, the application scope would use whichever one was named. Mark -Original Message- From:

RE: Combining verity results with database query

2005-05-02 Thread Gaulin, Mark
You can try using query of query. This can work ok in many cases. Use QueryValueList (or something like that) to extract the primary key values from the verity results, and then use them to create a db query that retrieves those rows. Last step is to combine them with q-of-q. Mark

RE: SQL IF/ELSE or CASE Statement Help

2005-05-06 Thread Gaulin, Mark
Some tips: * definitely use a CASE statement... * use isnumeric(LEFT(PubNumber, 2) to see if you get a valid number before doing the cast (or maybe do that in the WHERE clause, if that makes sense) * if you put the case expression as the first column in the select then you can do ORDER BY 1,

RE: cfindex issue?

2005-08-16 Thread Gaulin, Mark
Is it possible that the key field in your data is not unique? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 16, 2005 9:30 AM To: CF-Talk Subject: cfindex issue? Hi, I have a query that I index. The query returns 2,481 records. When I

RE: Array of Structures Form

2005-08-17 Thread Gaulin, Mark
Sure, if you convert it to a string first, like with cfwddx. Mark -Original Message- From: Lee [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 17, 2005 4:25 PM To: CF-Talk Subject: Array of Structures Form Can you pass an array of structures in a hidden form field? Lee Surma

RE: What does Wait() do?

2005-08-23 Thread Gaulin, Mark
wait() is a java method of the Object class, and is used with the notify() method. It's part of java's synchronization system, and is definitely not like sleeping. Here are the javadocs for Object: http://java.sun.com/j2se/1.3/docs/api/java/lang/Object.html Mark -Original

RE: Stupid custom tag question

2005-08-24 Thread Gaulin, Mark
If you want your tag to be like CFIF, causing logic to be skipped, then the answer is probably no, you can't do it. If you are ok with the code between the start and end tags running but with all html output removed, then yes, you can do that by messing with the generatedcontent property.

RE: IIS 6 VS Apache

2005-08-24 Thread Gaulin, Mark
Q: Which are you more comfortable working with/administering? -Original Message- From: Russ [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 2:49 PM To: CF-Talk Subject: OT: IIS 6 VS Apache What is the general recommendation now of what to use on Windows Server 2003? Is IIS

RE: Windows registry issue

2005-08-29 Thread Gaulin, Mark
There may be a max registry size setting in the System part of the control panel (near where the pagefile size is set). Not sure if that'll help you though... 217 MB is freaking huge for a registry, and I don't think I've ever been able to get one to shrink before. Good luck. Mark

RE: Oracle SQL alternative for YesNoFormat() ?

2005-08-31 Thread Gaulin, Mark
This should do it (depending on the db)... SELECT CASE WHEN field = 1 THEN 'YES' ELSE 'NO' END AS yesNoField -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 31, 2005 12:23 PM To: CF-Talk Subject: RE: Oracle SQL alternative for YesNoFormat()

RE: LEFT AND RIGHT OUTER JOIN?

2005-09-01 Thread Gaulin, Mark
Hmm that is nasty One solution would be to do a union of three selects, one selecting just the case of being in both tables, the next for those records in table 1 only, the last for those records in table 2 only. Kinda lame, but better than nothing. Mark -Original Message-

RE: SQL row select?

2005-09-28 Thread Gaulin, Mark
The closest MSSQL has is top, as in select top 50 * from To do paging, you either have to select the top N and scroll down to the page you want, or, to do it entirely in sql, do nested selects, like this: -- fetch rows 200 to 250, in order select * from (select top 50 * From (select top

RE: CFComplie, problems, or gotcha, or just me?

2005-09-29 Thread Gaulin, Mark
Did you restart CFMX after the file was put back? If not, it might be that CF is caching the missing file-ness of that file (just like it caches the location of custom tags, and doesn't like it when they move). Or not... Mark -Original Message- From: jonese [mailto:[EMAIL

RE: Problems with large arrays

2003-09-23 Thread Gaulin, Mark
I think the reason no one replied is that the question is hard to answer... For what it's worth, in my experience CF5 tends to keep any memory that is has allocated and not return it to the OS. This was a change from CF4, and generally it improves performance (of CF). I'm not sure why it would

RE: CreateUUID() hangs CFMX 6.1 Server

2003-09-24 Thread Gaulin, Mark
I imagine that it is failing more often on the faster machine because of a race condition in the server code... the faster the machine the more likely that a two events happen in a certain (bad) way. This sure sounds like a crappy bug. Mark -Original Message- From: Tim Soslow

RE: sql difficulty

2003-10-30 Thread Gaulin, Mark
You can do this using aggregates and case statements (assuming your db can handle it... you didn't say what you were using) select checkno, total=count(*), -- I have no idea how you determine what is unprocessed, so this is an made-up example unprocessed=sum(case when is_processed'Y' then 1

Setting up other OLDDB in CF5

2003-11-05 Thread Gaulin, Mark
Hi We're trying to set up an OLEDB connection using a third-party provider (SalesLogix).The following connection string works in VB but I don't have clue how to translate this into something that cf admin can take. This works as a connection string in VB...

RE: Self-occlusion in CF 5.0

2004-02-05 Thread Gaulin, Mark
Check to see if you have two custom tag directories listed in the registry... it is weird though that the same file and path is showing up twice but with different letter case. Normally this error would indicate that you had two custom tags with the same name in different directories under the

RE: Race conditions at start up

2004-02-26 Thread Gaulin, Mark
You could use an exclusive lock (cflock)... race conditions are what it's for. (It also works in pre-cfmx versions of cf.) If you want to avoid locking on every single hit (after the initialization is done) then use a two-layer kind of test like this pseudo code: if not

RE: CFAPPLICATION question

2004-02-27 Thread Gaulin, Mark
If the two domains are just different hosts on the same domain (abc.company.com and xyz.company.com) then you can arrange for the cf cookies to be shared, and so session would also be shared. It's the setdomaincookies option on cfapplication.(If you use it then you have to be careful to make sure

RE: Too many simultaneous K2 searches crash ColdFusion

2004-03-02 Thread Gaulin, Mark
Increase the number of listeners to match (or exceed) the configured number of simultaneous CF requests. (I think the default is 5 or something like that... check the admin)If the two numbers match then it will work, no matter how many users hit your web site. This is because CF will queue up any

RE: cfscript != cftags

2004-03-03 Thread Gaulin, Mark
This would be my bet too, because I would guess that cfloop from=1 to=#arrayLen(iterations)# index=i figures out the value of arrayLen(iterations) once and then loops that many times, but a for loop will reevaluate the test (i LTE arrayLen(iterations)) each time through the loop. That's the

RE: JavaScript: Retrieving Remote HTML

2004-03-12 Thread Gaulin, Mark
Check out IFRAMEs http://www.oreillynet.com/pub/a/_javascript_/2002/02/08/iframe.html http://www.oreillynet.com/pub/a/_javascript_/2002/02/08/iframe.html I haven't used them yet but it might be just what you're looking for. Mark -Original Message- From: Nikhil Madani

RE: JavaScript: Retrieving Remote HTML

2004-03-12 Thread Gaulin, Mark
Xml fetching and parsing all in one... that *is* cool. Re IFRAME: the url for the iframe can be loaded dynamically at any time via scripting, and does not require a visible screen element. At least that's what I've read. -Original Message- From: Rob [mailto:[EMAIL PROTECTED] Sent:

RE: why I love coldfusion...and not .net

2004-03-29 Thread Gaulin, Mark
I always thought learning something new was fun... but I guess if you want to make it a drag, that's your business. (I have no opinion of asp.net at this point since I haven't had the opportunity to play with it... yet.) Mark -Original Message- From: Dan Farmer [mailto:[EMAIL

RE: Enter key not working to submit?

2004-03-30 Thread Gaulin, Mark
I've seen this when the focus ends up on a combo box.There is a hack available that involves trapping the keydown event (onkeydown) on the select tag and looking for the Enter key.If this is not your specific case then maybe you can adapt it.I got this out a very good JS book: select

RE: CFMODULE vs. CFINCLUDE

2004-11-30 Thread Gaulin, Mark
I totally agree with Raymond but have one comment to make: I'll go out on a limb here and say if your site will not work when using cf_foo/cf_foo versus an include, then you have other problems. There are special issues when you use the closing /cf_foo tag because CF will call your tag twice,

RE: CFMODULE vs. CFINCLUDE

2004-12-01 Thread Gaulin, Mark
We use this style too (for skinning) and the only difficulty we run into is the constraint that the opening and closing tags have to remain in the same logical scope on the page, so you can't conditionally open the tag at the top of the page and then conditionally close it at the bottom. This

RE: Slow (sorta) site issues - Ideas?

2004-12-27 Thread Gaulin, Mark
Hey Jim One maybe-off-the-wall suggestion would be to have a quick global variable somewhere that you can use to switch off code you suspect may bog you down. I don't know what *you* plan on doing that night, but if watching the web site is one of them, it might be nice to be able to turn off

RE: Dumb Question About CFPARAM

2004-12-28 Thread Gaulin, Mark
Yeah, that ought to work. CF can't see your sql if logic, so it might as well be one giant select statement for all it cares. On the SQL Server end I would expect it to handle that just fine. You could also write a stored procedure for this logic. Mark -Original Message- From:

RE: Dumb Question About CFPARAM

2004-12-28 Thread Gaulin, Mark
You might squeak out a bit of performance by making a stored procedure out of it and using an optimistic update strategy... Just do the update and if the record count is zero then do an insert. This will completely remove the select. (I guess you don't need a sp for this.) Mark

RE: Dumb Question About CFPARAM

2004-12-28 Thread Gaulin, Mark
Subject: RE: Dumb Question About CFPARAM -Original Message- From: Gaulin, Mark [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 28, 2004 11:54 AM To: CF-Talk Subject: RE: Dumb Question About CFPARAM You might squeak out a bit of performance by making a stored procedure out

RE: SQL group by instead of cfoutput group?

2005-01-05 Thread Gaulin, Mark
What is the sql you have now? -Original Message- From: Will Tomlinson [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 04, 2005 8:46 PM To: CF-Talk Subject: Re: SQL group by instead of cfoutput group? Just add 'DISTINCT' after 'SELECT' and SQL Server will automatically ensure that you

RE: Restart CF via CFEXECUTE calling a batch file?

2005-01-06 Thread Gaulin, Mark
Can you post the cfexecute and contents of the batch file please? I'd like to set the same thing up on my test system. Thanks Mark -Original Message- From: Matt Robertson [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 05, 2005 5:33 PM To: CF-Talk Subject: Re: Restart CF via

Got a nice site-wide error handler for CFMX?

2005-01-28 Thread Gaulin, Mark
Hi Anybody want to share their code for a site-wide error handler for CFMX? I have one from CF5 that emails me the details of the error and shows the user a nice message, but the new error details in cfmx are very nice, and I'd like to get at them. cfdump'ing the error struct shows what's

RE: The Value of CFQUERYPARAM

2003-12-09 Thread Gaulin, Mark
I haven't heard anyone mention the security value of cfqueryparam... using this tag will prevent someone from injecting malicious code into your queries. Consider this example: cfparam name=url.userid cfquery select id, username from people where userid = #url.userid# /cfquery If someone

Disabling automatic form field validation (like required)

2003-12-17 Thread Gaulin, Mark
Hi Folks Is there any way to turn off the [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ^! automatic form field validation that CF does? I'm refering to the special handling of form fields that end with required, etc.. when CF doesn't like one of these it justs abort the page with a cryptic error

RE: P3P ready cookies

2004-01-13 Thread Gaulin, Mark
Is the page that is trying to set the cookies in a frame, or is some way being contained (img, ilayer, etc) by a page that has a different host name?This is a big issue in p3p. -Original Message- From: Thane Sherrington [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 9:42 AM To:

RE: P3P ready cookies

2004-01-13 Thread Gaulin, Mark
are treated like a banner ad aggregator (for example), and no one wants those guys to be able to track them. -Original Message- From: Thane Sherrington [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 12:13 PM To: CF-Talk Subject: RE: P3P ready cookies At 12:00 PM 01/13/2004 -0500, Gaulin

RE: P3P ready cookies

2004-01-13 Thread Gaulin, Mark
. Mark -Original Message- From: Thane Sherrington [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 13, 2004 2:02 PM To: CF-Talk Subject: RE: P3P ready cookies At 01:08 PM 1/13/04 -0500, Gaulin, Mark wrote: Ok, so your page is from a third party because the host or domain (I forget which

RE: StructFindKey - what's really possible?

2004-01-16 Thread Gaulin, Mark
What do you mean when you say array?I am reading the docs for StructKeyFind to mean that if a Struct contains another struct then it will dive into that too, but it doesn't say it will scan Arrays. Given that, I wouldn't expect a Struct that contained an Array that contained Structs to be searched

RE: StructFindKey - what's really possible?

2004-01-17 Thread Gaulin, Mark
Hi I guess reading the docs would have helped to keep my foot out of my mouth there... Given what is says it ought to be able to do what you want as long as the thing you are passing in is a Struct; it does not accept Arrays directly. A quick test confirmed that. You can just assign your array to

RE: CFMX 'bug'? Easy to crash CFMAIL.

2004-01-21 Thread Gaulin, Mark
Re #1: Doesn't putting a try/catch around the cfmail do the trick?That way you don't have to validate the email yourself... just let cfmail fail if it wants to. If you put the try/catch around the entire cfloop (or cfoutput) of a query then Yes, it will abort the whole job. But if you put the

RE: Null pointers error on CFMX 6.1

2004-01-21 Thread Gaulin, Mark
In the first if block I see an isdefined() test for form.test but a usage of the variable form.thetest. Is this intentional? -Original Message- From: Kola Oyedeji [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 11:27 AM To: CF-Talk Subject: Null pointers error on CFMX 6.1 Hi

RE: CFMX 'bug'? Easy to crash CFMAIL.

2004-01-21 Thread Gaulin, Mark
The cfmail-with-a-query behavior does suck, doesn't it... If the exception included the bogus email address then it could be possible to sort the original query by email address, and then you can assume that any email address prior to the bogus one worked.Then you just have to requery starting

RE: How do you clear cache in CFMX?

2004-01-23 Thread Gaulin, Mark
The feature he wants to entirely reasonable and logical. I hope MM adds something to make this possible in the future. -Original Message- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Thursday, January 22, 2004 4:59 PM To: CF-Talk Subject: RE: How do you clear cache in CFMX?

RE: How do you clear cache in CFMX?

2004-01-23 Thread Gaulin, Mark
Hi Dave Its the once the files have been run once part that stinks.If I were implemeting a cache and there was a way to disable the cache I would also cause that to flush the cache.Or at least provide some other way to do it. Then we'd all be happy. Mark -Original Message- From: Dave

  1   2   3   4   >