Re: CFC Newbie Question: Encapsulation

2006-02-16 Thread Rick Root
On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
>
> In my Java book it says that if a method is public, a data filed could
> be assigned a value directly, BUT doing so "violates an important
> principle of object-oriented programming -- that of data hiding using
> encapsulation.
>
> However, I have seen alot of CF developers write code that directly
> assigns values to data fields in CFC's like the following:


Officially, yes, true object oriented programming does not allow you to 
access variables in an object directly.  You can reference constants 
directly, but never set or retrieve variables.

In the CFC world I don't think there is any such thing as a constant, so 
you're either going to program get/set methods, or you're not.

My preference - for the most part - is not.

In a large development environment, with many developers working on 
difference pieces of a project, it does make sense to do this kind of 
encapsulation, because it protects your variables and allows you to 
control what values they contain.

For example, if you're using the this scope to store an ID variable that 
is an integer, if you ALLOW that variable to be set from the outside 
world (maybe someone elses CFC), then they could easily set it to "foo", 
and suddenly something doesn't work the way they expect it to and it 
breaks in YOUR code.

In the world of encapsulation, you control how that variable is set. 
This example only returns "false" but it could return or log a more 
specific error message.





 
 

 
 

 
 

 
 

 
 





This forces other programmers using your CFC to send proper data to the 
variable, or setting the variable will fail, preventing unknown 
consequences later in the application.

Rick

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232678
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFC Newbie Question: Encapsulation

2006-02-16 Thread Aaron Roberson
Thanks Rick, I will surely take a look.

-Aaron

On 2/16/06, Rick Root <[EMAIL PROTECTED]> wrote:
> Aaron Roberson wrote:
> >
> > I am going to keep all of these threads, print them out, and go over
> > them multiple times until I begin to grasp it all. I guess I won't be
> > learning CFAJAX until I get CFC's down, which is proving to be quite a
> > task and very lengthy process.
>
> CFCs are wonderful!
>
> If you want to see an example of using the this scope and an init()
> function within a CFC, look at the code in CFFM:
>
> http://www.opensourcecf.com/cffm
>
> In that case, I use an init() to set properties, which is good in the OO
> world (like a constructor in java), but I use the this scope instead of
> the variables scope, so I don't have to write getter and setter methods.
>
> It is a violation of object oriented programming, but I really don't
> care in this case =)
>
> Rick
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232680
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFC Newbie Question: Encapsulation

2006-02-16 Thread Rick Root
Aaron Roberson wrote:
> 
> I am going to keep all of these threads, print them out, and go over
> them multiple times until I begin to grasp it all. I guess I won't be
> learning CFAJAX until I get CFC's down, which is proving to be quite a
> task and very lengthy process.

CFCs are wonderful!

If you want to see an example of using the this scope and an init() 
function within a CFC, look at the code in CFFM:

http://www.opensourcecf.com/cffm

In that case, I use an init() to set properties, which is good in the OO 
world (like a constructor in java), but I use the this scope instead of 
the variables scope, so I don't have to write getter and setter methods.

It is a violation of object oriented programming, but I really don't 
care in this case =)

Rick

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232679
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Aaron Roberson
Mike,

Thanks for the encouragement. I looked at some examples that use DAO,
and I have looked into other Design Patterns too. At first I thought
that CFC's were nothing more than collections of functions. Now that I
am learning Java at the same time, I am realizing that there is much
more to it than that. I really don't like the idea of learning a
specific framework such as Mach II, Fusebox, etc. I also don't like
the idea of learning Design Patterns such as DAO, Decorater,
Composite, etc. It seems like all that is overkill, but I'm sure that
many on this list can bombard this thread with their witness to the
benefits of using a tested framework and design pattern. I'm just very
exhausted, have stretched my deadline, and don't know when I will be
able to bring all this to an end.

I would love it if I were where you are now, even though I am sure you
still have much to learn too. I have four websites that all belong to
the same organization (which I work for). I would like to build the
main site, and then just port various elements such as the user
registration, newsletter subscription, and relevant product offers
from the shopping cart to the sub sites. I am also being asked to
create an audio and video podcast, as well as a webservice for pushing
articles to other sites and aggregators. This is a huge project, and
my employer is wandering why it is taking so long. They are pressing
me to just use a open source projects, but most of the opensource
stuff is php and each feature requires a seperate database. Besides, I
want to learn how to do all this and I know that I'm not too far away
from doing it, but the task is daunting and CFC's are proving to me
much more complicated and confusing than I thought.

uhhh...

-Aaron

On 2/16/06, Mike Kear <[EMAIL PROTECTED]> wrote:
> Aaron,   Can offer this suggestion to you - you seem to be where I was not
> too long ago ...  persevering with it is WELL worth the effort.
>
> When I started tinkering about with CFCs, I used them as a collection of
> functions.   A bit like I had been including a cfm file containing a library
> of common functions for some time already.   The CFC approach seemed to be
> pretty easy and basically the same thing,  and I couldn't really see the big
> benefit of it.  It just seemed to be another way to do the same thing I'd
> been doing for years.   Big deal.
>
> Then I started playing with Mach-ii, and I jumped in too far, too deep and
> it was beyond me.  I retreated for a while and just continued using CFCs as
> libraries of functions.  I came back to it every so often, because it was
> such a major and frequent topic on lists like this I figured there had to be
> far more to it than I realised.
>
> Gradually the light went on.and it all started to make some sense to me.
> For someone who has learned everything 'on the job' and who has no formal
> training in IT, that's kind of how I've learned almost everything I know.
> Anyway, here's where I am now, and what I think has been the return for me
> .(sorry if this is stating the obvious to those who already 'get' OOP)
>
> In January, I built a Content Management System entirely using the OOP
> techniques I have learned so far.   No doubt people more experienced than I
> or with more formal study on OOP could pick holes in what I've done, but
> look at what the effort's done for me:
>
>
>- I built the whole CMS from scratch in two weeks.  Maybe it's not as
>complex as farcry perhaps but it's delighted at least one client so far and
>I know for sure it's far easier for novices to use.  I was able to build a
>couple of code generators to automatically take care of a lot of the 
> tedious
>typing too.
>- Using OOP concepts, I have built it so that logic and business are
>fully separated from display elements and also from the content.   Now I
>have an easily portable core I can use and reuse.I've rebuilt my own
>site (not yet deployed) in half a day, including plenty of customising.
> I
>expect to rebuilt 3 probono sites over the weekend and still have time for
>some woodwork and a beer or two.
>- Using this method forced me to think about the project differently.
>The whole project became far clearer in my mind, and building it was much
>easier.  Instead of dealing with a large complex project, i was dealing 
> with
>a whole lot of little tiny bits.Create an object, populate it with 
> data,
>pass it to a CFC to do something with it,  pass it back.   It's kinda fun 
> to
>see these bundles of data flying about my sites.
>- Each element is self-contained and if you get it right, ensure
>errors are trapped and dealt with, it's very robust.   Build 50 small
>elements all of whom are extremely robust and independent of the others, 
> and
>your whole system is far more robust than I'd been used to previously.  
> It's
>just neat to know that when I call the create() method, it's going to 
> b

Re: OT: Compiling java source code

2006-02-16 Thread Rick Root
I finally got everything compiled and working.  Many issues along the 
way were solved, and since I went through this whole process 6 months 
ago and didn't remember a damn thing, I decided to blog about it this time:

Compiling Custom Event Gateways For Dummies
http://www.rickroot.com/blog/1/2006/02/Compiling-Custom-Event-Gateways-For-Dummies.cfm

Rick

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232676
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Mike Kear
Aaron,   Can offer this suggestion to you - you seem to be where I was not
too long ago ...  persevering with it is WELL worth the effort.

When I started tinkering about with CFCs, I used them as a collection of
functions.   A bit like I had been including a cfm file containing a library
of common functions for some time already.   The CFC approach seemed to be
pretty easy and basically the same thing,  and I couldn't really see the big
benefit of it.  It just seemed to be another way to do the same thing I'd
been doing for years.   Big deal.

Then I started playing with Mach-ii, and I jumped in too far, too deep and
it was beyond me.  I retreated for a while and just continued using CFCs as
libraries of functions.  I came back to it every so often, because it was
such a major and frequent topic on lists like this I figured there had to be
far more to it than I realised.

Gradually the light went on.and it all started to make some sense to me.
For someone who has learned everything 'on the job' and who has no formal
training in IT, that's kind of how I've learned almost everything I know.
Anyway, here's where I am now, and what I think has been the return for me
.(sorry if this is stating the obvious to those who already 'get' OOP)

In January, I built a Content Management System entirely using the OOP
techniques I have learned so far.   No doubt people more experienced than I
or with more formal study on OOP could pick holes in what I've done, but
look at what the effort's done for me:


   - I built the whole CMS from scratch in two weeks.  Maybe it's not as
   complex as farcry perhaps but it's delighted at least one client so far and
   I know for sure it's far easier for novices to use.  I was able to build a
   couple of code generators to automatically take care of a lot of the tedious
   typing too.
   - Using OOP concepts, I have built it so that logic and business are
   fully separated from display elements and also from the content.   Now I
   have an easily portable core I can use and reuse.I've rebuilt my own
   site (not yet deployed) in half a day, including plenty of customising.I
   expect to rebuilt 3 probono sites over the weekend and still have time for
   some woodwork and a beer or two.
   - Using this method forced me to think about the project differently.
   The whole project became far clearer in my mind, and building it was much
   easier.  Instead of dealing with a large complex project, i was dealing with
   a whole lot of little tiny bits.Create an object, populate it with data,
   pass it to a CFC to do something with it,  pass it back.   It's kinda fun to
   see these bundles of data flying about my sites.
   - Each element is self-contained and if you get it right, ensure
   errors are trapped and dealt with, it's very robust.   Build 50 small
   elements all of whom are extremely robust and independent of the others, and
   your whole system is far more robust than I'd been used to previously.  It's
   just neat to know that when I call the create() method, it's going to bloody
   well WORK, because I already made sure the create() method works when I
   wrote the DAO cfc.  Almost completely gone is the error that drove me CRAZY
   in earlier days - "the  is undefined".  I hated that. Now
   variables almost always have a value, and all I have to do is make sure it's
   the correct value.
   - Maintenance far easier and quicker.  In the past, to add a field to
   a table, meant changing the table, changing the SQLstatements there, and
   there, and there, changing the form there, and there, and there,  and that
   action page, also that one and that one, and inevitably I'd miss a change
   somewhere.Testing was a tedious process.   Now, using OOP I have only
   one file where SQLstatements are, one form, one bean, maybe a couple of
   places where the data is manipulated.   Adding a column is a piece of cake,
   and I can easily identify where the changes will have to be.
   - When I think of a new idea, or the client wants something changed,
   it doesn't worry me as much as it used to.   In the past, I'd catch myself
   thinkiing "oh no I dont want to go into that stuff again . I'm going to have
   to change that and that and that and the other thing,   and test all that
   stuff all over again ... "And I'd find when I started work that there
   were far more strings of spaghetti crossing that area than I thought.
   Now, a change is nowhere near as difficult.   And changes in one area are
   far less likely to impact on other areas.  With every aspect of my CMS
   encapsulated in a little single-function bubble of its own, blind to
   everything going on around it except what it needs to know, I can make
   changes, knowing in advance exactly what files are going to be affected  and
   where changes are going to be needed.
   -

Aaron this doesnt answer your specific question I know, but I just wanted to
tell you that it can be confusing, seems

Re: CFC Newbie Question: Encapsulation

2006-02-16 Thread Aaron Roberson
James,

I am going to keep all of these threads, print them out, and go over
them multiple times until I begin to grasp it all. I guess I won't be
learning CFAJAX until I get CFC's down, which is proving to be quite a
task and very lengthy process.

Thanks again and again!

-Aaron

"To instantiate or not to instantiate, that is the question." - 21st
Century Shakespeare

On 2/16/06, James Holmes <[EMAIL PROTECTED]> wrote:
> No, for the moment, forget THIS.
>
> > 
> > 
>
> should be
>
> 
> 
>
> The life cycle of the instance depends on where you put it.
> Instantiate it in the session scope, it lasts as long as the session.
> Similar for the application scope.
>
> The use of THIS is to make this bit work:
>
> 
>
> Inside that, the init() method returns THIS
>
> 
>   
>   
> 
>
> That's the only time you need to use THIS in the whole component.
>
> On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> > > The only use for THIS in an OO-based component is to return THIS at
> > > the end of the constructor. That returns the entire component for use
> > > as an instance.
> >
> > In Java, the constructer is for providing arguments with default
> > values. These default values can be the ones that are automaticly
> > assigned to each corresponding data type, or if you create a
> > constructer method it will be the values you specify.
> >
> > > The properties will be in the VARIABLES scope; they can be used via
> > > getter and setter methods. This is where the ARGUMENTS scope comes in
> > > - the setter methods take an argument, check it for validity and then
> > > set a value in the VARIABLES scope. The VARIABLES scope remains
> > > between method calls, acting as storage within the instance.
> >
> > So within my setter method I would do something like the following:
> >
> > 
> > 
> >
> > The intention would be to make the "name" property persist across
> > method calls? I don't think I really understand what that means. I am
> > thinking in terms of sessions and applications but I don't think their
> > related. If I assign something to the session scope, the variable
> > remains the same throught the entire session unless it is changed by
> > another assignment. If an object is instantiated, all properties in
> > the variable scope will remain the same on the calling page, but what
> > about on other pages? What is the life cycle of an instance?
> >
> > Sorry for all the questions... I hope someone else relieves you from
> > doing all the work of saving me from despair...
> >
> > Thanks so much,
> > Aaron
> >
> > On 2/16/06, James Holmes <[EMAIL PROTECTED]> wrote:
> > > The only use for THIS in an OO-based component is to return THIS at
> > > the end of the constructor. That returns the entire component for use
> > > as an instance.
> > >
> > > The properties will be in the VARIABLES scope; they can be used via
> > > getter and setter methods. This is where the ARGUMENTS scope comes in
> > > - the setter methods take an argument, check it for validity and then
> > > set a value in the VARIABLES scope. The VARIABLES scope remains
> > > between method calls, acting as storage within the instance.
> > >
> > > On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> > > > What about the constructor function? Shouldn't I set the properties in
> > > > the THIS scope when initializing a component?
> > > >
> > > > Also, what is the difference between the variables scope and the
> > > > arguments scope withing a method? I have seen properties defined using
> > > > the cfargument tag referenced in the method using both the arguments
> > > > scope and the variables scope.
> > >
> > > --
> > > CFAJAX docs and other useful articles:
> > > http://jr-holmes.coldfusionjournal.com/
> > >
> > >
> >
> >
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232674
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OT: Compiling java source code

