Re: Issue with CFFeed

2013-08-07 Thread Edward Chanter

Small update to this thread, for the benefit of anyone in the future who
might have issues with it and finds this  in a google search.

My users noticed this morning that £ symbols were being converted to �

I'm not entirely sure what caused it but guessed correctly that it was
something to do with the encoding, probably on my Windows 2008 server
and/or IIS 7. The solution was to update the code I used to read and write
the feeds thusly:

cfhttp url=#getFeeds.feedurl# charset=utf-8
cfset xml = cfhttp.fileContent
cfset xml = rereplace(xml, !-- .*? --, )
cfset fileWrite(ram://feed#feedID#.xml, xml, utf-8)

with the utf-8 hardcoded in the cfhttp and fileWrite() code I'm now
seeing my £ symbols again.

I haven't tested this exhaustively but so far it seems to work nicely.


On 6 August 2013 13:11, Edward Chanter firew...@cc.uk.com wrote:

 As I said, your solution seems to work perfectly for all the feeds that
 were causing problems. Some have comments at the top, some at the bottom.
 In one case I couldn't see any comments at all but it seems to work anyway.

 I will post a bug report about this as suggested, it seems to me like
 CFFeed could just strip out any comments before parsing the feed.

 Thanks again for your help with this.


 On 6 August 2013 13:05, Raymond Camden raymondcam...@gmail.com wrote:


 What's fascinating is that as far as I can see, the second URL doesn't
 have
 a comment. Just saving it locally works. I bet the same works for the
 first
 URL too. To be clear, I was able to parse the XML just fine with cfhttp,
 so
 it is valid XML. If you want to work with that and not the cffeed result,
 you can skip the file save.


 On Tue, Aug 6, 2013 at 7:02 AM, Raymond Camden raymondcam...@gmail.com
 wrote:

  You may want to file a bug report for this too. Although the first feed
  URL fails to validate here http://validator.w3.org/feed/.
 
 
  On Tue, Aug 6, 2013 at 6:59 AM, Raymond Camden raymondcam...@gmail.com
 wrote:
 
  Another option is to remove the comment from the source XML.
  Unfortunately, cffeed doesn't let you source via a string, so you have
 to
  save it still.
 
  cfset u = 
  http://www.computerweekly.com/rss/All-Computer-Weekly-content.xml;
 
 


 

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


RE: Element undefined in SESSION scope

2013-08-07 Thread David Phelan

What is your session timeout?  Are you setting it in your cfapplication tag or 
relying on the server settings?  Is it possible that the timeout is too small 
and destroying the session before the form can be submitted?

David Phelan  
Web Developer   
IT Security  Web Technologies
  
Emerging Health
Montefiore Information Technology
3 Odell Plaza, Yonkers, NY 10701
914-457-6465 Office
862-234-9109 Cell
dphe...@emerginghealthit.com
www.emerginghealthit.com
www.montefiore.org



-Original Message-
From: Priya K [mailto:priya23...@gmail.com] 
Sent: Tuesday, August 06, 2013 8:35 PM
To: cf-talk
Subject: Re: Element undefined in SESSION scope


May be its something to do with cookie path. If you are using cookie, this 
might mess up your session and just drops it.


On Tuesday, August 6, 2013, Mark A Kruger wrote:


 Trying a resend.

 Make sure that cgi.http_referer exists before you try to set it. This 
 is a var created by the web server NOT cf ... so it may or may not 
 reliably exist. Also make sure this code is AFTER your cfapplication tag.

 On your own system try hitting the page after a cf restart. You may be 
 trying to access the session before you have established a session. 
 The reason it works on local is because during coding you established 
 a session at some previous point.

 That's all I got :)

 -Mark



 



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


Re: CF 9 does not connect IIS 7 smtp server on windows 7

2013-08-07 Thread Joy Paulose

Dave,

I have configured SMTP server as described. The only thing I can tell you is 
that I installed IIS 6 compatibility after the coldfusion 9 installation. I 
don't have any anything showing on IIS 6 configuration wizard when opening. My 
default server is showing only on IIS 7 Manager. So I am not able to configure 
the relay, and i was looking for this option on IIS Manager. Remember, this is 
on my windows 7 local development environment.

Thanks
Joy

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


Re: Element undefined in SESSION scope

2013-08-07 Thread funand learning

I see that session variables are persisting only after turning on 'use J2EE
session variables' setting in coldfusion admin. Here is the link to the
question I posted on stackoverflow
http://stackoverflow.com/questions/18093985/coldfusion-enabling-j2ee-session-variables-vs-coldfusion-session-variables


On Wed, Aug 7, 2013 at 9:11 AM, David Phelan
dphe...@emerginghealthit.comwrote:


 What is your session timeout?  Are you setting it in your cfapplication
 tag or relying on the server settings?  Is it possible that the timeout is
 too small and destroying the session before the form can be submitted?

 David Phelan
 Web Developer
 IT Security  Web Technologies

 Emerging Health
 Montefiore Information Technology
 3 Odell Plaza, Yonkers, NY 10701
 914-457-6465 Office
 862-234-9109 Cell
 dphe...@emerginghealthit.com
 www.emerginghealthit.com
 www.montefiore.org



 -Original Message-
 From: Priya K [mailto:priya23...@gmail.com]
 Sent: Tuesday, August 06, 2013 8:35 PM
 To: cf-talk
 Subject: Re: Element undefined in SESSION scope


 May be its something to do with cookie path. If you are using cookie, this
 might mess up your session and just drops it.


 On Tuesday, August 6, 2013, Mark A Kruger wrote:

 
  Trying a resend.
 
  Make sure that cgi.http_referer exists before you try to set it. This
  is a var created by the web server NOT cf ... so it may or may not
  reliably exist. Also make sure this code is AFTER your cfapplication tag.
 
  On your own system try hitting the page after a cf restart. You may be
  trying to access the session before you have established a session.
  The reason it works on local is because during coding you established
  a session at some previous point.
 
  That's all I got :)
 
  -Mark
 
 
 
 



 

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


RE: Timeouts connecting to database from my local installation

2013-08-07 Thread Mark A Kruger

Brook,

Here's a blog post that should help.

http://www.coldfusionmuse.com/index.cfm/2011/11/3/host.files.are.fun



-Original Message-
From: Torrent Girl [mailto:moniqueb...@gmail.com] 
Sent: Tuesday, August 06, 2013 9:22 PM
To: cf-talk
Subject: Re: Timeouts connecting to database from my local installation


Make sure it's not resolution issues... sometimes inconsistent DNS or the
use of VPN's can cause issues with connecting. Use a hosts entry or an IP
address to eliminate DNS as an issue.

I have constant timeouts when trying to connect my local CF installation
and
the DEV database.

Is there anything I can do in the code and/or admin to maximize my
connection?

I am sorry Mark. How do I do this?

Use a hosts entry or an IP address to eliminate DNS as an issue. 



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


Re: CF 9 does not connect IIS 7 smtp server on windows 7

2013-08-07 Thread Russ Michaels

Have you confirmed the service is running

Russ Michaels
www.michaels.me.uk
cfmldeveloper.com
cflive.net
cfsearch.com
On 7 Aug 2013 15:48, Joy Paulose kalappura...@hotmail.com wrote:


 Dave,

 I have configured SMTP server as described. The only thing I can tell you
 is that I installed IIS 6 compatibility after the coldfusion 9
 installation. I don't have any anything showing on IIS 6 configuration
 wizard when opening. My default server is showing only on IIS 7 Manager. So
 I am not able to configure the relay, and i was looking for this option on
 IIS Manager. Remember, this is on my windows 7 local development
 environment.

 Thanks
 Joy

 

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