Re: OT: CFEclipse / SVN problem

2007-11-12 Thread Brian Kotek
Try svn://localhost

On Nov 12, 2007 10:40 PM, ColdFusion <[EMAIL PROTECTED]> wrote:

> Configuration:
>
> I loaded up Eclipse v 3.3.1.1 with the CFEclipse plugin and the SVN
> Plugin.
> I am running Windows Vista 32bit as my development laptop.
>
> I support multiple clients and their code. I have my wwwroot set as:
> C:\wwwroot rather than c:\inetpub\wwwroot
>
> Also running CFMX 7. I have multiple sites setup in IIS7 as being separate
> websites. So when I work on a client site, I start that web site and shut
> down all the rest.
>
> That way I can always use: http://localhost for each client as a top level
> domain.
>
>
>
>
>
> Problem is:
>
> I loaded the SVN plugin, and loaded the Svn1ClickSetup-1.3.3functionality.
> I can access the SVN tab within Eclipse.
>
> However if I create a new SVN Repository, I get the error:
>
>
>
> RA layer request failed
>
> svn: PROPFIND request failed on '/svn'
>
> svn: PROPFIND of '/svn': could not connect to server (https://localhost)
>
>
>
> I have tried the following hosts:
>
> https://localhost/svn
>
> https://localhost 
>
> http://localhost/svn
>
> http://localhost
>
>
>
> All with the same error.
>
>
>
> Any ideas how I can get SVN loaded within Eclipse and each Client site
> have
> it's own repository?
>
>
>
> TIA!
>
>
>
>
>
>
>
>
>
>
>
> 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293187
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Distance Calculation

2007-11-12 Thread Brian Polackoff
Thanks to all, will try both methods.

Thanks!

-Original Message-
From: Jordan Michaels [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 12, 2007 8:11 PM
To: CF-Talk
Subject: Re: Distance Calculation

Google maps API. I believe you can also get driving distances and
estimated times.

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
BlueDragon Alliance Member
[EMAIL PROTECTED]


Brian Polackoff wrote:
> Has anyone ever seen or heard of a, free preferably but will work with
> anything, custom tag, or web service that can take two addresses and
> determine the distance between them. The distance can either be "as the
crow
> files" or actual driving route. 
> 
>  
> 
> I know there are zip code calculators out there but I need more accuracy
than
> that.
> 
>  
> 
> Any suggestions.
> 
> 
> Thanks,
> Brian R. Polackoff
> 
> 
> 
> 



~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293188
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Trouble Using Exchange Tags

2007-11-12 Thread Ryan, Terrence
Is the OWA actually being served up by the Exchange Server or is another server 
running OWA? The 302 means that it is trying to redirect you to another server.



Terrence Ryan
I.T. Director
Wharton Computing and Information Technology   
E-mail:     [EMAIL PROTECTED]


-Original Message-
From: Brian Case [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 12, 2007 4:46 PM
To: CF-Talk
Subject: Trouble Using Exchange Tags

I am trying to test out the new cfexchange tags in Colldfusion 8 so that I can 
integrate in with our intranet at some point but am having some difficulty.

I am just testing by using the tag:



I keep getting the error, Unable to connect to the Exchange server using 
HTTP/HTTPS protocol. 
HTTP response code : 302 

Here is what I have currently checked.

1) I can ping the exchange server from the server that is running Colfusion 8
2) The Exchange server has "allow" for MS Exchange Server in the "Web service 
Extension" of IIS
3) Outlook Web Access is working and is enabled for my user account
4) Rechecked the ip address of the Exchange Server 
5) tried username/passsword combo that I use for Exchange and OWA and even 
tried appending [EMAIL PROTECTED]
6) I have also tried using protocol="https" and used the keytool option to 
install the certificate to the Coldfusion server. I get the message 
"SSLHandshakeException when connecting to the Exchange server at 192.168.0.20 
using HTTPS protocol. 
The SSL certificate installed on the Exchange server is not found on the 
ColdFusion server. Ensure that the required certificates are installed in the 
certificate store of the JVM".



Anyone have any ideas to test further

Thanks,

Brian




~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293186
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


OT: CFEclipse / SVN problem

2007-11-12 Thread ColdFusion
Configuration:

I loaded up Eclipse v 3.3.1.1 with the CFEclipse plugin and the SVN Plugin.
I am running Windows Vista 32bit as my development laptop.

I support multiple clients and their code. I have my wwwroot set as:
C:\wwwroot rather than c:\inetpub\wwwroot

Also running CFMX 7. I have multiple sites setup in IIS7 as being separate
websites. So when I work on a client site, I start that web site and shut
down all the rest.

That way I can always use: http://localhost for each client as a top level
domain.

 

 

Problem is:

I loaded the SVN plugin, and loaded the Svn1ClickSetup-1.3.3 functionality.
I can access the SVN tab within Eclipse.

However if I create a new SVN Repository, I get the error:

 

RA layer request failed

svn: PROPFIND request failed on '/svn'

svn: PROPFIND of '/svn': could not connect to server (https://localhost)

 

I have tried the following hosts:

https://localhost/svn

https://localhost  

http://localhost/svn

http://localhost

 

All with the same error.

 

Any ideas how I can get SVN loaded within Eclipse and each Client site have
it's own repository?

 

TIA!

 

 

 





~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293185
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Dynamic Variable in cfcase statement throws error.

2007-11-12 Thread Dave Watts
> *shrug* he'd already been told cfswitch was not 
> good for what he's trying to do, figured I'd give 
> him a way to do it if he *really* wanted to go 
> that way :)

The problem with that, is that the original poster might actually follow your 
suggestion.

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!


~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293184
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: missing Java close() method in ImageInfo.class

2007-11-12 Thread Dave Watts
> I can but it still needs to be able to at least 
> delete the file if it doesn't meet the rez 
> requirements.

Perhaps you could delete files asynchronously instead. For example, you could 
have a scheduled task for file deletion.

Dave Watts, CTO, Fig Leaf Software 


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293183
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Programming Font

2007-11-12 Thread Greg Luce
Courier New size 9 at 1440x900.

-Greg
On Nov 12, 2007 7:48 PM, Casey Dougall <[EMAIL PROTECTED]> wrote:

> On Oct 7, 2007 5:41 PM, Dan G. Switzer, II <[EMAIL PROTECTED]>
> wrote:
>
> > I tried Consolas first, but went back to Dina. Dina is very legible at
> > 1024x768 for me at 8pt. I haven't found another font that can run at
> that
> > point size and still be extremely easy to read.
> >
> > -Dan
> >
> > >-Original Message-
> > >From: Daniel Kim [mailto:[EMAIL PROTECTED]
> > >Sent: Sunday, October 07, 2007 6:19 PM
> > >To: CF-Talk
> > >Subject: OT: Programming Font
> > >
> > >Just came across this entry in Jeff Atwood's blog:
> > >
> > >Revisiting Programming Fonts
> > >http://www.codinghorror.com/blog/archives/000969.html
> > >
> > >I've been using Dina, but the Consolas (Windows Clear Type) or the
> > >"non-denominational" Inconsolata fonts he points too may move me to
> > switch
> > >(I'm on Windows XP Pro, using Eclipse and SQL Server Management Studio
> > most
> > >of the time).
> > >
> > >Wondering what other are using?
> > >
> > >
> > >
>
>
> Rewind...
>
> Ok,  at home Consolas kicks ass 1920 x 1200, but at work, I forget the
> exact
> resolution, but it sucks ass... Can't even read the stuff. I do like
> Consolas though. It's my new default font on the widescreen.
> Casey
>
>
> 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293182
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: dumpy goodness

2007-11-12 Thread Dave Watts
> Even if I am talking about a structure nested 
> 400 levels deep, how big is that really?

Bigger than is required by most programs, I suspect.

> Heck, I could manually output a small structure 
> 400 times with pen and paper in less time than 
> half an hour. 

Could you also serialize/deserialize the WDDX in half an hour? That might make 
a mildly entertaining Youtube video.

> Furthermore, call me crazy but I expect a well 
> coded application to be aware of its limits and 
> bow out gracefully rather than error.

You are crazy.

ColdFusion is better thought of as an application server - a glorified compiler 
- not an application in its own right. If it encounters an error, its job is to 
fail and report the error.

It's your job, as an application programmer, to make your applications fail 
gracefully, not the compiler's job.

> I assume you are _not_ referring to the heap 
> size?

Your assumption is correct.

Dave Watts, CTO, Fig Leaf Software 



~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293181
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: missing Java close() method in ImageInfo.class

2007-11-12 Thread aegis
I can but it still needs to be able to at least delete the file if it
doesn't meet the rez requirements.. Think I'll just bite the bullet and
implement CFX_imageutils - was hoping to avoid forcing a resize if needed as
I don't like the quality that outputs. Ahh well, I guess the user should
take SOME responsibility for what they're doing. Looking forward to doing
the CF8 version of this component! Thanks for the reply :)

Lars Gronholt

Web Application Developer
eNTITy1 Pty Ltd
[EMAIL PROTECTED]
ph: +618 8941 1162
fax: +618 8941 1167
http://www.entity1.com


-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Monday, 12 November 2007 3:52 PM
To: CF-Talk
Subject: RE: missing Java close() method in ImageInfo.class


> Currently writing the 7 and 6.1 variants of this portion and
> I'm having difficulty with the ImageInfo class as recommended 
> in Chapter 25 of the CFMX Advanced App Dev book (3rd ed). The 
> problem is that I can get all the info i need using the java 
> class, but when I go to perform any operations on the file 
> after that, It wont let me. cffile move functions like a copy 
> - doesnt remove the original from the temp folder, and cffile 
> delete throws an error: 
>  ColdFusion could not delete the file 
> "D:\inetpub\wwwroot\xxx\users\temp\aegishead1.jpg" for an 
> unknown reason.
> 
> the file path is correct as are the permissions on the directory.
> 
> one thing i've noticed is the class does not appear to have a
> close() method, and the examples in the app dev book didn't 
> show any cffile processing being done on the files after the 
> createobject() that used the class.
> 
> any ideas how i can get around this? I really need to trap
> those sizes as well all know how end users function =)

Can you move the file before using the Java class? I've had problems
attempting two operations on the same file in the same request; the first
seems to place a lock on the file. If you can reverse their order, the fact
that you're locking the file might not matter.

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!




~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293179
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Dynamic Variable in cfcase statement throws error.

2007-11-12 Thread aegis
*shrug* he'd already been told cfswitch was not good for what he's trying to
do, figured I'd give him a way to do it if he *really* wanted to go that way
:)

