<?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> &#187; Programming</title>
	<atom:link href="http://freddysmind.com/blog/category/computers/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://freddysmind.com/blog</link>
	<description></description>
	<lastBuildDate>Wed, 14 Jul 2010 13:10:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Spring Source Tool&#160;Suite</title>
		<link>http://freddysmind.com/blog/2010/05/spring-source-tool-suite/</link>
		<comments>http://freddysmind.com/blog/2010/05/spring-source-tool-suite/#comments</comments>
		<pubDate>Thu, 20 May 2010 21:30:13 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=564</guid>
		<description><![CDATA[Holy crap, half a day and dozens of Google searches later, I found the 3 things necessary to install STS in Eclipse 3.5.2 Behold ! https://issuetracker.springsource.com/browse/STS-831 Adding these 3 update sites: http://download.eclipse.org/tools/mylyn/update/e3.4 http://download.eclipse.org/tools/mylyn/update/extras http://download.eclipse.org/tools/ajdt/35/update The one that fixed my particular issue was this one: http://download.eclipse.org/tools/ajdt/35/update]]></description>
			<content:encoded><![CDATA[<p>Holy crap, half a day and dozens of Google searches later, I found the 3 things necessary to install STS in Eclipse 3.5.2</p>
<p>Behold !</p>
<p><a href="https://issuetracker.springsource.com/browse/STS-831">https://issuetracker.springsource.com/browse/STS-831</a></p>
<p>Adding these 3 update sites:</p>
<p><a href="http://download.eclipse.org/tools/mylyn/update/e3.4">http://download.eclipse.org/tools/mylyn/update/e3.4</a><br />
<a href="http://download.eclipse.org/tools/mylyn/update/extras">http://download.eclipse.org/tools/mylyn/update/extras</a><br />
<a href="http://download.eclipse.org/tools/ajdt/35/update">http://download.eclipse.org/tools/ajdt/35/update</a></p>
<p>The one that fixed my particular issue was this one:</p>
<p><a href="http://download.eclipse.org/tools/ajdt/35/update">http://download.eclipse.org/tools/ajdt/35/update</a></p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/05/spring-source-tool-suite/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find filename given the whole&#160;path</title>
		<link>http://freddysmind.com/blog/2010/05/find-filename-given-the-whole-path/</link>
		<comments>http://freddysmind.com/blog/2010/05/find-filename-given-the-whole-path/#comments</comments>
		<pubDate>Tue, 11 May 2010 20:00:27 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=552</guid>
		<description><![CDATA[Often times in scripting on a Linux box, you end up passing around the full path to a resource (it&#8217;s messy coding tbh). This is great until you want to use just the filename in something. Here&#8217;s a simple Python method that takes a full filename with path and grabs just the filename. def findFileName [...]]]></description>
			<content:encoded><![CDATA[<p>Often times in scripting on a Linux box, you end up passing around the full path to a resource (it&#8217;s messy coding tbh).</p>
<p>This is great until you want to use <em>just</em> the filename in something.</p>
<p>Here&#8217;s a simple Python method that takes a full filename with path and grabs just the filename.</p>
<p>def findFileName (self, fileNameWithPath):</p>
<p style="padding-left: 30px;">splitStr = fileNameWithPath</p>
<p style="padding-left: 30px;">strList = splitStr.rsplit(&#8216;/&#8217;, 1)</p>
<p style="padding-left: 30px;">fileName = strList[len(strList) - 1]</p>
<p style="padding-left: 30px;">return fileName</p>
<p style="padding-left: 30px;">
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/05/find-filename-given-the-whole-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Default method variables Python vs.&#160;Java</title>
		<link>http://freddysmind.com/blog/2010/05/default-method-variables-python-vs-java/</link>
		<comments>http://freddysmind.com/blog/2010/05/default-method-variables-python-vs-java/#comments</comments>
		<pubDate>Mon, 10 May 2010 20:50:51 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=541</guid>
		<description><![CDATA[In Java you have to set default method values at either 1) A global level (Not safe) 2)Each time the method is called before you do any work within the method. This is preferred but involves a couple extra lines of code In Python, you can set default values in the definition of the function [...]]]></description>
			<content:encoded><![CDATA[<p>In Java you have to set default method values at either</p>
<p>1) A global level (Not safe)</p>
<p>2)Each time the method is called before you do any work within the method. This is preferred but involves a couple extra lines of code</p>
<p>In Python, you can set default values in the definition of the function itself. If a value is passed in, it overrides the default, if not, the default value is used.</p>
<p>def someMethod (self, var1, var2, var3=&#8217;false&#8217;):</p>
<p>In this example, var3 will always be set to &#8216;false&#8217;  (and you don&#8217;t need to pass it), but if you do pass it in, var3 will take on the passed in variables value.</p>
<p>In java it would be more like this:</p>
<p>void someMethod ( String var1, String var2, String var3){</p>
<p>String local_var1 = var1;</p>
<p>String local_var2 = var2;</p>
<p>String local_var3 = &#8220;false&#8221;;</p>
<p>local_var3 = var3;</p>
<p>}</p>
<p>You have to define the default value and then overwrite it.</p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/05/default-method-variables-python-vs-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What you need to know to&#160;program</title>
		<link>http://freddysmind.com/blog/2010/05/what-you-need-to-know-to-program/</link>
		<comments>http://freddysmind.com/blog/2010/05/what-you-need-to-know-to-program/#comments</comments>
		<pubDate>Wed, 05 May 2010 21:43:07 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Best Of Today]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=532</guid>
		<description><![CDATA[Like I said, good blog&#8230; http://sites.google.com/site/steveyegge2/practicing-programming http://sites.google.com/site/steveyegge2/what-you-need-to-know]]></description>
			<content:encoded><![CDATA[<p>Like I said, good blog&#8230;</p>
<p><a href="http://sites.google.com/site/steveyegge2/practicing-programming">http://sites.google.com/site/steveyegge2/practicing-programming</a></p>
<p><a href="http://sites.google.com/site/steveyegge2/what-you-need-to-know">http://sites.google.com/site/steveyegge2/what-you-need-to-know</a></p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/05/what-you-need-to-know-to-program/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Recruiting good&#160;developer&#8217;s</title>
		<link>http://freddysmind.com/blog/2010/05/recruiting-good-developers/</link>
		<comments>http://freddysmind.com/blog/2010/05/recruiting-good-developers/#comments</comments>
		<pubDate>Wed, 05 May 2010 21:37:51 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Best Of Today]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=529</guid>
		<description><![CDATA[Yea&#8230; my company does none of this: http://sites.google.com/site/steveyegge2/google-secret-weapon Good blog though.]]></description>
			<content:encoded><![CDATA[<p>Yea&#8230; my company does none of this: <a href="http://sites.google.com/site/steveyegge2/google-secret-weapon">http://sites.google.com/site/steveyegge2/google-secret-weapon</a></p>
<p>Good blog though.</p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/05/recruiting-good-developers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Humility</title>
		<link>http://freddysmind.com/blog/2010/05/humility/</link>
		<comments>http://freddysmind.com/blog/2010/05/humility/#comments</comments>
		<pubDate>Wed, 05 May 2010 21:36:57 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Best Of Today]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=527</guid>
		<description><![CDATA[So you start to feel comfortable with your knowledge of coding and/or a particular language&#8230; and then you run into something like this: http://www.jwz.org/doc/java.html And you all of a sudden&#8230; feel small.]]></description>
			<content:encoded><![CDATA[<p>So you start to feel comfortable with your knowledge of coding and/or a particular language&#8230; and then you run into something like this:</p>
<p><a href="http://www.jwz.org/doc/java.html">http://www.jwz.org/doc/java.html</a></p>
<p>And you all of a sudden&#8230; feel small.</p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/05/humility/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java encapsulation versus&#160;derivation</title>
		<link>http://freddysmind.com/blog/2010/04/java-encapsulation-versus-derivation/</link>
		<comments>http://freddysmind.com/blog/2010/04/java-encapsulation-versus-derivation/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 21:04:02 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=525</guid>
		<description><![CDATA[Inheritance vs. Interfaces http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-toolbox.html Interfaces wins out]]></description>
			<content:encoded><![CDATA[<p>Inheritance vs. Interfaces</p>
<p><a href="http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-toolbox.html">http://www.javaworld.com/javaworld/jw-08-2003/jw-0801-toolbox.html</a></p>
<p>Interfaces wins out</p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/04/java-encapsulation-versus-derivation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP Regular&#160;Expressions</title>
		<link>http://freddysmind.com/blog/2010/04/php-regular-expressions/</link>
		<comments>http://freddysmind.com/blog/2010/04/php-regular-expressions/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 15:20:49 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=522</guid>
		<description><![CDATA[http://net.tutsplus.com/tutorials/php/advanced-regular-expression-tips-and-techniques/]]></description>
			<content:encoded><![CDATA[<p><a href="http://net.tutsplus.com/tutorials/php/advanced-regular-expression-tips-and-techniques/">http://net.tutsplus.com/tutorials/php/advanced-regular-expression-tips-and-techniques</a>/</p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2010/04/php-regular-expressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Oracle Dual&#160;Table</title>
		<link>http://freddysmind.com/blog/2009/12/oracle-dual-table/</link>
		<comments>http://freddysmind.com/blog/2009/12/oracle-dual-table/#comments</comments>
		<pubDate>Fri, 18 Dec 2009 20:30:36 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[Oracle]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=443</guid>
		<description><![CDATA[http://en.wikipedia.org/wiki/DUAL_table http://www.oracle.com/technology/pub/articles/10gdba/week7_10gdba.html]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/DUAL_table">http://en.wikipedia.org/wiki/DUAL_table</a></p>
<p><a href="http://www.oracle.com/technology/pub/articles/10gdba/week7_10gdba.html">http://www.oracle.com/technology/pub/articles/10gdba/week7_10gdba.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2009/12/oracle-dual-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is&#160;2&gt;&amp;1</title>
		<link>http://freddysmind.com/blog/2009/12/what-is-21/</link>
		<comments>http://freddysmind.com/blog/2009/12/what-is-21/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 18:37:02 +0000</pubDate>
		<dc:creator>Freddy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[black hole]]></category>
		<category><![CDATA[Bourne]]></category>
		<category><![CDATA[Korn]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://freddysmind.com/blog/?p=423</guid>
		<description><![CDATA[From http://docstore.mik.ua/orelly/unix/upt/ch08_13.htm One of the common questions about the Bourne and Korn shells is why only the second command will redirect both stdout and stderr (13.1) to a file: $ cat food 2&#62;&#38;1 &#62;file cat: can't open food $ cat food &#62;file 2&#62;&#38;1 $ Although lots of sh manual pages don&#8217;t mention this, the shell reads arguments from [...]]]></description>
			<content:encoded><![CDATA[<h2>From <a href="http://docstore.mik.ua/orelly/unix/upt/ch08_13.htm">http://docstore.mik.ua/orelly/unix/upt/ch08_13.htm</a></h2>
<h2></h2>
<h2><span style="font-weight: normal; font-size: 13px;">One of the common questions about the Bourne and Korn shells is why only the second command will redirect both <span><em>stdout</em> and <em>stderr</em> (<a title="Using Standard Input and Output" href="http://docstore.mik.ua/orelly/unix/upt/ch13_01.htm#UPT-ART-1023">13.1</a>)</span> to a file:</span></h2>
<blockquote>
<pre>$ <code><strong>cat food 2&gt;&amp;1 &gt;file</strong></code>
cat: can't open food
$ <code><strong>cat food &gt;file 2&gt;&amp;1</strong></code>
$</pre>
</blockquote>
<p>Although lots of <em>sh</em> manual pages don&#8217;t mention this, the shell reads arguments from left to right.</p>
<ol>
<li>On the first command line, the shell sees <code>2&gt;&amp;1</code> first. That means &#8220;make the standard error (file descriptor 2) go to the same place as the standard output (fd1) is going.&#8221; There&#8217;s no effect because both fd2 and fd1 are already going to the terminal. Then<code>&gt;file</code> redirects fd1 (<em>stdout</em>) to <code>file</code>. But fd2 (<em>stderr</em>) is still going to the terminal.</li>
<li>On the second command line, the shell sees <code>&gt;file</code> first and redirects <em>stdout</em> to <code>file</code>. Next <code>2&gt;&amp;1</code> sends fd2 (<em>stderr</em>) to the same place fd1 is going - that&#8217;s to the file. And that&#8217;s what you want.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://freddysmind.com/blog/2009/12/what-is-21/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
