RE: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Bobby Hartsfield

Well, we thought we were finally rid of this one by disabling the Save
Class Files setting in the CFAdmin but we just had another report of the
error.

Short of a rewrite in java or the like, if anyone has any ideas at all, I'd
love to hear them.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: Tuesday, January 25, 2011 4:07 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Weird, I wonder why it doesn't clear the cfclasses for me...

And yes, this is definitely a hacked solution until it gets fixed (if it
ever does)... it is still an issue in CF9.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 4:04 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I know, I thought that aswell. But for me, regardless of if the trusted
cache option is on in the cfadmin, it does clear the files from cfclasses
and it does temporarily resolve the problem. Its still a big problem
though...

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 12:13 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


You did send some code you were using to manually clear the trustedCache but
all that I noticed it doing was logging in, building a list of files, and
passing them to the clearTrustedCache() method of admin.api.runtime

Running the clearTrsutedCache() method (or clicking the Clear Template Cache
Now button in cfadmin) does not affect the contents of cfclasses for me and
I didn't see another method in the API that looked like it would do that.

I must be missing something somewhere. Without Trusted Cache enabled in
CFAdmin. I wouldn't think admin.api.runtime.clearTrustedCache() would have
anything to do.

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

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Tuesday, January 25, 2011 2:39 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Didn't I sent you that code sample that cleans out the relative files? It
*does* work for me. Note, it clears out the files from the cfclasses
directory, not the cfc-skeletons directory.  I can resend that code if you
need it.

Brooik

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 11:12 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I did find some classes in cfclasses that were related to my cfc but
clearing the template cache as you mentioned doesn't touch them. 

Did you put something else together to keep them cleared out of there?

I can think of a simple cfexecute command to handle it but... yuck!
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 1:32 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 4:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Monday, January 24, 2011 9:40 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


As you know Bobby, I have this problem aswell and have never been able to
find a workaround. Well, I did but it's the ugliest hack you can think 

secure pdf documents

2011-02-22 Thread Richard White

Hi,

i am trying to secure pdf documents that exist in my application folders. 

i have set passwords on them using the cfpdf tag but is there a way to open 
them via a cfm page? i was hoping i could open and display them to the user 
with the app providing the password instead of the user having to type it in... 
is this possible?

thanks 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342477
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


ADOBE PLEASE FIX THIS! RE: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Brook Davies

Would adobe please fix this bug!! Pretty please?

http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: February-22-11 8:13 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Well, we thought we were finally rid of this one by disabling the Save
Class Files setting in the CFAdmin but we just had another report of the
error.

Short of a rewrite in java or the like, if anyone has any ideas at all, I'd
love to hear them.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 4:07 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Weird, I wonder why it doesn't clear the cfclasses for me...

And yes, this is definitely a hacked solution until it gets fixed (if it
ever does)... it is still an issue in CF9.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 4:04 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I know, I thought that aswell. But for me, regardless of if the trusted
cache option is on in the cfadmin, it does clear the files from cfclasses
and it does temporarily resolve the problem. Its still a big problem
though...

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 12:13 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


You did send some code you were using to manually clear the trustedCache but
all that I noticed it doing was logging in, building a list of files, and
passing them to the clearTrustedCache() method of admin.api.runtime

Running the clearTrsutedCache() method (or clicking the Clear Template Cache
Now button in cfadmin) does not affect the contents of cfclasses for me and
I didn't see another method in the API that looked like it would do that.

I must be missing something somewhere. Without Trusted Cache enabled in
CFAdmin. I wouldn't think admin.api.runtime.clearTrustedCache() would have
anything to do.

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

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Tuesday, January 25, 2011 2:39 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Didn't I sent you that code sample that cleans out the relative files? It
*does* work for me. Note, it clears out the files from the cfclasses
directory, not the cfc-skeletons directory.  I can resend that code if you
need it.

Brooik

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 11:12 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I did find some classes in cfclasses that were related to my cfc but
clearing the template cache as you mentioned doesn't touch them. 

Did you put something else together to keep them cleared out of there?

I can think of a simple cfexecute command to handle it but... yuck!
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 1:32 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 4:19 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


We thought about trying that but yesterday, I noticed that our template
caches were all disabled. :-/ 
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

RE: ADOBE PLEASE FIX THIS! RE: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Bobby Hartsfield

And in CF8, not just CF9!

