RE: What's the best way to investigate a Jrun.exe spike?

2011-01-24 Thread Bobby Hartsfield
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

Re: What's the best way to investigate a Jrun.exe spike?

2011-01-06 Thread Russ Michaels
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

Re: What's the best way to investigate a Jrun.exe spike?

2011-01-05 Thread Dan Baughman
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

Re: What's the best way to handle returning two queries from a component for looping?

2009-05-28 Thread Rick Faircloth
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

Re: What's the best way to handle returning two queries from a component for looping?

2009-05-28 Thread Jason Fisher
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

Re: What's the best way to handle returning two queries from a component for looping?

2009-05-28 Thread Rick Faircloth
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?

Re: What's the best way to handle returning two queries from a component for looping?

2009-05-28 Thread Jason Fisher
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

Re: What's the best way to handle returning two queries from a component for looping?

2009-05-28 Thread Rick Faircloth
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

Re: What's the best way to handle returning two queries from a component for looping?

2009-05-28 Thread Ryan Letulle
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

Re: What's the best way to handle returning two queries from a component for looping?

2009-05-28 Thread Jason Fisher
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:

Re: What's the best way to handle returning two queries from a component for looping?

2009-05-28 Thread Ryan Letulle
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

Re: What's the best way to handle returning two queries from a component for looping?

2009-05-28 Thread Rick Faircloth
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

RE: What's the best way to handle returning two queries from a component for looping?

2009-05-27 Thread Jason Durham
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

Re: What's the best way to handle returning two queries from a component for looping?

2009-05-27 Thread Rick Faircloth
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

Re: What's the best way to handle returning two queries from a component for looping?

2009-05-27 Thread Will Tomlinson
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.

Re: What's the best way to run a 4-hour-long CF script?

2009-05-10 Thread Kym Kovan
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

Re: What's the best way to run a 4-hour-long CF script?

2009-05-10 Thread Philip Kaplan
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.

Re: What's the best way to run a 4-hour-long CF script?

2009-05-10 Thread Kym Kovan
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.

Re: What's the best way to run a 4-hour-long CF script?

2009-05-10 Thread Philip Kaplan
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!

Re: What's the best way to bring these records into CF?

2008-12-29 Thread Charlie Griefer
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

Re: What's the best way to bring these records into CF?

2008-12-29 Thread Jochem van Dieten
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

Re: What's the best way to bring these records into CF?

2008-12-29 Thread Charlie Griefer
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.

Re: What's the best way to bring these records into CF?

2008-12-29 Thread Mike Soultanian
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

RE: What's the best way to handle this?

2006-12-21 Thread loathe
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

RE: What's the best way to deal with inexplicable error messages?

2001-05-06 Thread David Shadovitz
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,

Re: What's the best way to deal with inexplicable error messages?

2001-05-05 Thread Bill Davidson
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

Re: What's the best way to deal with inexplicable error messages?

2001-05-04 Thread Jon Hall
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?

Re: What's the best way to deal with inexplicable error messages?

2001-05-04 Thread Bill Davidson
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

RE: What's the best way (Solution)

2000-04-27 Thread Rich Wild
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

RE: What's the best way (Solution)

2000-04-27 Thread John Stanley
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

Re: What's the best way to learn WDDX

2000-04-26 Thread Mark Ireland
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.

RE: What's the best way to learn WDDX

2000-04-26 Thread Jim Taylor
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

RE: What's the best way

2000-04-26 Thread Rich Wild
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

Re: What's the best way to learn WDDX--Any other link?

2000-04-26 Thread Mark Ireland
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

Re: What's the best way to learn WDDX--Any other link?

2000-04-26 Thread John Quarto-vonTivadar
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

RE: What's the best way

2000-04-25 Thread Kelly Matthews
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-

RE: What's the best way

2000-04-25 Thread Steve Reich
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

RE: What's the best way

2000-04-25 Thread Bill Killillay
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

RE: What's the best way

2000-04-25 Thread Chris Porter
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

RE: What's the best way

2000-04-25 Thread Owens, Howard
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

RE: What's the best way

2000-04-25 Thread [EMAIL PROTECTED]
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,