-Original Message-
From: Dave Watts [mailto:[EMAIL PROTECTED] 
Sent: Monday, 12 November 2007 4:01 PM
To: CF-Talk
Subject: RE: Dynamic Variable in cfcase statement throws error.


> it could be slow, but you could write your switch statement
> on the fly into a file with a dynamic name in a temp folder, 
> let your main page include that file, then delete it upon 
> completion.. no idea what that would do to your overheads tho.

Why on earth would you do that? That defeats the purpose of using CFSWITCH.
If you have conditional logic that depends on values that are unknown until
runtime, that's what CFIF is for.

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!




~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293180
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Programming Font

2007-11-12 Thread Casey Dougall
On Oct 7, 2007 5:41 PM, Dan G. Switzer, II <[EMAIL PROTECTED]> wrote:

> I tried Consolas first, but went back to Dina. Dina is very legible at
> 1024x768 for me at 8pt. I haven't found another font that can run at that
> point size and still be extremely easy to read.
>
> -Dan
>
> >-Original Message-
> >From: Daniel Kim [mailto:[EMAIL PROTECTED]
> >Sent: Sunday, October 07, 2007 6:19 PM
> >To: CF-Talk
> >Subject: OT: Programming Font
> >
> >Just came across this entry in Jeff Atwood's blog:
> >
> >Revisiting Programming Fonts
> >http://www.codinghorror.com/blog/archives/000969.html
> >
> >I've been using Dina, but the Consolas (Windows Clear Type) or the
> >"non-denominational" Inconsolata fonts he points too may move me to
> switch
> >(I'm on Windows XP Pro, using Eclipse and SQL Server Management Studio
> most
> >of the time).
> >
> >Wondering what other are using?
> >
> >
> >


Rewind...

Ok,  at home Consolas kicks ass 1920 x 1200, but at work, I forget the exact
resolution, but it sucks ass... Can't even read the stuff. I do like
Consolas though. It's my new default font on the widescreen.
Casey


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293177
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Mocking a DAO for testing

2007-11-12 Thread Brian Kotek
On Nov 12, 2007 5:03 PM, Jeff Chastain <[EMAIL PROTECTED]> wrote:

>
> If the DAO object is injected into the service object via ColdSpring, it
> is still a case that I don't have a handle on the mock object in the unit
> test to define its methods before it gets inserted into the service object.


This is the part you're missing. If you have ColdSpring inject the DAO into
the Service, and you also have a reference to ColdSpring in your unit test
file (which you would have to in order for it to create the service for you
to test), you can call getBean('DAO') on ColdSpring and get back a reference
to the same DAO that has been composed into the Service. It's a Singleton.
>From there you can mock out whatever methods you need to, and when your
Service calls the DAO, your mocked methods will return whatever you set them
up to return. Make sense?


~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293174
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Distance Calculation

2007-11-12 Thread Jordan Michaels
Google maps API. I believe you can also get driving distances and
estimated times.

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
BlueDragon Alliance Member
[EMAIL PROTECTED]


Brian Polackoff wrote:
> Has anyone ever seen or heard of a, free preferably but will work with
> anything, custom tag, or web service that can take two addresses and
> determine the distance between them. The distance can either be "as the crow
> files" or actual driving route. 
> 
>  
> 
> I know there are zip code calculators out there but I need more accuracy than
> that.
> 
>  
> 
> Any suggestions.
> 
> 
> Thanks,
> Brian R. Polackoff
> 
> 
> 
> 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293178
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: dumpy goodness

2007-11-12 Thread Brian Kotek
On Nov 12, 2007 6:46 PM, Brad Wood <[EMAIL PROTECTED]> wrote:

>
> Naturally most everything has a limit, but I guess I would have expected
> the limits of CF to not be so limited.  Even if I am talking about a
> structure nested 400 levels deep, how big is that really?  With modern
> computers and programming languages how long should it actually take to
> recurse 400 levels?  It ran for up to half an hour without returning
> before I killed it.  Heck, I could manually output a small structure 400
> times with pen and paper in less time than half an hour.  Furthermore,
> call me crazy but I expect a well coded application to be aware of its
> limits and bow out gracefully rather than error.


You're saying this as if you didn't just pull the number 400 out of thin
air. Do you actually have any idea how large the variable you were
attempting to dump actually was? If the error was causing infinite
recursion, I would expect nothing BUT an out of memory error. What else
could happen?


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293176
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: dumpy goodness

2007-11-12 Thread James Holmes
Stack is the memory each thread gets to itself out of the heap and a
recursive function called many times (or a lot of other nested calls)
will overflow the stack as you are seeing. Beware of increasing the
stack - each thread takes this memory and if, for example, you double
the stack size you will instantly double the memory requirement of
your application for a given number of threads (which is fine as long
as you can increase the heap size accordingly).

On Nov 13, 2007 8:46 AM, Brad Wood <[EMAIL PROTECTED]> wrote:
> > There are always limits. Why should this be any different?
>
> Naturally most everything has a limit, but I guess I would have expected
> the limits of CF to not be so limited.  Even if I am talking about a
> structure nested 400 levels deep, how big is that really?  With modern
> computers and programming languages how long should it actually take to
> recurse 400 levels?  It ran for up to half an hour without returning
> before I killed it.  Heck, I could manually output a small structure 400
> times with pen and paper in less time than half an hour.  Furthermore,
> call me crazy but I expect a well coded application to be aware of its
> limits and bow out gracefully rather than error.
>
> > I would guess that, like most other memory allocation in Java, you can
> probably increase the stack size in jvm.config.
>
> Hmmm, that's an interesting idea to play with.  I assume you are _not_
> referring to the heap size?
>
> ~Brad
>
> 

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293175
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cflogout problem

2007-11-12 Thread Richard White
If i dump the session variable should i see the login details?

i.e. the username, password, and roles?

as i am not seeing them when i dump the session variables 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293172
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: cflogout problem

2007-11-12 Thread Richard White
>Do you have CFLOGIN associated with your session, or is it using a separate
>cookie (the default)?

Hi Dave,

I have it associated with the session in the application.cfc with the following 
code:



Thanks 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293170
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Adding Properties to an Object at Runtime

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

On Nov 12, 2007 5:24 PM, Jeff Chastain <[EMAIL PROTECTED]> wrote:

> The point is, this application is going to be used in different scenarios
> where the concept of a user won't always be the same.  In one situation,
> employeeId might be a perfectly reasonable property for a user, while in
> another scenario, it would have no meaning at all.  Part of the admin user
> interface allows the administrator to define new properties for objects - a
> user, a product, etc - that pertain to their specific usage scenario.
>
> The dynaBean concept looks interesting, but it still appears to boil down
> to a internal collection of properties with a get and set method that take
> the name of a property and return its value.  There may not be another way
> to do this, I just thought I would ask and see.
>
> Thanks for the info.
> -- Jeff
>
>
>


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293173
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: dumpy goodness

2007-11-12 Thread Brad Wood
> There are always limits. Why should this be any different?

Naturally most everything has a limit, but I guess I would have expected
the limits of CF to not be so limited.  Even if I am talking about a
structure nested 400 levels deep, how big is that really?  With modern
computers and programming languages how long should it actually take to
recurse 400 levels?  It ran for up to half an hour without returning
before I killed it.  Heck, I could manually output a small structure 400
times with pen and paper in less time than half an hour.  Furthermore,
call me crazy but I expect a well coded application to be aware of its
limits and bow out gracefully rather than error.  

> I would guess that, like most other memory allocation in Java, you can
probably increase the stack size in jvm.config.

Hmmm, that's an interesting idea to play with.  I assume you are _not_
referring to the heap size?

~Brad

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293171
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: dumpy goodness

2007-11-12 Thread Mark A Kruger
Brad,

Regarding WDDX I have some (admittedly hazy) recollection as to its origin
and development that I gained from using it to port stock quotes from CF to
Java, ASP, Perl and PHP. Here's what I remember - but take it with a grain
of salt since I'm pulling this out of my a...erear. 

WDDX is a pretty old standard going all the way back to CF 4. It was
originally developed by the Allaire guy (an fellow who's name escapes me - I
had great difficulty pronouncing it anyway:) who was responsible for most of
the CF original engine. He used it in an ingenious fashion to marshal data
back and forth between various internal modules of CF and decided it should
be exposed externally so he implemented CFWDDX. 

Since it's original intent was superseded by advances in serialization I
suspect that it is not longer used like that internal. It has not changed a
great deal from those days. Certainly the standard is the same since the
late 90s. It is a very useful and light weight way to retain objects in a
flat format (exactly as you are using it) but I would not expect it to get
much attention from the current development effort of CF. I suspect it's
left in there as a legacy and I'm guessing that it frustrates some of the
Java gurus tasked with porting the CF code from the old C++ days... It's
just a guess :) 

Maybe Ben Forta or one of the other gurus who sometimes monitor this list
can shed some lite on it or correct my foggy recollection.

I like what you are doing with WDDX and I get the idea - I just think that
WDDX itself might be a weak link in the chain. Having said that - the case
you mentioned where an SP is throwing multiple nested errors certainly must
be an exception. In most cases I think it would work quite well.

-Mark

-Original Message-
From: Brad Wood [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 12, 2007 2:20 PM
To: CF-Talk
Subject: RE: dumpy goodness

> My guess would be that the SQL code behind the error is quite large

That much did turn out to be true.


> pushes WDDX beyond it's buffer limit. In the old days you couldn't
build a
> packet bigger than 64k (or something like that). 


That sort of makes sense (but not really-- I would have expected  more from
CF than that).  That wouldn't explain why dumping it gave me a 500 NULL
unless it was SUUPER huge.  I've dumped some meaty result sets before
without trouble.  I guess the different was how far it was
nested-- several hundred levels deep.  The individual structs weren't too
big probably-- just deep.


> Out of curiosity - what is the purpose of serializing the cfcatch
object?

Like I said-- for error logging.  We have a pretty cool system of CFC's for
logging errors as well as other processes in our system.  We log Java errors
(from our Java team's apps), CF errors, and JS errors (via JavaScript try
catches that call an error logging web service).  We capture who did it,
when they did it, what server they were on, what version of browser they
were using, the full cfcatch object (or JavaScript error object), the form
and url scope and a couple of other things.  A scheduled job E-mails out all
of our application's errors every 15 minutes to a group of people to monitor
them and put in bug fixes if necessary.  That way we can report on who is
getting errors, what they are, and when.  
Since cfcatch is a complex object, it needs to be serialized for storage in
the database.

~Brad



~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293169
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Distance Calculation

2007-11-12 Thread Barney Boisvert
It'd be trivial to use a geocoding service to get the lat/log of the
addresses and then use the Pythagorean theorem to get the linear
distance.  geonames.org is one that I've used in the past with great
success (check http://www.geonames.org/export/).

cheers,
barneyb

On Nov 12, 2007 1:13 PM, Brian Polackoff <[EMAIL PROTECTED]> wrote:
> Has anyone ever seen or heard of a, free preferably but will work with
> anything, custom tag, or web service that can take two addresses and
> determine the distance between them. The distance can either be "as the crow
> files" or actual driving route.
>
>
>
> I know there are zip code calculators out there but I need more accuracy than
> that.
>
>
>
> Any suggestions.
>
>
> Thanks,
> Brian R. Polackoff

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

Got Gmail? I have 100 invites.

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293165
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: dumpy goodness

2007-11-12 Thread Dave Watts
> I'm just left with the question of-- Why couldn't CF handle 
> it?  Is there a limit to how deep structures can be nested?  
> I'm still inclined to think that the 
> "java.lang.StackOverflowError" is more of a bug.  Yes, yes-- 
> had better SQL error handling been in place, my errors 
> wouldn't have been so
> large-- but who's to say I won't run into this again and have 
> a good reason for it?
> 
> Thoughts?

There are always limits. Why should this be any different?

I would guess that, like most other memory allocation in Java, you can
probably increase the stack size in jvm.config.

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!


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293168
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cflogout problem

2007-11-12 Thread Richard White
Hi 

Would someone be able to provide me with a simple example of how the cflogin 
works in the application.cfc 

i used the example in the coldfusion livedocs but encountering this problem so 
would like to double check it to see what is missing

thanks very much

Richard 

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293167
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Adding Properties to an Object at Runtime

2007-11-12 Thread Jeff Chastain
The point is, this application is going to be used in different scenarios where 
the concept of a user won't always be the same.  In one situation, employeeId 
might be a perfectly reasonable property for a user, while in another scenario, 
it would have no meaning at all.  Part of the admin user interface allows the 
administrator to define new properties for objects - a user, a product, etc - 
that pertain to their specific usage scenario.

The dynaBean concept looks interesting, but it still appears to boil down to a 
internal collection of properties with a get and set method that take the name 
of a property and return its value.  There may not be another way to do this, I 
just thought I would ask and see.

Thanks for the info.
-- Jeff


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

~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293163
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: cflogout problem

2007-11-12 Thread Dave Watts
> I have also just noticed that when the session times out, the 
> user is directed back to the login page but when i attempt to 
> log back in it doesn't enter the cflogin tag, again it only 
> does if i click the logout button

Do you have CFLOGIN associated with your session, or is it using a separate
cookie (the default)?

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!


~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293166
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Adding Properties to an Object at Runtime

2007-11-12 Thread Brian Kotek
You can also just attach additional methods to the CFC at runtime. So if you
need a new getter and setter method, you can define that function and attach
it to the CFC, and that CFC will now have those methods.

On Nov 12, 2007 4:35 PM, Rich <[EMAIL PROTECTED]> wrote:

> Jeff,
> Have a look at the apache commons BeanUtils for inspiration
> (http://commons.apache.org/beanutils/commons-beanutils-1.7.0/docs/api/).
>  I
> would suggest looking at the DynaBean, DynaClass, and MutableDynaClass
> interfaces.
>
> HTH,
> Rich Kroll
>
>
> 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293164
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


find and replace in a string the size of texas

2007-11-12 Thread Brad Wood
Just thought I would throw this out there as a tribute to CF's
awesomeness.

 

I had a large HTML file the other day (40 megs) which was the output of
a 10 hour job.  I didn't want to run the job again, but wanted to go
through and find and replace several repetitive parts of the HTML to
decrease its size so it would load in a browser more quickly.  I messed
with that stupid file ALL DAY long in Home site, Metapad, Microsoft Word
and every other text editor with a find-and-replace function I had
handy.  Each of them would max out my computer's CPU (2.4 Gig Intel) for
over an hour while the program froze trying to execute the replace until
I just killed the process.  Finally, after getting fed up near the end
of the day, I wrote some insanely simple lines of CF code to cffile read
the file in, replacenocase() the text, and cffile write the file back
out.  

 

It ran in 11 seconds.

 

I obviously should have just done that to begin with.

 

~Brad



~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293159
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Mocking a DAO for testing

2007-11-12 Thread Jeff Chastain
I can see from your example how to do this if I was hard coding things.  The 
problem I am having is with using ColdSpring to handle the injection.  The test 
I am writing is for the service object.  The service object could either call 
ColdSpring to get the DAO it needs or the DAO could be injected ... I am 
running into confusion issues either way.

If the service object calls ColdSpring to get the DAO object, then the only 
place I can see for the code to tell the mock object what to return is in the 
service object itself which is no good.

If the DAO object is injected into the service object via ColdSpring, it is 
still a case that I don't have a handle on the mock object in the unit test to 
define its methods before it gets inserted into the service object.

The only way I can see around this is to create the DAO object in the unit 
test, write the code to handle its functionality, and then manually pass it to 
the service object.  While this could work, the dependencies are now being 
managed in the unit test instead of within ColdSpring and I have to inject the 
DAO into the service object rather than having the service object utilize 
ColdSpring to get the DAO.

Does that make any more sense?

-- Jeff

>Hi Jeff. Yes, you have to tell the mock object what you're expecting it to
>return, so that the object being tested (your service in this case)
>interacts with the mock the same way it would interact with the real object.
>You'd do this in your unit test methods. So in your case, you'd mock a
>business object, then mock the DAO, and finally tell the DAO that when the
>service calls the method on it, it returns the business object. The whole
>point is that the only "real" object you're testing at a time is the object
>you actually want to test. Everything else is fake. Does that make sense or
>am I misreading your question?
>
>On Nov 12, 2007 4:16 PM, Jeff Chastain <[EMAIL PROTECTED]> wrote:
>
>> 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293160
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Adding Properties to an Object at Runtime

2007-11-12 Thread Brian Kotek
Yes I don't think I'm following what you're trying to do. If employeeID is a
property of the User object, why wouldn't it already be there from the
start? I'm not clear on what the "end user of the application" has to do
with it.

On Nov 12, 2007 2:01 PM, Jeff Chastain <[EMAIL PROTECTED]> wrote:

> Brian -
>
> I follow what you are saying with composition (the decorator pattern
> sorta), the problem is, I don't know what these extra properties are before
> run time in order to create a new object to extend the base object.  This is
> not a good example, but assume I have a user object.  The end user of the
> application can then say in his/her case they want to track the users
> employeeID, so they add a new property to user called employeeID.  So, the
> structure with get/set functions is about the only way I can see to do this,
> it just does not seem quite right.
>
> Thanks for the help.
> -- Jeff
>
>
> >If you want to add/change data or behavior at runtime, you really have
> two
> >options. One is to use what you're describing, which is really based on
> Duck
> >Typing. CF is a dynamic language and as a result you can add methods to
> >objects at runtime. However, you're right, this does make the API more
> >difficult to understand because the object has no definite API, and you
> are
> >relying to client code to "know" that a given object has certain
> properties
> >or methods if you are adding or removing them dynamically at runtime.
> >
> >The other option is to use Composition. This is how most strongly-typed
> >languages change behavior at runtime. The API to the object remains
> fixed,
> >but you are free to swap out different objects in the composition
> >relationship to provide different behavior. An example might be
> encryption:
> >say you have an object that needs to perform encryption on a string, but
> you
> >want to be able to vary the actual encryption implementation. You can
> >compose different encryption objects into the target object, and the
> object
> >just calls encrypt() on the composed object. Depending on what encryption
> >object you have composed into the object, the actual encryption
> >implementation will change.
> >
> >Hopefully that makes sense.
> >
> >Brian
> >
> >
> >On Nov 12, 2007 8:55 AM, Jeff Chastain <[EMAIL PROTECTED]> wrote:
> >
> >>
>
> 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293161
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


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

2007-11-12 Thread Jake Pilgrim
I recently gave a presentation on this at my local CFUG. Here are my 
presentation files:

http://www.colderfusion.com/presentations.cfm -- look at Sept 2007

It's a real nice breakdown of the various techniques used in CF OOP 
programming. It's not a definitive CF OOP resource, but it should at least get 
you started down the right track. It starts with a simple CFC which many of us 
have seen before and it morphs this CFC into something truly object-oriented 
and reusable over a series of 5 steps. It should be much more understandable 
than the Transfer documentation. :)

Jake Pilgrim

> Hi all,
> 
> I am looking for some good tutorials, or example apps (open source 
> projects) on using Object Oriented Programming. I have read several 
> good ones, and I am starting to grasp the concept.
> 
> But the tutorials I read (cfoop.org among others) only discussed a 
> object that has no connection to other objects. What I am looking for 
> is a good example on using objects that holds data across several db 
> tables. For instance, I have a company table that holds a 
> companytypeID. I have a table companytype, with an ID and a 
> description. How can I create an object that shows not only the 
> companytypeID but holds another object with the companytype data?
> 
> And how does it work when I want to assing multiple contacts to a 
> company. How do I add this to my company object?
> 
> Anybody know where I can find sample code or good tutorials? Any help 
> would be greatly appreciated.
> 
> Kind regards,
> 
> Erik-Jan Jaquet
> Toomba 


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293162
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Having problem with grouping in query while selecting text fields

2007-11-12 Thread Brian McCairn
Given a table like this

1,10,John,note1
2,10,Jack,note2
3,10,Jean,note3
4,20,David,note4
5,20,Duncan,note5
6,30,Sean,note6

what output would you hope to get from you SQL? 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293158
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Mocking a DAO for testing

2007-11-12 Thread Brian Kotek
Hi Jeff. Yes, you have to tell the mock object what you're expecting it to
return, so that the object being tested (your service in this case)
interacts with the mock the same way it would interact with the real object.
You'd do this in your unit test methods. So in your case, you'd mock a
business object, then mock the DAO, and finally tell the DAO that when the
service calls the method on it, it returns the business object. The whole
point is that the only "real" object you're testing at a time is the object
you actually want to test. Everything else is fake. Does that make sense or
am I misreading your question?

On Nov 12, 2007 4:16 PM, Jeff Chastain <[EMAIL PROTECTED]> wrote:

> I have been playing with Brian Kotek's ColdMock factory
> (http://coldmock.riaforge.com) in doing some unit testing for an app I am
> working on.  In this case, I have a service object that needs to retrieve
> a
> record from the database via  a DAO.  I only want to test the service
> object
> and not the DAO / database, so I am trying to use ColdMock to create a
> mock
> DAO object that just returns a business object with some hard coded data.
>
>
>
> The problem is, when my service goes to ColdSpring and requests the DAO,
> ColdSpring returns the mocked up DAO.  However, that mocked up DAO does
> not
> contain any test data - in other words, if I call a function on that DAO,
> it
> throws an error.  On Brian's site, he has code showing how to tell the
> mock
> object what to return when a function is called, but I can't see how to
> work
> that extra bit of code into the ColdSpring scenario.  When my service
> calls
> ColdSpring to create the mock DAO, I would have to code in the extra
> functionality at that point which is no good considering the service is a
> real production object and should not know anything about a mock object.
>
>
>
> Am I missing something here with regards to how mock objects work or
> should
> function?
>
>
>
> Thanks
>
> -- Jeff
>
>
>
> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293156
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Trouble Using Exchange Tags

2007-11-12 Thread Brian Case
I am trying to test out the new cfexchange tags in Colldfusion 8 so that I can 
integrate in with our intranet at some point but am having some difficulty.

I am just testing by using the tag:



I keep getting the error, Unable to connect to the Exchange server using 
HTTP/HTTPS protocol. 
HTTP response code : 302 

Here is what I have currently checked.

1) I can ping the exchange server from the server that is running Colfusion 8
2) The Exchange server has "allow" for MS Exchange Server in the "Web service 
Extension" of IIS
3) Outlook Web Access is working and is enabled for my user account
4) Rechecked the ip address of the Exchange Server 
5) tried username/passsword combo that I use for Exchange and OWA and even 
tried appending [EMAIL PROTECTED]
6) I have also tried using protocol="https" and used the keytool option to 
install the certificate to the Coldfusion server. I get the message 
"SSLHandshakeException when connecting to the Exchange server at 192.168.0.20 
using HTTPS protocol. 
The SSL certificate installed on the Exchange server is not found on the 
ColdFusion server. Ensure that the required certificates are installed in the 
certificate store of the JVM".



