Re: Dynamically prepolate the select box

2008-05-12 Thread Brian Kotek
Normally I'd agree, Chris. But since that is covered by the docs as well as being something that would be explained completely in the first few chapters of any book on the subject, I assume most folks would think it was a given. Unfortunately, since Erik won't actually read the documentation or

Re: Writing a re-usable business function with CF8

2008-05-09 Thread Brian Kotek
It sounds like you're asking if you can run a CFML-based function without a CFML engine. The answer is no. You'd need to write it in Java or a .NET language depending on which server platform the system is running. IIS is only a web server. In order to actually execute code, IIS has to be

Re: Writing a re-usable business function with CF8

2008-05-09 Thread Brian Kotek
You could also just set it up as a centralized web service and allow people on any platform to call it that way. That's what they're for, after all. On Fri, May 9, 2008 at 12:34 PM, Don L [EMAIL PROTECTED] wrote: On Friday 09 May 2008, Don L wrote: Now, what if there's some free and light

Re: Dynamically prepolate the select box

2008-05-09 Thread Brian Kotek
Literally. http://www.amazon.com/Adobe-ColdFusion-Web-Application-Construction/dp/032151548X/ On Fri, May 9, 2008 at 2:00 PM, Bobby Hartsfield [EMAIL PROTECTED] wrote: Chapter 1: option value=#Item_ID#cfif item_ID EQ selectedId selected=selected/cfif ..:.:.:.:.:.:.:.:.:.:.:.:. Bobby

Re: insert /delet problem in coldfusion

2008-05-03 Thread Brian Kotek
The problem is that instead of posting these kinds of questions (which are usually just hundreds of lines of code with the request to fix it), Erik needs to read a book on ColdFusion and a book on SQL. I've asked (begged) him to do this so many times that my fingers are numb, but he just refuses

Re: Application variable undefined in CFC

2008-04-30 Thread Brian Kotek
This is a pretty schizophrenic message. On Tue, Apr 29, 2008 at 10:45 PM, Andrew Scott [EMAIL PROTECTED] wrote: Brian, Yes I would recommend to find a better way if you can, but that doesn't make it illegal. You know I am sick of the term encapsulation, When Coldfusion becomes strictly

Re: Automating Subversion Commits

2008-04-30 Thread Brian Kotek
That's what Ghost is for. ;-) On Wed, Apr 30, 2008 at 4:11 AM, denstar [EMAIL PROTECTED] wrote: All that good stuff said, I'd think you could set up a scheduled deal with SVNAnt... Not that anyone would want to do that, but sometimes... You know there's a way to tie subversion into webDAV

Re: Application scope not recognized in onError()

2008-04-30 Thread Brian Kotek
Reinitialize the application. You probably added this after the onApplicationStart() ran, which means its not set since that method only runs once, when the application starts up. A temporary way to do this is do add cfset onApplicationStart() / to your onRequestStart method, but be aware that

Re: APPLICATION scope unknown in Application.cfc

2008-04-29 Thread Brian Kotek
pseudo constructor is pretty much the de-facto way to describe code that runs outside of any cffunction tags in a CFC. I'd actually argue that by trying to come up with yet another way to label it, you're inadvertently making it more confusing than it already is. Sometimes you just have to obey

Re: Application variable undefined in CFC

2008-04-29 Thread Brian Kotek
On Tue, Apr 29, 2008 at 1:41 AM, Andrew Scott [EMAIL PROTECTED] wrote: Hmm... What sort of comment is this? It's also worth pointing out that referencing the application scope from within a component is generally not a good idea anyway, since it violates the encapsulation of the component.

Re: Application variable undefined in CFC

2008-04-29 Thread Brian Kotek
On Tue, Apr 29, 2008 at 5:55 AM, Andrew Scott [EMAIL PROTECTED] wrote: Ok encapsulation is not a rule that you need to adopt, to its fullest. It is a guide. Encapsulate by convention, reveal by need is what I would call a rule because it has been demonstrated over and over to offer huge

Re: Automating Subversion Commits

