<?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>non-random ramble &#187; ides</title>
	<atom:link href="http://jimbarritt.com/non-random/category/ides/feed/" rel="self" type="application/rss+xml" />
	<link>http://jimbarritt.com/non-random</link>
	<description>adventures in code</description>
	<lastBuildDate>Fri, 23 Jul 2010 13:42:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing JRuby with Intellij (OS X)</title>
		<link>http://jimbarritt.com/non-random/2010/07/03/installing-jruby-with-intellij-os-x/</link>
		<comments>http://jimbarritt.com/non-random/2010/07/03/installing-jruby-with-intellij-os-x/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 09:14:25 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[build]]></category>
		<category><![CDATA[intellij]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[thoughtblog]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/?p=573</guid>
		<description><![CDATA[GET it from http://jruby.org/ There is a download page, download and exract the tar file somehwere. I put it in /System/Library/Frameworks/JRuby.framework/jruby-1.5.1 I then created a symbolic link to jruby_current And then simply add it to my ~/.bash_profile Now you can add the JRuby SDK to your Java Module in Intellij: Now you can have ruby [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jimbarritt.com/non-random/wp-content/uploads/2010/07/jruby.png" rel="lightbox[573]"><img src="http://jimbarritt.com/non-random/wp-content/uploads/2010/07/jruby.png" alt="" title="jruby" width="235" height="232" class="aligncenter size-full wp-image-574" /></a></p>
<p>GET it from <a href="http://jruby.org/#2">http://jruby.org/</a></p>
<p>There is a download page, download and exract the tar file somehwere.</p>
<p>I put it in <code>/System/Library/Frameworks/JRuby.framework/jruby-1.5.1</code></p>
<p>I then created a symbolic link to <code>jruby_current</code><br />
<pre name='code' class='java:nogutter:nocontrols'>
ln -s jruby-1.5.1/ jruby_current
</pre></p>
<p>And then simply add it to my <code>~/.bash_profile</code></p>
<pre name='code' class='java:nogutter:nocontrols'>
$vi ~/.bash_profile
export PATH=/System/Library/Frameworks/JRuby.framework/jruby_current/bin:$PATH
#Reload the profile&#8230;
$. ~/.bash_profile
#Try out jruby&#8230;
$jruby -v
jruby 1.5.1 (ruby 1.8.7 patchlevel 249) (2010-06-06 f3a3480) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_17) [x86_64-java]
</pre>
<p>Now you can add the JRuby SDK to your Java Module in Intellij:</p>
<p><a href="http://jimbarritt.com/non-random/wp-content/uploads/2010/07/jruby_sdk.png" rel="lightbox[573]"><img src="http://jimbarritt.com/non-random/wp-content/uploads/2010/07/jruby_sdk.png" alt="" title="jruby_sdk" width="600" /></a></p>
<p>Now you can have ruby and Java in the same project. Awesome.</p>
]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2010/07/03/installing-jruby-with-intellij-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resources not available on classpath in Intellij</title>
		<link>http://jimbarritt.com/non-random/2010/07/02/intellij-compile-resources/</link>
		<comments>http://jimbarritt.com/non-random/2010/07/02/intellij-compile-resources/#comments</comments>
		<pubDate>Fri, 02 Jul 2010 15:15:13 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[intellij]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/?p=569</guid>
		<description><![CDATA[Today I spent a while puzzling over why my StringTemplates weren&#8217;t available on the classpath in Intellij. I forgot that you have to specifically identify file types to copy into the classes folder, you do it in the project settings. Search for &#8220;resource&#8221; and look in the compiler settings.]]></description>
			<content:encoded><![CDATA[<p><a href="http://jimbarritt.com/non-random/wp-content/uploads/2010/07/intellij-resources.png" rel="lightbox[569]"><img src="http://jimbarritt.com/non-random/wp-content/uploads/2010/07/intellij-resources.png" alt="" title="intellij-resources" width="600" /></a></p>
<p>Today I spent a while puzzling over why my StringTemplates weren&#8217;t available on the classpath in Intellij.</p>
<p>I forgot that you have to specifically identify file types to copy into the classes folder, you do it in the project settings. Search for &#8220;resource&#8221; and look in the compiler settings.</p>
]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2010/07/02/intellij-compile-resources/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intellij svn history keeps &#8220;partial&#8221; commits</title>
		<link>http://jimbarritt.com/non-random/2010/06/08/intellij-svn-history-keeps-partial-commits/</link>
		<comments>http://jimbarritt.com/non-random/2010/06/08/intellij-svn-history-keeps-partial-commits/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 10:42:25 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[ides]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/?p=536</guid>
		<description><![CDATA[I found that after an update, I was still seeing some entries lying around. Thanks to this issue on the intellij community forum I was able to simply remove the contents svn cache and it works.]]></description>
			<content:encoded><![CDATA[<p><a href="http://jimbarritt.com/non-random/wp-content/uploads/2010/06/svn_incoming.gif" rel="lightbox[536]"><img src="http://jimbarritt.com/non-random/wp-content/uploads/2010/06/svn_incoming.gif" alt="" title="svn_incoming" width="573" height="72" class="aligncenter size-full wp-image-537" /></a></p>
<p>I found that after an update, I was still seeing some entries lying around. Thanks to this <a href="http://www.jetbrains.net/devnet/message/5215171#5215171">issue</a> on the intellij community forum I was able to simply remove the contents svn cache and it works.</p>
<pre name='code' class='java:nogutter:nocontrols'>
~/Library/Caches/IntelliJIdea90/vcsCache
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2010/06/08/intellij-svn-history-keeps-partial-commits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Link from log console output to a line of code in IntelliJ</title>
		<link>http://jimbarritt.com/non-random/2010/05/16/link-from-log-console-output-to-a-line-of-code-in-intellij/</link>
		<comments>http://jimbarritt.com/non-random/2010/05/16/link-from-log-console-output-to-a-line-of-code-in-intellij/#comments</comments>
		<pubDate>Sun, 16 May 2010 13:47:55 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[ides]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[thoughtblog]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/?p=480</guid>
		<description><![CDATA[Whilst playing around with some code analysis I thought it would be useful to be able to output a hyperlink back to a line of code in the IDE console. As it happens, you can &#8220;Trick&#8221; IntelliJ to do this with the following log statement: The pattern it seems to match is something like at [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jimbarritt.com/non-random/wp-content/uploads/2010/05/clickfromconsole.gif" rel="lightbox[480]"><img src="http://jimbarritt.com/non-random/wp-content/uploads/2010/05/clickfromconsole.gif" alt="" title="clickfromconsole" width="800"  class="aligncenter size-full wp-image-481" /></a></p>
<p>Whilst playing around with some code analysis I thought it would be useful to be able to output a hyperlink back to a line of code in the IDE console. As it happens, you can &#8220;Trick&#8221; IntelliJ to do this with the following log statement:</p>
<pre name='code' class='java:nogutter:nocontrols'>
    @Test
    public void canClickOnAFileInTheConsoleAndGoToTheLineOfCode() {
        log.info(String.format(&#8220;Check it at %s. (%s.java:%d)&#8221;,
            getClass().getName(), getClass().getSimpleName(), 15));
    }
</pre>
<p>The pattern it seems to match is something like <code>at {classFullName}.{identifier}({classSimpleName}.java)</code></p>
<p><code>classFullName</code> has to be a valid class name.<br />
<code>identifier</code> is usually used for the method name, but it can be anything. The full stop is nescessary. So in the example above, I put a space in there and so it reads like a sentance.</p>
<p>Anyone know a another way to do this?</p>
<p>UPDATE: </p>
<p>Actually it seems that you can get something similar if you output a full path name, e.g.:</p>
<pre name='code' class='java:nogutter:nocontrols'>
    File f = new File(&#8220;./src/test/resource/testfiles/level_01/level_01_01/file_01_01_A.txt&#8221;);
    log.info(f.getAbsolutePath() + &#8220;:&#8221; + 34);
</pre>
<p>This will create a link in the output window to the line of the file. Nice.</p>
]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2010/05/16/link-from-log-console-output-to-a-line-of-code-in-intellij/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Online Mind Mapping Tool</title>
		<link>http://jimbarritt.com/non-random/2010/04/17/online-mind-mapping-tool/</link>
		<comments>http://jimbarritt.com/non-random/2010/04/17/online-mind-mapping-tool/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 11:46:44 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[ides]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[thoughtblog]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/?p=367</guid>
		<description><![CDATA[Mind mapping, invented by]]></description>
			<content:encoded><![CDATA[<p><a href="http://jimbarritt.com/non-random/wp-content/uploads/2010/04/MindMeister.gif" rel="lightbox[367]"><img src="http://jimbarritt.com/non-random/wp-content/uploads/2010/04/MindMeister_small.gif" alt="" title="MindMeister_small" width="567" height="289" class="alignnone size-full wp-image-387" /></a></p>
<p>Mind mapping, invented by <a href=http://en.wikipedia.org/wiki/Tony_Buzan">Tony Buzan</a> is a way to get lots of ideas down and relate them together.</p>
<p><a href="http://www.mindmeister.com">MindMeister</a> is a great online Mind Mapping tool. It can be used for free but for $59 for a year you get things like offline access. It is completely written using html and javascript.</p>
<p>Map On!</p>
<p><a href="http://www.mindmeister.com"><br />
<img src="http://webworkerdaily.files.wordpress.com/2007/03/mindmeister-logo.png?w=257&#038;h=56" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2010/04/17/online-mind-mapping-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>REST client plugin in IntelliJ</title>
		<link>http://jimbarritt.com/non-random/2010/03/13/rest-client-plugin-in-intellij/</link>
		<comments>http://jimbarritt.com/non-random/2010/03/13/rest-client-plugin-in-intellij/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 11:15:34 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[ides]]></category>
		<category><![CDATA[thoughtblog]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/?p=362</guid>
		<description><![CDATA[Was just browsing the plugins and found this one which is looking good. REST Client plugin It was also available from the plugins list in the settings.]]></description>
			<content:encoded><![CDATA[<p>Was just browsing the plugins and found this one which is looking good.</p>
<p><a href="http://plugins.intellij.net/plugin/?idea&#038;id=2200">REST Client plugin</a></p>
<p>It was also available from the plugins list in the settings.</p>
<div id="attachment_363" class="wp-caption alignnone" style="width: 661px"><img src="http://jimbarritt.com/non-random/wp-content/uploads/2010/03/RESTCLIENT.jpg" alt="Rest Client intellij plugin screenshot" title="RESTCLIENT" width="651" height="598" class="size-full wp-image-363" /><p class="wp-caption-text">Rest Client intellij plugin screenshot</p></div>
]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2010/03/13/rest-client-plugin-in-intellij/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BashPlugin For IntelliJ fails under snow leopard</title>
		<link>http://jimbarritt.com/non-random/2009/12/07/bashplugin-for-intellij-fails-under-snow-leopard/</link>
		<comments>http://jimbarritt.com/non-random/2009/12/07/bashplugin-for-intellij-fails-under-snow-leopard/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 09:17:14 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[ides]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/?p=332</guid>
		<description><![CDATA[I Just recently upgraded to Snow Leopard and tried to install the Bash Script plugin for intellij. On restart, IntelliJ just did not work, even After I removed the plugin (See this post for more plugin details) Infact it seemed to hose my current project aswell &#8211; I had to remove intellij.app and replace it [...]]]></description>
			<content:encoded><![CDATA[<p>I Just recently upgraded to Snow Leopard and tried to install the Bash Script plugin for intellij.</p>
<p>On restart, IntelliJ just did not work, even After I removed the plugin (See this <a htref="http://jimbarritt.com/non-random/2009/11/18/dbnavigator-plugin-failed-to-start-in-intellij-8-x/">post</a> for more plugin details)</p>
<p>Infact it seemed to hose my current project aswell &#8211; I had to remove intellij.app and replace it with the original download (Not forgetting of course to set the <a href="http://jimbarritt.com/non-random/2009/08/01/intellij-crashes-on-os-x/comment-page-1/">JVM version</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2009/12/07/bashplugin-for-intellij-fails-under-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DBNavigator plugin failed to start in Intellij 8.x</title>
		<link>http://jimbarritt.com/non-random/2009/11/18/dbnavigator-plugin-failed-to-start-in-intellij-8-x/</link>
		<comments>http://jimbarritt.com/non-random/2009/11/18/dbnavigator-plugin-failed-to-start-in-intellij-8-x/#comments</comments>
		<pubDate>Wed, 18 Nov 2009 10:37:41 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[ides]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/?p=293</guid>
		<description><![CDATA[I just tried to use the DBNavigator plugin. I restarted IntelliJ and it just hung there which led me on a trip to find out what was wrong. First up I found the log files in ~/Library/Caches/IntelliJIDEA8x/log/ And saw this exception This seems to be a general problem for plugins, e.g. the Scala plugin (http://youtrack.jetbrains.net/issue/SCL-1592). [...]]]></description>
			<content:encoded><![CDATA[<p>I just tried to use the DBNavigator plugin.</p>
<p>I restarted IntelliJ and it just hung there which led me on a trip to find out what was wrong.</p>
<p>First up I found the log files in
<pre>~/Library/Caches/IntelliJIDEA8x/log/</pre>
<p>And saw this exception</p>
<pre name='code' class='java:nogutter:nocontrols'>
Expected implementation for extension declaration (ep = com.intellij.completion.contributor)
</pre>
<p>This seems to be a general problem for plugins, e.g. the Scala plugin (<a href="http://youtrack.jetbrains.net/issue/SCL-1592">http://youtrack.jetbrains.net/issue/SCL-1592</a>).</p>
<p>So you need to remove the plugin which will have been installed here:</p>
<pre name='code' class='java:nogutter:nocontrols'>
~/Library/Application Support/IntelliJIDEA80
</pre>
<p>Thanks to this <a href="http://blog.cotopia.com/2008/08/uninstall-intellij-plugins-on-os-x.html">post</a> for triggering the solution.</p>
]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2009/11/18/dbnavigator-plugin-failed-to-start-in-intellij-8-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>IntelliJ Crashes on OS X</title>
		<link>http://jimbarritt.com/non-random/2009/08/01/intellij-crashes-on-os-x/</link>
		<comments>http://jimbarritt.com/non-random/2009/08/01/intellij-crashes-on-os-x/#comments</comments>
		<pubDate>Sat, 01 Aug 2009 09:48:00 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[ides]]></category>
		<category><![CDATA[jdk]]></category>
		<category><![CDATA[os x]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/2009/08/01/intellij-crashes-on-os-x/</guid>
		<description><![CDATA[I have been running v.8 of IntelliJ on os x for a while now, and noticed the odd crash, particularly after waking up the computer. Thanks to my colleague Tom Czarniecki I have found a solution that appears to be working. Some googling turned up very little, but mostly points to the JVM being the [...]]]></description>
			<content:encoded><![CDATA[<p>I have been running v.8 of IntelliJ on os x for a while now, and noticed the odd crash, particularly after waking up the computer.</p>
<p>Thanks to my colleague <a href="http://watchitlater.com/blog/about">Tom Czarniecki</a> I have found a solution that appears to be working.</p>
<p>Some googling turned up very little, but mostly points to the JVM being the problem. I had tried updating the Java installed on os x and setting the JDK to be 1.5 which did seem to improve stability but still crashed.</p>
<p>Tom pointed out that Intellij also has a configuration for the JDK version in its config which I updated to be 1.6+ and then switched my JDK back to 1.6 64bit. That was a week ago and not only have I had no crashes, of course the whole experience is smoother under 1.6! woo hoo!</p>
<p>The trick lies in the file</p>
<pre name='code' class='java:nogutter:nocontrols'>
/Applications/IntelliJ IDEA 8.1.3.app/Contents/Info.plist
</pre>
<pre name='code' class='java:nogutter:nocontrols'>
&lt;key&gt;JVMVersion&lt;/key&gt;
&lt;string&gt;1.6*&lt;/string&gt;
</pre>
<p>To Switch JDKs:</p>
<pre name='code' class='java:nogutter:nocontrols'>
/Applications/Utilities/Java/Java Preferences.app
</pre>
<p>Some other references I found along the way:</p>
<p><a href="http://www.jetbrains.net/devnet/thread/282406">http://www.jetbrains.net/devnet/thread/282406</a> </p>
<p>JDK Update:</p>
<p><a href="http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105update4.html">http://www.apple.com/downloads/macosx/apple/application_updates/javaformacosx105update4.html</a></p>
<p>To See IntelliJ Log output:</p>
<p> ~/Library/Caches/IntelliJIDEA8x/log/</p>
<p>UPDATE:</p>
<p>For Intellij9:</p>
<p>/Users/jim/Library/Logs/IntelliJIdea90/idea.log</p>
<p>(I found this using the activity monitor and then &#8220;inspect process&#8221; and you can see a list of open files and ports)</p>
<p>IntelliJ stores its plugins here (Thanks to <a href="http://blog.cotopia.com/2008/08/uninstall-intellij-plugins-on-os-x.html">these guys</a>) :</p>
<p>~/Library/Application Support/IntelliJIDEA80</p>
]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2009/08/01/intellij-crashes-on-os-x/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Navigate Backwards and forwards in Visual Studio</title>
		<link>http://jimbarritt.com/non-random/2008/11/17/navigate-backwards-and-forwards-in-visual-studio/</link>
		<comments>http://jimbarritt.com/non-random/2008/11/17/navigate-backwards-and-forwards-in-visual-studio/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 16:24:07 +0000</pubDate>
		<dc:creator>Jim Barritt</dc:creator>
				<category><![CDATA[ides]]></category>

		<guid isPermaLink="false">http://jimbarritt.com/non-random/2008/11/17/navigate-backwards-and-forwards-in-visual-studio/</guid>
		<description><![CDATA[This should have been obvious but it took me about 15mins of googling to find. Which is funny as the menu items seem to be quite obviously on display under the &#8220;View&#8221; menu! Anyway in Eclipse you do CTRL+LEFT_ARROW, CTRL+RIGHT_ARROW which is particularly useful if you have just jumped to the declaration of a method [...]]]></description>
			<content:encoded><![CDATA[<p>This should have been obvious but it took me about 15mins of googling to find. Which is funny as the menu items seem to be quite obviously on display under the &#8220;View&#8221; menu! </p>
<p>Anyway in Eclipse you do <code>CTRL+LEFT_ARROW, CTRL+RIGHT_ARROW</code> which is particularly useful if you have just jumped to the declaration of a method so you can go back to where you were.</p>
<p>In Visual studio the equivalent is <code>CTRL+-</code> (thats control and the minus key together) to go forwards, its <code>CTRL+SHIFT+-</code> (shift plus minus). </p>
<p>I have now re-mapped these to <code>CTRL+ALT+LEFT_ARROW</code> and <code>CTRL+ALT+RIGHT_ARROW</code>. </p>
<p>You map in Tools->Options->Keyboard its a bit tricky to find stuff they are called View.NavigateForwards and View.NavigateBackwards. You can discover these by just typing in the box at the bottom and it will show you what they are assigned to.</p>
]]></content:encoded>
			<wfw:commentRss>http://jimbarritt.com/non-random/2008/11/17/navigate-backwards-and-forwards-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
