<?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/"
		>
<channel>
	<title>Comments on: Create Unique Fonts For Your Captchas</title>
	<atom:link href="http://www.geckotribe.com/blog/create-unique-fonts-for-your-captchas/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.geckotribe.com/blog/create-unique-fonts-for-your-captchas/</link>
	<description>The Official Weblog of Gecko Tribe, LLC</description>
	<lastBuildDate>Mon, 16 Jan 2012 23:03:22 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Antone Roundy</title>
		<link>http://www.geckotribe.com/blog/create-unique-fonts-for-your-captchas/comment-page-1/#comment-45</link>
		<dc:creator>Antone Roundy</dc:creator>
		<pubDate>Tue, 08 Sep 2009 21:22:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.geckotribe.com/blog/?p=49#comment-45</guid>
		<description>Howard,

I confess, I picked up the pack() code from a Perl font making script somewhere. Looking at your code, I was guessing that&#039;s how numbers bigger than 255 would be handled, so I went looking for confirmation and found that.

Thanks for writing the original code.

Antone</description>
		<content:encoded><![CDATA[<p>Howard,</p>
<p>I confess, I picked up the pack() code from a Perl font making script somewhere. Looking at your code, I was guessing that&#8217;s how numbers bigger than 255 would be handled, so I went looking for confirmation and found that.</p>
<p>Thanks for writing the original code.</p>
<p>Antone</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Howard Yeend</title>
		<link>http://www.geckotribe.com/blog/create-unique-fonts-for-your-captchas/comment-page-1/#comment-41</link>
		<dc:creator>Howard Yeend</dc:creator>
		<pubDate>Thu, 20 Aug 2009 08:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.geckotribe.com/blog/?p=49#comment-41</guid>
		<description>Hi!

Thanks for the kind words about my script. T&#039;was written a long time ago, and I&#039;m glad you found a use for it.

I like your use of pack() for the header.

I noticed you changed the inner loop from using $c to calling chr(). In this kind of application the difference is absolutely trivial, and it&#039;s probably worth doing it your way for clarity of code, but I ran some benchmarks looping 100000 times, first running $d .= chr(255); and in the second loop running $d .= $c; where $c=chr(255); Results below:

chr() in loop: 0.173...
$c in loop: 0.031...

Now, like I said it&#039;s a totally trivial difference and not really worth thinking about, although it will loop 23400 times assuming 26 characters @ 30x30, so there might be a marginally noticeable difference (benchmarks for 23400: 0.045... vs 0.007...)

But I thought I&#039;d just explain why I did it that way :0)

I also wrote a captcha script you might like to take a look over: http://www.puremango.co.uk/2005/04/php_captcha_script_113/

Have fun!</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Thanks for the kind words about my script. T&#8217;was written a long time ago, and I&#8217;m glad you found a use for it.</p>
<p>I like your use of pack() for the header.</p>
<p>I noticed you changed the inner loop from using $c to calling chr(). In this kind of application the difference is absolutely trivial, and it&#8217;s probably worth doing it your way for clarity of code, but I ran some benchmarks looping 100000 times, first running $d .= chr(255); and in the second loop running $d .= $c; where $c=chr(255); Results below:</p>
<p>chr() in loop: 0.173&#8230;<br />
$c in loop: 0.031&#8230;</p>
<p>Now, like I said it&#8217;s a totally trivial difference and not really worth thinking about, although it will loop 23400 times assuming 26 characters @ 30&#215;30, so there might be a marginally noticeable difference (benchmarks for 23400: 0.045&#8230; vs 0.007&#8230;)</p>
<p>But I thought I&#8217;d just explain why I did it that way :0)</p>
<p>I also wrote a captcha script you might like to take a look over: <a href="http://www.puremango.co.uk/2005/04/php_captcha_script_113/" rel="nofollow">http://www.puremango.co.uk/2005/04/php_captcha_script_113/</a></p>
<p>Have fun!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

