<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog &#187; scode</title>
	<atom:link href="http://blog.cliffano.com/tag/scode/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cliffano.com</link>
	<description>Geeking, Living, Travelling</description>
	<lastBuildDate>Thu, 26 Jan 2012 10:18:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SCode Image Reload</title>
		<link>http://blog.cliffano.com/2007/06/11/scode-image-reload/</link>
		<comments>http://blog.cliffano.com/2007/06/11/scode-image-reload/#comments</comments>
		<pubDate>Sun, 10 Jun 2007 18:57:12 +0000</pubDate>
		<dc:creator>Cliffano Subagio</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[blojsom]]></category>
		<category><![CDATA[bloojm]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[scode]]></category>

		<guid isPermaLink="false">http://blog.cliffano.com/?p=4</guid>
		<description><![CDATA[Sometimes the numbers on SCodePlugin-generated CAPTCHA image are not easy to read. And rather than refreshing the whole page, it would be nice to reload only the image and generate a new / more readable code. In order to give this a go, I modified the comment form on Melbourne photoblog and added a short [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes the numbers on SCodePlugin-generated CAPTCHA image are not easy to read. And rather than refreshing the whole page, it would be nice to reload only the image and generate a new / more readable code.</p>
<p>In order to give this a go, I modified the comment form on Melbourne photoblog and added a short Javascript code to refresh the image source. You can try it yourself on <a href="http://mbledug.com/melbourne/blog/melbourne/airport/2006/12/09/04/25/2006%2008:04:54#responses">this form</a>, just click the text &#8220;Generate another code&#8221; and wait shortly for the image to be reloaded with a new code.</p>
<p>I have updated the Usage sample code on <a href="http://wiki.blojsom.com/wiki/display/blojsom3/SCode+Plugin">SCode Plugin wiki page</a> with this improvement.</p>
<p>As a side note, I found a problem where modifying img.src value via anchor tag&#8217;s onclick attribute does not work on IE 6 and the image will just disappear, while it works just fine on Firefox 2 and Opera 8.5 .</p>
<p class="source">
<pre class="brush: jscript; title: ; notranslate">
function reloadSCode() {
  var scodeImage = document.getElementById(&quot;scodeImage&quot;);
  scodeImage.src=&quot;$BLOJSOM_BLOG.getBlogBaseURL()/captcha?flavor=kink&amp;amp;t=&quot; + (new Date()).getMilliseconds();
}
</pre>
<pre class="brush: xml; title: ; notranslate">
&lt;a href=&quot;javascript: void(0);&quot; onclick=&quot;reloadSCode();&quot;&gt;Generate another code&lt;/a&gt;.
</pre>
<p>After some mucking around, I found out that the function call must be made from the href attribute. This works on the browsers mentioned above.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;a href=&quot;javascript: reloadSCode();&quot;&gt;Generate another code&lt;/a&gt;.
</pre>
<p>Them browsers better implement proper Javascript standard before doomsday comes.</p>

<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fblog.cliffano.com%2F2007%2F06%2F11%2Fscode-image-reload%2F" layout="standard" show_faces="false" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cliffano.com/2007/06/11/scode-image-reload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCodePlugin v0.5</title>
		<link>http://blog.cliffano.com/2007/05/02/scodeplugin-v05/</link>
		<comments>http://blog.cliffano.com/2007/05/02/scodeplugin-v05/#comments</comments>
		<pubDate>Wed, 02 May 2007 10:16:23 +0000</pubDate>
		<dc:creator>Cliffano Subagio</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[blojsom]]></category>
		<category><![CDATA[bloojm]]></category>
		<category><![CDATA[scode]]></category>

		<guid isPermaLink="false">http://blog.cliffano.com/?p=8</guid>
		<description><![CDATA[SCodePlugin v0.5 has been released, expect the jar and source downloads to be available from SourceForge mirrors in the next few days. As usual, if you want it earlier, just email me and I&#8217;ll send it to you. Changelog: Introduced KaptchaImageEngine using Kaptcha (was Simple Captcha) library, with 3 new flavours from KinkImageEngine, FishEyeImageEngine, and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://wiki.blojsom.com/wiki/display/blojsom3/SCode+Plugin">SCodePlugin</a> v0.5 has been released, expect the jar and source <a href="http://sourceforge.net/project/showfiles.php?group_id=72754&amp;package_id=154672&amp;release_id=480225">downloads</a> to be available from SourceForge mirrors in the next few days. As usual, if you want it earlier, just email me and I&#8217;ll send it to you.</p>
<p>Changelog:</p>
<ul>
<li>Introduced KaptchaImageEngine using Kaptcha (was Simple Captcha) library, with 3 new flavours from KinkImageEngine, FishEyeImageEngine, and ShadowImageEngine.</li>
<li>Replaced image engine class loading in image factory with constructor injection. SCodePlugin passes the image factory to SCodeServlet, instead of passing the image engines.</li>
<li>Set ImageIO caching off during SCodeServlet initialisation. This improves performance and prevents any temporary disk-based image creation.</li>
</ul>
<p>Upgrade instruction:</p>
<ul>
<li> In WEB-INF/lib directory, replace scodeplugin-0.4.jar with scodeplugin-0.5.jar, and add kaptcha-1.1.jar .</li>
<li> On /WEB-INF/classes/blojsom-plugins.xml file, replace the scode bean declaration you have for SCodePlugin v0.4:
<pre class="brush: xml; title: ; notranslate">
&lt;bean id=&quot;scode&quot; class=&quot;com.mbledug.blojsom.plugin.scode.SCodePlugin&quot; init-method=&quot;init&quot; destroy-method=&quot;destroy&quot;&gt;
    &lt;constructor-arg&gt;
        &lt;map&gt;
            &lt;entry key=&quot;simple&quot; value=&quot;com.mbledug.blojsom.plugin.scode.engine.SimpleImageEngine&quot;/&gt;
            &lt;entry key=&quot;gradient&quot; value=&quot;com.mbledug.blojsom.plugin.scode.engine.GradientImageEngine&quot;/&gt;
            &lt;entry key=&quot;funky&quot; value=&quot;com.mbledug.blojsom.plugin.scode.engine.FunkyImageEngine&quot;/&gt;
        &lt;/map&gt;
    &lt;/constructor-arg&gt;
&lt;/bean&gt;
</pre>
<p>with this for SCodePlugin v0.5:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;bean id=&quot;scodeSimpleImageEngine&quot; class=&quot;com.mbledug.blojsom.plugin.scode.engine.SimpleImageEngine&quot;/&gt;
&lt;bean id=&quot;scodeGradientImageEngine&quot; class=&quot;com.mbledug.blojsom.plugin.scode.engine.GradientImageEngine&quot;/&gt;
&lt;bean id=&quot;scodeFunkyImageEngine&quot; class=&quot;com.mbledug.blojsom.plugin.scode.engine.FunkyImageEngine&quot;/&gt;
&lt;bean id=&quot;scodeKinkImageEngine&quot; class=&quot;com.mbledug.blojsom.plugin.scode.engine.KinkImageEngine&quot;/&gt;
&lt;bean id=&quot;scodeFishEyeImageEngine&quot; class=&quot;com.mbledug.blojsom.plugin.scode.engine.FishEyeImageEngine&quot;/&gt;
&lt;bean id=&quot;scodeShadowImageEngine&quot; class=&quot;com.mbledug.blojsom.plugin.scode.engine.ShadowImageEngine&quot;/&gt;
&lt;bean id=&quot;scodeImageFactory&quot; class=&quot;com.mbledug.blojsom.plugin.scode.ImageFactory&quot;&gt;
    &lt;constructor-arg&gt;
        &lt;map&gt;
            &lt;entry key=&quot;simple&quot; value-ref=&quot;scodeSimpleImageEngine&quot;/&gt;
            &lt;entry key=&quot;gradient&quot; value-ref=&quot;scodeGradientImageEngine&quot;/&gt;
            &lt;entry key=&quot;funky&quot; value-ref=&quot;scodeFunkyImageEngine&quot;/&gt;
            &lt;entry key=&quot;kink&quot; value-ref=&quot;scodeKinkImageEngine&quot;/&gt;
            &lt;entry key=&quot;fisheye&quot; value-ref=&quot;scodeFishEyeImageEngine&quot;/&gt;
            &lt;entry key=&quot;shadow&quot; value-ref=&quot;scodeShadowImageEngine&quot;/&gt;
        &lt;/map&gt;
    &lt;/constructor-arg&gt;
&lt;/bean&gt;
&lt;bean id=&quot;scode&quot; class=&quot;com.mbledug.blojsom.plugin.scode.SCodePlugin&quot; init-method=&quot;init&quot; destroy-method=&quot;destroy&quot;&gt;
    &lt;constructor-arg&gt;
        &lt;ref bean=&quot;scodeImageFactory&quot;/&gt;
    &lt;/constructor-arg&gt;
&lt;/bean&gt;
</pre>
</li>
</ul>

<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fblog.cliffano.com%2F2007%2F05%2F02%2Fscodeplugin-v05%2F" layout="standard" show_faces="false" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cliffano.com/2007/05/02/scodeplugin-v05/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FishEye And Shadow Flavors</title>
		<link>http://blog.cliffano.com/2007/04/13/fisheye-and-shadow-flavors/</link>
		<comments>http://blog.cliffano.com/2007/04/13/fisheye-and-shadow-flavors/#comments</comments>
		<pubDate>Fri, 13 Apr 2007 05:07:20 +0000</pubDate>
		<dc:creator>Cliffano Subagio</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[blojsom]]></category>
		<category><![CDATA[bloojm]]></category>
		<category><![CDATA[kaptcha]]></category>
		<category><![CDATA[scode]]></category>

		<guid isPermaLink="false">http://blog.cliffano.com/?p=10</guid>
		<description><![CDATA[Still using Kaptcha, I added 2 new flavors to SCode Plugin: &#8220;fisheye&#8221; and &#8220;shadow&#8221;. Here&#8217;s the screenshot: Same as &#8220;kink&#8221;, these new flavors will be part of SCode Plugin 0.5 .]]></description>
			<content:encoded><![CDATA[<p>Still using <a href="http://code.google.com/p/kaptcha/">Kaptcha</a>, I added 2 new flavors to SCode Plugin: &#8220;fisheye&#8221; and &#8220;shadow&#8221;. Here&#8217;s the screenshot:</p>
<p><img class="alignnone" src="http://lh6.ggpht.com/cliffano/SNi1iLgVMtI/AAAAAAAABDo/pfZMVRcuq8A/s400/kaptcha_fisheye_shadow.jpg" alt="" width="260" height="60" /></p>
<p>Same as &#8220;kink&#8221;, these new flavors will be part of SCode Plugin 0.5 .</p>

<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fblog.cliffano.com%2F2007%2F04%2F13%2Ffisheye-and-shadow-flavors%2F" layout="standard" show_faces="false" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cliffano.com/2007/04/13/fisheye-and-shadow-flavors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kink, New SCode Flavor</title>
		<link>http://blog.cliffano.com/2007/04/12/kink-new-scode-flavor/</link>
		<comments>http://blog.cliffano.com/2007/04/12/kink-new-scode-flavor/#comments</comments>
		<pubDate>Thu, 12 Apr 2007 10:06:20 +0000</pubDate>
		<dc:creator>Cliffano Subagio</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[blojsom]]></category>
		<category><![CDATA[bloojm]]></category>
		<category><![CDATA[captcha]]></category>
		<category><![CDATA[kaptcha]]></category>
		<category><![CDATA[scode]]></category>

		<guid isPermaLink="false">http://blog.cliffano.com/?p=11</guid>
		<description><![CDATA[Jon Stevens resurrected Simple Captcha in the form of Kaptcha. The good thing about Simple Captcha / Kaptcha is that it generates an image similar to the ones used at Yahoo!. Other than that, it&#8217;s really straightforward to use. I quickly integrated Kaptcha into SCode Plugin by introducing KinkImageEngine, exposed to Blojsom via &#8220;kink&#8221; flavor. [...]]]></description>
			<content:encoded><![CDATA[<p>Jon Stevens resurrected <a href="http://simplecaptcha.sf.net/">Simple Captcha</a> in the form of <a href="http://code.google.com/p/kaptcha/">Kaptcha</a>. The good thing about Simple Captcha / Kaptcha is that it generates an image similar to the ones used at <a href="https://edit.yahoo.com/config/eval_register?.intl=us&amp;new=1">Yahoo!</a>. Other than that, it&#8217;s really straightforward to use.</p>
<p>I quickly integrated Kaptcha into SCode Plugin by introducing KinkImageEngine, exposed to Blojsom via &#8220;kink&#8221; flavor. Here&#8217;s how it looks like:</p>
<p><img class="alignnone" src="http://lh3.ggpht.com/cliffano/SNi1iJiWETI/AAAAAAAABDg/pnRtvH86ap4/s400/kaptcha_kink.jpg" alt="" width="129" height="60" /></p>
<p>This flavor will be included in SCode Plugin 0.5 (yet to be released).</p>

<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fblog.cliffano.com%2F2007%2F04%2F12%2Fkink-new-scode-flavor%2F" layout="standard" show_faces="false" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cliffano.com/2007/04/12/kink-new-scode-flavor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCode On Headless Hosting And Resin Plus OS X</title>
		<link>http://blog.cliffano.com/2006/01/31/scode-on-headless-hosting-and-resin-plus-os-x/</link>
		<comments>http://blog.cliffano.com/2006/01/31/scode-on-headless-hosting-and-resin-plus-os-x/#comments</comments>
		<pubDate>Tue, 31 Jan 2006 07:45:21 +0000</pubDate>
		<dc:creator>Cliffano Subagio</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[blojsom]]></category>
		<category><![CDATA[bloojm]]></category>
		<category><![CDATA[headless]]></category>
		<category><![CDATA[scode]]></category>

		<guid isPermaLink="false">http://blog.cliffano.com/?p=24</guid>
		<description><![CDATA[Tim wrote about his adventure setting up SCode Plugin on a headless hosting: blojsom, anti-splog, and captcha; while Miles wrote about using the plugin on Resin and OS X: Resin, OS X, wrappers and image-generating servlets, SCode plugin clarification, More SCode servlet, SCode servlet. Those issues are basically related to image generation in general and [...]]]></description>
			<content:encoded><![CDATA[<p>Tim wrote about his adventure setting up <a href="http://wiki.blojsom.com/wiki/display/blojsom/SCode+Plugin">SCode Plugin</a> on a headless hosting: <a href="http://www.anothercaffeniatedday.com/blog/default/2006/01/29/blojsom-anti-splog-and-captcha.html">blojsom, anti-splog, and captcha</a>; while Miles wrote about using the plugin on Resin and OS X: <a href="http://blogs.rave.ac.uk/blojsom/blog/mmetcalfe/work/2006/01/13/Resin-OS-X-wrappers-and-image-generating-servlets.html">Resin, OS X, wrappers and image-generating servlets</a>, <a href="http://blogs.rave.ac.uk/blojsom/blog/mmetcalfe/work/2006/01/05/SCode-plugin-clarification.html">SCode plugin clarification</a>, <a href="http://blogs.rave.ac.uk/blojsom/blog/mmetcalfe/work/2006/01/01/More-SCode-servlet.html">More SCode servlet</a>, <a href="http://blogs.rave.ac.uk/blojsom/blog/mmetcalfe/work/2005/12/19/SCode-servlet.html">SCode servlet</a>.</p>
<p>Those issues are basically related to image generation in general and not just with SCode Plugin. However, the fact that various people are using the plugin on various different environments is a definite good thing for the plugin documentation.</p>

<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fblog.cliffano.com%2F2006%2F01%2F31%2Fscode-on-headless-hosting-and-resin-plus-os-x%2F" layout="standard" show_faces="false" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cliffano.com/2006/01/31/scode-on-headless-hosting-and-resin-plus-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SCode Plugin v0.3</title>
		<link>http://blog.cliffano.com/2006/01/22/scode-plugin-v03/</link>
		<comments>http://blog.cliffano.com/2006/01/22/scode-plugin-v03/#comments</comments>
		<pubDate>Sun, 22 Jan 2006 06:27:31 +0000</pubDate>
		<dc:creator>Cliffano Subagio</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[blojsom]]></category>
		<category><![CDATA[bloojm]]></category>
		<category><![CDATA[scode]]></category>

		<guid isPermaLink="false">http://blog.cliffano.com/?p=22</guid>
		<description><![CDATA[SCode Plugin v0.3 has been released. If the jar and src files are not yet available from blojsom plugins download page, then email me and I&#8217;ll send them to you. In order to upgrade, simply replace scodeplugin-[prev_version].jar with scodeplugin-0.3.jar .]]></description>
			<content:encoded><![CDATA[<p><a href="http://wiki.blojsom.com/wiki/display/blojsom/SCode+Plugin">SCode Plugin</a> v0.3 has been released. If the jar and src files are not yet available from <a href="http://sourceforge.net/project/showfiles.php?group_id=72754&amp;package_id=154672&amp;release_id=333616">blojsom plugins download page</a>, then email me and I&#8217;ll send them to you.</p>
<p>In order to upgrade, simply replace scodeplugin-[prev_version].jar with scodeplugin-0.3.jar .</p>

<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fblog.cliffano.com%2F2006%2F01%2F22%2Fscode-plugin-v03%2F" layout="standard" show_faces="false" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cliffano.com/2006/01/22/scode-plugin-v03/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

