Re: JVM Heap Size

2011-10-07 Thread Sean Corfield

On Thu, Oct 6, 2011 at 4:15 AM, John M Bliss bliss.j...@gmail.com wrote:
 So you have -Xms1g -Xmx1g yes? (I ask because you don't show this below)
 No. Should I add those?

Well, you said that you had min/max heap set to 1024MB so I was just
confirming that you had those options in your JVM arguments because
you didn't mention them.

Maybe I should ask How are you setting the JVM arguments?

 On Wed, Oct 5, 2011 at 6:25 AM, John M Bliss bliss.j...@gmail.com wrote:
  Based on some JVM tuning advice I Googled a while back, I have (on ACF 8)
  minimum and maximum JVM heap size set to 1024 MB.

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


Re: JVM Heap Size

2011-10-07 Thread John M Bliss

In CFAdmin  Server Settings  Java and JVM, I have minimum and maximum JVM
heap size form fields set to 1024 MB.

However, I do not have -Xms1g -Xmx1g in the JVM args.

Do I need both?

On Fri, Oct 7, 2011 at 2:30 AM, Sean Corfield seancorfi...@gmail.comwrote:


 On Thu, Oct 6, 2011 at 4:15 AM, John M Bliss bliss.j...@gmail.com wrote:
  So you have -Xms1g -Xmx1g yes? (I ask because you don't show this below)
  No. Should I add those?

 Well, you said that you had min/max heap set to 1024MB so I was just
 confirming that you had those options in your JVM arguments because
 you didn't mention them.

 Maybe I should ask How are you setting the JVM arguments?

  On Wed, Oct 5, 2011 at 6:25 AM, John M Bliss bliss.j...@gmail.com
 wrote:
   Based on some JVM tuning advice I Googled a while back, I have (on ACF
 8)
   minimum and maximum JVM heap size set to 1024 MB.

 

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


Re: Clean URLs: Preferred IIS Method

2011-10-07 Thread Dominic Watson

I would be weary of rewriting a pretty url to another pretty url.
Easier is to not use the CF SES urls at all, using IIS to rewrite to a
'regular' query string url. Something like:

RewriteEngine on
RewriteRule ^news/([0-9]{4})/([\w\-/]+)?$  /news.cfm?year=$1article=$2 [L,QSA]

Or somesuch.

Dominic

On 6 October 2011 15:58, Wil Genovese jugg...@trunkful.com wrote:

 Rob,

 The rule to do the provided by Russ example would be something like this:  
 (There may be more than one RegEx expression that will work.)

 RewriteEngine on
 RewriteRule ^news/([0-9]{4})/([\w\-/]+)?$  /news.cfm/$1/$2 [L,QSA]

 This does an internal redirect meaning the URL the user sees is still the 
 SES/SEO friendly URL, but the ColdFusion application sees the rewritten URL 
 with the .cfm in it.  This part [L,QSA] means this is the 'L'ast rule to try 
 if it matches. QSA means that anything on the query string 
 (?page=2blah=this) will be passed along as is on the query string.

 The fun is just beginning from here..




 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator
 CF Webtools
 www.cfwebtools.com

 wilg...@trunkful.com
 www.trunkful.com

 On Oct 6, 2011, at 8:21 AM, Russ Michaels wrote:


 Rob,

 you can use URL rewriting so
 http://www.mysite/news/2011/this-is-my-story will be rewritten as
 http://www.mysite/news.cfm/2011/this-is-my-story before it is passed
 to CF, which will then work.

 If you are using IIS 7 then you have URL rewriting built in.
 If you are using IIS 6 then I suggest Helicon APE, which is FREE for
 up to 3 sites, and then only costs $29 per site or £99 per server and
 will work with ANY Apache rules.




 --
 --

 Russ Michaels

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

 sk



 

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


Re: Clean URLs: Preferred IIS Method

2011-10-07 Thread Michael Grant


 I would be weary of rewriting a pretty url to another pretty url.


Why?


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


Re: Clean URLs: Preferred IIS Method

2011-10-07 Thread Wil Genovese

Because you will still have to write CF code to translate the URL in params 
whereas doing the rewrite to tradition url params makes the values available in 
the URL scope with no extra code.


Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Oct 7, 2011, at 12:36 PM, Michael Grant wrote:

 
 
 I would be weary of rewriting a pretty url to another pretty url.
 
 
 Why?
 
 
 

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


Re: Clean URLs: Preferred IIS Method

2011-10-07 Thread Michael Grant

Why would there be any additional code than what the OP already has to
handle the current implementation?


On Fri, Oct 7, 2011 at 1:45 PM, Wil Genovese jugg...@trunkful.com wrote:


 Because you will still have to write CF code to translate the URL in params
 whereas doing the rewrite to tradition url params makes the values available
 in the URL scope with no extra code.


 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator
 CF Webtools
 www.cfwebtools.com

 wilg...@trunkful.com
 www.trunkful.com

 On Oct 7, 2011, at 12:36 PM, Michael Grant wrote:

 
 
  I would be weary of rewriting a pretty url to another pretty url.
 
 
  Why?
 
 
 

 

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


MXUnit - Fail a success

2011-10-07 Thread Bobby Hartsfield

Sounds like an odd request right? lol

So I have a method that I have written some unit tests for. What I want to
add is a test that tests missing arguments. There are two arguments in my
method and both are required so I wanted a test for passing no arguments.

This is what I tried:

 

try

{

local.result =
instance.myService.meyMethod();

fail();

}

catch(Application e) { }

 

 

The above test passed. I THOUGHT the fail() was going to ensure that if
anyone came along and made the arguments not required that the test would
fail but the catch appears to be catching that as well...

For instance, I tried this.

 

 

try

{

local.result = 1;

fail();

}

catch(Application e) { }

 

 

That test still passes...

 

What I also thought was odd was that the exception type thrown by calling my
method with no arguments was not the missingArgument type, it was
application. I'm assuming that application type is simply catching whatever
fail () is doing as well as my missing argument error and there for hitting
the catch.

 

Does anyone know a solution to make this work as expected?

 

I am on CF 8.0.1 by the way and running mxUnit 2.0.3

 

Thanks.

 

 

.:.:.:.:.:.:.:.:.:.:.:.:.

Bobby Hartsfield

http://acoderslife.com

http://cf4em.com

 

 

 

 




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


Re: MXUnit - Fail a success

2011-10-07 Thread Matt Quackenbush

I'm not certain the answer to your question, but wanted to make sure you
know about the MXUnit list.  I suspect you might have better luck getting an
answer over there.

http://groups.google.com/group/mxunit

(I would have also expected the test to fail, based upon what you've
posted.)


On Fri, Oct 7, 2011 at 2:13 PM, Bobby Hartsfield bo...@acoderslife.comwrote:


 Sounds like an odd request right? lol

 So I have a method that I have written some unit tests for. What I want to
 add is a test that tests missing arguments. There are two arguments in my
 method and both are required so I wanted a test for passing no arguments.

 This is what I tried:



try

{

local.result =
 instance.myService.meyMethod();

fail();

}

catch(Application e) { }





 The above test passed. I THOUGHT the fail() was going to ensure that if
 anyone came along and made the arguments not required that the test would
 fail but the catch appears to be catching that as well...

 For instance, I tried this.





try

{

local.result = 1;

fail();

}

catch(Application e) { }





 That test still passes...



 What I also thought was odd was that the exception type thrown by calling
 my
 method with no arguments was not the missingArgument type, it was
 application. I'm assuming that application type is simply catching whatever
 fail () is doing as well as my missing argument error and there for hitting
 the catch.



 Does anyone know a solution to make this work as expected?



 I am on CF 8.0.1 by the way and running mxUnit 2.0.3



 Thanks.





 .:.:.:.:.:.:.:.:.:.:.:.:.

 Bobby Hartsfield

 http://acoderslife.com

 http://cf4em.com












 

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


cfqueryparam problem

2011-10-07 Thread Kris Sisk

I have this query in a remote accessible cfc:
cfquery datasource=staff name=rq
 SELECT *
 FROM intervention
 WHERE studentId = cfqueryparam value=#arguments.id# 
cfsqltype=cf_sql_integer  
 AND year=cfqueryparam value=#arguments.year# cfsqltype=cf_sql_integer
/cfquery

At issue is the second cfqueryparam. The arguments are passed in by a get 
request. When I pass in 2012 I get this error: [Macromedia][SQLServer JDBC 
Driver]Value can not be converted to requested type. Trying to pass it in as an 
integer gets the same error. The odd thing is that any other value passed in 
works right, but 2012 throws an error every time. Any suggestions? 

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


Re: cfqueryparam problem

2011-10-07 Thread Wil Genovese

Try this.

http://www.coldfusionjedi.com/index.cfm?mode=entryentry=7D417738-DF64-B270-3056B422E2F6FCAB



Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Oct 7, 2011, at 3:56 PM, Kris Sisk wrote:

 
 I have this query in a remote accessible cfc:
 cfquery datasource=staff name=rq
 SELECT *
 FROM intervention
 WHERE studentId = cfqueryparam value=#arguments.id# 
 cfsqltype=cf_sql_integer  
 AND year=cfqueryparam value=#arguments.year# cfsqltype=cf_sql_integer
 /cfquery
 
 At issue is the second cfqueryparam. The arguments are passed in by a get 
 request. When I pass in 2012 I get this error: [Macromedia][SQLServer JDBC 
 Driver]Value can not be converted to requested type. Trying to pass it in as 
 an integer gets the same error. The odd thing is that any other value passed 
 in works right, but 2012 throws an error every time. Any suggestions? 
 
 

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


Re: cfqueryparam problem

2011-10-07 Thread Kris Sisk

That got it. Thanks, I was going nuts trying to figure it out.

 Try this.
 
 http://www.coldfusionjedi.com/index.
 cfm?mode=entryentry=7D417738-DF64-B270-3056B422E2F6FCAB
 
 
 
 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator
 CF Webtools
 www.cfwebtools.com
 
 wilg...@trunkful.com
 www.trunkful.com
 

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


Re: cfqueryparam problem

2011-10-07 Thread Wil Genovese

Cool - The only reason I knew about this was that one of our developers had 
just ran into the same issue here today and she spent time researching it.  She 
just told us about it a minute before you posted to HOF.

I think is is solar flare related - totally unrelated systems having the same 
error at the same time. Must be solar flares..  Where's my tin hat?






Wil Genovese
Sr. Web Application Developer/
Systems Administrator
CF Webtools
www.cfwebtools.com

wilg...@trunkful.com
www.trunkful.com

On Oct 7, 2011, at 4:11 PM, Kris Sisk wrote:

 
 That got it. Thanks, I was going nuts trying to figure it out.
 
 Try this.
 
 http://www.coldfusionjedi.com/index.
 cfm?mode=entryentry=7D417738-DF64-B270-3056B422E2F6FCAB
 
 
 
 Wil Genovese
 Sr. Web Application Developer/
 Systems Administrator
 CF Webtools
 www.cfwebtools.com
 
 wilg...@trunkful.com
 www.trunkful.com
 
 
 

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


imageGeEXIFMetaData

2011-10-07 Thread Richard Steele

We can't get imageGeEXIFMetaData (or its counterpart imageGeIPTCMetaData) to 
work properly in CF8. 

ImageGeEXIFMetaData does return jpg metadata if the file is NOT Saved for Web 
in Photoshop CS4. 

However, if the file is Saved for Web, no metadata is returned, even if 
METADATA is set to ALL in the Save for Web dialog box. The same Saved for 
Web jpg clearly has the meta data included as http://regex.info/exif.cgi shows 
it all.

This is CF8 with all updates applied including the hotfix that solved some 
cfimage problems.

Any ideas as to what is going on here would be greatly appreciated. Thanks in 
advance. Richard


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


RE: MXUnit - Fail a success

2011-10-07 Thread Bobby Hartsfield

Thanks Matt. I did see that list but figured people here were likely users
of MXUnit and gave it a shot.

I'll resort to the google group if all else fails.

Thanks again.

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




-Original Message-
From: Matt Quackenbush [mailto:quackfu...@gmail.com] 
Sent: Friday, October 07, 2011 3:20 PM
To: cf-talk
Subject: Re: MXUnit - Fail a success


I'm not certain the answer to your question, but wanted to make sure you
know about the MXUnit list.  I suspect you might have better luck getting an
answer over there.

http://groups.google.com/group/mxunit

(I would have also expected the test to fail, based upon what you've
posted.)


On Fri, Oct 7, 2011 at 2:13 PM, Bobby Hartsfield
bo...@acoderslife.comwrote:


 Sounds like an odd request right? lol

 So I have a method that I have written some unit tests for. What I want to
 add is a test that tests missing arguments. There are two arguments in my
 method and both are required so I wanted a test for passing no arguments.

 This is what I tried:



try

{

local.result =
 instance.myService.meyMethod();

fail();

}

catch(Application e) { }





 The above test passed. I THOUGHT the fail() was going to ensure that if
 anyone came along and made the arguments not required that the test would
 fail but the catch appears to be catching that as well...

 For instance, I tried this.





try

{

local.result = 1;

fail();

}

catch(Application e) { }





 That test still passes...



 What I also thought was odd was that the exception type thrown by calling
 my
 method with no arguments was not the missingArgument type, it was
 application. I'm assuming that application type is simply catching
whatever
 fail () is doing as well as my missing argument error and there for
hitting
 the catch.



 Does anyone know a solution to make this work as expected?



 I am on CF 8.0.1 by the way and running mxUnit 2.0.3



 Thanks.





 .:.:.:.:.:.:.:.:.:.:.:.:.

 Bobby Hartsfield

 http://acoderslife.com

 http://cf4em.com












 



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


Hiding email address from spiders

2011-10-07 Thread Jenny Gavin-Wear

I have a client using a CMS I've built and they are using a lot of email
addresses in the content.

As I can search/replace content, I am wondering what is the best way to
hide them from the spiders?

tia,

Jenny Gavin-Wear
Fast Track Online
Tel: 01262 602013
http://www.fasttrackonline.co.uk/



--
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 4302 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message




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


Re: Hiding email address from spiders

2011-10-07 Thread Michael Grant

I think the best way is to likely replace them with an image of the email
address. cfimage could do it I'm sure.


On Fri, Oct 7, 2011 at 9:09 PM, Jenny Gavin-Wear 
jenn...@fasttrackonline.co.uk wrote:


 I have a client using a CMS I've built and they are using a lot of email
 addresses in the content.

 As I can search/replace content, I am wondering what is the best way to
 hide them from the spiders?

 tia,

 Jenny Gavin-Wear
 Fast Track Online
 Tel: 01262 602013
 http://www.fasttrackonline.co.uk/



 --
 I am using the free version of SPAMfighter.
 We are a community of 7 million users fighting spam.
 SPAMfighter has removed 4302 of my spam emails to date.
 Get the free SPAMfighter here: http://www.spamfighter.com/len

 The Professional version does not have this message




 

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


Re: Hiding email address from spiders

2011-10-07 Thread Dan Baughman

I like to place the href attribute of the a tag via javascript using html
entities and such.

On Fri, Oct 7, 2011 at 7:09 PM, Jenny Gavin-Wear 
jenn...@fasttrackonline.co.uk wrote:


 I have a client using a CMS I've built and they are using a lot of email
 addresses in the content.

 As I can search/replace content, I am wondering what is the best way to
 hide them from the spiders?

 tia,

 Jenny Gavin-Wear
 Fast Track Online
 Tel: 01262 602013
 http://www.fasttrackonline.co.uk/



 --
 I am using the free version of SPAMfighter.
 We are a community of 7 million users fighting spam.
 SPAMfighter has removed 4302 of my spam emails to date.
 Get the free SPAMfighter here: http://www.spamfighter.com/len

 The Professional version does not have this message




 

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


RE: Hiding email address from spiders

2011-10-07 Thread Bobby Hartsfield

I wrote this a while back for cF4em.

//
/**
 * TextToAsc will convert a string to its ascii eqivalent. Perfect for
encrypting mailto links to hide them from anything other than a human.
 * 
 * @param str   String to convert
 * @author  Bobby Hartsfield (bo...@acoderslife.com) 
 * @version 1
 * @created May 04, 2007
 */
function disguiseemail(str)
{
var tmpstr = ;

for (i=1; i lte len(str); i=i+1)
{
tmpstr = tmpstr  ##  asc(mid(str, i, 1));
}
return tmpstr;
}
//

you can wrap the entire href value with it (including the mailto: portion)
to mask the emails.

something like...

a href=#disguiseemail('mailto:some...@email.com')#
#disguiseemail('some...@email.com')#/a



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




-Original Message-
From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk] 
Sent: Friday, October 07, 2011 9:09 PM
To: cf-talk
Subject: Hiding email address from spiders


I have a client using a CMS I've built and they are using a lot of email
addresses in the content.

As I can search/replace content, I am wondering what is the best way to
hide them from the spiders?

tia,

Jenny Gavin-Wear
Fast Track Online
Tel: 01262 602013
http://www.fasttrackonline.co.uk/



--
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 4302 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message






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


RE: Hiding email address from spiders

2011-10-07 Thread Bobby Hartsfield

Here is a page with an example of the source:

http://cf4em.com/cf4em/index.cfm?mainaction=postsforumid=2threadid=63

The last post has my email address in the last sentence. This is what the
source of that mailto link looks like:

a
href=#109#97#105#108#116#111#58#98#111#98#98#121#64#99#102#
52#101#109#46#99#111#109#98#111#98#98#121#64#99#102#52#101
#109#46#99#111#109/a


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





-Original Message-
From: Bobby Hartsfield [mailto:bo...@acoderslife.com] 
Sent: Friday, October 07, 2011 11:04 PM
To: cf-talk
Subject: RE: Hiding email address from spiders


I wrote this a while back for cF4em.

//
/**
 * TextToAsc will convert a string to its ascii eqivalent. Perfect for
encrypting mailto links to hide them from anything other than a human.
 * 
 * @param str   String to convert
 * @author  Bobby Hartsfield (bo...@acoderslife.com) 
 * @version 1
 * @created May 04, 2007
 */
function disguiseemail(str)
{
var tmpstr = ;

for (i=1; i lte len(str); i=i+1)
{
tmpstr = tmpstr  ##  asc(mid(str, i, 1));
}
return tmpstr;
}
//

you can wrap the entire href value with it (including the mailto: portion)
to mask the emails.

something like...

a href=#disguiseemail('mailto:some...@email.com')#
#disguiseemail('some...@email.com')#/a



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




-Original Message-
From: Jenny Gavin-Wear [mailto:jenn...@fasttrackonline.co.uk] 
Sent: Friday, October 07, 2011 9:09 PM
To: cf-talk
Subject: Hiding email address from spiders


I have a client using a CMS I've built and they are using a lot of email
addresses in the content.

As I can search/replace content, I am wondering what is the best way to
hide them from the spiders?

tia,

Jenny Gavin-Wear
Fast Track Online
Tel: 01262 602013
http://www.fasttrackonline.co.uk/



--
I am using the free version of SPAMfighter.
We are a community of 7 million users fighting spam.
SPAMfighter has removed 4302 of my spam emails to date.
Get the free SPAMfighter here: http://www.spamfighter.com/len

The Professional version does not have this message








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