<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: How to improve the image quality and generate random string image in the plugin validates_captcha</title>
	<atom:link href="http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/feed/" rel="self" type="application/rss+xml" />
	<link>http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/</link>
	<description>geeks redefined</description>
	<lastBuildDate>Fri, 25 Jan 2008 11:46:02 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: buy cialis online</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-684</link>
		<dc:creator>buy cialis online</dc:creator>
		<pubDate>Thu, 08 Mar 2007 05:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-684</guid>
		<description>&lt;strong&gt;buy cialis online&lt;/strong&gt;

</description>
		<content:encoded><![CDATA[<p><strong>buy cialis online</strong></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sur Max</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-546</link>
		<dc:creator>Sur Max</dc:creator>
		<pubDate>Wed, 07 Feb 2007 04:47:42 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-546</guid>
		<description>Hey Neeraj !!
Check out my captcha plugin buddy.
I have just launched it today on my new blog..... its almost the same way u are suggesting... It provides multiple image styles to chose from..
Check this out &lt;a href=&quot;http://expressica.com/2007/02/06/simple-captcha-released-the-captcha-for-rails-applications/&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;here&lt;/b&gt;&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hey Neeraj !!<br />
Check out my captcha plugin buddy.<br />
I have just launched it today on my new blog&#8230;.. its almost the same way u are suggesting&#8230; It provides multiple image styles to chose from..<br />
Check this out <a href="http://expressica.com/2007/02/06/simple-captcha-released-the-captcha-for-rails-applications/" rel="nofollow"><b>here</b></a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neeraj</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-545</link>
		<dc:creator>Neeraj</dc:creator>
		<pubDate>Wed, 07 Feb 2007 04:43:01 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-545</guid>
		<description>In my view unless you are the next yahoo,  a simple image without much dots and distortion will serve the purpose. I downloaded your  code and I like what I see.

I don&#039;t want to put user through all this rigor if a simple text works. So I am making most of distortion , dots etc configurable. So next time if I am beaten by a blog you can just tune the configuration file without actually touching the code.

If time permits and if you like the idea I would suggest you to make some of the parameters configurable. That would be a great help.

Either way. Good work. Keep it up.</description>
		<content:encoded><![CDATA[<p>In my view unless you are the next yahoo,  a simple image without much dots and distortion will serve the purpose. I downloaded your  code and I like what I see.</p>
<p>I don&#8217;t want to put user through all this rigor if a simple text works. So I am making most of distortion , dots etc configurable. So next time if I am beaten by a blog you can just tune the configuration file without actually touching the code.</p>
<p>If time permits and if you like the idea I would suggest you to make some of the parameters configurable. That would be a great help.</p>
<p>Either way. Good work. Keep it up.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sur</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-535</link>
		<dc:creator>Sur</dc:creator>
		<pubDate>Fri, 02 Feb 2007 11:11:55 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-535</guid>
		<description>Hi Eduard !!
Actually my code was running very fine with the previous version of this plugin.... and i am using the same version since then.... people started getting errors with the new version.... so as you have given the patch for the newer version it should run fine i suppose.
Thanks.

I am not sure if you have read the &lt;a href=&quot;http://ajaxonrails.wordpress.com/2007/02/02/expressica/&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;latest post&lt;b&gt;&lt;/a&gt; here on this blog that i am moving my blog and also releasing my own captcha plugin that is really very simple to use and provides some cool image styles. I have also given sample images in the &lt;a href=&quot;http://ajaxonrails.wordpress.com/2007/02/02/expressica/&quot; rel=&quot;nofollow&quot;&gt;&lt;b&gt;post above&lt;/b&gt;&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>Hi Eduard !!<br />
Actually my code was running very fine with the previous version of this plugin&#8230;. and i am using the same version since then&#8230;. people started getting errors with the new version&#8230;. so as you have given the patch for the newer version it should run fine i suppose.<br />
Thanks.</p>
<p>I am not sure if you have read the <a href="http://ajaxonrails.wordpress.com/2007/02/02/expressica/" rel="nofollow"><b>latest post</b><b></b></a> here on this blog that i am moving my blog and also releasing my own captcha plugin that is really very simple to use and provides some cool image styles. I have also given sample images in the <a href="http://ajaxonrails.wordpress.com/2007/02/02/expressica/" rel="nofollow"><b>post above</b></a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eduard Martini</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-534</link>
		<dc:creator>Eduard Martini</dc:creator>
		<pubDate>Fri, 02 Feb 2007 11:03:25 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-534</guid>
		<description>As you maybe saw, this code is not working. I made some adjustments and is working perfectly for me. I modified to not use words and use random chains of letters.
First in the  CaptchaImageChallenge class replace constant &#039;WORDS&#039; with this one:

&lt;b&gt;LETTERS = %w[a b c d e f g h i j k l m n o p q r s t u v x z 1 2 3 4 5 6 7 8 9 0]&lt;/b&gt;

then replace all code from  def generate(options = {}) with:
&lt;b&gt;
&lt;code&gt;
options.reverse_merge!(
        :fontsize =&gt; 35,
        :padding =&gt; 20,
        :color =&gt; &#039;#000&#039;,
        :background =&gt; &#039;#fff&#039;,
        :fontweight =&gt; &#039;500&#039;,
        :rotate =&gt; true,
        :font =&gt; config[&#039;font&#039;]
      ).symbolize_keys!

      options[:fontweight] = case options[:fontweight]
        when &#039;bold&#039; then 700
        else options[:fontweight].to_i
      end
      
      text = Magick::Draw.new
      text.pointsize = options[:fontsize]
      text.font_weight = options[:fontweight]
      text.fill = options[:color]
      text.gravity = Magick::CenterGravity
      text.font = options[:font] if options[:font]
      
      #rotate text 5 degrees left or right
      text.rotation = (rand(2)==1 ? 5 : -5) if options[:rotate]
      
      metric = text.get_type_metrics(self.string)

      #add bg
      canvas = Magick::ImageList.new
      canvas 
&lt;/b&gt;
then add a private function to the class:
&lt;b&gt;
&lt;code&gt;
def make_string(arr)
      size=rand(3)+4
      str=&quot;&quot;
      1.upto(size) do &#124;n&#124;
        str+=arr[rand(arr.size)].to_s
      end
      return str.upcase
    end
&lt;/code&gt;
&lt;/b&gt;
Thats all</description>
		<content:encoded><![CDATA[<p>As you maybe saw, this code is not working. I made some adjustments and is working perfectly for me. I modified to not use words and use random chains of letters.<br />
First in the  CaptchaImageChallenge class replace constant &#8216;WORDS&#8217; with this one:</p>
<p><b>LETTERS = %w[a b c d e f g h i j k l m n o p q r s t u v x z 1 2 3 4 5 6 7 8 9 0]</b></p>
<p>then replace all code from  def generate(options = {}) with:<br />
<b><br />
<code><br />
options.reverse_merge!(<br />
        :fontsize =&gt; 35,<br />
        :padding =&gt; 20,<br />
        :color =&gt; '#000',<br />
        :background =&gt; '#fff',<br />
        :fontweight =&gt; '500',<br />
        :rotate =&gt; true,<br />
        :font =&gt; config['font']<br />
      ).symbolize_keys!</p>
<p>      options[:fontweight] = case options[:fontweight]<br />
        when 'bold' then 700<br />
        else options[:fontweight].to_i<br />
      end</p>
<p>      text = Magick::Draw.new<br />
      text.pointsize = options[:fontsize]<br />
      text.font_weight = options[:fontweight]<br />
      text.fill = options[:color]<br />
      text.gravity = Magick::CenterGravity<br />
      text.font = options[:font] if options[:font]</p>
<p>      #rotate text 5 degrees left or right<br />
      text.rotation = (rand(2)==1 ? 5 : -5) if options[:rotate]</p>
<p>      metric = text.get_type_metrics(self.string)</p>
<p>      #add bg<br />
      canvas = Magick::ImageList.new<br />
      canvas<br />
</code></b><br />
then add a private function to the class:<br />
<b><br />
<code><br />
def make_string(arr)<br />
      size=rand(3)+4<br />
      str=""<br />
      1.upto(size) do |n|<br />
        str+=arr[rand(arr.size)].to_s<br />
      end<br />
      return str.upcase<br />
    end<br />
</code><br />
</b><br />
Thats all</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Captcha in Ruby on Rails - Customize the use of captcha in the plugin validates_captcha at EXPRESSICA</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-527</link>
		<dc:creator>Captcha in Ruby on Rails - Customize the use of captcha in the plugin validates_captcha at EXPRESSICA</dc:creator>
		<pubDate>Wed, 31 Jan 2007 09:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-527</guid>
		<description>[...] However image is too noisy and it contains repeated strings. To improve the quality of images generated by the plugin validates_captcha visit Here. [...]</description>
		<content:encoded><![CDATA[<p>[...] However image is too noisy and it contains repeated strings. To improve the quality of images generated by the plugin validates_captcha visit Here. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stabilo</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-167</link>
		<dc:creator>Stabilo</dc:creator>
		<pubDate>Mon, 01 Jan 2007 17:14:33 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-167</guid>
		<description>Got the same error as Dirk from above ( `const_missing’: uninitialized constant CaptchaConfig (NameError))

Any ideas? Seems to be some namespace problem 

Regards 

Stabilo</description>
		<content:encoded><![CDATA[<p>Got the same error as Dirk from above ( `const_missing’: uninitialized constant CaptchaConfig (NameError))</p>
<p>Any ideas? Seems to be some namespace problem </p>
<p>Regards </p>
<p>Stabilo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-147</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Fri, 15 Dec 2006 15:34:29 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-147</guid>
		<description>Could you send &lt;a href=&quot;mailto://matt@techiesalumni.com&quot; rel=&quot;nofollow&quot;&gt;me&lt;/a&gt; the code?</description>
		<content:encoded><![CDATA[<p>Could you send <a href="mailto://matt@techiesalumni.com" rel="nofollow">me</a> the code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chintan Shah</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-138</link>
		<dc:creator>Chintan Shah</dc:creator>
		<pubDate>Wed, 13 Dec 2006 15:07:40 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-138</guid>
		<description>Hi Sur,

  i m in big problem, u have to help me at any how? check yr captcha code with the mongrel? it creates big problems so pls reply me soon i m waiting for reply

 it gives me an error like &quot;pid.......&quot; and when i tried to run the method which contains the captcha code it just displays as blank page and when i go for the page source it showm me blank there also, and it also clear the clusters of the mongrel, from there mongrel will be stoped so when i tried to go some where else it gives me an error of 503.... so pls help me as soon as possible.

bye and thnx</description>
		<content:encoded><![CDATA[<p>Hi Sur,</p>
<p>  i m in big problem, u have to help me at any how? check yr captcha code with the mongrel? it creates big problems so pls reply me soon i m waiting for reply</p>
<p> it gives me an error like &#8220;pid&#8230;&#8230;.&#8221; and when i tried to run the method which contains the captcha code it just displays as blank page and when i go for the page source it showm me blank there also, and it also clear the clusters of the mongrel, from there mongrel will be stoped so when i tried to go some where else it gives me an error of 503&#8230;. so pls help me as soon as possible.</p>
<p>bye and thnx</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sur Max</title>
		<link>http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-135</link>
		<dc:creator>Sur Max</dc:creator>
		<pubDate>Wed, 13 Dec 2006 12:09:35 +0000</pubDate>
		<guid isPermaLink="false">http://ajaxonrails.wordpress.com/2006/10/17/how-to-improve-the-image-quality-and-generate-random-string-image-in-the-plugin-validates_captcha/#comment-135</guid>
		<description>Yes u didnt get it !! lol ...
The words written now are only text in the modified code and not being used anywhere, i am wandering if you are still getting the repeated words and not random string... probably u havnt restarted the server or u have not implemented it and just looking at code only ...</description>
		<content:encoded><![CDATA[<p>Yes u didnt get it !! lol &#8230;<br />
The words written now are only text in the modified code and not being used anywhere, i am wandering if you are still getting the repeated words and not random string&#8230; probably u havnt restarted the server or u have not implemented it and just looking at code only &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
