<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">
<channel>
	<title>Comments for NewInstance</title>
	
	<link>http://en.newinstance.it</link>
	<description>Welcome to the official blog of Luigi R. Viggiano. Beware of imitations.</description>
	<lastBuildDate>Fri, 13 Jan 2012 02:25:18 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/newinstance/comments" /><feedburner:info uri="newinstance/comments" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Comment on How to create launchers in OSX by using applescript to create a new terminal window to display log files » Zerohimselfs blog</title>
		<link>http://en.newinstance.it/2010/04/06/how-to-create-launchers-in-osx/comment-page-1/#comment-498607</link>
		<dc:creator>using applescript to create a new terminal window to display log files » Zerohimselfs blog</dc:creator>
		<pubDate>Fri, 13 Jan 2012 02:25:18 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/2010/04/06/how-to-create-launchers-in-osx/#comment-498607</guid>
		<description>[...] http://en.newinstance.it/2010/04/06/how-to-create-launchers-in-osx/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://en.newinstance.it/2010/04/06/how-to-create-launchers-in-osx/" rel="nofollow">http://en.newinstance.it/2010/04/06/how-to-create-launchers-in-osx/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key by a</title>
		<link>http://en.newinstance.it/2009/06/22/the-following-signatures-were-invalid-badsig-40976eaf437d05b5-ubuntu-archive-automatic-signing-key/comment-page-1/#comment-498605</link>
		<dc:creator>a</dc:creator>
		<pubDate>Tue, 10 Jan 2012 11:32:38 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/2009/06/22/the-following-signatures-were-invalid-badsig-40976eaf437d05b5-ubuntu-archive-automatic-signing-key/#comment-498605</guid>
		<description>good!</description>
		<content:encoded><![CDATA[<p>good!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key by Doru</title>
		<link>http://en.newinstance.it/2009/06/22/the-following-signatures-were-invalid-badsig-40976eaf437d05b5-ubuntu-archive-automatic-signing-key/comment-page-1/#comment-498604</link>
		<dc:creator>Doru</dc:creator>
		<pubDate>Sat, 07 Jan 2012 11:11:38 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/2009/06/22/the-following-signatures-were-invalid-badsig-40976eaf437d05b5-ubuntu-archive-automatic-signing-key/#comment-498604</guid>
		<description>For everyone still getting the same error after this procedure: please make sure that you try the manual way also:

wget http://repos.zend.com/zend.key -O- |apt-key add -

this will add the needed key to your lists. Hopefully it will help someone.</description>
		<content:encoded><![CDATA[<p>For everyone still getting the same error after this procedure: please make sure that you try the manual way also:</p>
<p>wget <a href="http://repos.zend.com/zend.key" rel="nofollow">http://repos.zend.com/zend.key</a> -O- |apt-key add -</p>
<p>this will add the needed key to your lists. Hopefully it will help someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Working in Düsseldorf by Ade</title>
		<link>http://en.newinstance.it/2010/06/03/working-in-dusseldorf/comment-page-1/#comment-498601</link>
		<dc:creator>Ade</dc:creator>
		<pubDate>Sun, 25 Dec 2011 10:44:40 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/?p=560#comment-498601</guid>
		<description>Hi Great overview and info
I understand that DUS is a bike friendly city? Are there places to rent bikes for a period or would it make sense to buy one if one was to stay in DUS for let's say 6 months- to a year? 
Thanks Ade</description>
		<content:encoded><![CDATA[<p>Hi Great overview and info<br />
I understand that DUS is a bike friendly city? Are there places to rent bikes for a period or would it make sense to buy one if one was to stay in DUS for let&#8217;s say 6 months- to a year?<br />
Thanks Ade</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Install Tutorial: Ubuntu 9.04, Apache with SSL, Subversion over HTTP / HTTPs, and Trac by faith</title>
		<link>http://en.newinstance.it/2009/08/27/tutorial-ubuntu-904-apache-with-ssl-subversion-over-http-https-and-trac/comment-page-1/#comment-498596</link>
		<dc:creator>faith</dc:creator>
		<pubDate>Fri, 09 Dec 2011 04:51:21 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/2009/08/27/tutorial-ubuntu-904-apache-with-ssl-subversion-over-http-https-and-trac/#comment-498596</guid>
		<description>hi luigi
i did chmod on the servers file n .subversion directory until it has full access permissions
but the error message still popped out..
any suggestion???</description>
		<content:encoded><![CDATA[<p>hi luigi<br />
i did chmod on the servers file n .subversion directory until it has full access permissions<br />
but the error message still popped out..<br />
any suggestion???</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JAXB Tip: one line of code to marshall and unmarshall xml. by Luigi</title>
		<link>http://en.newinstance.it/2011/05/26/jaxb-tip-one-line-of-code-to-marshall-and-unmarshall-xml/comment-page-1/#comment-498595</link>
		<dc:creator>Luigi</dc:creator>
		<pubDate>Tue, 06 Dec 2011 21:09:14 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/?p=1019#comment-498595</guid>
		<description>Awesome comment Tim, thanks for sharing.</description>
		<content:encoded><![CDATA[<p>Awesome comment Tim, thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JAXB Tip: one line of code to marshall and unmarshall xml. by Tim</title>
		<link>http://en.newinstance.it/2011/05/26/jaxb-tip-one-line-of-code-to-marshall-and-unmarshall-xml/comment-page-1/#comment-498594</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Mon, 05 Dec 2011 23:25:53 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/?p=1019#comment-498594</guid>
		<description>In addition, in at least some implementations of JAXB, each call to create a JAXBContext object will result in the creation of an anonymous class that does not get garbage collected.  So over time, you'll run out of memory (PermGen, presumably, though I haven't tried to reproduce the problem directly in order to confirm that).  If you're just running the occasional unmarshal operation, you won't care about either of these things, but if you're doing lots of unmarshal operations, then reusing a single JAXBContext will make a big difference in both respects.

References:
http://whileonefork.blogspot.com/2010/09/leaking-of-jaxb.html
http://stackoverflow.com/questions/3584821/jaxbcontext-newinstance-memory-leak</description>
		<content:encoded><![CDATA[<p>In addition, in at least some implementations of JAXB, each call to create a JAXBContext object will result in the creation of an anonymous class that does not get garbage collected.  So over time, you&#8217;ll run out of memory (PermGen, presumably, though I haven&#8217;t tried to reproduce the problem directly in order to confirm that).  If you&#8217;re just running the occasional unmarshal operation, you won&#8217;t care about either of these things, but if you&#8217;re doing lots of unmarshal operations, then reusing a single JAXBContext will make a big difference in both respects.</p>
<p>References:<br />
<a href="http://whileonefork.blogspot.com/2010/09/leaking-of-jaxb.html" rel="nofollow">http://whileonefork.blogspot.com/2010/09/leaking-of-jaxb.html</a><br />
<a href="http://stackoverflow.com/questions/3584821/jaxbcontext-newinstance-memory-leak" rel="nofollow">http://stackoverflow.com/questions/3584821/jaxbcontext-newinstance-memory-leak</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on I/O Exception handling by blink4blog</title>
		<link>http://en.newinstance.it/2011/11/29/io-exception-handling/comment-page-1/#comment-498593</link>
		<dc:creator>blink4blog</dc:creator>
		<pubDate>Mon, 05 Dec 2011 03:28:24 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/?p=1223#comment-498593</guid>
		<description>I agree with the first method base on the assumptions of the following:

1. The exception is not recovrable
2. The exception is not expected to the catchable
3. There is no business value to catch the exception unless the logic can proceed without the IOStream presence.
4. The exception give technical information for system administrator or programmers.

My 2 cents..</description>
		<content:encoded><![CDATA[<p>I agree with the first method base on the assumptions of the following:</p>
<p>1. The exception is not recovrable<br />
2. The exception is not expected to the catchable<br />
3. There is no business value to catch the exception unless the logic can proceed without the IOStream presence.<br />
4. The exception give technical information for system administrator or programmers.</p>
<p>My 2 cents..</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on I/O Exception handling by Luigi</title>
		<link>http://en.newinstance.it/2011/11/29/io-exception-handling/comment-page-1/#comment-498590</link>
		<dc:creator>Luigi</dc:creator>
		<pubDate>Tue, 29 Nov 2011 14:16:01 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/?p=1223#comment-498590</guid>
		<description>tbee, not true, I'd tipically let the IOException flow out of the method, since IOException most of the time can't be recovered (i.e. just report the failure to the user with a proper message).

Before using try/catch[/finally], I'd think if I can actually do something to handle the exception when it is raised. I write much more often try/finally than try/catch[/finally].</description>
		<content:encoded><![CDATA[<p>tbee, not true, I&#8217;d tipically let the IOException flow out of the method, since IOException most of the time can&#8217;t be recovered (i.e. just report the failure to the user with a proper message).</p>
<p>Before using try/catch[/finally], I&#8217;d think if I can actually do something to handle the exception when it is raised. I write much more often try/finally than try/catch[/finally].</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on I/O Exception handling by tbee</title>
		<link>http://en.newinstance.it/2011/11/29/io-exception-handling/comment-page-1/#comment-498589</link>
		<dc:creator>tbee</dc:creator>
		<pubDate>Tue, 29 Nov 2011 14:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://en.newinstance.it/?p=1223#comment-498589</guid>
		<description>You'd have to have a second try-catch to deal with the IOException. I've improved the second pattern with a custom close method:


OutputStream out = null;
try {
    out = new MyOutputStream(...); //may throw IOException
    //use the stream
} 
finally {
    out = IOUtil.close(out);
}

The close only closes if the parameter  null and always returns null. 
BTW, the new Java 7 pattern is


try (
    OutputStream out = new MyOutputStream(...); //may throw IOException
)
{
    //use the stream
} 
finally {
   // auto closes
}</description>
		<content:encoded><![CDATA[<p>You&#8217;d have to have a second try-catch to deal with the IOException. I&#8217;ve improved the second pattern with a custom close method:</p>
<p>OutputStream out = null;<br />
try {<br />
    out = new MyOutputStream(&#8230;); //may throw IOException<br />
    //use the stream<br />
}<br />
finally {<br />
    out = IOUtil.close(out);<br />
}</p>
<p>The close only closes if the parameter  null and always returns null.<br />
BTW, the new Java 7 pattern is</p>
<p>try (<br />
    OutputStream out = new MyOutputStream(&#8230;); //may throw IOException<br />
)<br />
{<br />
    //use the stream<br />
}<br />
finally {<br />
   // auto closes<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