Anyone have any ideas to test further

Thanks,

Brian


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293157
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Adding Properties to an Object at Runtime

2007-11-12 Thread Rich
Jeff,
Have a look at the apache commons BeanUtils for inspiration
(http://commons.apache.org/beanutils/commons-beanutils-1.7.0/docs/api/).  I
would suggest looking at the DynaBean, DynaClass, and MutableDynaClass
interfaces.

HTH,
Rich Kroll


~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293155
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Mocking a DAO for testing

2007-11-12 Thread Jeff Chastain
I have been playing with Brian Kotek's ColdMock factory
(http://coldmock.riaforge.com) in doing some unit testing for an app I am
working on.  In this case, I have a service object that needs to retrieve a
record from the database via  a DAO.  I only want to test the service object
and not the DAO / database, so I am trying to use ColdMock to create a mock
DAO object that just returns a business object with some hard coded data.  

 

The problem is, when my service goes to ColdSpring and requests the DAO,
ColdSpring returns the mocked up DAO.  However, that mocked up DAO does not
contain any test data - in other words, if I call a function on that DAO, it
throws an error.  On Brian's site, he has code showing how to tell the mock
object what to return when a function is called, but I can't see how to work
that extra bit of code into the ColdSpring scenario.  When my service calls
ColdSpring to create the mock DAO, I would have to code in the extra
functionality at that point which is no good considering the service is a
real production object and should not know anything about a mock object.

 

Am I missing something here with regards to how mock objects work or should
function?

 

Thanks

-- Jeff



~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293154
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cflogout problem

2007-11-12 Thread Richard White
I have also just noticed that when the session times out, the user is directed 
back to the login page but when i attempt to log back in it doesn't enter the 
cflogin tag, again it only does if i click the logout button

this is very strange, i would appreciate any advice as i cant work out what 
this is

thanks very much 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293151
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Distance Calculation

2007-11-12 Thread Brian Polackoff
Has anyone ever seen or heard of a, free preferably but will work with
anything, custom tag, or web service that can take two addresses and
determine the distance between them. The distance can either be "as the crow
files" or actual driving route. 

 

I know there are zip code calculators out there but I need more accuracy than
that.

 

Any suggestions.


Thanks,
Brian R. Polackoff



~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293153
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: sms

2007-11-12 Thread Ryan Stille
Chad Gray wrote:
> Hello,
>
> I would like to make an application that would allow one of our sales reps to 
> use their cell phone to create a new login/password for a CF application.
>
> How does the cell phone send the data to the CF Event Gateway for SMS?
>
> This must be some kind of service from the phone company that connects to the 
> CF Server?
>   

I've heard getting access to an SMS gateway is very expensive.  Don't 
most phones/providers let you send an SMS to an email address?  I'm not 
sure how you'd authenticate the sender though.  Maybe they'd have to 
place a username/password or key in the message.  Perhaps having an 
obscure email address + a special keyword in the message would be enough 
security, depending on what you are doing.

-Ryan


~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293152
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cflogout problem

2007-11-12 Thread Richard White
hi gary thanks for the reply. i tried what you said but for some strange reason 
it is dumping all the session variables when the browser closes but then when i 
restart the browser and start again, all the session variables are gone but it 
is not entering the  tag indicating that it is not logging the user 
out.

i have enabled the j2ee session variables in the administrator but it is 
strange that it is dumping the session variables but doesnt seem to be logging 
the user out.

the only way i can get it to enter the  tag is to physically click the 
logout button then it is fine. i have even tried to put the  tag 
inside the onsessionend event and this problem still occurs

thanks for your help 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293150
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Having problem with grouping in query while selecting text fields

2007-11-12 Thread Aaron Rouse
I do not use MSSQL much now days but ran into this, this morning and what I
did is just converted it to a varchar because only needed the first 100
characters anyway.  Was something like this:

SELECT PRIMARYKEY, ACCOUNTID, CONVERT(VARCHAR(100), CLIENTNAME)  CLIENTNAME,
CONVERT(VARCHAR(100), NOTES) NOTES
FROM   TABLE
GROUP BY PRIMARYKEY, ACCOUNTID,  CONVERT(VARCHAR(100), CLIENTNAME)
CLIENTNAME, CONVERT(VARCHAR(100), NOTES) NOTES

I saw some other ways of doing it vie my searches online but that way just
seemed to meet my needs the best.

On Nov 12, 2007 1:41 PM, Daniel Roberts <[EMAIL PROTECTED]> wrote:

> What I'm doing is grouping on a field in a table and selecting a few other
> fields at the same time. This requires either grouping on the other fields
> selected or using an aggregate function. However a couple of the fields are
> of type "text" which SQL Server does not want to run an aggregate or group
> on.
>
> This works in Access with the First/Last aggregate functions but I haven't
> found a way to accomplish this in SQL Erver. For example, in Access the
> following query works. The Notes field in the example is of type "text":
>
>  SELECT PrimaryKey, AccountID, First(ClientName), First(Notes)
>  FROM Table
>  GROUP BY PrimaryKey, AccountID
>
> The only ideas I have are to run multiple queries to build up the query
> object, or select all and then delete duplicate records after the face. I
> don't like either of these options unless absolutely necessary. It just
> feels like I'm overlooking something that would make this possible.
>
> Any ideas? Thanks
>
> 

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293148
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


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

2007-11-12 Thread Judith Dinowitz
>In this case, Judith is pointing out that this issue of FAQU covers OOP AND
>frameworks. 

Actually, the basics of OO is a whole section in the issue. Think of this issue 
as OO 101 for ColdFusion developers. The advanced CF developer will get 
something out of this, but the person just starting out in OO will find the 
most benefit:

Object-Oriented Programming: Why Bother?
by Brian Kotek
The Object-Oriented Lexicon
by Hal Helms
Design Pattern Safari
by Peter J. Farrell
>From User-Defined Functions to ColdFusion Components
by Michael Dinowitz
Base Classes: Better Than You Knew!
by Peter Bell

That's our OO section.

And this is meant, as all of our issues are, as a teaching issue. That's why 
when you asked about tutorials in OO, it immediately came to mind.

Judith


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293145
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Having problem with grouping in query while selecting text fields

2007-11-12 Thread Daniel Roberts
I thought I found a solution for a moment there. I created a query that uses 
"SELECT TOP 1" in subqueries for each "text" column I'm selecting. However SQL 
Server returns the error "The text, ntext, and image data types are invalid in 
this subquery or aggregate".


> What I'm doing is grouping on a field in a table and selecting a few 
> other fields at the same time. This requires either grouping on the 
> other fields selected or using an aggregate function. However a couple 
> of the fields are of type "text" which SQL Server does not want to run 
> an aggregate or group on.
> 
> This works in Access with the First/Last aggregate functions but I 
> haven't found a way to accomplish this in SQL Erver. For example, in 
> Access the following query works. The Notes field in the example is of 
> type "text": 
> 
  
> SELECT PrimaryKey, AccountID, First(ClientName), First(Notes)
  
> FROM Table
  
> GROUP BY PrimaryKey, AccountID
> 
> The only ideas I have are to run multiple queries to build up the 
> query object, or select all and then delete duplicate records after 
> the face. I don't like either of these options unless absolutely 
> necessary. It just feels like I'm overlooking something that would 
> make this possible.
> 
> Any ideas? Thanks 


~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293146
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: dumpy goodness

2007-11-12 Thread Brad Wood
> My guess would be that the SQL code behind the error is quite large 

That much did turn out to be true.


> pushes WDDX beyond it's buffer limit. In the old days you couldn't
build a
> packet bigger than 64k (or something like that). 


That sort of makes sense (but not really-- I would have expected  more
from CF than that).  That wouldn't explain why dumping it gave me a 500
NULL unless it was SUUPER huge.  I've dumped some meaty result sets
before without trouble.  I guess the different was how far it was
nested-- several hundred levels deep.  The individual structs weren't
too big probably-- just deep.


> Out of curiosity - what is the purpose of serializing the cfcatch
object?

Like I said-- for error logging.  We have a pretty cool system of CFC's
for logging errors as well as other processes in our system.  We log
Java errors (from our Java team's apps), CF errors, and JS errors (via
JavaScript try catches that call an error logging web service).  We
capture who did it, when they did it, what server they were on, what
version of browser they were using, the full cfcatch object (or
JavaScript error object), the form and url scope and a couple of other
things.  A scheduled job E-mails out all of our application's errors
every 15 minutes to a group of people to monitor them and put in bug
fixes if necessary.  That way we can report on who is getting errors,
what they are, and when.  
Since cfcatch is a complex object, it needs to be serialized for storage
in the database.

~Brad

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293149
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Having problem with grouping in query while selecting text fields

2007-11-12 Thread Daniel Roberts
Here is the query that didn't work for my example table when using a subquery.


SELECT ID, AccountID, ClientName, 
(SELECT TOP 1 
t2.Notes
FROM TestTable t2
WHERE t2.AccountID = AccountID
AND t2.ID = ID
) AS Notes
FROM TestTable
GROUP BY AccountID, ID, ClientName 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293147
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: dumpy goodness

2007-11-12 Thread Mark A Kruger
My guess would be that the SQL code behind the error is quite large and
pushes WDDX beyond it's buffer limit. In the old days you couldn't build a
packet bigger than 64k (or something like that). I'm not sure if that is
still a limitation but I suspect it is. Try dumping each of the individual
cfcatch keys instead (cfcatch.type, cfcatch.message, cfcatch.detail etc).
Out of curiosity - what is the purpose of serializing the cfcatch object?

-Mark

-Original Message-
From: Brad Wood [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 12, 2007 11:45 AM
To: CF-Talk
Subject: dumpy goodness

Something a little weird this morning.  We use Fusebox and have a site-wide
error handler which takes the cfcatch object, wddx's it and logs it to our
database.  This usually only takes a second or two to process.

 

This morning SeeFusion E-mailed me about some long running requests.  I
looked into it and a user kept refreshing a page which was calling an
erroring stored proc-- "string or binary data would be truncated".  No
biggie- we get that error often if some lazy SQL programmer doesn't check
the column sizes of his temp tables.  

 

This was the weird thing though-the pages would run for up to half an hour
processing this line of code:

 



 

And when I tried to E-mail myself the cfcatch object by dropping a cfdump
into a cfmail, I would immediately get a "500 NULL" reply.

I've only gotten those when trying to serialize incredibly huge structures.
My guess is, the cfcatch object is hideously huge-but how?
Why?"  Since when?

 

Since I can't look at it, I don't know what's in it.  I can cfloop over it
as a collection and output the key names, but I think I have some sort of
endless nesting which would take a recursive function to get at and would
probably error just like the cfdump did.  Funny thing is-memory usage isn't
high at all.  Not even remotely.

 

A quick look at my server.log file showed this error:

 

java.lang.StackOverflowError

 

Ok, go figure.  A glance at the SeeFusion stack trace showed this:

 

The top of the trace said this:

 

"jrpp-94" runnable

- locked <283> (a sun.misc.Launcher$ExtClassLoader)

- locked <284> (a sun.misc.Launcher$AppClassLoader)

- locked <272> (a java.lang.Class)

at java.lang.ClassLoader.loadClass(ClassLoader.java:286)

at java.lang.ClassLoader.loadClass(ClassLoader.java:282)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at java.beans.Introspector.instantiate(Introspector.java:1466)

at
java.beans.Introspector.findExplicitBeanInfo(Introspector.java:406)

at java.beans.Introspector.(Introspector.java:355)

at java.beans.Introspector.getBeanInfo(Introspector.java:220)

at java.beans.Introspector.getBeanInfo(Introspector.java:206)

at
coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:48)

at
coldfusion.wddx.WddxOutputStream.writeObject(WddxOutputStream.java:310)

at
coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:40)

 

and was followed by *800* lines this:

 

at
coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:120)

