RE: Relative path when instantiating a CFC?

2008-02-13 Thread Jonathon Stierman
The proxy approach has been blogged about: http://corfield.org/blog/index.cfm/do/blog.entry/entry/Extending_Your_Root_A pplicationcfc Here's the jist of the layout: /Application.cfc (root) /ApplicationProxy.cfc (extends Application.cfc) /sub/Application.cfc (extends ApplicationProxy.cfc)

iterators

2008-02-06 Thread Jonathon Stierman
I've been toying around with the idea of wrapping my output objects in Iterators on my View pages. The idea is that I'd like my Views to be relatively independent of the datatype that they're trying to display. So my View would be able to work with either a Query, Array of Structs, Array of

iterators

2008-02-06 Thread Jonathon Stierman
I've been toying around with the idea of wrapping my output objects in Iterators on my View pages. The idea is that I'd like my Views to be relatively independent of the datatype that they're trying to display. So my View would be able to work with either a Query, Array of Structs, Array of

iterators

2008-02-06 Thread Jonathon Stierman
I've been toying around with the idea of wrapping my output objects in Iterators on my View pages. The idea is that I'd like my Views to be relatively independent of the datatype that they're trying to display. So my View would be able to work with either a Query, Array of Structs, Array of

RE: iterators

2008-02-06 Thread Jonathon Stierman
Russ -- I had debugging on. Turning it off reduced the average by about 500 ms on the 1 record query, so that definitely helps some! Dominic -- I'd love to see what you've got! Post them to this thread, or email them to me, whichever you feel comfortable with. Not sure with what's going

RE: iterators

2008-02-06 Thread Jonathon Stierman
Russ -- I had debugging on. Turning it off reduced the average by about 500 ms on the 1 record query, so that definitely helps some! Dominic -- I'd love to see what you've got! Post them to this thread, or email them to me, whichever you feel comfortable with. Not sure with what's going

RE: iterators

2008-02-06 Thread Jonathon Stierman
Russ -- I had debugging on. Turning it off reduced the average by about 500 ms on the 1 record query, so that definitely helps some! Dominic -- I'd love to see what you've got! Post them to this thread, or email them to me, whichever you feel comfortable with. Not sure with what's going

RE: This evaluate thing always stumps me...

2008-01-21 Thread Jonathon Stierman
You don't need to use Evaluate() to perform that isDefined check. Simply use: cfif isDefined(Form.grp_sort_#myIDX#) /cfif If you need to get the reference to that variable, use array notation on your Form struct: Form['grp_sort_#myIDX#'] Jonathon

RE: mssql pagination

2008-01-03 Thread Jonathon Stierman
Thanks Dan, Adam, and Eric! I haven't played around with stored procedures much, so this will give me a chance to give them a whirl. As for 2000 being out of date, I hear you there -- I'll have to push to get the budget for it. At least now I have some leverage (a problem that can't easily be

RE: mssql pagination

2008-01-03 Thread Jonathon Stierman
That will definitely help my footing as well! Arguably even more than my fringe case that I couldn't work around. ;) Thanks, Jochem! Jonathon ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to

mssql pagination

2008-01-02 Thread Jonathon Stierman
I can't imagine I'm the first person to try to do something like this, so hopefully you guys can give me some insight! I know this isn't strictly CF-related -- but I'm hoping some of you have tried to do something like this in the past. I'm trying to produce a paginated list of records. The

RE: memory issues

2007-12-18 Thread Jonathon Stierman
Thanks Dale, Dustin and Andrew! I'll try clearing out the variables manually and see if that helps. Jonathon -Original Message- From: Andrew Scott [mailto:[EMAIL PROTECTED] Sent: Monday, December 17, 2007 10:48 PM To: CF-Talk Subject: RE: memory issues I will second that, the one

RE: memory issues

2007-12-18 Thread Jonathon Stierman
Using 1.4.2_12-b03. Not sure if that's the default JRE or not. I'll look into Robi's blog post. A line-by-line file reader could definitely help -- The idea being I'd only save into memory one line at a time and only keep the lines I want to display to the user. I hadn't thought of that

RE: memory issues

2007-12-18 Thread Jonathon Stierman
Thanks again Dan Ian for keeping with me here! Much love for that Steve Brownlee link -- I've been wanting a way to see all Sessions stored on an application by application basis, and it looks like that's the object I was looking for (createObject(java,coldfusion.runtime.SessionTracker))! Ian

RE: memory issues

2007-12-18 Thread Jonathon Stierman
It'd definitely be nice to get everything database-driven. That would save me some headaches. But keeping with the same train of thought here. I reduced the caching timeout from 30 minutes down to 1 minute -- I hoped to see my memory start clearing up fairly quickly: cfquery name=#queryName#

RE: memory issues

2007-12-18 Thread Jonathon Stierman
Anyone know the exact place to do start a garbage collection in FusionReactor? Looked at the help docs, and all the options I could find in the application -- no dice... Jonathon ~| Adobe® ColdFusion® 8 software 8 is the

RE: memory issues

2007-12-18 Thread Jonathon Stierman
That makes sense. Now if only it was smart enough to clean itself out BEFORE issuing 500 null and OutOfMemory responses ;) Then I'd really be happy! Jonathon -Original Message- From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 18, 2007 4:10 PM To: CF-Talk

