Jconsole can usually tell you a lot.
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
-Original Message-
From: Philip Kaplan [mailto:pkap...@gmail.com]
Sent: Wednesday, January 05, 2011 6:31 PM
To: cf-talk
Subject: What's the best way to investigate a Jrun.exe
if u have cf enterprise then you have a built in server monitor that you can
use.
You can also try www.fusion-reactor.com
here are a number of article son the subject
http://www.google.co.uk/search?q=jrun+performance+monitoringie=utf-8oe=utf-8aq=trls=org.mozilla:en-GB:officialclient=firefox-a
Use cfstart to run coldfusion command line, and then do stack dumps using
ctrl-pausebreak when it spikes.
There is an adobe tech note on how to do that.
In addition to that, Process Monitor from Mark Russinovich is also very good
( and free).
On Wed, Jan 5, 2011 at 4:31 PM, Philip Kaplan
Thanks, Will!
I don't remember using the group function as part of a query like that.
I had always just looped one query around another. When did the group
function show up as a query output function in CF? CF5? (Well, I guess
that's
what I get for going from CF 4.5 straight to CF 8...or was
Rick,
If it looks unclear, you can also do the following:
cfoutput query=getStuff group=theTitleFieldHere
h1#someTitleField#/h1
cfoutput group=theDetailField
p#theDetailField#/p
/cfoutput
/cfoutput
Note that the inner CFOUTPUT has 'group' attribute, but no 'query' attribute.
The plain
Thanks for the explanation, Jason.
It just seems so counter-intuitive to have cfoutput's within
cfoutput's...that's
always been a no-no.
So, was the cfoutput group... function created to address the very problem
of having to loop a query within a query? And when did CF first get this
function?
It's actually been there since 4.0, I believe. I know they added the
groupCaseSensitive attribute in 4.5, so the group option was in place by
that point. Essentially it's a way to get your output to follow your SQL
groupings, when that sort of thing is necessary. So like doing a blotter
Wow! That is a great function that I didn't even know existed! And how
many
times have a simply resorted to looping one query over another
unnecessarily!
And to be able to nest this multiple levels deep is great!
Finally crawling out from under my rock and into the light of day!
Doh!
On
Don't feel bad. I never used it either. So at least there's 2 of us.
--
Ryan
On Thu, May 28, 2009 at 10:51 AM, Rick Faircloth
r...@whitestonemedia.comwrote:
Wow! That is a great function that I didn't even know existed! And how
many
times have a simply resorted to looping one query
LOL, don't you just love finding something new that makes life (or at least
coding) easier?
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
Always lookin to save keystrokes. :)
--
Ryan
On Thu, May 28, 2009 at 11:50 AM, Jason Fisher ja...@wanax.com wrote:
LOL, don't you just love finding something new that makes life (or at least
coding) easier?
~|
Want
Maybe we should start a club... :o)
On Thu, May 28, 2009 at 12:02 PM, Ryan Letulle bayous...@gmail.com wrote:
Don't feel bad. I never used it either. So at least there's 2 of us.
--
Ryan
On Thu, May 28, 2009 at 10:51 AM, Rick Faircloth
r...@whitestonemedia.comwrote:
Wow! That
There are lots of ways to accomplish that. The simplest way seems to be
with SQL JOINs and group the output.
-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com]
Sent: Wednesday, May 27, 2009 1:39 PM
To: cf-talk
Subject: What's the best way to handle returning two
I started out that way, but couldn't make a join of any type work...
I tried left join, inner join, join, union, etc, but the best I could do
was get one title with one section. There should be one title with
multiple sections.
Here's what I tried last:
select
I started out that way, but couldn't make a join of any type work...
I tried left join, inner join, join, union, etc, but the best I could do
was get one title with one section. There should be one title with
multiple sections.
Rick,
1. I would remove the * and reference your fieldnames.
2.
Philip Kaplan wrote:
I have a script that needs a few hours to run. It's crawling several large
web sites/xml feeds.
What's the best way to do this with CF? I've tried adding
requestTimeout=100 in the URL but CF still seems to shut it down
eventually. Also my browser window gives up
Brilliant! A meta-refresh should work.
What if I wanted to run it as a scheduled task? Hmm.
On Sun, May 10, 2009 at 5:06 PM, Kym Kovan dev-li...@mbcomms.net.au wrote:
Philip Kaplan wrote:
I have a script that needs a few hours to run. It's crawling several
large
web sites/xml feeds.
Philip Kaplan wrote:
Brilliant! A meta-refresh should work.
What if I wanted to run it as a scheduled task? Hmm.
A counter and flag in a database, run the script once every 10 mins or
whatever is appropriate and use the flag and counter to see if the next
section is due and which section.
You rock -- running it right now with a meta-refresh at the bottom of the
page (and CFFLUSH at the top so i can watch the script process)
Working like a charm :)
Thank you thank you
On Sun, May 10, 2009 at 5:20 PM, Kym Kovan dev-li...@mbcomms.net.au wrote:
Philip Kaplan wrote:
Brilliant!
if you're on CF8, deserializeJSON() should work for each of the entities
enclosed in the {}, which would give you a struct.
i guess the trick is the looping. can't use a comma as a delimiter since
the JSON entities have commas inside of them. would a line break/carriage
return work as a
On Mon, Dec 29, 2008 at 6:42 PM, Charlie Griefer wrote:
if you're on CF8, deserializeJSON() should work for each of the entities
enclosed in the {}, which would give you a struct.
i guess the trick is the looping.
Don't loop, just make it an array by putting [] around it:
cffile action=read
On Mon, Dec 29, 2008 at 11:32 AM, Jochem van Dieten joch...@gmail.comwrote:
On Mon, Dec 29, 2008 at 6:42 PM, Charlie Griefer wrote:
if you're on CF8, deserializeJSON() should work for each of the entities
enclosed in the {}, which would give you a struct.
i guess the trick is the looping.
Jochem van Dieten wrote:
On Mon, Dec 29, 2008 at 6:42 PM, Charlie Griefer wrote:
if you're on CF8, deserializeJSON() should work for each of the entities
enclosed in the {}, which would give you a struct.
i guess the trick is the looping.
Don't loop, just make it an array by
What's the environment?
In IIS you can give sites custom HTTP headers, which you could use to store
a siteID.
Then you use the ID to query the DB and the site specific settings. One
code base that way, any changes you make would update all the sites at once.
Or you could have something in your
Let me add to the excellent advice already given:
* Show the code to another programmer (aka peer review)
* Read a good book on general programming practices, including debugging.
One such book is The Practice of Programming by Kernighan Pike. Here are
some section titles from chapter 5,
Glad I could ?help?.
-Bill
www.brainbox.tv
- Original Message -
From: Hubert Earl [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, May 04, 2001 10:30 PM
Subject: Re: What's the best way to deal with inexplicable error messages?
Hi,
Thanks for the feedback. Having just
I choose A, which usually ends up leading to C which then ends up with me
doing B. ;-)
jon
- Original Message -
From: Hubert Earl [EMAIL PROTECTED]
To: CF-Talk [EMAIL PROTECTED]
Sent: Friday, May 04, 2001 4:56 PM
Subject: What's the best way to deal with inexplicable error messages?
From someone who has written code the majority of my life (usually for
pleasure more than anything), the best thing to do is take some time away
from the problem. Not a lot, just enough so you're not seeing red. If you
are frustrated, you're not going to be productive. Go back later, and
Hmm,
I'm interested in this cos I'm using this sort of thing at the moment - but
what would be faster:
The processing time to run this code
or
The processing time involved to grab a default value from the database.
At the moment I have my db setup so that if an image is not submitted then
I think the only major difference between the two is
my code does not have to interact with a datasource.
But it does have to compile a directory listing and
then query that list. So I would guess that the
execution time difference depending on the system
shouldn't be more than a few
Try
http://forums1.allaire.com/Forums/Main.cfm?CFID=171752CFTOKEN=3339769CFApp
=49
At 04:15 PM 25/04/00 -0700, you wrote:
What is the best way to learn WDDX. I don't have any
idea of what it is and what it is used for.
Any ideas? Suggestions?!
Appreciate
A.B.
www.wddx.org
-Original Message-
From: aslam bajaria [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 25, 2000 4:15 PM
To: [EMAIL PROTECTED]
Subject: What's the best way to learn WDDX
What is the best way to learn WDDX. I don't have any
idea of what it is and what it is used for.
Any
If ,in your database, you are using paths to the images in your database,
rather than BLOB fields, couldn't you just add the path to a default image
as a default value for the column in the table?
Rich Wild
-Original Message-
From: John Stanley [mailto:[EMAIL PROTECTED]]
Sent: 25 April
The link works for me :-)
Make sure it is exactly as below. . .
http://forums1.allaire.com/Forums/Main.cfm?CFID=171752CFTOKEN=3339769CFAp
p=49
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe
The link works fine! you ahve to either expand the size of your email window
so that the whole link fits in one line, or at least remember to add on the
trailing pice that CR's onto the next line (on my screen , below, the "=49"
must be at the end of the previous line. If you do this you wil get
well in the database if there is no image that field SHOULD then be empty.
So why not something like CFIF IMG_FIELD IS NOT "" Display
ImageCFELSEDisplay other image/CFIF
or something. We have a member database with images for some people
and thats how I do it.
Kelly
-Original Message-
If you set the path to the image in a field in your DB, such as imagepath,
then this code will assume that if there is a value in that field, it is the
path to the image you want to display. If it is an empty field, then it will
display the default image. There are a number of ways you could do
cfif query.image gt ''
output your image from the db here
cfelse
output a default blank image here
/cfif
-Original Message-
From: John Stanley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 25, 2000 9:51 AM
To: [EMAIL PROTECTED]
Subject: What's the best way
I have an
now technically the 'best way' is to do it this way:
#iif(len(trim(imgField),de(imgField),de('/other/image/file.gif'))#
the reason for the len(trim(imgField)) is becasue often times, when a
character based field is created, it'll return that number of characters
even tho nothing is in it. i'm
A bit simpler:
cfif IsDefined('query.picture')
img src="#picturefilename#" etc.
/cfif
Or if you needed to point out the absense of a pic
cfif IsDefined('query.picture')
img src="#picturefilename#" etc.
cfelse
bNo Picture Available./b
/cfif
H.
=
Howard Owens
Web
Hello Everyone,
Have you ever got this one on an NT with iis4.0 and cf4.0, cybercash 3.2
cashregister?
STATUS: failure-hard
ORDER_ID:
ERROR_CODE: -362
SALE_DATE: 2425235045.000
ERROR_MESSAGE: Location: CCMckDirectLib; Message: Failure in Cryptographic
library
Any suggestions?
Thanks,
41 matches
Mail list logo