at
coldfusion.wddx.WddxOutputStream.writeObject(WddxOutputStream.java:310)

 

Any ideas on how I can determine what is causing an error detail structure
so large it can't be serialized, or dumped without a stack overflow?  Is
that a bug in CF?

How come this has never happened before that I have ever seen until today?
I can reproduce it on more than one server.

 

~Brad





~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293142
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Having problem with grouping in query while selecting text fields

2007-11-12 Thread Daniel Roberts
What I'm doing is grouping on a field in a table and selecting a few other 
fields at the same time. This requires either grouping on the other fields 
selected or using an aggregate function. However a couple of the fields are of 
type "text" which SQL Server does not want to run an aggregate or group on.

This works in Access with the First/Last aggregate functions but I haven't 
found a way to accomplish this in SQL Erver. For example, in Access the 
following query works. The Notes field in the example is of type "text": 

  SELECT PrimaryKey, AccountID, First(ClientName), First(Notes)
  FROM Table
  GROUP BY PrimaryKey, AccountID

The only ideas I have are to run multiple queries to build up the query object, 
or select all and then delete duplicate records after the face. I don't like 
either of these options unless absolutely necessary. It just feels like I'm 
overlooking something that would make this possible.

Any ideas? Thanks 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293144
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Adding Properties to an Object at Runtime

2007-11-12 Thread Jeff Chastain
Brian -