2006-02-16 Thread Rick Root
oh crud, I didn't put examples.jar into the class path, so it couldn't 
find the EmptyGateway stuff.

Problem solved!

Rick

Rick Root wrote:
> Barney Boisvert wrote:
>> You have to include '.' in your CLASSPATH, or it won't pick it up. 
>> I'm not sure that's the problem, but I'm guessing SimpleGateway
>> extends EmptyGateway?
> 
> Yes... it's actually a copy of the Directory Watcher gateway, and I just 
> "simplified" it..
> 
> Okay.. I added "." to the classpath and I'm having the same problem.  It 
> seems like it's just not picking up the stuff in the classpath.
> 
> I get the same error if I set the CLASSPATH environment variable and if 
> I use the -classpath option (ie, javac -classpath blah:blah:blah foo.java)
> 
> Could it have anything to do with java versions?  the jre that 
> coldfusion uses (and that it was compiled with) was 1.4.2_05 ... I can't 
> seem to download anything but 1.4.2_10.  Stupid sun doesn't seem to give 
> you an option to download previous versions.
> 
> Rick
> 
> 
> 
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232673
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OT: Compiling java source code

2006-02-16 Thread James Holmes
Have you tried from within Eclipse, building the project to include the jars?

On 2/17/06, Rick Root <[EMAIL PROTECTED]> wrote:
> Barney Boisvert wrote:
> > You have to include '.' in your CLASSPATH, or it won't pick it up.
> > I'm not sure that's the problem, but I'm guessing SimpleGateway
> > extends EmptyGateway?
>
> Yes... it's actually a copy of the Directory Watcher gateway, and I just
> "simplified" it..
>
> Okay.. I added "." to the classpath and I'm having the same problem.  It
> seems like it's just not picking up the stuff in the classpath.
>
> I get the same error if I set the CLASSPATH environment variable and if
> I use the -classpath option (ie, javac -classpath blah:blah:blah foo.java)

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232672
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFC Newbie Question: Encapsulation

2006-02-16 Thread James Holmes
No, for the moment, forget THIS.

> 
> 

should be




The life cycle of the instance depends on where you put it.
Instantiate it in the session scope, it lasts as long as the session.
Similar for the application scope.

The use of THIS is to make this bit work:



Inside that, the init() method returns THIS


  
  


That's the only time you need to use THIS in the whole component.

On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> > The only use for THIS in an OO-based component is to return THIS at
> > the end of the constructor. That returns the entire component for use
> > as an instance.
>
> In Java, the constructer is for providing arguments with default
> values. These default values can be the ones that are automaticly
> assigned to each corresponding data type, or if you create a
> constructer method it will be the values you specify.
>
> > The properties will be in the VARIABLES scope; they can be used via
> > getter and setter methods. This is where the ARGUMENTS scope comes in
> > - the setter methods take an argument, check it for validity and then
> > set a value in the VARIABLES scope. The VARIABLES scope remains
> > between method calls, acting as storage within the instance.
>
> So within my setter method I would do something like the following:
>
> 
> 
>
> The intention would be to make the "name" property persist across
> method calls? I don't think I really understand what that means. I am
> thinking in terms of sessions and applications but I don't think their
> related. If I assign something to the session scope, the variable
> remains the same throught the entire session unless it is changed by
> another assignment. If an object is instantiated, all properties in
> the variable scope will remain the same on the calling page, but what
> about on other pages? What is the life cycle of an instance?
>
> Sorry for all the questions... I hope someone else relieves you from
> doing all the work of saving me from despair...
>
> Thanks so much,
> Aaron
>
> On 2/16/06, James Holmes <[EMAIL PROTECTED]> wrote:
> > The only use for THIS in an OO-based component is to return THIS at
> > the end of the constructor. That returns the entire component for use
> > as an instance.
> >
> > The properties will be in the VARIABLES scope; they can be used via
> > getter and setter methods. This is where the ARGUMENTS scope comes in
> > - the setter methods take an argument, check it for validity and then
> > set a value in the VARIABLES scope. The VARIABLES scope remains
> > between method calls, acting as storage within the instance.
> >
> > On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> > > What about the constructor function? Shouldn't I set the properties in
> > > the THIS scope when initializing a component?
> > >
> > > Also, what is the difference between the variables scope and the
> > > arguments scope withing a method? I have seen properties defined using
> > > the cfargument tag referenced in the method using both the arguments
> > > scope and the variables scope.
> >
> > --
> > CFAJAX docs and other useful articles:
> > http://jr-holmes.coldfusionjournal.com/
> >
> >
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232671
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread James Holmes
The init() method might initialize all the properties and do any other
cleanup necessary to give us a new, empty component; so in this
example perhaps (some tag attributes ommitted because I'm lazy):


  
  
  


After this we'd need to call setName().

The other option is to require the name to be part of the constructor:


  
  
  
  


in both cases, setName() and getName() might be:


  
  
  



  
  


Finally, insertJob():


  
  
  
INSERT INTO blah blah
blah blah 
  


Keep reading the references, there are people with far more OO
experience than I who will have better examples and better rules to
follow.

On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> Thank you James,
>
> I think I might climb out of this one. Things are still a bit ethereal
> in my mind but I think I am begining to grasp it much more now. I
> would like to see a mock-up of the code inside the component using
> srategy number 2.
[snip]

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232670
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OT: Compiling java source code

2006-02-16 Thread Rick Root
Barney Boisvert wrote:
> You have to include '.' in your CLASSPATH, or it won't pick it up. 
> I'm not sure that's the problem, but I'm guessing SimpleGateway
> extends EmptyGateway?

Yes... it's actually a copy of the Directory Watcher gateway, and I just 
"simplified" it..

Okay.. I added "." to the classpath and I'm having the same problem.  It 
seems like it's just not picking up the stuff in the classpath.

I get the same error if I set the CLASSPATH environment variable and if 
I use the -classpath option (ie, javac -classpath blah:blah:blah foo.java)

Could it have anything to do with java versions?  the jre that 
coldfusion uses (and that it was compiled with) was 1.4.2_05 ... I can't 
seem to download anything but 1.4.2_10.  Stupid sun doesn't seem to give 
you an option to download previous versions.

Rick



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232669
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFC Newbie Question: Encapsulation

2006-02-16 Thread Aaron Roberson
> The only use for THIS in an OO-based component is to return THIS at
> the end of the constructor. That returns the entire component for use
> as an instance.

In Java, the constructer is for providing arguments with default
values. These default values can be the ones that are automaticly
assigned to each corresponding data type, or if you create a
constructer method it will be the values you specify.

> The properties will be in the VARIABLES scope; they can be used via
> getter and setter methods. This is where the ARGUMENTS scope comes in
> - the setter methods take an argument, check it for validity and then
> set a value in the VARIABLES scope. The VARIABLES scope remains
> between method calls, acting as storage within the instance.

So within my setter method I would do something like the following:




The intention would be to make the "name" property persist across
method calls? I don't think I really understand what that means. I am
thinking in terms of sessions and applications but I don't think their
related. If I assign something to the session scope, the variable
remains the same throught the entire session unless it is changed by
another assignment. If an object is instantiated, all properties in
the variable scope will remain the same on the calling page, but what
about on other pages? What is the life cycle of an instance?

Sorry for all the questions... I hope someone else relieves you from
doing all the work of saving me from despair...

Thanks so much,
Aaron

On 2/16/06, James Holmes <[EMAIL PROTECTED]> wrote:
> The only use for THIS in an OO-based component is to return THIS at
> the end of the constructor. That returns the entire component for use
> as an instance.
>
> The properties will be in the VARIABLES scope; they can be used via
> getter and setter methods. This is where the ARGUMENTS scope comes in
> - the setter methods take an argument, check it for validity and then
> set a value in the VARIABLES scope. The VARIABLES scope remains
> between method calls, acting as storage within the instance.
>
> On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> > What about the constructor function? Shouldn't I set the properties in
> > the THIS scope when initializing a component?
> >
> > Also, what is the difference between the variables scope and the
> > arguments scope withing a method? I have seen properties defined using
> > the cfargument tag referenced in the method using both the arguments
> > scope and the variables scope.
>
> --
> CFAJAX docs and other useful articles:
> http://jr-holmes.coldfusionjournal.com/
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232668
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Aaron Roberson
Thank you James,

I think I might climb out of this one. Things are still a bit ethereal
in my mind but I think I am begining to grasp it much more now. I
would like to see a mock-up of the code inside the component using
srategy number 2. Perhaps some comments explaining the relationship
between the data in the psuedo-constructor with the set method and the
relationship between the set method and the insert method would help.
Of coarse, I can't expect anything since you have been entirely too
kind already to help me out thus far ;)

-Aaron

P.S. I have been studying up on CFC's and trying to write code for
about two-three weeks now and all I have is four, half-written
components. I don't think I would ever get this if I wasn't working on
it from 8-5 Monday thru Thursday and if I didn't have resources such
as this list, multiple tutorials, books, and a subscription to vtc.com
and communitymx.com.

On 2/16/06, James Holmes <[EMAIL PROTECTED]> wrote:
> It all comes down to your preference, at the end of the day. I think
> your two choices make sense; the product thing is simple and you can
> just pass arguments around as necessary for the straightforward
> operations on the DB; the newsletter thing is more complex as we have
> the user data and the newsletter data - we've already discussed making
> the newsletter info an object in its own right that is a property of
> the user.
>
> On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> > Let me try and put some feet on that.
> >
> > If I am creating a series of methods that all manipulate information
> > from a database such as product info, should I create a static of
> > instance method? The product methods would include inserting,
> > updating, deleting, and displaying a product and it's details. To me,
> > it seems like that would be a "service" type of action and not
> > something that would need to be instantiated, but that's just a guess.
> >
> > On the otherhand, I have a component with several methods that
> > manipulate data from a database such as users and user's newsletters,
> > shipping addres and billing address. The methods would insert, update,
> > delete and display user(s) and user details such as shipping info,
> > billing info, newsletter subscriptions, etc. This seems like it would
> > be an instance but I'm not sure why.
>
> --
> CFAJAX docs and other useful articles:
> http://jr-holmes.coldfusionjournal.com/
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232667
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: coldfusion and SQL2005

2006-02-16 Thread Jim Wright
sorry...I was thinking of the term as analogous to parallelism...not
in the application server context.

On 2/16/06, Dave Watts <[EMAIL PROTECTED]> wrote:
> > no multiplexing...express edition is single processor only.
>
> SQL Server 2005 Express certainly does allow multiplexing. It only runs on
> one processor, though.
>

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232666
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread James Holmes
It all comes down to your preference, at the end of the day. I think
your two choices make sense; the product thing is simple and you can
just pass arguments around as necessary for the straightforward
operations on the DB; the newsletter thing is more complex as we have
the user data and the newsletter data - we've already discussed making
the newsletter info an object in its own right that is a property of
the user.

On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> Let me try and put some feet on that.
>
> If I am creating a series of methods that all manipulate information
> from a database such as product info, should I create a static of
> instance method? The product methods would include inserting,
> updating, deleting, and displaying a product and it's details. To me,
> it seems like that would be a "service" type of action and not
> something that would need to be instantiated, but that's just a guess.
>
> On the otherhand, I have a component with several methods that
> manipulate data from a database such as users and user's newsletters,
> shipping addres and billing address. The methods would insert, update,
> delete and display user(s) and user details such as shipping info,
> billing info, newsletter subscriptions, etc. This seems like it would
> be an instance but I'm not sure why.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232665
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFC Newbie Question: Encapsulation

2006-02-16 Thread James Holmes
The only use for THIS in an OO-based component is to return THIS at
the end of the constructor. That returns the entire component for use
as an instance.

The properties will be in the VARIABLES scope; they can be used via
getter and setter methods. This is where the ARGUMENTS scope comes in
- the setter methods take an argument, check it for validity and then
set a value in the VARIABLES scope. The VARIABLES scope remains
between method calls, acting as storage within the instance.

On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> What about the constructor function? Shouldn't I set the properties in
> the THIS scope when initializing a component?
>
> Also, what is the difference between the variables scope and the
> arguments scope withing a method? I have seen properties defined using
> the cfargument tag referenced in the method using both the arguments
> scope and the variables scope.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232664
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Aaron Roberson
Let me try and put some feet on that.

