[ACFUG Discuss] Urgent help needed.. CF custom tag to read tab delimited text file. HOw to add trim functionality??

2006-12-21 Thread Ajas Mohammed

Hello everyone,
I need help on this one real quick. One of my colleauges used this custom CF
tag which parses a tab delimited text file and stores in array. How do I add
functionality to this code so that it would trim all the spaces i.e either
left or right or if value sent in txt file has spaces?

If you understand the code , that will be great and if you could pinpoint me
to what needs to be done, then nothing like it... Also any explanation of
this code will help a lot.

I tried ltrim(rtrim(colvalue)) while inserting records but it doesnt work in
sql server 2000. Once records are inserted in table, I am not able to trim
the records.. If you know any sql server 2000 fix for removing extra spaces
left or right or remove extra spaces for values which are sent with empty
tabs or spaces???

Thanks in advance.. Had to resend this,because the attachment was not
accepted, here is the code...







   
   

   
   
   
   

   
   int_NextPos = REFind("#arguments.str_Delimiter#|$",
arguments.str_Content, int_CurrPos);
   while (int_NextPos gt 0)
   {
   str_Token = trim(mid(arguments.str_Content, int_CurrPos,
int_NextPos - int_CurrPos));
   arrayAppend(ar_Tokens, str_Token);
   int_CurrPos = int_NextPos + len(arguments.str_Delimiter );
   int_NextPos = REFind("#arguments.str_Delimiter#|$",
arguments.str_Content, int_CurrPos);
   }

   // If the line ends with a token, add
   // an extra empty element to the array
   if (len(arguments.str_Content) gt 0and mid(arguments.str_Content,
len(arguments.str_Content), 1) is arguments.str_Delimiter)
   {
   arrayAppend(ar_Tokens, "");
   }
   

   



   
   
   
   
   






   
   
   
   

   
   



   
   
   
   




-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



[ACFUG Discuss] Urgent help needed.. CF custom tag to read tab delimited text file. HOw to add trim functionality??

2006-12-21 Thread Ajas Mohammed

Hello everyone,
I need help on this one real quick. One of my colleauges used this custom CF
tag which parses a tab delimited text file and stores in array. How do I add
functionality to this code so that it would trim all the spaces i.e either
left or right or if value sent in txt file has spaces?

If you understand the code , that will be great and if you could pinpoint me
to what needs to be done, then nothing like it... Also any explanation of
this code will help a lot.

I tried ltrim(rtrim(colvalue)) while inserting records but it doesnt work in
sql server 2000. Once records are inserted in table, I am not able to trim
the records.. If you know any sql server 2000 fix for removing extra spaces
left or right or remove extra spaces for values which are sent with empty
tabs or spaces???

Thanks in advance..if u cant open attachment , here is the code...






   
   

   
   
   
   

   
   int_NextPos = REFind("#arguments.str_Delimiter#|$",
arguments.str_Content, int_CurrPos);
   while (int_NextPos gt 0)
   {
   str_Token = trim(mid(arguments.str_Content, int_CurrPos,
int_NextPos - int_CurrPos));
   arrayAppend(ar_Tokens, str_Token);
   int_CurrPos = int_NextPos + len(arguments.str_Delimiter);
   int_NextPos = REFind("#arguments.str_Delimiter#|$",
arguments.str_Content, int_CurrPos);
   }

   // If the line ends with a token, add
   // an extra empty element to the array
   if (len(arguments.str_Content) gt 0and mid(arguments.str_Content,
len(arguments.str_Content), 1) is arguments.str_Delimiter)
   {
   arrayAppend(ar_Tokens, "");
   }
   

   



   
   
   
   
   






   
   
   
   

   
   



   
   
   
   




-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



demographicParser.cfm
Description: application/cfm


RE: [ACFUG Discuss] image generator/validator spam prevention

2006-12-21 Thread Tepfer, Seth
Cool stuff! Thanks.

 



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy Payne
This may help you http://akismet.com/faq/

