Re: Any cfhttp gurus out there?

2008-07-17 Thread John Whish
Try adding these params:

cfhttpparam type=header name=Accept-Encoding value=* /
cfhttpparam type=Header name=TE value=deflate;q=0 /

Sounds like the response is gzipped by IIS.

I used to be able hit this link and get results with a cfdump...
http://www.dealsonwheels.com/dowrss/chevrolet_camaro.aspx

Now, all I get is a value of Connection Failure for cfhttp.fileconent.
I know the link works since I can add it to FireFox and a Live Bookmark
is created. Any ideas? Is it an encoding or a useragent issue? I'm on a
CF8 box. 

Thanks, Che 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


cfgridcolumn href question

2008-07-17 Thread Lawrence Mak
Hi,
I am trying to write a cfgrid in a layout-tab, with column links to other tabs 
in the layout. However, the href attribute for cfgridcolumn only allows url and 
column to other pages, not containers such as layout areas. Can anyone suggest 
other approach to achieve this? Thanks. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Interesting issue with competition

2008-07-17 Thread Will Swain
Morning all,

This is an interesting one. I have a estate agent client who runs a monthly
competition on their site - simple question with three possible answers. 

Anyway, they are getting 1,000's of entries a day to the competition,
because the url for it has been posted on various competition sites. This is
no good for them, and misses their point for running the competitions at
all. So we are looking for some technical solutions.

My first thought is something like this:

Append an encrypted timestamp to the url of the site menu link to the
competition page. On the competition page itself, have some code that
decrypts the timestamp, and only allows a competition entry within a set
time of the timestamp, say 10 minutes. This would allow people to enter the
competition from the site, but clicking on a link to the page from a forum
somewhere wouldn't work.

I know it's not foolproof, but it should help. Any other ideas?

Apologies for the slightly rambling post - I'm still on my first cup of
coffee!

Will Swain
Hot Horse Ltd


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Anybody have exerience with KickAssVPS.com?

2008-07-17 Thread Jochem van Dieten
Rick Faircloth wrote:
 Hmmm... let me look at ServerPronto's site...
 
 - Intel Pentium 4, 3 GHz (as opposed to a Quad Core Pentium)

You don't get a quad core pentium, you get a time-slice off a quad core 
pentium.


 - Only 6 email support tickets per month ($15 each for extra!)
 - 6 reboots ($29 each for extra!)

If either of those isn't enough, you shouldn't be running a server in 
the first place.


 - Windows 2003 Server - $26 per month (incl with KAVPS)

You never mentioned Windows was a requirement :)


 - MSSQL 2005 Standard - $99 per month (incl with KAVPS)

You have sufficient diskspace and RAM to install MSSQL 2005 Express on 
your own server. And I think the 1 GB space allotment isn't much with KAVPS.


 - Plesk for 100 Domains - $40 per month (incl with KAVPS)

Why would you need this? You have the root password.


 Am I looking at this correctly?

I find both options a bit fuzzy on the details of backup and restore.

All our SLA's for dedicated hosting include a provision that the client 
can ask us once every X months to proof that our backup procedures are 
correct by performing a restore within the response time from the SLA. 
Doing that is a great way to make sure your procedures are correct. With 
whatever plan you choose you should probably factor in the time and cost 
of a trial run of restoring just a database and the entire server.

Jochem

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Encypting and urlencoding

2008-07-17 Thread Will Swain
Strange one. Am I missing something here?

I have a function that returns an encrypted and urlencoded timestamp:

cffunction name=encryptTS returntype=string output=false

!--- returns an encrypted timestamp ---

cfset var encyptedTS = 

cfset encryptedTS = URLEncodedFormat(encrypt(now(),
'xxx'))

cfreturn encryptedTS

/cffunction

If I do this:

cfinvoke component=#Request.cfc_root#.utils method=encryptTS
returnvariable=encryptedTS

cfdump var=#encryptedTS# /

I get a correctly formed urlencoded string.

If I do this however:

a href=page.cfm?i=cfoutput#encryptedTS#/cfoutputa link/a

I get a string with the urlencoding removed. Is this expected behaviour? Do
I even need to urlencode my encrypted timestamp?


Will Swain



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Encypting and urlencoding

2008-07-17 Thread Will Swain
NOTE, this seems to be an issue in FF3. Not a problem in IE.