If I am creating a series of methods that all manipulate information
from a database such as product info, should I create a static of
instance method? The product methods would include inserting,
updating, deleting, and displaying a product and it's details. To me,
it seems like that would be a "service" type of action and not
something that would need to be instantiated, but that's just a guess.

On the otherhand, I have a component with several methods that
manipulate data from a database such as users and user's newsletters,
shipping addres and billing address. The methods would insert, update,
delete and display user(s) and user details such as shipping info,
billing info, newsletter subscriptions, etc. This seems like it would
be an instance but I'm not sure why.

-Aaron

On 2/16/06, James Holmes <[EMAIL PROTECTED]> wrote:
> My suggestion; if the CFC has multiple methods that will use the same
> info, or that you want to share info, use an instance with properties
> that you init(). If you are just using a collection of functions that
> don't share info (almost a UDF collection but in a CFC) just make it
> static.
>
> On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> > I still don't really understand when I should create a static
> > component and when I should create an instance-based component.
>
> --
> CFAJAX docs and other useful articles:
> http://jr-holmes.coldfusionjournal.com/
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232663
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread James Holmes
Ok, I'll compare a few ways of doing it (continuing this example).
Regardless of the way your choose, the process is to somehow get the
name to the CFC so that it can insert it into the database as part of
the job.

Way 1) This way puts the name into the THIS scope, from where the
insert method can get it and use it in a DB insert:
newJob.name=form.name;
newJob.insertJob();


Way 2) This way puts the name into the VARIABLES scope via the
setName() method, from where the insert method can get it and use it
in a DB insert:
newJob.setName(form.name);
newJob.insertJob();


Way 3) This way takes the name as an argument, from where the insert
method can get it and use it in a DB insert:
newJob.insertJob(form.name);

My preference is way 2. I can then type check the name in one place,
no matter where I want to use it later - it means I can reuse the
setName() method for other things (not just a subsequent DB insert).
It also controls the alteration of the property, meaning I can enforce
a CFLOCK around it within the method if necessary (I can't necessarily
rely on that with the THIS scope way - I have to hope the person who
set THIS used CFLOCK outside the component instead) but locking is a
whole other discussion :-)

On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> >If you don't want the "name" variable to remain in the CFC between
> method calls, pass it in as per newJob.insertJob(name=form.name).
>
> James, you just added a whole new dimension to my confusion. I know
> you didn't mean to, but what is the difference between setJob() and
> insertJob(). Obviously it must have something to do with the method
> within the cfc, but what? This brings me back to when to use a static
> component vs. instance components and rethinking how I write my
> methods and properties.
>
> I feel like one of those newbies that approaches CFC's, thinks he can
> do it, and then become hammered with confusion as psuedo code is
> flushed out. I just want to push forward and not draw back, but like
> so many others I have deadlines and I am already overdue.
>
> Somebody resue me!
>
> -Aaron
>
> On 2/16/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> > I am looking at the following article by Rob Brooks-Bilson:
> >
> > http://www.oreillynet.com/pub/a/javascript/2003/09/24/coldfusion_tips.html
> >
> > I know it is an old article, so it may not be up to date with "best 
> > practices."
> >
> > Anyways, I thought I had it down until I was introduced to the
> > psuedo-constructor and instantiation. I thought I could just create
> > arguements in my cfc's with the cfargument tag, and then pass the
> > cfc's the arguments when invoking them. While that is an option, it
> > seems to be the very basic of basic uses of CFC's and I am trying to
> > leverage OOP development the best I can in ColdFusion.
> >
> > I still don't really understand when I should create a static
> > component and when I should create an instance-based component. The
> > CFWACK book is very vaque, and documentation is sparce.
> >
> > Now that you guys are clearifying how to pass an instance component
> > arguments, I am begining to rethink my entire approach to writing
> > methods and properties. I really hate learning the wrong way to do
> > things first, and then learning how to do it right.
> >
> > Any help is very appreciated!
> >
> > -Aaron
> >
> > On 2/16/06, Alan Rother <[EMAIL PROTECTED]> wrote:
> > > I'm sorry, are you asking if you should use the variables scope in the CFC
> > > itself?
> > >
> > > If so, I don't recommend it. using variables.  anything makes that 
> > > variable
> > > available to all of the other methods in the cfc and basically trashes the
> > > thread safeness of the cfc, that is if you are using the cfc in a 
> > > persistent
> > > scope. If you are instantiating the cfc evertime you use it, then it's ok,
> > > but under load it can really start to take a performance hit if you are
> > > invoking on every hit to the page.
> > > --
> > > Alan Rother
> > > Macromedia Certified Advanced ColdFusion MX 7 Developer
> > >
> > >
> > >
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232662
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFC Newbie Question: Encapsulation

2006-02-16 Thread Aaron Roberson
What about the constructor function? Shouldn't I set the properties in
the THIS scope when initializing a component?

Also, what is the difference between the variables scope and the
arguments scope withing a method? I have seen properties defined using
the cfargument tag referenced in the method using both the arguments
scope and the variables scope.

-Aaron

On 2/16/06, James Holmes <[EMAIL PROTECTED]> wrote:
> Yes, encapsulation is an important part of OO and yes many people don't care.
>
> If you want to maintain the encapsulation, don't set thigns in the
> THIS scope - use a setter method to set them in the VARIABLES scope
> (and a getter method to get them out again):
>
> 
>  newUser = createobject("component", "user");
>  newUser.setname("john");
> 
>
> On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> > Friends,
> >
> > I am learning Java and CFC development in ColdFusion at the same time.
> > I keep going back and forth between the two because they complement
> > each other so well. Anyways, my question is not in regards to the
> > specifics of the language, but with OOP design patterns and
> > encapsulation.
> >
> > HERE IT GOES:
> >
> > In my Java book it says that if a method is public, a data filed could
> > be assigned a value directly, BUT doing so "violates an important
> > principle of object-oriented programming -- that of data hiding using
> > encapsulation.
> >
> > However, I have seen alot of CF developers write code that directly
> > assigns values to data fields in CFC's like the following:
> >
> > CALLING PAGE
> >
> > 
> > newUser = createobject("component", "user");
> > newUser.name = "john"
> > newuser.setname();
> > 
> >
> > COMPONENT
> >
> > 
> >
> > 
> > init();
> > 
> >
> > 
> > 
> > 
> > 
> >
> > 
> > 
> > 
> > 
> > 
> >
> > 
> >
> >
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232661
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread James Holmes
My suggestion; if the CFC has multiple methods that will use the same
info, or that you want to share info, use an instance with properties
that you init(). If you are just using a collection of functions that
don't share info (almost a UDF collection but in a CFC) just make it
static.

On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> I still don't really understand when I should create a static
> component and when I should create an instance-based component.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232660
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Aaron Roberson
>If you don't want the "name" variable to remain in the CFC between
method calls, pass it in as per newJob.insertJob(name=form.name).

James, you just added a whole new dimension to my confusion. I know
you didn't mean to, but what is the difference between setJob() and
insertJob(). Obviously it must have something to do with the method
within the cfc, but what? This brings me back to when to use a static
component vs. instance components and rethinking how I write my
methods and properties.

I feel like one of those newbies that approaches CFC's, thinks he can
do it, and then become hammered with confusion as psuedo code is
flushed out. I just want to push forward and not draw back, but like
so many others I have deadlines and I am already overdue.

Somebody resue me!

-Aaron

On 2/16/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> I am looking at the following article by Rob Brooks-Bilson:
>
> http://www.oreillynet.com/pub/a/javascript/2003/09/24/coldfusion_tips.html
>
> I know it is an old article, so it may not be up to date with "best 
> practices."
>
> Anyways, I thought I had it down until I was introduced to the
> psuedo-constructor and instantiation. I thought I could just create
> arguements in my cfc's with the cfargument tag, and then pass the
> cfc's the arguments when invoking them. While that is an option, it
> seems to be the very basic of basic uses of CFC's and I am trying to
> leverage OOP development the best I can in ColdFusion.
>
> I still don't really understand when I should create a static
> component and when I should create an instance-based component. The
> CFWACK book is very vaque, and documentation is sparce.
>
> Now that you guys are clearifying how to pass an instance component
> arguments, I am begining to rethink my entire approach to writing
> methods and properties. I really hate learning the wrong way to do
> things first, and then learning how to do it right.
>
> Any help is very appreciated!
>
> -Aaron
>
> On 2/16/06, Alan Rother <[EMAIL PROTECTED]> wrote:
> > I'm sorry, are you asking if you should use the variables scope in the CFC
> > itself?
> >
> > If so, I don't recommend it. using variables.  anything makes that variable
> > available to all of the other methods in the cfc and basically trashes the
> > thread safeness of the cfc, that is if you are using the cfc in a persistent
> > scope. If you are instantiating the cfc evertime you use it, then it's ok,
> > but under load it can really start to take a performance hit if you are
> > invoking on every hit to the page.
> > --
> > Alan Rother
> > Macromedia Certified Advanced ColdFusion MX 7 Developer
> >
> >
> > 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232659
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFC Newbie Question: Encapsulation

2006-02-16 Thread James Holmes
Yes, encapsulation is an important part of OO and yes many people don't care.

If you want to maintain the encapsulation, don't set thigns in the
THIS scope - use a setter method to set them in the VARIABLES scope
(and a getter method to get them out again):


 newUser = createobject("component", "user");
 newUser.setname("john");


On 2/17/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> Friends,
>
> I am learning Java and CFC development in ColdFusion at the same time.
> I keep going back and forth between the two because they complement
> each other so well. Anyways, my question is not in regards to the
> specifics of the language, but with OOP design patterns and
> encapsulation.
>
> HERE IT GOES:
>
> In my Java book it says that if a method is public, a data filed could
> be assigned a value directly, BUT doing so "violates an important
> principle of object-oriented programming -- that of data hiding using
> encapsulation.
>
> However, I have seen alot of CF developers write code that directly
> assigns values to data fields in CFC's like the following:
>
> CALLING PAGE
>
> 
> newUser = createobject("component", "user");
> newUser.name = "john"
> newuser.setname();
> 
>
> COMPONENT
>
> 
>
> 
> init();
> 
>
> 
> 
> 
> 
>
> 
> 
> 
> 
> 
>
> 
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232658
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Aaron Roberson
I am looking at the following article by Rob Brooks-Bilson:

http://www.oreillynet.com/pub/a/javascript/2003/09/24/coldfusion_tips.html

I know it is an old article, so it may not be up to date with "best practices."

Anyways, I thought I had it down until I was introduced to the
psuedo-constructor and instantiation. I thought I could just create
arguements in my cfc's with the cfargument tag, and then pass the
cfc's the arguments when invoking them. While that is an option, it
seems to be the very basic of basic uses of CFC's and I am trying to
leverage OOP development the best I can in ColdFusion.

I still don't really understand when I should create a static
component and when I should create an instance-based component. The
CFWACK book is very vaque, and documentation is sparce.

Now that you guys are clearifying how to pass an instance component
arguments, I am begining to rethink my entire approach to writing
methods and properties. I really hate learning the wrong way to do
things first, and then learning how to do it right.

Any help is very appreciated!

-Aaron

On 2/16/06, Alan Rother <[EMAIL PROTECTED]> wrote:
> I'm sorry, are you asking if you should use the variables scope in the CFC
> itself?
>
> If so, I don't recommend it. using variables.  anything makes that variable
> available to all of the other methods in the cfc and basically trashes the
> thread safeness of the cfc, that is if you are using the cfc in a persistent
> scope. If you are instantiating the cfc evertime you use it, then it's ok,
> but under load it can really start to take a performance hit if you are
> invoking on every hit to the page.
> --
> Alan Rother
> Macromedia Certified Advanced ColdFusion MX 7 Developer
>
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232657
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread James Holmes
The variables scope of the CFC is there to be used for properties that
should be available between different method calls (one of the most
useful bits of OO). It's like the THIS scope only it's protected with
regards to the CFC instance. To make it thread safe, use CFLOCK.

As for the original question, which was:
---
My question is in regards to the differences between

newJob.name = form.name;
newJob.insertJob();

and

newJob.insertJob(name=form.name);


If you want to have the "name" variable available for more than one
method, set it as a property, but don't use the direct assignment
newJob.name = form.name, use a setter method newJob.setName(form.name)
which sets it in the VARIABLES scope. This gives you the opportunity
to check the data when set, before the insert method is called.

If you don't want the "name" variable to remain in the CFC between
method calls, pass it in as per newJob.insertJob(name=form.name).

On 2/17/06, Alan Rother <[EMAIL PROTECTED]> wrote:
> I'm sorry, are you asking if you should use the variables scope in the CFC
> itself?
>
> If so, I don't recommend it. using variables.  anything makes that variable
> available to all of the other methods in the cfc and basically trashes the
> thread safeness of the cfc, that is if you are using the cfc in a persistent
> scope. If you are instantiating the cfc evertime you use it, then it's ok,
> but under load it can really start to take a performance hit if you are
> invoking on every hit to the page.

--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232656
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: if not exists (SQL) question

2006-02-16 Thread Adrian Lynch
My guess would be that because the first SELECT is part on the condition, IF
NOT EXISTS(SELECT...), it doesn't return a result set. Move the SELECT out
of the condition and do some different logic.

Adrian

