Yes absolutely right - dang useful that. The other thing to be weary of is
cf debugging output - so:
cfsetting showdebugoutput=false /cfcontent reset=true
type=application/json /(output code)
I think this is especially helpful when there are other devs working on the
same project.
Dominic
On Thu, Aug 13, 2009 at 4:31 AM, Dominic
Watsonwatson.domi...@googlemail.com wrote:
Yes absolutely right - dang useful that. The other thing to be weary of is
cf debugging output - so:
cfsetting showdebugoutput=false /cfcontent reset=true
type=application/json /(output code)
I think this
And working alone indeed
2009/8/13 Rick Root rick.r...@webworksllc.com
Not a problem if you're using Firebug and Coldfire =)
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of
Hi,
We would very much appreciate some expert interegation of the following
scenario:
An ms access database system is setup within an internal network. It has no
internet access or entry.
It stores sensitive data. However non-sensitive data is passed to it via an
email that is collected by
Do you see any potential security issues with this i.e. sql injection
via the email
As far as SQL injection is concerned, the risk is pretty low with an
Access database, since it cannot process
multi-statement SQL command. Unless there are tricks I don't know, all
SQL injections are based
on
Is there a way using CF's Regex functions to simplfy the lines of code below
into one line? Some kind of built in regex list comparison maybe?
cfset finalDescription = replace(trim(form.description), br, br /,
ALL)
cfset finalDescription = replace(finalDescription, p/p, br /br
/, ALL)
cfset
I'm not an expert with Regex, but you could do this:
cfset finalDescription =
replace(replace(replace(trim(form.description),br,br/,all),p/p
,br /br /,all),p,br /br /,all)
Again, this is not regex, but it is a much more simplified (and faster I
believe) way of doing the same thing with 1 line
less lines != simplified :)
A year from now, which version are you going to want to come back to when it
needs work? The 3 line version or the 1?
I'd prefer the 3. Easier to read.
Not really sure a regex solution is warranted here. You could probably get
one whipped up to find all instances
Charlie, think of my problem like this. Say you had any 5 character combos
you wanted to remove, for whatever reason.
I'm just looking for a simpler (or so I thought) RegEx way to do this.
I could loop over a list, but I thought (perhaps naively) there might be a
Regex function that could
Hello,
On SQL Server 2005, the event view shows login from our two webservers (via
CF), but there are so many. In a couple of minutes there are over 500 of
these entries:
Login succeeded for user xyz. Connection: non-trusted. [CLIENT:
192.168.1.12]
I have maintain connections selected. So is
This, of course, is completely a matter of opinion. I prefer 1 line -
faster processing, and still easy to support. Again, that's MY opinion, and
I'm sure we have about a hundred other opinions on this list. There's no
doubt that there are many ways to accomplish something in ColdFusion. But
rereplace(string,(p)+(/p),br,all)
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Easy there, killer. You said A. I said B. You didn't preface it with
in my opinion any more than I did.
I still maintain that (in my opinion), it's preferable to write more legible
code. The single line may be just as easily readable for you, but you may
not always be the one maintaining
Sorry I didn't read the post very well
rereplace(form.description,(p)+(/p)+(br),br/,all)
This does not replace a single p with br/br/ but I think it does the job.
~|
Want to reach the ColdFusion community with something
There ya go. :) Just found out you can use the pipe | as well.
-Original Message-
From: Tony Bentley [mailto:t...@tonybentley.com]
Sent: Thursday, August 13, 2009 2:35 PM
To: cf-talk
Subject: Re: Regex Help - Can this be simplified?
rereplace(string,(p)+(/p),br,all)
I have maintain connections selected.
Did you check that setting on all data sources for both CF Servers. Are
you storing client vars in via a datasource?
Run a trace on the SQL server to see what sort of operations are being
performed-- especially by new connections.
~Brad
You're better off using regex-replace(){rereplace()} over replace() for more
than one condition. The pipe is a way to cheat the replace function but for
future string searching or replacing functions, try regex and you can even test
it online here:
You don't actually need a regex to put this into one easily read line:
replaceList(trim(finalDesription), 'br,p/p,p,/p', 'br /,br
/br /,br /br /,')
... Or some derivative there of.
Performance may differ slightly in favour of one way or another, but as much
as I love regexs and I use them
Is there any way to capture a rendered page that uses DHTML? I have a simple
test case where I use some JS to do a document.write('test') to the page and
then use CFDOCUMENT to grab the page via the src attribute. But none of the
dynamic content is ever rendered. Has any one had any success with
If you are dealing in web content that changes and you want to compare
the current version to the previous version, look at some of the wiki
software, which has history and compare in the default install.
If you are looking at markup comparisons like Word does, that's a
more complex chore, but
I think you're out of luck. If your pages require a client that parses
and executes JavaScript in able to display all the content, cfhttp and
cfdocument won't do that. I've never been able to find a way to easily
execute JavaScript and collect the rendered HTML on the server.
~Brad
21 matches
Mail list logo