Typo vs. Captcha

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

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.

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 :slight_smile:

-Steve
http://www.stevelongdo.com

“George Razvan NICA” [email protected] 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.

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

I’m on r865 of Typo, and made this change:

<%= article_html(@article) %>

HTH.
Jon

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

“George Razvan NICA” [email protected] 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.

On Tue, 7 Mar 2006 16:55:23 +0000, “Jon L.” [email protected]
wrote:

I’m on r865 of Typo, and made this change:

<%= article_html(@article) %>

HTH.
Jon

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

  1 <div class="post-title"><h1><%= article_link article.title, 

article %>
2

Posted by <%= author_link(article) %>
3 <%= js_distance_of_time_in_words_to_now article.created_at
%>


4
<%= article_html(@article) %>

5

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:

<%= article_link article.title, article
%>


2:

Posted by <%= author_link(article) %>
3: <%= js_distance_of_time_in_words_to_now article.created_at %>


4:
<%= article_html(@article) %>

5:

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
[email protected]
http://rubyforge.org/mailman/listinfo/typo-list

http://fak3r.com - you dont have to kick it

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:

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

Uzair

I have it working with the following in _article.rhtml, the article_html
syntax is different in Typo now:

<%= article_link article.title, article %>

Posted by <%= author_link(article) %> <%= js_distance_of_time_in_words_to_now article.created_at %>

<%= article_html(article,: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

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 A. [email protected] 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:>>
SpamMonkey - Like SpamAssassin, only not. - metacpan.org>>
Assuming the majority is opposed to Captcha, how does this sound?>>
Uzair>> > -----Original Message-----> > From:
[email protected] [mailto:typo-list-> >
[email protected]] On Behalf Of Piers C.> > Sent: Tuesday, March
07, 2006 4:12 PM> > To: [email protected]> > Subject: Re: [typo]
Typo vs. Captcha.> >> > “George Razvan NICA” [email protected]
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 C.
[email protected]> > http://www.bofh.org.uk/> >
_______________________________________________> > Typo-list mailing
list> > [email protected]> >
http://rubyforge.org/mailman/listinfo/typo-list>>
_______________________________________________> Typo-list mailing list>
[email protected]>
http://rubyforge.org/mailman/listinfo/typo-list>