I follow what you are saying with composition (the decorator pattern sorta), 
the problem is, I don't know what these extra properties are before run time in 
order to create a new object to extend the base object.  This is not a good 
example, but assume I have a user object.  The end user of the application can 
then say in his/her case they want to track the users employeeID, so they add a 
new property to user called employeeID.  So, the structure with get/set 
functions is about the only way I can see to do this, it just does not seem 
quite right.

Thanks for the help.
-- Jeff


>If you want to add/change data or behavior at runtime, you really have two
>options. One is to use what you're describing, which is really based on Duck
>Typing. CF is a dynamic language and as a result you can add methods to
>objects at runtime. However, you're right, this does make the API more
>difficult to understand because the object has no definite API, and you are
>relying to client code to "know" that a given object has certain properties
>or methods if you are adding or removing them dynamically at runtime.
>
>The other option is to use Composition. This is how most strongly-typed
>languages change behavior at runtime. The API to the object remains fixed,
>but you are free to swap out different objects in the composition
>relationship to provide different behavior. An example might be encryption:
>say you have an object that needs to perform encryption on a string, but you
>want to be able to vary the actual encryption implementation. You can
>compose different encryption objects into the target object, and the object
>just calls encrypt() on the composed object. Depending on what encryption
>object you have composed into the object, the actual encryption
>implementation will change.
>
>Hopefully that makes sense.
>
>Brian
>
>
>On Nov 12, 2007 8:55 AM, Jeff Chastain <[EMAIL PROTECTED]> wrote:
>
>> 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293141
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: CF Dev Edition store local file on Network drive - help

2007-11-12 Thread [EMAIL PROTECTED] [EMAIL PROTECTED]
Neither.  This is the built in Web server that comes with the CF developer's 
edition.  We have a dev server, but we won't have access to the Web server's
config.  Any ideas on what we can do?  I really want to start using this shared
drive and offload the files from the site off my laptop.

Thanks

>Are you doing this in IIS, Apache or what?  Our webroots are sometimes on
>other PCs and it works just fine in Apache. 
>
>Russ
>
>
>
>> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293143
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Blue Dragon error

2007-11-12 Thread Jordan Michaels
Hi Billy,

What ports does Altiris Deployment Console use? IE: What's listening on
port 8080 and port ?

Also, you might try posting this to the BD interest list.

Hope this helps!

Warm regards,
Jordan Michaels
Vivio Technologies
http://www.viviotech.net/
BlueDragon Alliance Member
[EMAIL PROTECTED]


Billy Cox wrote:
> Until recently, Blue Dragon (free server & SQL 2005 Express) was working
> fine, but now I get the following error when I attempt to open the BD
> Administrator:
>  
> "System.ArgumentNullException: No message was deserialized prior to calling
> the DispatchChannelSink. Parameter name: requestMsg at
> System.Runtime.Remoting.Channels.DispatchChannelSink.ProcessMessage(IServerC
> hannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
> requestHeaders, Stream requestStream, IMessage& responseMsg,
> ITransportHeaders& responseHeaders, Stream& responseStream) at
> System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IS
> erverChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
> requestHeaders, Stream requestStream, IMessage& responseMsg,
> ITransportHeaders& responseHeaders, Stream& responseStream) at
> System.Runtime.Remoting.Channels.Http.HttpServerTransportSink.ServiceRequest
> (Object state) at
> System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow() "
>  
> I have recently installed the Altiris Deployment Console to manage thin
> clients on the network from this server, so it's probably related. How can I
> get these apps to play nice?
>  
>  
> Thanks in advance,
>  
> Billy Cox
> Old World Spices
> [EMAIL PROTECTED]
>  
>  
>  
> 
> 
> 
> 
> 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293140
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: sms

2007-11-12 Thread Josh Knopp
A few months ago I had a similar need in a side project.  I ended up going 
another route.  I only had a few users, and as it turned out they each had a 
web-enabled phones.  So I just built a small CF interface (some text and a 
couple of form fields) and had the users bookmark the address in their phones.  
Not sure if that will help in your case, but if it's an adequate solution it 
might save a headache.

Happy coding,
Josh Knopp
https://www.ourams.com/


> Hello,
> 
> I would like to make an application that would allow one of our sales 
> reps to use their cell phone to create a new login/password for a CF 
> application.
> 
> How does the cell phone send the data to the CF Event Gateway for 
> SMS?
> 
> This must be some kind of service from the phone company that connects 
> to the CF Server?


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293139
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Blue Dragon error

2007-11-12 Thread Billy Cox
Until recently, Blue Dragon (free server & SQL 2005 Express) was working
fine, but now I get the following error when I attempt to open the BD
Administrator:
 
"System.ArgumentNullException: No message was deserialized prior to calling
the DispatchChannelSink. Parameter name: requestMsg at
System.Runtime.Remoting.Channels.DispatchChannelSink.ProcessMessage(IServerC
hannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, Stream& responseStream) at
System.Runtime.Remoting.Channels.BinaryServerFormatterSink.ProcessMessage(IS
erverChannelSinkStack sinkStack, IMessage requestMsg, ITransportHeaders
requestHeaders, Stream requestStream, IMessage& responseMsg,
ITransportHeaders& responseHeaders, Stream& responseStream) at
System.Runtime.Remoting.Channels.Http.HttpServerTransportSink.ServiceRequest
(Object state) at
System.Runtime.Remoting.Channels.SocketHandler.ProcessRequestNow() "
 
I have recently installed the Altiris Deployment Console to manage thin
clients on the network from this server, so it's probably related. How can I
get these apps to play nice?
 
 
Thanks in advance,
 
Billy Cox
Old World Spices
[EMAIL PROTECTED]
 
 
 




~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293134
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: dumpy goodness

2007-11-12 Thread Brian Kotek
You probably have some kind of nested circular reference in what is being
dumped, which essentially will generate an infinite loop.

On Nov 12, 2007 12:45 PM, Brad Wood <[EMAIL PROTECTED]> wrote:

> Something a little weird this morning.  We use Fusebox and have a
> site-wide error handler which takes the cfcatch object, wddx's it and
> logs it to our database.  This usually only takes a second or two to
> process.
>
>
>
> This morning SeeFusion E-mailed me about some long running requests.  I
> looked into it and a user kept refreshing a page which was calling an
> erroring stored proc-- "string or binary data would be truncated".  No
> biggie- we get that error often if some lazy SQL programmer doesn't
> check the column sizes of his temp tables.
>
>
>
> This was the weird thing though-the pages would run for up to half an
> hour processing this line of code:
>
>
>
> 
>
>
>
> And when I tried to E-mail myself the cfcatch object by dropping a
> cfdump into a cfmail, I would immediately get a "500 NULL" reply.
>
> I've only gotten those when trying to serialize incredibly huge
> structures.  My guess is, the cfcatch object is hideously huge-but how?
> Why?"  Since when?
>
>
>
> Since I can't look at it, I don't know what's in it.  I can cfloop over
> it as a collection and output the key names, but I think I have some
> sort of endless nesting which would take a recursive function to get at
> and would probably error just like the cfdump did.  Funny thing
> is-memory usage isn't high at all.  Not even remotely.
>
>
>
> A quick look at my server.log file showed this error:
>
>
>
> java.lang.StackOverflowError
>
>
>
> Ok, go figure.  A glance at the SeeFusion stack trace showed this:
>
>
>
> The top of the trace said this:
>
>
>
> "jrpp-94" runnable
>
>- locked <283> (a sun.misc.Launcher$ExtClassLoader)
>
>- locked <284> (a sun.misc.Launcher$AppClassLoader)
>
>- locked <272> (a java.lang.Class)
>
>at java.lang.ClassLoader.loadClass(ClassLoader.java:286)
>
>at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
>
>at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
>
>at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
>
>at java.beans.Introspector.instantiate(Introspector.java:1466)
>
>at
> java.beans.Introspector.findExplicitBeanInfo(Introspector.java:406)
>
>at java.beans.Introspector.(Introspector.java:355)
>
>at java.beans.Introspector.getBeanInfo(Introspector.java:220)
>
>at java.beans.Introspector.getBeanInfo(Introspector.java:206)
>
>at
> coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:48)
>
>at
> coldfusion.wddx.WddxOutputStream.writeObject(WddxOutputStream.java:310)
>
>at
> coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:40)
>
>
>
> and was followed by *800* lines this:
>
>
>
>at
> coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:120)
>
>at
> coldfusion.wddx.WddxOutputStream.writeObject(WddxOutputStream.java:310)
>
>
>
> Any ideas on how I can determine what is causing an error detail
> structure so large it can't be serialized, or dumped without a stack
> overflow?  Is that a bug in CF?
>
> How come this has never happened before that I have ever seen until
> today?  I can reproduce it on more than one server.
>
>
>
> ~Brad
>
>
>
> 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293137
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


List Problems

2007-11-12 Thread Robert Harrison
I posted two emails to the list this morning. They never showed.

Are there list problems today?


Robert B. Harrison
Director of Interactive services
Austin & Williams
125 Kennedy Drive, Suite 100 Hauppauge NY 11788
T : 631.231.6600 Ext. 119 
F : 631.434.7022
www.austin-williams.com

Great advertising can't be either/or... It must be &.




~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293138
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


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

2007-11-12 Thread Brian Kotek
In this case, Judith is pointing out that this issue of FAQU covers OOP AND
frameworks. However, I agree with you that if you don't understand OOP,
you're probably better of getting a grasp of the concepts first before you
also try to tackle one of the OOP-based frameworks. Your best bet is
reading, and I recommend Head First Object Oriented Analysis and Design, The
Object Oriented Thought Process, and Design Patterns Explained for a good
start.


On Nov 12, 2007 11:50 AM, Andy Matthews <[EMAIL PROTECTED]> wrote:

> Why does everyone keep throwing frameworks at Erik? Wouldn't it be better
> to
> learn the core concepts behind OOP rather than jumping into a framework
> which does it for you?
>
> -Original Message-
> From: Judith Dinowitz [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 12, 2007 10:28 AM
> To: CF-Talk
> Subject: Re: I am looking for some good tutorials or examples for learning
> OOP
>
> >I'm reading a book called Object Oriented Thought Process. It's very
> >good, and fairly easy to understand. It's not specific to ColdFusion,
> >but more general concepts.
>
> Erik,
>
> Have you looked at the Fusion Authority Quarterly Update Volume 1 Issue 2
> (OOP-Frameworks Issue)? That has a lot of great tutorials and examples,
> and
> covers the fundamentals of object-oriented programming in ColdFusion. You
> can see what's in it at:
>
> https://secure.houseoffusion.com/Fall2006.cfm
>
> and you can order it as a single issue at:
>
> https://secure.houseoffusion.com/singleissues.cfm
>
> You can also subscribe to the Fusion Authority Quarterly Update at:
>
> https://secure.houseoffusion.com/subscriptions.cfm
>
> Good luck in your quest! I hope that helps,
>
> Judith Dinowitz
> Editor-in-Chief: Fusion Authority and Fusion Authority Quarterly Update
> http://www.fusionauthority.com http://www.fusionauthority.com/quarterly/
>
>
>
> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293129
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Download Management with CF

2007-11-12 Thread Josh Knopp
I am serving up large files via:





The question is, how can I determine when the client finishes the download? 
There is a process that needs to run, but only after a user downloads a 
complete file.

I've seen some discussions on this topic and the consensus seems to be that CF 
has no knowledge of a "download complete" event. Has anyone found a decent 
solution for this problem? If it requires a separate ActiveX control or other 
plugin, does anyone know of a good one?

Thanks in advance!
Josh Knopp
https://www.ourams.com/


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293136
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: dumpy goodness

2007-11-12 Thread Brad Wood
Update on this.  I ran the proc which was erroring in query analyzer and
found there was not just one "string or binary data would be truncated"
error-- There was several HUNDRED nested errors being returned.  Looks
like some bad data on this order (in large amounts) and lack of  SQL
try/catches (proc was originally developed in SQL Server 2000) was
causing a loop to create that error over and over again.

So, I guess this clears up why my error object was so big.  I'm just
left with the question of-- Why couldn't CF handle it?  Is there a limit
to how deep structures can be nested?  I'm still inclined to think that
the "java.lang.StackOverflowError" is more of a bug.  Yes, yes-- had
better SQL error handling been in place, my errors wouldn't have been so
large-- but who's to say I won't run into this again and have a good
reason for it?

Thoughts?

CFMX 7.0.2 Standard Linux.

~Brad

-Original Message-
From: Brad Wood [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 12, 2007 11:45 AM
To: CF-Talk
Subject: dumpy goodness

Something a little weird this morning.  We use Fusebox and have a
site-wide error handler which takes the cfcatch object, wddx's it and
logs it to our database.  This usually only takes a second or two to
process.

 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293135
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


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

2007-11-12 Thread Charlie Griefer
i'll second Andy's recommendation of the Object Oriented Thought
Process.  just about every CF'er I know who has moved towards OO has
recommended the book as well.  even tho the examples are in Java, it's
largely language-agnostic and really just focuses on the core concepts
of OO.

On Nov 12, 2007 9:16 AM, Erik-Jan Jaquet <[EMAIL PROTECTED]> wrote:
> I was indeed looking at the principles of OOP. And the very basics, I think
> I have that covered, but a little more in-depth. The Lite Blog app sounds
> interesting, I will give that a go. And as for frameworks, as long as it is
> Fusebox, I don't mind! Fusebox rocks. But that is a whole other discussion.
> Someone once said to me, it doesn't matter what framework you use, just pick
> one and stick with it. I beleive that to be true. And for me, for organizing
> my code, Fusebox is the one. As for the ORM adapaters like Reactor and
> Transfer, I will wait until I know a little more about the concept before I
> give those a further look. I think the same goes for Coldspring.
>
> Thanks for all your help!
>
> Erik-Jan
>
> 2007/11/12, Andy Matthews <[EMAIL PROTECTED]>:
>
> >
> > Why does everyone keep throwing frameworks at Erik? Wouldn't it be better
> > to
> > learn the core concepts behind OOP rather than jumping into a framework
> > which does it for you?
> >
> > -Original Message-
> > From: Judith Dinowitz [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 12, 2007 10:28 AM
> > To: CF-Talk
> > Subject: Re: I am looking for some good tutorials or examples for learning
> > OOP
> >
> > >I'm reading a book called Object Oriented Thought Process. It's very
> > >good, and fairly easy to understand. It's not specific to ColdFusion,
> > >but more general concepts.
> >
> > Erik,
> >
> > Have you looked at the Fusion Authority Quarterly Update Volume 1 Issue 2
> > (OOP-Frameworks Issue)? That has a lot of great tutorials and examples,
> > and
> > covers the fundamentals of object-oriented programming in ColdFusion. You
> > can see what's in it at:
> >
> > https://secure.houseoffusion.com/Fall2006.cfm
> >
> > and you can order it as a single issue at:
> >
> > https://secure.houseoffusion.com/singleissues.cfm
> >
> > You can also subscribe to the Fusion Authority Quarterly Update at:
> >
> > https://secure.houseoffusion.com/subscriptions.cfm
> >
> > Good luck in your quest! I hope that helps,
> >
> > Judith Dinowitz
> > Editor-in-Chief: Fusion Authority and Fusion Authority Quarterly Update
> > http://www.fusionauthority.com http://www.fusionauthority.com/quarterly/
> >
> >
> >
> >
>
> 

~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293133
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: sms

2007-11-12 Thread Chad Gray
Thanks Alan, so I need an SMS Gateway provider.

I will google it and see what I can find.

If anyone has recommendations on SMS Gateway Providers they have used in the 
past let me know.  I would say our usage would be very low.  Maybe 100 SMS 
messages a month or so.

Chad

-Original Message-
From: Alan Rother [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 12, 2007 12:22 PM
To: CF-Talk
Subject: Re: sms

Basically, when you setup a CF event gateway to use SMS, you basically
setup an SMS account for CF to "listen" to. That is to say, it acts
just like a cell phone would and it takes an incoming SMS message and
then applies your CF code to the contents of the message. All of the
things CF does to the message are defined by you in a CFC you assign
to that gateway, telling it what to do on certain events.

The pieces you may be missing are access to a an SMS gateway, you will
ether need to setup one up or buy access to one from a commercial
provider.


-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org



~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293131
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Adding Properties to an Object at Runtime

2007-11-12 Thread Brian Kotek
If you want to add/change data or behavior at runtime, you really have two
options. One is to use what you're describing, which is really based on Duck
Typing. CF is a dynamic language and as a result you can add methods to
objects at runtime. However, you're right, this does make the API more
difficult to understand because the object has no definite API, and you are
relying to client code to "know" that a given object has certain properties
or methods if you are adding or removing them dynamically at runtime.

The other option is to use Composition. This is how most strongly-typed
languages change behavior at runtime. The API to the object remains fixed,
but you are free to swap out different objects in the composition
relationship to provide different behavior. An example might be encryption:
say you have an object that needs to perform encryption on a string, but you
want to be able to vary the actual encryption implementation. You can
compose different encryption objects into the target object, and the object
just calls encrypt() on the composed object. Depending on what encryption
object you have composed into the object, the actual encryption
implementation will change.

Hopefully that makes sense.

Brian


On Nov 12, 2007 8:55 AM, Jeff Chastain <[EMAIL PROTECTED]> wrote:

> I have a business case where I need to take a basic business object and
> add
> new properties to it at run time via a series of admin user interfaces.
>  The
> only way I have come up with to do this is to have the business object
> maintain a collection of "properties" that would then have a get / set
> method based upon the property name - like user.getProperty('firstName').
> Something does not seem quite right about this as the business object
> would
> not know what properties it did or did not have, would not be able to
> perform any checks based upon those properties, and it would be up to the
> calling code to know to request the right property.
>
>
>
> I have gone through my book of design patterns, but nothing seems to fit
> here.  Does anybody know of a different / better way to approach this?
>
>
>
> Thanks
>
> -- Jeff
>
>
>
> 

~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293132
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: sms

2007-11-12 Thread Ben Forta
Yes, you need an account with a provider, and ColdFusion essentially logs in
to the network as if it were a phone or a device. See this post for some
links:

http://www.forta.com/blog/index.cfm?mode=entry&entry=A61BC261-3048-80A9-EFAA
F627F9FBAB1E

--- Ben


-Original Message-
From: Chad Gray [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 12, 2007 12:12 PM
To: CF-Talk
Subject: sms

Hello,

I would like to make an application that would allow one of our sales reps
to use their cell phone to create a new login/password for a CF application.

How does the cell phone send the data to the CF Event Gateway for SMS?

This must be some kind of service from the phone company that connects to
the CF Server?




~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293126
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


dumpy goodness

2007-11-12 Thread Brad Wood
Something a little weird this morning.  We use Fusebox and have a
site-wide error handler which takes the cfcatch object, wddx's it and
logs it to our database.  This usually only takes a second or two to
process.

 

This morning SeeFusion E-mailed me about some long running requests.  I
looked into it and a user kept refreshing a page which was calling an
erroring stored proc-- "string or binary data would be truncated".  No
biggie- we get that error often if some lazy SQL programmer doesn't
check the column sizes of his temp tables.  

 

This was the weird thing though-the pages would run for up to half an
hour processing this line of code:

 



 

And when I tried to E-mail myself the cfcatch object by dropping a
cfdump into a cfmail, I would immediately get a "500 NULL" reply.

I've only gotten those when trying to serialize incredibly huge
structures.  My guess is, the cfcatch object is hideously huge-but how?
Why?"  Since when?

 

Since I can't look at it, I don't know what's in it.  I can cfloop over
it as a collection and output the key names, but I think I have some
sort of endless nesting which would take a recursive function to get at
and would probably error just like the cfdump did.  Funny thing
is-memory usage isn't high at all.  Not even remotely.

 

A quick look at my server.log file showed this error:

 

java.lang.StackOverflowError

 

Ok, go figure.  A glance at the SeeFusion stack trace showed this:

 

The top of the trace said this:

 

"jrpp-94" runnable

- locked <283> (a sun.misc.Launcher$ExtClassLoader)

- locked <284> (a sun.misc.Launcher$AppClassLoader)

- locked <272> (a java.lang.Class)

at java.lang.ClassLoader.loadClass(ClassLoader.java:286)

at java.lang.ClassLoader.loadClass(ClassLoader.java:282)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)

at java.lang.ClassLoader.loadClass(ClassLoader.java:235)

at java.beans.Introspector.instantiate(Introspector.java:1466)

at
java.beans.Introspector.findExplicitBeanInfo(Introspector.java:406)

at java.beans.Introspector.(Introspector.java:355)

at java.beans.Introspector.getBeanInfo(Introspector.java:220)

at java.beans.Introspector.getBeanInfo(Introspector.java:206)

at
coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:48)

at
coldfusion.wddx.WddxOutputStream.writeObject(WddxOutputStream.java:310)

at
coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:40)

 

and was followed by *800* lines this:

 

at
coldfusion.wddx.BeanSerializer.writeObject(BeanSerializer.java:120)

at
coldfusion.wddx.WddxOutputStream.writeObject(WddxOutputStream.java:310)

 

Any ideas on how I can determine what is causing an error detail
structure so large it can't be serialized, or dumped without a stack
overflow?  Is that a bug in CF?

How come this has never happened before that I have ever seen until
today?  I can reproduce it on more than one server.

 

~Brad



~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293130
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


CFAJAXPROXY and setForm. Perplexing issue.

2007-11-12 Thread J W
I am heavily using cfajaxproxy proxy for new project.

I have a drop down form that shows and hides different divs for different
DAYS OF THE WEEK. By selecting a Day of the week it brings up a dynamically
named form inside of the showing DIV. They are named MONDAY, TUESDAY, etc...

I want to process ALL "Day of week" named forms with ONE CFC function.
Here is the issue: I use setForm to populate my CFC function with the proper
form variables from my desired form guts.
All my javascript is within a .js file.

The only real solution I CAN SEE is to PULL the javascript function from the
..js file.  Instead I would generate it inline inside the CFM file. I can
then dynamically make up a function for each "Day of Week" named form and
properly populate the cfc function with the right setForm values.

Anyone have any other insight to this?

Thanks


~|
ColdFusion is delivering applications solutions at at top companies 
around the world in government.  Find out how and where now
http://www.adobe.com/cfusion/showcase/index.cfm?event=finder&productID=1522&loc=en_us

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293128
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


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

2007-11-12 Thread Brian Rinaldi
FWIW, I only referenced my Mach-II tutorial for the references which has a
tutorial specifically covering the concepts *without* a framework. Also the
issue Judith references is OOP and Frameworks not just frameworks.

- Brian

On Nov 12, 2007 11:50 AM, Andy Matthews <[EMAIL PROTECTED]> wrote:

> Why does everyone keep throwing frameworks at Erik? Wouldn't it be better
> to
> learn the core concepts behind OOP rather than jumping into a framework
> which does it for you?
>
> -Original Message-
> From: Judith Dinowitz [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 12, 2007 10:28 AM
> To: CF-Talk
> Subject: Re: I am looking for some good tutorials or examples for learning
> OOP
>
> >I'm reading a book called Object Oriented Thought Process. It's very
> >good, and fairly easy to understand. It's not specific to ColdFusion,
> >but more general concepts.
>
> Erik,
>
> Have you looked at the Fusion Authority Quarterly Update Volume 1 Issue 2
> (OOP-Frameworks Issue)? That has a lot of great tutorials and examples,
> and
> covers the fundamentals of object-oriented programming in ColdFusion. You
> can see what's in it at:
>
> https://secure.houseoffusion.com/Fall2006.cfm
>
> and you can order it as a single issue at:
>
> https://secure.houseoffusion.com/singleissues.cfm
>
> You can also subscribe to the Fusion Authority Quarterly Update at:
>
> https://secure.houseoffusion.com/subscriptions.cfm
>
> Good luck in your quest! I hope that helps,
>
> Judith Dinowitz
> Editor-in-Chief: Fusion Authority and Fusion Authority Quarterly Update
> http://www.fusionauthority.com http://www.fusionauthority.com/quarterly/
>


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293127
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Adding Properties to an Object at Runtime

2007-11-12 Thread Josh Nathanson
>I have a business case where I need to take a basic business object and add
> new properties to it at run time via a series of admin user interfaces.

Could you maybe have a single struct as one of the object's properties 
called "additionalProperties" or something like that.  Then add your 
properties/values as keys/values to this struct.  Then when you need to 
figure out what properties have been added you could get the keys from that 
additionalProperties struct, and to get the values you could loop over it as 
a collection.

-- Josh


~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293125
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: sms

2007-11-12 Thread Alan Rother
Basically, when you setup a CF event gateway to use SMS, you basically
setup an SMS account for CF to "listen" to. That is to say, it acts
just like a cell phone would and it takes an incoming SMS message and
then applies your CF code to the contents of the message. All of the
things CF does to the message are defined by you in a CFC you assign
to that gateway, telling it what to do on certain events.

The pieces you may be missing are access to a an SMS gateway, you will
ether need to setup one up or buy access to one from a commercial
provider.


-- 
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
Manager, Phoenix Cold Fusion User Group, AZCFUG.org

~|
Download the latest ColdFusion 8 utilities including Report Builder,
plug-ins for Eclipse and Dreamweaver updates.
http;//www.adobe.com/cfusion/entitlement/index.cfm?e=labs%5adobecf8%5Fbeta

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293124
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


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

2007-11-12 Thread Erik-Jan Jaquet
I was indeed looking at the principles of OOP. And the very basics, I think
I have that covered, but a little more in-depth. The Lite Blog app sounds
interesting, I will give that a go. And as for frameworks, as long as it is
Fusebox, I don't mind! Fusebox rocks. But that is a whole other discussion.
Someone once said to me, it doesn't matter what framework you use, just pick
one and stick with it. I beleive that to be true. And for me, for organizing
my code, Fusebox is the one. As for the ORM adapaters like Reactor and
Transfer, I will wait until I know a little more about the concept before I
give those a further look. I think the same goes for Coldspring.

Thanks for all your help!

Erik-Jan

2007/11/12, Andy Matthews <[EMAIL PROTECTED]>:
>
> Why does everyone keep throwing frameworks at Erik? Wouldn't it be better
> to
> learn the core concepts behind OOP rather than jumping into a framework
> which does it for you?
>
> -Original Message-
> From: Judith Dinowitz [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 12, 2007 10:28 AM
> To: CF-Talk
> Subject: Re: I am looking for some good tutorials or examples for learning
> OOP
>
> >I'm reading a book called Object Oriented Thought Process. It's very
> >good, and fairly easy to understand. It's not specific to ColdFusion,
> >but more general concepts.
>
> Erik,
>
> Have you looked at the Fusion Authority Quarterly Update Volume 1 Issue 2
> (OOP-Frameworks Issue)? That has a lot of great tutorials and examples,
> and
> covers the fundamentals of object-oriented programming in ColdFusion. You
> can see what's in it at:
>
> https://secure.houseoffusion.com/Fall2006.cfm
>
> and you can order it as a single issue at:
>
> https://secure.houseoffusion.com/singleissues.cfm
>
> You can also subscribe to the Fusion Authority Quarterly Update at:
>
> https://secure.houseoffusion.com/subscriptions.cfm
>
> Good luck in your quest! I hope that helps,
>
> Judith Dinowitz
> Editor-in-Chief: Fusion Authority and Fusion Authority Quarterly Update
> http://www.fusionauthority.com http://www.fusionauthority.com/quarterly/
>
>
>
> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293123
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


sms

2007-11-12 Thread Chad Gray
Hello,

I would like to make an application that would allow one of our sales reps to 
use their cell phone to create a new login/password for a CF application.

How does the cell phone send the data to the CF Event Gateway for SMS?

This must be some kind of service from the phone company that connects to the 
CF Server?


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293122
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


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

2007-11-12 Thread Andy Matthews
Why does everyone keep throwing frameworks at Erik? Wouldn't it be better to
learn the core concepts behind OOP rather than jumping into a framework
which does it for you? 

-Original Message-
From: Judith Dinowitz [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 12, 2007 10:28 AM
To: CF-Talk
Subject: Re: I am looking for some good tutorials or examples for learning
OOP

>I'm reading a book called Object Oriented Thought Process. It's very 
>good, and fairly easy to understand. It's not specific to ColdFusion, 
>but more general concepts.

Erik,

Have you looked at the Fusion Authority Quarterly Update Volume 1 Issue 2
(OOP-Frameworks Issue)? That has a lot of great tutorials and examples, and
covers the fundamentals of object-oriented programming in ColdFusion. You
can see what's in it at:

https://secure.houseoffusion.com/Fall2006.cfm

and you can order it as a single issue at:

https://secure.houseoffusion.com/singleissues.cfm

You can also subscribe to the Fusion Authority Quarterly Update at:

https://secure.houseoffusion.com/subscriptions.cfm

Good luck in your quest! I hope that helps,

Judith Dinowitz
Editor-in-Chief: Fusion Authority and Fusion Authority Quarterly Update
http://www.fusionauthority.com http://www.fusionauthority.com/quarterly/ 



~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293121
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


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

2007-11-12 Thread Adrian Moreno
I've been posting an OO CF Primer on my site:

http://www.iknowkungfoo.com/blog/index.cfm/OOP

The next post will start covering the concept you're describing. I'm hoping to 
have it done in a few days. 

-- Adrian

> Hi all,
> 
> I am looking for some good tutorials, or example apps (open source 
> projects) on using Object Oriented Programming. I have read several 
> good ones, and I am starting to grasp the concept.
> 
> But the tutorials I read (cfoop.org among others) only discussed a 
> object that has no connection to other objects. What I am looking for 
> is a good example on using objects that holds data across several db 
> tables. For instance, I have a company table that holds a 
> companytypeID. I have a table companytype, with an ID and a 
> description. How can I create an object that shows not only the 
> companytypeID but holds another object with the companytype data?
> 
> And how does it work when I want to assing multiple contacts to a 
> company. How do I add this to my company object?
> 
> Anybody know where I can find sample code or good tutorials? Any help 
> would be greatly appreciated.
> 
> Kind regards,
> 
> Erik-Jan Jaquet
> Toomba 


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293120
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


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

2007-11-12 Thread Judith Dinowitz
>I'm reading a book called Object Oriented Thought Process. It's very good,
>and fairly easy to understand. It's not specific to ColdFusion, but more
>general concepts.

Erik,

Have you looked at the Fusion Authority Quarterly Update Volume 1 Issue 2 
(OOP-Frameworks Issue)? That has a lot of great tutorials and examples, and 
covers the fundamentals of object-oriented programming in ColdFusion. You can 
see what's in it at:

https://secure.houseoffusion.com/Fall2006.cfm

and you can order it as a single issue at:

https://secure.houseoffusion.com/singleissues.cfm

You can also subscribe to the Fusion Authority Quarterly Update at:

https://secure.houseoffusion.com/subscriptions.cfm

Good luck in your quest! I hope that helps,

Judith Dinowitz
Editor-in-Chief: Fusion Authority and Fusion Authority Quarterly Update 
http://www.fusionauthority.com
http://www.fusionauthority.com/quarterly/ 

~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293119
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cflogout problem

2007-11-12 Thread gary gilbert
If you aren't using session cookies the session of the user won't be expired
if they simply close the browser since the default expiration of cookies is
something like 2037.  You can check this by looking for the cookies on your
machine.  To change the normal cookies into session cookies (ones that
expire as soon as the browser is closed) do the following:

When setting up your application make sure you have SETCLIENTCOOKIES="NO"

Then on session start


   
   




or switch to using J2EE sessions which automatically destroys the jsessionid
when the browser is closed.


-- 
Gary Gilbert
http://www.garyrgilbert.com/blog


~|
Check out the new features and enhancements in the
latest product release - download the "What's New PDF" now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293118
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


java.lang.OutOfMemoryError: PermGen space on CF 8

2007-11-12 Thread Gualtiero Sappa
Hi all,
has someone ever experienced this issue. We saw that memory increase 
very quickly and analyze it with Fusion Reactor. We inserted a log in 
pages executing during the CF server crash, but we didn't find any 
problems. It seems that is a random issue.

Can someone help us?
Thank you in advance.

-- 
Gualtiero SAPPA
L.O. B2b
___
[EMAIL PROTECTED] - www.gruppotesi.com

TESI S.p.A.
Sede Legale: Via Mendicita' Istruita, 24 - 12042 Bra (CN)
Sede Centrale: Via Savigliano, 48 - Incrocio Variante di Bra - 12060 
Loc. Roreto di Cherasco (CN)
Tel. 0172 476.301 - Fax 0172 476.399 - [EMAIL PROTECTED]
___
Disclaimer
Questo messaggio e' rivolto unicamente al destinatario indicato e potrebbe
contenere informazioni riservate o confidenziali. Nel caso lo avesse
ricevuto per errore, ci scusiamo per l'inconveniente: lo segnali
cortesemente al mittente e distrugga subito l'originale. Ogni altro utilizzo
sarà considerato illegale. Tesi SpA non si assume alcuna responsabilita' per
usi impropri di questo messaggio o di sue parti.

This message is for the designated recipient only and may contain privileged
or confidential information. If you have received it in error, we apologize
for this: please notify the sender immediately and delete the original. Any
other use of the message is illegal. Tesi SpA does not accept any liability
for corruption, interception or damages, if any, caused by unauthorized use
of this message or parts.




~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293117
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Joystick/controller

2007-11-12 Thread Paul Vernon
> I was wondering if anyone has any idea how to go about writing a
> program in ColdFusion that will enable a user to use a joystick to
> control an object on screen (for example pushing up on the joystick
> would move up an item in a list).  I don't know if it is possible with
> ColdFusion (I think you can do it in .net).  Thanks.

ColdFusion being a server side scripting language I'd say that this is
pretty much out of the question. The fact that you can do this in .net
doesn't mean much as .net covers so much stuff. If you mean it can be done
using Silverlight (a .net technology) then the equivalent technology you'd
be looking at for an non-MS solution would be Flash.

Other than that, what's javascript like at handing input from devices other
than a mouse or keyboard? I have no idea but it strikes me that it may be
able to do what you want. 

Paul





~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293116
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Joystick/controller

2007-11-12 Thread J.J. Merrick
I would think that would be in the browser and not really anything to
do with the server side technology. To me it would be something as to
get the input XY and convey that via javascript and ajax to CF that
would then save the action in the database.


J.J.

On 11/12/07, Brian Bradley <[EMAIL PROTECTED]> wrote:
> I was wondering if anyone has any idea how to go about writing a program in 
> ColdFusion that will enable a user to use a joystick to control an object on 
> screen (for example pushing up on the joystick would move up an item in a 
> list).  I don't know if it is possible with ColdFusion (I think you can do it 
> in .net).  Thanks.
>
> 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293115
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Joystick/controller

2007-11-12 Thread Brian Bradley
I was wondering if anyone has any idea how to go about writing a program in 
ColdFusion that will enable a user to use a joystick to control an object on 
screen (for example pushing up on the joystick would move up an item in a 
list).  I don't know if it is possible with ColdFusion (I think you can do it 
in .net).  Thanks. 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293114
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Posted input array problem

2007-11-12 Thread Ryan Stille
I would store your modified sort order in the form.  Instead of just 
moving them up and down the page, also change the value of the radio 
button or the value of hidden fields(s).  Then when the form is 
submitted, you can loop through that data and examine what the sort 
order of each item should be.

BUT - when I have done what you are talking about, just moving the form 
elements around - when I then examined the form scope, the elements were 
in the new order, not the original order.  So maybe double check how you 
are moving the elements around.

-Ryan


Tarek Jubaer wrote:
> Hi 
> I am trying to get value from posted input array 
> (
> 
> ).
> But from the article 
> http://www.christian-web-masters.com/forums/index.php?showtopic=10873 i found 
> that it is not possible with cold fusion.
>
> Is there any solution to this problem?
>
> what i want to do is:
>
> My form will have some input radio button with dynamic different values form 
> database. There is a function in JavaScript to move up/down the radio buttons 
> (i.e. sorting will be done). when the form is posted i want to get the values 
> in sorted order (not in the order they were created. using "name='inp'" 
> instead of "name='inp[]'" i can get all the values in the order they were 
> created. but not in sorted order. )
>
> Any help will be really appreciated.
>
> Thanks in advance. 
>
>   



~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293113
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


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

2007-11-12 Thread Cutter (CFRelated)
You might also download the litepost application from Google Code. It is 
a fairly simple blogging application, written in Model-Glue, Mach-II and 
Fusebox, all using the same modeling components. Not well documented, 
but good code read. Also incorporates ColdSpring. This is more about 
utilizing frameworks, but it does show how a well written model can be 
utilized with any framework (including your own).

http://code.google.com/p/litepost/

Steve "Cutter" Blades
Adobe Certified Professional
Advanced Macromedia ColdFusion MX 7 Developer
_
http://blog.cutterscrossing.com

Erik-Jan Jaquet wrote:
> Hi all,
> 
> I am looking for some good tutorials, or example apps (open source projects) 
> on using Object Oriented Programming. I have read several good ones, and I am 
> starting to grasp the concept.
> 
> But the tutorials I read (cfoop.org among others) only discussed a object 
> that has no connection to other objects. What I am looking for is a good 
> example on using objects that holds data across several db tables. For 
> instance, I have a company table that holds a companytypeID. I have a table 
> companytype, with an ID and a description. How can I create an object that 
> shows not only the companytypeID but holds another object with the 
> companytype data?
> 
> And how does it work when I want to assing multiple contacts to a company. 
> How do I add this to my company object?
> 
> Anybody know where I can find sample code or good tutorials? Any help would 
> be greatly appreciated.
> 
> Kind regards,
> 
> Erik-Jan Jaquet
> Toomba 
> 
> 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293111
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


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

2007-11-12 Thread Andy Matthews
I'm reading a book called Object Oriented Thought Process. It's very good,
and fairly easy to understand. It's not specific to ColdFusion, but more
general concepts.

-Original Message-
From: Erik-Jan Jaquet [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 11, 2007 1:04 PM
To: CF-Talk
Subject: I am looking for some good tutorials or examples for learning OOP

Hi all,

I am looking for some good tutorials, or example apps (open source projects)
on using Object Oriented Programming. I have read several good ones, and I
am starting to grasp the concept.

But the tutorials I read (cfoop.org among others) only discussed a object
that has no connection to other objects. What I am looking for is a good
example on using objects that holds data across several db tables. For
instance, I have a company table that holds a companytypeID. I have a table
companytype, with an ID and a description. How can I create an object that
shows not only the companytypeID but holds another object with the
companytype data?

And how does it work when I want to assing multiple contacts to a company.
How do I add this to my company object?

Anybody know where I can find sample code or good tutorials? Any help would
be greatly appreciated.

Kind regards,

Erik-Jan Jaquet
Toomba 



~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293112
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Javascript enabled

2007-11-12 Thread Andy Matthews
I'd suggest going with Josh's example. It's simple and unobtrusive. 

-Original Message-
From: Richard White [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 11, 2007 12:08 PM
To: CF-Talk
Subject: Re: Javascript enabled

> $.get('shop/includes/setjsenabled.cfm'); // this is the ajax call

hey josh, this seems very simple, thanks :)

richard 



~|
Get the answers you are looking for on the ColdFusion Labs
Forum direct from active programmers and developers.
http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293110
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Adding Properties to an Object at Runtime

2007-11-12 Thread Jeff Chastain
I have a business case where I need to take a basic business object and add
new properties to it at run time via a series of admin user interfaces.  The
only way I have come up with to do this is to have the business object
maintain a collection of "properties" that would then have a get / set
method based upon the property name - like user.getProperty('firstName').
Something does not seem quite right about this as the business object would
not know what properties it did or did not have, would not be able to
perform any checks based upon those properties, and it would be up to the
calling code to know to request the right property.

 

I have gone through my book of design patterns, but nothing seems to fit
here.  Does anybody know of a different / better way to approach this?

 

Thanks

-- Jeff 



~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293109
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


RE: Could not start the Verity K2Server Service Error 1067

2007-11-12 Thread Dave Watts
> I gave that a whurl and its apperas to hang when trying to 
> listen for the relevant port number, which makes me think 3 things:
> 
> 1: Has the port security been modified by our infastructure 
> team (will follow up)
> 2: Has the boxes virus scan software updated and blocked this 
> port for any particular reason.
> 3: Is another service using this port and not allowing Verity 
> to use it whilst its in use.
> 
> I may be barking up the wrong tree but I'm at a loss at the moment.

You can see if something else is using the port with netstat.

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!


~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293108
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Posted input array problem

2007-11-12 Thread Tarek Jubaer
Hi 
I am trying to get value from posted input array 
(

).
But from the article 
http://www.christian-web-masters.com/forums/index.php?showtopic=10873 i found 
that it is not possible with cold fusion.

Is there any solution to this problem?

what i want to do is:

My form will have some input radio button with dynamic different values form 
database. There is a function in JavaScript to move up/down the radio buttons 
(i.e. sorting will be done). when the form is posted i want to get the values 
in sorted order (not in the order they were created. using "name='inp'" instead 
of "name='inp[]'" i can get all the values in the order they were created. but 
not in sorted order. )

Any help will be really appreciated.

Thanks in advance. 

~|
Enterprise web applications, build robust, secure 
scalable apps today - Try it now ColdFusion Today
ColdFusion 8 beta - Build next generation apps

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293107
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Finding ColdFusion servers

2007-11-12 Thread Tom Chiverton
On Friday 09 Nov 2007, Ian Skinner wrote:
> Thanks for your suggestion, unfortunately we are a mix of Unix and
> Windows systems here.

Use something like Nessus, nmap, Perl etc. to scan every IP for web servers. 
That should narrow it down.

-- 
Tom Chiverton
Helping to challengingly maximize intuitive partnerships
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office.  Any reference to a partner in 
relation to Halliwells LLP means a member of Halliwells LLP.  Regulated by The 
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.

~|
Create robust enterprise, web RIAs.
Upgrade to ColdFusion 8 and integrate with Adobe Flex
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293106
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


Re: Could not start the Verity K2Server Service Error 1067

2007-11-12 Thread Jose Diaz
Hi Dave,

Thanks for the reply.

I gave that a whurl and its apperas to hang when trying to listen for
the relevant port number, which makes me think 3 things:

1: Has the port security been modified by our infastructure team (will
follow up)
2: Has the boxes virus scan software updated and blocked this port for
any particular reason.
3: Is another service using this port and not allowing Verity to use
it whilst its in use.

I may be barking up the wrong tree but I'm at a loss at the moment.

Thanks

Jose Diaz

On Nov 11, 2007 7:15 PM, Dave Watts <[EMAIL PROTECTED]> wrote:
> > I keep getting the following error when trying to restart the
> > 'Verity k2Server' service:
> >
> > ---
> > Could not start the Verity K2Server (Version 2.20pr6) service
> > on local computer.
> > Error 1067: The process terminated unexpectedly.
> > ---
> >
> > Has anybody come across this problem before, and if so do you
> > have a solution?
>
> I haven't seen this problem, and have no solution, but I suggest that you
> try starting the K2 server as an application, from the command prompt,
> rather than as a service, and see what it says then.
>
> 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!
>
>
> 

~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293105
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: cfgrid showing number of records

2007-11-12 Thread Azadi Saryev
extJS has that functionality, which you can see in the examples on extJS 
website - the "showing X of Y records" in the grid's footer.
however, in the CF8 implementation of extJS 1.1, this functionality has 
been disabled.
furthermore, a bug (?) in the CF8 implementation of extJS does NOT allow 
one to add this functionality back in manually through the 
toolbar/footer classes...

while you may think that one could get the total records by calling some 
js function with ajaxonload() - you can't: ajaxonload fires after ajax 
containers on the page have loaded (as in their UI is loaded), but 
before they are populated with data... so no way to use the grid 
object's datastore's totalLength() property...

the way i was able to implement an alternative to this is using 
cfajaxproxy, binding the grid to javascript function and reading the 
returned json data.  the TOTALROWCOUNT element of the returned json 
object (mind the case - js is case-sensitive) gives you the total number 
of records returned.

using ray camden's example - 
http://www.coldfusionjedi.com/index.cfm/2007/9/4/Exporting-from-CFGRID - 
you can combine the above with the pagesize and page properties of the 
grid object to build a full "showing records X - Y of Z records" 
thingy...  of course, that thingy will be outside of the grid...

hth, and hope it is not too jumbled to understand...

-- 

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com


~|
ColdFusion 8 - Build next generation apps
today, with easy PDF and Ajax features - download now
http://download.macromedia.com/pub/labs/coldfusion/cf8_beta_whatsnew_052907.pdf

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293104
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


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

2007-11-12 Thread Erik-Jan Jaquet
I did take a look at Transfer, but I decided that I wanted to learn more of
the principles, before I let Transfer take over my code. But I have to say
ot looks great!

Thx for your reply

Eirk-Jan

2007/11/11, Adrian Lynch <[EMAIL PROTECTED]>:
>
> I'm not sure if it will be too much too soon, but have a quick look at
> transfer.
>
> http://groups.google.com/group/transfer-dev
>
> http://www.transfer-orm.com/
>
> Adrian
>
> -Original Message-
> From: Erik-Jan Jaquet [mailto:[EMAIL PROTECTED]
> Sent: 11 November 2007 19:04
> To: CF-Talk
> Subject: I am looking for some good tutorials or examples for learning
> OOP
>
>
> Hi all,
>
> I am looking for some good tutorials, or example apps (open source
> projects)
> on using Object Oriented Programming. I have read several good ones, and I
> am starting to grasp the concept.
>
> But the tutorials I read (cfoop.org among others) only discussed a object
> that has no connection to other objects. What I am looking for is a good
> example on using objects that holds data across several db tables. For
> instance, I have a company table that holds a companytypeID. I have a
> table
> companytype, with an ID and a description. How can I create an object that
> shows not only the companytypeID but holds another object with the
> companytype data?
>
> And how does it work when I want to assing multiple contacts to a company.
> How do I add this to my company object?
>
> Anybody know where I can find sample code or good tutorials? Any help
> would
> be greatly appreciated.
>
> Kind regards,
>
> Erik-Jan Jaquet
> Toomba
>
>
> 

~|
Get involved in the latest ColdFusion discussions, product
development sharing, and articles on the Adobe Labs wiki.
http://labs/adobe.com/wiki/index.php/ColdFusion_8

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:293103
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4