-Original Message-
From: Will Swain [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 12:20
To: CF-Talk
Subject: Encypting and urlencoding

Strange one. Am I missing something here?

I have a function that returns an encrypted and urlencoded timestamp:

cffunction name=encryptTS returntype=string output=false

!--- returns an encrypted timestamp ---

cfset var encyptedTS = 

cfset encryptedTS = URLEncodedFormat(encrypt(now(),
'xxx'))

cfreturn encryptedTS

/cffunction

If I do this:

cfinvoke component=#Request.cfc_root#.utils method=encryptTS
returnvariable=encryptedTS

cfdump var=#encryptedTS# /

I get a correctly formed urlencoded string.

If I do this however:

a href=page.cfm?i=cfoutput#encryptedTS#/cfoutputa link/a

I get a string with the urlencoding removed. Is this expected behaviour? Do
I even need to urlencode my encrypted timestamp?


Will Swain





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Interesting issue with competition

2008-07-17 Thread Eric Roberts
How about doing the link as a form submission rather than a hyperlink.  Then
you can also pass form variables that authenticate that it is from the site
and not someone spoofing the submission.

Eric

/*-Original Message-
/*From: Will Swain [mailto:[EMAIL PROTECTED]
/*Sent: Thursday, July 17, 2008 4:33 AM
/*To: CF-Talk
/*Subject: Interesting issue with competition
/*
/*Morning all,
/*
/*This is an interesting one. I have a estate agent client who runs a
/*monthly
/*competition on their site - simple question with three possible answers.
/*
/*Anyway, they are getting 1,000's of entries a day to the competition,
/*because the url for it has been posted on various competition sites. This
/*is
/*no good for them, and misses their point for running the competitions at
/*all. So we are looking for some technical solutions.
/*
/*My first thought is something like this:
/*
/*Append an encrypted timestamp to the url of the site menu link to the
/*competition page. On the competition page itself, have some code that
/*decrypts the timestamp, and only allows a competition entry within a set
/*time of the timestamp, say 10 minutes. This would allow people to enter
/*the
/*competition from the site, but clicking on a link to the page from a forum
/*somewhere wouldn't work.
/*
/*I know it's not foolproof, but it should help. Any other ideas?
/*
/*Apologies for the slightly rambling post - I'm still on my first cup of
/*coffee!
/*
/*Will Swain
/*Hot Horse Ltd
/*
/*
/*

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Interesting issue with competition

2008-07-17 Thread Will Swain
That's an interesting idea Eric, and considerably simpler to set up.

Thanks for the feedback. 


Will 

-Original Message-
From: Eric Roberts [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 13:01
To: CF-Talk
Subject: RE: Interesting issue with competition

How about doing the link as a form submission rather than a hyperlink.  Then
you can also pass form variables that authenticate that it is from the site
and not someone spoofing the submission.

Eric

/*-Original Message-
/*From: Will Swain [mailto:[EMAIL PROTECTED]
/*Sent: Thursday, July 17, 2008 4:33 AM
/*To: CF-Talk
/*Subject: Interesting issue with competition
/*
/*Morning all,
/*
/*This is an interesting one. I have a estate agent client who runs a
/*monthly /*competition on their site - simple question with three possible
answers.
/*
/*Anyway, they are getting 1,000's of entries a day to the competition,
/*because the url for it has been posted on various competition sites. This
/*is /*no good for them, and misses their point for running the competitions
at /*all. So we are looking for some technical solutions.
/*
/*My first thought is something like this:
/*
/*Append an encrypted timestamp to the url of the site menu link to the
/*competition page. On the competition page itself, have some code that
/*decrypts the timestamp, and only allows a competition entry within a set
/*time of the timestamp, say 10 minutes. This would allow people to enter
/*the /*competition from the site, but clicking on a link to the page from a
forum /*somewhere wouldn't work.
/*
/*I know it's not foolproof, but it should help. Any other ideas?
/*
/*Apologies for the slightly rambling post - I'm still on my first cup of
/*coffee!
/*
/*Will Swain
/*Hot Horse Ltd
/*
/*
/*



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Anybody have exerience with KickAssVPS.com?

2008-07-17 Thread Adrian Lynch
Mary Jo said:
This is one of the major reasons we went with KAVPS...they don't skimp on
the RAM. I personally just get a little leery about running CF, MySQL *and*
a mail server on 512MB of RAM. My customer's site which is a really
low-traffic site is typically using about 450MB (again though, that's Railo,
not sure how the usage with CF would compare). Granted, that amount is just
dedicated RAM and it can burst higher, but it's something to really
seriously look at, particularly if you have a high-traffic site. 


I'm on the 512MB plan with HMS and you're right, it isn't enough when you
start to do things like image resizing and PDF generation. The memory is
always maxing out.

I also get a *lot* of errors stating The custom tag top.cfm can't be found
which I put down to this lack of memory (It can't be my code!).

I was hoping a thread like this would come up as I'm looking to move to
another VPS with 1GB minimum.

But, as Will said, the live support is awesome. I've only once not been able
to talk to someone.

But, it hasn't always been great. I've had problems with the firewall and
felt like I've had to go over old ground with the person I'd currently be
talking to.

I've also had them change my password without telling me. Still amazed they
did that!

Rick, in your spec list for the deal KA gave you, it doesn't mention SQL
Server. Is this included? If so, is it Standard or Express?

Cheers.

Adrian



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


virtual mappings on the built in webserver under CF8

2008-07-17 Thread Leitch, Oblio
Ok, I just shifted to an Enterprise deployment of CF8 and I'm trying to
setup the built-in webserver (um, this is a development environment) to
match the old settings.  In my first round, I had a mapping for /*
pointing to my webroot, and a virtual mapping of /js pointing to a
different directory.  Now that it's in Enterprise mode, I can make one
mapping or the other work, but not both.  Does anyone have any
suggestions?

This email message may contain privileged and/or confidential information. If 
you are not the intended recipient(s), you are hereby notified that any 
dissemination, distribution, or copying of this email message is strictly 
prohibited. If you have received this message in error, please immediately 
notify the sender and delete this email message from your computer.

CAUTION: The Agency of Human Services cannot ensure the confidentiality or 
security of email transmissions.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Interesting issue with competition

2008-07-17 Thread Ian Skinner
You could also inspect the referer on the action page and only accept 
responses that came from the prevoius page.

Again not foolproof, but 99% of average Joes are not going to bother 
spoofing the referer.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Interesting issue with competition

2008-07-17 Thread Will Swain
Ah, I should add that this doesn't seem to be a problem. The entries are all
coming from the correct action page - I checked. It's just that the link to
that page has been posted on a number of competition message boards.

Cheers

will

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 14:25
To: CF-Talk
Subject: Re: Interesting issue with competition

You could also inspect the referer on the action page and only accept
responses that came from the prevoius page.

Again not foolproof, but 99% of average Joes are not going to bother
spoofing the referer.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Interesting issue with competition

2008-07-17 Thread Yuliang Ruan
So what's the purpose of restricting the time?  Is it because the competition 
is only valid at that time?  Would a valid customer not do the competition 
outside of that timeframe?

I would say you should give each sent out email a encoded serial number in the 
URL and record when that user's serial has already been in the competition.  
That way you can't post that URL to message boards and have bunch of anonymous 
unrelated people hitting the competition. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


url scope and variables named url

2008-07-17 Thread Rick Root
I'm working on a fairly large application - that I didn't write - and
some of the database tables have fields named url.

Which makes it really difficult to reference the url scope inside a query loop.

cfquery name=fooselect * from mytable/cfquery!--- columns
returned include url ---
cfloop query=foo
cfif isDefined(url.somevar) ... /cfif
/cfloop

That will cause a You are attempging to dereference a scalar variable
as a structure with elements... error.

ULTIMATELY the solution is to change the field name from url to
something other than url and then change all the code that
references that.

For now .. is there any other way to reference the url Scope?  Like is
the url scope inside the variables scope or is it just a top level
scope?

Rick

-- 
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind
the scenes video at www.myspace.com/brianvanderark

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: url scope and variables named url

2008-07-17 Thread Wim Lemmens
Shouldn't you reference that column like foo.url?


On Thu, Jul 17, 2008 at 3:46 PM, Rick Root [EMAIL PROTECTED]
wrote:

 I'm working on a fairly large application - that I didn't write - and
 some of the database tables have fields named url.

 Which makes it really difficult to reference the url scope inside a query
 loop.

 cfquery name=fooselect * from mytable/cfquery!--- columns
 returned include url ---
 cfloop query=foo
cfif isDefined(url.somevar) ... /cfif
 /cfloop

 That will cause a You are attempging to dereference a scalar variable
 as a structure with elements... error.

 ULTIMATELY the solution is to change the field name from url to
 something other than url and then change all the code that
 references that.

 For now .. is there any other way to reference the url Scope?  Like is
 the url scope inside the variables scope or is it just a top level
 scope?

 Rick

 --
 Rick Root
 New Brian Vander Ark Album, songs in the music player and cool behind
 the scenes video at www.myspace.com/brianvanderark

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Interesting issue with competition

2008-07-17 Thread Will Swain
Thinking about this a little more, the easiest thing would be to block
entries from the competition message boards - i.e. just look for those
addresses in the referrer.

All this timestamp malarkey is just over egging the pudding!

-Original Message-
From: Yuliang Ruan [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 14:41
To: CF-Talk
Subject: Re: Interesting issue with competition

So what's the purpose of restricting the time?  Is it because the
competition is only valid at that time?  Would a valid customer not do the
competition outside of that timeframe?

I would say you should give each sent out email a encoded serial number in
the URL and record when that user's serial has already been in the
competition.  That way you can't post that URL to message boards and have
bunch of anonymous unrelated people hitting the competition. 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfgridcolumn href question

2008-07-17 Thread gary gilbert
If I understand correctly when a user clicks on a column in your grid you
want focus to change to a specific tab?

You should be able to get a reference to the underlying ext object and then
get a reference to the column model, once you have the reference you can add
event listeners to do what you want.

You will probably have to do your reconfiguring of the grid using the
ajaxOnLoad() function to call your reconfigure js function.


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

On Thu, Jul 17, 2008 at 10:49 AM, Lawrence Mak [EMAIL PROTECTED]
wrote:

 Hi,
 I am trying to write a cfgrid in a layout-tab, with column links to other
 tabs in the layout. However, the href attribute for cfgridcolumn only allows
 url and column to other pages, not containers such as layout areas. Can
 anyone suggest other approach to achieve this? Thanks.

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: CFWindow and CFForm Submit

2008-07-17 Thread gary gilbert
Cfwindow is just a layer in the entire document, you should be able to call
the refresh method on your grid in your parent window by using javascript
after you submit your form in the cfwindow, you just need to have a js
function that exposes this functionality.

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

On Thu, Jul 17, 2008 at 3:08 AM, Michael Fisher [EMAIL PROTECTED]
wrote:

 Hi,

 I have looked around and have found documentation stating that if I have a
 cfwindow with a cfform, the form will submit in the cfwindow and will NOT
 refresh the parent page. Is this correct. I need the parent page to refresh
 because I have a query setup when you initially hit the page. The cfwindow
 contains a cfgrid that populates from this query. When grid data is changed,
 the parent window never refreshes and the old data is still populated into
 the grid. When i manually refresh the parent page, the new data can now be
 seen.

 Is there a way to refresh the parent page when using cfform and cfwindow?

 Thanks!

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: url scope and variables named url

2008-07-17 Thread Ian Skinner
Don't use isDefined() here, or most places for that matter, it does the 
ColdFusion Scope Search and that is what is killing your code.

Try structKeyExists() instead.

I.E. cfif structKeyExists(url,'somevar').../cfif

This should not get confused by the url columns in the record set.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfprocparam and varchar(max)

2008-07-17 Thread gary gilbert
Variable is a valid attribute but its the coldfusion variable name you want
to assign the results of an OUT or INOUT parameter.  CS is right in you case
you should be using the value attribute.

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

On Thu, Jul 17, 2008 at 1:02 AM, Scott Brady [EMAIL PROTECTED] wrote:

 I have a stored procedure in SQL Server 2005 which takes two input
 parameters, one of which is a varchar(max) data type.  When I try to
 call the procedure with cfstoredproc, I get an error Operand type
 clash: text is incompatible with int .  If I use cfquery to execute
 the procedure (using cfqueryparams), it runs just fine. I'm assuming
 it's something with the varchar(max) datatype.  Any ideas what it
 could be?  Searching hasn't resulted in any issues.

 Here's the signature of the procedure:

 CREATE PROCEDURE dbo.prc_MyProc
@affiliateID INTEGER,
@xmlText VARCHAR(MAX)
 AS
 BEGIN
 
 END

 Here's the cfquery which works:

 cfquery name=local.qResults datasource=#this.dsn#
EXECUTE dbo.prc_myProc
cfqueryparam value=#arguments.affiliateID#
 cfsqltype=cf_sql_integer /,
cfqueryparam value=#arguments.xmlText#
 cfsqltype=cf_sql_clob /
 /cfquery

 And here's the storedproc which doesn't:
 cfstoredproc procedure=prc_myProc datasource=#this.dsn#
 result=local.qResults
cfprocparam dbvarname=@affiliateID
 variable=#val(arguments.affiliateID)# cfsqltype=CF_SQL_INTEGER /
cfprocparam dbvarname=@xmlText value=#arguments.xmlText#
 cfsqltype=CF_SQL_CLOB /
 /cfstoredproc

 (and, sure, I could use cfquery to do it, but I prefer
 cfstoredproc to call procedures)

 Scott

 --
 -
 Scott Brady
 http://www.scottbrady.net/


 
 Now playing on iTunes: Phil Collins - Take Me Home
 http://foxytunes.com/artist/phil+collins/track/take+me+home

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Anybody have exerience with KickAssVPS.com?

2008-07-17 Thread Rick Faircloth
Thanks for the info, Mary Jo!

Rick

 -Original Message-
 From: Mary Jo Sminkey [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 17, 2008 1:27 AM
 To: CF-Talk
 Subject: Re: Anybody have exerience with KickAssVPS.com?
 
 I'm considering moving to a new VPS provider and found KickAssVPS.com on 
 Google.
 I haven't heard of them before or seen them mentioned on the list, so I 
 thought
 I'd ask about experience.  Offerings and price looks good, including CF 8.
 
 Rick, I've been using KickAss for a few months now with a client of mine and 
 we've been very happy
with
 them. They know ColdFusion (always a plus, when you've had to deal with 
 places like GoDaddy, ha!)
and
 I've always gotten fast support when needed. I'm running Railo on our server 
 and have really had
only
 one instance where we had some downtime, which was pretty insignificant. I 
 did a fair amount of
research
 before using them and found all stellar reviews, but they appear to be fairly 
 new, so it's a
fairly
 small sample size. I've since only seen one bad less-than-happy review of 
 them, but with our
experience
 so far, I don't hesitate to recommend them.
 
 
 --- Mary Jo
 
 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Anybody have exerience with KickAssVPS.com?

2008-07-17 Thread Gerald Guido
 - Plesk for 100 Domains - $40 per month (incl with KAVPS)

 Why would you need this? You have the root password.

So the phone doesn't ring every time someone needs a new email account or
forgets their password . That gets old real fast.

~G~

-- 
If everything seems under control, you're not going fast enough
-- Mario Andretti


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Anybody have exerience with KickAssVPS.com?

2008-07-17 Thread Rick Faircloth
Yes!  512MB!  With 512GB of RAM, who would need hard drive space!  :o)

Rick

 -Original Message-
 From: Mary Jo Sminkey [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 17, 2008 1:38 AM
 To: CF-Talk
 Subject: Re: Anybody have exerience with KickAssVPS.com?
 
 It's quite a jump, but I've got to have a reliable server and service.
 HostMySite.com and KickAssVPS.com are in the running right now.
 
 HostMySite.com - $129 / month for 10GB drive space and 512GB RAM
 KickAssVPS.com - $155 / month for 20GB drive space and 2GB RAM
 
 
 I assume you mean HMS is 512MB, not GB. ;-)
 
 This is one of the major reasons we went with KAVPS...they don't skimp on the 
 RAM. I personally
just get
 a little leery about running CF, MySQL *and* a mail server on 512MB of RAM. 
 My customer's site
which is
 a really low-traffic site is typically using about 450MB (again though, 
 that's Railo, not sure how
the
 usage with CF would compare). Granted, that amount is just dedicated RAM and 
 it can burst higher,
but
 it's something to really seriously look at, particularly if you have a 
 high-traffic site.
 
 
 --- Mary Jo
 
 
 
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfprocparam and varchar(max)

2008-07-17 Thread Scott Brady
On Wed, Jul 16, 2008 at 5:36 PM, C S [EMAIL PROTECTED] wrote:
   cfprocparam dbvarname=@affiliateID
variable=#val(arguments.affiliateID)# cfsqltype=CF_SQL_INTEGER /

 I think the attribute should be value not variable.  Also, I thought 
 dbvarname was deprecated ?


*SMACK*

Thanks for that.

(It was obviously time for me to go home by that point.)

-- 
-
Scott Brady
http://www.scottbrady.net/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: url scope and variables named url

2008-07-17 Thread Rick Root
On Thu, Jul 17, 2008 at 10:00 AM, Ian Skinner [EMAIL PROTECTED] wrote:
 Don't use isDefined() here, or most places for that matter, it does the
 ColdFusion Scope Search and that is what is killing your code.

 Try structKeyExists() instead.

 I.E. cfif structKeyExists(url,'somevar').../cfif

 This should not get confused by the url columns in the record set.


Actually, it does.

coldfusion still checks the query scope first.

cftry
cfset foo = queryNew(id,url,integer,varchar)
cfset QueryAddRow(foo)
cfset querySetCell(foo,id,1)
cfset querySetCell(foo,url,http://www.houseoffusion.com;)
cfloop query=foo
cfif structKeyExists(url,bar)url.bar exists!/cfif
cfdump var=#url.bar#
/cfloop
cfcatch type=anycfdump var=#cfcatch#/cfcatch
/cftry

This generates the dereferencing error on the structKeyExists line ...
because it's looking at url in the query, not the url scope.

Rick

-- 
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind
the scenes video at www.myspace.com/brianvanderark

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: url scope and variables named url

2008-07-17 Thread JediHomer
How about putting

cfset strURL = URL /

at the top of the page, then when you need to reference the URL scope use strURL

hth


2008/7/17 Rick Root [EMAIL PROTECTED]:
 On Thu, Jul 17, 2008 at 10:00 AM, Ian Skinner [EMAIL PROTECTED] wrote:
 Don't use isDefined() here, or most places for that matter, it does the
 ColdFusion Scope Search and that is what is killing your code.

 Try structKeyExists() instead.

 I.E. cfif structKeyExists(url,'somevar').../cfif

 This should not get confused by the url columns in the record set.


 Actually, it does.

 coldfusion still checks the query scope first.

 cftry
cfset foo = queryNew(id,url,integer,varchar)
cfset QueryAddRow(foo)
cfset querySetCell(foo,id,1)
cfset querySetCell(foo,url,http://www.houseoffusion.com;)
cfloop query=foo
cfif structKeyExists(url,bar)url.bar exists!/cfif
cfdump var=#url.bar#
/cfloop
cfcatch type=anycfdump var=#cfcatch#/cfcatch
 /cftry

 This generates the dereferencing error on the structKeyExists line ...
 because it's looking at url in the query, not the url scope.

 Rick

 --
 Rick Root
 New Brian Vander Ark Album, songs in the music player and cool behind
 the scenes video at www.myspace.com/brianvanderark

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Anybody have exerience with KickAssVPS.com?

2008-07-17 Thread Rick Faircloth
  - Intel Pentium 4, 3 GHz (as opposed to a Quad Core Pentium)
 
 You don't get a quad core pentium, you get a time-slice off a quad core
 pentium.

True, but a slice off a quad core is better than a slice off a P4...


  - Only 6 email support tickets per month ($15 each for extra!)
  - 6 reboots ($29 each for extra!)
 
 If either of those isn't enough, you shouldn't be running a server in
 the first place.

I'm assuming that the problems I would be addressing are on their end, not mine.
If their hardware or installed software is misbehaving, then that shouldn't be
on my dime, unless I caused the problem.


  - Windows 2003 Server - $26 per month (incl with KAVPS)
 
 You never mentioned Windows was a requirement :)

Yes, I'm a Windows Only guy...


  - MSSQL 2005 Standard - $99 per month (incl with KAVPS)
 
 You have sufficient diskspace and RAM to install MSSQL 2005 Express on
 your own server. And I think the 1 GB space allotment isn't much with KAVPS.

I don't use MSSQL anyway...I use MySQL 5.  So the $99 wouldn't apply in
my situation, but for other considering the difference who use MSSQL, I felt
it was worth noting.


  - Plesk for 100 Domains - $40 per month (incl with KAVPS)
 
 Why would you need this? You have the root password.

Never needed it, but just trying to compare what I get with both
for the price.  Leave out the cost in the comparison and that's would
seem to be an unfair strike again KAVPS, as they include it for free.


 I find both options a bit fuzzy on the details of backup and restore.

I didn't address backup and restore in the comparison, but here are the details:

KAVPS:

Backup and Restore
Self-administered incremental and scheduled backup capability comes
as a part of the feature set. Backups enable quick restoration of
each VE without support intervention.

VE Backup/Restore
Backup and restore the VE from the backup including all system and user files

ServerPronto:

System Restore:  $39


I backup my own data and files daily, anyway.  I don't backup the VPS, but with
either vendor, I'm sure they'd be able to get it back up quickly.  Then, if
necessary, I'd be able to put the data and files back on immediately.


VPS's, as opposed to dedicated servers, supply everything I need currently,
with a better price point, by far.  In the future, dedicated servers may
be the way to go for my needs.

Thanks for the points you made, Jochem, and for furthering the discussion
and understanding.

Rick


 -Original Message-
 From: Jochem van Dieten [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 17, 2008 6:34 AM
 To: CF-Talk
 Subject: Re: Anybody have exerience with KickAssVPS.com?
 
 Rick Faircloth wrote:
  Hmmm... let me look at ServerPronto's site...
 
  - Intel Pentium 4, 3 GHz (as opposed to a Quad Core Pentium)
 
 You don't get a quad core pentium, you get a time-slice off a quad core
 pentium.





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Interesting issue with competition

2008-07-17 Thread Yuliang Ruan
well...yeabut that wouldn't be maintainable unless you want to keep adding 
on url's to your blacklist. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Interesting issue with competition

2008-07-17 Thread Will Swain
Indeed. As a quick and dirty fix though it's got to be the easiest way. And
checking their logfiles, most of the traffic is coming from two domains.

-Original Message-
From: Yuliang Ruan [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 15:48
To: CF-Talk
Subject: Re: Interesting issue with competition

well...yeabut that wouldn't be maintainable unless you want to keep
adding on url's to your blacklist. 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: url scope and variables named url

2008-07-17 Thread morgan l
What about using the Struct/Array type reference: cfif
IsDefined(url[foo]).../cfif?


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Anybody have exerience with KickAssVPS.com?

2008-07-17 Thread Rick Faircloth
I was concerned about the 512MB RAM I've been using, too.  I haven't put
my more demanding CF 8 sites into full operation on the VPS I've been
using, but I'll be a *lot* more comfortable with 2GB's!

MSSQL on KAVPS:  The feature list just mentions MSSQL 2005.  Don't know
whether it's Express or Standard. $10 for 1Gig per month.  For my deal,
I got the MSSQL and MySQL for free.  The MSSQL really wasn't an issue
for me, since I use MySQL 5 excusively.
http://www.kickassvps.com/services/windows_vps/plans.php

Rick


 
 Rick, in your spec list for the deal KA gave you, it doesn't mention SQL
 Server. Is this included? If so, is it Standard or Express?
 
 Cheers.
 
 Adrian



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Interesting issue with competition

2008-07-17 Thread Ian Skinner
Will Swain wrote:
 Indeed. As a quick and dirty fix though it's got to be the easiest way. And
 checking their logfiles, most of the traffic is coming from two domains.
But why try and keep an ever increasing list of domains that it can not 
come from rather then just confirm that it comes from the consistent one 
domain it can come from?

I.E. Instead of a allowing all except a blacklist of blocked domains, 
block all except the one on a white list that is allowed.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Interesting issue with competition

2008-07-17 Thread Will Swain
Got ya. That may fit with their scenario.

Thanks guys. 

-Original Message-
From: Ian Skinner [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 16:01
To: CF-Talk
Subject: Re: Interesting issue with competition

Will Swain wrote:
 Indeed. As a quick and dirty fix though it's got to be the easiest 
 way. And checking their logfiles, most of the traffic is coming from two
domains.
But why try and keep an ever increasing list of domains that it can not come
from rather then just confirm that it comes from the consistent one domain
it can come from?

I.E. Instead of a allowing all except a blacklist of blocked domains, block
all except the one on a white list that is allowed.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: virtual mappings on the built in webserver under CF8

2008-07-17 Thread Leitch, Oblio
Still working on this; seems to have something to do with the servlet
configs.  Way over my head.  What I know is, in the
{jrun_root}/servers/{instance_name}/cfusion-ear/cfusion-war/WEB-INF/jrun
-web.xml
If I add:
virtual-mapping
resource-path//resource-path
system-pathD:\\myRoot/system-path
/virtual-mapping

I can run /myfile.cfm, but *not* /myfile.htm (file not found by
jrun.servlet.file.FileServlet.service)

If I make it:

virtual-mapping
resource-path/*/resource-path
system-pathD:\\myRoot/system-path
/virtual-mapping

I can run /myfile.htm, but *not* /myfile.cfm (file not found by
jrun.servlet.ServletInvoker.invoke)

This is all very confusing.





-Original Message-
From: Leitch, Oblio [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 17, 2008 9:06 AM
To: CF-Talk
Subject: virtual mappings on the built in webserver under CF8

Ok, I just shifted to an Enterprise deployment of CF8 and I'm trying to
setup the built-in webserver (um, this is a development environment) to
match the old settings.  In my first round, I had a mapping for /*
pointing to my webroot, and a virtual mapping of /js pointing to a
different directory.  Now that it's in Enterprise mode, I can make one
mapping or the other work, but not both.  Does anyone have any
suggestions?

This email message may contain privileged and/or confidential
information. If you are not the intended recipient(s), you are hereby
notified that any dissemination, distribution, or copying of this email
message is strictly prohibited. If you have received this message in
error, please immediately notify the sender and delete this email
message from your computer.

CAUTION: The Agency of Human Services cannot ensure the confidentiality
or security of email transmissions.



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: loop over list question

2008-07-17 Thread Rachel B
Carl,

Will Brian Kotek's FormUtils help only with the problem i was having earlyer.

where it does  this
serial 101, 202, ticket no:5 model no: test, test2

an needs do this
serial 101 ticket no: 5 model no:test
serial 202 ticket no: 5 model no:test2

or will this help with my new problem of lets say they did this

serial: 101 ticket no: 5 model no:
serial: 202 ticket no: 5 model no: test

if i leave model number blank in serial 101,an put a model no in 202. what will 
happen is it will put the model no from serial 202 in serial 101 and leave 
serial 202 blank.

Thank you,
Rachel 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: virtual mappings on the built in webserver under CF8

2008-07-17 Thread Will Tomlinson
 Ok, I just shifted to an Enterprise deployment of CF8 and I'm trying 
 to
 setup the built-in webserver (um, this is a development environment) 
 to

I would scrap the built-in webserver and install Apache. You can find some 
threads in the archives where we talked about this subject. 

I did it after butting my head against the wall over the built-in server. I 
finally got pissed off enough that I installed Apache, and I'm much happier 
since. 

hth,
Will


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Regex question

2008-07-17 Thread Will Tomlinson
Let's say I've got a chunk of source code like so:


form name=frmLogin action=index.cfm?action=tomlinson.setTestForm 
method=post
  table width=45% align=left border=0 cellpadding=5 cellspacing=1 
class=subHeader
   tr valign=middle bgcolor=ff
td width=20% align=rightUsername/td
td width=20% align=leftinput class=req type=text name=usrID 
size=20 value=#variables.frmData.usrID# //td
   /tr
 
etc... 

So it can have almost any kind of character in it. 

Now, let's say I want to check the beginning for whatever, in this case, I want 
a match if it has a newline or carriage return at the beginning. 

(?i)^[\r\s]+[.\r\s\S]*

With this regex i'm trying to say, look for the newline/tab/c.return at the 
start of the text, and allow ANYthing afterwards. I don't care what comes 
after, allow it. 

My problem is understanding the \S (non whitespace) in the 2nd []. If I remove 
it, I don't have a match. if I include it,I DO have a match. What is in that 
chunk of text that isn't being matched, that .\r\s won't match. 

What's the best way to say look, I don't care what comes AFTER this specific 
piece of the regex that matches. Allow EVERYthing.

Make sense?

Thanks,
Will  



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: loop over list question

2008-07-17 Thread Carl Von Stetten
Rachel,

I believe it would, but you would have to modify your form structure a 
bit.  If you download the files from RIAForge and run them, you'll get a 
feel for how you might name your fields, and how the data will appear 
when submitted.

Carl

Rachel B wrote:
 Carl,

 Will Brian Kotek's FormUtils help only with the problem i was having earlyer.

 where it does  this
 serial 101, 202, ticket no:5 model no: test, test2

 an needs do this
 serial 101 ticket no: 5 model no:test
 serial 202 ticket no: 5 model no:test2

 or will this help with my new problem of lets say they did this

 serial: 101 ticket no: 5 model no:
 serial: 202 ticket no: 5 model no: test

 if i leave model number blank in serial 101,an put a model no in 202. what 
 will happen is it will put the model no from serial 202 in serial 101 and 
 leave serial 202 blank.

 Thank you,
 Rachel 

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfcatch

2008-07-17 Thread Brian Dumbledore
 I always thought any error generated can be cfdump'd by dumping 
 cfcatch obj. Every now and then I get [unknown type] when I dump 
 cfcatch and that always stumped me. However, when I output cfcatch.
 Message and cfcatch.Detail, they always work. What am I missing?? I 
 see it mostly on CFMX 

Charlie and Isaac,

Thanks for your time.. 
We do use CF8 now, but there are still clients from 6.1 through 8. I will apply 
the hotfix on the server. The structappend solution is interesting. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Anybody have exerience with KickAssVPS.com?

2008-07-17 Thread Gerald Guido
Mary Jo,

 again though, that's Railo,

I know this is a bit of a thread hijack... Sorry about that, But I am super
curious how things have been working out using Railo in a production
Environment..

What has been your experience been like using Railo? Did you run it as a
stand alone server or in conjunction with Apache or IIS or Tomcat?  Have you
used it with hosting automation software like Plesk, Helm etc?

Thanx
~G~




 This is one of the major reasons we went with KAVPS...they don't skimp on
 the RAM. I personally just get a little leery about running CF, MySQL *and*
 a mail server on 512MB of RAM. My customer's site which is a really
 low-traffic site is typically using about 450MB (again though, that's Railo,
 not sure how the usage with CF would compare). Granted, that amount is just
 dedicated RAM and it can burst higher, but it's something to really
 seriously look at, particularly if you have a high-traffic site.


 --- Mary Jo




 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Anybody have exerience with KickAssVPS.com?

2008-07-17 Thread Dave Watts
  You don't get a quad core pentium, you get a time-slice off a quad 
  core pentium.
 
 True, but a slice off a quad core is better than a slice off a P4...

If it's a dedicated server, you get the whole thing, not a slice. You have
no idea how many VMs are sharing that quad core, do you?

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

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

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: Anybody have exerience with KickAssVPS.com?

2008-07-17 Thread Rick Faircloth
No, not at this point.  I haven't dug around to try to find out, but I can ask.

Perhaps it's only 4 and I get an entire core to myself!  :o)

Rick

 -Original Message-
 From: Dave Watts [mailto:[EMAIL PROTECTED]
 Sent: Thursday, July 17, 2008 1:35 PM
 To: CF-Talk
 Subject: RE: Anybody have exerience with KickAssVPS.com?
 
   You don't get a quad core pentium, you get a time-slice off a quad
   core pentium.
 
  True, but a slice off a quad core is better than a slice off a P4...
 
 If it's a dedicated server, you get the whole thing, not a slice. You have
 no idea how many VMs are sharing that quad core, do you?
 
 Dave Watts, CTO, Fig Leaf Software
 http://www.figleaf.com/
 
 Fig Leaf Software provides the highest caliber vendor-authorized
 instruction at our training centers in Washington DC, Atlanta,
 Chicago, Baltimore, Northern Virginia, or on-site at your location.
 Visit http://training.figleaf.com/ for more information!
 
 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


cfloop

2008-07-17 Thread Kenny Kinds
greetings,

I have some code that takes a string and breaks it into to components and set 
each component into a seperate variable.

This code was set up to only take one string and perform this function.

Now they want me allow the user to select multiple items from a select box 
which adds more values to my string and screws up my query.

I tried looping through the code to seperat each value when it encounters a 
comma but it only processes the last item picked.

I've tried using the ListGetAt finction but no luck.

any thoughts?

code:
cfset SelVal = trim(form.AppRegDS)!---set Form variable--
cfset qualifiedList1 = ListQualify(SelVal,,)

cfloop list=#qualifiedList1# index=ListElement delimiters='

cfset position = Find(---,ListElement)!-Look for this value
cfset variable.App = Mid(ListElement,1, position-1)
cfset variable.Region = Mid(ListElement,position+3,Len(ListElement)) 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Regex question

2008-07-17 Thread Sonny Savage
I, for one, am having trouble understanding what you're trying to
accomplish.  I could probably help you if I understood the purpose/goal of
your regular expression.

Assuming that you have this content loaded into a variable, you're not
reading a line at a time from a file, and you're wanting to find new lines
and leading white-space I'd search like this (also matches white-space at
the beginning and end of the file and at the end of a line):
((^|\s*[\r\n]+)\s|\s+$)

Disclaimer: I haven't tested the regex, but it should work as advertised.

On Thu, Jul 17, 2008 at 11:18 AM, Will Tomlinson [EMAIL PROTECTED]
wrote:

 Let's say I've got a chunk of source code like so:


 form name=frmLogin action=index.cfm?action=tomlinson.setTestForm
 method=post
  table width=45% align=left border=0 cellpadding=5 cellspacing=1
 class=subHeader
   tr valign=middle bgcolor=ff
td width=20% align=rightUsername/td
td width=20% align=leftinput class=req type=text name=usrID
 size=20 value=#variables.frmData.usrID# //td
   /tr

 etc...

 So it can have almost any kind of character in it.

 Now, let's say I want to check the beginning for whatever, in this case, I
 want a match if it has a newline or carriage return at the beginning.

 (?i)^[\r\s]+[.\r\s\S]*

 With this regex i'm trying to say, look for the newline/tab/c.return at the
 start of the text, and allow ANYthing afterwards. I don't care what comes
 after, allow it.

 My problem is understanding the \S (non whitespace) in the 2nd []. If I
 remove it, I don't have a match. if I include it,I DO have a match. What is
 in that chunk of text that isn't being matched, that .\r\s won't match.

 What's the best way to say look, I don't care what comes AFTER this
 specific piece of the regex that matches. Allow EVERYthing.

 Make sense?

 Thanks,
 Will



 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfloop

2008-07-17 Thread Charlie Griefer
On Thu, Jul 17, 2008 at 10:58 AM, Kenny Kinds [EMAIL PROTECTED] wrote:

 greetings,

 I have some code that takes a string and breaks it into to components and
 set each component into a seperate variable.

 This code was set up to only take one string and perform this function.

 Now they want me allow the user to select multiple items from a select box
 which adds more values to my string and screws up my query.

 I tried looping through the code to seperat each value when it encounters a
 comma but it only processes the last item picked.

 I've tried using the ListGetAt finction but no luck.

 any thoughts?

 code:
 cfset SelVal = trim(form.AppRegDS)!---set Form variable--
 cfset qualifiedList1 = ListQualify(SelVal,,)

 cfloop list=#qualifiedList1# index=ListElement delimiters='

 cfset position = Find(---,ListElement)!-Look for this value
 cfset variable.App = Mid(ListElement,1, position-1)
 cfset variable.Region = Mid(ListElement,position+3,Len(ListElement))



not sure what you're trying to do in your code.

what is the listQualify() meant to do?  if you're trying to create a comma
delimited list from a string, i'd use listChangeDelims() and change the
spaces to commas.  listQualify(), as you're using it, isn't going to give
you what you want.  you might want to try outputting your variables at
different points in the code to see that the values are what you're
expecting (i think they won't be).

another point to raise is that a string is already a list, just delimited
with a space instead of a comma.  really not much point in changing the
delims when you've got a workable list already.

also not at all sure why you're using a single quote as the delimiter in
your list-based cfloop?

might be easier if you show us what input you're receiving, and then show us
what the desired output/result should be?

-- 
A byte walks into a bar and orders a pint. Bartender asks him What's
wrong? Byte says Parity error. Bartender nods and says Yeah, I thought
you looked a bit off.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfloop

2008-07-17 Thread Kenny Kinds
On Thu, Jul 17, 2008 at 10:58 AM, Kenny Kinds [EMAIL PROTECTED] wrote:




not sure what you're trying to do in your code.

what is the listQualify() meant to do?  if you're trying to create a comma
delimited list from a string, i'd use listChangeDelims() and change the
spaces to commas.  listQualify(), as you're using it, isn't going to give
you what you want.  you might want to try outputting your variables at
different points in the code to see that the values are what you're
expecting (i think they won't be).

another point to raise is that a string is already a list, just delimited
with a space instead of a comma.  really not much point in changing the
delims when you've got a workable list already.

also not at all sure why you're using a single quote as the delimiter in
your list-based cfloop?

might be easier if you show us what input you're receiving, and then show us
what the desired output/result should be?

-- 
A byte walks into a bar and orders a pint. Bartender asks him What's
wrong? Byte says Parity error. Bartender nods and says Yeah, I thought
you looked a bit off.

thank a lot. I didn't even think about that.

I'll give it a shot. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfloop

2008-07-17 Thread Claude Schneegans
Looks like you're having a list of lists now.
One solution is to use some different delimiter for the elements in one 
of the lists.

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


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Multihoming Distributed mode?

2008-07-17 Thread Jason Ho
Just wondering if anyone has experience with multihoming distributed mode for 
coldfusion 8 using IIS? If I have 2 subdomains, say app1.company.com and 
app2.company.com set up as virtual IIS sites differentiated through host 
header, is it possible to point them to a single CF server instance but to a 
different cfroot folder? If so how do you specify the folder? I can't find any 
documentation that says how to specify the connector to point to a specific 
coldfusion folder on the remote server. Only really mentions how to point the 
connector to a particular server. I've tried the -cfwebroot option when running 
wsconfig but it seems that is intended for when coldfusion resides on the same 
server as the webserver?
 
thanks in advance
 
Jason
 
 
 
_



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfloop

2008-07-17 Thread Kenny Kinds
Looks like you're having a list of lists now.
One solution is to use some different delimiter for the elements in one 
of the lists.

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

I was basically trying to take the list and have it loop through the code that 
splits it into 2 variables. so far it only displays the last item in the list, 
not every item.

Is this even possible? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfloop

2008-07-17 Thread Charlie Griefer
On Thu, Jul 17, 2008 at 11:30 AM, Kenny Kinds [EMAIL PROTECTED] wrote:

 Looks like you're having a list of lists now.
 One solution is to use some different delimiter for the elements in one
 of the lists.
 
 --
 ___
 REUSE CODE! Use custom tags;
 See http://www.contentbox.com/claude/customtags/tagstore.cfm
 (Please send any spam to this address: [EMAIL PROTECTED])
 Thanks.

 I was basically trying to take the list and have it loop through the code
 that splits it into 2 variables. so far it only displays the last item in
 the list, not every item.

 Is this even possible?



it's very possible.

but again, it would be helpful to see a sample of the data that you're
receiving, and a sample of what the result should look like :)

-- 
A byte walks into a bar and orders a pint. Bartender asks him What's
wrong? Byte says Parity error. Bartender nods and says Yeah, I thought
you looked a bit off.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfloop

2008-07-17 Thread Kenny Kinds
On Thu, Jul 17, 2008 at 11:30 AM, Kenny Kinds [EMAIL PROTECTED] wrote:



it's very possible.

but again, it would be helpful to see a sample of the data that you're
receiving, and a sample of what the result should look like :)

-- 
A byte walks into a bar and orders a pint. Bartender asks him What's
wrong? Byte says Parity error. Bartender nods and says Yeah, I thought
you looked a bit off.


Here's a sample of the list getting passed from the form

ACIS---Midwest'CAMPS---Midwest'CAMPS12345678901234X---Midwest123456789012Y'SORD---Southwest'SORD---West'SUPPORT---ChangeMan'SUPPORT---MVS
 Support'WBS---Midwest

but this is the only value i'm getting after the loop
WBS---Midwest. (this would be the listElement value in my original code)





~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: virtual mappings on the built in webserver under CF8

2008-07-17 Thread Leitch, Oblio
I see.  Well, I'm taking your advice, but no I've no end of
complications.  First, none of the static files are being served through
/CFIDE/ -- do I have to manually add an alias?  (I do notice, however,
that the CF content is found/run just fine.)  Second, I used to be able
to evaluate #expandPath('/someDir/')# and get
C:\exampleWebRoot\someDir\.  Now however, I get
C:\exampleWebRoot\someDir\index.cfm\ -- what's up with that!? If I drop
the trailing '/', I get C:\exampleWebRoot\someDir.  Very weird.

-Original Message-
From: Will Tomlinson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 17, 2008 11:12 AM
To: CF-Talk
Subject: Re: virtual mappings on the built in webserver under CF8

 Ok, I just shifted to an Enterprise deployment of CF8 and I'm trying 
 to
 setup the built-in webserver (um, this is a development environment) 
 to

I would scrap the built-in webserver and install Apache. You can find
some threads in the archives where we talked about this subject. 

I did it after butting my head against the wall over the built-in
server. I finally got pissed off enough that I installed Apache, and I'm
much happier since. 

hth,
Will

This email message may contain privileged and/or confidential information. If 
you are not the intended recipient(s), you are hereby notified that any 
dissemination, distribution, or copying of this email message is strictly 
prohibited. If you have received this message in error, please immediately 
notify the sender and delete this email message from your computer.

CAUTION: The Agency of Human Services cannot ensure the confidentiality or 
security of email transmissions.

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: cfloop

2008-07-17 Thread Dave Francis
What do you see with:
cfloop list=#whatever# index=x delimiters='
#x#
/cfloop

-Original Message-
From: Kenny Kinds [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 17, 2008 2:43 PM
To: CF-Talk
Subject: Re: cfloop

On Thu, Jul 17, 2008 at 11:30 AM, Kenny Kinds [EMAIL PROTECTED] wrote:



it's very possible.

but again, it would be helpful to see a sample of the data that you're
receiving, and a sample of what the result should look like :)

-- 
A byte walks into a bar and orders a pint. Bartender asks him What's
wrong? Byte says Parity error. Bartender nods and says Yeah, I
thought
you looked a bit off.


Here's a sample of the list getting passed from the form

ACIS---Midwest'CAMPS---Midwest'CAMPS12345678901234X---Midwest12345678901
2Y'SORD---Southwest'SORD---West'SUPPORT---ChangeMan'SUPPORT---MVS
Support'WBS---Midwest

but this is the only value i'm getting after the loop
WBS---Midwest. (this would be the listElement value in my original code)







~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Regex question

2008-07-17 Thread Will Tomlinson
I, for one, am having trouble understanding what you're trying to
accomplish.  I could probably help you if I understood the purpose/goal of
your regular expression.


Sonny, thanks for the help! 

I could't make that regex work for my particular problem. Probably because I 
didn't explain it well enough. It looks like it's matching if there's any 
spacing before characters on any line. 

I need to check a chunk of text and make sure it contains SOME kinda characters 
on the first line. There cannot be any empty spacing on the first line 
(c.returns,linefeeds, spaces, tabs, etc. 

The rest of the chunk can contain whatever, I don't care. 

My regex works, I just don't understand why I have to stick a \S in that 2nd 
range []. 

Thanks!

Will 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfloop

2008-07-17 Thread Kenny Kinds
What do you see with:
   cfloop list=#whatever# index=x delimiters='
   #x#
   /cfloop

thought
you looked a bit off.


Here's a sample of the list getting passed from the form

ACIS---Midwest'CAMPS---Midwest'CAMPS12345678901234X---Midwest12345678901
2Y'SORD---Southwest'SORD---West'SUPPORT---ChangeMan'SUPPORT---MVS
Support'WBS---Midwest

but this is the only value i'm getting after the loop
WBS---Midwest. (this would be the listElement value in my original code)

when I do create a test loop with just a list that I create it works fine, but 
when I use the form data, all I get is the last value in the list. Even with 
the delimeter. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfloop

2008-07-17 Thread Charlie Griefer
On Thu, Jul 17, 2008 at 11:42 AM, Kenny Kinds [EMAIL PROTECTED] wrote:


 Here's a sample of the list getting passed from the form

 ACIS---Midwest'CAMPS---Midwest'CAMPS12345678901234X---Midwest123456789012Y'SORD---Southwest'SORD---West'SUPPORT---ChangeMan'SUPPORT---MVS
 Support'WBS---Midwest

 but this is the only value i'm getting after the loop
 WBS---Midwest. (this would be the listElement value in my original code)


you can loop over that original list using - as the delimiter.  cf will
ignore the empty list elements so you're safe there.

cfset myList =
ACIS---Midwest'CAMPS---Midwest'CAMPS12345678901234X---Midwest123456789012Y'SORD---Southwest'SORD---West'SUPPORT---ChangeMan'SUPPORT---MVS
Support'WBS---Midwest /

cfoutput
cfloop list=#myList# index=listElement delimiters=-
#listElement#br /
/cfloop
/cfoutput

inside the first loop, you can check the listLen() of each list element
using the single quote as the delimiter.

cfoutput
cfloop list=#myList# index=listElement delimiters=-
cfif listLen(listElement, ') gt 1
 first: #listFirst(listElement, ')# second:
#listLast(listElement, ')#br /
cfelse
 single list element: #listElement#br /
/cfif
/cfloop
/cfoutput



-- 
A byte walks into a bar and orders a pint. Bartender asks him What's
wrong? Byte says Parity error. Bartender nods and says Yeah, I thought
you looked a bit off.


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: virtual mappings on the built in webserver under CF8

2008-07-17 Thread Will Tomlinson
 I see.  Well, I'm taking your advice, but no I've no end of
 complications.  First, none of the static files are being served 
 through
 /CFIDE/ -- do I have to manually add an alias?  (I do notice, however,
 

Try this, worked for me:
http://www.jimpickering.com/blog/index.cfm/2007/11/5/How-to-Map-Apache-Virtual-Hosts-to-CFIDE


 to evaluate #expandPath('/someDir/')# and get
 C:\exampleWebRoot\someDir\.  Now however, I get
 C:\exampleWebRoot\someDir\index.cfm\ -- what's up with that!? If I 
 drop
 the trailing '/', I get C:\exampleWebRoot\someDir.  Very weird.

This part I'm not sure. 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


cfhttp: HTTPServerError

2008-07-17 Thread Scott Brady
Does anyone know what can cause the HTTPServerError
(COM.Allaire.ColdFusion.HTTPServerError) when using CFHTTP?

I'm running into this, but the circumstances make it very hard to
debug.  Here's the scenario:

We have a process that gets sales information for our various
affiliates (150+) via a web service and then uses cfhttp to transmit
that information back to a URL on each affiliate's server.  This is an
automated process.  However, for 3 of our affiliates (2 of which are,
ironically, actually us), the cfhttp is failing with the
HTTPServerError.

Now, what makes this very hard to debug is that if I run the process
manually so that it only fires for each of those 3 affiliates
individually (i.e., I run it 3 times), it works just fine. If I run
the full process (all affiliates) manually in my browser, those posts
still fail, so it's not just that it's running as a scheduled task.

I've tried looking at a common link between the 3 affiliates, and
haven't found one (two are GETs, one is a POST).  So, I'm at a loss.

I could set up 3 extra scheduled tasks (running each one of those 3
individually), but that means I'll have 5 threads on the box devoted
to this task [3 for these affiliates, one for a high-traffic affiliate
we're already running a separate task for, and the everybody else
task]. And, since this box isn't devoted just to this system, that
seems a bit thread-heavy. [this task runs once a minute].

Any ideas?  I'm not finding much on that exception type online.

-- 
-
Scott Brady
http://www.scottbrady.net/



Now playing on iTunes: Soul Asylum - Runaway Train
http://foxytunes.com/artist/soul+asylum/track/runaway+train

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


RE: cfloop

2008-07-17 Thread Dave Francis
Then you are looking at 2 different things, and getting 2 different
results should be no big surprise.

What does a cfdump of the form scope return?

 
-Original Message-
From: Kenny Kinds [mailto:[EMAIL PROTECTED] 
Sent: Thursday, July 17, 2008 2:56 PM
To: CF-Talk
Subject: Re: cfloop

What do you see with:
   cfloop list=#whatever# index=x delimiters='
   #x#
   /cfloop

thought
you looked a bit off.


Here's a sample of the list getting passed from the form

ACIS---Midwest'CAMPS---Midwest'CAMPS12345678901234X---Midwest1234567890
1
2Y'SORD---Southwest'SORD---West'SUPPORT---ChangeMan'SUPPORT---MVS
Support'WBS---Midwest

but this is the only value i'm getting after the loop
WBS---Midwest. (this would be the listElement value in my original
code)

when I do create a test loop with just a list that I create it works
fine, but when I use the form data, all I get is the last value in the
list. Even with the delimeter. 



~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Regex question

2008-07-17 Thread Sonny Savage
If I understand correctly, this should do what you want:
^\s+

On Thu, Jul 17, 2008 at 2:56 PM, Will Tomlinson [EMAIL PROTECTED] wrote:

 I, for one, am having trouble understanding what you're trying to
 accomplish.  I could probably help you if I understood the purpose/goal of
 your regular expression.
 

 Sonny, thanks for the help!

 I could't make that regex work for my particular problem. Probably because
 I didn't explain it well enough. It looks like it's matching if there's any
 spacing before characters on any line.

 I need to check a chunk of text and make sure it contains SOME kinda
 characters on the first line. There cannot be any empty spacing on the first
 line (c.returns,linefeeds, spaces, tabs, etc.

 The rest of the chunk can contain whatever, I don't care.

 My regex works, I just don't understand why I have to stick a \S in that
 2nd range [].

 Thanks!

 Will

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Apache .htaccess versus httpd.conf

2008-07-17 Thread Ian Skinner
We need to create a couple of redirect directives for some moved content 
on our websites.  Do we have to create an .htaccess file for the 
directory as all the documentation I have read alludes to or can we just 
put the redirect 301 /old/path/ /new/path in the appropriate section 
of the httpd.conf file?

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfhttp: HTTPServerError

2008-07-17 Thread Scott Brady
It looks like it's not cfhttp, but the fact that our code isn't
sending in the right parameters into the request.  Not sure why it
works when we run it individually, though.

So . . . never mind, I guess.


-- 
-
Scott Brady
http://www.scottbrady.net/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Apache .htaccess versus httpd.conf

2008-07-17 Thread Barney Boisvert
Either one works.  Allowing .htaccess files has performance
implications, since a filesystem scan must be performed and the config
directives parsed every request.  Using httpd.conf all that happens
exactly once, at server startup.

..htaccess is really only for situations where you want people to be
able to control certain aspects of the server config, without giving
them access to the main configuration files, nor allow them to restart
the Apache daemon.  In other words, .htaccess is pretty much only for
if you don't have access to httpd.conf.  If there is a choice between
the two, httpd.conf is the right one.

cheers,
barneyb

On Thu, Jul 17, 2008 at 1:48 PM, Ian Skinner [EMAIL PROTECTED] wrote:
 We need to create a couple of redirect directives for some moved content
 on our websites.  Do we have to create an .htaccess file for the
 directory as all the documentation I have read alludes to or can we just
 put the redirect 301 /old/path/ /new/path in the appropriate section
 of the httpd.conf file?

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: Apache .htaccess versus httpd.conf

2008-07-17 Thread Shannon Peevey
On Thu, Jul 17, 2008 at 3:48 PM, Ian Skinner [EMAIL PROTECTED] wrote:

 We need to create a couple of redirect directives for some moved content
 on our websites.  Do we have to create an .htaccess file for the
 directory as all the documentation I have read alludes to or can we just
 put the redirect 301 /old/path/ /new/path in the appropriate section
 of the httpd.conf file?

You can put it in the httpd.conf file, but realize that you need to
force-reload apache everytime you make a change to the directive.
Also, note the format:

 Redirect [status] URL-path URL

So:

Redirect 301 /my/old/location http://domain.com/my/new/location

Enjoy!
speeves

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


compatible providers?

2008-07-17 Thread Anthony Webb
Has anyone out there actually used the SMS gateway in CF?  If so, which 
provider did you use?  I hear talk about compatible providers but have never 
actually know someone who had a provider that integrated well with CF.  We 
ended up writing our own wrapper for our providers API.  But a nice slick 
direct integration would be nice.  Anyone out there using anyone in particular? 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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


Re: cfhttp: HTTPServerError

2008-07-17 Thread James Holmes
If you are running this in a CFC, have you var'd a cfhttp variable
at the top of the method first?

On Fri, Jul 18, 2008 at 4:57 AM, Scott Brady [EMAIL PROTECTED] wrote:
 It looks like it's not cfhttp, but the fact that our code isn't
 sending in the right parameters into the request.  Not sure why it
 works when we run it individually, though.

 So . . . never mind, I guess.


-- 
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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