-Original Message-
From: Russ [mailto:[EMAIL PROTECTED]
Sent: 17 February 2006 00:37
To: CF-Talk
Subject: if not exists (SQL) question


I have a query similar to the following:



declare @emailLinkID int

if not exists (

select emailLinkID from emailLinks

where linkURL='https://www.someurl.com'


)

begin

insert into emailLinks (

linkURL

) values (

'https://www.someurl.com,

)

set @emailLinkID = @@IDENTITY

select @emailLinkID as emailLinkID

end





This works fine when the record doesn't exist.  But it doesn't return the id
if the record does exist.  What am I doing wrong?



Russ


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232655
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


if not exists (SQL) question

2006-02-16 Thread Russ
I have a query similar to the following:

 

declare @emailLinkID int

if not exists (

select emailLinkID from emailLinks

where linkURL='https://www.someurl.com'


)   

begin

insert into emailLinks (   

linkURL

) values (

'https://www.someurl.com,

)

set @emailLinkID = @@IDENTITY

select @emailLinkID as emailLinkID

end

 

 

This works fine when the record doesn't exist.  But it doesn't return the id
if the record does exist.  What am I doing wrong?

 

Russ



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232654
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Shopping Cart qty problems.

2006-02-16 Thread Phillip Perry
here is the code...

Quantity: 
   
  #idx#
   
   

-Original Message-
From: Bobby Hartsfield [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 16, 2006 3:38 PM
To: CF-Talk
Subject: RE: Shopping Cart qty problems.


Going to need a little more than that :)

It sounds like you are only outputting the last qty value for all of them
though. -or- you are updating them all to the last qty's value somewhere.

...:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com


-Original Message-
From: Phillip Perry [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 16, 2006 3:27 PM
To: CF-Talk
Subject: Shopping Cart qty problems.

Hi,

I have a cart that displays the qty in a drop down list. The list is from
1 - max qty in the DB. The problem is that if the user chooses more than one
item, all items qty's become the same as the last item chosen.

Example:

item 1qty chosen 4; qty after item 2 = 2
item 2qty chosen 2; qty stays the same.

and the qty for each item goes to 1 when the user decides to checkout also.

Any help is appreciated.

Phil








~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232653
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: lincense on a test server?

2006-02-16 Thread Bryan Stevenson
> Having said that, it does say "making team development even easier", which
> does seem to imply that a team can use it, up to the allowed IP address
> (local + 2).

and that's what's so unclear.

If you have a router and the web server is inside that router...all calls to 
that web server from behind that router go out to the web and back in through 
the router as a request coming from that routers IP.  So everyone on the 
network 
that the router serves appear to be a single IP to the server.

Dave Watts warns that would go aginst the spirit of the agreement...others say 
this setup seems valid if you only consider the exact wording of the agreement.

So Ben if Adobemedia can cough up an answer it will go a long way ;-)

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232652
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: coldfusion and SQL2005

2006-02-16 Thread Dave Watts
> no multiplexing...express edition is single processor only.

SQL Server 2005 Express certainly does allow multiplexing. It only runs on
one processor, though.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232651
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: lincense on a test server?

2006-02-16 Thread Ben Forta
Russ, that's a little unclear. Developer's Edition is meant for LOCAL
development, as explained in this page that lists the editions:

http://www.macromedia.com/software/coldfusion/productinfo/product_editions/


ColdFusion MX 7 Developer Edition

ColdFusion MX 7 Developer is a free, fully functional version of ColdFusion
for local development of applications that will be deployed on either
Standard or Enterprise servers. In addition to localhost, access to
applications running on a Developer Edition server is now possible from two
client machines, making team development even easier.


Having said that, it does say "making team development even easier", which
does seem to imply that a team can use it, up to the allowed IP address
(local + 2).

--- Ben


-Original Message-
From: Russ [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 6:51 PM
To: CF-Talk
Subject: RE: lincense on a test server?

So even if I'm developing my apps on a dedicated box (not my laptop), but
I'm the only one developing on it, I need a license?  That seems a bit
much... 



> -Original Message-
> From: Ben Forta [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 6:20 PM
> To: CF-Talk
> Subject: RE: lincense on a test server?
> 
> Russ,
> 
> The Developer's Edition is intended for local development, if you have 
> a shared development box then you do indeed need a fully licensed product.
> The
> additional IP address were actually allowed because testing some 
> features may require being able to process requests from multiple 
> addresses. The EULA may indeed be confusing, and I'll pass that note 
> along to the product management folks. The official statement (look at 
> the product page) is local IP address and two other addresses, as in 
> local development and maybe testing from another machine, too.
> 
> --- Ben
> 
> 
> -Original Message-
> From: Russ [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 4:15 PM
> To: CF-Talk
> Subject: RE: lincense on a test server?
> 
> Well the license mentions that you're only allowed to use only 1 ip, 
> yet we've heard from many sources and the physical product allows 2 
> ips.  Are we violating the license if we access it from 2 different 
> ips?  Yes.  Are the courts going to see it this way?  I doubt it.
> 
> The point is I believe it's reasonable to use the developer edition 
> for development only, and if I have to put in a workaround to make the 
> requests from all the developers go through one ip, I believe that's 
> reasonable.
> The
> spirit of the license is to use the developer edition for development 
> only, and not for any sort of production use.  The ip restriction is 
> of little consequence as far as I see it, but perhaps someone from 
> macromedia can elaborate.
> 
> For the record, we all use licensed servers as well, but in getting a 
> N- Tier configuration to work, I noticed that CF only sees 1 ip when 
> the requests are coming from another server and are proxied.  I 
> actually had to write a filter to get CF to see the actual ip of the 
> user.
> 
> Russ
> 
> > -Original Message-
> > From: Dave Watts [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 16, 2006 4:03 PM
> > To: CF-Talk
> > Subject: RE: lincense on a test server?
> >
> > > how so Dave...it's just 1 IP and being used for development?
> > > Is there mention of router and othr devices in the licensing?
> >
> > No, there's no mention of routers or proxies or any other 
> > workarounds in the license. Believe it or not, licenses, like any 
> > other legal documents, are meant to be interpreted reasonably. The 
> > license clearly states that you may only access the developer 
> > edition from one external IP address. You would have a very 
> > difficult time making a case before a court that your "technical" 
> > workaround doesn't violate the spirit of the license, if not the 
> > letter of it. And again, believe it or not, the spirit and intent of 
> > a legal document can matter quite a bit. You simply wouldn't have a leg
to stand on.
> > If you got as far as a deposition, you'd get skewered - and it 
> > wouldn't get any farther than that.
> >
> > Dave Watts, CTO, Fig Leaf Software
> > http://www.figleaf.com/
> >
> > Fig Leaf Software provides the highest caliber vendor-authorized 
> > instruction at our training centers in Washington DC, Atlanta, 
> > Chicago, Baltimore, Northern Virginia, or on-site at your location.
> > Visit http://training.figleaf.com/ for more information!
> >
> >
> >
> 
> 
> 
> 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232650
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Alan Rother
I'm sorry, are you asking if you should use the variables scope in the CFC
itself?

If so, I don't recommend it. using variables.  anything makes that variable
available to all of the other methods in the cfc and basically trashes the
thread safeness of the cfc, that is if you are using the cfc in a persistent
scope. If you are instantiating the cfc evertime you use it, then it's ok,
but under load it can really start to take a performance hit if you are
invoking on every hit to the page.
--
Alan Rother
Macromedia Certified Advanced ColdFusion MX 7 Developer


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232649
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: lincense on a test server?

2006-02-16 Thread Bryan Stevenson
Thanks...good to know (soemone else asked on-list today so I figured I'd bring 
it forward whilst yer watching)

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232648
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Alan Rother
On 2/16/06, Ian Skinner <[EMAIL PROTECTED]> wrote:
>
>
> > newJob.insertJob(argumentCollection=variables.args);


The only problem with doing this is in 7, CF won't let you, you have to do
argumentCollection = Duplicate(form)

Or something I do newJob.insertJob(argumentCollection = form)
>
> The form scope is already a structure/collection.
>
>
> --
> Ian Skinner
> Web Programmer
> BloodSource
> www.BloodSource.org
> Sacramento, CA
>
> -
> | 1 |   |
> -  Binary Soduko
> |   |   |
> -
>
> "C code. C code run. Run code run. Please!"
> - Cynthia Dunning
>
>
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232647
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Book Search: Java for Coldfusion Developers by Eben Hewitt

2006-02-16 Thread Aaron Roberson
Nathan,

I read a chapter from Head First Java from the O'Reily website. I am
definately going to think about adding this to my collection and
inputing it into my brain.

Thanks,
Aaron

On 2/16/06, Nathan Strutz <[EMAIL PROTECTED]> wrote:
> Back to CF and Java, Instead of getting Eben's Java for CF'ers book, I
> recommend Head First Java, which is a much more entertaining read (no
> offense to anyone related to Eb's book), and as a CF developer, I will
> confess it is a great, great book to read. Eben's book, from my
> memory, is mostly for CF5 and earlier developers, and those with
> little to no object knowledge.
>
> Head First Java is still being published and sold (like crazy), and is
> available from most bookstores. It will take anyone with a mild amount
> of programming knowledge and bring them up to speed with Java in an
> entertaining way.
>
> -nathan strutz
> http://www.dopefly.com/
>
>
> On 2/16/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> > >Eben is your lord?
> >
> > That is funny...
> >
> > >God forgives, the RIAA doesn't. :)
> >
> > That is presumption. I choose not to make the grace of God a license
> > to sin. Repentance (turning from sin) is a prerequisite to
> > forgiveness. Not to get serious on you, but had to state the fact.
> >
> > -Aaron
> >
> > On 2/16/06, Jim Davis <[EMAIL PROTECTED]> wrote:
> > > > -Original Message-
> > > > From: Aaron Roberson [mailto:[EMAIL PROTECTED]
> > > > Sent: Thursday, February 16, 2006 2:21 PM
> > > > To: CF-Talk
> > > > Subject: Re: Book Search: Java for Coldfusion Developers by Eben Hewitt
> > > >
> > > > Gmail is acting really weird today...
> > > >
> > > > Jim Davis and Brad Wood's last posts were just listed in my
> > > > conversation. I responded to Michael's last post, but never recieved
> > > > the two preceeding it until just now. Really weird.
> > > >
> > > > Well, I agree with the rest of you. IF Eben has the copyright, I would
> > > > definately send him some cash. If he doesn't but there is an e-book
> > > > out there that has been pirated, I am not interested. Understanding
> > > > Java and ColdFusion is not worth the seperation that would result from
> > > > sinning against my Lord.
> > >
> > > Eben is your lord?
> > >
> > > Jeeze... I knew he was good, but I didn't know he had worshippers!  ;^)
> > >
> > > Jim Davis
> > >
> > > >Sorry - I'm in a twisted mood.<
> > >
> > >
> > >
> > >
> >
> >
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232646
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: lincense on a test server?

2006-02-16 Thread Russ
So even if I'm developing my apps on a dedicated box (not my laptop), but
I'm the only one developing on it, I need a license?  That seems a bit
much... 



> -Original Message-
> From: Ben Forta [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 6:20 PM
> To: CF-Talk
> Subject: RE: lincense on a test server?
> 
> Russ,
> 
> The Developer's Edition is intended for local development, if you have a
> shared development box then you do indeed need a fully licensed product.
> The
> additional IP address were actually allowed because testing some features
> may require being able to process requests from multiple addresses. The
> EULA
> may indeed be confusing, and I'll pass that note along to the product
> management folks. The official statement (look at the product page) is
> local
> IP address and two other addresses, as in local development and maybe
> testing from another machine, too.
> 
> --- Ben
> 
> 
> -Original Message-
> From: Russ [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 4:15 PM
> To: CF-Talk
> Subject: RE: lincense on a test server?
> 
> Well the license mentions that you're only allowed to use only 1 ip, yet
> we've heard from many sources and the physical product allows 2 ips.  Are
> we
> violating the license if we access it from 2 different ips?  Yes.  Are the
> courts going to see it this way?  I doubt it.
> 
> The point is I believe it's reasonable to use the developer edition for
> development only, and if I have to put in a workaround to make the
> requests
> from all the developers go through one ip, I believe that's reasonable.
> The
> spirit of the license is to use the developer edition for development
> only,
> and not for any sort of production use.  The ip restriction is of little
> consequence as far as I see it, but perhaps someone from macromedia can
> elaborate.
> 
> For the record, we all use licensed servers as well, but in getting a N-
> Tier
> configuration to work, I noticed that CF only sees 1 ip when the requests
> are coming from another server and are proxied.  I actually had to write a
> filter to get CF to see the actual ip of the user.
> 
> Russ
> 
> > -Original Message-
> > From: Dave Watts [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 16, 2006 4:03 PM
> > To: CF-Talk
> > Subject: RE: lincense on a test server?
> >
> > > how so Dave...it's just 1 IP and being used for development?
> > > Is there mention of router and othr devices in the licensing?
> >
> > No, there's no mention of routers or proxies or any other workarounds
> > in the license. Believe it or not, licenses, like any other legal
> > documents, are meant to be interpreted reasonably. The license clearly
> > states that you may only access the developer edition from one
> > external IP address. You would have a very difficult time making a
> > case before a court that your "technical" workaround doesn't violate
> > the spirit of the license, if not the letter of it. And again, believe
> > it or not, the spirit and intent of a legal document can matter quite
> > a bit. You simply wouldn't have a leg to stand on.
> > If you got as far as a deposition, you'd get skewered - and it
> > wouldn't get any farther than that.
> >
> > Dave Watts, CTO, Fig Leaf Software
> > http://www.figleaf.com/
> >
> > Fig Leaf Software provides the highest caliber vendor-authorized
> > instruction at our training centers in Washington DC, Atlanta,
> > Chicago, Baltimore, Northern Virginia, or on-site at your location.
> > Visit http://training.figleaf.com/ for more information!
> >
> >
> >
> 
> 
> 
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232645
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: coldfusion and SQL2005

2006-02-16 Thread Russ
True... although SQL 2000 MSDE did support multiplexing.  

Perhaps you can set up more then 1 instance, and set up some kind of
replication between them.  I haven't looked into all the features sql 2005
express supports, but replication might be one of them. 

Russ

> -Original Message-
> From: Jim Wright [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 6:24 PM
> To: CF-Talk
> Subject: Re: coldfusion and SQL2005
> 
> no multiplexing...express edition is single processor only.
> 
> On 2/16/06, Russ <[EMAIL PROTECTED]> wrote:
> > Isn't the free version 2GB ram cap or something?  Why not just use that?
> >
> 
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232644
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Bryan Stevenson
> Well, ideally you should'nt be doing an invoke every time you call the CFC.
> The best way to do this is to have the CFC instantiated into a persistent
> scope, then you can can just call the methods as often as needed without
> taking the performance hit of the invoke.

Ummm...you can use CFINVOKE with an already instatiated CFC...





Just to be clear ;-)

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232642
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Aaron Roberson
Allan and Ian that is quite helpful.

I am wondering, should I use the variable scope within my component? I
have seen several  variations to this as well:


#arguments.name#


#variables.name#

And in the pseudo-constructor, I have seen this:







Thanks for helping me clear away the confusion, I am pretty bogged
down with all of these nuances at present.

-Aaron

On 2/16/06, Alan Rother <[EMAIL PROTECTED]> wrote:
> If you have many args to pass in, I do it like this
>
> 
> //instantiate the component
> newJob = createObject("component","job");
> //create the arg structure
> variables.args = StructNew();
> //assign the args
> variables.args.Val1 = Form.Field1;
> variables.args.Val2 = Form.Field2;
> variables.args.Val3 = Form.Field3;
> variables.args.Val4 = Form.Field4;
> variables.args.Val5 = Form.Field5;
> variables.args.Val6 = Form.Field6;
> variables.args.Val7 = Form.Field7;
> //call the method and pass in the arg collection
> newJob.insertJob(argumentCollection=variables.args);
> 
>
>
> HTH
>
> --
> Alan Rother
> Macromedia Certified Advanced ColdFusion MX 7 Developer
>
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232643
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: lincense on a test server?

2006-02-16 Thread Ben Forta
Each developer is running Developer Edition locally? Then you are fine.
Where the web root is is a non-issue in this case. The CF server being used
is responding to local requests, then you are fine.

--- Ben


-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 6:23 PM
To: CF-Talk
Subject: Re: lincense on a test server?

> The Developer's Edition is intended for local development, if you have 
> a shared development box then you do indeed need a fully licensed 
> product. The additional IP address were actually allowed because 
> testing some features may require being able to process requests from 
> multiple addresses. The EULA may indeed be confusing, and I'll pass 
> that note along to the product management folks. The official 
> statement (look at the product page) is local IP address and two other 
> addresses, as in local development and maybe testing from another machine,
too.
>
> --- Ben

Ben what about each develper having a local copy of the dev version working
off a network share holding the app (where they run their files through
their local server)?

BTW...thaks for bringing that vagueness up with the crew ;-)

Thanks

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232641
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Suggestion for the list

2006-02-16 Thread Claude Schneegans
 >>Please don't. If somebody adds [SOLVED] or something to the
subject, it still has to go in the same thread.

I would say that
1. only a few percentage of modified subjects are modified for that purpose.
2. in almost all cases a "SOLVED" question actually starts a completely 
different conversation any way ;-)
3. Most of the time, modified subjects are completely new subjects

 >>Moreover, it is a direct violation of RFC 2822:
 >>In all cases, it is the meaning that the sender
of the message wishes to convey

Please come on: how many users actually know that there exists an ID and 
REFERENCE header in a reply,
and use them to mean anything?
How many even care about "headers" in messages? ;-)

Please use your imagination instead of brandishing RFCs ;-)
There are plenty of options and conventions one could imagine to keep 
modified subjects
in the same thread if we want:
-  uppercase, or brackets, etc.
- if the new subject contains the old one, for instance "mySubject 
SOLVED" in thread "myThread"
would not create a new thread, but "I know nothing about threads 
anyway" woul create a new one.

The idea is that people wanting to definitely stay in the new thread 
would know how to do,
others wanting to start a new thread don't even know they don't.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232640
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Ian Skinner

> newJob.insertJob(argumentCollection=variables.args);

Or something I do newJob.insertJob(argumentCollection = form)

The form scope is already a structure/collection.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232639
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Alan Rother
 Well, ideally you should'nt be doing an invoke every time you call the CFC.
The best way to do this is to have the CFC instantiated into a persistent
scope, then you can can just call the methods as often as needed without
taking the performance hit of the invoke.

you can also do it this way, assuming your formfields are named the same as
your arguments

myCFC.myMethod(Duplicate(Form));

This will properly send all of the form fields to the method in a fairly
thread safe manner.


If you are going to reset all those vars why bother with argcollectin?..just
> type out your invokeargs...you've almost done that anyway ;-)




--
> Alan Rother
> Macromedia Certified Advanced ColdFusion MX 7 Developer


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232638
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Book Search: Java for Coldfusion Developers by Eben Hewitt

2006-02-16 Thread Nathan Strutz
Back to CF and Java, Instead of getting Eben's Java for CF'ers book, I
recommend Head First Java, which is a much more entertaining read (no
offense to anyone related to Eb's book), and as a CF developer, I will
confess it is a great, great book to read. Eben's book, from my
memory, is mostly for CF5 and earlier developers, and those with
little to no object knowledge.

Head First Java is still being published and sold (like crazy), and is
available from most bookstores. It will take anyone with a mild amount
of programming knowledge and bring them up to speed with Java in an
entertaining way.

-nathan strutz
http://www.dopefly.com/


On 2/16/06, Aaron Roberson <[EMAIL PROTECTED]> wrote:
> >Eben is your lord?
>
> That is funny...
>
> >God forgives, the RIAA doesn't. :)
>
> That is presumption. I choose not to make the grace of God a license
> to sin. Repentance (turning from sin) is a prerequisite to
> forgiveness. Not to get serious on you, but had to state the fact.
>
> -Aaron
>
> On 2/16/06, Jim Davis <[EMAIL PROTECTED]> wrote:
> > > -Original Message-
> > > From: Aaron Roberson [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, February 16, 2006 2:21 PM
> > > To: CF-Talk
> > > Subject: Re: Book Search: Java for Coldfusion Developers by Eben Hewitt
> > >
> > > Gmail is acting really weird today...
> > >
> > > Jim Davis and Brad Wood's last posts were just listed in my
> > > conversation. I responded to Michael's last post, but never recieved
> > > the two preceeding it until just now. Really weird.
> > >
> > > Well, I agree with the rest of you. IF Eben has the copyright, I would
> > > definately send him some cash. If he doesn't but there is an e-book
> > > out there that has been pirated, I am not interested. Understanding
> > > Java and ColdFusion is not worth the seperation that would result from
> > > sinning against my Lord.
> >
> > Eben is your lord?
> >
> > Jeeze... I knew he was good, but I didn't know he had worshippers!  ;^)
> >
> > Jim Davis
> >
> > >Sorry - I'm in a twisted mood.<
> >
> >
> >
> >
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232637
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Bryan Stevenson
> If you have many args to pass in, I do it like this
>
> 
> //instantiate the component
> newJob = createObject("component","job");
> //create the arg structure
> variables.args = StructNew();
> //assign the args
> variables.args.Val1 = Form.Field1;
> variables.args.Val2 = Form.Field2;
> variables.args.Val3 = Form.Field3;
> variables.args.Val4 = Form.Field4;
> variables.args.Val5 = Form.Field5;
> variables.args.Val6 = Form.Field6;
> variables.args.Val7 = Form.Field7;
> //call the method and pass in the arg collection
> newJob.insertJob(argumentCollection=variables.args);
> 
>

If you are going to reset all those vars why bother with argcollectin?..just 
type out your invokeargs...you've almost done that anyway ;-)

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232636
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Bryan Stevenson
and you nailed it...preferences...that means there is no "better" option ;-)

I prefer option 2...1 line of code

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232635
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Alan Rother
If you have many args to pass in, I do it like this


//instantiate the component
newJob = createObject("component","job");
//create the arg structure
variables.args = StructNew();
//assign the args
variables.args.Val1 = Form.Field1;
variables.args.Val2 = Form.Field2;
variables.args.Val3 = Form.Field3;
variables.args.Val4 = Form.Field4;
variables.args.Val5 = Form.Field5;
variables.args.Val6 = Form.Field6;
variables.args.Val7 = Form.Field7;
//call the method and pass in the arg collection
newJob.insertJob(argumentCollection=variables.args);



HTH

--
Alan Rother
Macromedia Certified Advanced ColdFusion MX 7 Developer


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232634
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Ian Skinner
Bryan,

My question is in regards to the differences between

newJob.name = form.name;
newJob.insertJob();

and

newJob.insertJob(name=form.name);

What are the differences between the two? Which is "better"?

In the first form, your instance variables are public, not private.  A lot of 
OOP types do not like this.  There are some good reasons for not doing this, 
but no law about it.

The second method would allow the instance variables to all be private, in the 
variables scope.  This is definitely preferred by a lot of developers.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232633
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Email to database

2006-02-16 Thread Jennifer Gavin-Wear
http://store.newmediadevelopment.net/cfx_tag.cfm?ProductID=15

more exact link

>>-Original Message-
>>From: Jennifer Gavin-Wear [mailto:[EMAIL PROTECTED]
>>Sent: 16 February 2006 23:29
>>To: CF-Talk
>>Subject: RE: Email to database
>>
>>
>>Hi Les,
>>
>>I've just been working on a project to do this, you are welcome
>>to the code.
>>
>>Mail me off list and I'll send you what I have.
>>
>>I've made use of the imap4 tag http://www.newmediadevelopment.net/
>>
>>I didn't have much luck with cfpop.
>>
>>Jenny
>>
-Original Message-
From: Les Irvin [mailto:[EMAIL PROTECTED]
Sent: 16 February 2006 18:54
To: CF-Talk
Subject: Email to database


Can anyone give me an idea how to programmatically insert email into a
database using cold fusion?  I'd like to take a daily digest post from a
mailing list and have it automatically inserted into a database.
Possible?


Thanks in advance,
Les



>>
>>

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232632
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Email to database

2006-02-16 Thread Jennifer Gavin-Wear
Hi Les,

I've just been working on a project to do this, you are welcome to the code.

Mail me off list and I'll send you what I have.

I've made use of the imap4 tag http://www.newmediadevelopment.net/

I didn't have much luck with cfpop.

Jenny

>>-Original Message-
>>From: Les Irvin [mailto:[EMAIL PROTECTED]
>>Sent: 16 February 2006 18:54
>>To: CF-Talk
>>Subject: Email to database
>>
>>
>>Can anyone give me an idea how to programmatically insert email into a
>>database using cold fusion?  I'd like to take a daily digest post from a
>>mailing list and have it automatically inserted into a database.
>>Possible?
>>
>>
>>Thanks in advance,
>>Les
>>
>>
>>

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232631
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Aaron Roberson
Bryan,

My question is in regards to the differences between

newJob.name = form.name;
newJob.insertJob();

and

newJob.insertJob(name=form.name);

What are the differences between the two? Which is "better"?

On 2/16/06, Bryan Stevenson <[EMAIL PROTECTED]> wrote:
> There are even more ways than thathave a look at CFOBJECT, CFINVOKE and
> CFINVOKEARGUMENT...they are far clearer than the CFSCRIPT equivalents IMHO
>
> Bryan Stevenson B.Comm.
> VP & Director of E-Commerce Development
> Electric Edge Systems Group Inc.
> phone: 250.480.0642
> fax: 250.480.1264
> cell: 250.920.8830
> e-mail: [EMAIL PROTECTED]
> web: www.electricedgesystems.com
>
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232630
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: coldfusion and SQL2005

2006-02-16 Thread Jim Wright
no multiplexing...express edition is single processor only.

On 2/16/06, Russ <[EMAIL PROTECTED]> wrote:
> Isn't the free version 2GB ram cap or something?  Why not just use that?
>

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232629
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: lincense on a test server?

2006-02-16 Thread Bryan Stevenson
> The Developer's Edition is intended for local development, if you have a
> shared development box then you do indeed need a fully licensed product. The
> additional IP address were actually allowed because testing some features
> may require being able to process requests from multiple addresses. The EULA
> may indeed be confusing, and I'll pass that note along to the product
> management folks. The official statement (look at the product page) is local
> IP address and two other addresses, as in local development and maybe
> testing from another machine, too.
>
> --- Ben

Ben what about each develper having a local copy of the dev version working off 
a network share holding the app (where they run their files through their local 
server)?

BTW...thaks for bringing that vagueness up with the crew ;-)

Thanks

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232628
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Bryan Stevenson
There are even more ways than thathave a look at CFOBJECT, CFINVOKE and 
CFINVOKEARGUMENT...they are far clearer than the CFSCRIPT equivalents IMHO

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232627
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: lincense on a test server?

2006-02-16 Thread Ben Forta
Russ,

The Developer's Edition is intended for local development, if you have a
shared development box then you do indeed need a fully licensed product. The
additional IP address were actually allowed because testing some features
may require being able to process requests from multiple addresses. The EULA
may indeed be confusing, and I'll pass that note along to the product
management folks. The official statement (look at the product page) is local
IP address and two other addresses, as in local development and maybe
testing from another machine, too.

--- Ben


-Original Message-
From: Russ [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 4:15 PM
To: CF-Talk
Subject: RE: lincense on a test server?

Well the license mentions that you're only allowed to use only 1 ip, yet
we've heard from many sources and the physical product allows 2 ips.  Are we
violating the license if we access it from 2 different ips?  Yes.  Are the
courts going to see it this way?  I doubt it.  

The point is I believe it's reasonable to use the developer edition for
development only, and if I have to put in a workaround to make the requests
from all the developers go through one ip, I believe that's reasonable.  The
spirit of the license is to use the developer edition for development only,
and not for any sort of production use.  The ip restriction is of little
consequence as far as I see it, but perhaps someone from macromedia can
elaborate. 

For the record, we all use licensed servers as well, but in getting a N-Tier
configuration to work, I noticed that CF only sees 1 ip when the requests
are coming from another server and are proxied.  I actually had to write a
filter to get CF to see the actual ip of the user. 

Russ

> -Original Message-
> From: Dave Watts [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 4:03 PM
> To: CF-Talk
> Subject: RE: lincense on a test server?
> 
> > how so Dave...it's just 1 IP and being used for development?
> > Is there mention of router and othr devices in the licensing?
> 
> No, there's no mention of routers or proxies or any other workarounds 
> in the license. Believe it or not, licenses, like any other legal 
> documents, are meant to be interpreted reasonably. The license clearly 
> states that you may only access the developer edition from one 
> external IP address. You would have a very difficult time making a 
> case before a court that your "technical" workaround doesn't violate 
> the spirit of the license, if not the letter of it. And again, believe 
> it or not, the spirit and intent of a legal document can matter quite 
> a bit. You simply wouldn't have a leg to stand on.
> If you got as far as a deposition, you'd get skewered - and it 
> wouldn't get any farther than that.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized 
> instruction at our training centers in Washington DC, Atlanta, 
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> 
> 
> 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232626
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Instantiating CFC's and Passing in Arguments

2006-02-16 Thread Aaron Roberson
How do I do it?

I have seen something that looks like this:


 // create a job componet object
 newJob = createObject("component", "job");
 // now set the properties of if from our form
 newJob.name = form.name;
 // now insert job into the database
 newJob.insertJob();


And I have seen it done like this:


newJob = createObject("component","job");
newJob.insertJob(name=form.name);


Which is correct? What if I had 10 arguments that all needed values,
would I pass them in like so:

newJob.insertJob(id=form.id, name=form.name, location=form.location, etc. etc);

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232625
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: coldfusion and SQL2005

2006-02-16 Thread Russ
Isn't the free version 2GB ram cap or something?  Why not just use that?

> -Original Message-
> From: J W [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 5:26 PM
> To: CF-Talk
> Subject: Re: coldfusion and SQL2005
> 
> Well the boss bit the bullet and we ordered SQL2005 Workgroup edition. The
> version allows multiplexing, but has a 2 socket limitation and a 3 gig RAM
> cap. Some other misc features are missing but according to Microsoft
> themselves that is acceptable. Instead of around 9k it was around 6k. An
> FYI
> in case anyone is thinking of doing the same.
> 
> Thanks everyone for their input.
> Jeff
> 
> 
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232624
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Suggestion for the list

2006-02-16 Thread Munson, Jacob
> Please don't. If somebody adds [SOLVED] or something to the 
> subject, it still has to go in the same thread. Moreover, it is a 
> direct violation of RFC 2822:
> 
> In all cases, it is the meaning that the sender
> of the message wishes to convey (i.e., whether this is the same
> message or a different message) that determines whether or 
> not the "Message-ID:" field changes, not any particular syntactic 
> difference that appears (or does not appear) in the message.
>  RFC 2822, 3.6.4

I would think there oughta be a way to tell if a person is hijacking a
thread, or if it's a minor modification of an original thread.  I could
be wrong, but I'd think it could be done.

This all started with people saying gmail threading is hosed by this
stuff.  My 2 cents:  I tried using gmail for mailing lists, but I didn't
like it.  I am very anal about using filters to sort incoming messages.
Gmail allows this (i.e., put all cf-talk messages in their own folder).
However, you don't get a new message alert if the message skips the
inbox.  So I was always finding a load of messages I didn't know about.
The reason I use alerts is so that I don't HAVE to look at my inbox
every 5 minutes.  However, I do use gmail for a lot of non-mailing list
email, and I love it.


-


[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law.  If you are not the 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in 
error, please immediately contact the sender and destroy the material in its 
entirety, whether in electronic or hard copy format.  Thank you.   A2



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232623
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Suggestion for the list

2006-02-16 Thread Jochem van Dieten
Claude Schneegans wrote:
> 
> I know, when one needs to start a new subject, it is much easier to 
> reply any message and change the subject
> than start a new message and look for the list address in one's address 
> book.
> 
> The problem is that the reply still contains a reference to the message 
> supposedly replied to,
> and remains in the same thread. This is not convenient when one is 
> looking back at threads later.

If you don't find that convenient when looking back at threads, 
why don't you get an email client that threads the way you want 
it to thread?


> My suggestion, if it is possible, would be to remove the References: 
> header from any message
> when the subject is not the same (Except for Re:) before resending it to 
> members.
> This way, it will look like a true new subject for all.

That would mean I would loose the ability to recognize and 
prioritize responses to messages I sent (their References header 
matches my messageID).

Jochem

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232622
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: license on a test server?

2006-02-16 Thread Dave Watts
> Yeah I see your point Russ (and do read it that way as 
> well)...that said...I bet Dave has heard (given all those 
> deposition mentions) that he knows of someone that tried that 
> got spanked ;-)

I haven't attended any depositions about software licensing, specifically. I
have been deposed as an expert witness on other IT matters, and I have a
good idea about how depositions and trials work. The lawyers tend not to be
technically knowledgeable.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232621
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: coldfusion and SQL2005

2006-02-16 Thread J W
Well the boss bit the bullet and we ordered SQL2005 Workgroup edition. The
version allows multiplexing, but has a 2 socket limitation and a 3 gig RAM
cap. Some other misc features are missing but according to Microsoft
themselves that is acceptable. Instead of around 9k it was around 6k. An FYI
in case anyone is thinking of doing the same.

Thanks everyone for their input.
Jeff


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232620
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Suggestion for the list

2006-02-16 Thread Jochem van Dieten
Michael Dinowitz wrote:
> A bug in my thinking. I wrote the code for the archives rather than the mail 
> client and even though a message might force a new thread in the archives, it 
> keeps the old reply id. I'll have that fixed.

Please don't. If somebody adds [SOLVED] or something to the 
subject, it still has to go in the same thread. Moreover, it is a 
direct violation of RFC 2822:

In all cases, it is the meaning that the 
sender
of the message wishes to convey (i.e., whether this is the same
message or a different message) that determines whether or 
not the
"Message-ID:" field changes, not any particular syntactic 
difference
that appears (or does not appear) in the message.
 RFC 2822, 3.6.4

Jochem

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232619
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Suggestion for the list

2006-02-16 Thread Claude Schneegans
 >>I bet a lot of the 'lazy' people are in the same boat.

It is not always a question of being lazy. Perhaps some do not use a 
message reader
with the ability to classify messages by threads.
Or people are too lazy to turn it on ;-)

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232618
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: license on a test server?

2006-02-16 Thread Bryan Stevenson
> BTW I thought it was "All-knowing", not "Mighty"? Did he get promoted?

Well I did dub the other Dave (Lyons) "The Disruptor" ;-)

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232617
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: samle gateway?

2006-02-16 Thread Brad Wood
That would need to be a scheduled job then.  A trigger is fired at the
exact moment the event fires if you will.  
So if 10 people are in his chat room (and presumably there is a record
for each one) and all ten of them simply closed their browser windows
without logging out properly, he would be stuck with ten records in the
table and there would be no triggers being fired at that time.

Now he could use a trigger to check for any other records which may have
timed out when another arbitrary record is modified, but in the above
scenario, those expired records would be stuck there until the next
activity on that table.  Also, if this is an active table in the
database, a trigger would most likely be fired much more often than
necessary creating needless overhead. 


>Ok if a trigger can only be fired on the insert, delete or modify
events.  >But since Rick's goal was to remove a record that was 10
seconds old, I >would have thought that could possibly have been handled
somehow with >internal resources at least for some DBMS.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232616
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: Suggestion for the list

2006-02-16 Thread Claude Schneegans
 >>No, what if I wanted to declare a thread that began with a question as
SOLVED or ANSWERED

I see your point, but in IMO, loosing this possibility would be minor 
compared to the advantages
of automaically create new threads for new conversations.
By the way, I do not see people bother noticing their qustion is solved 
or answered very often ;-)

But since this thread is about suggestions, how about  eliminating all 
upper case characters
from the subject before comparing them ?
Then people like you who take the trouble of noticing others the 
question is answered would know
that if the use upper case, the message will remain in the same thread.

People who change the subject in the same thread do not use upper case 
generally.

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232615
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CF Blackbery App

2006-02-16 Thread Brian Coleman
For anyone who is interested in this kind of thing, I found a solution that 
works, using cfhttp. I think I could push content using something like this too 
but I haven't got that far yet.



http://myServerIP/[EMAIL 
PROTECTED]&PORT=7874&REQUESTURI=/" port="8080">


RE: license on a test server?

2006-02-16 Thread Kevin Aebig
LOL... Don't worry, I'm sure my Mom has called me worse. 

BTW I thought it was "All-knowing", not "Mighty"? Did he get promoted?

!K

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: February 16, 2006 3:56 PM
To: CF-Talk
Subject: RE: license on a test server?

> ... no offence to the Mighty Mr. Watts...but I want to have
> it from the horses mouth.

Don't worry, no offense taken. Many people have told me what part of the
horse I am.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232613
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: license on a test server?

2006-02-16 Thread Bryan Stevenson
> The license doesn't say anything about the number of users allowed to access
> the dev server, only the number of IPS.  If they really wanted to limit the
> development, they would say that only 2 developers can access the
> development server from the same time.  They, however, intentionally wrote
> that it's limited by the number of ips that can access it, so if you use a
> workaround (or happen to work in an environment where this is somehow the
> case, such as an n-tier system), I don't see why that would violate the
> license agreement.
>
> I'm sure Adobe makes some money selling licenses for dev servers, and I'm
> sure that some companies would rather pay that then try to figure out a
> workaround, but some companies might not be able to afford having a full
> licensed copy on their dev server.  And they shouldn't have to.
>
> Russ

Yeah I see your point Russ (and do read it that way as well)...that said...I 
bet 
Dave has heard (given all those deposition mentions) that he knows of someone 
that tried that got spanked ;-)

Thus my wish for a crystal clear ruling from Adobemedia

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232612
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CFC & cftransaction

2006-02-16 Thread Dave Watts
> I also like "AC/DC" ...

"DB Deeds Done Dirt Cheap?"

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232611
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: lincense on a test server?

2006-02-16 Thread Kevin Aebig
Sorry man... perhaps a little exaggerated. 

I honestly think CF would prosper more quickly if it wasn't as expensive as
it is, but I also respect the guys who make it happen and the companies that
push the software to succeed.

I completely agree that there needs to be an official answer, but I'm pretty
sure it's not going to be the way some would like it to be. =]

Sincerely,

!K

-Original Message-
From: Bryan Stevenson [mailto:[EMAIL PROTECTED] 
Sent: February 16, 2006 3:42 PM
To: CF-Talk
Subject: Re: lincense on a test server?

> Actually, considering the discussion went from "Is this possible?" to "How
> to get around a software restriction". I'd say that some true believers
> aren't practicing what they preach. I'm not saying that being cost
effective
> isn't a good idea, but openly discussing how to screw over the company
> that's feeding your kids by breaking the rules is a stretch to say the
> least.

Little harsh there Kev (discussing how to screw the company)I think it's

fair to say the wording from Adobe/MM is vagueif it wasn't these
questions 
wouldn't be asked.

and yes it started as "Is this possible?"and that ws answered...yes
it is 
possible (mabye not legal).

I for one would like an official ruling that is crystal clear from Adobe/MM
(no 
offence to the Mighty Mr. Watts...but I want to have it from the horses
mouth). 
We all can "assume" and "what if" all day..but there is truly only 1 opinion

that matters ;-)

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232610
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: license on a test server?

2006-02-16 Thread Bryan Stevenson
> Don't worry, no offense taken. Many people have told me what part of the
> horse I am.
> 

LOL..touche Dave!

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232609
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: CFC & cftransaction

2006-02-16 Thread Adam Churvis
I also like "AC/DC" and "Churvii Knights."

Respectfully,

Adam Phillip Churvis
Certified Advanced ColdFusion MX 7 Developer
http://www.ProductivityEnhancement.com

Download Plum and other cool development tools,
and get advanced intensive Master-level training:

* C# & ASP.NET for ColdFusion Developers
* ColdFusion MX Master Class
* Advanced Development with CFMX and SQL Server 2000

- Original Message - 
From: "charles arehart" <[EMAIL PROTECTED]>
To: "CF-Talk" 
Sent: Thursday, February 16, 2006 2:17 PM
Subject: Re: CFC & cftransaction


> Yes, it's an amazingly cute nickname for the tag team of Adam and
David--but again I take no credit. It was from someone else's imagination,
but it sure is sticky. :-)
>
> >HAH.
> >
> >"Churvii"
> >
>
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232608
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: CF Licensing on a VMWARE Server instance?

2006-02-16 Thread Big Mad Kev
Thanks Andy,

That's exactly what I meant, sorry I was being vague think it was another
long day :-)

But thanks all for your help much appreciated.

-Original Message-
From: Andy Allan [mailto:[EMAIL PROTECTED] 
Sent: 16 February 2006 09:07
To: CF-Talk
Subject: Re: CF Licensing on a VMWARE Server instance?

The point Kev is making is that you cannot realistically load test your
applications with the developer edition because of the thread limits. And if
you're running in a clustered environment, because of the IP restrictions on
the developer edition, you'll run into problems there too.

Therefore he needs the staging environment to mirror live in every way, i.e.
full blown versions of the products.

Andy


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232607
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: license on a test server?

2006-02-16 Thread Dave Watts
> ... no offence to the Mighty Mr. Watts...but I want to have
> it from the horses mouth.

Don't worry, no offense taken. Many people have told me what part of the
horse I am.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232606
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: license on a test server?

2006-02-16 Thread Russ
The license doesn't say anything about the number of users allowed to access
the dev server, only the number of IPS.  If they really wanted to limit the
development, they would say that only 2 developers can access the
development server from the same time.  They, however, intentionally wrote
that it's limited by the number of ips that can access it, so if you use a
workaround (or happen to work in an environment where this is somehow the
case, such as an n-tier system), I don't see why that would violate the
license agreement. 

I'm sure Adobe makes some money selling licenses for dev servers, and I'm
sure that some companies would rather pay that then try to figure out a
workaround, but some companies might not be able to afford having a full
licensed copy on their dev server.  And they shouldn't have to.  

Russ 

> -Original Message-
> From: Dave Watts [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 4:34 PM
> To: CF-Talk
> Subject: RE: license on a test server?
> 
> > Well the license mentions that you're only allowed to use
> > only 1 ip, yet we've heard from many sources and the physical
> > product allows 2 ips.  Are we violating the license if we
> > access it from 2 different ips?  Yes.  Are the courts going
> > to see it this way?  I doubt it.
> >
> > The point is I believe it's reasonable to use the developer
> > edition for development only, and if I have to put in a
> > workaround to make the requests from all the developers go
> > through one ip, I believe that's reasonable.  The spirit of
> > the license is to use the developer edition for development
> > only, and not for any sort of production use.  The ip
> > restriction is of little consequence as far as I see it, but
> > perhaps someone from macromedia can elaborate.
> 
> Adobe makes quite a bit of money selling Standard and Enterprise licenses
> for use on development servers. So they probably would differ about the
> consequence. You're certainly right that the EULA's limitation of one
> external connection doesn't match what MM folks have said about two
> external
> connections, but you have no reason to believe that this justifies three
> or
> more connections.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> 
> 
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232605
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: samle gateway?

2006-02-16 Thread Ian Skinner
A trigger is not what Rick wants (at least not a trigger on a table in the 
database).  A DB trigger is fired when you insert, delete, or modify a record 
in that table.  Rick's "event" is the closing of the browser window, and his 
database is ignorant to that.

Ok if a trigger can only be fired on the insert, delete or modify events.  But 
since Rick's goal was to remove a record that was 10 seconds old, I would have 
thought that could possibly have been handled somehow with internal resources 
at least for some DBMS.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232604
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: lincense on a test server?

2006-02-16 Thread Bryan Stevenson
> Actually, considering the discussion went from "Is this possible?" to "How
> to get around a software restriction". I'd say that some true believers
> aren't practicing what they preach. I'm not saying that being cost effective
> isn't a good idea, but openly discussing how to screw over the company
> that's feeding your kids by breaking the rules is a stretch to say the
> least.

Little harsh there Kev (discussing how to screw the company)I think it's 
fair to say the wording from Adobe/MM is vagueif it wasn't these questions 
wouldn't be asked.

...and yes it started as "Is this possible?"and that ws answered...yes it 
is 
possible (mabye not legal).

I for one would like an official ruling that is crystal clear from Adobe/MM (no 
offence to the Mighty Mr. Watts...but I want to have it from the horses mouth). 
We all can "assume" and "what if" all day..but there is truly only 1 opinion 
that matters ;-)

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232603
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Breadcrumb Trail

2006-02-16 Thread Donna French
Okay, so I've been reading several books on usability and finally decided to 
break down and add a breadcrumb trail to my site. For my top level I'll need to 
link to one of 10 pages depending on the category so the only option I see here 
is either multiple CFIF's or CFCASE to grab the correct page according to 
categoryID. But I wanted to run it past you all before I write the code to see 
if I'm missing an obvious easier solution.

For those of you wondering why I have 10 different pages for the top level 
categories it's for SEO reasons and has proven very beneficial.

TIA,
Donna

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232602
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: samle gateway?

2006-02-16 Thread Brad Wood
A trigger is not what Rick wants (at least not a trigger on a table in
the database).  A DB trigger is fired when you insert, delete, or modify
a record in that table.  Rick's "event" is the closing of the browser
window, and his database is ignorant to that.

I think the closest to a "trigger" that Rick could come is if he uses to
the JavaScript event that fires when you navigate away from a page, or
close the window.  Of course that wouldn't be fool-proof.

~Brad



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232601
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: license on a test server?

2006-02-16 Thread Joelle Tegwen
We tried that. Unfortunately we've just gotten the run around because 
the sales people don't really know and they transfer us to the technical 
people who (understandably) don't know. We've called 6 times and gotten 
"Well I would think that..." for answers and gotten different answers 
from each response. That's why I was hoping someone here would know.
Thanks
Joelle

Ian Skinner wrote:

>I appreciate everyone weighing in on this including all the legal 
>nuances. Hopefully someone from Macromedia will respond.
>Joelle
>
>
>Actually I would be surprised if any did.  Do to the legalities of offering 
>legal opinions in an open forum such as this; they could get into a lot of 
>trouble.
>
>I suspect one would have to make a more formal request in normal Adobe nee 
>Macromedia channels to get a response. 
>
>
>--
>Ian Skinner
>Web Programmer
>BloodSource
>www.BloodSource.org
>Sacramento, CA
>
>-
>| 1 |   |
>-  Binary Soduko
>|   |   |
>-
> 
>"C code. C code run. Run code run. Please!"
>- Cynthia Dunning
>
>
>
>

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232600
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: license on a test server?

2006-02-16 Thread Dave Watts
> Well the license mentions that you're only allowed to use 
> only 1 ip, yet we've heard from many sources and the physical 
> product allows 2 ips.  Are we violating the license if we 
> access it from 2 different ips?  Yes.  Are the courts going 
> to see it this way?  I doubt it.  
> 
> The point is I believe it's reasonable to use the developer 
> edition for development only, and if I have to put in a 
> workaround to make the requests from all the developers go 
> through one ip, I believe that's reasonable.  The spirit of 
> the license is to use the developer edition for development 
> only, and not for any sort of production use.  The ip 
> restriction is of little consequence as far as I see it, but 
> perhaps someone from macromedia can elaborate.

Adobe makes quite a bit of money selling Standard and Enterprise licenses
for use on development servers. So they probably would differ about the
consequence. You're certainly right that the EULA's limitation of one
external connection doesn't match what MM folks have said about two external
connections, but you have no reason to believe that this justifies three or
more connections.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232599
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: lincense on a test server?

2006-02-16 Thread Kevin Aebig
Adobe? =P

!k

-Original Message-
From: Joelle Tegwen [mailto:[EMAIL PROTECTED] 
Sent: February 16, 2006 3:27 PM
To: CF-Talk
Subject: Re: lincense on a test server?

I appreciate everyone weighing in on this including all the legal 
nuances. Hopefully someone from Macromedia will respond.
Joelle

Russ wrote:

>Well the license mentions that you're only allowed to use only 1 ip, yet
>we've heard from many sources and the physical product allows 2 ips.  Are
we
>violating the license if we access it from 2 different ips?  Yes.  Are the
>courts going to see it this way?  I doubt it.  
>
>The point is I believe it's reasonable to use the developer edition for
>development only, and if I have to put in a workaround to make the requests
>from all the developers go through one ip, I believe that's reasonable.
The
>spirit of the license is to use the developer edition for development only,
>and not for any sort of production use.  The ip restriction is of little
>consequence as far as I see it, but perhaps someone from macromedia can
>elaborate. 
>
>For the record, we all use licensed servers as well, but in getting a
N-Tier
>configuration to work, I noticed that CF only sees 1 ip when the requests
>are coming from another server and are proxied.  I actually had to write a
>filter to get CF to see the actual ip of the user. 
>
>Russ
>  
>
>  
>




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232598
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: license on a test server?

2006-02-16 Thread Ian Skinner
I appreciate everyone weighing in on this including all the legal 
nuances. Hopefully someone from Macromedia will respond.
Joelle


Actually I would be surprised if any did.  Do to the legalities of offering 
legal opinions in an open forum such as this; they could get into a lot of 
trouble.

I suspect one would have to make a more formal request in normal Adobe nee 
Macromedia channels to get a response. 


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232596
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: lincense on a test server?

2006-02-16 Thread Kevin Aebig
Actually, considering the discussion went from "Is this possible?" to "How
to get around a software restriction". I'd say that some true believers
aren't practicing what they preach. I'm not saying that being cost effective
isn't a good idea, but openly discussing how to screw over the company
that's feeding your kids by breaking the rules is a stretch to say the
least.

If you really don't want to buy another license, than just deploy a second
site (perhaps as a sub-domain) on the legit server and use that. If you want
to develop something that could be potentially dangerous, than deploy to a
Developer Edition and run it from there.

You don't pay for a legit license for just access, but convenience.

!k


-Original Message-
From: Russ [mailto:[EMAIL PROTECTED] 
Sent: February 16, 2006 2:56 PM
To: CF-Talk
Subject: RE: lincense on a test server?

Nobody is being cheap here.  I'm sure everyone is paying some kind of fees
for the production server.  Either they have bought the licenses or are
using hosting where they rent the licenses.  

People just want to develop in peace, and with the 2 ip restriction, that's
not always possible.  Unless you put in workarounds, and from what I can see
from the EULA, the workarounds are 100% legal and do not break the EULA,
unless you are using the developer edition for production use. 

Russ

> -Original Message-
> From: Kevin Aebig [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 3:45 PM
> To: CF-Talk
> Subject: RE: lincense on a test server?
> 
> Than maybe they should should decide whether they want to be compatible or
> cheap... Beggars can't be choosers.
> 
> !k
> 
> -Original Message-
> From: Russ [mailto:[EMAIL PROTECTED]
> Sent: February 16, 2006 2:21 PM
> To: CF-Talk
> Subject: RE: lincense on a test server?
> 
> It's also not very compatible with Macrodobe's coldfusion...
> 
> > -Original Message-
> > From: Kevin Aebig [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 16, 2006 3:16 PM
> > To: CF-Talk
> > Subject: RE: lincense on a test server?
> >
> > Why not just use BlueDragon? Isn't that more generous with it's
> > restrictions
> > for the free version?
> >
> > Cheers,
> >
> > Kevin
> >
> > -Original Message-
> > From: Joelle Tegwen [mailto:[EMAIL PROTECTED]
> > Sent: February 16, 2006 12:07 PM
> > To: CF-Talk
> > Subject: lincense on a test server?
> >
> > We're  having trouble getting information from Adobe (since they
> > apparently know nothing about ColdFusion.)
> >
> > We have a dual processor production server for which we will buy
> > whatever appropriate license.
> >
> > Do we really need to buy a full additional license for our test server
> > (which is only accessible within our organization)?
> >
> > Can we use the developer edition somehow?
> >
> > (off list replies are fine)
> > Thanks!
> > Joelle
> >
> >
> >
> >
> >
> 
> 
> 
> 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232597
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: samle gateway?

2006-02-16 Thread Ian Skinner
Triggers require some kind of action, right?

I'm not an expert never have had to write a trigger myself, the dba's (Oracle 
around here) take care of it.  But I'm pretty sure the action does not 
necessarily have to be external.  I guess I view them as being fairly similar 
to a scheduled task for a DBMS.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232595
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: lincense on a test server?

2006-02-16 Thread Joelle Tegwen
I appreciate everyone weighing in on this including all the legal 
nuances. Hopefully someone from Macromedia will respond.
Joelle

Russ wrote:

>Well the license mentions that you're only allowed to use only 1 ip, yet
>we've heard from many sources and the physical product allows 2 ips.  Are we
>violating the license if we access it from 2 different ips?  Yes.  Are the
>courts going to see it this way?  I doubt it.  
>
>The point is I believe it's reasonable to use the developer edition for
>development only, and if I have to put in a workaround to make the requests
>from all the developers go through one ip, I believe that's reasonable.  The
>spirit of the license is to use the developer edition for development only,
>and not for any sort of production use.  The ip restriction is of little
>consequence as far as I see it, but perhaps someone from macromedia can
>elaborate. 
>
>For the record, we all use licensed servers as well, but in getting a N-Tier
>configuration to work, I noticed that CF only sees 1 ip when the requests
>are coming from another server and are proxied.  I actually had to write a
>filter to get CF to see the actual ip of the user. 
>
>Russ
>  
>
>  
>


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232594
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: OT: Compiling java source code

2006-02-16 Thread Barney Boisvert
You have to include '.' in your CLASSPATH, or it won't pick it up. 
I'm not sure that's the problem, but I'm guessing SimpleGateway
extends EmptyGateway?

cheers,
barneyb

On 2/16/06, Rick Root <[EMAIL PROTECTED]> wrote:
> This is a bit off topic... I'm running CFMX Enterprise on a linux server
> and I want to compile a custom gateway.
>
> I downloaded and installed the j2sdk from sun and installed it, and I
> did this:
>
> CFHOME=/opt/coldfusionmx7
> javac -classpath
> $CFHOME/lib/cfusion.jar:$CFHOME/lib/log4j.jar:$CFHOME/runtime/lib/jrun.jar
> SimpleGateway.java
>
> and clearly, it's not doing the classpath stuff cuz I get errors like this:
>
> SimpleGateway.java:12: cannot resolve symbol
> symbol  : class EmptyGateway
> location: package examples
> import examples.EmptyGateway;
>
> and a bunch of other errors...
>
> Anyone know how to do this?
>
> rick
>

--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 100 invites.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232593
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: lincense on a test server?

2006-02-16 Thread Russ
Well the license mentions that you're only allowed to use only 1 ip, yet
we've heard from many sources and the physical product allows 2 ips.  Are we
violating the license if we access it from 2 different ips?  Yes.  Are the
courts going to see it this way?  I doubt it.  

The point is I believe it's reasonable to use the developer edition for
development only, and if I have to put in a workaround to make the requests
from all the developers go through one ip, I believe that's reasonable.  The
spirit of the license is to use the developer edition for development only,
and not for any sort of production use.  The ip restriction is of little
consequence as far as I see it, but perhaps someone from macromedia can
elaborate. 

For the record, we all use licensed servers as well, but in getting a N-Tier
configuration to work, I noticed that CF only sees 1 ip when the requests
are coming from another server and are proxied.  I actually had to write a
filter to get CF to see the actual ip of the user. 

Russ

> -Original Message-
> From: Dave Watts [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 4:03 PM
> To: CF-Talk
> Subject: RE: lincense on a test server?
> 
> > how so Dave...it's just 1 IP and being used for development?
> > Is there mention of router and othr devices in the licensing?
> 
> No, there's no mention of routers or proxies or any other workarounds in
> the
> license. Believe it or not, licenses, like any other legal documents, are
> meant to be interpreted reasonably. The license clearly states that you
> may
> only access the developer edition from one external IP address. You would
> have a very difficult time making a case before a court that your
> "technical" workaround doesn't violate the spirit of the license, if not
> the
> letter of it. And again, believe it or not, the spirit and intent of a
> legal
> document can matter quite a bit. You simply wouldn't have a leg to stand
> on.
> If you got as far as a deposition, you'd get skewered - and it wouldn't
> get
> any farther than that.
> 
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> 
> Fig Leaf Software provides the highest caliber vendor-authorized
> instruction at our training centers in Washington DC, Atlanta,
> Chicago, Baltimore, Northern Virginia, or on-site at your location.
> Visit http://training.figleaf.com/ for more information!
> 
> 
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232592
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: lincense on a test server?

2006-02-16 Thread Dave Watts
> Nobody is being cheap here.  I'm sure everyone is paying some 
> kind of fees for the production server.  Either they have 
> bought the licenses or are using hosting where they rent the 
> licenses.  
>
> People just want to develop in peace, and with the 2 ip 
> restriction, that's not always possible.  Unless you put in 
> workarounds, and from what I can see from the EULA, the 
> workarounds are 100% legal and do not break the EULA, unless 
> you are using the developer edition for production use.

Cheap, whatever, it doesn't matter. The fact that you're using the word
"workaround" to describe how you can violate the spirit of the license
should be a clear indicator that you would be violating the license. I'd pay
good money to see someone explaining during their deposition how a proxy
server doesn't violate the license. And trust me, you wouldn't get any
farther than a deposition.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232591
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: lincense on a test server?

2006-02-16 Thread Bryan Stevenson
> No, there's no mention of routers or proxies or any other workarounds in the
> license. Believe it or not, licenses, like any other legal documents, are
> meant to be interpreted reasonably. The license clearly states that you may
> only access the developer edition from one external IP address. You would
> have a very difficult time making a case before a court that your
> "technical" workaround doesn't violate the spirit of the license, if not the
> letter of it. And again, believe it or not, the spirit and intent of a legal
> document can matter quite a bit. You simply wouldn't have a leg to stand on.
> If you got as far as a deposition, you'd get skewered - and it wouldn't get
> any farther than that.

Oh I know all about the spirit in which contracts are written ;-)

Thanks Dave...just wanted to know if it was or was no explicitly mentioned 
(routers and other devices).

.and to jump on the OMG we don't do that bandwagon..well we don't 
either..licenced copies used on client sites, or in shared hosting, or on 
client 
dedicated boxes.

Cheers

Bryan Stevenson B.Comm.
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
phone: 250.480.0642
fax: 250.480.1264
cell: 250.920.8830
e-mail: [EMAIL PROTECTED]
web: www.electricedgesystems.com 


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232590
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Re: samle gateway?

2006-02-16 Thread Rick Root
Ian Skinner wrote:
> basically, I want something to monitor a database table, and remove rows 
> of data that have not been updated in more than 10 seconds.
> 
> Just to put another idea on the flagpole.  What DBMS are you using?  Does it 
> have triggers?  That just sounded like a perfect task for a database trigger 
> so the database can take care of itself.

Triggers require some kind of action, right?

If I close my browser window, there are rows sitting in the database and 
no action being formed on them.  I don't see how a trigger could help.

i'm using MySQL but even if I was using Oracle or SQL Server, I'm not 
sure how triggers would help.

rick

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232589
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Suggestion for the list

2006-02-16 Thread Baz
Until reading all your comments, I actually didn't know there was secret
code in the header to identify threads - I thought it was ok to reply and
change subject. I bet a lot of the 'lazy' people are in the same boat.

Now I know, and that's half the battle.

Baz


-Original Message-
From: Claude Schneegans [mailto:[EMAIL PROTECTED] 
Sent: Thursday, February 16, 2006 3:20 PM
To: CF-Talk
Subject: Re: Suggestion for the list

 >>Message has a reply id but different subject. result: thread it.

I don't see your point.
If it has a new subject, it should start a new thread, wether it is a 
physical reply to any other message, no?

-- 
___
REUSE CODE! Use custom tags;
See http://www.contentbox.com/claude/customtags/tagstore.cfm
(Please send any spam to this address: [EMAIL PROTECTED])
Thanks.




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232588
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: lincense on a test server?

2006-02-16 Thread Dave Watts
> how so Dave...it's just 1 IP and being used for development?  
> Is there mention of router and othr devices in the licensing?

No, there's no mention of routers or proxies or any other workarounds in the
license. Believe it or not, licenses, like any other legal documents, are
meant to be interpreted reasonably. The license clearly states that you may
only access the developer edition from one external IP address. You would
have a very difficult time making a case before a court that your
"technical" workaround doesn't violate the spirit of the license, if not the
letter of it. And again, believe it or not, the spirit and intent of a legal
document can matter quite a bit. You simply wouldn't have a leg to stand on.
If you got as far as a deposition, you'd get skewered - and it wouldn't get
any farther than that.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized
instruction at our training centers in Washington DC, Atlanta,
Chicago, Baltimore, Northern Virginia, or on-site at your location.
Visit http://training.figleaf.com/ for more information!


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232587
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: samle gateway?

2006-02-16 Thread Ian Skinner
basically, I want something to monitor a database table, and remove rows 
of data that have not been updated in more than 10 seconds.


Just to put another idea on the flagpole.  What DBMS are you using?  Does it 
have triggers?  That just sounded like a perfect task for a database trigger so 
the database can take care of itself.




--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232586
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


OT: Compiling java source code

2006-02-16 Thread Rick Root
This is a bit off topic... I'm running CFMX Enterprise on a linux server 
and I want to compile a custom gateway.

I downloaded and installed the j2sdk from sun and installed it, and I 
did this:

CFHOME=/opt/coldfusionmx7
javac -classpath 
$CFHOME/lib/cfusion.jar:$CFHOME/lib/log4j.jar:$CFHOME/runtime/lib/jrun.jar 
SimpleGateway.java

and clearly, it's not doing the classpath stuff cuz I get errors like this:

SimpleGateway.java:12: cannot resolve symbol
symbol  : class EmptyGateway
location: package examples
import examples.EmptyGateway;

and a bunch of other errors...

Anyone know how to do this?

rick


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232585
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: lincense on a test server?

2006-02-16 Thread Russ
Nobody is being cheap here.  I'm sure everyone is paying some kind of fees
for the production server.  Either they have bought the licenses or are
using hosting where they rent the licenses.  

People just want to develop in peace, and with the 2 ip restriction, that's
not always possible.  Unless you put in workarounds, and from what I can see
from the EULA, the workarounds are 100% legal and do not break the EULA,
unless you are using the developer edition for production use. 

Russ

> -Original Message-
> From: Kevin Aebig [mailto:[EMAIL PROTECTED]
> Sent: Thursday, February 16, 2006 3:45 PM
> To: CF-Talk
> Subject: RE: lincense on a test server?
> 
> Than maybe they should should decide whether they want to be compatible or
> cheap... Beggars can't be choosers.
> 
> !k
> 
> -Original Message-
> From: Russ [mailto:[EMAIL PROTECTED]
> Sent: February 16, 2006 2:21 PM
> To: CF-Talk
> Subject: RE: lincense on a test server?
> 
> It's also not very compatible with Macrodobe's coldfusion...
> 
> > -Original Message-
> > From: Kevin Aebig [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, February 16, 2006 3:16 PM
> > To: CF-Talk
> > Subject: RE: lincense on a test server?
> >
> > Why not just use BlueDragon? Isn't that more generous with it's
> > restrictions
> > for the free version?
> >
> > Cheers,
> >
> > Kevin
> >
> > -Original Message-
> > From: Joelle Tegwen [mailto:[EMAIL PROTECTED]
> > Sent: February 16, 2006 12:07 PM
> > To: CF-Talk
> > Subject: lincense on a test server?
> >
> > We're  having trouble getting information from Adobe (since they
> > apparently know nothing about ColdFusion.)
> >
> > We have a dual processor production server for which we will buy
> > whatever appropriate license.
> >
> > Do we really need to buy a full additional license for our test server
> > (which is only accessible within our organization)?
> >
> > Can we use the developer edition somehow?
> >
> > (off list replies are fine)
> > Thanks!
> > Joelle
> >
> >
> >
> >
> >
> 
> 
> 
> 

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232584
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Email to database

2006-02-16 Thread Ian Skinner
Can anyone give me an idea how to programmatically insert email into a database 
using cold fusion?  I'd like to take a daily digest post from a mailing list 
and have it automatically inserted into a database.  Possible?


I have not used this feature and I have heard many times that it can be 
problematic, but there is the CFPOP tag that can allow a CF process to read an 
email from an pop mail account.  It then should not be difficult to parse the 
email and do what you want with it.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
"C code. C code run. Run code run. Please!"
- Cynthia Dunning



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232583
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: ArrayAppend oddity

2006-02-16 Thread Dave Francis
NumberFormat(01011+7,"0")


-Original Message-
From: Charlie Griefer [mailto:[EMAIL PROTECTED]
Sent: Thursday, February 16, 2006 3:21 PM
To: CF-Talk
Subject: Re: ArrayAppend oddity


put the value in quotes?

arrayAppend(myArrayList2, '01011')

On 2/16/06, Jeremy Bunton <[EMAIL PROTECTED]> wrote:
> I have the code below doing this where 01011 is a zip code. So I would
like
> the output to be 01018 as the appended value in the array but right now I
am
> getting 1018 (leading 0 getting cut off) I tried listappend and it does
the
> same thing. Val() and tostring() didn't seem to do much either. Any ideas?
>
> ArrayAppend(myArrayList2,01011+7);
>
> Jeremy
>
>
>
>
>



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232582
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Getting Distinct Values across multiple fields

2006-02-16 Thread Munson, Jacob
This should work:

Select distinct code1 from datatable
union
Select distinct code2 from datatable
union
Select distinct code3 from datatable
union
Select distinct code4 from datatable

The union operator automatically removes duplicates (at least it does in
MS SQL)
 

> -Original Message-
> From: Claremont, Timothy [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, February 16, 2006 11:29 AM
> To: CF-Talk
> Subject: Getting Distinct Values across multiple fields
> 
> I have a database that contains fields such as the following:
> 
> Code1, Code2, Code3, Code4, Code5. Code25.
> 
> 
> I need to return the distinct codes from ALL columns. I don't 
> care if a
> code only appeared in one of the columns, I need to see it in the
> distinct list.
> 
> I know that I could return a distinct list of EACH field, and then add
> all of those together and get a distinct list of the result, but is
> there a more elegant way to do this?
> 
> CF7 and Access2k2

This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law. If you are not the intended 
recipient, you are hereby notified that any disclosure, copying, distribution, 
or use of the information contained herein (including any reliance thereon) is 
STRICTLY PROHIBITED. If you received this transmission in error, please 
immediately contact the sender and destroy the material in its entirety, 
whether in electronic or hard copy format. Thank you. A1.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:232581
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


  1   2   3   >