:-)

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

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, February 22, 2011 12:37 PM
To: cf-talk
Subject: ADOBE PLEASE FIX THIS! RE: Linkage Error - attempted duplicate
class definition for name


Would adobe please fix this bug!! Pretty please?

http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html?#bugId=
85391

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: February-22-11 8:13 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Well, we thought we were finally rid of this one by disabling the Save
Class Files setting in the CFAdmin but we just had another report of the
error.

Short of a rewrite in java or the like, if anyone has any ideas at all, I'd
love to hear them.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 
-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 4:07 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Weird, I wonder why it doesn't clear the cfclasses for me...

And yes, this is definitely a hacked solution until it gets fixed (if it
ever does)... it is still an issue in CF9.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 4:04 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I know, I thought that aswell. But for me, regardless of if the trusted
cache option is on in the cfadmin, it does clear the files from cfclasses
and it does temporarily resolve the problem. Its still a big problem
though...

Brook

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 12:13 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


You did send some code you were using to manually clear the trustedCache but
all that I noticed it doing was logging in, building a list of files, and
passing them to the clearTrustedCache() method of admin.api.runtime

Running the clearTrsutedCache() method (or clicking the Clear Template Cache
Now button in cfadmin) does not affect the contents of cfclasses for me and
I didn't see another method in the API that looked like it would do that.

I must be missing something somewhere. Without Trusted Cache enabled in
CFAdmin. I wouldn't think admin.api.runtime.clearTrustedCache() would have
anything to do.

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

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com]
Sent: Tuesday, January 25, 2011 2:39 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Didn't I sent you that code sample that cleans out the relative files? It
*does* work for me. Note, it clears out the files from the cfclasses
directory, not the cfc-skeletons directory.  I can resend that code if you
need it.

Brooik

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: January-25-11 11:12 AM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


I did find some classes in cfclasses that were related to my cfc but
clearing the template cache as you mentioned doesn't touch them. 

Did you put something else together to keep them cleared out of there?

I can think of a simple cfexecute command to handle it but... yuck!
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com]
Sent: Tuesday, January 25, 2011 1:32 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Doh! I didn't look in there. Guess I had template cache on the brain. I'll
check that out now. 

And yes, I wish this would get fixed! I also wish you could do soemthing
like returntype=java:com.soemthing.myclass in a CFC and use java classes
as the returntype. I really think if I was able to use the java class that
we created instead of the properties.cfc... it would resolve the issue.
 
.:.:.:.:.:.:.:.:.:.:.:.:.:.
Bobby Hartsfield
http://acoderslife.com
 

-Original Message-
From: Brook Davies [mailto:cft...@logiforms.com] 
Sent: Tuesday, January 25, 2011 12:52 PM
To: cf-talk
Subject: RE: Linkage Error - attempted duplicate class definition for name


Hi Bobby,

I don't have TRUSTED cache enabled either. If you look in the cfclasses
directory, are there any class files being written to disk there? If so,
clearing the ones  that correspond to your complex type CFC's does resolve
the problem temporarily. I wish Adobe would fix this one...

Brook


-Original Message-
From: Bobby Hartsfield 

Re: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Dain Anderson

I wonder if there's a way to load class files into the template cache
manually. If so, perhaps you could clear your cfclasses, enable trusted
cache, load all class files into trusted cache, and at this point all files
would be in memory, never again creating a class file that could conflict
with your existing files. You would need to ensure the Maximum number of
cached templates value was set high enough to hold all of your templates in
memory.

On another note, as I'm not sure this was clear, but clearing trusted cache
doesn't remove class files -- it removes the contents of those class files
from the memory cache. Upon the next request, the class file is read from
disc (if it exists; if not, it re-compiles it) back into the cache.

-Dain


On Tue, Feb 22, 2011 at 11:12 AM, Bobby Hartsfield bo...@acoderslife.comwrote:


 Well, we thought we were finally rid of this one by disabling the Save
 Class Files setting in the CFAdmin but we just had another report of the
 error.

 Short of a rewrite in java or the like, if anyone has any ideas at all, I'd
 love to hear them.



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342480
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Feedback on this approach to many sites, one codebase (MSOC)

2011-02-22 Thread Matt Robertson

