Forum: Typo Typo vs. Captcha.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ee8874c37035c9efb3e147a7309aa0a5?d=identicon&s=25 George Razvan NICA (Guest)
on 2006-03-07 15:16
(Received via mailing list)
Hi all,

I was thinking of a solution of limiting comment spam by the use of a
captcha. As far as I could see there is a nice tutorial for Captcha &
Rails over at

    http://frankhale.org/CAPTCHA_RoR_Tutorial.html .

Are there any plans of including such a thing into Typo?
--
GRN
http://nano.cube.ro - starting small. going big.
http://www.infinium.ro - agile IT solutions
D6f24842b973de6cb75203c4c57dfbcb?d=identicon&s=25 Gary Shewan (Guest)
on 2006-03-07 15:31
(Received via mailing list)
On 7 Mar 2006, at 14:15, George Razvan NICA wrote:

> Hi all,
>
> I was thinking of a solution of limiting comment spam by the use of a
> captcha. As far as I could see there is a nice tutorial for Captcha &
> Rails over at
>
>     http://frankhale.org/CAPTCHA_RoR_Tutorial.html .
>
> Are there any plans of including such a thing into Typo?
>

Typo doesn't really suffer from comment spam if you use the measures
already built in.  Not allowing non-ajax commenting is fantastic for
that.  Adding captcha would just be bloat and it'd be best to go the
plugin route (IMO) if it was really, really wanted.
5ce55767684e0cd1727db2b8b8975640?d=identicon&s=25 Steve Longdo (Guest)
on 2006-03-07 15:31
(Received via mailing list)
There is another interesting implememntation of CAPTCHA with RoR over at
http://horetore.2750smult.com/blog/entry/158  I haven't had time to
fully
explore the merits of the two different implemenetations yet.  You do
have
to admire the use of the AngryMidgetsPlugins namespace though :-)

-Steve
http://www.stevelongdo.com
0196ff65610046d2f8ba58bc4a45f144?d=identicon&s=25 Piers Cawley (Guest)
on 2006-03-07 17:16
(Received via mailing list)
"George Razvan NICA" <george.nica@gmail.com> writes:

> Hi all,
>
> I was thinking of a solution of limiting comment spam by the use of a
> captcha. As far as I could see there is a nice tutorial for Captcha &
> Rails over at
>
>     http://frankhale.org/CAPTCHA_RoR_Tutorial.html .
>
> Are there any plans of including such a thing into Typo?

It'll be a cold day in hell before *I* implement a Captcha scheme in
Typo, but I can't speak for the other maintainers.
Ee8874c37035c9efb3e147a7309aa0a5?d=identicon&s=25 George Razvan NICA (Guest)
on 2006-03-07 17:28
(Received via mailing list)
> >     http://frankhale.org/CAPTCHA_RoR_Tutorial.html .
> >
> > Are there any plans of including such a thing into Typo?
>
> It'll be a cold day in hell before *I* implement a Captcha scheme in
> Typo, but I can't speak for the other maintainers.

Maybe it's just my non-native English but I don't really get what you
mean. Would you care to elaborate a little bit, please?

