<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Moves On Rails: Cha-Ching and dutch banks</title>
    <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>New ways to look at software</description>
    <item>
      <title>Cha-Ching and dutch banks</title>
      <description>&lt;p&gt;Like lots of you I bought the incredible MacHeist app bundle last week. One of the appz was Cha-Ching, a finance program to keep track of your money.&lt;/p&gt;

&lt;p&gt;One of the most useful features is the import. You can simply import all of your bank's records and be done with it. Unfortunately the dutch banks (or at least the Rabobank and Postbank) don't support the same formats Cha-Ching supports (like OFX/QIF).&lt;/p&gt;

&lt;p&gt;I wrote a small ruby script to convert the banks CSV files to OFX files. There are two separate files below (one for each bank):&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.movesonrails.com/files/csv_convert.rb"&gt;CSV convertor - Postbank (Ruby)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.movesonrails.com/files/csv_rabo_convert.rb"&gt;CSV convertor - Rabobank (Ruby)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before you can run the files you need two additional gems (if you haven't got them already).&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;sudo gem install extensions
sudo gem install builder
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After this you can use the scripts like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;ruby csv_convert.rb [CSV FILE] &amp;gt; export.ofx
ruby csv_rabo_convert.rb [CSV FILE] &amp;gt; export.ofx
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;Update: Now supports Tiger using PHP version of script and (optional) automator&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;For the next files you don't need anything else than a vanilla Tiger install of OSX.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.movesonrails.com/files/csv_convert.php"&gt;CSV convertor - Postbank (PHP)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.movesonrails.com/files/csv_rabo_convert.php"&gt;CSV convertor - Rabobank (PHP)&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can use them like this:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;php csv_convert.php [CSV FILE] &amp;gt; export.ofx
php csv_rabo_convert.php [CSV FILE] &amp;gt; export.ofx
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;For the simple version, use the automator zip file! Read the README to get it to work.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.movesonrails.com/files/csv_convert.zip"&gt;CSV convertor - Postbank/Rabobank (PHP/Automator)&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 23 Jan 2008 20:22:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:e46739f4-25d9-4e39-8ae9-223de2b0e88b</guid>
      <author>andre.foeken@movesonrails.com (Andre Foeken)</author>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks</link>
      <category>Rails</category>
      <category>Ruby</category>
      <category>cha</category>
      <category>ching</category>
      <category>rabobank</category>
      <category>postbank</category>
      <category>csv</category>
      <category>ofx</category>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by slitz</title>
      <description>hey!
thank you for your csv2ofx ruby code!

i've created a script for myself to convert tsv from my bank to ofx based on your code :)</description>
      <pubDate>Sun, 15 Jun 2008 02:36:23 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:22da1b4c-4c00-4c16-a2ab-bf753fd3b793</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-280</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by Anne Helmond</title>
      <description>Bedankt! Works perfectly to use with the Mac Cha-Ching software.</description>
      <pubDate>Fri, 13 Jun 2008 12:34:24 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:b51488fe-ea02-40d6-aa99-1f701b03fb90</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-279</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by Otto Hammersmith</title>
      <description>Any luck making Cha-ching import transactions as pending? I've got the new neat receipts and want to automate entering transactions but since it isn't a statement I don't want to reconcile everything.

:)
</description>
      <pubDate>Wed, 14 May 2008 22:57:45 +0200</pubDate>
      <guid isPermaLink="false">urn:uuid:64da021d-8fbf-4ffa-8c5b-68af7410500a</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-277</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by Andre Foeken</title>
      <description>I know, I tested most tags but cha-ching would not take most of them. It just ignores them :(</description>
      <pubDate>Fri, 08 Feb 2008 11:08:49 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:37ef6760-185d-4092-a652-9d0d421f2897</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-221</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by Renaat Vervaeke</title>
      <description>'lil question:
I see you make 5 ofx tags for a transaction 
(NAME DTPOSTED TRNAMT BANKACCTTO MEMO)
But as far as i can see only NAME DTPOSTED and TRNAMT get used by the cha-ching importer.
Correct?
Although it would be nice if the MEMO tag would be converted to the Note field in cha-ching.


I'm planning on writing a csv to ofx converter for Dexia's csv files (in applescript that is). </description>
      <pubDate>Wed, 06 Feb 2008 11:48:36 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:06f80e70-66cf-4f0a-aff6-f596a8906100</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-219</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by andre</title>
      <description>Go ahead! Just release it open source ;)</description>
      <pubDate>Tue, 29 Jan 2008 20:24:10 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:46284b12-1c6b-46ed-b191-9641c3fd031a</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-203</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by monti</title>
      <description>Hello All. You both hit the problem. I supposed that the cvs files are standarized in some way. My stupid error.