memory issues

2007-12-17 Thread Jonathon Stierman
An application of mine has recently been acting up -- memory has been shooting up at a fairly rapid pace this past week, and I'm at my wits end! Can't seem to find any way to fix it. Here's the symptoms: After rebooting the CF service, memory starts out at about 60mb for the jrun.exe process.

RE: clearing Sessions on a per-site basis

2007-11-08 Thread Jonathon Stierman
on the box. It's unsupported, so ymmv from version to version of CF etc. Let me know if you can't find relevant code with Google. On Nov 8, 2007 6:59 AM, Jonathon Stierman [EMAIL PROTECTED] wrote: Is there any way to wipe out all the Sessions on a particular site running ColdFusion? My

RE: How do I get the characters after the last period in a string?

2007-11-07 Thread Jonathon Stierman
ListLast(dog.jpg,.) Jonathon -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 07, 2007 10:42 AM To: CF-Talk Subject: How do I get the characters after the last period in a string? This seems so simple, yet I couldn't figure out the answer

clearing Sessions on a per-site basis

2007-11-07 Thread Jonathon Stierman
Is there any way to wipe out all the Sessions on a particular site running ColdFusion? My application is storing an instantiated object in the Session scope, and I've just had to make an update to that object. Trick is, I don't want anyone wandering around the site with old versions of this

RE: programmatically add functions to a CFC

2007-10-24 Thread Jonathon Stierman
There is also doco and a good google group as well, so you don't have to speed dial me ;o) Yep, I'm subscribed there as well :) Obviously, I don't really mind if you don't want to use Transfer (or any other persistence framework) ;o), it may well not fit your needs, but I just think the

RE: programmatically add functions to a CFC

2007-10-24 Thread Jonathon Stierman
functions to a CFC On 10/24/07, Jonathon Stierman [EMAIL PROTECTED] wrote: Querying it is what I meant -- sorry for the confusion! What I'd love is a Get me a list/query/enum of all the Book records written by this Author method from within an Author object. As you noted, I could do

RE: programmatically add functions to a CFC

2007-10-23 Thread Jonathon Stierman
, What is it that Transfer doesn't provide for you, that you need in your application generation? Figured I would ask the question, as I'm always looking for areas in which Transfer canbe improved. Mark On 10/23/07, Jonathon Stierman [EMAIL PROTECTED] wrote: I looked into both Transfer and Reactor

RE: programmatically add functions to a CFC

2007-10-23 Thread Jonathon Stierman
that represent a single table. Looks kind of like this: !--- *** Created by Jonathon Stierman 10/4/2007 A descendant of Core.DAO -- this is a DAO specifically for the Entities table

RE: programmatically add functions to a CFC

2007-10-23 Thread Jonathon Stierman
Yes! One of my favorite tools :) Jonathon -Original Message- From: henry ho [mailto:[EMAIL PROTECTED] Sent: Monday, October 22, 2007 6:12 PM To: CF-Talk Subject: Re: programmatically add functions to a CFC btw, since you're into code generation, have you checked this out? Illudium

RE: programmatically add functions to a CFC

2007-10-23 Thread Jonathon Stierman
First, you can use constructor injection instead of setter injection In some cases, yes. In other cases, I have circular dependencies, which cannot use constructor injection. I typically always use setter injection for this reason -- I find it's more flexible. Second, you seem to be calling

programmatically add functions to a CFC

2007-10-22 Thread Jonathon Stierman
Is it possible to programmatically add/update functions to an instantiated CFC? I've made one attempt to add one by calling the getMetaData function, but nothing I added to the meta data seemed to update the object's method list. Is there another way to go about doing this, or am I on the right

RE: programmatically add functions to a CFC

2007-10-22 Thread Jonathon Stierman
of functions and loop over them, calling each or injecting them elsewhere, you can have a mixin() method that takes a function as an argument, and so on and so on. Really, lots of fun things here! -- nathan strutz http://www.dopefly.com/ On 10/22/07, Jonathon Stierman [EMAIL PROTECTED] wrote

RE: programmatically add functions to a CFC

2007-10-22 Thread Jonathon Stierman
Peter's a smart guy! I'm a lurker of his blog -- very interesting stuff (and admittedly mostly over my head) on application generation, which is one of my favorite topics! I'll have to check out LightWire -- I hadn't heard of it before. Jonathon -Original Message- From: henry ho

RE: programmatically add functions to a CFC

2007-10-22 Thread Jonathon Stierman
if it's just because you've done enough PHP to warp your brain ;) -- nathan strutz http://www.dopefly.com/ On 10/22/07, Jonathon Stierman [EMAIL PROTECTED] wrote: That is the crucial key I needed! Much easier than what I had tried to do with the meta data too -- bonus! like a cfinclude file