And check this out: http://devnulled.com/cfakismet




-

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com

-




Re: [ACFUG Discuss] image generator/validator spam prevention

2006-12-21 Thread Teddy Payne

Seth,
This may help you http://akismet.com/faq/

And check this out: http://devnulled.com/cfakismet

Teddy

On 12/21/06, Tepfer, Seth <[EMAIL PROTECTED]> wrote:


 Thanks for the help – depressing as it might seem. Well, I'm going to try
Emerle for now and I'll start implementing a blacklist. What a pain!

Thanks again.

seth

-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink 
-





--

Adobe Certified ColdFusion MX 7 Developer
Atlanta CFUG (ACFUG): http://www.acfug.org


RE: [ACFUG Discuss] image generator/validator spam prevention

2006-12-21 Thread Tepfer, Seth
Thanks for the help - depressing as it might seem. Well, I'm going to
try Emerle for now and I'll start implementing a blacklist. What a pain!

Thanks again.

seth




-

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com

-




Re: [ACFUG Discuss] image generator/validator spam prevention

2006-12-21 Thread Teddy Payne

Seth,
What Dean says is pretty valid and is often talked of.  There has been more
success with putting distorted math equations into captcha images.

This is typically a first line of defense though.  It is recommended that
you monitor the data submitted through the forms and then filter the data
submission for scripting attacks and a black list of keywords.  The black
list approach can be very tedious and becomes adaptive over time.

Wordpress uses Akismet for spam protection and it works pretty well. (
http://akismet.com/)

Teddy


On 12/21/06, Dean H. Saxe <[EMAIL PROTECTED]> wrote:


details on breaking CAPTCHA:

http://www.webappsec.org/lists/websecurity/archive/2005-08/msg00058.html

This will give you details on the good/bad/ugly of CAPTCHA:

http://sam.zoy.org/pwntcha/

Is it completely busted?  Nope.  But its not going to stop all
spammers and other automated systems.

-dhs


Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
"To announce that there must be no criticism of the president, or
that we are to stand by the president right or wrong, is not only
unpatriotic and servile, but is morally treasonable to the American
public."
-- Theodore Roosevelt


On Dec 21, 2006, at 4:11 PM, Tepfer, Seth wrote:

> I know this has come up previously, but I don't know what to search
> for.
>
> I need to generate an image that has that skewed text on it, so
> that spammers can't read it, to validate the form submission is a
> human.
>
> 1) What do you CALL that thing?
>
> 2) Do you know if there is a tag or function out there somewhere
> (hopefully free) that auto generates it?
>
> Thanks
>
> seth
>
>
> -
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by FusionLink
> -



-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?falogin.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-







--

Adobe Certified ColdFusion MX 7 Developer
Atlanta CFUG (ACFUG): http://www.acfug.org



-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



re: [ACFUG Discuss] image generator/validator spam prevention

2006-12-21 Thread Mischa Uppelschoten ext 10



Check this
 
http://weblogs.macromedia.com/cantrell/archives/2004/08/captcha_and_col.cfm
/m
 
Mischa UppelschotenThe
 Banker's Exchange, Inc.2020 Hills Avenue
 NWAtlanta, GA  30318Phone:(404)
 605-0100 ext. 10Fax:(404)
 355-7930Web:www.BankersX.comFollow
 this link for Instant Web Chat:http://www.bankersx.com/Contact/chat.cfm?Queue=MUPPELSCHOTEN

--- Original
 Message ---
  
From: "Tepfer, Seth" <[EMAIL PROTECTED]>
To: 
Date: Thu, 21 Dec 2006 16:11:46
 -0500
Subject: [ACFUG Discuss]
 image generator/validator spam prevention
  

I know this has
 come up previously, but I don’t know
 what to search for.
I need to generate
 an image that has that skewed text on it,
 so that spammers can’t read it, to
 validate the form submission is a human.