Even though my own CMS can handle multiple sites running off of a
single installation, I don't run it that way.  The points brought up
about clients wanting individual customizations and portability fit my
situation.  I understand if you are offering software-as-a-service
things change, but for me this turned out to be enough of a headache
that I reverted to separate installs and have never regretted it.  If
a customer wants an upgrade, they pay me an hour or two individually
to make that happen.  If they want a specific feature that I don't
want to fold into the overall codebase, I can do it - and earn the
money for doing it - without worrying about consequences on 40 other
web sites on the server.  But thats a business decision and not
coding.  Mentioned just as food for thought.

For sites for my own company, where presently we have about 36 up and
running and will be at around 60 when we are done, we *do* share a
single codebase.  There are no special mappings.  Each site has an
Application.cfm that looks like this:

request.appName=AR_060110_1033;
request.rootFolder=ARDotCom/;
request.FQDN=www.mysiteAR.com;

cfinclude template=../common/Application_common.cfm

The common file has some server vars too:

server.BaseRoot=C:/foo/bar/sites/;
server.dsn= etc. etc. blah blah

And thats enough - along with more code in the common
Application.cfm - to set up absolute and relative paths to the files
I have located in the common-use folder.  Every site has its own
independent application scope.

I've opted to set the app name manually so I can reset session and app
vars if need be... a rare occurrence but its nice to have the option
available.

The root of this web site is a root folder in a discrete IIS web site
and, since CF has no trouble recursing back up beyond a web root
insofar as physical paths go, the /common/ folder is not accessible
from the web, but it is from CF.  Very simple to set up.

-- 
--m@Robertson--
Janitor, The Robertson Team
mysecretbase.com

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342481
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cfselect, bind and radio button

2011-02-22 Thread Naveen Balraj

Hi All,

Can you direct me to an example of how to use 
cfselect, bind based on the selection of a radio button.

I have seen examples where you select one input from one drop down, which 
changes the other drop down values. 

But I have never seen any examples where the user selects a radio button and 
the values on the drop down changes based on the radio selection.

I see this reference, but this is not helpful.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=ajaxdata_04.html

Thanks for any direction. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342482
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Bobby Hartsfield

Hi Dain, 

Thanks for the response and suggestion. We actually never had trusted cache
enabled. We did, however, have Save Class Files enabled and were getting
the error regularly.

Brook Davies was also having the same issue and ended up writing some code
that deleted the specific class files. It resolved the issue temporarily if
I remember correctly.

We decided to just disable the Save Class Files instead of writing code to
delete related files. It resolved the issue for us for a while; we didn't
hear anything for about 2-3 weeks. Unfortunately, about 3 days ago, we
finally got another report of it.

Personally, I know of no way to load files into the trusted cache manually.
Is the Trusted Cache related to the saved classes? 

We also have thousands and thousands of files in the application. We had
issues with the trusted cache in the past and were advised to disable it (by
some very reputable performance consultants in the CF community.)

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

-Original Message-
From: Dain Anderson [mailto:da...@terradotta.com] 
Sent: Tuesday, February 22, 2011 12:51 PM
To: cf-talk
Subject: Re: Linkage Error - attempted duplicate class definition for name


I wonder if there's a way to load class files into the template cache
manually. If so, perhaps you could clear your cfclasses, enable trusted
cache, load all class files into trusted cache, and at this point all files
would be in memory, never again creating a class file that could conflict
with your existing files. You would need to ensure the Maximum number of
cached templates value was set high enough to hold all of your templates in
memory.

On another note, as I'm not sure this was clear, but clearing trusted cache
doesn't remove class files -- it removes the contents of those class files
from the memory cache. Upon the next request, the class file is read from
disc (if it exists; if not, it re-compiles it) back into the cache.

-Dain


On Tue, Feb 22, 2011 at 11:12 AM, Bobby Hartsfield
bo...@acoderslife.comwrote:


 Well, we thought we were finally rid of this one by disabling the Save
 Class Files setting in the CFAdmin but we just had another report of the
 error.

 Short of a rewrite in java or the like, if anyone has any ideas at all,
I'd
 love to hear them.





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342483
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Feedback on this approach to many sites, one codebase (MSOC)

2011-02-22 Thread Brian Meloche

I'm late to the thread, but like Eric and Sean have indicated, having all
domains under the same application name is the way to go. We've got a
big multi-tenant application here (several hundred thousand lines of
code) designed that way and it works great. Reinitializing an application is
quick and easy (taking servers out of the farm before doing it, of course) -
seconds, not minutes, and that is for all domains at a time, not for each
one at a time. That's all because of how it's designed.

