<?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; javascript</title>
	<atom:link href="http://blog.cliffano.com/tag/javascript/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>Node.js Presentations</title>
		<link>http://blog.cliffano.com/2011/08/13/node-js-presentations/</link>
		<comments>http://blog.cliffano.com/2011/08/13/node-js-presentations/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 08:46:00 +0000</pubDate>
		<dc:creator>Cliffano Subagio</dc:creator>
				<category><![CDATA[Work]]></category>
		<category><![CDATA[couchdb]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[melbjs]]></category>
		<category><![CDATA[nodejs]]></category>
		<category><![CDATA[presentations]]></category>
		<category><![CDATA[shinetech]]></category>

		<guid isPermaLink="false">http://blog.cliffano.com/?p=1702</guid>
		<description><![CDATA[I gave two Node.js-related talks within the past week. The first one was titled &#8220;From Java To Node.js&#8221;, at Shine Technologies&#8216; developers meeting on August 5th, 2011. From Java To Node.js View more presentations from Cliffano Subagio The second one was titled &#8220;JavaScript Everywhere From Nose To Tail&#8221;, at Melbourne JavaScript usergroup on August 10th, [...]]]></description>
			<content:encoded><![CDATA[<p>I gave two Node.js-related talks within the past week.</p>
<p>The first one was titled &#8220;From Java To Node.js&#8221;, at <a href="http://shinetech.com">Shine Technologies</a>&#8216; developers meeting on August 5th, 2011.</p>
<div id="__ss_8780210" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a title="From Java To Node.js" href="http://www.slideshare.net/cliffano/from-java-to-nodejs" target="_blank">From Java To Node.js</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/8780210" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="425" height="355"></iframe></p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/cliffano" target="_blank">Cliffano Subagio</a></div>
</div>
<p>The second one was titled &#8220;JavaScript Everywhere From Nose To Tail&#8221;, at <a href="http://melbjs.eventbrite.com">Melbourne JavaScript usergroup</a> on August 10th, 2011, with <a href="http://twitter.com/bumblethru">Carl Husselbee</a> from <a href="http://about.sensis.com.au">Sensis</a>.</p>
<div id="__ss_8819281" style="width: 425px;"><strong style="display: block; margin: 12px 0 4px;"><a title="Javascript Everywhere From Nose To Tail" href="http://www.slideshare.net/cliffano/javascript-everywhere-from-nose-to-tail" target="_blank">Javascript Everywhere From Nose To Tail</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/8819281" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="425" height="355"></iframe></p>
<div style="padding: 5px 0 12px;">View more <a href="http://www.slideshare.net/" target="_blank">presentations</a> from <a href="http://www.slideshare.net/cliffano" target="_blank">Cliffano Subagio</a></div>
</div>
<p>Happy with the positive feedback from the audience of both talks, thanks folks, much appreciated!</p>
<p><strong>Update (08/09/2011):</strong></p>
<p>And here&#8217;s the video from the second talk&#8230;</p>
<p><iframe src="http://player.vimeo.com/video/28531395?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0"></iframe>
<p><a href="http://vimeo.com/28531395">JavaScript Everywhere &#8211; From Nose To Tail</a> from <a href="http://vimeo.com/benjaminpearson">Benjamin Pearson</a> on <a href="http://vimeo.com">Vimeo</a>.</p>

<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fblog.cliffano.com%2F2011%2F08%2F13%2Fnode-js-presentations%2F" layout="standard" show_faces="false" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cliffano.com/2011/08/13/node-js-presentations/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>JSGames Plugin &#8211; Play Mario Kart &amp; Tetris On Hudson</title>
		<link>http://blog.cliffano.com/2010/09/15/jsgames-plugin-play-mario-kart-tetris-on-hudson/</link>
		<comments>http://blog.cliffano.com/2010/09/15/jsgames-plugin-play-mario-kart-tetris-on-hudson/#comments</comments>
		<pubDate>Wed, 15 Sep 2010 13:51:38 +0000</pubDate>
		<dc:creator>Cliffano Subagio</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[hudson]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jsgames]]></category>

		<guid isPermaLink="false">http://blog.cliffano.com/?p=1189</guid>
		<description><![CDATA[Now you can play games on Hudson using JSGames Plugin, albeit only a cutdown version of Mario Kart and Tetris (credit goes to Jacob Seidelin of Nihilogic Games). This plugin is extensible enough, so it&#8217;s pretty easy to add new games. The winners of 10K Apart would be good additions given the right license. I [...]]]></description>
			<content:encoded><![CDATA[<p>Now you can play games on <a href="http://hudson-ci.org">Hudson</a> using <a href="http://wiki.hudson-ci.org/display/HUDSON/JSGames+Plugin">JSGames Plugin</a>, albeit only a cutdown version of Mario Kart and Tetris (credit goes to Jacob Seidelin of <a rel="nofollow" href="http://blog.nihilogic.dk/">Nihilogic Games</a>). This plugin is extensible enough, so it&#8217;s pretty easy to add new games. The winners of <a href="http://10k.aneventapart.com/">10K Apart</a> would be good additions given the right license.</p>
<p><img class="alignnone" src="http://lh5.ggpht.com/_fXOvW0MYmrY/TJC8Z3c5nVI/AAAAAAAAFls/0JNGyrWf2S0/jsgames_menu.png" alt="" width="394" height="337" /></p>
<p>I wrote this plugin as an experiment on using Hudson for non-continuous integration purposes, in this case, a very minimalistic &#8216;games delivery platform&#8217;. Games as plugins, each with a pluggable Hudson UI that automatically adds a game menu / navigation. To push this further, the dashboard can then be modified to look more like Steam or iTunes, but of course I didn&#8217;t do this part.</p>
<p>Hudson is quite flexible, eh?</p>

<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fblog.cliffano.com%2F2010%2F09%2F15%2Fjsgames-plugin-play-mario-kart-tetris-on-hudson%2F" layout="standard" show_faces="false" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cliffano.com/2010/09/15/jsgames-plugin-play-mario-kart-tetris-on-hudson/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Trailing Comma Within JSON&#039;s Array</title>
		<link>http://blog.cliffano.com/2006/04/18/trailing-comma-within-jsons-array/</link>
		<comments>http://blog.cliffano.com/2006/04/18/trailing-comma-within-jsons-array/#comments</comments>
		<pubDate>Tue, 18 Apr 2006 13:00:06 +0000</pubDate>
		<dc:creator>Cliffano Subagio</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[json]]></category>

		<guid isPermaLink="false">http://blog.cliffano.com/?p=31</guid>
		<description><![CDATA[I was debugging an AJAXy app which uses JSON as the data format, and it was fine with Firefox but not with Internet Explorer. After further debugging, the culprit turned out to be trailing commas within the data. theObject.foo.bar.length returns 2 in Firefox, but it returns 3 in Internet Explorer. The solution was obviously to [...]]]></description>
			<content:encoded><![CDATA[<p>I was debugging an AJAXy app which uses <a href="http://www.json.org/">JSON</a> as the data format, and it was fine with Firefox but not with Internet Explorer. After further debugging, the culprit turned out to be trailing commas within the data.</p>
<pre class="brush: jscript; title: ; notranslate">
{&quot;foo&quot;: {
    &quot;bar&quot;: [
        {&quot;id&quot;: &quot;1&quot;, &quot;url&quot;: &quot;http://www.hostA.com&quot;},
        {&quot;id&quot;: &quot;2&quot;, &quot;url&quot;: &quot;http://www.hostB.com&quot;},
] }}
</pre>
<p>theObject.foo.bar.length returns 2 in Firefox, but it returns 3 in Internet Explorer. The solution was obviously to remove the last comma.</p>
<p>I&#8217;m guessing the problem is more to Javascript array.length which is handled differently between browsers.</p>
<p><strong>Update</strong>: HTML comments embedded within what&#8217;s supposed to be JSON&#8217;s data will be ignored by Firefox, while they will cause failure during eval in Internet Explorer.</p>

<p class="FacebookLikeButton"><fb:like href="http%3A%2F%2Fblog.cliffano.com%2F2006%2F04%2F18%2Ftrailing-comma-within-jsons-array%2F" layout="standard" show_faces="false" width="450" action="like" colorscheme="light"></fb:like></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cliffano.com/2006/04/18/trailing-comma-within-jsons-array/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