1) What do you
 CALL that thing?
2) Do you know
 if there is a tag or function out there somewhere
 (hopefully free) that auto generates it?
Thanks
seth-
 To unsubscribe from this list, manage
 your profile @ http://www.acfug.org?fa=login.edituserform
 For more info, see http://www.acfug.org/mailinglists
 Archive @ http://www.mail-archive.com/discussion%40acfug.org/
 List hosted by FusionLink
 -



-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] image generator/validator spam prevention

2006-12-21 Thread Teddy Payne

1) Captcha (http://en.wikipedia.org/wiki/Captcha)

2) http://lyla.maestropublishing.com/


On 12/21/06, Tepfer, Seth <[EMAIL PROTECTED]> wrote:


 I know this has come up previously, but I don't know what to search for.

I need to generate an image that has that skewed text on it, so that
spammers can't read it, to validate the form submission is a human.

1) What do you *CALL *that* *thing?

2) Do you know if there is a tag or function out there somewhere
(hopefully free) that auto generates it?

Thanks

seth

-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink 
-





--

Adobe Certified ColdFusion MX 7 Developer
Atlanta CFUG (ACFUG): http://www.acfug.org



-
To unsubscribe from this list, manage your profile @ 
http://www.acfug.org?fa=login.edituserform


For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-



Re: [ACFUG Discuss] image generator/validator spam prevention

2006-12-21 Thread Dean H. Saxe

details on breaking CAPTCHA:

http://www.webappsec.org/lists/websecurity/archive/2005-08/msg00058.html

This will give you details on the good/bad/ugly of CAPTCHA:

http://sam.zoy.org/pwntcha/

Is it completely busted?  Nope.  But its not going to stop all  
spammers and other automated systems.


-dhs


Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
"To announce that there must be no criticism of the president, or  
that we are to stand by the president right or wrong, is not only  
unpatriotic and servile, but is morally treasonable to the American  
public."

-- Theodore Roosevelt


On Dec 21, 2006, at 4:11 PM, Tepfer, Seth wrote:

I know this has come up previously, but I don’t know what to search  
for.


I need to generate an image that has that skewed text on it, so  
that spammers can’t read it, to validate the form submission is a  
human.


1) What do you CALL that thing?

2) Do you know if there is a tag or function out there somewhere  
(hopefully free) that auto generates it?


Thanks

seth


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-




-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





Re: [ACFUG Discuss] image generator/validator spam prevention

2006-12-21 Thread Dean H. Saxe
Its called CAPTCHA.  And its easily bypassed by computers or humans.   
If there is enough value behind the CAPTCHA some cheap south Asia  
labor will break them day and night.


-dhs


Dean H. Saxe, CISSP, CEH
[EMAIL PROTECTED]
"Dissent is the purest form of patriotism."
--Thomas Jefferson


On Dec 21, 2006, at 4:11 PM, Tepfer, Seth wrote:

I know this has come up previously, but I don’t know what to search  
for.


I need to generate an image that has that skewed text on it, so  
that spammers can’t read it, to validate the form submission is a  
human.


1) What do you CALL that thing?

2) Do you know if there is a tag or function out there somewhere  
(hopefully free) that auto generates it?


Thanks

seth


-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by FusionLink
-




-
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform

For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-





[ACFUG Discuss] image generator/validator spam prevention

2006-12-21 Thread Tepfer, Seth
I know this has come up previously, but I don't know what to search for.

I need to generate an image that has that skewed text on it, so that
spammers can't read it, to validate the form submission is a human.

1) What do you CALL that thing?

2) Do you know if there is a tag or function out there somewhere
(hopefully free) that auto generates it?

Thanks

seth




-

To unsubscribe from this list, manage your profile @ 

http://www.acfug.org?fa=login.edituserform



For more info, see http://www.acfug.org/mailinglists

Archive @ http://www.mail-archive.com/discussion%40acfug.org/

List hosted by http://www.fusionlink.com

-