<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments for Hai's Blog</title>
	<atom:link href="http://wuhrr.wordpress.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://wuhrr.wordpress.com</link>
	<description>Useful stuff, life, photography, kids, technical, programming, and what-else?</description>
	<lastBuildDate>Wed, 02 Dec 2009 19:39:18 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Changing Directory Listing (ls) Color in Linux and Mac OS X by pdoyley</title>
		<link>http://wuhrr.wordpress.com/2009/04/25/changing-directory-listing-ls-color-in-linux-and-mac-os-x/#comment-3349</link>
		<dc:creator>pdoyley</dc:creator>
		<pubDate>Wed, 02 Dec 2009 19:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://wuhrr.wordpress.com/2009/04/25/changing-directory-listing-ls-color-in-linux-and-mac-os-x/#comment-3349</guid>
		<description>Same situation.. this is great, thanks!</description>
		<content:encoded><![CDATA[<p>Same situation.. this is great, thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Remove Duplicates in a Java Array by Earl</title>
		<link>http://wuhrr.wordpress.com/2007/12/05/remove-duplicates-in-a-java-array/#comment-3348</link>
		<dc:creator>Earl</dc:creator>
		<pubDate>Wed, 02 Dec 2009 19:36:44 +0000</pubDate>
		<guid isPermaLink="false">http://wuhrr.wordpress.com/2007/12/05/remove-duplicates-in-a-java-array/#comment-3348</guid>
		<description>The code above wouldn&#039;t compile, here the code that works:

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class MergeStrings {
	public static void main(String[] argz) {
		try {
		String[] policyNumbers = new String[6];
		
		policyNumbers[0] = &quot;12345678?;

		policyNumbers[0] = &quot;16018189?;&quot; +
				&quot;, &quot;12345678?, &quot;16018189?, &quot;12345678?, &quot;16018189&quot;};

		String[] refinedPolicies = removeDuplicates(policyNumbers);
		log(&quot;refinedPolicies size:&quot; + refinedPolicies.length);

		} catch (Exception e) {
		e.printStackTrace();
		}
		}

		private static String[] removeDuplicates(String[] stringArray){

		if( stringArray == null &amp;&amp; stringArray.length == 0){
		return stringArray;
		}

		ArrayList stringArrayList = new ArrayList();
		String trimmedString = null;

		for( int i=0; i0){

		if( !stringArrayList.contains(trimmedString)){
		stringArrayList.add(trimmedString);
		}
		}
		}

		String[] refinedStringArray = new String[stringArrayList.size()];
		stringArrayList.toArray(refinedStringArray);
		return refinedStringArray;

		}
}</description>
		<content:encoded><![CDATA[<p>The code above wouldn&#8217;t compile, here the code that works:</p>
<p>import java.util.ArrayList;<br />
import java.util.Arrays;<br />
import java.util.List;</p>
<p>public class MergeStrings {<br />
	public static void main(String[] argz) {<br />
		try {<br />
		String[] policyNumbers = new String[6];</p>
<p>		policyNumbers[0] = &#8220;12345678?;</p>
<p>		policyNumbers[0] = &#8220;16018189?;&#8221; +<br />
				&#8220;, &#8220;12345678?, &#8220;16018189?, &#8220;12345678?, &#8220;16018189&#8243;};</p>
<p>		String[] refinedPolicies = removeDuplicates(policyNumbers);<br />
		log(&#8220;refinedPolicies size:&#8221; + refinedPolicies.length);</p>
<p>		} catch (Exception e) {<br />
		e.printStackTrace();<br />
		}<br />
		}</p>
<p>		private static String[] removeDuplicates(String[] stringArray){</p>
<p>		if( stringArray == null &amp;&amp; stringArray.length == 0){<br />
		return stringArray;<br />
		}</p>
<p>		ArrayList stringArrayList = new ArrayList();<br />
		String trimmedString = null;</p>
<p>		for( int i=0; i0){</p>
<p>		if( !stringArrayList.contains(trimmedString)){<br />
		stringArrayList.add(trimmedString);<br />
		}<br />
		}<br />
		}</p>
<p>		String[] refinedStringArray = new String[stringArrayList.size()];<br />
		stringArrayList.toArray(refinedStringArray);<br />
		return refinedStringArray;</p>
<p>		}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple Menu with Bash&#8217;s Select Command by Paul Juckniess</title>
		<link>http://wuhrr.wordpress.com/2009/09/10/simple-menu-with-bashs-select-command/#comment-3347</link>
		<dc:creator>Paul Juckniess</dc:creator>
		<pubDate>Wed, 02 Dec 2009 14:15:16 +0000</pubDate>
		<guid isPermaLink="false">http://wuhrr.wordpress.com/2009/09/10/simple-menu-with-bashs-select-command/#comment-3347</guid>
		<description>Thanks for posting.  This was just what i was looking for.</description>
		<content:encoded><![CDATA[<p>Thanks for posting.  This was just what i was looking for.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Exceptions List by Hai</title>
		<link>http://wuhrr.wordpress.com/2007/11/22/java-exceptions-list/#comment-3346</link>
		<dc:creator>Hai</dc:creator>
		<pubDate>Tue, 24 Nov 2009 06:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://wuhrr.wordpress.com/2007/11/22/java-exceptions-list/#comment-3346</guid>
		<description>Thank you Matt, I have added IllegalStateException to the list</description>
		<content:encoded><![CDATA[<p>Thank you Matt, I have added IllegalStateException to the list</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Exceptions List by Matt</title>
		<link>http://wuhrr.wordpress.com/2007/11/22/java-exceptions-list/#comment-3345</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Mon, 23 Nov 2009 16:48:35 +0000</pubDate>
		<guid isPermaLink="false">http://wuhrr.wordpress.com/2007/11/22/java-exceptions-list/#comment-3345</guid>
		<description>Helpful list.

One you missed:
IllegalStateException

Also, you might want to consider dividing the list into checked and unchecked exceptions (http://java.sun.com/docs/books/tutorial/essential/exceptions/catchOrDeclare.html).</description>
		<content:encoded><![CDATA[<p>Helpful list.</p>
<p>One you missed:<br />
IllegalStateException</p>
<p>Also, you might want to consider dividing the list into checked and unchecked exceptions (<a href="http://java.sun.com/docs/books/tutorial/essential/exceptions/catchOrDeclare.html" rel="nofollow">http://java.sun.com/docs/books/tutorial/essential/exceptions/catchOrDeclare.html</a>).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Tiger to Leopard Migration Tale by What are the steps needed to upgrade from Tiger to Leopard? &#124; yomo</title>
		<link>http://wuhrr.wordpress.com/2007/12/24/tiger-to-leopard-migration-tale/#comment-3344</link>
		<dc:creator>What are the steps needed to upgrade from Tiger to Leopard? &#124; yomo</dc:creator>
		<pubDate>Sun, 22 Nov 2009 12:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://wuhrr.wordpress.com/2007/12/24/tiger-to-leopard-migration-tale/#comment-3344</guid>
		<description>[...] some good info on backing up and migrating data at http://weblog.redlinesoftware.com/2008/1… and http://wuhrr.wordpress.com/2007/12/24/ti… that mention free backup apps that may be [...]</description>
		<content:encoded><![CDATA[<p>[...] some good info on backing up and migrating data at <a href="http://weblog.redlinesoftware.com/2008/1…" rel="nofollow">http://weblog.redlinesoftware.com/2008/1…</a> and <a href="http://wuhrr.wordpress.com/2007/12/24/ti…" rel="nofollow">http://wuhrr.wordpress.com/2007/12/24/ti…</a> that mention free backup apps that may be [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Exceptions List by ;erwin ualat</title>
		<link>http://wuhrr.wordpress.com/2007/11/22/java-exceptions-list/#comment-3343</link>
		<dc:creator>;erwin ualat</dc:creator>
		<pubDate>Tue, 10 Nov 2009 06:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://wuhrr.wordpress.com/2007/11/22/java-exceptions-list/#comment-3343</guid>
		<description>can someone create a short program with me.. like calculator</description>
		<content:encoded><![CDATA[<p>can someone create a short program with me.. like calculator</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Exceptions List by Hai</title>
		<link>http://wuhrr.wordpress.com/2007/11/22/java-exceptions-list/#comment-3324</link>
		<dc:creator>Hai</dc:creator>
		<pubDate>Tue, 22 Sep 2009 21:32:01 +0000</pubDate>
		<guid isPermaLink="false">http://wuhrr.wordpress.com/2007/11/22/java-exceptions-list/#comment-3324</guid>
		<description>@RR - I added AssertionException, but did not find any info on URLBlockException. Did you misspelled it?</description>
		<content:encoded><![CDATA[<p>@RR &#8211; I added AssertionException, but did not find any info on URLBlockException. Did you misspelled it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Java Exceptions List by RR</title>
		<link>http://wuhrr.wordpress.com/2007/11/22/java-exceptions-list/#comment-3321</link>
		<dc:creator>RR</dc:creator>
		<pubDate>Tue, 22 Sep 2009 05:43:54 +0000</pubDate>
		<guid isPermaLink="false">http://wuhrr.wordpress.com/2007/11/22/java-exceptions-list/#comment-3321</guid>
		<description>Where&#039;s the AssertionException &amp; the URLBlockException ?

But anyways thanks - it helped !</description>
		<content:encoded><![CDATA[<p>Where&#8217;s the AssertionException &amp; the URLBlockException ?</p>
<p>But anyways thanks &#8211; it helped !</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Quick and Dirty Way to Parse Command Line in a Bash Script by cfajohnson</title>
		<link>http://wuhrr.wordpress.com/2009/09/18/quick-and-dirty-way-to-parse-command-line-in-a-bash-script/#comment-3320</link>
		<dc:creator>cfajohnson</dc:creator>
		<pubDate>Mon, 21 Sep 2009 18:35:12 +0000</pubDate>
		<guid isPermaLink="false">http://wuhrr.wordpress.com/2009/09/18/quick-and-dirty-way-to-parse-command-line-in-a-bash-script/#comment-3320</guid>
		<description>You might be interested in this implementation of long options in a shell function:

http://groups.google.com/group/comp.unix.shell/msg/61780046bd779ae0?dmode=source</description>
		<content:encoded><![CDATA[<p>You might be interested in this implementation of long options in a shell function:</p>
<p><a href="http://groups.google.com/group/comp.unix.shell/msg/61780046bd779ae0?dmode=source" rel="nofollow">http://groups.google.com/group/comp.unix.shell/msg/61780046bd779ae0?dmode=source</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