2008-04-29 Thread Brian Kotek
Barney nails it on the head, as usual. Also, the general rule is to never commit broken code to the repository. Any kind of automated commit risks pushing unfinished code into the repository (unless you're running some kind of unit tests through a pre-commit hook), which is a bad thing especially

Re: APPLICATION scope unknown in Application.cfc

2008-04-28 Thread Brian Kotek
The error says that the component components.security can't be located. It doesn't say anything about the application scope. On Mon, Apr 28, 2008 at 5:26 PM, marc -- [EMAIL PROTECTED] wrote: Hi, I have this in my Application.cfc: cffunction name=onApplicationStart access=public

Re: APPLICATION scope unknown in Application.cfc

2008-04-28 Thread Brian Kotek
Yes, they have to be defined in the THIS scope of Application.cfc. On Mon, Apr 28, 2008 at 6:05 PM, marc -- [EMAIL PROTECTED] wrote: Hi Brian, You're right, I put the question wrong. Sorry about that. The issue is this: if I define 2 mappings like this cfset THIS.mappings={} cfset

Re: Application variable undefined in CFC

2008-04-28 Thread Brian Kotek
Without more information it's impossible to say. Clearly, whether or not you believe the variable is defined, it isn't, or CF wouldn't be throwing an error. It's also worth pointing out that referencing the application scope from within a component is generally not a good idea anyway, since it

Re: DYnamic survey design

2008-04-25 Thread Brian Kotek
First, it does not seem to be working properly is not a useful description of a problem. WHAT is it doing that makes you think it is not working properly. You must explain yourself. I have sent over the link to the Smart Questions page to you on many occasions, but clearly you still have never

Re: ColdFusion query question

2008-04-25 Thread Brian Kotek
Did you read my response to this same question in the other thread before you decided to post it yet again as a duplicate thread? On Fri, Apr 25, 2008 at 12:37 PM, erik tom [EMAIL PROTECTED] wrote: I have problem updating the DB table. I have 3 text boxes which has specific id. if the value

Re: DYnamic survey design

2008-04-25 Thread Brian Kotek
Since I have no idea what form.opt contains, or what is in the getOptions query, or what is in getOptions2, it's impossible to help you. Honestly this is so convoluted and has such confusing naming conventions I can't even GUESS at what this is supposed to do. I mean, what kind of names are opt,

Re: DYnamic survey design

2008-04-25 Thread Brian Kotek
OK first, this is just a perfect example of why mixing presentation code and processing logic together in one file is a horrible idea. Again, just to keep driving this point, any basic CF book will explain to you why this is terrible and how to separate things. So let's break this down in terms

Re: Is this Application.cfm abuse?

2008-04-24 Thread Brian Kotek
However, if he means that the file itself is actually 25,000 lines of code, and that when he saved it the file size was 500k, then yes, I'd say that is almost definitely a very bad design choice. On Thu, Apr 24, 2008 at 7:01 AM, Cameron Childress [EMAIL PROTECTED] wrote: Not really, as long as

Re: Is this Application.cfm abuse?

2008-04-24 Thread Brian Kotek
the application scope. But you are right. CFMX 6.1 wouldn't even execute a file longer than ~10k lines. I haven't come across code that heinous since then. -Cameron On Thu, Apr 24, 2008 at 8:18 AM, Brian Kotek [EMAIL PROTECTED] wrote: However, if he means that the file itself is actually 25,000

Re: output column average using coldfusion

2008-04-21 Thread Brian Kotek
Use the AVG aggregate function. I think you really need to take a step back from what you're doing and spend some time learning basic SQL, because a huge number of the issues you've been posting about would be immediately solved if you had an understanding of joins and aggregate functions. There

Re: output column average using coldfusion

2008-04-18 Thread Brian Kotek
I have to point out that this approach is terribly inefficient. Calculations like this should be in at the database level using SQL, that's exactly what it's supposed to do. Any time you're looping over queries to run more queries, or to total things up, it should be a big red flag, because in

Re: Lots of bugs with cold fusion 8 (standard edition)

2008-04-16 Thread Brian Kotek
Because it is, indeed, absurd to report a bug in anything other than the latest version of the product. Further, if you had bothered to read the documentation, you would see that it says: A comma separated list of the font sizes to display in the rich text editor Size selector. List entries

Re: OutofMemoryError

2008-04-15 Thread Brian Kotek
How are you creating the XML variable? Becuase if you are building it up manually by concatenating strings together this is common. This is because every time you concatenate a string it creates a new Java String instance, which means you have (depending on how many columns you have) hundreds of

Re: Forcing a CFC to refresh...

2008-04-15 Thread Brian Kotek
It doesn't have anything to do with CFCs. ColdFusion has always cached web services so it doesn't have to keep re-requesting and re-parsing the WSDL. Please, do some research before you run out to a list and condemn something that actually has nothing to do with your problem. And as Barney said,

Re: OutofMemoryError

2008-04-15 Thread Brian Kotek
No idea really, maybe it's timing out? Or are you flushing content to the browser before it is finished? On Tue, Apr 15, 2008 at 11:24 AM, Joel Watson [EMAIL PROTECTED] wrote: Brian-- These links look great! The ExportDbToXml.cfc is actually just what I needed. Unfortunately, I am still

Re: cftry/catch error report question

2008-04-15 Thread Brian Kotek
An empty string is not a number. You need to default it to 1 or do a conditional check and only perform the multiplication if the value is numeric. On Tue, Apr 15, 2008 at 2:52 PM, Ben Conner [EMAIL PROTECTED] wrote: Hi, I've set up a cftry/catch around a piece of code that I am having

Re: Forcing a CFC to refresh...

2008-04-15 Thread Brian Kotek
I'd have an issue with anyone who forced such a setup on me. You might ask them how you're expected to develop a solution when they can't or won't even allow for a proper development flow. Basically it sounds like the decision to work with an external system that limits your IP address to a single

Re: Can Regex find and replace the 7th and 8th character of a line.

2008-04-08 Thread Brian Kotek
However you do it, I'd look at a Java StringBuilder or StringBuffer, because any string manipulation with CF over that many lines is going to blow up with a Java out of memory exception since every concatenation or string function call creates another string in memory. On Tue, Apr 8, 2008 at 5:25

Re: Can Regex find and replace the 7th and 8th character of a line.

2008-04-08 Thread Brian Kotek
OK, I stand corrected. For anyone who doesn't want to waste time writing C-based CFX tags just to duplicate something that is built into the Java API, I'd recommend a Java StringBuffer or StringBuilder. On Tue, Apr 8, 2008 at 7:55 PM, Claude Schneegans [EMAIL PROTECTED] wrote: However you do

Re: ColdFusion array problem

2008-04-03 Thread Brian Kotek
On an unrelated note, would you mind if I used this code block in a blog entry on identifying problems with code and refactoring? Or, more likely, an entire series of blog entries? (I'm being serious). I can remove your name if you like or include it if you like.

Re: Flex?

2008-04-03 Thread Brian Kotek
Flex is ONLY client-side. It must communicate with a server via AMF (Flash Remoting), web services, or via HTTP (typically to get XML data) to do anything like save data to a central database. It absolutely does NOT replace HTML or JavaScript. Flex is meant for applications like online stores or

Re: Variable problems

2008-04-02 Thread Brian Kotek
Or he could use my FormUtils library which automatically converts any arbitrary collection of form fields into corresponding structures, arrays, arrays of structs, etc. I created it for exactly this reason. :-) http://formutils.riaforge.org/index.cfm On Wed, Apr 2, 2008 at 11:04 AM, Adrian

Re: Variable problems

2008-04-02 Thread Brian Kotek
RIAForge has this link but it might be useful to post it here so what this does is totally clear: http://www.briankotek.com/blog/index.cfm/2007/9/4/Implicit-Creation-of-Arrays-and-Structures-from-Form-Fields On Wed, Apr 2, 2008 at 11:58 AM, Brian Kotek [EMAIL PROTECTED] wrote: Or he could use

Re: Load Testing

2008-04-02 Thread Brian Kotek
I've had good luck with the MS stress test tool: http://www.microsoft.com/technet/archive/itsolutions/intranet/downloads/webstres.mspx?mfr=true On Wed, Apr 2, 2008 at 2:39 PM, Mike Harman [EMAIL PROTECTED] wrote: I'm interested in hearing what others are doing for load testing and what

Re: Variable problems

2008-04-02 Thread Brian Kotek
this does is totally clear: http://www.briankotek.com/blog/index. cfm /2007/9/4/Implicit-Creation-of-Arrays-and-Structures-from-Form-Fields On Wed, Apr 2, 2008 at 11:58 AM, Brian Kotek [EMAIL PROTECTED] wrote: Or he could use my FormUtils library which automatically converts any

Re: CF 8 Performance Problems?

2008-03-21 Thread Brian Kotek
This bug is not Adobe's, but Sun's. It is a known issue with the classloader in Java 6 that still has not been fixed, though it appears to be fixed in the beta builds of Java 7. http://corfield.org/blog/index.cfm/do/blog.entry/entry/Java_6_and_ColdFusion_8 On Fri, Mar 21, 2008 at 9:56 AM, Mark

Re: CF 8 Performance Problems?

2008-03-21 Thread Brian Kotek
Everyone I've ever talked to has had very good results switching to 1.5 until this is fixed by Sun. On Fri, Mar 21, 2008 at 6:24 PM, Annie x [EMAIL PROTECTED] wrote: Pat, Put me on the I think it's a high priority list. If they are going to tout CF8 as a huge performance gain and

Re: Flash Remoting and CF

2008-03-20 Thread Brian Kotek
First, at this point I'd say if you don't use Flex to do this you're a bit crazy. ;-) Your Flash guy can use Flex to handle all the core UI still and still write custom ActionScript or create .swfs that can be used within Flex. There is a vast array of information on how easy it is to talk to

Re: Urgent help required - CF8 install on IIS6 generates ACL error

2008-02-18 Thread Brian Kotek
I'm not sure exactly what the issue is as I have never seen this. But it must be something in your IIS or Windows configuration somewhere, because I have CF8 running on IIS and W2K3 for multiple sites with no problems. You could contact Adobe support (they offer free installation support if the

Re: CFC, YES OR NO

2008-02-06 Thread Brian Kotek
The real issue I would have is that, as far as I can tell, the framework isn't actively maintained. Does anyone know if there is ongoing development on the Plum framework and tools? Even if there is, I'd recommend looking at one of the more mainstream frameworks like Model-Glue, Fusebox, Coldbox,

Re: Programmatically determine an application's size in memory?

2008-02-05 Thread Brian Kotek
The CF8 Server monitor will tell you all of this. On Feb 5, 2008 9:13 AM, Andy Matthews [EMAIL PROTECTED] wrote: Well the problem is that we have multiple dynamic apps all running from the same codebase. Each app gets the same code to begin with. Then we add in all of the cached queries,

Re: Using __type__ to return objects to Flex

2008-01-29 Thread Brian Kotek
Tom, are you sure your keys have the proper case? As far as I know, query column names are all uppercase so I'm pretty sure that is where the problem is coming from. To deal with this, I passed a list of property names with the correct case to the AOP Advice doing this translation (using the

Re: Using __type__ to return objects to Flex

2008-01-29 Thread Brian Kotek
The column_name is actually in whatever case the column name is using in the database. For a one-time generation this might be fine, but one definitely wouldn't want to be doing this on every method call. However, passing a DSN to an advice, or just a properly-formatted list of property names, is

Re: Using __type__ to return objects to Flex

2008-01-29 Thread Brian Kotek
On Jan 29, 2008 11:08 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Tuesday 29 Jan 2008, Brian Kotek wrote: property names, is simple using my MetaDataAwareAdvice. You might have a http://www.briankotek.com/blog/index.cfm/2008/1/16/Creating-A-MetadataAware-ColdSpring-Advice I saw

Re: Using __type__ to return objects to Flex

2008-01-29 Thread Brian Kotek
Yep, there's no way to do it directly from the query columns. You either have to write your own VO CFC (which can then obviously have the proper case), or you have to give this code a list of the properly-formatted property names. Or of course you can have your AS class use all uppercase property

Re: CF8 and IPv6

2008-01-29 Thread Brian Kotek
There was an update to CF7 to allow some support for IPv6 (in things like GetLocalHostIP()), which obviously are carried over to CF8. But for debug IPs I have no idea. I'd download the developer edition and try it. On Jan 29, 2008 9:55 AM, DURETTE, STEVEN J (ATTASIAIT) [EMAIL PROTECTED] wrote:

Re: CMS Solution Recommendations

2008-01-29 Thread Brian Kotek
Not sure where you're looking, FarCry is constantly updated. I'd definitely check it out. http://www.farcrycms.org/ On Jan 29, 2008 12:39 PM, Nate Willard [EMAIL PROTECTED] wrote: Hello, Can anyone recommend a Coldfusion CMS solution? Also, is your recommendation currently supported? I

Re: Using __type__ to return objects to Flex

2008-01-29 Thread Brian Kotek
Interesting and good to know! But forcing them to lowercase is just about as bad as forcing them to uppercase. Unfortunately, it still means I can't properly camel case the property names in the AS class. On Jan 29, 2008 5:23 PM, Kevin Aebig [EMAIL PROTECTED] wrote: There's a setting for the

Re: OT: SQL Question -- Order by a column's value?

2008-01-26 Thread Brian Kotek
I actually prefer to do this in the ORDER BY clause (keeping the ordering logic in the ORDER BY instead of in the SELECT) but the end result is the same. If you won't or can't add a sort column to the table, a CASE statement is about the only other way to do this in the query itself. On Jan 25,

Re: Owned by Rootdamages by FasT

2008-01-23 Thread Brian Kotek
Or at the very least write some generic code in Application.cfm/Application.cfc that inspects the form, url and cookie scopes and strips out anything suspicious like SQL statements. That would only be a half measure though. The queries need to be changed to use cfqueryparam. On Jan 23, 2008 11:38

Re: How Much for a Cold Fusion Web developer.

2008-01-23 Thread Brian Kotek
It really depends on what you've done with ColdFusion. Have you used frameworks? Are you familiar with MVC, CFCs, and OOP? Also, sorry to nitpick but the point must be made. When I was looking at resumes and they spelled ColdFusion Cold Fusion, they instantly were pushed to the bottom of the

Re: CF MX8: This is driving me nuts!!!

2008-01-23 Thread Brian Kotek
Yes this is the real problem. You're referencing the table by the wrong name in the where clause. On Jan 23, 2008 12:42 PM, Dominic Watson [EMAIL PROTECTED] wrote: cfquery name=getUser datasource=#dsn# SELECT * FROM Users WHERE (getUser.UserLogin = '#Form.UserLogin#')

Re: CF MX8: This is driving me nuts!!!

2008-01-23 Thread Brian Kotek
Are there fields in the database named userLogin and password? Don't use select *. Specify the column names that you want. Use cfqueryparam. On Jan 23, 2008 12:36 PM, Nick Ross [EMAIL PROTECTED] wrote: 01.22.08 9:44 AM THANKS EVERYONE. YES, I FOUND THE SINGLE QUOTE BUT IT MADE NOT

Re: This evaluate thing always stumps me...

2008-01-21 Thread Brian Kotek
Or better, use StructKeyExists to avoid any potential ambiguity: http://corfield.org/blog/index.cfm/do/blog.entry/entry/isDefined_vs_structKeyExists On Jan 21, 2008 1:28 PM, Jonathon Stierman [EMAIL PROTECTED] wrote: You don't need to use Evaluate() to perform that isDefined check. Simply

Re: This evaluate thing always stumps me...

2008-01-21 Thread Brian Kotek
Again, these really should be using StructKeyExists: cfif StructKeyExists(form, 'grp_sort_#myIdx#') and Len(Trim(form['grp_sort_#myIdx#'])) gt 0 /cfif On Jan 21, 2008 1:48 PM, Les Mizzell [EMAIL PROTECTED] wrote: This one works: cfif isDefined(Form.grp_sort_#myIDX#) AND

Re: Performance Improvement Technique with cf8

2008-01-14 Thread Brian Kotek
If you're proposing the use of cfthread for every user request to run separate threads for each of the blocks you're talking about, I would say don't. CFTHREAD is useful in certain situations but abuse of it will cause problems. http://www.petefreitag.com/item/650.cfm On Jan 14, 2008 2:31 PM,

Re: Adobe ColdFusion IDE survey

2008-01-09 Thread Brian Kotek
That's because it's a Java application. While it does mean that the GUI will look different than a traditional, native W32 application, it also means that it looks the same on all platforms (Win, Mac, Linux, etc.). Is it the greatest GUI ever? Hell no. But is it OK? Yes. To me (and most people, I

Re: CFC, Custom tag, or something for tedious SQL Queries?

2008-01-09 Thread Brian Kotek
Use an ORM. On Jan 9, 2008 11:56 AM, George Linderman [EMAIL PROTECTED] wrote: Hey guys, We all do them all the time, just good old basic SQL queries. INSERT, UPDATE etc. However, many times the forms I develop are insanely long...so writing down all of the field names, and then their

Re: CFC, Custom tag, or something for tedious SQL Queries?

2008-01-09 Thread Brian Kotek
Object-Relational Mapping, actually. Transfer seems to have the most traction nowadays. On Jan 9, 2008 1:17 PM, Dominic Watson [EMAIL PROTECTED] wrote: Use an ORM ORM = Object-Relational Modeler/Modeling Examples: * Reactor:

Re: CFC, Custom tag, or something for tedious SQL Queries?

2008-01-09 Thread Brian Kotek
It's Mapping. Not sure where Doug got modeling from, that's not correct. On Jan 9, 2008 2:04 PM, Dominic Watson [EMAIL PROTECTED] wrote: Object-Relational Mapping, actually. Transfer seems to have the most traction nowadays. Lol ok, that makes more sense - I got the term 'modelling'

Re: listGetAT problem...

2008-01-09 Thread Brian Kotek
There is also a function at CFLib.org that will do this. http://www.cflib.org/udf.cfm?ID=962 On Jan 9, 2008 5:27 PM, Les Mizzell [EMAIL PROTECTED] wrote: Todd wrote: Yeah, sorry... If you're on CF8, which you should be, if you're not... sorry. CF7 still - waiting on the host to

Re: Adobe ColdFusion IDE survey

2008-01-08 Thread Brian Kotek
Unfortunately, no, we don't. And this is a must have addition to whatever IDE might come out of this survey. On Jan 8, 2008 11:09 AM, Cutter (CFRelated) [EMAIL PROTECTED] wrote: Intellisense for CFCs? We have that in CFEclipse, don't we?...;) Steve Cutter Blades Adobe Certified Professional

Re: Accessing Trac from ColdFusion

2008-01-08 Thread Brian Kotek
CVSDude definitely exposes the XML-RPC interface to Trac, since that is how Mylyn works to interface with Trac from inside Eclipse. On Jan 8, 2008 11:35 AM, Dan Skaggs [EMAIL PROTECTED] wrote: Thanks Barney... I was looking at that option as well. The only hangup with that is that I don't

Re: Adobe ColdFusion IDE survey

2008-01-08 Thread Brian Kotek
I'd agree. Given everything that Eclipse offers, like SVN integration, Trac integration, ANT integration, and editors for everything under the sun, I think it would be completely insane for them to use anything else to build a CF IDE. On Jan 8, 2008 11:49 AM, Rick Faircloth [EMAIL PROTECTED]

Re: Adobe ColdFusion IDE survey

2008-01-08 Thread Brian Kotek
On Jan 8, 2008 1:42 PM, Claude Schneegans [EMAIL PROTECTED] wrote: Good point. If everybody is happy with CFeclipse, let everybody use CFeclipse. If it is not the case, let Adobe develop something else, but not the same thing. Everyone is not happy with CFEclipse, that is the whole point.

Re: Adobe ColdFusion IDE survey

2008-01-08 Thread Brian Kotek
Sure, I can see how having a one-stop editor for Flex, ColdFusion, JavaScript, XML, and HTML, with Subversion, ANT, bug tracking, and task management integration would be a terrible idea. And who can argue with the looks alien in Windows...that's a show stopper. (rolls eyes) On Jan 8, 2008 12:46

Re: Adobe ColdFusion IDE survey

2008-01-07 Thread Brian Kotek
A moot point if the platform is Eclipse-based. What I think would really kick ass is if Adobe would embed a bare-bones version of the ColdFusion server itself directly into Eclipse (since it is also Java-based), or hook directly into a local install of CF. Because at that point the parsing

Re: Adobe ColdFusion IDE survey

2008-01-07 Thread Brian Kotek
Not sure why you think it would be bad, since as Sean pointed out it would be the only way to get true introspection and error flagging. An IDE could parse text until the cows come home, but until the code is actually compiled and executed there is no way to know what is actually happening. On

Re: CF - Flex Frameworks?

2008-01-04 Thread Brian Kotek
I haven't explored it beyond reading about it, but I'm pretty sure that the ColdBox to Flex integration is NOT meant to provide a back-end for a full-scale Flex application. If I recall this was a nice solution for situations where an existing HTML site needed a little bit of Flex thrown into it.

Re: Struct Issue

2008-01-03 Thread Brian Kotek
Just a note that your method does not return a struct or an array, which is what your description attribute says. It returns a struct or a query. Also, you might want to consider refactoring this into two methods, because having it sometimes return a query and other times return a struct will

Re: onApplicationStart

2008-01-03 Thread Brian Kotek
You can just call onApplicationStart() again, but be aware that it won't be thread safe as it is when the application starts up. On Jan 3, 2008 3:01 PM, Adkins, Randy [EMAIL PROTECTED] wrote: Question: When using the onApplicationStart within an Application.cfc, lets say I wanted to restart

Re: CF-based CMS?

2007-12-28 Thread Brian Kotek
It definitely takes some getting used to and has a learning curve (for both use and development), but it does have a huge array of features, it is free, and once set up correctly it works very well (look at caching and also be absolutely sure that report execution times is turned off on the CF

Re: CF8: Serialise a CFC?

2007-12-14 Thread Brian Kotek
in the deserialized instance. -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 9:43 PM To: CF-Talk Subject: Re: CF8: Serialise a CFC? Thanks for the clarification, and that makes sense. Perhaps more to the point though, what happens if you

Re: CF8: Serialise a CFC?

2007-12-14 Thread Brian Kotek
Exactly. In fact I'd be interested to see if the CFC will even deserialize or be usable (I have no idea if CF does any metadata comparisons or type lookups during the deserialization and instantation of the CFC). On Dec 14, 2007 8:37 AM, Tom Chiverton [EMAIL PROTECTED] wrote: On Friday 14 Dec

Re: CF8: Serialise a CFC?

2007-12-13 Thread Brian Kotek
reference to be maintained once the cfc is deserailized. And yes, we are working on the serializing array and query objects within the cfc scopes. That issue will be fixed soon. Thanks, Rakshith Adobe ColdFusion Team -Original Message- From: Brian Kotek [mailto:[EMAIL PROTECTED] Sent

Re: CF8: Serialise a CFC?

2007-12-12 Thread Brian Kotek
Also, be very careful because if you have serialized versions of CFCs in the database and then you change the actual code for the CFC (add a method, etc.), you are going to have major problems because your application code will be out of synch with the serialized CFCs. Which means if you add a

Re: Updating to Eclipse 3.3...

2007-11-28 Thread Brian Kotek
This is why I maintain a separate eclipse-extensions folder and install all my plugins there. If you have to install a fresh copy of Eclipse, all you need to do is point that new install at the extensions folder (in Manage Configuration). From there you can pull down updates to the plugins as

Re: cfswitch in cf8

2007-11-26 Thread Brian Kotek
On Nov 26, 2007 11:14 AM, Brad Wood [EMAIL PROTECTED] wrote: If it helps, I did run the test originally for 10,000 iterations which, given my application, is a very realistic number to consider. While the comparison is less dramatic the cfswitch is still a full second slower which is

Re: Session expiration time?

2007-11-19 Thread Brian Kotek
Note that you can't set this to a higher value than the value defined in the CF Administrator. Well, you can set it to a higher value in Application.cfm/Application.cfc, but it will be ignored. On Nov 19, 2007 7:50 AM, Dominic Watson [EMAIL PROTECTED] wrote: Check out this page in the CFMX 7

Re: Cold fusion do not support input param: Help

2007-11-19 Thread Brian Kotek
I wrote a CFC that will parse arbitrarily nested structures, arrays, arrays of structures, etc., based on the form field name(s). http://formutils.riaforge.org/ On Nov 19, 2007 11:47 PM, Tarek Jubaer [EMAIL PROTECTED] wrote: Cold fusion do not support input param array like below: input

Re: How to invoking CFC in with relative path

2007-11-17 Thread Brian Kotek
On Nov 17, 2007 6:14 AM, Dominic Watson [EMAIL PROTECTED] wrote: Perhaps I was not clear in the initial post, but here is an example of how this works to solve the problem of not being able to use relative paths for components. Let us say you have the following folder struct: wwwroot\

Re: How to invoking CFC in with relative path

2007-11-17 Thread Brian Kotek
Heh, it doesn't take much playing with ColdSpring for that a-ha moment to come. ;-) On Nov 17, 2007 9:09 AM, Dominic Watson [EMAIL PROTECTED] wrote: Having spent this morning looking at ColdSpring and AOP, I take the liberty to write an alternative to your initial reply. Hopefully my intitial

Re: How to invoking CFC in with relative path

2007-11-16 Thread Brian Kotek
What you've described is not the same as what the original poster is asking about. He want to use relative paths. You have created a simple factory, but you still have to either know the full path to the target CFC (which is not what he was wanting), or you have to have all your CFCs in a single

Re: How to invoking CFC in with relative path

2007-11-16 Thread Brian Kotek
On Nov 16, 2007 8:08 PM, Dominic Watson [EMAIL PROTECTED] wrote: What you've described is not the same as what the original poster is asking about. He want to use relative paths. What I described is exactly as the link that you posted in your original response and is a solution to the

Re: How to invoking CFC in with relative path

2007-11-15 Thread Brian Kotek
You can try to hack around it ( http://www.bennadel.com/blog/348-Creating-ColdFusion-Components-In-Parent-Directories-From-Sub-Directories-Without-Mapped-Paths.htm), but just do it correctly and create a CF mapping. CFCs aren't meant to be referenced relatively. Further, if you ever use ColdSpring

Re: dumpy goodness

2007-11-14 Thread Brian Kotek
That's the first time you mentioned any of this, so I was going on your previous statement that the code was causing a loop to create the error over and over again. In any event, if you try to serialize a gigantic struct, that will generate a really gigantic string. So if you keep reserializing

Re: BlogCFC Imports Not Showing

2007-11-14 Thread Brian Kotek
By default the main page will only show entries that were added in the last 30 days (I believe). This might have changed in a recent version but I know it has been the case in the past. So if your imported entries are older than 30 days (you might confirm by looking at their dates in the

Re: CFEclipse Help Needed

2007-11-13 Thread Brian Kotek
On Nov 13, 2007 5:13 PM, Rey Bango [EMAIL PROTECTED] wrote: Is it a network drive ? Tried it across the Internet to a remote server using the Adobe RDS plugin. I'd say this is probably the culprit, since I've never used it, and saving files onto a local drive has never been a problem. Do

Re: Adding Properties to an Object at Runtime

2007-11-12 Thread Brian Kotek
If you want to add/change data or behavior at runtime, you really have two options. One is to use what you're describing, which is really based on Duck Typing. CF is a dynamic language and as a result you can add methods to objects at runtime. However, you're right, this does make the API more

Re: I am looking for some good tutorials or examples for learning OOP

2007-11-12 Thread Brian Kotek
In this case, Judith is pointing out that this issue of FAQU covers OOP AND frameworks. However, I agree with you that if you don't understand OOP, you're probably better of getting a grasp of the concepts first before you also try to tackle one of the OOP-based frameworks. Your best bet is

Re: dumpy goodness

2007-11-12 Thread Brian Kotek
You probably have some kind of nested circular reference in what is being dumped, which essentially will generate an infinite loop. On Nov 12, 2007 12:45 PM, Brad Wood [EMAIL PROTECTED] wrote: Something a little weird this morning. We use Fusebox and have a site-wide error handler which takes

Re: Mocking a DAO for testing

2007-11-12 Thread Brian Kotek
Hi Jeff. Yes, you have to tell the mock object what you're expecting it to return, so that the object being tested (your service in this case) interacts with the mock the same way it would interact with the real object. You'd do this in your unit test methods. So in your case, you'd mock a

Re: Adding Properties to an Object at Runtime

2007-11-12 Thread Brian Kotek
Yes I don't think I'm following what you're trying to do. If employeeID is a property of the User object, why wouldn't it already be there from the start? I'm not clear on what the end user of the application has to do with it. On Nov 12, 2007 2:01 PM, Jeff Chastain [EMAIL PROTECTED] wrote:

Re: Adding Properties to an Object at Runtime

2007-11-12 Thread Brian Kotek
You can also just attach additional methods to the CFC at runtime. So if you need a new getter and setter method, you can define that function and attach it to the CFC, and that CFC will now have those methods. On Nov 12, 2007 4:35 PM, Rich [EMAIL PROTECTED] wrote: Jeff, Have a look at the

Re: Adding Properties to an Object at Runtime

2007-11-12 Thread Brian Kotek
Yes, if it's just a simple matter of wanting extra properties in the object (properties that need no behavior), a generic getter and setter may be fine. The other options (writing a CFC to disk, composition, subclassing, or dynamically injecting methods) might be overkill or might not solve your

Re: dumpy goodness

2007-11-12 Thread Brian Kotek
On Nov 12, 2007 6:46 PM, Brad Wood [EMAIL PROTECTED] wrote: Naturally most everything has a limit, but I guess I would have expected the limits of CF to not be so limited. Even if I am talking about a structure nested 400 levels deep, how big is that really? With modern computers and

Re: Mocking a DAO for testing

2007-11-12 Thread Brian Kotek
On Nov 12, 2007 5:03 PM, Jeff Chastain [EMAIL PROTECTED] wrote: If the DAO object is injected into the service object via ColdSpring, it is still a case that I don't have a handle on the mock object in the unit test to define its methods before it gets inserted into the service object. This

Re: OT: CFEclipse / SVN problem

2007-11-12 Thread Brian Kotek
Try svn://localhost On Nov 12, 2007 10:40 PM, ColdFusion [EMAIL PROTECTED] wrote: Configuration: I loaded up Eclipse v 3.3.1.1 with the CFEclipse plugin and the SVN Plugin. I am running Windows Vista 32bit as my development laptop. I support multiple clients and their code. I have my

<    1   2   3   4   5   6   7   8   >