I was hoping to speak on the same subject at CFObjective, but Sean got
picked to speak over me. :-(

On Tue, Feb 22, 2011 at 1:01 PM, Matt Robertson websitema...@gmail.comwrote:


 Even though my own CMS can handle multiple sites running off of a
 single installation, I don't run it that way.  The points brought up
 about clients wanting individual customizations and portability fit my
 situation.  I understand if you are offering software-as-a-service
 things change, but for me this turned out to be enough of a headache
 that I reverted to separate installs and have never regretted it.  If
 a customer wants an upgrade, they pay me an hour or two individually
 to make that happen.  If they want a specific feature that I don't
 want to fold into the overall codebase, I can do it - and earn the
 money for doing it - without worrying about consequences on 40 other
 web sites on the server.  But thats a business decision and not
 coding.  Mentioned just as food for thought.

 For sites for my own company, where presently we have about 36 up and
 running and will be at around 60 when we are done, we *do* share a
 single codebase.  There are no special mappings.  Each site has an
 Application.cfm that looks like this:

 request.appName=AR_060110_1033;
 request.rootFolder=ARDotCom/;
 request.FQDN=www.mysiteAR.com;

 cfinclude template=../common/Application_common.cfm

 The common file has some server vars too:

 server.BaseRoot=C:/foo/bar/sites/;
 server.dsn= etc. etc. blah blah

 And thats enough - along with more code in the common
 Application.cfm - to set up absolute and relative paths to the files
 I have located in the common-use folder.  Every site has its own
 independent application scope.

 I've opted to set the app name manually so I can reset session and app
 vars if need be... a rare occurrence but its nice to have the option
 available.

 The root of this web site is a root folder in a discrete IIS web site
 and, since CF has no trouble recursing back up beyond a web root
 insofar as physical paths go, the /common/ folder is not accessible
 from the web, but it is from CF.  Very simple to set up.

 --
 --m@Robertson--
 Janitor, The Robertson Team
 mysecretbase.com

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342484
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Linkage Error - attempted duplicate class definition for name

2011-02-22 Thread Russ Michaels

When a CF file is first run it gets compiled to a class file and loaded into
memory (template cache), if save class files is enabled then the compiled
class file is saved to disk as well, and this file will be used in the
future instead of always compiling the CFM file. This will happen if CF is
restarted or if the file gets removed from the template cache for any
reason.

When you have trusted cache enabled this simply tells CF not to bother
looking at the cfm file to see if there is a newer version, and to always
trust that the cached version is the newest. So if you do not plan to change
your files any time soon, this should provide a performance boost.

It is possible to compile all your CFM files to class files and only have
these on the server and not have any cfm files at all.

-- 

Russ Michaels

www.bluethunderinternet.com  : Business hosting services  solutions
www.cfmldeveloper.com: ColdFusion developer community + free
developer hosting
www.michaels.me.uk   : my blog
www.cfsearch.com : ColdFusion search engine
**
*skype me* : russmichaels


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342485
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Reflection and Class literal

2011-02-22 Thread Leigh

 cfset class = createObject(java,
 java.net.InetAddress).getLocalHost.getClass()
 
You are probably getting an instance one of the subclasses: Inet4Address or 
Inet6Address. addressCache is declared the parent class (InetAddress). So 
that may be why you cannot access it from declaredFields. Try using 
Class.forName()

ie  cfset cls getClass().forName(java.net.InetAddress)



  

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342486
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Feedback on this approach to many sites, one codebase (MSOC)

2011-02-22 Thread Steve 'Cutter' Blades

I'm curious how this is handled in some cases. A single application 
would have a smaller memory footprint on the server, but I've always 
placed site specific variables in the application scope, keeping 
sessions much smaller and reducing overall memory overhead. Yes, 
reinitializing applications can be a  bear sometimes, but the savings in 
memory overhead in high traffic apps is worth the hardship.

Steve 'Cutter' Blades
Adobe Certified Expert
Advanced Macromedia ColdFusion MX 7 Developer

http://blog.cutterscrossing.com


Co-Author Learning Ext JS 3.2 Packt Publishing 2010
https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

The best way to predict the future is to help create it


On 2/22/2011 1:30 PM, Brian Meloche wrote:
 I'm late to the thread, but like Eric and Sean have indicated, having all
 domains under the same application name is the way to go. We've got a
 big multi-tenant application here (several hundred thousand lines of
 code) designed that way and it works great. Reinitializing an application is
 quick and easy (taking servers out of the farm before doing it, of course) -
 seconds, not minutes, and that is for all domains at a time, not for each
 one at a time. That's all because of how it's designed.

 I was hoping to speak on the same subject at CFObjective, but Sean got
 picked to speak over me. :-(

 On Tue, Feb 22, 2011 at 1:01 PM, Matt Robertsonwebsitema...@gmail.comwrote:

 Even though my own CMS can handle multiple sites running off of a
 single installation, I don't run it that way.  The points brought up
 about clients wanting individual customizations and portability fit my
 situation.  I understand if you are offering software-as-a-service
 things change, but for me this turned out to be enough of a headache
 that I reverted to separate installs and have never regretted it.  If
 a customer wants an upgrade, they pay me an hour or two individually
 to make that happen.  If they want a specific feature that I don't
 want to fold into the overall codebase, I can do it - and earn the
 money for doing it - without worrying about consequences on 40 other
 web sites on the server.  But thats a business decision and not
 coding.  Mentioned just as food for thought.

 For sites for my own company, where presently we have about 36 up and
 running and will be at around 60 when we are done, we *do* share a
 single codebase.  There are no special mappings.  Each site has an
 Application.cfm that looks like this:

 request.appName=AR_060110_1033;
 request.rootFolder=ARDotCom/;
 request.FQDN=www.mysiteAR.com;

 cfinclude template=../common/Application_common.cfm

 The common file has some server vars too:

 server.BaseRoot=C:/foo/bar/sites/;
 server.dsn= etc. etc. blah blah

 And thats enough - along with more code in the common
 Application.cfm - to set up absolute and relative paths to the files
 I have located in the common-use folder.  Every site has its own
 independent application scope.

 I've opted to set the app name manually so I can reset session and app
 vars if need be... a rare occurrence but its nice to have the option
 available.

 The root of this web site is a root folder in a discrete IIS web site
 and, since CF has no trouble recursing back up beyond a web root
 insofar as physical paths go, the /common/ folder is not accessible
 from the web, but it is from CF.  Very simple to set up.

 --
 --m@Robertson--
 Janitor, The Robertson Team
 mysecretbase.com


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342487
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Feedback on this approach to many sites, one codebase (MSOC)

2011-02-22 Thread Brian Meloche

In the application scope... but you have a structure, such as:

application.settings.sites[CHR][config][adminEmail]

As I said, it works great for us.

We don't have a tear off site structure, and a client can't ask for the
code, since it would be impossible to replicate due to the business we
provide, so I imagine we'd have to tweak things if that were a requirement.

On Tue, Feb 22, 2011 at 4:05 PM, Steve 'Cutter' Blades 
cold.fus...@cutterscrossing.com wrote:


 I'm curious how this is handled in some cases. A single application
 would have a smaller memory footprint on the server, but I've always
 placed site specific variables in the application scope, keeping
 sessions much smaller and reducing overall memory overhead. Yes,
 reinitializing applications can be a  bear sometimes, but the savings in
 memory overhead in high traffic apps is worth the hardship.

 Steve 'Cutter' Blades
 Adobe Certified Expert
 Advanced Macromedia ColdFusion MX 7 Developer
 
 http://blog.cutterscrossing.com


 Co-Author Learning Ext JS 3.2 Packt Publishing 2010

 https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book

 The best way to predict the future is to help create it


 On 2/22/2011 1:30 PM, Brian Meloche wrote:
  I'm late to the thread, but like Eric and Sean have indicated, having all
  domains under the same application name is the way to go. We've got a
  big multi-tenant application here (several hundred thousand lines of
  code) designed that way and it works great. Reinitializing an application
 is
  quick and easy (taking servers out of the farm before doing it, of
 course) -
  seconds, not minutes, and that is for all domains at a time, not for each
  one at a time. That's all because of how it's designed.
 
  I was hoping to speak on the same subject at CFObjective, but Sean got
  picked to speak over me. :-(
 
  On Tue, Feb 22, 2011 at 1:01 PM, Matt Robertsonwebsitema...@gmail.com
 wrote:
 
  Even though my own CMS can handle multiple sites running off of a
  single installation, I don't run it that way.  The points brought up
  about clients wanting individual customizations and portability fit my
  situation.  I understand if you are offering software-as-a-service
  things change, but for me this turned out to be enough of a headache
  that I reverted to separate installs and have never regretted it.  If
  a customer wants an upgrade, they pay me an hour or two individually
  to make that happen.  If they want a specific feature that I don't
  want to fold into the overall codebase, I can do it - and earn the
  money for doing it - without worrying about consequences on 40 other
  web sites on the server.  But thats a business decision and not
  coding.  Mentioned just as food for thought.
 
  For sites for my own company, where presently we have about 36 up and
  running and will be at around 60 when we are done, we *do* share a
  single codebase.  There are no special mappings.  Each site has an
  Application.cfm that looks like this:
 
  request.appName=AR_060110_1033;
  request.rootFolder=ARDotCom/;
  request.FQDN=www.mysiteAR.com;
 
  cfinclude template=../common/Application_common.cfm
 
  The common file has some server vars too:
 
  server.BaseRoot=C:/foo/bar/sites/;
  server.dsn= etc. etc. blah blah
 
  And thats enough - along with more code in the common
  Application.cfm - to set up absolute and relative paths to the files
  I have located in the common-use folder.  Every site has its own
  independent application scope.
 
  I've opted to set the app name manually so I can reset session and app
  vars if need be... a rare occurrence but its nice to have the option
  available.
 
  The root of this web site is a root folder in a discrete IIS web site
  and, since CF has no trouble recursing back up beyond a web root
  insofar as physical paths go, the /common/ folder is not accessible
  from the web, but it is from CF.  Very simple to set up.
 
  --
  --m@Robertson--
  Janitor, The Robertson Team
  mysecretbase.com
 
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342488
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


cfheader and foreign characters

2011-02-22 Thread Richard Steele

I'm trying to save a text file that has foreign characters. 
Here's my code:

cfset xOutput = République

cfheader
charset=utf-8
name=content-disposition
value=attachment; filename=test.txt
#xOutput#

When I open this file up it looks like this:
République

How can I retain the proper foreign characters? Thanks in advance. 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342489
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Leigh

Are you supplying a content type too text/plain, text/html?



  

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342490
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Alan Rother

Do this

cfprocessingdirective pageencoding=utf-8
cfset xOutput = République


cfcontent type=text/html; utf-8


cfheader
charset=utf-8
name=content-disposition
value=attachment; filename=test.txt
cfoutput#xOutput#/cfoutput

On Tue, Feb 22, 2011 at 3:00 PM, Leigh cfsearch...@yahoo.com wrote:


 Are you supplying a content type too text/plain, text/html?





 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342491
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele

I tried this:

cfheader
charset=utf-8
name=content-disposition
value=attachment; filename=#xFileName#

 cfcontent
 type = text/html; charset=utf-8
 reset=true
 variable=#ToBinary( ToBase64(xOutput) )#
 /

Still no foreign characters. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342492
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele

Hi Alan, closer, but now I get R?publique. Any other ideas would be greatly 
appreciated.


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342493
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Leigh

Should work fine with just a plain vanilla cfcontent / cfoutput

cfheader charset=utf-8 name=content-disposition  / 
cfcontent type=text/html / 
cfoutput#xOutput#/cfoutput




  

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342494
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Alan Rother

That odd, it totally worked for me...

http://alan.rotherfamily.net/demos/utf8/

cfprocessingdirective pageencoding=utf-8
cfset xOutput = République


cfcontent type=text/plain; utf-8


cfheader
charset=utf-8
name=content-disposition
value=attachment; filename=test.txt
cfoutput#xOutput#/cfoutput

On Tue, Feb 22, 2011 at 4:10 PM, Richard Steele r...@photoeye.com wrote:


 Hi Alan, closer, but now I get R?publique. Any other ideas would be greatly
 appreciated.


 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342495
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele

No, I get this:
R?publique 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342496
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele

That odd, it totally worked for me...

http://alan.rotherfamily.net/demos/utf8/

cfprocessingdirective pageencoding=utf-8
cfset xOutput = République

I get RÈpublique when I click your link. not République.

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342497
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Alan Rother

What kind of computer (OS) are you on and what browser are you using? I just
want to Apples to Apples this... This should be really simple...

Oh and what program is the browser opening the text file in.

Leigh (as always) is right, this should just work

On Tue, Feb 22, 2011 at 5:07 PM, Richard Steele r...@photoeye.com wrote:


 That odd, it totally worked for me...
 
 http://alan.rotherfamily.net/demos/utf8/
 
 cfprocessingdirective pageencoding=utf-8
 cfset xOutput = République

 I get RÈpublique when I click your link. not République.

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342498
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele

That's totally it. Apple Chrome, Safari and Firefox show  RÈpublique when I 
click your link. IE 8 and Firefox PC show République. It shows it this in both 
Word 2011 and Text Edit on the Mac. Plain text endcoding is set to Automatic 
for Plain Text in Text Edit and utf-8 for html documents.

Anyway, we'll just use Safari for the PC to run the cfm that produces this. 

Thanks for your patience and help!



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342499
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Michael Grant

FWIW: I get RÈpublique.

Mac OSX Leopard.
Chrome 9.0.597 (not that this should matter since it's a d.l. not an open in
the browser. Also checked FF 3.316 with same result.



On Tue, Feb 22, 2011 at 7:20 PM, Alan Rother alan.rot...@gmail.com wrote:


 What kind of computer (OS) are you on and what browser are you using? I
 just
 want to Apples to Apples this... This should be really simple...

 Oh and what program is the browser opening the text file in.

 Leigh (as always) is right, this should just work

 On Tue, Feb 22, 2011 at 5:07 PM, Richard Steele r...@photoeye.com wrote:

 
  That odd, it totally worked for me...
  
  http://alan.rotherfamily.net/demos/utf8/
  
  cfprocessingdirective pageencoding=utf-8
  cfset xOutput = République
 
  I get RÈpublique when I click your link. not République.
 
 

 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342500
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Michael Grant

TextEdit 1.6 shows RÈpublique
Word:MAC 2011 v14.02 shows: RΘpublique


On Tue, Feb 22, 2011 at 7:27 PM, Richard Steele r...@photoeye.com wrote:


 That's totally it. Apple Chrome, Safari and Firefox show  RÈpublique when I
 click your link. IE 8 and Firefox PC show République. It shows it this in
 both Word 2011 and Text Edit on the Mac. Plain text endcoding is set to
 Automatic for Plain Text in Text Edit and utf-8 for html documents.

 Anyway, we'll just use Safari for the PC to run the cfm that produces this.

 Thanks for your patience and help!



 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342501
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: cfheader and foreign characters

2011-02-22 Thread Richard Steele

Meant to say Firefox for the PC. Thanks again. 

~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342502
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: Feedback on this approach to many sites, one codebase (MSOC)

2011-02-22 Thread Rick Faircloth

I can see both sides on this one very clearly.

To this point, all I've ever done is develop custom
applications and websites.  I haven't sold the exact same
site in 10 or so years of development!

However, I really want to get away from working
just one-on-one with clients.  They can be a real pain.
Some are just downright ignorant and impossible to work with.
(You can tell I've had a couple of bad experiences lately... ;o)

I'm want to move into developing sites for specific uses, such
as for recreation departments or real estate agents and brokers, etc.,
and have them sign up for the site online, choose their template,
put in their content, and, after a free trial period, they pay
their money.  If they need support, they can email me.

If they want functional customization, I'll build a custom function for a
client,
charge them for it, then make that function available to anyone
else using my SAAS sites.  The customers will never own the sites
and never have the opportunity to take the code elsewhere.

If they want cosmetic or style customization, I can do that
and charge them for it.  It will still remain my site and not
the client's site.

I'll still build custom apps along the way, I'm sure, but I'd
like to start making my work on an app/site pay more than one time.

However, like you Matt, I may end up going back to individual
customizations, if things don't work out so well on the SAAS front.
I do have some clients who always insist on being absolutely unique
and want to have the best site. To those who want to be absolutely
unique, I can sell the template for a few thousand or whatever amount,
and they'll have exclusive rights to use that template, but they
still won't own it. Soon as they stop paying, the template goes
back into the fold.

I just want to test this approach and see if I can make it work.

Rick

PS - when it comes to the database, I'm leaning towards a different
database for each client.  I'd hate to have problems with a client's
data and have to parse through everyone else's data to see what
the problem is.  Of course, I do have some common data databases
that everyone would share...local area info, etc. But I'm currently
still using distinct databases for client-specific data.



-Original Message-
From: Matt Robertson [mailto:websitema...@gmail.com] 
Sent: Tuesday, February 22, 2011 1:02 PM
To: cf-talk
Subject: Re: Feedback on this approach to many sites, one codebase (MSOC)


Even though my own CMS can handle multiple sites running off of a
single installation, I don't run it that way.  The points brought up
about clients wanting individual customizations and portability fit my
situation.  I understand if you are offering software-as-a-service
things change, but for me this turned out to be enough of a headache
that I reverted to separate installs and have never regretted it.  If
a customer wants an upgrade, they pay me an hour or two individually
to make that happen.  If they want a specific feature that I don't
want to fold into the overall codebase, I can do it - and earn the
money for doing it - without worrying about consequences on 40 other
web sites on the server.  But thats a business decision and not
coding.  Mentioned just as food for thought.

For sites for my own company, where presently we have about 36 up and
running and will be at around 60 when we are done, we *do* share a
single codebase.  There are no special mappings.  Each site has an
Application.cfm that looks like this:

request.appName=AR_060110_1033;
request.rootFolder=ARDotCom/;
request.FQDN=www.mysiteAR.com;

cfinclude template=../common/Application_common.cfm

The common file has some server vars too:

server.BaseRoot=C:/foo/bar/sites/;
server.dsn= etc. etc. blah blah

And thats enough - along with more code in the common
Application.cfm - to set up absolute and relative paths to the files
I have located in the common-use folder.  Every site has its own
independent application scope.

I've opted to set the app name manually so I can reset session and app
vars if need be... a rare occurrence but its nice to have the option
available.

The root of this web site is a root folder in a discrete IIS web site
and, since CF has no trouble recursing back up beyond a web root
insofar as physical paths go, the /common/ folder is not accessible
from the web, but it is from CF.  Very simple to set up.





~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342503
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


get my MX7 serial number?

2011-02-22 Thread Greg Morphis

I'm upgrading a server from MX7 to 9 and I need to get what the existing
serial number is.
Is there a file that shows the serial number? I've emailed the owner but
thought this might be fastest (if a file that has it exists)


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342504
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: get my MX7 serial number?

2011-02-22 Thread Greg Morphis

Right there in CFAdmin.. doh! Found it!

On Tue, Feb 22, 2011 at 10:13 PM, Greg Morphis gmorp...@gmail.com wrote:

 I'm upgrading a server from MX7 to 9 and I need to get what the existing
 serial number is.
 Is there a file that shows the serial number? I've emailed the owner but
 thought this might be fastest (if a file that has it exists)



~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342505
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: JVM help!

2011-02-22 Thread Carl Meyer

Did any of those suggestions with NewGen, Thread Cores or Low Pause GC help?
Regards, Carl.

 Hi everyone,
 
 thanks for all the good feedback.
 
 Let me first tell you WHY I think its a JVM issue, then show you what
 results I have had.
 
 We took the exact same code, and connected it to the exact same DB 
 (and DB
 server) and ran the exact same code in isolation. The comparison was
 outstanding about 2s on the old machine and 10s as you have seen on 
 the new.
 
 
 The connection between the SQL and both web machines pinged at 1ms
 
 We tried the connection from various locations and ruled out network 
 issues
 (although there could be ). We looked at execution times and logged 
 the
 information pretty heavily in the intensive parts of the app and saw 
 that,
 on comparison between machines the differences. Given that, and the
 isolation tests, the only thing we could see that was different was 
 the JVM
 settings, thus the conclusion we came too.
 
 so having taken some of the suggestions into account I have ended up 
 with
 this setting:
 
 java.args=-server -Xms4096m -Xmx8192m -Dsun.io.useCanonCaches=false
 -XX:PermSize=1024m -XX:MaxPermSize=1024m
 -Dsun.rmi.dgc.client.gcInterval=15
 -Dsun.rmi.dgc.server.gcInterval=15 -XX:+UseParallelGC -Xbatch
 -Dcoldfusion.rootDir={application.home}/
 -Djava.security.policy={application.
home}/ servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/coldfusion.
 policy
 -Djava.security.auth.policy={application.
home }/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF/cfusion/lib/neo_jaas.
 policy
 
 This puts us at an execution time parallel to the old 32 bit machine, 
 down
 at 1.5-2 seconds. while this is a vast improvement I would hope that 
 more
 gains could be had out of tuning the JVM some more. I will tweak the
 GCinterval and the permSize tomorrow night and see if there is an
 incremental gain to be had.
 
 Any other suggestions would be great!
 
 Thanks.
 


~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:342506
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm