<?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>greynode &#187; Coding</title>
	<atom:link href="http://greynode.org/category/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://greynode.org</link>
	<description>ingénierie de tous les aspects de vie</description>
	<lastBuildDate>Wed, 11 Aug 2010 04:10:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>HTTPService Over SSL Flex 4</title>
		<link>http://greynode.org/2010/08/09/httpservice-over-ssl-flex-4/</link>
		<comments>http://greynode.org/2010/08/09/httpservice-over-ssl-flex-4/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 22:23:28 +0000</pubDate>
		<dc:creator>Jeff Aigner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[flex 4]]></category>
		<category><![CDATA[HTTPService]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[SSL]]></category>

		<guid isPermaLink="false">http://blog.greynode.org/?p=240</guid>
		<description><![CDATA[Using SSL for HTTPService communication and loading images is very easy in Flex 4. There are differences between using HTTPService over SSL and loading images over SSL, however neither is complicated. Communication using HTTPService over SSL Host the flex 4 application on an SSL enabled host Ensure the application is loaded over SSL (i.e. the [...]]]></description>
			<content:encoded><![CDATA[<p>Using SSL for HTTPService communication and loading images is very easy in Flex 4. There are differences between using HTTPService over SSL and loading images over SSL, however neither is complicated.</p>
<h3>Communication using HTTPService over SSL</h3>
<blockquote>
<ol>
<li>Host the flex 4 application on an SSL enabled host</li>
<li>Ensure the application is loaded over SSL (i.e. the URL has https:// prefix)</li>
<li>Make <code>HTTPService.url</code> a <strong>relative</strong> path to where the SWF is stored</li>
</ol>
</blockquote>
<h3>Using SSL for mx:Image</h3>
<blockquote><p>
Set the <code>Image.source</code> attribute to the full URL, including the https:// prefix, like so:</p>
<p><code>&lt;mx:Image source="<strong>https://server.com/image.jpg</strong>"/&gt;</code>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://greynode.org/2010/08/09/httpservice-over-ssl-flex-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cartoon Shader using GLSL</title>
		<link>http://greynode.org/2010/05/14/cartoon-shader-using-glsl/</link>
		<comments>http://greynode.org/2010/05/14/cartoon-shader-using-glsl/#comments</comments>
		<pubDate>Fri, 14 May 2010 21:01:58 +0000</pubDate>
		<dc:creator>Jeff Aigner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[GLSL]]></category>
		<category><![CDATA[OpenGL]]></category>
		<category><![CDATA[Shaders]]></category>

		<guid isPermaLink="false">http://blog.greynode.org/?p=230</guid>
		<description><![CDATA[Here is an example of a shader written in the OpenGL Shading Language (GLSL). It is very simple shader, only assigning 4 different color values, yet the result is pretty cool. I&#8217;ll post the link to the source code once I add it to my git repository. For introductory material on GLSL, check out Lighthouse [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an example of a shader written in the OpenGL Shading Language (GLSL). It is very simple shader, only assigning 4 different color values, yet the result is pretty cool. I&#8217;ll post the link to the source code once I add it to my git repository.</p>
<p><center><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/9_WY-PByPdU&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/9_WY-PByPdU&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object></center></p>
<p>For introductory material on GLSL, check out <a href="http://www.lighthouse3d.com/opengl/">Lighthouse 3D</a> (where I got this cartoon example). Also check out the <a href="http://www.amazon.com/OpenGL-Shading-Language-Randi-Rost/dp/0321637631/ref=sr_1_1?ie=UTF8&#038;s=books&#038;qid=1273870316&#038;sr=1-1">orange book</a> for more in-depth discussion and examples on shaders.</p>
]]></content:encoded>
			<wfw:commentRss>http://greynode.org/2010/05/14/cartoon-shader-using-glsl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ask comp.lang.c to Do Your Homework</title>
		<link>http://greynode.org/2010/05/11/ask-comp-lang-c-to-do-your-homework/</link>
		<comments>http://greynode.org/2010/05/11/ask-comp-lang-c-to-do-your-homework/#comments</comments>
		<pubDate>Wed, 12 May 2010 08:45:00 +0000</pubDate>
		<dc:creator>Jeff Aigner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[c]]></category>

		<guid isPermaLink="false">http://blog.greynode.org/?p=228</guid>
		<description><![CDATA[A funny post on comp.lang.c.]]></description>
			<content:encoded><![CDATA[<p><a href="http://groups.google.com/group/comp.lang.c/msg/e105e5d339edec01?pli=1">A funny post on comp.lang.c.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://greynode.org/2010/05/11/ask-comp-lang-c-to-do-your-homework/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why No Games on Linux?</title>
		<link>http://greynode.org/2010/05/11/why-no-games-on-linux/</link>
		<comments>http://greynode.org/2010/05/11/why-no-games-on-linux/#comments</comments>
		<pubDate>Tue, 11 May 2010 20:54:26 +0000</pubDate>
		<dc:creator>Jeff Aigner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.greynode.org/?p=226</guid>
		<description><![CDATA[Thought I would share an interesting article on why there are no games on linux. Want more games on linux? Solve these problems!]]></description>
			<content:encoded><![CDATA[<p>Thought I would share an interesting article on why <a href="http://linuxlock.blogspot.com/2010/05/why-games-dont-get-ported-to-linuxa.html">there are no games on linux</a>. Want more games on linux? Solve these problems!</p>
]]></content:encoded>
			<wfw:commentRss>http://greynode.org/2010/05/11/why-no-games-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python 2 to 3</title>
		<link>http://greynode.org/2009/12/02/python-2-to-3/</link>
		<comments>http://greynode.org/2009/12/02/python-2-to-3/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 18:11:12 +0000</pubDate>
		<dc:creator>Jeff Aigner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://greynode.org/?p=157</guid>
		<description><![CDATA[Updating to Python 3? I found a nice cheat sheet by Mark Summerfield that shows a concise summary of the differences between Python 2 and Python 3, as well as some of the more common features of Python 3. This document is freely available from InformIT&#8217;s website, but I have also mirrored it. Download the [...]]]></description>
			<content:encoded><![CDATA[<p>Updating to <a href="http://docs.python.org/3.1/">Python 3</a>? I found a nice cheat sheet by <a href="http://www.informit.com/authors/bio.aspx?a=920D82F2-8CBB-4973-9A76-F7EA84E7BF39">Mark Summerfield</a> that shows a concise summary of the differences between Python 2 and Python 3, as well as some of the more common features of Python 3.</p>
<p>This document is freely available from InformIT&#8217;s website, but I have also mirrored it. Download the cheat sheet below.</p>
<blockquote><p>
<a href="http://greynode.org/mirror/python2python3.pdf" target="_blank">Python2Python3.pdf</a> from greynode.org</p>
<p><a href="http://ptgmedia.pearsoncmg.com/imprint_downloads/informit/promotions/python/python2python3.pdf" target="_blank">Python2Python3.pdf</a> from InformIT&#8217;s site
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://greynode.org/2009/12/02/python-2-to-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automake and Autoconf Made Simple</title>
		<link>http://greynode.org/2009/11/02/automake-and-autoconf-made-simple/</link>
		<comments>http://greynode.org/2009/11/02/automake-and-autoconf-made-simple/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 08:15:14 +0000</pubDate>
		<dc:creator>Jeff Aigner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[GNU]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://greynode.org/?p=142</guid>
		<description><![CDATA[Instead of randomly pasting configuration code from other projects when you decide you want to use automake/autoconf, just check out all you should really know about autoconf and automake. Albeit, it may not be comprehensive, but it should get you started.]]></description>
			<content:encoded><![CDATA[<p>Instead of randomly pasting configuration code from other projects when you decide you want to use automake/autoconf, just check out <a href="http://smalltalk.gnu.org/blog/bonzinip/all-you-should-really-know-about-autoconf-and-automake">all you should really know about autoconf and automake</a>. Albeit, it may not be comprehensive, but it should get you started.</p>
]]></content:encoded>
			<wfw:commentRss>http://greynode.org/2009/11/02/automake-and-autoconf-made-simple/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML 5</title>
		<link>http://greynode.org/2009/10/30/html-5/</link>
		<comments>http://greynode.org/2009/10/30/html-5/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 06:15:23 +0000</pubDate>
		<dc:creator>Jeff Aigner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://greynode.org/?p=137</guid>
		<description><![CDATA[Have you checked out HTML 5 yet? If not, here is a neat article explaining some of the basic ideas of HTML 5.]]></description>
			<content:encoded><![CDATA[<p>Have you checked out HTML 5 yet? If not, <a href="http://diveintohtml5.org/semantics.html">here is a neat article explaining some of the basic ideas of HTML 5</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://greynode.org/2009/10/30/html-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby from Other Languages</title>
		<link>http://greynode.org/2009/10/25/ruby-from-other-languages/</link>
		<comments>http://greynode.org/2009/10/25/ruby-from-other-languages/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 05:06:30 +0000</pubDate>
		<dc:creator>Jeff Aigner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://greynode.org/?p=134</guid>
		<description><![CDATA[I was just browsing around for some material on ruby and I found this page very helpful: http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/ It&#8217;s not a ruby bible or anything, but I think it is a good intro for experienced programmers.]]></description>
			<content:encoded><![CDATA[<p>I was just browsing around for some material on ruby and I found this page very helpful:</p>
<p><a href="http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/">http://www.ruby-lang.org/en/documentation/ruby-from-other-languages/</a></p>
<p>It&#8217;s not a ruby bible or anything, but I think it is a good intro for experienced programmers.</p>
]]></content:encoded>
			<wfw:commentRss>http://greynode.org/2009/10/25/ruby-from-other-languages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prefixes for Binary Multiples</title>
		<link>http://greynode.org/2009/06/26/prefixes-for-binary-multiples/</link>
		<comments>http://greynode.org/2009/06/26/prefixes-for-binary-multiples/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 21:57:47 +0000</pubDate>
		<dc:creator>Jeff Aigner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[IEEE]]></category>
		<category><![CDATA[international standards]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://greynode.org/?p=83</guid>
		<description><![CDATA[I have become increasingly frustrated with people refusing to adopt the IEEE 1541-2002 standard. There is no real good reason why it should not be adopted. I think the most common argument I have heard against it is, &#8220;That&#8217;s stupid! The people who made that up are stupid! You&#8217;re stupid for using it!&#8221; That is [...]]]></description>
			<content:encoded><![CDATA[<p>I have become increasingly frustrated with people refusing to adopt the <a title="IEEE 1541" href="http://en.wikipedia.org/wiki/IEEE_1541">IEEE 1541-2002 standard</a>. There is no real good reason why it should not be adopted. I think the most common argument I have heard against it is, &#8220;That&#8217;s stupid! The people who made that up are stupid! You&#8217;re stupid for using it!&#8221; That is to say, there are no very good arguments against it.</p>
<p>In fact the longer people continue to use the old terminology, the longer the hard drive manufacturers have to use the old terminology to rip off consumers. Did you ever wonder why your hard drive isn&#8217;t a full 80GiB? <strong>That&#8217;s because it said 80GB on the box.</strong></p>
<p>Some argue that it makes no sense to have the extra terminology because computers operate using base 2. The problem with this argument is that the <a href="http://en.wikipedia.org/wiki/International_Bureau_of_Weights_and_Measures">International Bureau of Weights and Measures</a> published a paper in 1998 stating that SI prefixes should only be used with <em>powers of 10. </em></p>
<p>I think anyone familiar with science understands the necessity for proper measurements. Without them, your data is bad. Let me present a quick example. Let&#8217;s say you were looking for a place to store copies of your digital movies. Your computer says they are 4.7GB (but it really means <strong>GiB</strong>), so you decide to get a 1TB hard drive in which you think you can store 1,000 / 4.7 = 212 full movies. However, the 1TB hard drive is really only 909GiB, which means you can only store about 193 movies. If you leave 20% free space to keep performance up, then that&#8217;s only 154 movies.</p>
<p>But the data on the hard drive box was not misrepresented, it was misunderstood. The reason it was misunderstood is because the neglect of the standard passes from the programmer to the average user via the software they use. There I said it, it is your fault programmers.</p>
<p>If you think you have a real reason why not to adopt it, please leave a comment.</p>
<p>A quick explanation of the standard, courtesy of <a href="http://www.wikipedia.org">wikipedia</a>:</p>
<blockquote>
<p style="margin-top: 0.4em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 0px; line-height: 1.5em;">IEEE 1541 recommends:</p>
<ul style="line-height: 1.5em; list-style-type: square; margin-top: 0.3em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 1.5em; list-style-image: url(http://en.wikipedia.org/skins-1.5/monobook/bullet.gif); padding: 0px;">
<li style="margin-bottom: 0.1em;">a set of units to refer to quantities used in digital electronics and computing:
<ul style="line-height: 1.5em; list-style-type: square; margin-top: 0.3em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 1.5em; list-style-image: url(http://en.wikipedia.org/skins-1.5/monobook/bullet.gif); padding: 0px;">
<li style="margin-bottom: 0.1em;"><em>bit</em> (symbol &#8216;b&#8217;), a binary digit;</li>
<li style="margin-bottom: 0.1em;"><em>byte</em> (symbol &#8216;B&#8217;), a set of adjacent bits (usually, but not necessarily, eight) operated on as a group;</li>
<li style="margin-bottom: 0.1em;"><em>octet</em> (symbol &#8216;o&#8217;), a group of eight bits;</li>
</ul>
</li>
<li style="margin-bottom: 0.1em;">a set of prefixes to indicate binary multiples of the aforesaid units:
<ul style="line-height: 1.5em; list-style-type: square; margin-top: 0.3em; margin-right: 0px; margin-bottom: 0.5em; margin-left: 1.5em; list-style-image: url(http://en.wikipedia.org/skins-1.5/monobook/bullet.gif); padding: 0px;">
<li style="margin-bottom: 0.1em;"><em>kibi</em> (symbol &#8216;Ki&#8217;), 2<sup>10</sup> = <span style="white-space: nowrap;">1<span style="margin-left: 0.25em;">024</span></span>;</li>
<li style="margin-bottom: 0.1em;"><em>mebi</em> (symbol &#8216;Mi&#8217;), 2<sup>20</sup> = <span style="white-space: nowrap;">1<span style="margin-left: 0.25em;">048</span><span style="margin-left: 0.25em;">576</span></span>;</li>
<li style="margin-bottom: 0.1em;"><em>gibi</em> (symbol &#8216;Gi&#8217;), 2<sup>30</sup> = <span style="white-space: nowrap;">1<span style="margin-left: 0.25em;">073</span><span style="margin-left: 0.25em;">741</span><span style="margin-left: 0.25em;">824</span></span>;</li>
<li style="margin-bottom: 0.1em;"><em>tebi</em> (symbol &#8216;Ti&#8217;), 2<sup>40</sup> = <span style="white-space: nowrap;">1<span style="margin-left: 0.25em;">099</span><span style="margin-left: 0.25em;">511</span><span style="margin-left: 0.25em;">627</span><span style="margin-left: 0.25em;">776</span></span>;</li>
<li style="margin-bottom: 0.1em;"><em>pebi</em> (symbol &#8216;Pi&#8217;), 2<sup>50</sup> = <span style="white-space: nowrap;">1<span style="margin-left: 0.25em;">125</span><span style="margin-left: 0.25em;">899</span><span style="margin-left: 0.25em;">906</span><span style="margin-left: 0.25em;">842</span><span style="margin-left: 0.25em;">624</span></span>;</li>
<li style="margin-bottom: 0.1em;"><em>exbi</em> (symbol &#8216;Ei&#8217;), 2<sup>60</sup> = <span style="white-space: nowrap;">1<span style="margin-left: 0.25em;">152</span><span style="margin-left: 0.25em;">921</span><span style="margin-left: 0.25em;">504</span><span style="margin-left: 0.25em;">606</span><span style="margin-left: 0.25em;">846</span><span style="margin-left: 0.25em;">976</span></span>;</li>
</ul>
</li>
<li style="margin-bottom: 0.1em;">that the first part of the binary prefix is pronounced as the analogous SI prefix, and the second part is pronounced as <em>bee</em>;</li>
<li style="margin-bottom: 0.1em;">that SI prefixes are not used to indicate binary multiples.</li>
</ul>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://greynode.org/2009/06/26/prefixes-for-binary-multiples/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Multicore Programming Primer</title>
		<link>http://greynode.org/2009/06/26/multicore-programming-primer/</link>
		<comments>http://greynode.org/2009/06/26/multicore-programming-primer/#comments</comments>
		<pubDate>Fri, 26 Jun 2009 16:41:02 +0000</pubDate>
		<dc:creator>Jeff Aigner</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[multicore]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[PS3]]></category>

		<guid isPermaLink="false">http://greynode.org/?p=79</guid>
		<description><![CDATA[MIT has been offering free videos of various courses for quite a while now. Today I came across this video series on multicore programming. I haven&#8217;t watched but a few minutes of it so far, but I am hoping to watch all of them before the next semester starts if it proves to be useful [...]]]></description>
			<content:encoded><![CDATA[<p><a title="MIT" href="http://www.mit.edu">MIT</a> has been offering free videos of various courses for quite a while now. Today I came across this <a href="http://ocw.mit.edu/OcwWeb/Electrical-Engineering-and-Computer-Science/6-189January--IAP--2007/CourseHome/index.htm">video series on multicore programming</a>. I haven&#8217;t watched but a few minutes of it so far, but I am hoping to watch all of them before the next semester starts if it proves to be useful in some way. It uses the PS3 framework &#8212; I am not sure if this poses an issue with using the videos yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://greynode.org/2009/06/26/multicore-programming-primer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->