RE: programmatically add functions to a CFC

2007-10-22 Thread Jonathon Stierman
I looked into both Transfer and Reactor, and while they're awesome for DAO, they don't really give me all I'm looking for (*entire* -- or at least most of it -- application generation). I have been referencing Transfer for ideas when building my own CFC's -- so there's definitely more than a

RE: Firefox 2.0.0.7 Spry issues?

2007-09-20 Thread Jonathon Stierman
Sorry about the generalization! I didn't mean to denounce the jQuery library -- It's been a godsend for my projects. Thanks for the link - I'll try that update! Jonathon -Original Message- From: Rey Bango [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 19, 2007 11:06 PM To:

Firefox 2.0.0.7 Spry issues?

2007-09-19 Thread Jonathon Stierman
This is only partially related to ColdFusion -- I'm not using the CF8 spry tags. Just playing around with the Dreamweaver CS3 Spry wizards. But has anyone else had trouble getting Spry to work after running the Firefox updater yesterday? I'm suddenly not getting anything out of my application

RE: Firefox 2.0.0.7 Spry issues?

2007-09-19 Thread Jonathon Stierman
:( Jonathon -Original Message- From: Jonathon Stierman [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 19, 2007 7:31 PM To: CF-Talk Subject: Firefox 2.0.0.7 Spry issues? This is only partially related to ColdFusion -- I'm not using the CF8 spry tags. Just playing around

error/hack handling

2007-08-21 Thread Jonathon Stierman
I've got a question for you guys! I've been poking through the error logs and came across a mass of errors indicating that someone is trying to inject SQL into some of my queries: Invalid data 235' and user0 and ''=' for CFSQLTYPE CF_SQL_INTEGER. The specific sequence of files included

RE: error/hack handling

2007-08-21 Thread Jonathon Stierman
That's a step in the right direction, for sure! In this case, I'm need to deal with nvarchar database fields, so this won't directly solve my current problem. I'll definitely add it to the integer fields though. I like! Keep the ideas coming! :) Jonathon

RE: Formatting a Date for MSSQL

2007-08-20 Thread Jonathon Stierman
Not sure if this will solve your problem, but using cf_sql_timestamp for my date-time fields has always worked for me. Jonathon ~| Download the latest ColdFusion 8 utilities including Report Builder, plug-ins for Eclipse and

RE: code formatters

2007-08-17 Thread Jonathon Stierman
Hey, that is cool! Great for SQL -- now I just need to find one for CF/HTML/Javascript code. I tried my hand at a very basic formatter last night for kicks, and it's tougher than I thought it'd be. I'll check into Homesite -- do you know if that Homesite format feature made it's way into

RE: code formatters

2007-08-17 Thread Jonathon Stierman
Hey, neato! Never saw that there before. Could you point me to where the tweakable settings are for that? I'm not seeing any options... Thanks! Jonathon -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Friday, August 17, 2007 12:36 PM To: CF-Talk Subject: Re:

RE: code formatters

2007-08-17 Thread Jonathon Stierman
Ahh, thanks! I'll see what I can dig out of there! Jonathon -Original Message- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Friday, August 17, 2007 1:03 PM To: CF-Talk Subject: Re: code formatters I've never really made use of it, but I believe various set ups in the Edit -

code formatters

2007-08-16 Thread Jonathon Stierman
Do any of you have any favorite source code formatters? I've recently inherited a whole mass of sites programmed by various different people. Some code is very well formatted, and some could use some help :) Do you guys have any suggestions? Google turned up a few results, but I didn't

cfmodule use

2007-08-09 Thread Jonathon Stierman
Hi all - I'm building this one template that I'd like to re-use in multiple sections of my application. In this case, it happens to be a display list. But I'd like to be able to toggle certain options of this display list: So for example, assuming this is all the data my template displays: ID

RE: cfmodule use

2007-08-09 Thread Jonathon Stierman
I've got a working version using cfmodule now -- thankfully it was pretty easy. The whole start tag/end tag thing threw me a curveball (why the blazes is this displaying twice??), but it's up and running. Questions on the custom-tag. Is there any performance difference between this setup and

RE: cfmodule use

2007-08-09 Thread Jonathon Stierman
Thanks for the help guys! I am going to continue on with the cfmodule track and use the cfimport tag to help me manage them. I'm more familiar working with CFC's than cfmodules, which makes me *want* to use CFCs for this, but I think the cfmodule tag is a better fit in the end for me. At the

RE: CFC defining vars

2007-08-01 Thread Jonathon Stierman
Hey, good to know. I was curious on this question as well. How do you know whether or not unnamed queries will get saved to the Variables scope? It's not that I don't believe you -- just wondering if there's a cool utility or some documentation somewhere that I haven't come across yet.

trouble with CF and IIS

2007-07-27 Thread Jonathon Stierman
Hi all - Our server seems to have run into a bit of a permissions problem. Somehow or another the permissions got messed up for some of the basic IIS and ColdFusion users (not sure how as of yet). Whenever I request any page (not necessarily ColdFusion), I get the following error: HTTP Error

RE: trouble with CF and IIS

2007-07-27 Thread Jonathon Stierman
I'll give that a shot. Thanks, Dave! Jonathon ~| ColdFusion 8 beta - Build next generation apps today, with easy PDF and Ajax features - download now

RE: Possible race conditions, need locking?

2007-07-16 Thread Jonathon Stierman
Just curious, why do you care if multiple threads are reading the database from this gateway at the same time? There are always race conditions in shared scopes, but you only need to lock them when actually have consequences. As far as the usage of the lock, in this case, I'd go for a named

RE: accessing log files programatically

2007-07-15 Thread Jonathon Stierman
: Jonathon Stierman To: CF-Talk Sent: Sun Jul 15 00:35:49 2007 Subject: accessing log files programatically Anyone know of a good way to (1) get data out of the CF log files, and (2) archive the log files after getting the data? I poked around the Admin API hoping to find something related to logging

RE: accessing log files programatically

2007-07-15 Thread Jonathon Stierman
PROTECTED] Sent: Sunday, July 15, 2007 10:34 AM To: CF-Talk Subject: Re: accessing log files programatically Jonathon, I wrote a small utility to expand the logging functionality by using log4j. http://cflog4j.riaforge.org/ Hope that helps Qasim On 7/14/07, Jonathon Stierman [EMAIL PROTECTED

