RE: I think I'm confused...

2011-02-23 Thread Mark A. Kruger

Rick,

Put a pound sign in front of the entry

#127.0.0.1 x

Close your browsers

The open a command prompt and flush your local DNS cahce ..

C:\>ipconfig /flushdns

Then ping the domain... should see a live address returned from your DNS
server.

-mark




Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Wednesday, February 23, 2011 9:25 PM
To: cf-talk
Subject: RE: I think I'm confused...


Good idea.

After modifying the hosts file to an actual domain
I also have on my server, I realized that when I open
the domain in a browser, I get the local version of the
site, as I should.  But, how then do I get back to the
server version of the site?  Do I have to take the
domain back out of the local hosts file?



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Wednesday, February 23, 2011 10:10 PM
To: cf-talk
Subject: RE: I think I'm confused...


Here's another tip on this (cause I have to open my hosts file 20 times a
week).

Drag the hosts file to the desktop with the left mouse and choose "create
short cut".

Then right-click on the short cut and choose "properties"

Change the "target" from 

C:\WINDOWS\system32\drivers\etc\hosts

To...

Notepad.exe  "C:\WINDOWS\system32\drivers\etc\hosts"

Then you can open and edit it willy nilly...

-mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Jason Durham [mailto:jqdur...@gmail.com] 
Sent: Wednesday, February 23, 2011 9:02 PM
To: cf-talk
Subject: Re: I think I'm confused...


Run Notepad.exe as Administrator
Open C:\windows\system32\drivers\etc\hosts (no file extension)
Add "127.0.0.1 www.mydomain.com" to the last line
Open web server and configure to route by hostname "www.mydomain.com"


Windows (by default) looks to your hosts file for name resolution before
checking a DNS server.  I do something like this for all of my dev sites.

Sent from my iPhone

On Feb 23, 2011, at 8:52 PM, "Rick Faircloth" 
wrote:

> 
> I've started working on an MSOC application
> and was setting up some test code which uses
> the cgi.server_name as the determining value
> for setting all the specific site variables.
> 
> Then, I realized that this wouldn't work for
> local development using "http://localhost"; because
> there would be not cgi.server_name (except localhost)
> to reference in the browser.
> 
> I guess I can set up a domain in the database
> for "localhost" and treat that the same way I would
> treat a regular domain, but I wouldn't be able to
> switch between various sites locally that way.
> 
> Is an MSOC app testable for various domains only
> on a server, where DNS is running, as opposed to locally?
> 
> (There is probably a simple solution for this, but
> I've been reading and thinking about this so much
> I "can't see the forest for the trees!"
> 
> ???
> 
> Rick
> 
> 
> 
> 







~|
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:342549
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: I think I'm confused...

2011-02-23 Thread Eric Roberts

If you run into any issues after modding the hosts file, try closing your
browser and opening up a DOS window, type in ipconfig /flushdns then open
the browser and try again...that clears the dns cache and reloads it with
fresh data when you open your browser.

-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Wednesday, February 23, 2011 21:25 
To: cf-talk
Subject: RE: I think I'm confused...


Good idea.

After modifying the hosts file to an actual domain I also have on my server,
I realized that when I open the domain in a browser, I get the local version
of the site, as I should.  But, how then do I get back to the server version
of the site?  Do I have to take the domain back out of the local hosts file?



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com]
Sent: Wednesday, February 23, 2011 10:10 PM
To: cf-talk
Subject: RE: I think I'm confused...


Here's another tip on this (cause I have to open my hosts file 20 times a
week).

Drag the hosts file to the desktop with the left mouse and choose "create
short cut".

Then right-click on the short cut and choose "properties"

Change the "target" from 

C:\WINDOWS\system32\drivers\etc\hosts

To...

Notepad.exe  "C:\WINDOWS\system32\drivers\etc\hosts"

Then you can open and edit it willy nilly...

-mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Jason Durham [mailto:jqdur...@gmail.com] 
Sent: Wednesday, February 23, 2011 9:02 PM
To: cf-talk
Subject: Re: I think I'm confused...


Run Notepad.exe as Administrator
Open C:\windows\system32\drivers\etc\hosts (no file extension)
Add "127.0.0.1 www.mydomain.com" to the last line
Open web server and configure to route by hostname "www.mydomain.com"


Windows (by default) looks to your hosts file for name resolution before
checking a DNS server.  I do something like this for all of my dev sites.

Sent from my iPhone

On Feb 23, 2011, at 8:52 PM, "Rick Faircloth" 
wrote:

> 
> I've started working on an MSOC application
> and was setting up some test code which uses
> the cgi.server_name as the determining value
> for setting all the specific site variables.
> 
> Then, I realized that this wouldn't work for
> local development using "http://localhost"; because
> there would be not cgi.server_name (except localhost)
> to reference in the browser.
> 
> I guess I can set up a domain in the database
> for "localhost" and treat that the same way I would
> treat a regular domain, but I wouldn't be able to
> switch between various sites locally that way.
> 
> Is an MSOC app testable for various domains only
> on a server, where DNS is running, as opposed to locally?
> 
> (There is probably a simple solution for this, but
> I've been reading and thinking about this so much
> I "can't see the forest for the trees!"
> 
> ???
> 
> Rick
> 
> 
> 
> 







~|
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:342548
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: I think I'm confused...

2011-02-23 Thread Rick Faircloth

Good idea.

After modifying the hosts file to an actual domain
I also have on my server, I realized that when I open
the domain in a browser, I get the local version of the
site, as I should.  But, how then do I get back to the
server version of the site?  Do I have to take the
domain back out of the local hosts file?



-Original Message-
From: Mark A. Kruger [mailto:mkru...@cfwebtools.com] 
Sent: Wednesday, February 23, 2011 10:10 PM
To: cf-talk
Subject: RE: I think I'm confused...


Here's another tip on this (cause I have to open my hosts file 20 times a
week).