I am using a cvs from my bank in Spain.

I will try to adapt your script (if you allow me to do it) to use my bank format.

Thanks all for your help
Monti</description>
      <pubDate>Tue, 29 Jan 2008 13:41:13 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:46532bf9-0445-43c7-9fab-44929f73c45b</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-202</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by Andre Foeken</title>
      <description>You can safely ignore the rDoc warning/error. These happen to me a lot too.

These converters are specific to the banks listed 
above, did you run a CVS file from one of these banks or did you adapt the file to your own bank's file?

If so you might have made an error there. It seems the script is trying to trim a nil value (perhaps a column is missing).</description>
      <pubDate>Tue, 29 Jan 2008 10:26:15 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:4ea72775-4044-4611-9ae6-9478b7af77c5</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-201</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by Bart ten Brinke</title>
      <description>It sounds like either your cvs file is no good, or you have found something that the parser trips over. Could you determine the exact line on which it errors?</description>
      <pubDate>Tue, 29 Jan 2008 09:01:39 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:09b2c2f4-dde6-4b00-a2fd-b764f84f604d</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-200</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by monti</title>
      <description>Hello all, thanks for your time.

I am using Leopard, ruby version 1.8.6 (2007-09-24 patchlevel 111).

I replaced trip by lstrip.rstrip but I received this other message:

a.rb:22: undefined method `lstrip' for nil:NilClass (NoMethodError)
	from a.rb:11:in `each'
	from a.rb:11


The only strange thing I have seen is this message when installing builder gem: 

sudo gem install builder
Successfully installed builder-2.1.2
Installing ri documentation for builder-2.1.2...
While generating documentation for builder-2.1.2
... MESSAGE:   Unhandled special: Special: type=17, text=""
... RDOC args: --ri --op /Library/Ruby/Gems/1.8/doc/builder-2.1.2/ri --title Builder -- Easy XML Building --main README --line-numbers --quiet lib CHANGES Rakefile README doc/releases/builder-1.2.4.rdoc doc/releases/builder-2.0.0.rdoc doc/releases/builder-2.1.1.rdoc
(continuing with the rest of the installation)
Installing RDoc documentation for builder-2.1.2...
</description>
      <pubDate>Mon, 28 Jan 2008 22:00:06 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:39bb02dd-b4e6-4a39-8534-b61f37b3b421</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-199</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by andre</title>
      <description>probably tiger issue... 
You can fix the error you have by replacing trim with lstrip.rstrip for a possible fix</description>
      <pubDate>Mon, 28 Jan 2008 21:18:38 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:32021166-7fb8-42a6-8444-f4077bb3f9c9</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-198</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by Bart ten Brinke</title>
      <description>Monti: Are you using Tiger or Leopard? If Tiger, update ruby to 1.8.5. But your exception is probably caused by the gem not being installed, which could be caused by an old ruby version.</description>
      <pubDate>Mon, 28 Jan 2008 20:09:32 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:f2166451-9d76-4fb0-a362-2be63ae80bae</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-197</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by monti</title>
      <description>Hello Andre,

I have no idea about ruby, but very interested in the csv to qfx converter for cha-ching.

I installed both gems but when running the script I received an 

csv2qfx.rb:22: undefined method `trim' for nil:NilClass (NoMethodError)
	from csv2qfx.rb:11:in `each'
	from csv2qfx.rb:11

I would appreciate some help on this.

Thanks in advance.
Javi
</description>
      <pubDate>Mon, 28 Jan 2008 18:36:01 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:b16baf53-f601-4059-9e27-85327142ae63</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-196</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by Andre Foeken</title>
      <description>ouch tnx! I always make that same mistake! And I don't even use CVS :)</description>
      <pubDate>Thu, 24 Jan 2008 18:18:35 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:0eda51e2-fc99-4f63-b1c0-ac436a623d37</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-195</link>
    </item>
    <item>
      <title>"Cha-Ching and dutch banks" by pjm</title>
      <description>article.gsub(/CVS/i,"CSV")

Or something like that...</description>
      <pubDate>Wed, 23 Jan 2008 23:37:34 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:6fa0272d-f25b-40d1-9518-3fd867d7963d</guid>
      <link>http://www.movesonrails.com/articles/2008/01/23/cha-ching-and-dutch-banks#comment-194</link>
    </item>
  </channel>
</rss>