Thanks,
--
GRN
http://nano.cube.ro - starting small. going big.
http://www.infinium.ro - agile IT solutions
6fd1d0d0316a3ee723703b9520fe1c38?d=identicon&s=25 phil (Guest)
on 2006-03-07 17:28
(Received via mailing list)
Has anyone got this working?  I *love* the mint theme, it's such a nice
design, but permalink/articles DO NOT work, they just blow up.  I"ve
tried the fix on this page
[http://typoforums.org/index.php/topic,25.0.html] and changed the line
to:
<%= article_html(article,:body) %>

but that doesn't fix it. I'm running SVN from today and it just won't
work.  I'm disappointed because this is an amazing theme.  Looking at
Jamie (thelucid.com)'s site, he hasn't updated it since 12/29/2005 so
I'm afraid we may have to fix this ourselves.  Has anyone got it working
with SVN, or have any clues as to how to fix?  (I've posted on the typo
forums, I've hacked the code a bit and I've left a message with the
theme's creator too...)

Thanks

P
--
http://fak3r.com - you dont have to kick it
78d45b303250a077fc65fd61e00277ed?d=identicon&s=25 Jon Lim (Guest)
on 2006-03-07 17:58
(Received via mailing list)
I'm on r865 of Typo, and made this change:
<div class="post-body"><%= article_html(@article) %></div>

HTH.
Jon

--
http://www.snowblink.co.uk/
6fd1d0d0316a3ee723703b9520fe1c38?d=identicon&s=25 phil (Guest)
on 2006-03-07 18:07
(Received via mailing list)
On Tue, 7 Mar 2006 16:55:23 +0000, "Jon Lim" <snowblink@gmail.com>
wrote:
> I'm on r865 of Typo, and made this change:
> <div class="post-body"><%= article_html(@article) %></div>
>
> HTH.
> Jon

Thanks Jon, but if I modify lucid/views/articles/_article.rhtm:

      1 <div class="post-title"><h1><%= article_link article.title,
article %></h1></div>
      2 <p class="auth">Posted by <%= author_link(article) %>
      3 <%= js_distance_of_time_in_words_to_now article.created_at
%></p>
      4 <div class="post-body"><%= article_html(@article) %></div>
      5 <!-- end .post-body -->

I can't even load the front page of my blog:

 NoMethodError in Articles#index

Showing themes/lucid/views/articles/_article.rhtml where line #4 raised:

undefined method `html' for nil:NilClass

Extracted source (around line #4):

1: <div class="post-title"><h1><%= article_link article.title, article
%></h1></div>
2: <p class="auth">Posted by <%= author_link(article) %>
3: <%= js_distance_of_time_in_words_to_now article.created_at %></p>
4: <div class="post-body"><%= article_html(@article) %></div>
5: <!-- end .post-body -->

Trace of template inclusion: /app/views/articles/index.rhtml

RAILS_ROOT: .
Application Trace | Framework Trace | Full Trace

#{RAILS_ROOT}/app/helpers/application_helper.rb:128:in `article_html'
#{RAILS_ROOT}/app/views/../../themes/lucid/views/articles/_article.rhtml:4
#{RAILS_ROOT}/app/helpers/application_helper.rb:26:in `render_file'
#{RAILS_ROOT}/app/helpers/application_helper.rb:19:in `render_file'
#{RAILS_ROOT}/app/views/./articles/index.rhtml:3
#{RAILS_ROOT}/app/views/./articles/index.rhtml:1
#{RAILS_ROOT}/app/helpers/application_helper.rb:26:in `render_file'
#{RAILS_ROOT}/app/helpers/application_helper.rb:19:in `render_file'

/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:268:in
`compile_and_render_template'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:244:in
`render_template'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:205:in
`render_file'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:220:in
`render'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:58:in
`render_partial'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:33:in
`benchmark'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:57:in
`render_partial'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:268:in
`compile_and_render_template'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:244:in
`render_template'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:205:in
`render_file'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:655:in
`render_file'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:595:in
`render_with_no_layout'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/layout.rb:220:in
`render_without_benchmark'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in
`render'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in
`render'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:854:in
`perform_action_without_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:332:in
`perform_action_without_benchmark'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/rescue.rb:82:in
`perform_action'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in
`process_without_session_management_support'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session_management.rb:116:in
`process'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in
`dispatch'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:117:in
`handle_dispatch'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:83:in
`service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:69:in
`dispatch'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/servers/webrick.rb:59
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/server.rb:28
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
#{RAILS_ROOT}/script/server:3

#{RAILS_ROOT}/app/helpers/application_helper.rb:128:in `article_html'
#{RAILS_ROOT}/app/views/../../themes/lucid/views/articles/_article.rhtml:4
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:268:in
`compile_and_render_template'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:244:in
`render_template'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:205:in
`render_file'
#{RAILS_ROOT}/app/helpers/application_helper.rb:26:in `render_file'
#{RAILS_ROOT}/app/helpers/application_helper.rb:19:in `render_file'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:220:in
`render'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:58:in
`render_partial'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:33:in
`benchmark'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/partials.rb:57:in
`render_partial'
#{RAILS_ROOT}/app/views/./articles/index.rhtml:3
#{RAILS_ROOT}/app/views/./articles/index.rhtml:1
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:268:in
`compile_and_render_template'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:244:in
`render_template'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_view/base.rb:205:in
`render_file'
#{RAILS_ROOT}/app/helpers/application_helper.rb:26:in `render_file'
#{RAILS_ROOT}/app/helpers/application_helper.rb:19:in `render_file'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:655:in
`render_file'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:595:in
`render_with_no_layout'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/layout.rb:220:in
`render_without_benchmark'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in
`render'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:53:in
`render'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:854:in
`perform_action_without_filters'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/filters.rb:332:in
`perform_action_without_benchmark'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/local/lib/ruby/1.8/benchmark.rb:293:in `measure'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/benchmarking.rb:69:in
`perform_action_without_rescue'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/rescue.rb:82:in
`perform_action'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/base.rb:369:in
`process_without_session_management_support'
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.11.2/lib/action_controller/session_management.rb:116:in
`process'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/dispatcher.rb:38:in
`dispatch'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:117:in
`handle_dispatch'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:83:in
`service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
/usr/local/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
/usr/local/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
/usr/local/lib/ruby/1.8/webrick/server.rb:95:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:92:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:23:in `start'
/usr/local/lib/ruby/1.8/webrick/server.rb:82:in `start'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/webrick_server.rb:69:in
`dispatch'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/servers/webrick.rb:59
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands/server.rb:28
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in
`require'
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/active_support/dependencies.rb:214:in
`require'
#{RAILS_ROOT}/script/server:3

Request

Parameters: None

Show session dump

---

Response
Headers: {"cookie"=>[], "Cache-Control"=>"no-cache"}

I'm running r868 - hope the above points to something else I'm doing
wrong, your site looks great btw!

P



>
> --
> http://www.snowblink.co.uk/
>
> _______________________________________________
> Typo-list mailing list
> Typo-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/typo-list
--
http://fak3r.com - you dont have to kick it
0196ff65610046d2f8ba58bc4a45f144?d=identicon&s=25 Piers Cawley (Guest)
on 2006-03-07 19:30
(Received via mailing list)
"George Razvan NICA" <george.nica@gmail.com> writes:

>> >     http://frankhale.org/CAPTCHA_RoR_Tutorial.html .
>> >
>> > Are there any plans of including such a thing into Typo?
>>
>> It'll be a cold day in hell before *I* implement a Captcha scheme in
>> Typo, but I can't speak for the other maintainers.
>
> Maybe it's just my non-native English but I don't really get what you
> mean. Would you care to elaborate a little bit, please?

I really, really don't like Captchas and I won't implement such a
scheme. But I won't stop anyone else who wants to.
5ce55767684e0cd1727db2b8b8975640?d=identicon&s=25 Steve Longdo (Guest)
on 2006-03-07 20:25
(Received via mailing list)
I have it working with the following in _article.rhtml, the article_html
syntax is different in Typo now:

<div class="post-title"><h1><%= article_link article.title, article
%></h1></div>
<p class="auth">Posted by <%= author_link(article) %>
<%= js_distance_of_time_in_words_to_now article.created_at %></p>
<div class="post-body">
<%= article_html(article,:body) %>
</div> <!-- end .post-body -->

I have been trying to get Lucid to work better in IE, not too much
progress.  The fluid layout is really broken because of IE probs.  Also
the
sidebar corners round, um, odd.  If anyone can figure that out and share
it
with me it would be INCREDIBLY appreciated.

-Steve
http://www.stevelongdo.com
49ce8b6018b2cc3089f1ed3db6923a6d?d=identicon&s=25 Syed Uzair Aqeel (Guest)
on 2006-04-11 01:21
(Received via mailing list)
While talking about http://www.lazyweb.org today, I mentioned that it
might
be a good idea to port something like SpamBayes for blogs. One of the
responses I got was that Simon Cozens (a pretty prolific CPAN
contributor)
started on a general-purpose spam engine based on the Mail::SpamAssassin
module:

http://search.cpan.org/~simon/SpamMonkey-0.03/lib/...

Assuming the majority is opposed to Captcha, how does this sound?

Uzair
Dc3f3775a7d03ba1be8958aaee881d6b?d=identicon&s=25 Scott Laird (Guest)
on 2006-04-11 01:36
(Received via mailing list)
It sounds reasonable in principle, but one big problem is that a logof
blog spam tries very hard to look just like normal comments, and
Isuspect that Bayes will have a hard time deciding if a comment
thatcontains nothing but the words "good job!" is spam or not.
On the other hand, 500-link drug-pushing monstrosities will be easy to
spot :-).

Scott
On 4/10/06, Syed Uzair Aqeel <uzair@nairang.org> wrote:> While talking
about http://www.lazyweb.org today, I mentioned that it might> be a good
idea to port something like SpamBayes for blogs. One of the> responses I
got was that Simon Cozens (a pretty prolific CPAN contributor)> started
on a general-purpose spam engine based on the Mail::SpamAssassin>
module:>>
http://search.cpan.org/~simon/SpamMonkey-0.03/lib/...
Assuming the majority is opposed to Captcha, how does this sound?>>
Uzair>> > -----Original Message-----> > From:
typo-list-bounces@rubyforge.org [mailto:typo-list-> >
bounces@rubyforge.org] On Behalf Of Piers Cawley> > Sent: Tuesday, March
07, 2006 4:12 PM> > To: typo-list@rubyforge.org> > Subject: Re: [typo]
Typo vs. Captcha.> >> > "George Razvan NICA" <george.nica@gmail.com>
writes:> >> > > Hi all,> > >> > > I was thinking of a solution of
limiting comment spam by the use of a> > > captcha. As far as I could
see there is a nice tutorial for Captcha !
&> > > Rails over at> > >> > >
http://frankhale.org/CAPTCHA_RoR_Tutorial.html .> > >> > > Are there any
plans of including such a thing into Typo?> >> > It'll be a cold day in
hell before *I* implement a Captcha scheme in> > Typo, but I can't speak
for the other maintainers.> >> > --> > Piers Cawley
<pdcawley@bofh.org.uk>> > http://www.bofh.org.uk/> >
_______________________________________________> > Typo-list mailing
list> > Typo-list@rubyforge.org> >
http://rubyforge.org/mailman/listinfo/typo-list>>
_______________________________________________> Typo-list mailing list>
Typo-list@rubyforge.org>
http://rubyforge.org/mailman/listinfo/typo-list>
This topic is locked and can not be replied to.