<?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>Shey's Rebellion &#187; Projects</title>
	<atom:link href="http://www.sheysrebellion.net/blog/category/projects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sheysrebellion.net/blog</link>
	<description>I sleep with pillows on my head.</description>
	<lastBuildDate>Fri, 22 Jan 2010 00:10:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Moneytracking API, Ruby, Mash and HTTParty</title>
		<link>http://www.sheysrebellion.net/blog/2009/10/11/moneytracking-api-ruby-mash-and-httparty/</link>
		<comments>http://www.sheysrebellion.net/blog/2009/10/11/moneytracking-api-ruby-mash-and-httparty/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 21:45:00 +0000</pubDate>
		<dc:creator>Sheheryar Sewani</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[moneytracking]]></category>

		<guid isPermaLink="false">http://www.sheysrebellion.net/blog/2009/10/11/moneytracking-api-ruby-mash-and-httparty/</guid>
		<description><![CDATA[Moneytrackin is a cool online accounting application that lets you track expenses and income, unlike other accounting applications it lets you add tags to each transactions. I love it!&#160; Tagging transactions makes it easier to track exactly where my money is going; not only can I see how much money I’ve spent on junk food [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://www.moneytrackin.com">Moneytrackin</a> is a cool online accounting application that lets you track expenses and income, unlike other accounting applications it lets you add tags to each transactions. I love it!&#160; Tagging transactions makes it easier to track exactly where my money is going; not only can I see how much money I’ve spent on junk food but also at which store, and all without having to explicitly create an account for that store.</p>
<p>Unfortunately Moneytracking has an annoying limitation which prevents you from tracking tags across accounts, so if you’re buying junk food with cash and credit tagging loses it appeal.&#160; Luckily, they provide an API which will allow us to easily get around the tagging limitation programmatically.&#160; </p>
<p>I can imagine some pretty cool analytics and infographics coming out of 6 months of data so I wrote <a href="http://code.google.com/p/moenytrackin/wiki/MoneyTrackin">Moneytrackin.rb</a>, a Ruby interface to the MoneyTrackin API.&#160; It exposes easy-to-use methods to interact with your Moneytrackin account. While it only implements the methods exposed by their API but I intend to add more functionality like tag searches across all accounts soon, imagine piping an amounte-weighted stream of tags to wordle!</p>
<p>With two gems, HTTParty and Mash, I was easily able to create the client interface.&#160; I included the HTTParty module within connection class and it gave it a &quot;get&quot; method that retrieves data over HTTP.&#160;&#160; Usage is simple:</p>
<pre class="csharpcode">response = self.<span class="kwrd">class</span>.<span class="kwrd">get</span>(self.<span class="kwrd">class</span>.base_uri + '/listProjects/')</pre>
<style type="text/css">
.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }</style>
<p>Then I passed the response to Mash which converts the XML response into a hash that acts more like a an object., it also also recursively descends down the response converting hashes into Mashes making it easy to get the transactions and the tags associated with them.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li><a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.sheysrebellion.net%2Fblog%2F2009%2F10%2F11%2Fmoneytracking-api-ruby-mash-and-httparty%2F&amp;title=Moneytracking%20API%2C%20Ruby%2C%20Mash%20and%20HTTParty" title="del.icio.us"><img src="http://www.sheysrebellion.net/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.sheysrebellion.net%2Fblog%2F2009%2F10%2F11%2Fmoneytracking-api-ruby-mash-and-httparty%2F&amp;title=Moneytracking%20API%2C%20Ruby%2C%20Mash%20and%20HTTParty" title="Reddit"><img src="http://www.sheysrebellion.net/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.sheysrebellion.net%2Fblog%2F2009%2F10%2F11%2Fmoneytracking-api-ruby-mash-and-httparty%2F&amp;t=Moneytracking%20API%2C%20Ruby%2C%20Mash%20and%20HTTParty" title="Facebook"><img src="http://www.sheysrebellion.net/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.sheysrebellion.net%2Fblog%2F2009%2F10%2F11%2Fmoneytracking-api-ruby-mash-and-httparty%2F" title="Identi.ca"><img src="http://www.sheysrebellion.net/blog/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" href="http://twitter.com/home?status=http%3A%2F%2Fwww.sheysrebellion.net%2Fblog%2F2009%2F10%2F11%2Fmoneytracking-api-ruby-mash-and-httparty%2F" title="TwitThis"><img src="http://www.sheysrebellion.net/blog/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sheysrebellion.net/blog/2009/10/11/moneytracking-api-ruby-mash-and-httparty/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Historical quotes from Karachi Stock Exchange</title>
		<link>http://www.sheysrebellion.net/blog/2009/02/12/historical-quotes-from-karachi-stock-exchange/</link>
		<comments>http://www.sheysrebellion.net/blog/2009/02/12/historical-quotes-from-karachi-stock-exchange/#comments</comments>
		<pubDate>Thu, 12 Feb 2009 11:26:00 +0000</pubDate>
		<dc:creator>Sheheryar Sewani</dc:creator>
				<category><![CDATA[Pakistan]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[kse]]></category>
		<category><![CDATA[nemo]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.sheysrebellion.net/blog/2009/02/12/historical-quotes-from-karachi-stock-exchange/</guid>
		<description><![CDATA[Trading in the Karachi Stock Exchange has picked up since the KSE reopened late last year. If you’re trading or investing in the KSE and you want to track your positions then you’ll find a script I created helpful.
Nemo is a Perl script which downloads historical quotes from the Karachi Stock Exchange web site and [...]]]></description>
			<content:encoded><![CDATA[<p><del datetime="2009-02-19T14:25:22+00:00">Trading in the Karachi Stock Exchange has picked up since the KSE reopened late last year. If you’re trading or investing in the KSE and you want to track your positions then you’ll find a script I created helpful.</p>
<p><a href="http://code.google.com/p/ksenemo/">Nemo</a> is a Perl script which downloads historical quotes from the Karachi Stock Exchange web site and saves them to a CSV file which you can open in excel, all you have to do is tell the script which month and year to download the quotes for.</p>
<p>Instructions on how to set up and use the script are available on project’s <a href="http://code.google.com/p/ksenemo/wiki/nemo">wiki</a>, you can download the initial release from the project <a href="http://code.google.com/p/ksenemo/downloads/">download</a> page.</del></p>
<p>Sorry guys, had to take it down.</p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li><a rel="nofollow" href="http://del.icio.us/post?url=http%3A%2F%2Fwww.sheysrebellion.net%2Fblog%2F2009%2F02%2F12%2Fhistorical-quotes-from-karachi-stock-exchange%2F&amp;title=Historical%20quotes%20from%20Karachi%20Stock%20Exchange" title="del.icio.us"><img src="http://www.sheysrebellion.net/blog/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.sheysrebellion.net%2Fblog%2F2009%2F02%2F12%2Fhistorical-quotes-from-karachi-stock-exchange%2F&amp;title=Historical%20quotes%20from%20Karachi%20Stock%20Exchange" title="Reddit"><img src="http://www.sheysrebellion.net/blog/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.sheysrebellion.net%2Fblog%2F2009%2F02%2F12%2Fhistorical-quotes-from-karachi-stock-exchange%2F&amp;t=Historical%20quotes%20from%20Karachi%20Stock%20Exchange" title="Facebook"><img src="http://www.sheysrebellion.net/blog/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" href="http://identi.ca/notice/new?status_textarea=http%3A%2F%2Fwww.sheysrebellion.net%2Fblog%2F2009%2F02%2F12%2Fhistorical-quotes-from-karachi-stock-exchange%2F" title="Identi.ca"><img src="http://www.sheysrebellion.net/blog/wp-content/plugins/sociable/images/identica.png" title="Identi.ca" alt="Identi.ca" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" href="http://twitter.com/home?status=http%3A%2F%2Fwww.sheysrebellion.net%2Fblog%2F2009%2F02%2F12%2Fhistorical-quotes-from-karachi-stock-exchange%2F" title="TwitThis"><img src="http://www.sheysrebellion.net/blog/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sheysrebellion.net/blog/2009/02/12/historical-quotes-from-karachi-stock-exchange/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
