RE: MySQL and cftransaction

2003-07-13 Thread Bud
I though I read somewhere that MySQL 4 supported transactions... guess looking on the MySQL site would clear it up for ya Thanks David. Yes, it looks as though MySQL 4 supports transactions. But my question was whether ctransaction would work. Just curious if anyone has had any experience with

Refresh application-scoped variables

2003-07-13 Thread Dina Hess
Hi all, Can't seem to get my head around this one... How can I programmatically refresh application-scoped variables whenever there's a change? Right now, I'm doing something like this in Application.cfm: cfparam name=application.init default=0 cfif not application.init use

RE: Refresh application-scoped variables

2003-07-13 Thread Mike Townend
I usually do something like.. CFIF Not IsDefined(Application.DSN) OR IsDefined(URL.Reset) !--- Create all Application Vars --- /CFIF So if I need to reset an app then just call the page and append a ?reset=1 HTH -Original Message- From: Dina Hess [mailto:[EMAIL PROTECTED]

RE: Refresh application-scoped variables

2003-07-13 Thread Ben Doom
If you make a change to (for example) application.bob, then it is changed in all instances of the application. That's the point of the application scope. Or perhaps I'm misunderstanding the problem -- Ben Doom Programmer General Lackey Moonbow Software, Inc : -Original

RE: (OT) RegEx editor

2003-07-13 Thread Tony Weeg
i would love to put some words in a form box.. say for instance... [EMAIL PROTECTED] and then the regex interprets that, and turns it into some sort of @[EMAIL PROTECTED]([EMAIL PROTECTED])%($#([EMAIL PROTECTED])*!@)#$_ thing. make sense? and maybe a wizard type thing...where it could say,

Re: Refresh application-scoped variables

2003-07-13 Thread Dina Hess
So you have a refresh application scope link in an admin area to set url.reset? Sounds like what I'm doing now. I just wondered if there was a better to do it. Thanks for the input, Mike. - Original Message - From: Mike Townend [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent:

RE: Refresh application-scoped variables

2003-07-13 Thread Matt Robertson
Pardon the intrusion, but why would you refresh the application scope like this? Saving overhead rather than using cfparam in application.cfm? Matt Robertson [EMAIL PROTECTED] MSB Designs, Inc. http://mysecretbase.com

Re: Refresh application-scoped variables

2003-07-13 Thread Dina Hess
No intrusion. I assume you mean why would I refresh the application scope by using a link in the admin area? Because I'm too stupid to figure out a better way? :) I indeed thought I was saving overhead by not resetting the same application-scoped variables for every request...since they don't

RE: Refresh application-scoped variables

2003-07-13 Thread Matt Robertson
Well, I don't fully understand where you're at applicationwise, but I try to use a cached query for most of my application-wide settings. Keeps the locks and copies to request scope down to near zero. The few values that need to tunnel down to custom tags (a couple of base url and file path

Re: Refresh application-scoped variables

2003-07-13 Thread Dina Hess
Well, I for one am grateful that you're a nerd. :) That's exactly the kind of information I was looking for. Thanks, Matt. - Original Message - From: Matt Robertson [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, July 13, 2003 3:21 PM Subject: RE: Refresh application-scoped

Re: Refresh application-scoped variables

2003-07-13 Thread Dina Hess
oops...geek, that is. much cooler connotation. :) - Original Message - From: Dina Hess [EMAIL PROTECTED] To: CF-Talk [EMAIL PROTECTED] Sent: Sunday, July 13, 2003 3:35 PM Subject: Re: Refresh application-scoped variables Well, I for one am grateful that you're a nerd. :) That's exactly

Re: Refresh application-scoped variables

2003-07-13 Thread Sean A Corfield
On Sunday, Jul 13, 2003, at 13:21 US/Pacific, Matt Robertson wrote: Well, I don't fully understand where you're at applicationwise, but I try to use a cached query for most of my application-wide settings. Interesting. mm.com uses a couple of techniques: 1. 'constant' values are set in request

Re: Refresh application-scoped variables

2003-07-13 Thread Dina Hess
Good stuff, Sean. Thank you. I've decided to move the application-scoped variables in this small app into the request scope. They do need to be available to all instances of the application, but I have a feeling they will change more often than I originally anticipated. :) - Original

OT: CSS Layouts

2003-07-13 Thread Jeff Chastain
I am looking for a CSS layout that fits the following criteria and I am not having much luck. Anybody have any pointers? - allows for header, 2 or 3 columns, and a footer - allows for 'miss-ordering' of the blocks (content first, then header, navigation, and footer) within HTML Anybody

RE: (OT) RegEx editor

2003-07-13 Thread Ben Doom
: i would love to put some words in a form box.. : : say for instance... : : [EMAIL PROTECTED] : : and then the regex interprets that, and turns it : into some sort of : : @[EMAIL PROTECTED]([EMAIL PROTECTED])%($#([EMAIL PROTECTED])*!@)#$_ : : thing. : : make sense? Not really. : and maybe a

RE: (OT) RegEx editor

2003-07-13 Thread Tony Weeg
have you seen the kde one that we bought? where you have drag and drop matches... i would rather go the other way. lets say i type in a variation of a string type layout that i want to match against. string layout: 1 where x = any character a-z where 1 = any number 0-9 and it

RE: (OT) RegEx editor

2003-07-13 Thread Ben Doom
Just as a point of reference, the actual regex for your whatever is [a-z]{4}[0-9]{4}[a-z]{4}[0-9] However, the real question is, how would the system know (for example) that you meant for X and 1 to be indicative of [a-z] and [0-9] instead of a literal capital x and the literal numeral 1?

AMENDED (STILL NEED HELP): Php in cf help...

2003-07-13 Thread Ryan Mitchell
Ok, right I've discovered the problem, but can't find a way around it... I know theres a lot of regex guru's out there, and one of them is bound to have come across this before, so please help!! Basically im trying to URLEncodeFormat the part of the string being ReReplaced... Ie I want to

Cgi.script_name

2003-07-13 Thread Mark Leder
Hi all, I have a cgi.script_name output as /contact/default.cfm How do I strip the characters after the last / so I can place in a var as /contact/ and use for further processing? Thanks, Mark ~| Archives:

RE: Cgi.script_name

2003-07-13 Thread Matthew Walker
How about getdirectoryfrompath(cgi.script_name) ? -Original Message- From: Mark Leder [mailto:[EMAIL PROTECTED] Sent: Monday, 14 July 2003 11:49 a.m. To: CF-Talk Subject: Cgi.script_name Hi all, I have a cgi.script_name output as /contact/default.cfm How do I strip the

RE: Cgi.script_name

2003-07-13 Thread Mark Leder
Yep, works. hadn't thought of that one. Thanks, Mark -Original Message- From: Matthew Walker [mailto:[EMAIL PROTECTED] Sent: Sunday, July 13, 2003 7:52 PM To: CF-Talk Subject: RE: Cgi.script_name How about getdirectoryfrompath(cgi.script_name) ? -Original Message- From:

Re: OT: CSS Layouts

2003-07-13 Thread Gyrus
At 17:00 13/07/2003 -0500, you wrote: I am looking for a CSS layout that fits the following criteria and I am not having much luck. Anybody have any pointers? - allows for header, 2 or 3 columns, and a footer - allows for 'miss-ordering' of the blocks (content first, then header,

Re: (OT) RegEx editor

2003-07-13 Thread Michael Dinowitz
I'm typing this from my laptop as my computer has died. This has 2 main effects. The first is that I don't have a good list of the sponsors of the RegEx editor on me and the second is that I don't have the source code for it. On the other hand, I'll be able to get their names off of paypal and the

RE: Refresh application-scoped variables

2003-07-13 Thread Matt Robertson
One thing I should probably mention is the maxrows setting in the code I put up is unnecessary. And usually I have a meaningful where clause in there so I can pull a record specific to a given area of a site pertinent to the settings I want. The only manual settings in the entire codebase are

RE: (OT) RegEx editor

2003-07-13 Thread Tony Weeg
andone of the biggest reasons that i became a sponsor of the kde port...is that im regex dumb, and am a visual learner... ill learn regEx quite soon after i see more of these translations its the translations, that turn whats the definition of blah into english is what teaches me more than

Re: Refresh application-scoped variables

2003-07-13 Thread Christian Cantrell
On Sunday, July 13, 2003, at 01:45 PM, Dina Hess wrote: How can I programmatically refresh application-scoped variables whenever there's a change? DRK 3 contains the init tag, which is designed to be used in your Application.cfm file like this: cf_init cfset myVar = myValue/

RE: Cgi.script_name

2003-07-13 Thread S . Isaac Dealey
I think that works... there's also rereplace(cgi.script_name,(.*/).*,\1) How about getdirectoryfrompath(cgi.script_name) ? -Original Message- From: Mark Leder [mailto:[EMAIL PROTECTED] Sent: Monday, 14 July 2003 11:49 a.m. To: CF-Talk Subject: Cgi.script_name Hi all, I have a

Re: Refresh application-scoped variables

2003-07-13 Thread Sean A Corfield
On Sunday, Jul 13, 2003, at 20:16 US/Pacific, Christian Cantrell wrote: DRK 3 contains the init tag, which is designed to be used in your Application.cfm file like this: cf_init cfset myVar = myValue/ /cf_init The body of the init tag will only run the first time it is encountered.