<?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"
	>

<channel>
	<title>Ikenna's blog</title>
	<atom:link href="http://software-developer.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://software-developer.me</link>
	<description>Ikenna's notes on software development</description>
	<pubDate>Tue, 22 Sep 2009 10:59:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
			<item>
		<title>A Cool Java Map builder</title>
		<link>http://software-developer.me/a-cool-java-map-builder/2009/09/22/</link>
		<comments>http://software-developer.me/a-cool-java-map-builder/2009/09/22/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 10:58:09 +0000</pubDate>
		<dc:creator>admin0</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://software-developer.me/?p=179</guid>
		<description><![CDATA[Build up java maps as literals with this builder
]]></description>
			<content:encoded><![CDATA[<p><a href="http://nicolas.lehuen.com/index.php/post/2006/10/07/113-java-map-literals-continued">Build up java maps as literals with this builder</a></p>
]]></content:encoded>
			<wfw:commentRss>http://software-developer.me/a-cool-java-map-builder/2009/09/22/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Optimizing intellij idea performance</title>
		<link>http://software-developer.me/optimizing-intellij-idea-performance/2009/09/14/</link>
		<comments>http://software-developer.me/optimizing-intellij-idea-performance/2009/09/14/#comments</comments>
		<pubDate>Mon, 14 Sep 2009 12:58:56 +0000</pubDate>
		<dc:creator>admin0</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://software-developer.me/?p=176</guid>
		<description><![CDATA[See 10 Tips to Increase IntelliJ IDEA Performance
]]></description>
			<content:encoded><![CDATA[<p>See <a href="http://hamletdarcy.blogspot.com/2008/02/10-tips-to-increase-intellij-idea.html">10 Tips to Increase IntelliJ IDEA Performance</a></p>
]]></content:encoded>
			<wfw:commentRss>http://software-developer.me/optimizing-intellij-idea-performance/2009/09/14/feed/</wfw:commentRss>
		</item>
		<item>
		<title>VIM rails plugin - switching buffers</title>
		<link>http://software-developer.me/vim-rails-plugin-switching-buffers/2009/04/30/</link>
		<comments>http://software-developer.me/vim-rails-plugin-switching-buffers/2009/04/30/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 15:01:09 +0000</pubDate>
		<dc:creator>admin0</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[rails]]></category>

		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://software-developer.me/?p=167</guid>
		<description><![CDATA[Using the VIM rails plugin, and want to switch between the last 2 buffers in VIM?  Its Ctrl + 6. Found this in this pdf by   Reza Jelveh on Rails development in Vim.
]]></description>
			<content:encoded><![CDATA[<p>Using the VIM rails plugin, and want to switch between the last 2 buffers in VIM?  Its Ctrl + 6. Found this in this <a href="http://www.flyingseagull.de/assets/vim-rails.pdf">pdf</a> by <a href="http://www.flyingseagull.de/2009/4/9/vim-rails">  Reza Jelveh on Rails development in Vim</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://software-developer.me/vim-rails-plugin-switching-buffers/2009/04/30/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Vim project plugin : Switching between the buffer and the project pane</title>
		<link>http://software-developer.me/vim-project-plugin-switching-between-the-buffer-and-the-project-pane/2009/04/28/</link>
		<comments>http://software-developer.me/vim-project-plugin-switching-between-the-buffer-and-the-project-pane/2009/04/28/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 10:58:11 +0000</pubDate>
		<dc:creator>admin0</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://software-developer.me/?p=162</guid>
		<description><![CDATA[Ctrl+W twice switches between the project pane and the file editing buffer when using the  VIM project plugin . Found this  after lots of Google searching from Ariyas  blog post about using the project plugin.
]]></description>
			<content:encoded><![CDATA[<p>Ctrl+W twice switches between the project pane and the file editing buffer when using the <a href="http://www.vim.org/scripts/script.php?script_id=69"> VIM project plugin </a>. Found this  after lots of Google searching from <a href="http://ariya.blogspot.com/2008/07/vim-lightning-fast-navigation-in-large.html">Ariyas  blog post about using the project plugin</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://software-developer.me/vim-project-plugin-switching-between-the-buffer-and-the-project-pane/2009/04/28/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Setting SVN ignore on a directory recursively</title>
		<link>http://software-developer.me/setting-svn-ignore-on-a-directory-recursively/2009/04/27/</link>
		<comments>http://software-developer.me/setting-svn-ignore-on-a-directory-recursively/2009/04/27/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 11:42:08 +0000</pubDate>
		<dc:creator>admin0</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://software-developer.me/?p=157</guid>
		<description><![CDATA[Example: SVN ignore all the .swp files in the current directory and all sub-directories:

svn propset -R svn:ignore &#8216;*.swp&#8217; .

]]></description>
			<content:encoded><![CDATA[<p>Example: SVN ignore all the .swp files in the current directory and all sub-directories:</p>
<p><b>
<div class="codesnip-container" >svn propset -R svn:ignore &#8216;*.swp&#8217; .</div>
<p></b></p>
]]></content:encoded>
			<wfw:commentRss>http://software-developer.me/setting-svn-ignore-on-a-directory-recursively/2009/04/27/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Installing Oracle XE on Ubuntu</title>
		<link>http://software-developer.me/installing-oracle-xe-on-ubuntu/2008/11/13/</link>
		<comments>http://software-developer.me/installing-oracle-xe-on-ubuntu/2008/11/13/#comments</comments>
		<pubDate>Thu, 13 Nov 2008 15:47:05 +0000</pubDate>
		<dc:creator>admin0</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://software-developer.me/?p=131</guid>
		<description><![CDATA[Here are a few helpful articles
http://www.markcarter.me.uk/computing/linux/oracle.htm
http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html
I installed Oracle XE on a Virtual Machine. I did come up with 2 issues -
1. The VM had 512Mb of RAM and oracle needed more. Had to increase the swap space.  This page gives instructions on doing this on ubuntu.
2. The VM was on an internal network, and [...]]]></description>
			<content:encoded><![CDATA[<p>Here are a few helpful articles<br />
<a href="http://www.markcarter.me.uk/computing/linux/oracle.htm">http://www.markcarter.me.uk/computing/linux/oracle.htm</a><br />
<a href="http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html">http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html</a></p>
<p>I installed Oracle XE on a Virtual Machine. I did come up with 2 issues -<br />
1. The VM had 512Mb of RAM and oracle needed more. Had to increase the swap space.  <a href="https://help.ubuntu.com/community/SwapFaq#How%20do%20I%20add%20more%20swap?">This page gives instructions</a> on doing this on ubuntu.<br />
2. The VM was on an internal network, and  could be accessed by its IP but not its hostname. This made the post-install oracle  configuration tasks to fail (found this out through oracle&#8217;s install logs). So even if Oracle XE was installed, you could neither access it through sqlplus or through its web-based admin interface. We fixed this by changing the VM&#8217;s hostname to localhost, then un-intsalling and re-installing oracle XE.</p>
<p>And then don&#8217;t forget to run
<div class="codesnip-container" ><b> /etc/init.d/oracle-xe configure </b></div>
<p>  after the installation!</p>
]]></content:encoded>
			<wfw:commentRss>http://software-developer.me/installing-oracle-xe-on-ubuntu/2008/11/13/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Changing the default gVim/MacVim color scheme</title>
		<link>http://software-developer.me/changing-the-default-gvimmacvim-color-scheme/2008/10/21/</link>
		<comments>http://software-developer.me/changing-the-default-gvimmacvim-color-scheme/2008/10/21/#comments</comments>
		<pubDate>Tue, 21 Oct 2008 15:31:13 +0000</pubDate>
		<dc:creator>admin0</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://software-developer.me/?p=120</guid>
		<description><![CDATA[To change the default color scheme to say koehler (making it look a bit like textmate), add the following to your .vimrc file 
:colorscheme koehler
Save and restart your MacVim / gVim. And that should be it. 
(You can easily access the .vimrc file by going to Edit>Startup settings from your menu)
]]></description>
			<content:encoded><![CDATA[<p>To change the default color scheme to say koehler (making it look a bit like textmate), add the following to your .vimrc file </p>
<p>:colorscheme koehler</p>
<p>Save and restart your MacVim / gVim. And that should be it. </p>
<p>(You can easily access the .vimrc file by going to Edit>Startup settings from your menu)</p>
]]></content:encoded>
			<wfw:commentRss>http://software-developer.me/changing-the-default-gvimmacvim-color-scheme/2008/10/21/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Parsing CSV files with ruby FasterCSV : An example</title>
		<link>http://software-developer.me/parsing-csv-files-with-ruby-fastercsv-an-example/2008/10/13/</link>
		<comments>http://software-developer.me/parsing-csv-files-with-ruby-fastercsv-an-example/2008/10/13/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 16:10:37 +0000</pubDate>
		<dc:creator>admin0</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[fastercsv]]></category>

		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://software-developer.me/?p=109</guid>
		<description><![CDATA[Need to parse csv files in ruby, skipping the first row (usually some header)?. Use FasterCSV.  (Yes, its faster). Install it
$ sudo gem install fastercsv
 Here is one solution
#!/usr/bin/ruby -w

require 'rubygems'
require 'faster_csv'

#put everything in an array
array_of_arrays = FasterCSV.read("some_file.csv") 

# remove headers
array_of_arrays.slice!(0) 

array_of_arrays.each{&#124;row&#124;
  puts row
}
Another solution is

#!/usr/bin/ruby -w

require 'rubygems'
require 'faster_csv'

# setting the headers option [...]]]></description>
			<content:encoded><![CDATA[<p>Need to parse csv files in ruby, skipping the first row (usually some header)?. Use FasterCSV.  (Yes, its faster). Install it</p>
<div class="codesnip-container" >$ sudo gem install fastercsv</div>
<p> Here is one solution</p>
<pre>#!/usr/bin/ruby -w

require 'rubygems'
require 'faster_csv'

#put everything in an array
array_of_arrays = FasterCSV.read("some_file.csv") 

# remove headers
array_of_arrays.slice!(0) 

array_of_arrays.each{|row|
  puts row
}</pre>
<p>Another solution is</p>
<pre>
#!/usr/bin/ruby -w

require 'rubygems'
require 'faster_csv'

# setting the headers option to true or :first_row gets rid of the headers
FasterCSV.foreach('some_file.csv', :headers => :first_row) {|row|
    puts row
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://software-developer.me/parsing-csv-files-with-ruby-fastercsv-an-example/2008/10/13/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Mockito vs EasyMock - Mockito wins</title>
		<link>http://software-developer.me/mockito-vs-easymock-mockito-wins/2008/10/09/</link>
		<comments>http://software-developer.me/mockito-vs-easymock-mockito-wins/2008/10/09/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 10:17:30 +0000</pubDate>
		<dc:creator>admin0</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[Mocks]]></category>

		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://software-developer.me/?p=103</guid>
		<description><![CDATA[I would definitely recommend Mockito over EasyMock (and ofcourse, over JMock).  I was initially hesitant of using Mockito on my project, but when I did, I found it a lot easier to use and with a lot less noise in test setup compared to EasyMock.
]]></description>
			<content:encoded><![CDATA[<p>I would definitely recommend <a href="http://www.google.co.uk/url?sa=t&amp;source=web&amp;ct=res&amp;cd=1&amp;url=http%3A%2F%2Fcode.google.com%2Fp%2Fmockito%2F&amp;ei=FtftSIuPF6iuwQGgooHVBA&amp;usg=AFQjCNHLIweB-TgcD94YN8-r0SnEoOc1ig&amp;sig2=H3d_OseIHjr4i5NwNKQ2xw">Mockito</a> over EasyMock (and ofcourse, over JMock).  I was initially hesitant of using Mockito on my project, but when I did, I found it a lot easier to use and with a lot less noise in test setup compared to EasyMock.</p>
]]></content:encoded>
			<wfw:commentRss>http://software-developer.me/mockito-vs-easymock-mockito-wins/2008/10/09/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using Dbdeploy with Ant, an example</title>
		<link>http://software-developer.me/dbdeploy-ant-classpath-example/2008/10/02/</link>
		<comments>http://software-developer.me/dbdeploy-ant-classpath-example/2008/10/02/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 18:15:10 +0000</pubDate>
		<dc:creator>admin0</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[ant]]></category>

		<category><![CDATA[dbdeploy]]></category>

		<guid isPermaLink="false">http://software-developer.me/?p=77</guid>
		<description><![CDATA[Here is an example of using dbdeploy in an  ant build file:
&#60;taskdef name="dbdeploy" classname="net.sf.dbdeploy.AntTarget"
classpathref="lib.dir"/&#62;

&#60;target name="build" depends="create-build-directory"
description="Compile main source tree java files"&#62;
    &#60;echoproperties prefix="jdbc" /&#62;
    &#60;echoproperties prefix="smn" /&#62;
    &#60;javac destdir="${smn.build.dir}" source="1.5" target="1.5"
debug="true" deprecation="false" optimize="false" failonerror="true"&#62;
        &#60;src path="${smn.src.dir}"/&#62;
    [...]]]></description>
			<content:encoded><![CDATA[<p>Here is an example of using <a href="http://dbdeploy.com/">dbdeploy</a> in an  ant build file:</p>
<pre>&lt;taskdef name="dbdeploy" classname="net.sf.dbdeploy.AntTarget"
classpathref="lib.dir"/&gt;

&lt;target name="build" depends="create-build-directory"
description="Compile main source tree java files"&gt;
    &lt;echoproperties prefix="jdbc" /&gt;
    &lt;echoproperties prefix="smn" /&gt;
    &lt;javac destdir="${smn.build.dir}" source="1.5" target="1.5"
debug="true" deprecation="false" optimize="false" failonerror="true"&gt;
        &lt;src path="${smn.src.dir}"/&gt;
        &lt;classpath refid="master-classpath"/&gt;
    &lt;/javac&gt;

    &lt;dbdeploy
driver="${jdbc.driverClassName}"
url="${jdbc.url}"
userid="${jdbc.username}"
password="${jdbc.password}"
dir="${smn.base.dir}\db\deltas"
outputfile="${smn.base.dir}\db-deploy-output\all-deltas.sql"
dbms="mysql"
undoOutputfile="${smn.base.dir}\db-deploy-output\undo-all-deltas.sql"
    /&gt;
    &lt;sql driver="${jdbc.driverClassName}" password="${jdbc.password}"
url="${jdbc.url}" userid="${jdbc.username}"
src="${smn.base.dir}\db-deploy-output\all-deltas.sql"
print="true" classpathref="lib.dir" /&gt;
&lt;/target&gt;</pre>
<ol>
<li>Note: dbdeploy does not run your change scripts, you have to run the script it outputs with an sql task</li>
<li>If you get errors like 
<div class="codesnip-container" ><strong>&gt; taskdef class net.sf.dbdeploy.AntTarget cannot be found</strong></div>
<p>it means that the dbdeploy.jar is not in your classpath.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://software-developer.me/dbdeploy-ant-classpath-example/2008/10/02/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
