RE: Compiling Java / Error

2006-10-09 Thread Gaulin, Mark
CF doesn't run on the latest SDK (1.5). You'll need to compile with JDK 1.4. Mark -Original Message- From: Ben Nadel [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006 10:41 AM To: CF-Talk Subject: Compiling Java / Error Hey all, I am trying to experiment with Java

RE: IDE's

2006-10-11 Thread Gaulin, Mark
I use several IDEs (include CFE), and you're right about the HomeSite/CF Studio extended search replace being excellent... I'm going to keep that program around until someone writes one for Eclipse. (And then I'll still keep it around for the CF help files.) -Original Message- From:

RE: All Stored Procs in 1 CFC?

2006-10-25 Thread Gaulin, Mark
One of the benefits you mention for .net, namely knowing what code is affected when stored procedures change, won't buy you much in CF since you won't get a compile-time error... You'll have to wait until someone calls the CFC method (with the wrong arguments, say) to find out that you needed to

Starting CFMX from within JBuilder

2006-01-27 Thread Gaulin, Mark
Hi Anybody managed to start CFMX 6.1 or 7 (using embedding JRun) in JBuilder (or some other IDE)? I want to debug my own java classes as they are used and this seemed like a good way to try. (I used to do a similar thing with JRun 3 to debug my servlets, and it worked great. I was hoping it would

Good way to dump java object?

2006-02-08 Thread Gaulin, Mark
Hi I'm looking for a good way to dump the public properties of a java object, but it should include values available from getX() methods, not just public field members (which I don't ever have). It could be a java solution or a cf custom tag (of cfc). If someone has a head-start on a custom tag

RE: Good way to dump java object?

2006-02-08 Thread Gaulin, Mark
for the help. Mark -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 08, 2006 2:42 PM To: CF-Talk Subject: Re: Good way to dump java object? Gaulin, Mark wrote: Hi I'm looking for a good way to dump the public properties of a java object

RE: Good way to dump java object?

2006-02-08 Thread Gaulin, Mark
://www.cflib.org/udf.cfm?ID=1076 Qasim On 2/8/06, Gaulin, Mark [EMAIL PROTECTED] wrote: Nice! I can see this opening new windows when the value of a getter is another java class. (Hmm.. Maybe I'll do that...) Q: Do you know how to test if an object is a java object from cf? IsObject() returns false

Really have to use IsDefined(varname) to test for java null?

2006-02-14 Thread Gaulin, Mark
Ok, I've seen that to test a cf variable against null (from a java method call that can return null), you have to do this: cfscript x = someJavaObj.methodCall(); if (IsDefined('x)) { //x is not null } else { // x is null } /cfscript Is there no way to do this with a UDF, or

RE: How to keep unrelated CFML tags from repeating includes?

2006-03-14 Thread Gaulin, Mark
You could write a custom tag to do the actual cfinclude, and have all of the rest of your code use it rather that cfinclude'ing directly. Then the custom tag would be the only one that needed to know about the request scope. Includes would probably not be able to use relative paths without some

RE: ajaxCFC Error Message

2006-06-20 Thread Gaulin, Mark
I just started using ajaxCFC and found it's error handling to be very nice. Anyway, the error you have sounds like a compile-time error in your CFC (assuming it has worked before), and the way to figure that out for sure is to hit your CFC directly in a browser... something like

RE: Framework + Ajax?

2006-06-23 Thread Gaulin, Mark
The key notion in ajaxCFC is that the backend server is modeled and implemented as a CFC, which gives you one entry point (the cfc's url) to multiple methods (the cfc's functions). One way or the other, the server has to implement your server-side logic, and modeling it as a CFC is pretty natural

RE: ajaxcfc and Call back

2006-06-30 Thread Gaulin, Mark
It seems to me that you have two choices: 1. Save myFirstArg in a global javascript variable before you call _execute(), then reference the global variable in your callback. 2. Return myFirstArg in the results structure coming back from the server (which assumes this it's ok to return a Struct

Reloading java classes without restarting CF?

2006-07-18 Thread Gaulin, Mark
Hi Has anybody come up with a way to reload a java class (that is being created with CreateObject(java, path...)) so that new .class files can be loaded without restarting CF? I'm thinking only a custom class loader will do this... Any help appreciated! Thanks Mark

RE: Reloading java classes without restarting CF?

2006-07-18 Thread Gaulin, Mark
://www.compoundtheory.com/?action=displayPostID=117 Thanks, Qasim On 7/18/06, Rick Root [EMAIL PROTECTED] wrote: Gaulin, Mark wrote: Has anybody come up with a way to reload a java class (that is being created with CreateObject(java, path...)) so that new .class files can be loaded without restarting CF

RE: LylaCaptcha Hash Issue

2006-08-07 Thread Gaulin, Mark
So, that means Lyla could not be used reliably in a clustered environment, where load balancing between servers might jump a user from one server to another. It might not happen often (our load balancer uses a 10-minute sticky session based on IP address, for example), but I sure wouldn't want to

RE: What is the use of structFind? (CFMX)

2006-08-24 Thread Gaulin, Mark
I suspect that the StructFind syntax is the original (CF4, maybe?) way to use structs, and that the array syntax is just newer. With cfmx I'm thinking that both styles are probably exactly the same under the hood (in terms of performance). Mark -Original Message- From: Auke van

RE: JRun Deadlock - Big Problem / Bug

2005-11-16 Thread Gaulin, Mark
You could try getting a stack trace out of cfmx to see what it's doing when it is unresponsive. Check out this thread for details on how to do it: http://www.houseoffusion.com/cf_lists/message.cfm/forumid:8/messageid:57 18 Mark -Original Message- From: gabriel l

CFC style question (for UI CFCs)

2005-12-01 Thread Gaulin, Mark
Hi I'm just starting to play with creating CFCs for UI components and I have a question about style. Is it better/more convenient/more maintainable/more readable to use output=true in your CFC methods (so the html goes right into the output), or to use output=false and have the method return a

RE: CFC style question (for UI CFCs)

2005-12-02 Thread Gaulin, Mark
Continuing this thread here... I like consistency too, and that's why I like to think of these as UI CFCs, and not just CFCs. I have business logic CFCs too, and they will never return output directly. (I name them differently and put them in a different location.) Custom tags are just too lame

RE: interacting with java and return a ColdFusion query

2005-12-02 Thread Gaulin, Mark
I think you need to use the class coldfusion.sql.QueryTable to do what you want. It's in either cfx.jar or cfusion.jar. Mark -Original Message- From: George Abraham [mailto:[EMAIL PROTECTED] Sent: Friday, December 02, 2005 9:17 AM To: CF-Talk Subject: interacting with java and

RE: interacting with java and return a ColdFusion query

2005-12-02 Thread Gaulin, Mark
You can also create an arbitrary QueryTable (with columns you specify). I wish there was a way to do this without having to reference cfusion.jar... I do it to help maintain a back-end (in java) vs front-end (in cfml) distinction in the system. -Original Message- From: Dave Ross

RE: Complete CFSCRIPT

2005-12-05 Thread Gaulin, Mark
How about writing functions (var, return, arguments, etc)? -Original Message- From: Michael Dinowitz [mailto:[EMAIL PROTECTED] Sent: Monday, December 05, 2005 10:46 AM To: CF-Talk Subject: Complete CFSCRIPT A long while ago I wrote some step by step docs for CFSCRIPT:

RE: CFEclipse

2005-12-06 Thread Gaulin, Mark
Multiline search and replace is extremely useful, and I'm sorry to hear that eclipse (CF or otherwise) doesn't support it. Seems like that's something that the larger eclipse community ought to address though. Random question: does cfeclipse do anything special with CFCs? (Like a method tree

RE: Troublshooting jrun 100% on cfmx 6.1

2005-12-08 Thread Gaulin, Mark
Try to get a stack trace (technote 18339 - http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_18339) When you see it start to spike, set focus to the DOS Window and hit Control+(Pause/Break) (not control-C which everyone does by instinct - that kills JRun). One thing: For 6.1 at

RE: Let's *ALL* give something back to House of Fusion!

2005-12-23 Thread Gaulin, Mark
That url leads to a paypal page that is erroring right now... -Original Message- From: Kevin Aebig [mailto:[EMAIL PROTECTED] Sent: Friday, December 23, 2005 11:26 AM To: CF-Talk Subject: RE: Let's *ALL* give something back to House of Fusion! Here here...

RE: Let's *ALL* give something back to House of Fusion!

2005-12-23 Thread Gaulin, Mark
And that one errors too... -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, December 23, 2005 11:50 AM To: CF-Talk Subject: Re: Let's *ALL* give something back to House of Fusion! It is also at the very bottom of every email... On 12/23/05, Gaulin, Mark

RE: Let's *ALL* give something back to House of Fusion!

2005-12-23 Thread Gaulin, Mark
! Works fine for me. In both Firefox and IE. On 12/23/05, Gaulin, Mark [EMAIL PROTECTED] wrote: And that one errors too... -Original Message- From: Jerry Johnson [mailto:[EMAIL PROTECTED] Sent: Friday, December 23, 2005 11:50 AM To: CF-Talk Subject: Re: Let's *ALL* give something back

RE: Let's *ALL* give something back to House of Fusion!

2005-12-23 Thread Gaulin, Mark
Ah, now that I am logged in to PP the page doesn't show the error anymore, so it was a PP problem after all. Mark -Original Message- From: Gaulin, Mark [mailto:[EMAIL PROTECTED] Sent: Friday, December 23, 2005 12:55 PM To: CF-Talk Subject: RE: Let's *ALL* give something back

RE: HELP! CFID Not Maintained

2005-12-29 Thread Gaulin, Mark
Just so you know, CFID is not unique by itself... you need CFTOKEN too to have a truly unique id. Check you cfapplication tag to make sure you've for settings for cookies in there. If not, you'll end up with new id token values on each hit. Dump your cookies scope *before* the cfapplication

RE: IIS vs. Apache again...

2006-01-03 Thread Gaulin, Mark
You might be right in your assumption (or not), but I've definitely written custom ISAPI filters in C++ to rewrite urls and that does work for POSTs. It's not trivial, but all you have to do is subclass CHttpFilter and handle the OnPreprocHeaders() method. -Original Message- From: Russ

RE: IIS vs. Apache again...

2006-01-03 Thread Gaulin, Mark
haven't found any commercial ISAPI filters that support this... -Original Message- From: Gaulin, Mark [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 03, 2006 12:24 PM To: CF-Talk Subject: RE: IIS vs. Apache again... You might be right in your assumption (or not), but I've definitely

RE: I know it sounds crazy ...

2006-10-31 Thread Gaulin, Mark
I suspect he doesn't have an existing form in the first place. For simple a href= links you can generate FORM submits by creating a form on the page that has all hidden fields (one hidden field per FORM variable). Change the existing hyperlinks to have onclick handlers that call a javascript

RE: Simple CFC question...

2006-11-01 Thread Gaulin, Mark
It's returnVariable, not return -Original Message- From: J W [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 01, 2006 10:00 AM To: CF-Talk Subject: Simple CFC question... I will probably do the Homer Doh!! After I hear the answer.. Here is a very simple CFC called mycfc.cfc

Google's Custom Search engine for CF web development

2006-11-02 Thread Gaulin, Mark
Hi Folks I just set up one of those new Google Co-op Custom Search Engines for CF and javascript (DHTML, DOM, etc): http://www.google.com/coop/cse?cx=011257526413916725596%3Aayerfqdweyg It's weak at this point, but I figure I'm not the only one who thought of doing this, so I'm

RE: Google's Custom Search engine for CF web development

2006-11-02 Thread Gaulin, Mark
I usually do more searching about javascript, DHTML and DOM-related things, so I don't use a lot of CF sites regularly enough to list them out. Do you have urls for the blogs you mentioned, or do you want access to add sites yourself? You need a Google account (like a gmail account or something

RE: Class Decompiler

2006-11-07 Thread Gaulin, Mark
Check out jad -Original Message- From: Tony Hicks [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 4:06 PM To: CF-Talk Subject: Class Decompiler Is there a cold fusion class decompiler available anywhere? I accidentally deleted a pretty important file to a site I'm

RE: cfhttp QUESTION

2006-11-09 Thread Gaulin, Mark
Robert, It is a known issue that all of the CF list functions ignore empty list elements a,,c is a list with two elements, not three. There are some UDFs somewhere out there to deal with this. One quick fix I've seen is to replace ,, with ,!, (where ! is something special that you don't

RE: CF Licensing

2006-11-09 Thread Gaulin, Mark
Without a license you can serve pages to a limited number of client IPs (5?), but definitely more than just 127.0.0.1. I bet you it would server multiple web sites if your web server dose. (The personal version of IIS on desktop OSes only supports one web site, for example.) Mark

RE: CFC (Object) Composition Question.

2006-11-15 Thread Gaulin, Mark
Do you write a getCard() function in table that calls a getCard() function in player that calls the Hand.removeCard() function. Yup, that's the way to do it. That just seems a bit tightly coupled, but I can't think of any other way to go about it. You've got good delegation of

RE: CFC (Object) Composition Question.

2006-11-15 Thread Gaulin, Mark
Ah, I see what you are getting it here. Sometimes composition is about hiding the fact that composition was done (so then you do have to cover each of the composed object's methods), and sometimes you just want to have a Player.getHand() method. Ask these kinds of questions to decide what you

RE: what function called it?

2006-11-16 Thread Gaulin, Mark
Why do you need to know this? If it is for debugging or something then cfdump the error object you get in the catch and you'll see how things are organized; you can extract useful stuff from it programmatically. If you need this information for regular use of your application then you should

RE: Weird CFC argument behavior.

2006-11-29 Thread Gaulin, Mark
This is a url encoding issue... In an url, + is a the same as a space (is the same as %20). You might need to use UrlEncodedFormat somewhere. Mark -Original Message- From: J W [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 11:55 AM To: CF-Talk Subject: Weird CFC

RE: SQL question

2006-11-30 Thread Gaulin, Mark
That looks like the right/only way to do it as far as I know. Mark -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 11:02 AM To: CF-Talk Subject: OT: SQL question I am not a MS SQL guru and this bit of SQL is about as advanced as I

Any way to limit file upload size?

2006-12-05 Thread Gaulin, Mark
Hi Is there any way in CF or IIS to limit the allowed file size for a form with a file attached? I have a situation where someone might accidentally upload a huge file when all we want is a sample file. I would want to avoid not only creating a huge temp file but also all of the bandwidth needed

RE: Any way to limit file upload size?

2006-12-05 Thread Gaulin, Mark
was hoping that maybe something like that would turn up for CF/IIS. Oh well! Thanks Mark -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 05, 2006 8:36 AM To: CF-Talk Subject: Re: Any way to limit file upload size? Gaulin, Mark wrote: Hi

RE: Finding Java invocations (createObject) in CFML code at Java comp ile time in Eclipse.

2006-12-06 Thread Gaulin, Mark
Not too many takers on your call for advice, eh? The problem with trying to using the compiled binaries of the cf pages is that cf is not actually making calls to your java objects. Instead, it is (probably) using reflection at run-time on stub objects (cf variables) that in turn reference the

RE: OT: Java Code Translation

2006-12-18 Thread Gaulin, Mark
Those are called java generics, and they are new to JRE 1.5, so we can't use them with CF yet. Mark -Original Message- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 11:45 AM To: CF-Talk Subject: Re: OT: Java Code Translation Jeff Chastain wrote: I am

RE: Using arrays in a simple bean

2006-12-21 Thread Gaulin, Mark
Hi You are on the right track by avoiding getSponsorN() methods... that's definitely not the way to go. There is more than one way to do the getter/setter stuff, and a lot depends on how you actually need to do it. * You could go with a getNumSponsors() and getSponsor(n) pair of methods for

RE: cfqueryparam DECREASES performance? (To be selectable in CF8?)

2006-12-29 Thread Gaulin, Mark
I thought I saw somewhere that the next version of CF (CF8?) would indeed allow the use of cfqueryparam without forcing the conversion of the sql to a prepared statement, which would also allow it to be used with the cachedwithin option. I don't recall where I read that, so if someone in the know

RE: cfqueryparam DECREASES performance?

2006-12-29 Thread Gaulin, Mark
You can use SQL Profiler to view execution plans. -Original Message- From: Richard Kroll [mailto:[EMAIL PROTECTED] Sent: Friday, December 29, 2006 10:26 AM To: CF-Talk Subject: RE: cfqueryparam DECREASES performance? The SQL output by a query using cfqueryparam is a prepared

RE: cfqueryparam DECREASES performance? (To be selectable in CF8? )

2006-12-29 Thread Gaulin, Mark
I can think of one *huge* reason where CFQUERYPARAM would be useful... For parameter validation to prevent SQL injection attacks. I would love to be able to tell people that they should *always* use CFQUERYPARAM, but I can't because there are times when it will break existing code (by disabling

Looking for Flash-based drawing tool

2007-01-03 Thread Gaulin, Mark
Hi I'm looking for a utility to allow web-based users to draw simple diagrams and be able to convert them to images. I've ruled out java applets for now because of the installation issues (which I've recently experienced in our office, and were a total pain). I found the www.gliffy.com web site

RE: Looking for Flash-based drawing tool

2007-01-03 Thread Gaulin, Mark
seeing and a good one from the guys over at Figleaf, though I believe it was mainly for online collaboration via Flash Media Server. http://products.figleaf.com/ Cheers, !k -Original Message- From: Gaulin, Mark [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 03, 2007 8:09 AM To: CF

RE: Getting changed fields from database using an audit table

2007-01-09 Thread Gaulin, Mark
Try joining the two user tables rather than doing tons of single-row queries on the updated table. Unfortunately you will have to alias all of the columns from one of the tables to get unique column names. (You might do a single query of the users table that returns zero records just to get the

RE: database JOIN question

2007-01-23 Thread Gaulin, Mark
What database are you using? I've never see that + notation before... One thing I can suggest (without actually helping you) is to use ANSI-style joins, which are done in the FROM clause, and not in the WHERE clause. I find these to be much more expressive and sometimes they are the only way

RE: Quick CFEclipse question

2007-01-25 Thread Gaulin, Mark
Hi Mark Yeah, the ability to search for a block of text would be really nice. Actually, I'm not too thrilled at all with the default Eclipse multi-file replace either... Everything about it (esp when working with files that are in source control; I use VSSPlugin) is weirdly unsettling. I know you

RE: SQL insert issue with indexes

2007-01-30 Thread Gaulin, Mark
There must be other indexes on this table that include the text fields. Check in SQL Enterprise Manager. Mark -Original Message- From: Scott Weikert [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 30, 2007 1:03 PM To: CF-Talk Subject: SOT: SQL insert issue with indexes In my

RE: SQL insert issue with indexes

2007-01-30 Thread Gaulin, Mark
insert issue with indexes Gaulin, Mark wrote: There must be other indexes on this table that include the text fields. Check in SQL Enterprise Manager. Did. There's four fields: The main identity field (PK) Two int fields referencing IDs in other tables (with indexes, but no foreign key

RE: cfajax

2007-01-31 Thread Gaulin, Mark
Hi First, if your callback function (ReturnCheckUser) sets a global JS variable then any other code can read it. Second, if you set DWREngine.setAsync(false); before calling _execute (so the _execute() call will be synchronous, meaning, it will wait) then the global variable set in the previous

RE: sql question

2007-02-01 Thread Gaulin, Mark
You may want to recompile the sp... It may have been compiled before the statistics for the tables involved were updated. You could check the query plan of the sp vs. the query to see how they differ. (Not sure what db you are using...) Mark -Original Message- From: Tim Do

RE: How to Check for Open Files....

2007-02-05 Thread Gaulin, Mark
Not that this is likely to help you, but there is a Windows resource kit utility called oh (for Open Handles) that will show all open files and the processes that have them open. This is a debugging tool only (it's slow), but you might be interested in knowing if ftp, iis, or cf actually has the

RE: Issues with cfexecute in cfmx7?

2007-02-12 Thread Gaulin, Mark
Have you ever gotten in to work on cfmx7, or does it fail on every file? If it fails all of time, even on trivial inputs, then I would suspect permissions problems... Maybe temp directories or something like that. One way to test that angle is to login using the same account that cfmx will run

RE: Issues with cfexecute in cfmx7?

2007-02-12 Thread Gaulin, Mark
can open it just fine. -Ryan Gaulin, Mark wrote: Have you ever gotten in to work on cfmx7, or does it fail on every file? If it fails all of time, even on trivial inputs, then I would suspect permissions problems... Maybe temp directories or something like that. One way to test that angle

RE: setdomaincookies not working

2007-02-27 Thread Gaulin, Mark
Be sure to delete your existing cookies before running the test It will not overwrite existing cookies, no matter what the domain setting is. Mark -Original Message- From: Scott Brady [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 27, 2007 12:38 PM To: CF-Talk Subject:

RE: bad cfc practice but why?

2007-03-08 Thread Gaulin, Mark
I think Mike nailed it. People who say that CFC should not create html must also think that no class in java can create output, and that clearly won't fly (since java has nothing but classes). CFCs should have a single, clear purpose. If that purpose includes creating html than so be it. The OO

RE: Java Pluggin for Eclipse`

2007-03-23 Thread Gaulin, Mark
Java support is native in the SDK version of eclipse. Mark -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 12:59 PM To: CF-Talk Subject: Java Pluggin for Eclipse` Chaps, Does anyone have any recommendations on

RE: You think you know OOP.. but you don't

2007-03-26 Thread Gaulin, Mark
I am writing in spaghetti code because the client is not paying me enough to do otherwise. When you get good at it, you can't help but write OO-inspired code for all but the most trivial applications. Writing good code (OO or otherwise) will always be faster than writing crap. (Assuming you

RE: SQL Query Help

2007-04-04 Thread Gaulin, Mark
Need more info: What would the query be to return the last invoice for a single customer? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 04, 2007 8:58 AM To: CF-Talk Subject: SQL Query Help having brain fart here ... ughh scenario:

RE: Using CFCs in session scope - need cflock help

2007-04-06 Thread Gaulin, Mark
Well, why not? Blanket statements like that sound fishy to me is all, but if there's a good reason behind it... like maybe because lots of sessions can be created by a crawler, for example. (But that could be checked for an avoided.) Thanks Mark -Original Message- From:

RE: CF7 Upgrade IIS6 Virtual Directory

2007-04-09 Thread Gaulin, Mark
I assume you have some dirs that run cfm files correctly using CF7. For the working vs. non-working directories, check the isapi filters installed in each directory and also the script mappings. I bet one of these is pointing to an older dll. I believe there is also a way to dump an IIS setup

RE: What conditions would cause a new jsessionid to be assigned to a user session?

2007-04-13 Thread Gaulin, Mark
I've never seen this, so this is just a random idea: Do you have access to the web server log files (and do you log cookies)? If so, can you verify that the client browser was sending in the same cookie value to the server at the point where they got redirected to the login? If the client didn't

RE: CreateObject() with java

2007-04-18 Thread Gaulin, Mark
Java classpaths sound not actually contain .class files (although .jar files are included in classpaths). Assuming your java class in not in a package (which is a Bad idea, but looks to be the case from your java code), then you need to include in the classpath the directory containing your

RE: CreateObject() with java

2007-04-18 Thread Gaulin, Mark
Java classpaths sound not actually contain .class files (although .jar files are included in classpaths). Assuming your java class in not in a package (which is a Bad idea, but looks to be the case from your java code), then you need to include in the classpath the directory containing your

RE: CreateObject() with java

2007-04-18 Thread Gaulin, Mark
/18/07, Gaulin, Mark [EMAIL PROTECTED] wrote: Java classpaths sound not actually contain .class files (although .jar files are included in classpaths). Assuming your java class in not in a package (which is a Bad idea, but looks to be the case from your java code), then you need to include

RE: Cookies, Session Scope, and the AOL Browser

2007-04-19 Thread Gaulin, Mark
I have seen where a single visit from an AOL person can come from different IP addresses. We use a load balancer with sticky sessions that sends the same IP to the same server (within a given time limit, and only if that server is up) so that they will get the same session state on each hit.

RE: Regex help looking for a name in a string.

2007-04-27 Thread Gaulin, Mark
Is there a delimited in the list of names (work_string), something that you can include in your reg ex to anchor it to an entire entry? Mark -Original Message- From: Will Swain [mailto:[EMAIL PROTECTED] Sent: Friday, April 27, 2007 5:27 AM To: CF-Talk Subject: Regex help looking

RE: Regex help looking for a name in a string.

2007-04-27 Thread Gaulin, Mark
I think this is a good approach too, but it will get complicated because you have to avoid matching text inside an existing already-hyperlinked bit of text. I suspect that this is less of a regex problem and the solution will require searching for strings manually, but at least the solution can

RE: Group By Hours

2007-05-01 Thread Gaulin, Mark
Check out datepart. -Original Message- From: Robert Rawlins - Think Blue [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 01, 2007 7:42 AM To: CF-Talk Subject: Group By Hours Hello Guys, I have a bunch of records of log data, all with a datetime stamp on it, and I'm looking to have SQL

RE: Am I missing something?

2007-05-02 Thread Gaulin, Mark
Try replacing the cflog with a cfdump of the error structure and see if each of the fields you reference is defined... If your error page has an error then things can act weird. (HTTPReferer doesn't sound like an error field to me...) Mark -Original Message- From: Chris Ditty

RE: Simple FORM post?

2007-05-15 Thread Gaulin, Mark
Tough to say what could be going on without looking at any code, but have you considered that there may be a cross-site scripting security issue at play? Does Firefox report anything it its JS console? Mark -Original Message- From: Rob O'Brien [mailto:[EMAIL PROTECTED] Sent:

RE: is this wrong on my client's part?

2007-05-15 Thread Gaulin, Mark
Aside from the fact that the requirements sound like a total pain (but hey, if it pays), couldn't acceptance testing happen on a server that you both mutually have access to (so, not the final, live server)? That would give the client (and you) good reason to expect that it will work when

RE: problem with spaces in value of a list in a URL that is delimited with + sign

2007-05-18 Thread Gaulin, Mark
FYI, pluses are supposed to be replaced by spaces by any app server. If someone wants to include pluses in an url parameter then they should url-encode them as %2B (the hex value for 43, the ASCII code a '+'), and spaces should be encoded as %20 or +. I'll bet you are going to find other issues

RE: Shocked!

2007-05-21 Thread Gaulin, Mark
Yeah, I wish there was an admin setting that would REQUIRE all variables to be scoped (like VB's Option Explicit). Of course, I sometimes get lazy and don't include the variables. scope prefix, so I'd get stung by this once in a while too, but hey, that would be a good thing. Mark

RE: Shocked!

2007-05-21 Thread Gaulin, Mark
It's all about having options... I'd like to see some just like the existing admin option that checks for invalid cf tag attributes... you can run with it off in production but on in development. (Did that option go away? I remember that back in CF4.5 or so...) I just added this to the Wish list

RE: Odd custom tag issue

2008-01-04 Thread Gaulin, Mark
Yup, CF caches the location of custom tags. -Original Message- From: Ken Ferguson [mailto:[EMAIL PROTECTED] Sent: Friday, January 04, 2008 11:27 AM To: CF-Talk Subject: Re: Odd custom tag issue Alright then, that one falls squarely under the heading of questions you should wait 5 more

RE: Spell Checker

2008-01-10 Thread Gaulin, Mark
Any spell check is going to have to server-side component... You won't find a pure one written in JS. There may be some open spell check service out there but I didn't find one when I looked a couple of years ago. I ended up using aspell with a java wrapper (which I could easily call from CF).

RE: DB Design question

2008-01-11 Thread Gaulin, Mark
Hi It looks like you have to decide between two approaches: the one-table-per-list-type method requires a lot of tables but it gives you explicit foreign key relationships and straight-forward querying; the one-table-with-a-type-identifier method requires that you define some sort of type field

RE: designing db tables for calendar events

2008-01-17 Thread Gaulin, Mark
For what it's worth, the MS SQL Server model for scheduled tasks is well documented in the SQL DMO help. Do a search for SQLDMOFreq_Daily and you'll be smack in the middle of the data model they use. Their model has no problem with first Tuesday of each month, etc, and it may give you ideas. It

RE: cfqueryparam, cached execution plans, and changing table structure

2008-01-17 Thread Gaulin, Mark
Does your query do select * ... or select fieldname, ...? We always avoid select * ... and that avoids lots of potential issues with caching in CF or in the SQL server (and I think it makes for easier-to-maintain code, even though it is more verbose). Thanks Mark -Original

RE: Strange Characters Appearing in Browser

2008-01-22 Thread Gaulin, Mark
You should look at the HTTP headers that come back when you request the static vs dynamic version of the page... I bet you will see something like this in the CF version: Content-Type: text/html; charset=UTF-8 This line asserts the character set of your content, and that can make all of the

RE: Strange Characters Appearing in Browser

2008-01-22 Thread Gaulin, Mark
LaBadie, Web Manager East Stroudsburg University 200 Prospect St. East Stroudsburg, Pa 18301 570-422-3999 [EMAIL PROTECTED] http://www.esu.edu -Original Message- From: Gaulin, Mark [mailto:[EMAIL PROTECTED] Sent: Tuesday, January 22, 2008 11:15 AM To: CF-Talk Subject: RE: Strange Characters

RE: Strange Characters Appearing in Browser

2008-01-22 Thread Gaulin, Mark
Obviously the real fix is up to the CMS people, but if you can't change the CMS's behavior, maybe you can tweak the data... Perhaps just replacing the 0xC5 with nbsp; via SQL or in CF? Lame, but what else can you do. Thanks Mark -Original Message- From: Steve LaBadie

RE: syntax issue between Access and MS SQL

2008-01-23 Thread Gaulin, Mark
Apparently you can't use ORDER BY on the first SELECT, so I presume that the second ORDER BY will be applied to the combined rows. Thanks Mark -Original Message- From: Ben Conner [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 23, 2008 9:04 AM To: CF-Talk Subject: syntax issue

RE: The _ character in variable names

2008-01-24 Thread Gaulin, Mark
it isn't variable names that you need to worry about in this special case, just form (or url?) field names. That, I think, is an important difference. (And yes, it totally sucks to find out that you just spent a day tracking down this issue. Been there.) Thanks Mark -Original

RE: SQL Question -- Order by a column's value?

2008-01-25 Thread Gaulin, Mark
Yes, you can do this with a CASE statement. The syntax may depend on you db, but on SQL Server ORDER BY CASE Colleges WHEN 'Harvard' THEN 1 WHEN 'Princeton' THEN 2 WHEN 'Dartmouth' THEN 3 ELSE 100 END This would

RE: Duplicates in Arrays or Lists

2008-01-30 Thread Gaulin, Mark
Put the values in a Struct; in one pass you can create a second array/list that avoids any values that are already in the Struct. Mark -Original Message- From: Chad McCue [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 30, 2008 11:16 AM To: CF-Talk Subject: Duplicates in

RE: cf5 and single quote

2008-02-01 Thread Gaulin, Mark
CF has been doing proper single-quote replacement all the way back to the early days (at least CF3, probably all the way back to the original), so that is not the issue. -Original Message- From: Chad Gray [mailto:[EMAIL PROTECTED] Sent: Friday, February 01, 2008 1:55 PM To: CF-Talk

JavaCC/ANTLR grammar for ColdFusion?

2008-02-01 Thread Gaulin, Mark
Hi Has anybody done any work on pulling together a grammar for ColdFusion, something that might be a good start for a compiler-compiler like JavaCC or ANTLR? (If you've used these tools before, would you recommend one over the other?) I'd like to try some static analysis on CF code and having a

RE: JavaCC/ANTLR grammar for ColdFusion?

2008-02-03 Thread Gaulin, Mark
is a real pain, as it is one strnge language syntactically. Mark On Feb 2, 2008 7:39 AM, Gaulin, Mark [EMAIL PROTECTED] wrote: Hi Has anybody done any work on pulling together a grammar for ColdFusion, something that might be a good start for a compiler-compiler like JavaCC or ANTLR

RE: Java-Coldfusion conversion

2008-02-08 Thread Gaulin, Mark
Hi You may be having issues because the main method appears to be a static method, and I seem to recall that there is an issue with calling those directly from CF when you don't have an instance of the class handy. I suggest you create a java class of your own that does the calls you want, but

<    1   2   3   4   >