Drag the hosts file to the desktop with the left mouse and choose "create
short cut".

Then right-click on the short cut and choose "properties"

Change the "target" from 

C:\WINDOWS\system32\drivers\etc\hosts

To...

Notepad.exe  "C:\WINDOWS\system32\drivers\etc\hosts"

Then you can open and edit it willy nilly...

-mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Jason Durham [mailto:jqdur...@gmail.com] 
Sent: Wednesday, February 23, 2011 9:02 PM
To: cf-talk
Subject: Re: I think I'm confused...


Run Notepad.exe as Administrator
Open C:\windows\system32\drivers\etc\hosts (no file extension)
Add "127.0.0.1 www.mydomain.com" to the last line
Open web server and configure to route by hostname "www.mydomain.com"


Windows (by default) looks to your hosts file for name resolution before
checking a DNS server.  I do something like this for all of my dev sites.

Sent from my iPhone

On Feb 23, 2011, at 8:52 PM, "Rick Faircloth" 
wrote:

> 
> I've started working on an MSOC application
> and was setting up some test code which uses
> the cgi.server_name as the determining value
> for setting all the specific site variables.
> 
> Then, I realized that this wouldn't work for
> local development using "http://localhost"; because
> there would be not cgi.server_name (except localhost)
> to reference in the browser.
> 
> I guess I can set up a domain in the database
> for "localhost" and treat that the same way I would
> treat a regular domain, but I wouldn't be able to
> switch between various sites locally that way.
> 
> Is an MSOC app testable for various domains only
> on a server, where DNS is running, as opposed to locally?
> 
> (There is probably a simple solution for this, but
> I've been reading and thinking about this so much
> I "can't see the forest for the trees!"
> 
> ???
> 
> Rick
> 
> 
> 
> 





~|
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:342547
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: I think I'm confused...

2011-02-23 Thread Mark A. Kruger

Here's another tip on this (cause I have to open my hosts file 20 times a
week).

Drag the hosts file to the desktop with the left mouse and choose "create
short cut".

Then right-click on the short cut and choose "properties"

Change the "target" from 

C:\WINDOWS\system32\drivers\etc\hosts

To...

Notepad.exe  "C:\WINDOWS\system32\drivers\etc\hosts"

Then you can open and edit it willy nilly...

-mark


Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com



-Original Message-
From: Jason Durham [mailto:jqdur...@gmail.com] 
Sent: Wednesday, February 23, 2011 9:02 PM
To: cf-talk
Subject: Re: I think I'm confused...


Run Notepad.exe as Administrator
Open C:\windows\system32\drivers\etc\hosts (no file extension)
Add "127.0.0.1 www.mydomain.com" to the last line
Open web server and configure to route by hostname "www.mydomain.com"


Windows (by default) looks to your hosts file for name resolution before
checking a DNS server.  I do something like this for all of my dev sites.

Sent from my iPhone

On Feb 23, 2011, at 8:52 PM, "Rick Faircloth" 
wrote:

> 
> I've started working on an MSOC application
> and was setting up some test code which uses
> the cgi.server_name as the determining value
> for setting all the specific site variables.
> 
> Then, I realized that this wouldn't work for
> local development using "http://localhost"; because
> there would be not cgi.server_name (except localhost)
> to reference in the browser.
> 
> I guess I can set up a domain in the database
> for "localhost" and treat that the same way I would
> treat a regular domain, but I wouldn't be able to
> switch between various sites locally that way.
> 
> Is an MSOC app testable for various domains only
> on a server, where DNS is running, as opposed to locally?
> 
> (There is probably a simple solution for this, but
> I've been reading and thinking about this so much
> I "can't see the forest for the trees!"
> 
> ???
> 
> Rick
> 
> 
> 
> 



~|
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:342546
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: I think I'm confused...

2011-02-23 Thread Mark A. Kruger

I just use a hosts file and add as many domains as I like.

Mark A. Kruger, MCSE, CFG
(402) 408-3733 ext 105
Skype: markakruger
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com


-Original Message-
From: Rick Faircloth [mailto:r...@whitestonemedia.com] 
Sent: Wednesday, February 23, 2011 8:52 PM
To: cf-talk
Subject: I think I'm confused...


I've started working on an MSOC application
and was setting up some test code which uses
the cgi.server_name as the determining value
for setting all the specific site variables.

Then, I realized that this wouldn't work for
local development using "http://localhost"; because
there would be not cgi.server_name (except localhost)
to reference in the browser.

I guess I can set up a domain in the database
for "localhost" and treat that the same way I would
treat a regular domain, but I wouldn't be able to
switch between various sites locally that way.

Is an MSOC app testable for various domains only
on a server, where DNS is running, as opposed to locally?

(There is probably a simple solution for this, but
I've been reading and thinking about this so much
I "can't see the forest for the trees!"

???

Rick





~|
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:342545
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: I think I'm confused...

2011-02-23 Thread Rick Faircloth

Thanks, Jason, didn't know that!

-Original Message-
From: Jason Durham [mailto:jqdur...@gmail.com] 
Sent: Wednesday, February 23, 2011 10:02 PM
To: cf-talk
Subject: Re: I think I'm confused...


Run Notepad.exe as Administrator
Open C:\windows\system32\drivers\etc\hosts (no file extension)
Add "127.0.0.1 www.mydomain.com" to the last line
Open web server and configure to route by hostname "www.mydomain.com"


Windows (by default) looks to your hosts file for name resolution before
checking a DNS server.  I do something like this for all of my dev sites.

Sent from my iPhone

On Feb 23, 2011, at 8:52 PM, "Rick Faircloth" 
wrote:

> 
> I've started working on an MSOC application
> and was setting up some test code which uses
> the cgi.server_name as the determining value
> for setting all the specific site variables.
> 
> Then, I realized that this wouldn't work for
> local development using "http://localhost"; because
> there would be not cgi.server_name (except localhost)
> to reference in the browser.
> 
> I guess I can set up a domain in the database
> for "localhost" and treat that the same way I would
> treat a regular domain, but I wouldn't be able to
> switch between various sites locally that way.
> 
> Is an MSOC app testable for various domains only
> on a server, where DNS is running, as opposed to locally?
> 
> (There is probably a simple solution for this, but
> I've been reading and thinking about this so much
> I "can't see the forest for the trees!"
> 
> ???
> 
> Rick
> 
> 
> 
> 



~|
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:342544
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


RE: I think I'm confused...

2011-02-23 Thread Rick Faircloth

Thanks, didn't know that!

-Original Message-
From: wattw...@telarushq.com [mailto:wattw...@telarushq.com] 
Sent: Wednesday, February 23, 2011 9:57 PM
To: cf-talk
Subject: Re: I think I'm confused...


Rick--

Modify your Windows hosts file for each domain you want reflected. It
overrides external dns.
Windows/system32/drivers/etc/hosts
Run notepad as an administrator to modify it.

- Reply message -
From: "Rick Faircloth" 
Date: Wed, Feb 23, 2011 19:52
Subject: I think I'm confused...
To: "cf-talk" 


I've started working on an MSOC application
and was setting up some test code which uses
the cgi.server_name as the determining value
for setting all the specific site variables.

Then, I realized that this wouldn't work for
local development using "http://localhost"; because
there would be not cgi.server_name (except localhost)
to reference in the browser.

I guess I can set up a domain in the database
for "localhost" and treat that the same way I would
treat a regular domain, but I wouldn't be able to
switch between various sites locally that way.

Is an MSOC app testable for various domains only
on a server, where DNS is running, as opposed to locally?

(There is probably a simple solution for this, but
I've been reading and thinking about this so much
I "can't see the forest for the trees!"

???

Rick







~|
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:342543
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: I think I'm confused...

2011-02-23 Thread Jason Durham

Run Notepad.exe as Administrator
Open C:\windows\system32\drivers\etc\hosts (no file extension)
Add "127.0.0.1 www.mydomain.com" to the last line
Open web server and configure to route by hostname "www.mydomain.com"


Windows (by default) looks to your hosts file for name resolution before 
checking a DNS server.  I do something like this for all of my dev sites.

Sent from my iPhone

On Feb 23, 2011, at 8:52 PM, "Rick Faircloth"  wrote:

> 
> I've started working on an MSOC application
> and was setting up some test code which uses
> the cgi.server_name as the determining value
> for setting all the specific site variables.
> 
> Then, I realized that this wouldn't work for
> local development using "http://localhost"; because
> there would be not cgi.server_name (except localhost)
> to reference in the browser.
> 
> I guess I can set up a domain in the database
> for "localhost" and treat that the same way I would
> treat a regular domain, but I wouldn't be able to
> switch between various sites locally that way.
> 
> Is an MSOC app testable for various domains only
> on a server, where DNS is running, as opposed to locally?
> 
> (There is probably a simple solution for this, but
> I've been reading and thinking about this so much
> I "can't see the forest for the trees!"
> 
> ???
> 
> Rick
> 
> 
> 
> 

~|
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:342542
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: I think I'm confused...

2011-02-23 Thread wattw...@telarushq.com

Rick--

Modify your Windows hosts file for each domain you want reflected. It overrides 
external dns.
Windows/system32/drivers/etc/hosts
Run notepad as an administrator to modify it.

- Reply message -
From: "Rick Faircloth" 
Date: Wed, Feb 23, 2011 19:52
Subject: I think I'm confused...
To: "cf-talk" 


I've started working on an MSOC application
and was setting up some test code which uses
the cgi.server_name as the determining value
for setting all the specific site variables.

Then, I realized that this wouldn't work for
local development using "http://localhost"; because
there would be not cgi.server_name (except localhost)
to reference in the browser.

I guess I can set up a domain in the database
for "localhost" and treat that the same way I would
treat a regular domain, but I wouldn't be able to
switch between various sites locally that way.

Is an MSOC app testable for various domains only
on a server, where DNS is running, as opposed to locally?

(There is probably a simple solution for this, but
I've been reading and thinking about this so much
I "can't see the forest for the trees!"

???

Rick





~|
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:342541
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


I think I'm confused...

2011-02-23 Thread Rick Faircloth

I've started working on an MSOC application
and was setting up some test code which uses
the cgi.server_name as the determining value
for setting all the specific site variables.

Then, I realized that this wouldn't work for
local development using "http://localhost"; because
there would be not cgi.server_name (except localhost)
to reference in the browser.

I guess I can set up a domain in the database
for "localhost" and treat that the same way I would
treat a regular domain, but I wouldn't be able to
switch between various sites locally that way.

Is an MSOC app testable for various domains only
on a server, where DNS is running, as opposed to locally?

(There is probably a simple solution for this, but
I've been reading and thinking about this so much
I "can't see the forest for the trees!"

???

Rick



~|
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:342540
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-23 Thread Jason Fisher

Yes, I used this method for a long time by putting code right into the 
CF codebase.  I used a different datasource for the DB updates, one that 
allowed MODIFY / ALTER / CREATE, and then had the code test against 
existing DB structures to decide which changes needed to be made along 
with that set of code changes.

Still always appreciated having those changes made in one DB, but it 
wouldn't have mattered much because all changes were managed in the same 
codebase.



On 2/23/2011 3:46 PM, Brian Cain wrote:
> I wrote a custom desktop application in VB to update all my databases at one
> time.  Using SQL scripting this can be easily managed.  When I am ready to
> roll out a change that requires a DB update, I can do it in real time, with
> minimal service interruption, and without taking the sites offline.  It has
> not failed me yet, and I have been doing it that way for over 6 years.
>
>
> 

~|
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:342539
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF9 - cfgrid posting empty form data

2011-02-23 Thread Dominic Howard

Hi

I'm having a mare with an HTML cfgrid which will not post any data whatever I 
do to it. I've used Flash grids before and not had any problems but this HTML 
grid I just cannot work out at all.

It is bound to a CFC and populates itself just fine. However, once a row is 
selected and Submit is pressed, the FORM object on the destination page is 
completely blank.

Any thoughts on this I'd really appreciate.

The code for the grid is












On the page myForm.cfm I get the following blank variables in the FORM object

MYGRID
__CFGRID__MYFORM__MYGRID

Thanks

DomH



~|
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:342538
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-23 Thread Brian Cain

Granted most of my changes are minor like updating a stored procedure or
view or adding a column.  I also run them on a test database first.

Updates that may have a major impact on a table with millions of records,
would never be done while the sites are up, but regular minor changes and
fixes by nature do not have as wide an impact as major updates and fixes.

If you are making major changes you would definitely need to to some testing
and have a well planned implementation strategy.


~|
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:342537
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-23 Thread Michael Grant

That may be. I have a lot of friends who haven't been busted driving after a
few glasses of wine. By your reasoning since they haven't been busted it
must not be a bad idea.



On Wed, Feb 23, 2011 at 3:46 PM, Brian Cain  wrote:

>
> I wrote a custom desktop application in VB to update all my databases at
> one
> time.  Using SQL scripting this can be easily managed.  When I am ready to
> roll out a change that requires a DB update, I can do it in real time, with
> minimal service interruption, and without taking the sites offline.  It has
> not failed me yet, and I have been doing it that way for over 6 years.
>
>
> 

~|
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:342536
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-23 Thread Brian Cain

I wrote a custom desktop application in VB to update all my databases at one
time.  Using SQL scripting this can be easily managed.  When I am ready to
roll out a change that requires a DB update, I can do it in real time, with
minimal service interruption, and without taking the sites offline.  It has
not failed me yet, and I have been doing it that way for over 6 years.


~|
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:342535
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 [spamtrap bayes][spamtrap heur]

2011-02-23 Thread Paul Hastings

On 2/24/2011 1:48 AM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote:
> for editors which recognize BOMs, probably, but this suppose a Unicode aware 
> editor.

even notepad is "unicode aware".

these days only Luddites refuse unicode as default.

~|
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:342534
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-23 Thread Claude Schnéegans

 >>in the presence of a BOM it can guess fairly accurately.

for editors which recognize BOMs, probably, but this suppose a Unicode aware 
editor.


~|
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:342533
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Check me on this MSOC approach...

2011-02-23 Thread Rick Faircloth

Ok... so I'm starting to set down an approach
based on all the feedback to this point.

How about this, as far as domain/directory setup goes:


Main Parent Site


Directory Structure for main parent site:
e:\inetpub\webroot\mobile

Domain for parent site:
mobile.xyz.com


Client Sites


Domains for client sites:
mobile01.xyz.com
mobile02.xyz.com

(This are just subdomains of a domain I own for dev purposes.
The actual sites will be full domains, not subdomains...)


Directory Structure for client sites:

For mobile01.xyz.com...
e:\inetpub\webroot\mobile01

For mobile02.xyz.com...
e:\inetpub\webroot\mobile02


Virtual Directories for client sites in Main Parent Site:

For mobile01.xyz.com, the virtual directory structure will be...
e:\inetpub\webroot\mobile\mobileSites\mobile01 (mobile01 is virtual)

For mobile02.xyz.com, the virtual directory structure will be...
e:\inetpub\webroot\mobile\mobileSites\mobile02 (mobile02 is virtual)


I set up the subdomains above in my DNS and created the sites in IIS.
As a test, I set up an index.cfm in each directory, mobile01 and mobile02
that reads:



Welcome to mobile01.xyz.com!



Welcome to mobile02.xyz.com!



Welcome to our mobile website!



If I go to the appropriate domain, I'm getting the appropriate message.

Any improvements I can make to this?  Considerations?
(There have been so many alternatives, I need to ask again at this point!)

Thanks for any feedback!

Rick



~|
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:342532
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8: Nested Array loop in a Query loop

2011-02-23 Thread Michael Grant

It appears that you don't have any code that runs if any of these conditions
are false:


Is it possible that all these conditions are true only once per query loop
iteration?
Why not push some output to the screen if the above condition evaluates to
false to see if that's the case?



On Wed, Feb 23, 2011 at 12:38 PM, Adam Bourg  wrote:

>
> Here's a bit of the code if you need to see it.
>
> 
> 
>  
>  
>  
>  
>   
>
> 
> 
>
> 
> 
>
> 
> 
>
>
>
>
>
>
>
> 
>
> 
>   
>  
>  
>((adultExp gt validDateRange[listValue]) AND (adultExp LTE
> validDateRange[listValue+1])) OR
>((kidExp gt validDateRange[listValue]) AND (kidExp LTE
> validDateRange[listValue+1]) ) OR
>((frpExp gt validDateRange[listValue]) AND (frpExp LTE
> validDateRange[listValue+1])) OR
>((aExp gt validDateRange[listValue]) AND (aExp LTE
> validDateRange[listValue+1])) OR
>((aidExp gt validDateRange[listValue]) AND (aidExp LTE
> validDateRange[listValue+1])) OR
>((eExp gt validDateRange[listValue]) AND (eExp LTE
> validDateRange[listValue+1])) OR
>((waterExpt gt validDateRange[listValue]) AND (waterExpt LTE
> validDateRange[listValue+1])) OR
>((bloodExp gt validDateRange[listValue]) AND (bloodExp LTE
> validDateRange[listValue+1])) OR
>((oxyExp gt validDateRange[listValue]) AND (oxyExp LTE
> validDateRange[listValue+1])) OR
>((lifeExp gt validDateRange[listValue]) AND (lifeExp LTE
> validDateRange[listValue+1])) OR
>((wildExp gt validDateRange[listValue]) AND (wildExp LTE
> validDateRange[listValue+1]))
>>
>
>   continueL=true>
>   continueL=true>
>   continueL=true>
>   continueL=true>
>   continueL=true>
>
>
>
>
>
>
>
>
>
>
> 
>
>   
>
> 
>
>
>
>
>
>
>
>
> 
>
> 

~|
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:342531
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-23 Thread Paul Hastings

On 2/23/2011 10:42 PM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote:
> will assume when it opens the file. There are no ways this can be decided by
> the application which creates the file.


it can guess & in the presence of a BOM it can guess fairly accurately.

~|
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:342530
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: CF8: Nested Array loop in a Query loop

2011-02-23 Thread Adam Bourg

Here's a bit of the code if you need to see it.

 

  
  
  
  
   

 
 

 


  










 
  
  
   


  
  
  
  
  







 


 
 
   

  

 






 

~|
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:342529
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


CF8: Nested Array loop in a Query loop

2011-02-23 Thread Adam Bourg

I'm having an issue with the cfloop only looping once. 

Here's a sudo code of whats going on: 




 


Using a CFdump it appears  that the inner loop is only running once, while the 
outter loop is outputting 20-30 different pieces of data (expected). How can I 
fix? 

~|
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:342528
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 [spamtrap bayes][spamtrap heur]

2011-02-23 Thread Claude Schnéegans

 >>in which format it is the file is in some proprietary format

... oops, I mean "in which format the file is if it is in some proprietary 
format..."

~|
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:342527
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 [spamtrap bayes][spamtrap heur]

2011-02-23 Thread Claude Schnéegans

 >>no, these are not equivalent. windows 1252 is a superset of iso-8859-1.

I meant equivalent in the general meaning "not quite identical".

 >>if a text editor/cf is told or can guess the encoding it will read it 
 >>successfully.

This is the point. The text editor can be "told" by the file in which format it 
is the file is in some proprietary format, like MS Word, RTF, or even HTML but 
not in plain .txt.
A text file cannot tell in which format it is, it is suppose to be and can only 
be in ASCII, even if this ASCII is used as a base to encode some other format.
Then all depends on what format the text editor will assume when it opens the 
file. There are no ways this can be decided by the application which creates 
the file.

~|
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:342526
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: IE8 Form Submit button not being passed

2011-02-23 Thread Kris Jones

I've seen this problem and long ago (over 8 years ago) read documentation on
it too. Can't find it now, but the issue typically affects forms that have a
single field and a submit button, that are submitted using the enter key
instead of clicking the submit -- only in IE.

If you add a second visible field to the form, you should see the problem
magically disappear.

Cheers,
Kris


---orig post--
I am testing my application on an IE8 system running Win 7 and CF 9. I do
not know if any of these are relevant but the problem does not occur on
Firefox or Chrome.

Essentially, IE is not passing the FORM.Submit to my post-back form
processor. It passes everything else, including Submit.X and Y!!


~|
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:342525
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: Multiline - Dynamic Tabs

2011-02-23 Thread fun and learning

> Hi All,
> 
> I am creating dynamic tabs using Coldfusion, HTML(ul and li). I was 
> just wondering if its possible to make them like windows styled tabs, 
> that is if a tab in first line is selected, I want to push it to the 
> second line. The problem I have is I am creating dynamic tabs. Is it 
> possible using Javascript/jquery, to calculate the widths of each tab 
> and determine at which point a second line of tabs would be started?
> 
> Here is a sample code of what I am doing.
> 
> http://jsfiddle.net/syEJx/5/ 

I solved the problem. 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:342524
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: IE8 Form Submit button not being passed

2011-02-23 Thread Dain Anderson

The problem with your form is that you have a form element named "submit":

name="Submit"

Try changing that to something other than "Submit" and it should work.

HTH,
-Dain


On Wed, Feb 23, 2011 at 9:07 AM, Michael Grant  wrote:

>
> I know I've run into this before with someone's legacy app. I generally
> don't use the form.submit so it hasn't been an issue in my own code. I
> think
> IIRC it has something to do with whether the submit button is clicked or if
> the enter key is used to submit the form. Sorry if this is a red herring,
> it's been a while.
>
-- 

………
*Dain M. Anderson
*Lead Developer
Terra Dotta, LLC
501 W. Franklin Street, Suite 105
Chapel Hill, NC 27516
Phone/Fax: 877-DOTTA-77 (877-368-8277)
http://TerraDotta.com 

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

2011-02-23 Thread Michael Grant

>
> > Taking the system down for an entire hour, without warning, would not be
> acceptable.


Who said anything about without warning? How can you possibly have gotten
that from what I said? We're talking about making code changes to a large
multi-user application, not some casual css change. Of course you would
notify your clientele ahead of time.

I had no idea e-Learning ranked above international commerce for
uptime necessity.


~|
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:342522
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-23 Thread Jane Williams

Tell my managers I have been in the defence industry, but not at the 
moment. 


We supply e-learning to customers who need/expect to access it more or less 
24/7 
- they work shifts. Taking the system down for an entire hour, without warning, 
would not be acceptable. Five minutes once a week, yes, but any more would be 
for a big upgrade, not just regular maintenance. Still, if a  big upgrade is 
what we're talking about, then we inform them, give them a weeks notice, and 
take it down for the day. I'm not doing go-live and full testing in my sleep.



- Original Message 
From: Michael Grant 
To: cf-talk 
Sent: Wed, 23 February, 2011 14:45:15
Subject: Re: Feedback on this approach to "many sites, one codebase" (MSOC)


Really. Even banking sites come down for hours of maintenance. I suspect
whatever your sites are, your 24/7 with no exceptions is a policy vs. a true
necessity. Unless you are perhaps in the defence industry.

Live code push? *shudders*

On Wed, Feb 23, 2011 at 9:31 AM, Jane Williams
wrote:

>
> Our sites run  24/7: we have no maintenance window that size. I bet I'm not
> the
> only one, either.
>
>
>
> - Original Message 
> From: Michael Grant 
> To: cf-talk 
> Sent: Wed, 23 February, 2011 14:21:31
> Subject: Re: Feedback on this approach to "many sites, one codebase" (MSOC)
>
>
> Only if you roll your changes out while the site is live rather than during
> a maintenance window.
> Take the site down for an hour at 4am, push your code live and run your db
> updating scripts on each db.
> It shouldn't really be too big a deal.

~|
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:342521
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-23 Thread Michael Grant

Really. Even banking sites come down for hours of maintenance. I suspect
whatever your sites are, your 24/7 with no exceptions is a policy vs. a true
necessity. Unless you are perhaps in the defence industry.

Live code push? *shudders*

On Wed, Feb 23, 2011 at 9:31 AM, Jane Williams
wrote:

>
> Our sites run  24/7: we have no maintenance window that size. I bet I'm not
> the
> only one, either.
>
>
>
> - Original Message 
> From: Michael Grant 
> To: cf-talk 
> Sent: Wed, 23 February, 2011 14:21:31
> Subject: Re: Feedback on this approach to "many sites, one codebase" (MSOC)
>
>
> Only if you roll your changes out while the site is live rather than during
> a maintenance window.
> Take the site down for an hour at 4am, push your code live and run your db
> updating scripts on each db.
> It shouldn't really be too big a deal.
>
> On Wed, Feb 23, 2011 at 7:33 AM, Jason Fisher  wrote:
>
> >
> > The big caveat I will give about have multiple databases with
> multi-tenant
> > code is that any change to the shared code has to be reflected in every
> > single database simultaneously.  And that's a challenge and a half.
> >
> > 
> >
> > From: "Rick Faircloth" 
> > Sent: Tuesday, February 22, 2011 10:58 PM
> > To: "cf-talk" 
> > Subject: RE: Feedback on this approach to "many sites, one codebase"
> > (MSOC)
> >
> > 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 a

Re: cfheader and foreign characters [spamtrap bayes][spamtrap heur]

2011-02-23 Thread Paul Hastings

On 2/23/2011 9:12 PM, =?ISO-8859-1?Q?Claude_Schn=E9egans wrote:

> If it contains special characters above 127, they will be interpreted in the 
> default character set of the operating system.

unless there's a BOM.

> For instance under Windows, il will probably be Window 1252 equivalent to ISO 
> 8859-1, ie. R�publique.

no, these are not equivalent. windows 1252 is a superset of iso-8859-1.

> If it is actually encoded in UTF-8, it will still be read as plain ASCII 
> characters, thus things like R�publique.

not sure what to make of this, by "it" you mean the OS? or some text editor/cf? 
if a text editor/cf is told or can guess the encoding it will read it 
successfully.

~|
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:342519
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Multiline - Dynamic Tabs

2011-02-23 Thread fun and learning

Hi All,

I am creating dynamic tabs using Coldfusion, HTML(ul and li). I was just 
wondering if its possible to make them like windows styled tabs, that is if a 
tab in first line is selected, I want to push it to the second line. The 
problem I have is I am creating dynamic tabs. Is it possible using 
Javascript/jquery, to calculate the widths of each tab and determine at which 
point a second line of tabs would be started?

Here is a sample code of what I am doing.

http://jsfiddle.net/syEJx/5/ 

~|
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:342518
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-23 Thread Jane Williams

Our sites run  24/7: we have no maintenance window that size. I bet I'm not the 
only one, either.



- Original Message 
From: Michael Grant 
To: cf-talk 
Sent: Wed, 23 February, 2011 14:21:31
Subject: Re: Feedback on this approach to "many sites, one codebase" (MSOC)


Only if you roll your changes out while the site is live rather than during
a maintenance window.
Take the site down for an hour at 4am, push your code live and run your db
updating scripts on each db.
It shouldn't really be too big a deal.

On Wed, Feb 23, 2011 at 7:33 AM, Jason Fisher  wrote:

>
> The big caveat I will give about have multiple databases with multi-tenant
> code is that any change to the shared code has to be reflected in every
> single database simultaneously.  And that's a challenge and a half.
>
> 
>
> From: "Rick Faircloth" 
> Sent: Tuesday, February 22, 2011 10:58 PM
> To: "cf-talk" 
> Subject: RE: Feedback on this approach to "many sites, one codebase"
> (MSOC)
>
> 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";
>
> 
>
> 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 path

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

2011-02-23 Thread Michael Grant

Only if you roll your changes out while the site is live rather than during
a maintenance window.
Take the site down for an hour at 4am, push your code live and run your db
updating scripts on each db.
It shouldn't really be too big a deal.

On Wed, Feb 23, 2011 at 7:33 AM, Jason Fisher  wrote:

>
> The big caveat I will give about have multiple databases with multi-tenant
> code is that any change to the shared code has to be reflected in every
> single database simultaneously.  And that's a challenge and a half.
>
> 
>
> From: "Rick Faircloth" 
> Sent: Tuesday, February 22, 2011 10:58 PM
> To: "cf-talk" 
> Subject: RE: Feedback on this approach to "many sites, one codebase"
> (MSOC)
>
> 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";
>
> 
>
> 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.
>
> Th

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

2011-02-23 Thread Rick Faircloth

That's true...definitely something to take into consideration.

-Original Message-
From: Jason Fisher [mailto:ja...@wanax.com] 
Sent: Wednesday, February 23, 2011 7:34 AM
To: cf-talk
Subject: RE: Feedback on this approach to "many sites, one codebase" (MSOC)


The big caveat I will give about have multiple databases with multi-tenant 
code is that any change to the shared code has to be reflected in every 
single database simultaneously.  And that's a challenge and a half.







~|
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:342515
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-23 Thread Claude Schnéegans

 >>I'm trying to save a text file that has foreign characters.

You simply cannot specify a charset in a plain .txt file.
A text file is simply a string of characters in ASCII. Unlike an HTML page, it 
does not contain any header to specify a character set.
If it contains special characters above 127, they will be interpreted in the 
default character set of the operating system.
For instance under Windows, il will probably be Window 1252 equivalent to ISO 
8859-1, ie. République.
If the OS does not consider characters above 127, it will show an ? for every 
character above 127, ie. R?publique
On an Apple computer, it will be different.
If it is actually encoded in UTF-8, it will still be read as plain ASCII 
characters, thus things like 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:342514
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: IE8 Form Submit button not being passed

2011-02-23 Thread Michael Grant

I know I've run into this before with someone's legacy app. I generally
don't use the form.submit so it hasn't been an issue in my own code. I think
IIRC it has something to do with whether the submit button is clicked or if
the enter key is used to submit the form. Sorry if this is a red herring,
it's been a while.


On Wed, Feb 23, 2011 at 8:27 AM, John Pullam wrote:

>
> I am testing my application on an IE8 system running Win 7 and CF 9. I do
> not know if any of these are relevant but the problem does not occur on
> Firefox or Chrome.
>
> Essentially, IE is not passing the FORM.Submit to my post-back form
> processor. It passes everything else, including Submit.X and Y!!
>
> My form is as follows:
>
> 
> 
> First Name
>  Size="20" />
> Last Name
>  />
> 
> 
>  src="../Buttons/MSearch.png" />
> 
>
> When I get the postback on IE8, I use a cfdump to see what I got, and the
> FIELDNAMES for the form are: FIRSTNAME,LASTNAME,SUBMIT2,SUBMIT.X,SUBMIT.Y
> but not SUBMIT!!!
>
> As I use this technique in other applications to capture a post-back, I'm
> rather concerned. Am I doing something wrong?
>
>
> 

~|
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:342513
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: IE8 Form Submit button not being passed

2011-02-23 Thread Brian Cain

You could probably avoid a lot of code rewrites by changing from an image 
button to using styles and a background image. That is what I do and have been 
able to avoid that issue. 

Sent from my iPhoned

On Feb 23, 2011, at 7:43 AM, Phillip Duba  wrote:

> 
> Unfortunately John, no you aren't doing anything wrong in your base code
> that worked in IE6. I had to rewrite a number of applications for this very
> reason as our design team decided Image buttons were what we were going to
> use and I saw this behavior in newer browsers. Unlike other browsers that
> post both the .X, .Y and main variable, IE8 (and IE7, I think) don't. Yes,
> you will need to take this into account on all your applications,
> 
> Phil
> 
> On Wed, Feb 23, 2011 at 8:27 AM, John Pullam wrote:
> 
>> 
>> I am testing my application on an IE8 system running Win 7 and CF 9. I do
>> not know if any of these are relevant but the problem does not occur on
>> Firefox or Chrome.
>> 
>> Essentially, IE is not passing the FORM.Submit to my post-back form
>> processor. It passes everything else, including Submit.X and Y!!
>> 
>> My form is as follows:
>> 
>> 
>> 
>> First Name
>> > Size="20" />
>> Last Name
>> > />
>> 
>> 
>> > src="../Buttons/MSearch.png" />
>> 
>> 
>> When I get the postback on IE8, I use a cfdump to see what I got, and the
>> FIELDNAMES for the form are: FIRSTNAME,LASTNAME,SUBMIT2,SUBMIT.X,SUBMIT.Y
>> but not SUBMIT!!!
>> 
>> As I use this technique in other applications to capture a post-back, I'm
>> rather concerned. Am I doing something wrong?
>> 
>> 
>> 
> 
> 

~|
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:342512
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


Re: IE8 Form Submit button not being passed

2011-02-23 Thread Phillip Duba

Unfortunately John, no you aren't doing anything wrong in your base code
that worked in IE6. I had to rewrite a number of applications for this very
reason as our design team decided Image buttons were what we were going to
use and I saw this behavior in newer browsers. Unlike other browsers that
post both the .X, .Y and main variable, IE8 (and IE7, I think) don't. Yes,
you will need to take this into account on all your applications,

Phil

On Wed, Feb 23, 2011 at 8:27 AM, John Pullam wrote:

>
> I am testing my application on an IE8 system running Win 7 and CF 9. I do
> not know if any of these are relevant but the problem does not occur on
> Firefox or Chrome.
>
> Essentially, IE is not passing the FORM.Submit to my post-back form
> processor. It passes everything else, including Submit.X and Y!!
>
> My form is as follows:
>
> 
> 
> First Name
>  Size="20" />
> Last Name
>  />
> 
> 
>  src="../Buttons/MSearch.png" />
> 
>
> When I get the postback on IE8, I use a cfdump to see what I got, and the
> FIELDNAMES for the form are: FIRSTNAME,LASTNAME,SUBMIT2,SUBMIT.X,SUBMIT.Y
> but not SUBMIT!!!
>
> As I use this technique in other applications to capture a post-back, I'm
> rather concerned. Am I doing something wrong?
>
>
> 

~|
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:342511
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm


IE8 Form Submit button not being passed

2011-02-23 Thread John Pullam

I am testing my application on an IE8 system running Win 7 and CF 9. I do not 
know if any of these are relevant but the problem does not occur on Firefox or 
Chrome.

Essentially, IE is not passing the FORM.Submit to my post-back form processor. 
It passes everything else, including Submit.X and Y!!

My form is as follows:



First Name

Last Name






When I get the postback on IE8, I use a cfdump to see what I got, and the 
FIELDNAMES for the form are: FIRSTNAME,LASTNAME,SUBMIT2,SUBMIT.X,SUBMIT.Y but 
not SUBMIT!!!

As I use this technique in other applications to capture a post-back, I'm 
rather concerned. Am I doing something wrong?


~|
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:342510
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-23 Thread Jason Fisher

The big caveat I will give about have multiple databases with multi-tenant 
code is that any change to the shared code has to be reflected in every 
single database simultaneously.  And that's a challenge and a half.



From: "Rick Faircloth" 
Sent: Tuesday, February 22, 2011 10:58 PM
To: "cf-talk" 
Subject: RE: Feedback on this approach to "many sites, one codebase" 
(MSOC)

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";



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.houseoffus

Re: cfheader and foreign characters

2011-02-23 Thread Jochem van Dieten

On Tue, Feb 22, 2011 at 10:42 PM, Richard  Steele wrote:
> I'm trying to save a text file that has foreign characters.

If you want to instruct the browser to save a file instead of trying
to render it to the user, you need to set a content disposition in
combination with a MIME type of application/octet-stream. See RFC 2616
19.5.1.

Once your file is placed on the harddisk of the client computer, it is
up to the used application on the client computer to infer what
charset is in it. Some applications will just presume it is the
environment charset, some will presume it is a specific one (like
ISO-8859-1), some will try to do some logic. You may be able to help
that last category by making sure there is a BOM in your file:
http://unicode.org/faq/utf_bom.html#bom10

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/

~|
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:342508
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 [spamtrap bayes][spamtrap heur]

2011-02-23 Thread Paul Hastings

On 2/23/2011 4:42 AM, Richard Steele wrote:
> 

uh, is this text actually utf-8 (ie what editor, etc did you use to create this 
page)? because your code works fine (well with cfoutput added) from cfbuilder.


~|
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:342507
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm