<?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>beer planet &#187; Java</title> <atom:link href="http://beerpla.net/tag/java/feed/" rel="self" type="application/rss+xml" /><link>http://beerpla.net</link> <description>where things have nothing to do with beer - tutorials, tips, how-tos, thoughts, hacks, and other techy nonsense</description> <lastBuildDate>Thu, 17 May 2012 22:50:53 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <atom:link rel='hub' href='http://beerpla.net/?pushpress=hub'/> <item><title>[Android] Auto Formatting Android XML Files With Eclipse</title><link>http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/</link> <comments>http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/#comments</comments> <pubDate>Thu, 05 Nov 2009 02:44:54 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Android]]></category> <category><![CDATA[Eclipse]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Tips]]></category> <category><![CDATA[Tutorials]]></category> <category><![CDATA[auto format]]></category> <category><![CDATA[autoformat]]></category> <category><![CDATA[automatic]]></category> <category><![CDATA[clean up]]></category> <category><![CDATA[cleanup]]></category> <category><![CDATA[format]]></category> <category><![CDATA[indentation]]></category> <category><![CDATA[tag]]></category> <category><![CDATA[xml]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/</guid> <description><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_thumb.png" width="150" height="109" /> In this article I will describe the problem I&#039;ve had with Eclipse&#039;s handling of XML file formatting as well as the best way to fix it.</p><p>&#160;</p><p>I use Eclipse to do my Android development for a few reasons:</p><ul><li>it&#039;s the only IDE fully supported by the Android dev team</li><li>it has a visual Layout/Resources builder that transforms XML files into corresponding visual representations</li><li>it&#039;s free and open source</li><li>I&#039;ve been using Eclipse for many years and am very familiar with it</li></ul><p><div
class="note"><div
class="noteclassic">In order to use the visual features in Eclipse when developing for Android, you need to install <a
href="http://developer.android.com/sdk/eclipse-adt.html" rel="nofollow">the ADT plugin</a> provided by Google</div></div></p><h2>The Problem</h2><p>However, one thing about Eclipse Android development has bothered me for a while ...<div
class=clear></div> <a
href="http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_thumb.png" width="150" height="109" /> In this article I will describe the problem I&#039;ve had with Eclipse&#039;s handling of XML file formatting as well as the best way to fix it.</p><p>&#160;</p><p>I use Eclipse to do my Android development for a few reasons:</p><ul><li>it&#039;s the only IDE fully supported by the Android dev team</li><li>it has a visual Layout/Resources builder that transforms XML files into corresponding visual representations</li><li>it&#039;s free and open source</li><li>I&#039;ve been using Eclipse for many years and am very familiar with it</li></ul><p><div
class="note"><div
class="noteclassic">In order to use the visual features in Eclipse when developing for Android, you need to install <a
href="http://developer.android.com/sdk/eclipse-adt.html" rel="nofollow">the ADT plugin</a> provided by Google</div></div></p><h2>The Problem</h2><p>However, one thing about Eclipse Android development has bothered me for a while &#8211; and that is XML formatting by the visual tools. See, if you open an XML file in Eclipse and use the Layout/Resources tab (which functions as either a visual UI builder or a visual frontend to resource management), Eclipse creates the XML representation of what you&#039;re building and dumps it into the file you&#039;re editing. The problem is, this XML is not formatted in any way &#8211; Eclipse just writes it in a single line, which looks absolutely horrible and is essentially unusable.</p><p>For example, I had this beautifully formatted XML file with a sample Android menu. After using the Layout tab to add another item, I ended up with an single ugly unindented line for it.</p><p><a
href="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_3.png" class="lightview" rel="gallery['1215']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_thumb_3.png" width="700" height="189" /></a></p><h2>The Solution</h2><p>Here&#039;s how to solve this in an almost fully automated fashion, using formatting rules that I think result in the most readable file. There is no need for external tools &#8211; Eclipse provides everything needed.</p><ul><li>open up Window-&gt;Preferences-&gt;XML-&gt;XML Files-&gt;Editor <br
/><a
href="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_4.png" class="lightview" rel="gallery['1215']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_thumb_4.png" width="636" height="667" /></a></li><li>check the &quot;Split multiple attributes each on a new line&quot; and adjust other options according to your liking (such as Indent using spaces and Indentation size)</li><li>press OK to save the options</li><li>all you have to do now is press Ctrl-Shift-F or select Source-&gt;Format</li></ul><p>Let&#039;s see what this does to the XML I showed above:</p><p><a
href="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_5.png" class="lightview" rel="gallery['1215']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_thumb_5.png" width="573" height="333" /></a> It&#039;s a beauty, isn&#039;t it? Eclipse&#039;s Auto Format is one of its best features (yes, you can apply it to your Android Java code too as well as pretty much any other document format).</p><h2>Bonus &#8211; XML Cleanup</h2><p>As an added bonus, Eclipse also offers a Cleanup XML option, which can do the following:</p><ul><li>compress empty element tags</li><li>insert required attributes</li><li>insert missing tags</li><li>quote attribute values</li><li>format source (as above)</li><li>convert line delimiters to Windows, UNIX, or Mac</li></ul><p>You can access the Cleanup option via Source-&gt;Cleanup</p><p><a
href="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_6.png" class="lightview" rel="gallery['1215']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_thumb_6.png" width="225" height="247" /></a> Running Cleanup on my already pretty clean XML file turned the last &lt;item&gt; into this:</p><p><a
href="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_7.png" class="lightview" rel="gallery['1215']" title="image"><img
style="display: block; float: none; margin-left: auto; margin-right: auto" title="image" alt="image" src="http://beerpla.net/wp-content/uploads/AndroidAutoFormattingAndroidXMLFilesWith_14588/image_thumb_7.png" width="554" height="104" /></a> The first option compressed the &lt;item&gt;&lt;/item&gt; declaration to simply &lt;item /&gt;. Neat, isn&#039;t it?</p><h2>Final Words</h2><p><strong>+</strong> Clean is good.</p><p><strong>+</strong> Uniform is good.</p><p><strong>+</strong> Use Ctrl-Shift-F and make it a habit.</p><p><strong>+</strong> Create a keyboard shortcut to the Cleanup function by going to Window-&gt;Preferences-&gt;General-&gt;Keys and use it instead of Ctrl-Shift-F (since it already formats as part of the Cleanup).</p><p><strong>?</strong> I&#039;d like to know if there is a way to apply auto formatting upon save, automatically. Do you?</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=%5BAndroid%5D+Auto+Formatting+Android+XML+Files+With+Eclipse&amp;link=http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/&amp;notes=%20In%20this%20article%20I%20will%20describe%20the%20problem%20I%27ve%20had%20with%20Eclipse%27s%20handling%20of%20XML%20file%20formatting%20as%20well%20as%20the%20best%20way%20to%20fix%20it.%20%20%26%23160%3B%20%20I%20use%20Eclipse%20to%20do%20my%20Android%20development%20for%20a%20few%20reasons%3A%20%20%20%20%20it%27s%20the%20only%20IDE%20fully%20supported%20by%20the%20Android%20dev%20team%20%20%20%20%20it%20has%20a%20visual%20Layout%2FReso&amp;short_link=http://bit.ly/cNm6Ld&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=%5BAndroid%5D+Auto+Formatting+Android+XML+Files+With+Eclipse&amp;link=http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/&amp;notes=%20In%20this%20article%20I%20will%20describe%20the%20problem%20I%27ve%20had%20with%20Eclipse%27s%20handling%20of%20XML%20file%20formatting%20as%20well%20as%20the%20best%20way%20to%20fix%20it.%20%20%26%23160%3B%20%20I%20use%20Eclipse%20to%20do%20my%20Android%20development%20for%20a%20few%20reasons%3A%20%20%20%20%20it%27s%20the%20only%20IDE%20fully%20supported%20by%20the%20Android%20dev%20team%20%20%20%20%20it%20has%20a%20visual%20Layout%2FReso&amp;short_link=http://bit.ly/cNm6Ld&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=%5BAndroid%5D+Auto+Formatting+Android+XML+Files+With+Eclipse&amp;link=http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/&amp;notes=%20In%20this%20article%20I%20will%20describe%20the%20problem%20I%27ve%20had%20with%20Eclipse%27s%20handling%20of%20XML%20file%20formatting%20as%20well%20as%20the%20best%20way%20to%20fix%20it.%20%20%26%23160%3B%20%20I%20use%20Eclipse%20to%20do%20my%20Android%20development%20for%20a%20few%20reasons%3A%20%20%20%20%20it%27s%20the%20only%20IDE%20fully%20supported%20by%20the%20Android%20dev%20team%20%20%20%20%20it%20has%20a%20visual%20Layout%2FReso&amp;short_link=http://bit.ly/cNm6Ld&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=%5BAndroid%5D+Auto+Formatting+Android+XML+Files+With+Eclipse&amp;link=http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/&amp;notes=%20In%20this%20article%20I%20will%20describe%20the%20problem%20I%27ve%20had%20with%20Eclipse%27s%20handling%20of%20XML%20file%20formatting%20as%20well%20as%20the%20best%20way%20to%20fix%20it.%20%20%26%23160%3B%20%20I%20use%20Eclipse%20to%20do%20my%20Android%20development%20for%20a%20few%20reasons%3A%20%20%20%20%20it%27s%20the%20only%20IDE%20fully%20supported%20by%20the%20Android%20dev%20team%20%20%20%20%20it%20has%20a%20visual%20Layout%2FReso&amp;short_link=http://bit.ly/cNm6Ld&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=%5BAndroid%5D+Auto+Formatting+Android+XML+Files+With+Eclipse&amp;link=http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/&amp;notes=%20In%20this%20article%20I%20will%20describe%20the%20problem%20I%27ve%20had%20with%20Eclipse%27s%20handling%20of%20XML%20file%20formatting%20as%20well%20as%20the%20best%20way%20to%20fix%20it.%20%20%26%23160%3B%20%20I%20use%20Eclipse%20to%20do%20my%20Android%20development%20for%20a%20few%20reasons%3A%20%20%20%20%20it%27s%20the%20only%20IDE%20fully%20supported%20by%20the%20Android%20dev%20team%20%20%20%20%20it%20has%20a%20visual%20Layout%2FReso&amp;short_link=http://bit.ly/cNm6Ld&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=%5BAndroid%5D+Auto+Formatting+Android+XML+Files+With+Eclipse&amp;link=http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/&amp;notes=%20In%20this%20article%20I%20will%20describe%20the%20problem%20I%27ve%20had%20with%20Eclipse%27s%20handling%20of%20XML%20file%20formatting%20as%20well%20as%20the%20best%20way%20to%20fix%20it.%20%20%26%23160%3B%20%20I%20use%20Eclipse%20to%20do%20my%20Android%20development%20for%20a%20few%20reasons%3A%20%20%20%20%20it%27s%20the%20only%20IDE%20fully%20supported%20by%20the%20Android%20dev%20team%20%20%20%20%20it%20has%20a%20visual%20Layout%2FReso&amp;short_link=http://bit.ly/cNm6Ld&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=%5BAndroid%5D+Auto+Formatting+Android+XML+Files+With+Eclipse&amp;link=http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/&amp;notes=%20In%20this%20article%20I%20will%20describe%20the%20problem%20I%27ve%20had%20with%20Eclipse%27s%20handling%20of%20XML%20file%20formatting%20as%20well%20as%20the%20best%20way%20to%20fix%20it.%20%20%26%23160%3B%20%20I%20use%20Eclipse%20to%20do%20my%20Android%20development%20for%20a%20few%20reasons%3A%20%20%20%20%20it%27s%20the%20only%20IDE%20fully%20supported%20by%20the%20Android%20dev%20team%20%20%20%20%20it%20has%20a%20visual%20Layout%2FReso&amp;short_link=http://bit.ly/cNm6Ld&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=%5BAndroid%5D%20Auto%20Formatting%20Android%20XML%20Files%20With%20Eclipse&amp;link=http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/&amp;notes=%20In%20this%20article%20I%20will%20describe%20the%20problem%20I%27ve%20had%20with%20Eclipse%27s%20handling%20of%20XML%20file%20formatting%20as%20well%20as%20the%20best%20way%20to%20fix%20it.%20%20%26%23160%3B%20%20I%20use%20Eclipse%20to%20do%20my%20Android%20development%20for%20a%20few%20reasons%3A%20%20%20%20%20it%27s%20the%20only%20IDE%20fully%20supported%20by%20the%20Android%20dev%20team%20%20%20%20%20it%20has%20a%20visual%20Layout%2FReso&amp;short_link=http://bit.ly/cNm6Ld&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2008/04/09/some-useful-vim-commands-my-vim-cheatsheet/" rel="bookmark" title="April 9, 2008">Some Useful vim Commands &#8211; My vim Cheatsheet</a></li><li><a
href="http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/" rel="bookmark" title="October 15, 2009">Installing The Android Plugin For Eclipse</a></li><li><a
href="http://beerpla.net/2010/09/29/how-to-update-eclipse-from-galileo-3-5-to-helios-3-6-in-place-without-reinstalling/" rel="bookmark" title="September 29, 2010">How To Update Eclipse From Galileo (3.5) To Helios (3.6) In-Place Without Reinstalling</a></li><li><a
href="http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/" rel="bookmark" title="January 18, 2010">WordPress Developers &#8211; How Do You Make A Living [Poll + Discussion]?</a></li><li><a
href="http://beerpla.net/2008/12/22/mastering-the-linux-shell-bash-shortcuts-explained/" rel="bookmark" title="December 22, 2008">Mastering The Linux Shell &#8211; Bash Shortcuts Explained (Now With Cheat Sheets)</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F11%2F04%2Fandroid-auto-formatting-android-xml-files-with-eclipse%2F&amp;title=%5BAndroid%5D%20Auto%20Formatting%20Android%20XML%20Files%20With%20Eclipse" id="wpa2a_2"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Installing The Android Plugin For Eclipse</title><link>http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/</link> <comments>http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/#comments</comments> <pubDate>Thu, 15 Oct 2009 21:36:56 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Android]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Eclipse]]></category> <category><![CDATA[exception]]></category> <category><![CDATA[install]]></category> <category><![CDATA[installation]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[problem]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/</guid> <description><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/InstallingTheAndroidPluginForEclipse_C4DA/image.png" width="150" height="157" /> Today is my first day looking at Android development. My first encounter with the Android plugin for Eclipse has not been very smooth, to say the least. I am not sure if it&#039;s Android&#039;s or Eclipse&#039;s fault but I just wasted 2 hours on errors during the plugin installation and would like to pass on the time savings to you.</p><p>The <a
href="http://developer.android.com/sdk/1.6_r1/installing.html" rel="nofollow">plugin install page</a> provides initial instructions and the location of the plugin to give Eclipse (<a
title="https://dl-ssl.google.com/android/eclipse/" href="https://dl-ssl.google.com/android/eclipse/" rel="nofollow">https://dl-ssl.google.com/android/eclipse/</a>). This is very standard stuff and I&#039;ve installed many plugins exactly the same way. However, here&#039;s when problems started.</p><h3>Problem #1: Error while loading manipulator</h3><p>Eclipse just shows a cryptic Install failed box. Here are the highlights:</p><ul><li>!MESSAGE Error while loading</li>...<div
class=clear></div> <a
href="http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></ul>]]></description> <content:encoded><![CDATA[<p><img
style="margin: 0px 10px 10px 0px; display: inline" title="image" alt="image" align="left" src="http://beerpla.net/wp-content/uploads/InstallingTheAndroidPluginForEclipse_C4DA/image.png" width="150" height="157" /> Today is my first day looking at Android development. My first encounter with the Android plugin for Eclipse has not been very smooth, to say the least. I am not sure if it&#039;s Android&#039;s or Eclipse&#039;s fault but I just wasted 2 hours on errors during the plugin installation and would like to pass on the time savings to you.</p><p>The <a
href="http://developer.android.com/sdk/1.6_r1/installing.html" rel="nofollow">plugin install page</a> provides initial instructions and the location of the plugin to give Eclipse (<a
title="https://dl-ssl.google.com/android/eclipse/" href="https://dl-ssl.google.com/android/eclipse/" rel="nofollow">https://dl-ssl.google.com/android/eclipse/</a>). This is very standard stuff and I&#039;ve installed many plugins exactly the same way. However, here&#039;s when problems started.</p><h3>Problem #1: Error while loading manipulator</h3><p>Eclipse just shows a cryptic Install failed box. Here are the highlights:</p><ul><li>!MESSAGE Error while loading manipulator</li><li>java.lang.IllegalStateException: !fwConfigLocation.equals(fwPersistentDataLocation)</li></ul><p>It looks like for whatever reason, Eclipse&#039;s fwConfigLocation variable does not match fwPersistentDataLocation. I have no idea where those come from and searching for a solution (such as this <a
href="http://pt.sourceforge.jp/ticket/browse.php?group_id=685&amp;tid=17583" rel="nofollow">crazy Japanese sourceforge</a> and <a
href="https://bugs.eclipse.org/bugs/show_bug.cgi?id=277242" rel="nofollow">this Eclipse bug</a>), restarting Eclipse, and beating my head against the wall took the majority of my the 2 hours I spent on this.</p><p>Here&#039;s the full log, which will help people with the same problem find it in search engines:</p><div
class="wp_syntax"><div
class="code"><pre>!ENTRY org.eclipse.equinox.p2.touchpoint.eclipse 4 0 2009-10-15 13:21:11.224
!MESSAGE Error while loading manipulator.
!STACK 0
java.lang.IllegalStateException: !fwConfigLocation.equals(fwPersistentDataLocation)
	!fwConfigLocation=C:\eclipse\configuration
	,fwPersistentDataLocation=C:\eclipse\plugins\configuration
	at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.checkConsistencyOfFwConfigLocAndFwPersistentDataLoc(EquinoxManipulatorImpl.java:65)
	at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.loadWithoutFwPersistentData(EquinoxManipulatorImpl.java:360)
	at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.load(EquinoxManipulatorImpl.java:331)
	at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.loadDelegate(LazyManipulator.java:50)
	at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.getConfigData(LazyManipulator.java:108)
	at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction.uninstallBundle(UninstallBundleAction.java:74)
	at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction.execute(UninstallBundleAction.java:29)
	at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisioningAction.execute(ParameterizedProvisioningAction.java:35)
	at org.eclipse.equinox.internal.provisional.p2.engine.Phase.mainPerform(Phase.java:129)
	at org.eclipse.equinox.internal.provisional.p2.engine.Phase.perform(Phase.java:72)
	at org.eclipse.equinox.internal.provisional.p2.engine.PhaseSet.perform(PhaseSet.java:44)
	at org.eclipse.equinox.internal.provisional.p2.engine.Engine.perform(Engine.java:54)
	at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningUtil.performProvisioningPlan(ProvisioningUtil.java:389)
	at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProfileModificationOperation.doExecute(ProfileModificationOperation.java:61)
	at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningOperation.execute(ProvisioningOperation.java:37)
	at org.eclipse.equinox.internal.provisional.p2.ui.ProvisioningOperationRunner$1.run(ProvisioningOperationRunner.java:94)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
&nbsp;
!ENTRY org.eclipse.equinox.p2.engine 4 4 2009-10-15 13:21:11.240
!MESSAGE An error occurred while uninstalling
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2009-10-15 13:21:11.240
!MESSAGE session context was:(profile=epp.package.php, phase=org.eclipse.equinox.internal.provisional.p2.engine.phases.Uninstall, operand=[R]javax.activation 1.1.0.v200905021805 --&gt; [R]javax.activation 1.1.0.v200906290531, action=org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction).
!SUBENTRY 1 org.eclipse.equinox.p2.engine 4 0 2009-10-15 13:21:11.240
!MESSAGE Error while loading manipulator.
!STACK 0
java.lang.IllegalStateException: Error while loading manipulator.
	at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.loadDelegate(LazyManipulator.java:54)
	at org.eclipse.equinox.internal.p2.touchpoint.eclipse.LazyManipulator.getConfigData(LazyManipulator.java:108)
	at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction.uninstallBundle(UninstallBundleAction.java:74)
	at org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.UninstallBundleAction.execute(UninstallBundleAction.java:29)
	at org.eclipse.equinox.internal.p2.engine.ParameterizedProvisioningAction.execute(ParameterizedProvisioningAction.java:35)
	at org.eclipse.equinox.internal.provisional.p2.engine.Phase.mainPerform(Phase.java:129)
	at org.eclipse.equinox.internal.provisional.p2.engine.Phase.perform(Phase.java:72)
	at org.eclipse.equinox.internal.provisional.p2.engine.PhaseSet.perform(PhaseSet.java:44)
	at org.eclipse.equinox.internal.provisional.p2.engine.Engine.perform(Engine.java:54)
	at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningUtil.performProvisioningPlan(ProvisioningUtil.java:389)
	at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProfileModificationOperation.doExecute(ProfileModificationOperation.java:61)
	at org.eclipse.equinox.internal.provisional.p2.ui.operations.ProvisioningOperation.execute(ProvisioningOperation.java:37)
	at org.eclipse.equinox.internal.provisional.p2.ui.ProvisioningOperationRunner$1.run(ProvisioningOperationRunner.java:94)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
!SESSION 2009-10-15 13:31:40.853 -----------------------------------------------
eclipse.buildId=I20090611-1540
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86</pre></div></div><p>Finally, I found a solution that worked &#8211; modify eclipse.ini (the one that sits in elipse&#039;s install directory) and add the following:</p><div
class="wp_syntax"><table><tr><td
class="line_numbers"><pre>1
2
3
4
</pre></td><td
class="code"><pre>-startup
file:/C:/eclipse/plugins/org.eclipse.equinox.launcher_1.0.200.v20090520.jar
--launcher.library
file:/C:/eclipse/plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519</pre></td></tr></table></div><p>Note that the exact locations may differ for you, so figure out what is installed on your machine and replace accordingly.</p><p>Also, it seems that the location of the file HAS to be on a new line &#8211; otherwise it is not recognized. What kind of shit is that, Eclipse? Some values in eclipse.ini are specified on the same line separated by space, some separated by &#039;=&#039;, and some have to be on a new line? This fun trivia fact wasted about 45 minutes of my time.</p><p>And yes, startup has 1 dash and launcher.library has 2. /sigh</p><p><strong>Edit:</strong> it looks like by default Eclipse does come with these options. I somehow managed to lose them, so this is probably my fault. The error couldn&#039;t be more cryptic though.</p><h3>Problem #2: java.io.IOException: The file &quot;C:\eclipse\features\com.android.ide.eclipse.adt_0.9.3.v200909031112-12945&quot; does not exist</h3><p>Great. Now what…</p><p>After examining the features directory, I indeed found that directory com.android.ide.eclipse.adt_0.9.3.v200909031112-12945 does not exist. What I did find though is com.android.ide.eclipse.adt_0.9.3.v200909031112-12945.jar, which is simply an archive. Why didn&#039;t you unpack this archive, Eclipse? Or Android plugin devs? Whoever is responsible for this &#8211; argh!</p><p>After quickly creating the directories and unpacking the .jar contents into them, Eclipse was finally able to install the Android plugin.</p><p>&#160;</p><p>If installing a plugin is this friendly, I can only imagine what awaits me in Android app development. Am I the only one with these problems? You let me know.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Installing+The+Android+Plugin+For+Eclipse&amp;link=http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/&amp;notes=%20Today%20is%20my%20first%20day%20looking%20at%20Android%20development.%20My%20first%20encounter%20with%20the%20Android%20plugin%20for%20Eclipse%20has%20not%20been%20very%20smooth%2C%20to%20say%20the%20least.%20I%20am%20not%20sure%20if%20it%27s%20Android%27s%20or%20Eclipse%27s%20fault%20but%20I%20just%20wasted%202%20hours%20on%20errors%20during%20the%20plugin%20installation%20and%20would%20like%20to%20pass%20on%20th&amp;short_link=http://bit.ly/c76rI4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Installing+The+Android+Plugin+For+Eclipse&amp;link=http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/&amp;notes=%20Today%20is%20my%20first%20day%20looking%20at%20Android%20development.%20My%20first%20encounter%20with%20the%20Android%20plugin%20for%20Eclipse%20has%20not%20been%20very%20smooth%2C%20to%20say%20the%20least.%20I%20am%20not%20sure%20if%20it%27s%20Android%27s%20or%20Eclipse%27s%20fault%20but%20I%20just%20wasted%202%20hours%20on%20errors%20during%20the%20plugin%20installation%20and%20would%20like%20to%20pass%20on%20th&amp;short_link=http://bit.ly/c76rI4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Installing+The+Android+Plugin+For+Eclipse&amp;link=http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/&amp;notes=%20Today%20is%20my%20first%20day%20looking%20at%20Android%20development.%20My%20first%20encounter%20with%20the%20Android%20plugin%20for%20Eclipse%20has%20not%20been%20very%20smooth%2C%20to%20say%20the%20least.%20I%20am%20not%20sure%20if%20it%27s%20Android%27s%20or%20Eclipse%27s%20fault%20but%20I%20just%20wasted%202%20hours%20on%20errors%20during%20the%20plugin%20installation%20and%20would%20like%20to%20pass%20on%20th&amp;short_link=http://bit.ly/c76rI4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Installing+The+Android+Plugin+For+Eclipse&amp;link=http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/&amp;notes=%20Today%20is%20my%20first%20day%20looking%20at%20Android%20development.%20My%20first%20encounter%20with%20the%20Android%20plugin%20for%20Eclipse%20has%20not%20been%20very%20smooth%2C%20to%20say%20the%20least.%20I%20am%20not%20sure%20if%20it%27s%20Android%27s%20or%20Eclipse%27s%20fault%20but%20I%20just%20wasted%202%20hours%20on%20errors%20during%20the%20plugin%20installation%20and%20would%20like%20to%20pass%20on%20th&amp;short_link=http://bit.ly/c76rI4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Installing+The+Android+Plugin+For+Eclipse&amp;link=http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/&amp;notes=%20Today%20is%20my%20first%20day%20looking%20at%20Android%20development.%20My%20first%20encounter%20with%20the%20Android%20plugin%20for%20Eclipse%20has%20not%20been%20very%20smooth%2C%20to%20say%20the%20least.%20I%20am%20not%20sure%20if%20it%27s%20Android%27s%20or%20Eclipse%27s%20fault%20but%20I%20just%20wasted%202%20hours%20on%20errors%20during%20the%20plugin%20installation%20and%20would%20like%20to%20pass%20on%20th&amp;short_link=http://bit.ly/c76rI4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Installing+The+Android+Plugin+For+Eclipse&amp;link=http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/&amp;notes=%20Today%20is%20my%20first%20day%20looking%20at%20Android%20development.%20My%20first%20encounter%20with%20the%20Android%20plugin%20for%20Eclipse%20has%20not%20been%20very%20smooth%2C%20to%20say%20the%20least.%20I%20am%20not%20sure%20if%20it%27s%20Android%27s%20or%20Eclipse%27s%20fault%20but%20I%20just%20wasted%202%20hours%20on%20errors%20during%20the%20plugin%20installation%20and%20would%20like%20to%20pass%20on%20th&amp;short_link=http://bit.ly/c76rI4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Installing+The+Android+Plugin+For+Eclipse&amp;link=http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/&amp;notes=%20Today%20is%20my%20first%20day%20looking%20at%20Android%20development.%20My%20first%20encounter%20with%20the%20Android%20plugin%20for%20Eclipse%20has%20not%20been%20very%20smooth%2C%20to%20say%20the%20least.%20I%20am%20not%20sure%20if%20it%27s%20Android%27s%20or%20Eclipse%27s%20fault%20but%20I%20just%20wasted%202%20hours%20on%20errors%20during%20the%20plugin%20installation%20and%20would%20like%20to%20pass%20on%20th&amp;short_link=http://bit.ly/c76rI4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Installing%20The%20Android%20Plugin%20For%20Eclipse&amp;link=http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/&amp;notes=%20Today%20is%20my%20first%20day%20looking%20at%20Android%20development.%20My%20first%20encounter%20with%20the%20Android%20plugin%20for%20Eclipse%20has%20not%20been%20very%20smooth%2C%20to%20say%20the%20least.%20I%20am%20not%20sure%20if%20it%27s%20Android%27s%20or%20Eclipse%27s%20fault%20but%20I%20just%20wasted%202%20hours%20on%20errors%20during%20the%20plugin%20installation%20and%20would%20like%20to%20pass%20on%20th&amp;short_link=http://bit.ly/c76rI4&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/11/04/android-auto-formatting-android-xml-files-with-eclipse/" rel="bookmark" title="November 4, 2009">[Android] Auto Formatting Android XML Files With Eclipse</a></li><li><a
href="http://beerpla.net/2010/09/29/how-to-update-eclipse-from-galileo-3-5-to-helios-3-6-in-place-without-reinstalling/" rel="bookmark" title="September 29, 2010">How To Update Eclipse From Galileo (3.5) To Helios (3.6) In-Place Without Reinstalling</a></li><li><a
href="http://beerpla.net/2007/08/29/a-short-note-on-eaccelerator-the-php-accelerator/" rel="bookmark" title="August 29, 2007">A Short Note On eAccelerator &#8211; The PHP Accelerator</a></li><li><a
href="http://beerpla.net/2008/10/09/my-notes-on-learning-python-coming-from-perl/" rel="bookmark" title="October 9, 2008">My Notes On Learning Python Coming From Perl</a></li><li><a
href="http://beerpla.net/2009/11/21/meet-firefox-for-mobile-video-feature-highlights-more-info/" rel="bookmark" title="November 21, 2009">Meet Firefox For Mobile [Video + Feature Highlights + More Info]</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F10%2F15%2Finstalling-the-android-plugin-for-eclipse%2F&amp;title=Installing%20The%20Android%20Plugin%20For%20Eclipse" id="wpa2a_4"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/10/15/installing-the-android-plugin-for-eclipse/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>[Solr] How To Fix java.io.IOException: directory FOO exists and is a directory, but cannot be listed: list() returned null</title><link>http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/</link> <comments>http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/#comments</comments> <pubDate>Mon, 21 Sep 2009 19:47:53 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Solr]]></category> <category><![CDATA[commit]]></category> <category><![CDATA[directory]]></category> <category><![CDATA[exception]]></category> <category><![CDATA[exists]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[limit]]></category> <category><![CDATA[list]]></category> <category><![CDATA[null]]></category> <category><![CDATA[open file]]></category> <category><![CDATA[optimize]]></category> <category><![CDATA[ulimit]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/</guid> <description><![CDATA[<h2>The Problem</h2><p>I am throwing up a quick post about a relatively cryptic error that Solr started throwing the other day here at Plaxo. After happily running for a few days, I suddenly started getting pages about failed Solr indexing.</p><p>Upon closer examination, I saw the following repeatedly in the log file:</p><div
class="wp_syntax"><div
class="code"><pre>catalina.2009-09-18.log:SEVERE: java.io.IOException: directory 'DATADIR/index'
exists and is a directory, but cannot be listed: list() returned null</pre></div></div><p>I tried to see if sending an <a
href="http://www.google.com/search?q=site:wiki.apache.org+solr+optimize" rel="nofollow">OPTIMIZE</a> command would help but the server returned the same response.</p><h2>Digging Deeper</h2><p>The reason was these errors was quite simple &#8211; Solr was running into the system level limit on allowed number of open files (ulimit). This limit can be seen by running</p><div
class="wp_syntax"><div
class="code"><pre>ulimit </pre></div>...<div
class=clear></div> <a
href="http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></div>]]></description> <content:encoded><![CDATA[<h2>The Problem</h2><p>I am throwing up a quick post about a relatively cryptic error that Solr started throwing the other day here at Plaxo. After happily running for a few days, I suddenly started getting pages about failed Solr indexing.</p><p>Upon closer examination, I saw the following repeatedly in the log file:</p><div
class="wp_syntax"><div
class="code"><pre>catalina.2009-09-18.log:SEVERE: java.io.IOException: directory 'DATADIR/index'
exists and is a directory, but cannot be listed: list() returned null</pre></div></div><p>I tried to see if sending an <a
href="http://www.google.com/search?q=site:wiki.apache.org+solr+optimize" rel="nofollow">OPTIMIZE</a> command would help but the server returned the same response.</p><h2>Digging Deeper</h2><p>The reason was these errors was quite simple &#8211; Solr was running into the system level limit on allowed number of open files (ulimit). This limit can be seen by running</p><div
class="wp_syntax"><div
class="code"><pre>ulimit -n
1024</pre></div></div><p>or simply</p><div
class="wp_syntax"><div
class="code"><pre>ulimit -a | grep 'open files'
open files                      (-n) 1024</pre></div></div><p>This means that if a process tries to open that many files at the same time, the kernel will prohibit opening any more, which in my case caused the Java IOException.</p><p>In my case, I haven&#039;t been using the Solr OPTIMIZE command for a while, so after a lot of <a
href="http://www.google.com/search?q=site:wiki.apache.org+solr+commit" rel="nofollow">COMMIT</a>s, the Solr data got pretty fragmented, thus hitting the open files limit.</p><h2>The Solution</h2><p>There are 2 things to be done here:</p><ol><li>OPTIMIZE Solr more often. When an OPTIMIZE occurs, multiple index files are merged into 1, thus reducing the number of files that need to be opened. However, before you can OPTIMIZE, you have to raise the allowed number of open files (see the next bullet).</p></li><li>Set a higher open files limit for the user that runs Solr (in my case, the <strong><em>solr</em></strong> user) &#8211; for example to 4096 instead of 1024. One way to do it is by adding a file /etc/security/limits.d/solr.conf with the following contents:<p></p><div
class="wp_syntax"><div
class="code"><pre>solr hard nofile 4096
solr soft nofile 4096</pre></div></div><p>and then logging out and back in. The file should be automatically loaded, which you can verify by running the ulimit commands from the section above.</li></ol><p>Happy Solring!</p><p>By the way, here&#039;s a really good resource for Solr 1.4 that just came out: <a
href="http://www.amazon.com/dp/1847195881/?tag=beepla-20">Solr 1.4 Enterprise Search</a>. I have this book and it&#039;s quite helpful in explaining such topics as multicore setup, search methods, replication, etc.</p><p
align="center"><iframe
style="width: 120px; height: 240px" marginheight="0" src="http://rcm.amazon.com/e/cm?lt1=_blank&amp;bc1=000000&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=beepla-20&amp;o=1&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;md=10FE9736YVPPT7A0FBG2&amp;asins=1847195881" frameborder="0" marginwidth="0" scrolling="no"></iframe></p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=%5BSolr%5D+How+To+Fix+java.io.IOException%3A+directory+FOO+exists+and+is+a+directory%2C+but+cannot+be+listed%3A+list%28%29+returned+null&amp;link=http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/&amp;notes=The%20Problem%20%20I%20am%20throwing%20up%20a%20quick%20post%20about%20a%20relatively%20cryptic%20error%20that%20Solr%20started%20throwing%20the%20other%20day%20here%20at%20Plaxo.%20After%20happily%20running%20for%20a%20few%20days%2C%20I%20suddenly%20started%20getting%20pages%20about%20failed%20Solr%20indexing.%20%20Upon%20closer%20examination%2C%20I%20saw%20the%20following%20repeatedly%20in%20the%20log%20f&amp;short_link=http://bit.ly/dBdAdi&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=%5BSolr%5D+How+To+Fix+java.io.IOException%3A+directory+FOO+exists+and+is+a+directory%2C+but+cannot+be+listed%3A+list%28%29+returned+null&amp;link=http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/&amp;notes=The%20Problem%20%20I%20am%20throwing%20up%20a%20quick%20post%20about%20a%20relatively%20cryptic%20error%20that%20Solr%20started%20throwing%20the%20other%20day%20here%20at%20Plaxo.%20After%20happily%20running%20for%20a%20few%20days%2C%20I%20suddenly%20started%20getting%20pages%20about%20failed%20Solr%20indexing.%20%20Upon%20closer%20examination%2C%20I%20saw%20the%20following%20repeatedly%20in%20the%20log%20f&amp;short_link=http://bit.ly/dBdAdi&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=%5BSolr%5D+How+To+Fix+java.io.IOException%3A+directory+FOO+exists+and+is+a+directory%2C+but+cannot+be+listed%3A+list%28%29+returned+null&amp;link=http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/&amp;notes=The%20Problem%20%20I%20am%20throwing%20up%20a%20quick%20post%20about%20a%20relatively%20cryptic%20error%20that%20Solr%20started%20throwing%20the%20other%20day%20here%20at%20Plaxo.%20After%20happily%20running%20for%20a%20few%20days%2C%20I%20suddenly%20started%20getting%20pages%20about%20failed%20Solr%20indexing.%20%20Upon%20closer%20examination%2C%20I%20saw%20the%20following%20repeatedly%20in%20the%20log%20f&amp;short_link=http://bit.ly/dBdAdi&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=%5BSolr%5D+How+To+Fix+java.io.IOException%3A+directory+FOO+exists+and+is+a+directory%2C+but+cannot+be+listed%3A+list%28%29+returned+null&amp;link=http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/&amp;notes=The%20Problem%20%20I%20am%20throwing%20up%20a%20quick%20post%20about%20a%20relatively%20cryptic%20error%20that%20Solr%20started%20throwing%20the%20other%20day%20here%20at%20Plaxo.%20After%20happily%20running%20for%20a%20few%20days%2C%20I%20suddenly%20started%20getting%20pages%20about%20failed%20Solr%20indexing.%20%20Upon%20closer%20examination%2C%20I%20saw%20the%20following%20repeatedly%20in%20the%20log%20f&amp;short_link=http://bit.ly/dBdAdi&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=%5BSolr%5D+How+To+Fix+java.io.IOException%3A+directory+FOO+exists+and+is+a+directory%2C+but+cannot+be+listed%3A+list%28%29+returned+null&amp;link=http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/&amp;notes=The%20Problem%20%20I%20am%20throwing%20up%20a%20quick%20post%20about%20a%20relatively%20cryptic%20error%20that%20Solr%20started%20throwing%20the%20other%20day%20here%20at%20Plaxo.%20After%20happily%20running%20for%20a%20few%20days%2C%20I%20suddenly%20started%20getting%20pages%20about%20failed%20Solr%20indexing.%20%20Upon%20closer%20examination%2C%20I%20saw%20the%20following%20repeatedly%20in%20the%20log%20f&amp;short_link=http://bit.ly/dBdAdi&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=%5BSolr%5D+How+To+Fix+java.io.IOException%3A+directory+FOO+exists+and+is+a+directory%2C+but+cannot+be+listed%3A+list%28%29+returned+null&amp;link=http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/&amp;notes=The%20Problem%20%20I%20am%20throwing%20up%20a%20quick%20post%20about%20a%20relatively%20cryptic%20error%20that%20Solr%20started%20throwing%20the%20other%20day%20here%20at%20Plaxo.%20After%20happily%20running%20for%20a%20few%20days%2C%20I%20suddenly%20started%20getting%20pages%20about%20failed%20Solr%20indexing.%20%20Upon%20closer%20examination%2C%20I%20saw%20the%20following%20repeatedly%20in%20the%20log%20f&amp;short_link=http://bit.ly/dBdAdi&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=%5BSolr%5D+How+To+Fix+java.io.IOException%3A+directory+FOO+exists+and+is+a+directory%2C+but+cannot+be+listed%3A+list%28%29+returned+null&amp;link=http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/&amp;notes=The%20Problem%20%20I%20am%20throwing%20up%20a%20quick%20post%20about%20a%20relatively%20cryptic%20error%20that%20Solr%20started%20throwing%20the%20other%20day%20here%20at%20Plaxo.%20After%20happily%20running%20for%20a%20few%20days%2C%20I%20suddenly%20started%20getting%20pages%20about%20failed%20Solr%20indexing.%20%20Upon%20closer%20examination%2C%20I%20saw%20the%20following%20repeatedly%20in%20the%20log%20f&amp;short_link=http://bit.ly/dBdAdi&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=%5BSolr%5D%20How%20To%20Fix%20java.io.IOException%3A%20directory%20FOO%20exists%20and%20is%20a%20directory%2C%20but%20cannot%20be%20listed%3A%20list%28%29%20returned%20null&amp;link=http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/&amp;notes=The%20Problem%20%20I%20am%20throwing%20up%20a%20quick%20post%20about%20a%20relatively%20cryptic%20error%20that%20Solr%20started%20throwing%20the%20other%20day%20here%20at%20Plaxo.%20After%20happily%20running%20for%20a%20few%20days%2C%20I%20suddenly%20started%20getting%20pages%20about%20failed%20Solr%20indexing.%20%20Upon%20closer%20examination%2C%20I%20saw%20the%20following%20repeatedly%20in%20the%20log%20f&amp;short_link=http://bit.ly/dBdAdi&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2010/03/06/how-to-show-hiddeninvisible-files-in-total-commander-both-locally-and-on-an-ftp-server/" rel="bookmark" title="March 6, 2010">How To Show Hidden/Invisible Files In Total Commander, Both Locally And On An FTP Server</a></li><li><a
href="http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/" rel="bookmark" title="September 3, 2009">Comparison Between Solr And Sphinx Search Servers (Solr Vs Sphinx &#8211; Fight!)</a></li><li><a
href="http://beerpla.net/2007/08/04/watch-a-useful-linux-command-you-may-have-never-heard-of/" rel="bookmark" title="August 4, 2007">Watch &#8211; A Useful Linux Command You May Have Never Heard Of</a></li><li><a
href="http://beerpla.net/2009/04/08/perl-finding-files-the-fun-and-elegant-way/" rel="bookmark" title="April 8, 2009">[Perl] Finding Files, The Fun And Elegant Way</a></li><li><a
href="http://beerpla.net/2008/10/11/how-to-sort-folders-the-same-way-as-files-in-total-commander/" rel="bookmark" title="October 11, 2008">How To Sort Folders The Same Way As Files In Total Commander</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F09%2F21%2Fsolr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null%2F&amp;title=%5BSolr%5D%20How%20To%20Fix%20java.io.IOException%3A%20directory%20FOO%20exists%20and%20is%20a%20directory%2C%20but%20cannot%20be%20listed%3A%20list%28%29%20returned%20null" id="wpa2a_6"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/09/21/solr-how-to-fix-java-io-ioexception-directory-foo-exists-and-is-a-directory-but-cannot-be-listed-list-returned-null/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Hidden Features Of Perl, PHP, Javascript, C, C++, C#, Java, Ruby, Python, And Others [Collection Of Incredibly Useful Lists]</title><link>http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/</link> <comments>http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/#comments</comments> <pubDate>Sun, 21 Jun 2009 19:38:56 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[C]]></category> <category><![CDATA[C Sharp]]></category> <category><![CDATA[C++]]></category> <category><![CDATA[CSS]]></category> <category><![CDATA[Databases]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[MySQL]]></category> <category><![CDATA[Perl]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Python]]></category> <category><![CDATA[Ruby]]></category> <category><![CDATA[asp.net]]></category> <category><![CDATA[bash]]></category> <category><![CDATA[code]]></category> <category><![CDATA[delphi]]></category> <category><![CDATA[Eclipse]]></category> <category><![CDATA[emacs]]></category> <category><![CDATA[f#]]></category> <category><![CDATA[feature]]></category> <category><![CDATA[featured]]></category> <category><![CDATA[flash]]></category> <category><![CDATA[framework]]></category> <category><![CDATA[greasemonkey]]></category> <category><![CDATA[haskell]]></category> <category><![CDATA[hidden]]></category> <category><![CDATA[http]]></category> <category><![CDATA[jquery]]></category> <category><![CDATA[language]]></category> <category><![CDATA[lua]]></category> <category><![CDATA[mod_rewrite]]></category> <category><![CDATA[objective-c]]></category> <category><![CDATA[oracle]]></category> <category><![CDATA[program]]></category> <category><![CDATA[regex]]></category> <category><![CDATA[ror]]></category> <category><![CDATA[ruby on rails]]></category> <category><![CDATA[scala]]></category> <category><![CDATA[secret]]></category> <category><![CDATA[spring]]></category> <category><![CDATA[tcl]]></category> <category><![CDATA[vb.net]]></category> <category><![CDATA[xpath]]></category> <category><![CDATA[xslt]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/</guid> <description><![CDATA[<h2 align="left">Introduction</h2><p><a
href="http://www.stackoverflow.com">StackOverflow</a> is an amazing site for coding questions. It was created by <a
href="http://twitter.com/Spolsky" rel="nofollow">Joel Spolsky</a> of <a
href="http://joelonsoftware.com" rel="nofollow">joelonsoftware.com</a>, <a
href="http://twitter.com/codinghorror" rel="nofollow">Jeff Atwood</a> of <a
href="http://codinghorror.com" rel="nofollow">codinghorror.com</a>, and some other incredibly smart guys who truly care about user experience. I have been a total fan of SO since it went mainstream and it&#039;s now a borderline addiction (you can see my StackOverflow badge on the right sidebar).</p><h2 align="left">The Story</h2><p
align="left"><div
class="note"><div
class="noteimportant"></div></div></p><p
align="left"><strong>Update 6/21/09</strong>: This server is currently under very heavy load (10-200), even with caching plugins enabled. Please bear with me as I try to resolve the situation.</p><p
align="left">Feel free to <a
href="http://www.addtoany.com/share_save?&#38;linkurl=http%3A%2F%2Fbeerpla.net%2F2009%2F06%2F21%2Fhidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists%2F&#38;linkname=Hidden%20Features%20Of%20Perl%2C%20PHP%2C%20Javascript%2C%20C%2C%20C%2B%2B%2C%20C%23%2C%20Java%2C%20Ruby%2C%20Python%2C%20And%20Others%20%5BCollection%20Of%20Incredibly%20Useful%20Lists%5D">bookmark this page</a> and return to it later when the fires have been put out.</p><p
align="left"><strong>Update 06/21/09</strong>: I think I&#039;ve got the situation ...<div
class=clear></div> <a
href="http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2 align="left">Introduction</h2><p><a
href="http://www.stackoverflow.com">StackOverflow</a> is an amazing site for coding questions. It was created by <a
href="http://twitter.com/Spolsky" rel="nofollow">Joel Spolsky</a> of <a
href="http://joelonsoftware.com" rel="nofollow">joelonsoftware.com</a>, <a
href="http://twitter.com/codinghorror" rel="nofollow">Jeff Atwood</a> of <a
href="http://codinghorror.com" rel="nofollow">codinghorror.com</a>, and some other incredibly smart guys who truly care about user experience. I have been a total fan of SO since it went mainstream and it&#039;s now a borderline addiction (you can see my StackOverflow badge on the right sidebar).</p><h2 align="left">The Story</h2><p
align="left"><div
class="note"><div
class="noteimportant"></p><p
align="left"><strong>Update 6/21/09</strong>: This server is currently under very heavy load (10-200), even with caching plugins enabled. Please bear with me as I try to resolve the situation.</p><p
align="left">Feel free to <a
href="http://www.addtoany.com/share_save?&amp;linkurl=http%3A%2F%2Fbeerpla.net%2F2009%2F06%2F21%2Fhidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists%2F&amp;linkname=Hidden%20Features%20Of%20Perl%2C%20PHP%2C%20Javascript%2C%20C%2C%20C%2B%2B%2C%20C%23%2C%20Java%2C%20Ruby%2C%20Python%2C%20And%20Others%20%5BCollection%20Of%20Incredibly%20Useful%20Lists%5D">bookmark this page</a> and return to it later when the fires have been put out.</p><p
align="left"><strong>Update 06/21/09</strong>: I think I&#039;ve got the situation under control now. The load is between 0 and 3 now and pages load relatively fast. I will be posting about the getting redditted/delicioused experience later.</p><p
align="left"><strong>Update 06/23/09</strong>: Added jQuery, Greasemonkey, Ruby on Rails, and Objective-C, broke databases into their own section, and sorted everything alphabetically.</p><p
align="left"><strong>Update 06/23/09</strong>: Added Scala, Lua, TCL, F#, Regex, and HTTP.</p><p
align="left"><strong>Update 07/21/09</strong>: Added ActionScript3/Flex, Erlang, PL/SQL, Silverlight, VBA, VHDL, WPF/XAML.</p><p
align="left"><strong>Update 10/24/09</strong>: Added Flash development/language/IDE, Emacs, Xpath/Xslt, Spring framework.</p><p
align="left"><strong>Update 01/18/10</strong>: Added Android (asked by yours truly), Qt, Django, Windows.Forms, R, Lisp, x86 assembly, Grails.</p><p
align="left"></div></div></p><p>So, one day someone at StackOverflow started a &quot;Hidden features of&quot; post about a famous language (I don&#039;t feel like finding out which one was first exactly), and it turned out to be so popular that other posts in the same series started popping up.</p><p>Such questions were quickly turned into community wikis, for the purposes of harvesting and organizing information coming from the best developers on the planet and voted by users of the site. There are literally hundreds of answers, sorted by votes.</p><p><div
class="note"><div
class="notetip">The Hidden Features series is great for people who are new to a certain language. It shows the ropes and tricks, all in one place, in the most concise manner possible. Even pros oftentimes find features of their favorite language that they&#039;d never heard about.</div></div></p><h2 align="center">Hidden Features Of</h2><h3>Programming Languages</h3><h4><a
href="http://stackoverflow.com/questions/1103705/hidden-features-of-actionscript3-flex">Hidden features of ActionScript3 / Flex</a></h4><h4><a
href="http://stackoverflow.com/questions/54929/hidden-features-of-asp-net">Hidden features of ASP.NET </a></h4><h4><a
href="http://stackoverflow.com/questions/1574308/hidden-features-of-x86-assembly-language" rel="nofollow">Hidden features of x86 assembly</a></h4><h4><a
href="http://stackoverflow.com/questions/132241/hidden-features-of-c">Hidden features of C</a></h4><h4><a
href="http://stackoverflow.com/questions/75538/hidden-features-of-c">Hidden features of C++</a></h4><h4><a
href="http://stackoverflow.com/questions/9033/hidden-features-of-c">Hidden features of C#</a></h4><h4><a
href="http://stackoverflow.com/questions/1853653/hidden-features-of-coldfusion" rel="nofollow">Hidden features of ColdFusion</a></h4><h4><a
href="http://stackoverflow.com/questions/125008/hidden-features-of-d">Hidden features of D </a></h4><h4><a
href="http://stackoverflow.com/questions/102254/hidden-features-of-delphi" rel="nofollow">Hidden features of Delphi</a></h4><h4><a
href="http://stackoverflow.com/questions/1063497/hidden-features-of-erlang" rel="nofollow">Hidden features of Erlang</a></h4><h4><a
href="http://stackoverflow.com/questions/181613/hidden-features-of-f">Hidden features of F# </a></h4><h4><a
href="http://stackoverflow.com/questions/1160680/hidden-features-tricks-of-flash-development-flash-language-as2-3-and-flash-id" rel="nofollow">Hidden features of Flash development, Flash language (AS2/3), and Flash IDE</a></h4><h4><a
href="http://stackoverflow.com/questions/15496/hidden-features-of-java">Hidden features of Java</a></h4><h4><a
href="http://stackoverflow.com/questions/61088/hidden-features-of-javascript">Hidden features of JavaScript</a></h4><h4><a
href="http://stackoverflow.com/questions/211216/hidden-features-of-haskell">Hidden features of Haskell </a></h4><h4><a
href="http://stackoverflow.com/questions/1598854/hidden-features-of-emacs-lisp" rel="nofollow">Hidden features of Lisp</a></h4><h4><a
href="http://stackoverflow.com/questions/523867/hidden-features-of-lua">Hidden features of Lua </a></h4><h4><a
href="http://stackoverflow.com/questions/211616/hidden-features-of-objective-c">Hidden features of Objective-C </a></h4><h4><a
href="http://stackoverflow.com/questions/161872/hidden-features-of-perl">Hidden features of Perl</a></h4><h4><a
href="http://stackoverflow.com/questions/61401/hidden-features-of-php">Hidden features of PHP</a></h4><h4><a
href="http://stackoverflow.com/questions/101268/hidden-features-of-python">Hidden features of Python</a></h4><h4><a
href="http://stackoverflow.com/questions/1682874/hidden-features-of-r" rel="nofollow">Hidden features of R</a></h4><h4><a
href="http://stackoverflow.com/questions/63998/hidden-features-of-ruby">Hidden features of Ruby</a></h4><h4><a
href="http://stackoverflow.com/questions/709679/hidden-features-of-ruby-on-rails">Hidden features of Ruby on Rails </a></h4><h4><a
href="http://stackoverflow.com/questions/1025181/hidden-features-of-scala">Hidden features of Scala </a></h4><h4><a
href="http://stackoverflow.com/questions/1031450/are-there-any-undocumented-features-in-silverlight">Hidden features of Silverlight</a></h4><h4><a
href="http://stackoverflow.com/questions/1596139/hidden-features-and-dark-corners-of-stl" rel="nofollow">Hidden features and Dark Corners of STL?</a></h4><h4><a
href="http://stackoverflow.com/questions/1024711/hidden-features-of-tcl-tk">Hidden features of TCL/TK</a></h4><h4><a
href="http://stackoverflow.com/questions/102084/hidden-features-of-vb-net">Hidden features of VB.Net </a></h4><h4><a
href="http://stackoverflow.com/questions/1070863/hidden-features-of-vba">Hidden features of VBA</a></h4><h3>Databases</h3><h4><a
href="http://stackoverflow.com/questions/368858/hidden-features-of-mysql">Hidden features of MySQL </a></h4><h4><a
href="http://stackoverflow.com/questions/381231/hidden-features-in-oracle">Hidden features of Oracle </a></h4><h4><a
href="http://stackoverflow.com/questions/1031485/hidden-features-of-pl-sql">Hidden features of PL/SQL</a></h4><h4><a
href="http://stackoverflow.com/questions/761327/hidden-features-of-postgresql">Hidden features of PostgreSQL </a></h4><h4><a
href="http://stackoverflow.com/questions/121243/hidden-features-of-sql-server">Hidden features of SQL Server </a></h4><h3>Mobile</h3><h4><a
href="http://stackoverflow.com/questions/1619133/hidden-features-of-android-development" rel="nofollow">Hidden features of Android development</a></h4><h3>Other</h3><h4><a
href="http://stackoverflow.com/questions/211378/hidden-features-of-bash">Hidden features of Bash</a> &#8211; also see my <a
href="http://beerpla.net/2008/12/22/mastering-the-linux-shell-bash-shortcuts-explained/">bash cheatsheet</a>.</h4><h4><a
href="http://stackoverflow.com/questions/628407/css-hidden-features">Hidden features of CSS</a></h4><h4><a
href="http://stackoverflow.com/questions/1858520/hidden-features-of-django" rel="nofollow">Hidden features of Django</a></h4><h4><a
href="http://stackoverflow.com/questions/54886/hidden-features-tricks-for-eclipse">Hidden features of Eclipse </a></h4><h4><a
href="http://stackoverflow.com/questions/1598854/hidden-features-of-emacs-lisp" rel="nofollow">Hidden features of Emacs</a></h4><h4><a
href="http://stackoverflow.com/questions/1330531/hidden-features-of-grails" rel="nofollow">Hidden features of Grails</a></h4><h4><a
href="http://stackoverflow.com/questions/121167/hidden-features-of-greasemonkey">Hidden features of Greasemonkey </a></h4><h4><a
href="http://stackoverflow.com/questions/954327/hidden-features-of-html">Hidden features of HTML </a></h4><h4><a
href="http://stackoverflow.com/questions/954894/hidden-features-of-http">Hidden features of HTTP </a></h4><h4><a
href="http://stackoverflow.com/questions/121965/hidden-or-not-widely-known-features-of-jquery">Hidden features of jQuery</a></h4><h4><a
href="http://stackoverflow.com/questions/286004/hidden-features-of-modrewrite">Hidden features of mod_rewrite </a></h4><h4><a
href="http://stackoverflow.com/questions/1826458/hidden-features-of-qt" rel="nofollow">Hidden features of Qt</a></h4><h4><a
href="http://stackoverflow.com/questions/868181/hidden-features-of-regex">Hidden features of RegEx </a></h4><h4><a
href="http://stackoverflow.com/questions/1416423/hidden-features-of-spring-framework">Hidden features of Spring framework </a></h4><h4><a
href="http://stackoverflow.com/questions/1025699/hidden-features-of-vhdl">Hidden features of VHDL</a></h4><h4><a
href="http://stackoverflow.com/questions/100420/hidden-features-of-visual-studio-2005-2008">Hidden features of Visual Studio (2005-2008) </a></h4><h4><a
href="http://stackoverflow.com/questions/1777303/hidden-features-of-windows-forms" rel="nofollow">Hidden features of Windows.Forms</a></h4><h4><a
href="http://stackoverflow.com/questions/1124769/hidden-features-of-wpf-and-xaml">Hidden features of WPF and XAML</a></h4><h4><a
href="http://stackoverflow.com/questions/1521851/hidden-features-of-xpathxslt">Hidden features of Xpath+Xslt</a></h4><p>I will try to maintain this list, adding new languages that join the series as I find them. Now go learn something new!</p><div
class='post_blob_1'>Real <a
href="http://www.test-king.com/exams/70-432.htm">70-432</a> exam preparation with help of easy to understand <a
href="http://www.test-king.com/exams/220-702.htm">220-702</a> notes and <a
href="http://www.test-king.com/exams/640-553.htm">640-553</a> practice questions.</div><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=Hidden+Features+Of+Perl%2C+PHP%2C+Javascript%2C+C%2C+C%2B%2B%2C+C%23%2C+Java%2C+Ruby%2C+Python%2C+And+Others+%5BCollection+Of+Incredibly+Useful+Lists%5D&amp;link=http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/&amp;notes=Introduction%0D%0AStackOverflow%20is%20an%20amazing%20site%20for%20coding%20questions.%20It%20was%20created%20by%20Joel%20Spolsky%20of%20joelonsoftware.com%2C%20Jeff%20Atwood%20of%20codinghorror.com%2C%20and%20some%20other%20incredibly%20smart%20guys%20who%20truly%20care%20about%20user%20experience.%20I%20have%20been%20a%20total%20fan%20of%20SO%20since%20it%20went%20mainstream%20and%20it%27s%20now%20a&amp;short_link=http://bit.ly/capw5J&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=Hidden+Features+Of+Perl%2C+PHP%2C+Javascript%2C+C%2C+C%2B%2B%2C+C%23%2C+Java%2C+Ruby%2C+Python%2C+And+Others+%5BCollection+Of+Incredibly+Useful+Lists%5D&amp;link=http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/&amp;notes=Introduction%0D%0AStackOverflow%20is%20an%20amazing%20site%20for%20coding%20questions.%20It%20was%20created%20by%20Joel%20Spolsky%20of%20joelonsoftware.com%2C%20Jeff%20Atwood%20of%20codinghorror.com%2C%20and%20some%20other%20incredibly%20smart%20guys%20who%20truly%20care%20about%20user%20experience.%20I%20have%20been%20a%20total%20fan%20of%20SO%20since%20it%20went%20mainstream%20and%20it%27s%20now%20a&amp;short_link=http://bit.ly/capw5J&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=Hidden+Features+Of+Perl%2C+PHP%2C+Javascript%2C+C%2C+C%2B%2B%2C+C%23%2C+Java%2C+Ruby%2C+Python%2C+And+Others+%5BCollection+Of+Incredibly+Useful+Lists%5D&amp;link=http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/&amp;notes=Introduction%0D%0AStackOverflow%20is%20an%20amazing%20site%20for%20coding%20questions.%20It%20was%20created%20by%20Joel%20Spolsky%20of%20joelonsoftware.com%2C%20Jeff%20Atwood%20of%20codinghorror.com%2C%20and%20some%20other%20incredibly%20smart%20guys%20who%20truly%20care%20about%20user%20experience.%20I%20have%20been%20a%20total%20fan%20of%20SO%20since%20it%20went%20mainstream%20and%20it%27s%20now%20a&amp;short_link=http://bit.ly/capw5J&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=Hidden+Features+Of+Perl%2C+PHP%2C+Javascript%2C+C%2C+C%2B%2B%2C+C%23%2C+Java%2C+Ruby%2C+Python%2C+And+Others+%5BCollection+Of+Incredibly+Useful+Lists%5D&amp;link=http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/&amp;notes=Introduction%0D%0AStackOverflow%20is%20an%20amazing%20site%20for%20coding%20questions.%20It%20was%20created%20by%20Joel%20Spolsky%20of%20joelonsoftware.com%2C%20Jeff%20Atwood%20of%20codinghorror.com%2C%20and%20some%20other%20incredibly%20smart%20guys%20who%20truly%20care%20about%20user%20experience.%20I%20have%20been%20a%20total%20fan%20of%20SO%20since%20it%20went%20mainstream%20and%20it%27s%20now%20a&amp;short_link=http://bit.ly/capw5J&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=Hidden+Features+Of+Perl%2C+PHP%2C+Javascript%2C+C%2C+C%2B%2B%2C+C%23%2C+Java%2C+Ruby%2C+Python%2C+And+Others+%5BCollection+Of+Incredibly+Useful+Lists%5D&amp;link=http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/&amp;notes=Introduction%0D%0AStackOverflow%20is%20an%20amazing%20site%20for%20coding%20questions.%20It%20was%20created%20by%20Joel%20Spolsky%20of%20joelonsoftware.com%2C%20Jeff%20Atwood%20of%20codinghorror.com%2C%20and%20some%20other%20incredibly%20smart%20guys%20who%20truly%20care%20about%20user%20experience.%20I%20have%20been%20a%20total%20fan%20of%20SO%20since%20it%20went%20mainstream%20and%20it%27s%20now%20a&amp;short_link=http://bit.ly/capw5J&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=Hidden+Features+Of+Perl%2C+PHP%2C+Javascript%2C+C%2C+C%2B%2B%2C+C%23%2C+Java%2C+Ruby%2C+Python%2C+And+Others+%5BCollection+Of+Incredibly+Useful+Lists%5D&amp;link=http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/&amp;notes=Introduction%0D%0AStackOverflow%20is%20an%20amazing%20site%20for%20coding%20questions.%20It%20was%20created%20by%20Joel%20Spolsky%20of%20joelonsoftware.com%2C%20Jeff%20Atwood%20of%20codinghorror.com%2C%20and%20some%20other%20incredibly%20smart%20guys%20who%20truly%20care%20about%20user%20experience.%20I%20have%20been%20a%20total%20fan%20of%20SO%20since%20it%20went%20mainstream%20and%20it%27s%20now%20a&amp;short_link=http://bit.ly/capw5J&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=Hidden+Features+Of+Perl%2C+PHP%2C+Javascript%2C+C%2C+C%2B%2B%2C+C%23%2C+Java%2C+Ruby%2C+Python%2C+And+Others+%5BCollection+Of+Incredibly+Useful+Lists%5D&amp;link=http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/&amp;notes=Introduction%0D%0AStackOverflow%20is%20an%20amazing%20site%20for%20coding%20questions.%20It%20was%20created%20by%20Joel%20Spolsky%20of%20joelonsoftware.com%2C%20Jeff%20Atwood%20of%20codinghorror.com%2C%20and%20some%20other%20incredibly%20smart%20guys%20who%20truly%20care%20about%20user%20experience.%20I%20have%20been%20a%20total%20fan%20of%20SO%20since%20it%20went%20mainstream%20and%20it%27s%20now%20a&amp;short_link=http://bit.ly/capw5J&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=Hidden%20Features%20Of%20Perl%2C%20PHP%2C%20Javascript%2C%20C%2C%20C%2B%2B%2C%20C%23%2C%20Java%2C%20Ruby%2C%20Python%2C%20And%20Others%20%5BCollection%20Of%20Incredibly%20Useful%20Lists%5D&amp;link=http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/&amp;notes=Introduction%0D%0AStackOverflow%20is%20an%20amazing%20site%20for%20coding%20questions.%20It%20was%20created%20by%20Joel%20Spolsky%20of%20joelonsoftware.com%2C%20Jeff%20Atwood%20of%20codinghorror.com%2C%20and%20some%20other%20incredibly%20smart%20guys%20who%20truly%20care%20about%20user%20experience.%20I%20have%20been%20a%20total%20fan%20of%20SO%20since%20it%20went%20mainstream%20and%20it%27s%20now%20a&amp;short_link=http://bit.ly/capw5J&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/10/24/are-you-a-stackoverflow-com-superuser-com-serverfault-com-fan-heres-a-greasemonkey-script-to-keep-track-of-your-accounts-on-all-of-them/" rel="bookmark" title="October 24, 2009">StackOverflow.com, SuperUser.com, ServerFault.com Fan? Here&#039;s A Greasemonkey Script To Keep Track Of All Your Accounts</a></li><li><a
href="http://beerpla.net/2009/09/03/comparison-between-solr-and-sphinx-search-servers-solr-vs-sphinx-fight/" rel="bookmark" title="September 3, 2009">Comparison Between Solr And Sphinx Search Servers (Solr Vs Sphinx &#8211; Fight!)</a></li><li><a
href="http://beerpla.net/2009/03/17/twitter-autocomplete-auto-url-expansion-auto-url-shortener-auto-pagination-rt-button-nested-replies-inline-media-embed-search-tabs-and-more/" rel="bookmark" title="March 17, 2009">Twitter.com Autocomplete, Auto URL Expansion, Auto URL Shortener, RT Button, Nested Replies, Inline Media Embed, Search Tabs, And More</a></li><li><a
href="http://beerpla.net/2010/01/18/wordpress-developers-how-do-you-make-a-living-poll-discussion/" rel="bookmark" title="January 18, 2010">WordPress Developers &#8211; How Do You Make A Living [Poll + Discussion]?</a></li><li><a
href="http://beerpla.net/2009/08/18/delicious-com-quietly-rolls-out-domain-and-url-searchingfiltering-finally/" rel="bookmark" title="August 18, 2009">Delicious.com [Quietly] Rolls Out Domain And Url Searching/Filtering. Finally!</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F06%2F21%2Fhidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists%2F&amp;title=Hidden%20Features%20Of%20Perl%2C%20PHP%2C%20Javascript%2C%20C%2C%20C%2B%2B%2C%20C%23%2C%20Java%2C%20Ruby%2C%20Python%2C%20And%20Others%20%5BCollection%20Of%20Incredibly%20Useful%20Lists%5D" id="wpa2a_8"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/06/21/hidden-features-of-perl-php-javascript-c-c-c-java-ruby-python-and-others-collection-of-incredibly-useful-lists/feed/</wfw:commentRss> <slash:comments>18</slash:comments> </item> <item><title>How To Fix Redrawing Problems In Your VNC</title><link>http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/</link> <comments>http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/#comments</comments> <pubDate>Mon, 18 May 2009 21:41:00 +0000</pubDate> <dc:creator>Artem Russakovskii</dc:creator> <category><![CDATA[Stuff]]></category> <category><![CDATA[charles]]></category> <category><![CDATA[issue]]></category> <category><![CDATA[Java]]></category> <category><![CDATA[problem]]></category> <category><![CDATA[realvnc]]></category> <category><![CDATA[redraw]]></category> <category><![CDATA[screen]]></category> <category><![CDATA[smartsvn]]></category> <category><![CDATA[update]]></category> <category><![CDATA[vnc]]></category> <guid
isPermaLink="false">http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/</guid> <description><![CDATA[<h2>The Problem</h2><p>If you use VNC to remotely connect to your machines and are having problems with certain applications not showing changes (redrawing), this will, hopefully, solve the problem for you.</p><p>The symptoms are simple: you load a program but only the program outline and maybe the first frame would show up. After that, nothing would update, even though the user in front of the remote computer can see everything updating fine. For me, it is happening with all Java based programs (<a
href="http://www.smartsvn.com" rel="nofollow">SmartSVN</a>, <a
href="http://www.charlesproxy.com" rel="nofollow">Charles</a> &#8211; amazing program btw!, etc). Here&#039;s what&#039;s happening to my Charles application &#8211; it never even sent the first frame, simply showing the desktop and not updating:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToFixRedrawingProblemsInYourVNCRealVN_CB15/image.png" class="lightview" rel="gallery['969']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="215" alt="image" src="http://beerpla.net/wp-content/uploads/HowToFixRedrawingProblemsInYourVNCRealVN_CB15/image_thumb.png" width="355" /></a></p><p>The problem may be confined to RealVNC ...<div
class=clear></div> <a
href="http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/" class="read_more"><div
class=excerpt-end>Read the rest of this article &#187;</div></a></p>]]></description> <content:encoded><![CDATA[<h2>The Problem</h2><p>If you use VNC to remotely connect to your machines and are having problems with certain applications not showing changes (redrawing), this will, hopefully, solve the problem for you.</p><p>The symptoms are simple: you load a program but only the program outline and maybe the first frame would show up. After that, nothing would update, even though the user in front of the remote computer can see everything updating fine. For me, it is happening with all Java based programs (<a
href="http://www.smartsvn.com" rel="nofollow">SmartSVN</a>, <a
href="http://www.charlesproxy.com" rel="nofollow">Charles</a> &#8211; amazing program btw!, etc). Here&#039;s what&#039;s happening to my Charles application &#8211; it never even sent the first frame, simply showing the desktop and not updating:</p><p><a
href="http://beerpla.net/wp-content/uploads/HowToFixRedrawingProblemsInYourVNCRealVN_CB15/image.png" class="lightview" rel="gallery['969']" title="image"><img
title="image" style="display: block; float: none; margin-left: auto; margin-right: auto" height="215" alt="image" src="http://beerpla.net/wp-content/uploads/HowToFixRedrawingProblemsInYourVNCRealVN_CB15/image_thumb.png" width="355" /></a></p><p>The problem may be confined to RealVNC only, or at least any VNC program that uses a special mirror driver. You can tell whether your VNC server uses a mirror driver by looking at your Settings-&gt;Desktop options under &quot;Optimise screen capture (mirror driver)&quot;:</p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/HowToFixRedrawingProblemsInYourVNCRealVN_CB15/image_3.png" class="lightview" rel="gallery['969']" title="image"><img
title="image" style="display: inline" height="397" alt="image" src="http://beerpla.net/wp-content/uploads/HowToFixRedrawingProblemsInYourVNCRealVN_CB15/image_thumb_3.png" width="340" /></a></p><h2>The Solution</h2><p>I&#039;m not sure if it&#039;s Java&#039;s fault or the mirror driver&#039;s but, as it turns out, the mirror driver does not properly work with Java based programs, at least at the moment. Disabling it, or switching to application hooking fixes the problem. There is most likely a benefit in using a mirror driver as it is probably optimized better than other methods, but it&#039;s not worth keeping if you are having problems with it.</p><p>The easiest way to disable the setting is to uncheck the checkbox above. You can also alternatively go to Expert options, find the UpdateMethod variable, and switch it to 0 or 1. I am fairly confident the setting of 1 is less resource intensive than 0, so I went with it.</p><p
align="center"><a
href="http://beerpla.net/wp-content/uploads/HowToFixRedrawingProblemsInYourVNCRealVN_CB15/image_4.png" class="lightview" rel="gallery['969']" title="image"><img
title="image" style="display: inline" height="92" alt="image" src="http://beerpla.net/wp-content/uploads/HowToFixRedrawingProblemsInYourVNCRealVN_CB15/image_thumb_4.png" width="502" /></a></p></p><p>My Java programs are fixed and redrawing fine now.</p><div
class="shr-bookmarks shr-bookmarks-expand"><ul
class="socials"><li
class="shr-twitter"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Redrawing+Problems+In+Your+VNC&amp;link=http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/&amp;notes=The%20Problem%20%20If%20you%20use%20VNC%20to%20remotely%20connect%20to%20your%20machines%20and%20are%20having%20problems%20with%20certain%20applications%20not%20showing%20changes%20%28redrawing%29%2C%20this%20will%2C%20hopefully%2C%20solve%20the%20problem%20for%20you.%20%20The%20symptoms%20are%20simple%3A%20you%20load%20a%20program%20but%20only%20the%20program%20outline%20and%20maybe%20the%20first%20frame%20wou&amp;short_link=http://bit.ly/bhJEFN&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=%24%7Btitle%7D+-+%24%7Bshort_link%7D&amp;service=7&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Tweet This!">Tweet This!</a></li><li
class="shr-facebook"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Redrawing+Problems+In+Your+VNC&amp;link=http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/&amp;notes=The%20Problem%20%20If%20you%20use%20VNC%20to%20remotely%20connect%20to%20your%20machines%20and%20are%20having%20problems%20with%20certain%20applications%20not%20showing%20changes%20%28redrawing%29%2C%20this%20will%2C%20hopefully%2C%20solve%20the%20problem%20for%20you.%20%20The%20symptoms%20are%20simple%3A%20you%20load%20a%20program%20but%20only%20the%20program%20outline%20and%20maybe%20the%20first%20frame%20wou&amp;short_link=http://bit.ly/bhJEFN&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=5&amp;tags=&amp;ctype=" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a></li><li
class="shr-googlebuzz"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Redrawing+Problems+In+Your+VNC&amp;link=http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/&amp;notes=The%20Problem%20%20If%20you%20use%20VNC%20to%20remotely%20connect%20to%20your%20machines%20and%20are%20having%20problems%20with%20certain%20applications%20not%20showing%20changes%20%28redrawing%29%2C%20this%20will%2C%20hopefully%2C%20solve%20the%20problem%20for%20you.%20%20The%20symptoms%20are%20simple%3A%20you%20load%20a%20program%20but%20only%20the%20program%20outline%20and%20maybe%20the%20first%20frame%20wou&amp;short_link=http://bit.ly/bhJEFN&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=257&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Post on Google Buzz">Post on Google Buzz</a></li><li
class="shr-reddit"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Redrawing+Problems+In+Your+VNC&amp;link=http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/&amp;notes=The%20Problem%20%20If%20you%20use%20VNC%20to%20remotely%20connect%20to%20your%20machines%20and%20are%20having%20problems%20with%20certain%20applications%20not%20showing%20changes%20%28redrawing%29%2C%20this%20will%2C%20hopefully%2C%20solve%20the%20problem%20for%20you.%20%20The%20symptoms%20are%20simple%3A%20you%20load%20a%20program%20but%20only%20the%20program%20outline%20and%20maybe%20the%20first%20frame%20wou&amp;short_link=http://bit.ly/bhJEFN&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=40&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on Reddit">Share this on Reddit</a></li><li
class="shr-hackernews"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Redrawing+Problems+In+Your+VNC&amp;link=http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/&amp;notes=The%20Problem%20%20If%20you%20use%20VNC%20to%20remotely%20connect%20to%20your%20machines%20and%20are%20having%20problems%20with%20certain%20applications%20not%20showing%20changes%20%28redrawing%29%2C%20this%20will%2C%20hopefully%2C%20solve%20the%20problem%20for%20you.%20%20The%20symptoms%20are%20simple%3A%20you%20load%20a%20program%20but%20only%20the%20program%20outline%20and%20maybe%20the%20first%20frame%20wou&amp;short_link=http://bit.ly/bhJEFN&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=202&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Submit this to Hacker News">Submit this to Hacker News</a></li><li
class="shr-delicious"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Redrawing+Problems+In+Your+VNC&amp;link=http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/&amp;notes=The%20Problem%20%20If%20you%20use%20VNC%20to%20remotely%20connect%20to%20your%20machines%20and%20are%20having%20problems%20with%20certain%20applications%20not%20showing%20changes%20%28redrawing%29%2C%20this%20will%2C%20hopefully%2C%20solve%20the%20problem%20for%20you.%20%20The%20symptoms%20are%20simple%3A%20you%20load%20a%20program%20but%20only%20the%20program%20outline%20and%20maybe%20the%20first%20frame%20wou&amp;short_link=http://bit.ly/bhJEFN&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=2&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Share this on del.icio.us">Share this on del.icio.us</a></li><li
class="shr-stumbleupon"> <a
href="http://www.shareaholic.com/api/share/?title=How+To+Fix+Redrawing+Problems+In+Your+VNC&amp;link=http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/&amp;notes=The%20Problem%20%20If%20you%20use%20VNC%20to%20remotely%20connect%20to%20your%20machines%20and%20are%20having%20problems%20with%20certain%20applications%20not%20showing%20changes%20%28redrawing%29%2C%20this%20will%2C%20hopefully%2C%20solve%20the%20problem%20for%20you.%20%20The%20symptoms%20are%20simple%3A%20you%20load%20a%20program%20but%20only%20the%20program%20outline%20and%20maybe%20the%20first%20frame%20wou&amp;short_link=http://bit.ly/bhJEFN&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=38&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a></li><li
class="shr-mail"> <a
href="http://www.shareaholic.com/api/share/?title=How%20To%20Fix%20Redrawing%20Problems%20In%20Your%20VNC&amp;link=http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/&amp;notes=The%20Problem%20%20If%20you%20use%20VNC%20to%20remotely%20connect%20to%20your%20machines%20and%20are%20having%20problems%20with%20certain%20applications%20not%20showing%20changes%20%28redrawing%29%2C%20this%20will%2C%20hopefully%2C%20solve%20the%20problem%20for%20you.%20%20The%20symptoms%20are%20simple%3A%20you%20load%20a%20program%20but%20only%20the%20program%20outline%20and%20maybe%20the%20first%20frame%20wou&amp;short_link=http://bit.ly/bhJEFN&amp;v=1&amp;apitype=1&amp;apikey=8afa39428933be41f8afdb8ea21a495c&amp;source=Shareaholic&amp;template=&amp;service=201&amp;tags=&amp;ctype=" rel="nofollow" class="external" title="Email this to a friend?">Email this to a friend?</a></li></ul><div
style="clear: both;"></div></div> Similar Posts:<ul><li><a
href="http://beerpla.net/2009/11/18/sprint-and-htc-release-the-first-htc-hero-firmware-update-1-56-fixes-major-bugs-adds-small-tweaks/" rel="bookmark" title="November 18, 2009">Sprint And HTC Release The First HTC Hero Firmware Update 1.56: Fixes Major Bugs, Adds Small Tweaks</a></li><li><a
href="http://beerpla.net/2007/07/09/the-repositories-for-apt-get-in-suse-102/" rel="bookmark" title="July 9, 2007">The Repositories For apt-get In SUSE 10.2</a></li><li><a
href="http://beerpla.net/2009/11/21/meet-firefox-for-mobile-video-feature-highlights-more-info/" rel="bookmark" title="November 21, 2009">Meet Firefox For Mobile [Video + Feature Highlights + More Info]</a></li><li><a
href="http://beerpla.net/2008/06/16/how-to-svn-update-all-your-wordpress-plugins-in-one-go/" rel="bookmark" title="June 16, 2008">How To SVN Update All Your WordPress Plugins In One Go</a></li><li><a
href="http://beerpla.net/2009/07/14/how-to-fix-palm-pres-error-sending-mail-problem-7/" rel="bookmark" title="July 14, 2009">How To Fix Palm Pre&#039;s &quot;Error Sending Mail&quot; Problem</a></li></ul><p><a
class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fbeerpla.net%2F2009%2F05%2F18%2Fhow-to-fix-redrawing-problems-in-your-vnc%2F&amp;title=How%20To%20Fix%20Redrawing%20Problems%20In%20Your%20VNC" id="wpa2a_10"><img
src="http://beerpla.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded> <wfw:commentRss>http://beerpla.net/2009/05/18/how-to-fix-redrawing-problems-in-your-vnc/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
