<?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>Kenfodder &#187; programming</title>
	<atom:link href="http://kenfodder.com/index.php/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://kenfodder.com</link>
	<description>My name is Kenneth Lee. I&#039;m a Software Developer and this is my blog</description>
	<lastBuildDate>Mon, 06 Jul 2009 11:57:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Renaming multiple files with SED</title>
		<link>http://kenfodder.com/index.php/2009/07/06/renaming-multiple-files-with-sed/</link>
		<comments>http://kenfodder.com/index.php/2009/07/06/renaming-multiple-files-with-sed/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 11:57:46 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[shell scripting]]></category>

		<guid isPermaLink="false">http://kenfodder.com/?p=38</guid>
		<description><![CDATA[for file in *.htm ; do mv $file `echo $file &#124; sed 's/\(.*\.\)htm/\1html/'` ; done

]]></description>
			<content:encoded><![CDATA[<p><code>for file in *.htm ; do mv $file `echo $file | sed 's/\(.*\.\)htm/\1html/'` ; done<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://kenfodder.com/index.php/2009/07/06/renaming-multiple-files-with-sed/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Git cheat sheet</title>
		<link>http://kenfodder.com/index.php/2009/06/16/git-cheat-sheet/</link>
		<comments>http://kenfodder.com/index.php/2009/06/16/git-cheat-sheet/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 09:05:56 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://kenfodder.com/?p=35</guid>
		<description><![CDATA[
http://cheat.errtheblog.com/s/git

]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://cheat.errtheblog.com/s/git">http://cheat.errtheblog.com/s/git</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://kenfodder.com/index.php/2009/06/16/git-cheat-sheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Paperclip instead of Attachment_Fu</title>
		<link>http://kenfodder.com/index.php/2009/06/14/using-paperclip-instead-of-attachment_fu/</link>
		<comments>http://kenfodder.com/index.php/2009/06/14/using-paperclip-instead-of-attachment_fu/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 17:18:20 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://kenfodder.com/?p=20</guid>
		<description><![CDATA[
Moving to Paperclip
Uploading multiple images with Rails and Paperclip

]]></description>
			<content:encoded><![CDATA[<ul>
<li><a href="http://thewebfellas.com/blog/2008/11/2/goodbye-attachment_fu-hello-paperclip">Moving to Paperclip</a></li>
<li><a href="http://infrastacks.com/?p=57">Uploading multiple images with Rails and Paperclip</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://kenfodder.com/index.php/2009/06/14/using-paperclip-instead-of-attachment_fu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ruby &#8211; Protected and Private</title>
		<link>http://kenfodder.com/index.php/2009/06/14/ruby-protected-and-private/</link>
		<comments>http://kenfodder.com/index.php/2009/06/14/ruby-protected-and-private/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 13:40:24 +0000</pubDate>
		<dc:creator>Ken</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://kenfodder.com/?p=17</guid>
		<description><![CDATA[I keep forgetting this myself as Ruby&#8217;s way of handling Protected and Private is completely different to a lot of other programming languages. Lifted from Wikipedia here&#8217;s the basic explanation:
In Ruby, private visibility is what protected was in Java. Private methods in Ruby are accessible from children. This is a sensible design, since in Java, [...]]]></description>
			<content:encoded><![CDATA[<p>I keep forgetting this myself as Ruby&#8217;s way of handling Protected and Private is completely different to a lot of other programming languages. Lifted from <a href="http://en.wikibooks.org/wiki/Ruby_Programming/Syntax/Classes#Protected">Wikipedia</a> here&#8217;s the basic explanation:</p>
<blockquote><p>In Ruby, private visibility is what protected was in Java. Private methods in Ruby are accessible from children. This is a sensible design, since in Java, when method was private, it rendered it useless for children classes: making it a rule, that all methods should be &#8220;protected&#8221; by default, and never private. However, you can&#8217;t have truly private methods in Ruby; you can&#8217;t completely hide a method.</p>
<p>The difference between protected and private is subtle. If a method is protected, it may be called by any instance of the defining class or its subclasses. If a method is private, it may be called only within the context of the calling object&#8212;it is never possible to access another object instance&#8217;s private methods directly, even if the object is of the same class as the caller. For protected methods, they are accessible from objects of the same class (or children).</p>
<p>So, from within an object &#8220;a1&#8243; (an instance of Class A), you can call private methods only for instance of &#8220;a1&#8243; (self). And you can not call private methods of object &#8220;a2&#8243; (that also is of class A) &#8211; they are private to a2. But you can call protected methods of object &#8220;a2&#8243; since objects a1 and a2 are both of class A.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://kenfodder.com/index.php/2009/06/14/ruby-protected-and-private/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