RE: accessing log files programatically

2007-07-15 Thread Jonathon Stierman
-c 19BC -p 4466 (PID of the JRUN service) Once closed, you can delete the file. ColdFusion will create a new one the next time it needs it. Just a thought... Might work for you. Cheers, -- Jeff Garza -Original Message- From: Jonathon Stierman [mailto:[EMAIL PROTECTED] Sent: Sunday

accessing log files programatically

2007-07-14 Thread Jonathon Stierman
Anyone know of a good way to (1) get data out of the CF log files, and (2) archive the log files after getting the data? I poked around the Admin API hoping to find something related to logging in there, but no dice as far as I could tell. So relucatantly, I toyed around with doing cffile

RE: having trouble with CFJSON / Spry

2007-07-05 Thread Jonathon Stierman
methods. On 7/4/07, Jonathon Stierman [EMAIL PROTECTED] wrote: I've got a webservice running that converts some various CF objects into JSON - Seems to be working alright, but I'm running into a vexing issue. When I call the service via Spry, I get an error from SpryDebug.js: Caught

having trouble with CFJSON / Spry

2007-07-04 Thread Jonathon Stierman
I've got a webservice running that converts some various CF objects into JSON - Seems to be working alright, but I'm running into a vexing issue. When I call the service via Spry, I get an error from SpryDebug.js: Caught exception in JSONDataSet.loadDataIntoDataSet: SyntaxError: missing } in XML

RE: OO style - dynamic set get methods

2007-06-14 Thread Jonathon Stierman
Why code by hand when computers can do it for you? :) http://rooibos.maestropublishing.com/ It seems to be standard to be using the full method sets. I believe ColdSpring searches your CFCs for getters and setters. So if you wanted to use ColdSpring (and probably some other frameworks), you

OOP newbie question

2007-06-02 Thread Jonathon Stierman
I'm attempting to code in a more OOP fashion (I've been doing all procedural in the past), and I've started using the Model-Glue framework as a base for my test OOP application. I've run into the question of where should Session variables be set? If my application requires a user to be

RE: cfinvoke or CreateObject

2007-06-02 Thread Jonathon Stierman
And dynamic arguments. cfinvoke method=getAllUsers cfif isDefined(form.userID) cfinvokeargument name=userID value=#form.userID# / /cfif /cfinvoke You'd have to branch out every single combination of possible parameters using just a CreateObject call. cfif

RE: cfinvoke or CreateObject

2007-06-02 Thread Jonathon Stierman
- From: Jonathon Stierman To: CF-Talk Sent: Sat Jun 02 20:03:02 2007 Subject: RE: cfinvoke or CreateObject And dynamic arguments. cfinvoke method=getAllUsers cfif isDefined(form.userID) cfinvokeargument name=userID value=#form.userID# / /cfif /cfinvoke You'd have