<?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>The Free Geek &#187; General</title>
	<atom:link href="http://freegeek.in/blog/category/general/feed/" rel="self" type="application/rss+xml" />
	<link>http://freegeek.in/blog</link>
	<description>The Chronicles of Nerd-nia</description>
	<lastBuildDate>Fri, 03 Jun 2011 05:15:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Clojure Protocols &amp; Datatypes &#8212; A sneak peek</title>
		<link>http://freegeek.in/blog/2010/05/clojure-protocols-datatypes-a-sneak-peek/</link>
		<comments>http://freegeek.in/blog/2010/05/clojure-protocols-datatypes-a-sneak-peek/#comments</comments>
		<pubDate>Mon, 31 May 2010 13:06:58 +0000</pubDate>
		<dc:creator>Baishampayan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[clojure]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[functional programming]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freegeek.in/blog/?p=91</guid>
		<description><![CDATA[Clojure 1.2 introduces two very remarkable features &#8211; Protocols and Datatypes. Clojure is defined in terms of abstractions and various implementations of those abstractions. For example, vectors, maps, lists, sets in Clojure implement the sequence abstraction which lets us treat any of those data structures as sequences. Until recently it was not possible feasible to [...]]]></description>
			<content:encoded><![CDATA[<p>Clojure 1.2 introduces two very remarkable features &#8211; <a href="http://clojure.org/protocols">Protocols</a> and <a href="http://clojure.org/datatypes">Datatypes</a>. Clojure is defined in terms of abstractions and various implementations of those abstractions. For example, vectors, maps, lists, sets in Clojure implement the sequence abstraction which lets us treat any of those data structures as sequences.<br />
Until recently it was not <del datetime="2010-06-02T03:21:30+00:00">possible</del> <ins datetime="2010-06-02T03:21:30+00:00">feasible</ins> to define and implement such core abstractions in Clojure itself; one had to drop down to Java (or C#) for those tasks, but not anymore <img src='http://freegeek.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Clojure 1.2 now has excellent facilities for defining and implementing similar abstractions in a highly dynamic manner while maintaining fantastic performance characteristics.<br />
In this post, I will give you a brief overview of these new features and will show you how they are useful.</p>
<p><strong>Protocols</strong></p>
<p>Protocols in Clojure are similar to Java Interfaces, though not quite. Basically a protocol is a contract, a set of functionalities without any implementation. Let&#8217;s consider a simple protocol &#8211;</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>defprotocol Fly
  <span style="color: #ff0000;">&quot;A simple protocol for flying&quot;</span>
  <span style="color: #66cc66;">&#40;</span>fly <span style="color: #66cc66;">&#91;</span>this<span style="color: #66cc66;">&#93;</span> <span style="color: #ff0000;">&quot;Method to fly&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>So here we have a trivial protocol Fly which declares a method fly which takes one argument &#8216;this&#8217; (which is actually the type implementing the protocol itself). In case of all methods defined via Protocols, the first argument is always the implementing type itself. The name &#8216;this&#8217; is just a convention; it could be &#8216;self&#8217;, etc. or anything.</p>
<p>When we declared the Fly protocol, two new vars were created. One is &#8216;Fly&#8217;, the protocol itself, and the other is &#8216;fly&#8217; which is a polymorphic function that will get called when we execute it on an implementation of Fly.</p>
<p>Right now, if you try to execute the method &#8216;fly&#8217; on any object, you will get an exception because no types are implementing that protocol yet, which brings us to the next topic, DataTypes.</p>
<p><strong>DataTypes</strong></p>
<p>Traditionally in Clojure whenever we wanted to have some kind of record or a property-only Class, we used maps or struct-maps. Those serve the purpose perfectly well in most cases but the problem was that those maps didn&#8217;t have any type information attached to them. As a result, we had to put some extra keys in maps to help us determine the type of a record before we could dispatch methods. There were some obvious performance limitations too; being vanilla maps, they were never as fast as Plain Old Java Objects (POJOs). Enter <a href="http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/deftype">deftype</a> and its cousin <a href="http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/defrecord">defrecord</a>.</p>
<p>In Clojure 1.2 we can define our own types using defrecord like this -</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>defrecord Bird <span style="color: #66cc66;">&#91;</span>nom species<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>Boom! We have a custom type, Bird with two fields, name and species. We can now instantiate a Bird like this -</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>def crow <span style="color: #66cc66;">&#40;</span>Bird<span style="color: #66cc66;">.</span> <span style="color: #ff0000;">&quot;Crow&quot;</span> <span style="color: #ff0000;">&quot;Corvus corax&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>We can access the fields of the Bird instance by treating it like<br />
a normal map -</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;">user› <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">:</span><span style="color: #555;">nom</span> crow<span style="color: #66cc66;">&#41;</span>
<span style="color: #ff0000;">&quot;Crow&quot;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;">user› <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">:</span><span style="color: #555;">species</span> crow<span style="color: #66cc66;">&#41;</span>
<span style="color: #ff0000;">&quot;Corvus corax&quot;</span></pre></div></div>

<p>We can also add/remove/modify keys in a record like we would do with a<br />
normal map.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>def sparrow <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">assoc</span> crow <span style="color: #66cc66;">:</span><span style="color: #555;">nom</span> <span style="color: #ff0000;">&quot;Sparrow&quot;</span> <span style="color: #66cc66;">:</span><span style="color: #555;">species</span> <span style="color: #ff0000;">&quot;Passer domesticus&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>This will create a new immutable instance of Bird with different data. Note that since Clojure records are persistent and immutable, the original crow instance is not affected.</p>
<p>Now to make the Bird fly. We already have a protocol called Fly. We need to implement the protocol so that our birds can actually fly. One way to do that is to put the protocol implementation inline with the record definition itself -</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>defrecord Bird <span style="color: #66cc66;">&#91;</span>nom species<span style="color: #66cc66;">&#93;</span>
  Fly
  <span style="color: #66cc66;">&#40;</span>fly <span style="color: #66cc66;">&#91;</span>this<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#40;</span>str <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">:</span><span style="color: #555;">nom</span> this<span style="color: #66cc66;">&#41;</span> <span style="color: #ff0000;">&quot; flies...&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>So easy, right? If we now create another instance of Bird, it will actually be able to fly -</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;">user› <span style="color: #66cc66;">&#40;</span>def kiwi <span style="color: #66cc66;">&#40;</span>Bird<span style="color: #66cc66;">.</span> <span style="color: #ff0000;">&quot;Kiwi&quot;</span> <span style="color: #ff0000;">&quot;Apteryx australis&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
#'user/kiwi
user› <span style="color: #66cc66;">&#40;</span>fly kiwi<span style="color: #66cc66;">&#41;</span>
<span style="color: #ff0000;">&quot;Kiwi flies...&quot;</span></pre></div></div>

<p>Great! But what happens to the Crow, and Sparrow? We created those instances when the Bird record didn&#8217;t have any implementation of the Fly protocol. You might face similar issues when you don&#8217;t have control over the code which defines the record/class. You will need to extend those types dynamically with implementation of a protocol. Enter <a href="http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/extend-type">extend-type</a>. extend-type (and its cousin <a href="http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/extend-protocol">extend-protocol</a>) allows us to implement protocols on pre-existing types. Consider the following example -</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>defprotocol Walk
  <span style="color: #ff0000;">&quot;A simple protocol to make birds walk&quot;</span>
  <span style="color: #66cc66;">&#40;</span>walk <span style="color: #66cc66;">&#91;</span>this<span style="color: #66cc66;">&#93;</span> <span style="color: #ff0000;">&quot;Birds want to walk too!&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>extend-type Bird
  Walk
  <span style="color: #66cc66;">&#40;</span>walk <span style="color: #66cc66;">&#91;</span>this<span style="color: #66cc66;">&#93;</span> <span style="color: #66cc66;">&#40;</span>str <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">:</span><span style="color: #555;">nom</span> this<span style="color: #66cc66;">&#41;</span> <span style="color: #ff0000;">&quot; walks too...&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>We just added an implementation of the Walk protocol to the existing type Bird. All new Bird instances created from now on will be able to Walk and Fly.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;">user› <span style="color: #66cc66;">&#40;</span>def hummingbird <span style="color: #66cc66;">&#40;</span>Bird<span style="color: #66cc66;">.</span> <span style="color: #ff0000;">&quot;Hummingbird&quot;</span> <span style="color: #ff0000;">&quot;Selasphorus rufus&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
user› <span style="color: #66cc66;">&#40;</span>fly hummingbird<span style="color: #66cc66;">&#41;</span>
<span style="color: #ff0000;">&quot;Hummingbird flies...&quot;</span>
user› <span style="color: #66cc66;">&#40;</span>walk hummingbird<span style="color: #66cc66;">&#41;</span>
<span style="color: #ff0000;">&quot;Hummingbird walks too...&quot;</span></pre></div></div>

<p>Cool, right? At times you might require a anonymous  object which implements some protocol or interface. You could utilise those objects in cases where you just need an object which implements a given protocol but you don&#8217;t care about its type. Clojure 1.2 gives you <a href="http://richhickey.github.com/clojure/clojure.core-api.html#clojure.core/reify">reify</a>. reify allows us to create one-off anonymous objects which implement one or more protocols.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;">user› <span style="color: #66cc66;">&#40;</span>fly <span style="color: #66cc66;">&#40;</span>reify Fly <span style="color: #66cc66;">&#40;</span>fly <span style="color: #66cc66;">&#91;</span>_<span style="color: #66cc66;">&#93;</span> <span style="color: #ff0000;">&quot;Swine flu...&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #ff0000;">&quot;Swine flu...&quot;</span></pre></div></div>

<p>Woah! Clojure can make Pigs fly <img src='http://freegeek.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Jokes apart, what we just did was very interesting. We just created an anonymous type which implements the Fly protocol and called the fly method on it; and it flu[sic] <img src='http://freegeek.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>We could implement multiple protocols in the same reify statement too,<br />
like this -</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>def pig <span style="color: #66cc66;">&#40;</span>reify
                Fly <span style="color: #66cc66;">&#40;</span>fly <span style="color: #66cc66;">&#91;</span>_<span style="color: #66cc66;">&#93;</span> <span style="color: #ff0000;">&quot;Swine flu...&quot;</span><span style="color: #66cc66;">&#41;</span>
                Walk <span style="color: #66cc66;">&#40;</span>walk <span style="color: #66cc66;">&#91;</span>_<span style="color: #66cc66;">&#93;</span> <span style="color: #ff0000;">&quot;Pig-man walking...&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
user› <span style="color: #66cc66;">&#40;</span>fly pig<span style="color: #66cc66;">&#41;</span>
<span style="color: #ff0000;">&quot;Swine flu...&quot;</span>
user› <span style="color: #66cc66;">&#40;</span>walk pig<span style="color: #66cc66;">&#41;</span>
<span style="color: #ff0000;">&quot;Pig-man walking...&quot;</span></pre></div></div>

<p>Beautiful. reify is quite similar to proxy and it is now recommended to use reify instead of proxy wherever possible because reify is much faster than proxy.</p>
<p>Before I finish off, let me explain the differences between defrecord and deftype. defrecord creates a new type and implements a few core Clojure interfaces like that of the persistent map, hashcode, keyword accessors, etc. If you are using deftype, Clojure will not implicitly implement any interface not provided by the user. In short, if you are using deftype, you will have to implement your own accessors, hashcode, etc. In most cases defrecord should suffice, but in other cases like when you need mutable fields, use deftype.</p>
<p>There is some in-depth explanation of Protocols and Datatypes on the <a href="http://clojure.org/">Clojure website</a> which you should consult if you need more information.</p>
<p><strong>Bonus Material</strong></p>
<p>Making Java Strings fly and walk <img src='http://freegeek.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;">user› <span style="color: #66cc66;">&#40;</span>extend-type java<span style="color: #66cc66;">.</span>lang<span style="color: #66cc66;">.</span>String
                   Fly <span style="color: #66cc66;">&#40;</span>fly <span style="color: #66cc66;">&#91;</span>this<span style="color: #66cc66;">&#93;</span> <span style="color: #ff0000;">&quot;See me fly?&quot;</span><span style="color: #66cc66;">&#41;</span>
                   Walk <span style="color: #66cc66;">&#40;</span>walk <span style="color: #66cc66;">&#91;</span>this<span style="color: #66cc66;">&#93;</span> <span style="color: #ff0000;">&quot;Yes, that's me walking!&quot;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #b1b100;">nil</span>
user› <span style="color: #66cc66;">&#40;</span>walk <span style="color: #ff0000;">&quot;foo&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #ff0000;">&quot;Yes, that's me walking!&quot;</span>
user› <span style="color: #66cc66;">&#40;</span>fly <span style="color: #ff0000;">&quot;bar&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #ff0000;">&quot;See me fly?&quot;</span></pre></div></div>

<p>PS &#8211; I wrote this today because I was sitting at home, sick. There are possibly some mistakes in this post; in which case, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://freegeek.in/blog/2010/05/clojure-protocols-datatypes-a-sneak-peek/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>Clojure Course in Pune</title>
		<link>http://freegeek.in/blog/2010/05/clojure-course-in-pune/</link>
		<comments>http://freegeek.in/blog/2010/05/clojure-course-in-pune/#comments</comments>
		<pubDate>Thu, 27 May 2010 12:21:14 +0000</pubDate>
		<dc:creator>Baishampayan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[clojure]]></category>
		<category><![CDATA[pune]]></category>

		<guid isPermaLink="false">http://freegeek.in/blog/?p=89</guid>
		<description><![CDATA[There is a possibility of me conducting a Clojure course/workshop in Pune. In the course I will cover Clojure from ground up, teaching how to build real-world applications in Clojure. If you are (or your friend is) interested, please take part in this short survey which will help me understand what is needed.]]></description>
			<content:encoded><![CDATA[<p>There is a possibility of me conducting a Clojure course/workshop in Pune. In the course I will cover Clojure from ground up, teaching how to build real-world applications in Clojure.</p>
<p>If you are (or your friend is) interested, please take part in <a href="http://pune.clojure.in/">this short survey</a> which will help me understand what is needed.</p>
]]></content:encoded>
			<wfw:commentRss>http://freegeek.in/blog/2010/05/clojure-course-in-pune/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Slides from my Clojure talk at GNUnify 2010</title>
		<link>http://freegeek.in/blog/2010/02/slides-from-my-clojure-talk-at-gnunify-2010/</link>
		<comments>http://freegeek.in/blog/2010/02/slides-from-my-clojure-talk-at-gnunify-2010/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 07:51:42 +0000</pubDate>
		<dc:creator>Baishampayan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[clojure]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[functional programming]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[talk]]></category>

		<guid isPermaLink="false">http://freegeek.in/blog/?p=86</guid>
		<description><![CDATA[I gave an intro talk about Clojure at GNUnify 2010, Pune today. It was supposed to be a very basic talk on Clojure aimed at Java programmers. Here are the slides - Introduction to Clojure View more presentations from Baishampayan Ghose.]]></description>
			<content:encoded><![CDATA[<p>I gave an intro talk about Clojure at <a href="http://gnunify.in/">GNUnify 2010</a>, Pune today. It was supposed to be a very basic talk on Clojure aimed at Java programmers. Here are the slides -</p>
<div id="__ss_3214693" style="width: 425px; text-align: left;"><a style="font: 14px Helvetica,Arial,Sans-serif; display: block; margin: 12px 0 3px 0; text-decoration: underline;" title="Introduction to Clojure" href="http://www.slideshare.net/zaph0d/introduction-to-clojure">Introduction to Clojure</a><object style="margin: 0px;" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="355" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="src" value="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=clojure-100218040639-phpapp01&amp;rel=0&amp;stripped_title=introduction-to-clojure" /><param name="allowfullscreen" value="true" /><embed style="margin: 0px;" type="application/x-shockwave-flash" width="425" height="355" src="http://static.slidesharecdn.com/swf/ssplayer2.swf?doc=clojure-100218040639-phpapp01&amp;rel=0&amp;stripped_title=introduction-to-clojure" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<div style="font-size: 11px; font-family: tahoma,arial; height: 26px; padding-top: 2px;">View more <a style="text-decoration: underline;" href="http://www.slideshare.net/">presentations</a> from <a style="text-decoration: underline;" href="http://www.slideshare.net/zaph0d">Baishampayan Ghose</a>.</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://freegeek.in/blog/2010/02/slides-from-my-clojure-talk-at-gnunify-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Downloading a bunch of files in parallel using Clojure Agents</title>
		<link>http://freegeek.in/blog/2009/10/downloading-a-bunch-of-files-in-parallel-using-clojure-agents/</link>
		<comments>http://freegeek.in/blog/2009/10/downloading-a-bunch-of-files-in-parallel-using-clojure-agents/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 08:24:49 +0000</pubDate>
		<dc:creator>Baishampayan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[agents]]></category>
		<category><![CDATA[clojure]]></category>
		<category><![CDATA[functional]]></category>
		<category><![CDATA[functional programming]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://freegeek.in/blog/?p=80</guid>
		<description><![CDATA[I suddenly needed to download around 3000 files from the Internet. I had the urls in a sequence and I was thinking about a nice way to download the files in parallel. The idea of using Clojure Agents came naturally to my mind and I was thinking about writing an Agent based HTTP client in [...]]]></description>
			<content:encoded><![CDATA[<p>I suddenly needed to download around 3000 files from the Internet. I had the urls in a sequence and I was thinking about a nice way to download the files in parallel.</p>
<p>The idea of using <a title="Clojure" href="http://clojure.org/">Clojure</a> <a title="Clojure Agents" href="http://clojure.org/agents">Agents</a> came naturally to my mind and I was thinking about writing an Agent based HTTP client in Clojure. I asked around on the Clojure IRC channel and the very helpful Stuart Sierra pointed me towards <a href="http://richhickey.github.com/clojure-contrib/http.agent-api.html">clojure.contrib.http.agent<br />
</a><br />
Indeed, c.c.http.agent seemed to be exactly what I had in my mind <img src='http://freegeek.in/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The API seemed to be straightforward enough and I got cracking immediately. I came up with something like this &#8211;</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">;;; downloader.clj -- Parallel Downloader -*- Clojure -*-</span>
<span style="color: #808080; font-style: italic;">;;; Time-stamp: &quot;2009-10-06 13:38:57 ghoseb&quot;</span>
<span style="color: #808080; font-style: italic;">;;; Author: Baishampayan Ghose </span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>ns downloader
  <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">:</span><span style="color: #555;">require</span> <span style="color: #66cc66;">&#91;</span>clojure<span style="color: #66cc66;">.</span>contrib<span style="color: #66cc66;">.</span>http<span style="color: #66cc66;">.</span>agent <span style="color: #66cc66;">:</span><span style="color: #555;">as</span> h<span style="color: #66cc66;">&#93;</span>
            <span style="color: #66cc66;">&#91;</span>clojure<span style="color: #66cc66;">.</span>contrib<span style="color: #66cc66;">.</span>duck-streams <span style="color: #66cc66;">:</span><span style="color: #555;">as</span> d<span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
A vector of vectors containing the file <span style="color: #b1b100;">name</span> <span style="color: #b1b100;">and</span> the URL
<span style="color: #66cc66;">&#40;</span>def url-data <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;file1&quot;</span> <span style="color: #ff0000;">&quot;http://some.domain/file1.xml&quot;</span><span style="color: #66cc66;">&#93;</span>
               <span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">&quot;file2&quot;</span> <span style="color: #ff0000;">&quot;http://some.domain/file2.xml&quot;</span><span style="color: #66cc66;">&#93;</span>
               <span style="color: #808080; font-style: italic;">; Many many more :)</span>
               <span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>defn download
  <span style="color: #ff0000;">&quot;Download the data in the given URL using HTTP Agents
   Args:
     file-name - The file name to save the data in
     url - The URL to fetch
  &quot;</span>
  <span style="color: #66cc66;">&#91;</span>file-<span style="color: #b1b100;">name</span> url<span style="color: #66cc66;">&#93;</span>
  <span style="color: #66cc66;">&#40;</span>h/http-agent url
                <span style="color: #66cc66;">:</span><span style="color: #555;">handler</span> <span style="color: #66cc66;">&#40;</span>fn <span style="color: #66cc66;">&#91;</span>agnt<span style="color: #66cc66;">&#93;</span>
                           <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">let</span> <span style="color: #66cc66;">&#91;</span>fname file-<span style="color: #b1b100;">name</span><span style="color: #66cc66;">&#93;</span>  <span style="color: #808080; font-style: italic;">; File name in a closure</span>
                             <span style="color: #66cc66;">&#40;</span>with-open <span style="color: #66cc66;">&#91;</span>w <span style="color: #66cc66;">&#40;</span>d/writer fname<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
                               <span style="color: #66cc66;">&#40;</span>d/copy <span style="color: #66cc66;">&#40;</span>h/stream agnt<span style="color: #66cc66;">&#41;</span> w<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>defn download-all
  <span style="color: #ff0000;">&quot;Download all the URLs
   Args:
     url-data - A vector of vectors containing the file name and the url
  &quot;</span>
  <span style="color: #66cc66;">&#91;</span>url-data<span style="color: #66cc66;">&#93;</span>
  <span style="color: #66cc66;">&#40;</span>doseq <span style="color: #66cc66;">&#91;</span><span style="color: #66cc66;">&#91;</span>file-<span style="color: #b1b100;">name</span> url<span style="color: #66cc66;">&#93;</span> url-data<span style="color: #66cc66;">&#93;</span>
    <span style="color: #66cc66;">&#40;</span>download file-<span style="color: #b1b100;">name</span> url<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>download-all url-data<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>This looked fine and worked with a small set of urls. But when I ran it on the full-blown set of URLs, the server bailed out because of too many concurrent requests. The reason being the fact that http.agent uses send-off to dispatch action to the agents and send-off can end up using a potentially very large thread-pool.</p>
<p>Surely I needed to somehow make sure that only a limited number of files are downloaded in parallel and start downloading more when those are done.</p>
<p>To achieve that, I did this &#8211;</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span>def partitioned-data <span style="color: #66cc66;">&#40;</span>partition <span style="color: #cc66cc;">15</span> url-data<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">;; 15 being the max parallel downloads</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>defn download-all2
  <span style="color: #ff0000;">&quot;Download all the files, step by step
   Args:
     p-url-data - Partitioned url data
  &quot;</span>
  <span style="color: #66cc66;">&#91;</span>p-url-data<span style="color: #66cc66;">&#93;</span>
  <span style="color: #66cc66;">&#40;</span>doseq <span style="color: #66cc66;">&#91;</span>url-data p-url-data<span style="color: #66cc66;">&#93;</span>
    <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">let</span> <span style="color: #66cc66;">&#91;</span>agnts <span style="color: #66cc66;">&#40;</span>map #<span style="color: #66cc66;">&#40;</span>download <span style="color: #66cc66;">&#40;</span>first <span style="color: #66cc66;">%</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>second <span style="color: #66cc66;">%</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> url-data<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#93;</span>
      <span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">apply</span> await agnts<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">; Wait till the agents finish</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span>download-all2 partitioned-data<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>What did I just do? I simply partitioned the data set by the number of parallel downloads I wanted to do, and then modified the download-all function to take the partitioned data, dispatch agents on one partition and wait for them to finish, and then move on to the next partition.</p>
<p>Simple, yet very beautiful.</p>
]]></content:encoded>
			<wfw:commentRss>http://freegeek.in/blog/2009/10/downloading-a-bunch-of-files-in-parallel-using-clojure-agents/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Follow your twitter followers</title>
		<link>http://freegeek.in/blog/2008/10/follow-your-twitter-followers/</link>
		<comments>http://freegeek.in/blog/2008/10/follow-your-twitter-followers/#comments</comments>
		<pubDate>Fri, 17 Oct 2008 16:00:47 +0000</pubDate>
		<dc:creator>Baishampayan</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://g33k.wordpress.com/2008/10/17/follow-your-twitter-followers/</guid>
		<description><![CDATA[Now you can follow back your followers on Twitter, thanks to https://followtwits.appspot.com/ Posted by email from Baishampayan&#8217;s Posterous]]></description>
			<content:encoded><![CDATA[<p>Now you can follow back your followers on Twitter, thanks to <br /> <a href="https://followtwits.appspot.com/">https://followtwits.appspot.com/</a>
<p style="font-size:10px;"><a href='http://posterous.com'>Posted by email</a> from <a href="http://ghoseb.posterous.com/follow-your-twitter-followers">Baishampayan&#8217;s Posterous</a></p>
]]></content:encoded>
			<wfw:commentRss>http://freegeek.in/blog/2008/10/follow-your-twitter-followers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Stupidity Assurance</title>
		<link>http://freegeek.in/blog/2008/10/stupidity-assurance/</link>
		<comments>http://freegeek.in/blog/2008/10/stupidity-assurance/#comments</comments>
		<pubDate>Fri, 10 Oct 2008 11:06:01 +0000</pubDate>
		<dc:creator>Baishampayan</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://g33k.wordpress.com/2008/10/10/stupidity-assurance/</guid>
		<description><![CDATA[via http://dilbert.com/strips/comic/2008-10-10/ Posted by email from Baishampayan&#8217;s Posterous]]></description>
			<content:encoded><![CDATA[<p><a href="http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/20000/2000/200/27576/27576.strip.gif"><img src="http://dilbert.com/dyn/str_strip/000000000/00000000/0000000/000000/20000/2000/200/27576/27576.strip.gif" width='500' height='155' /></a> </p>
<p> via <a href="http://dilbert.com/strips/comic/2008-10-10/">http://dilbert.com/strips/comic/2008-10-10/</a>
<p style="font-size:10px;"><a href='http://posterous.com'>Posted by email</a> from <a href="http://ghoseb.posterous.com/stupidity-assurance">Baishampayan&#8217;s Posterous</a></p>
]]></content:encoded>
			<wfw:commentRss>http://freegeek.in/blog/2008/10/stupidity-assurance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The oTeam Lunch Outing</title>
		<link>http://freegeek.in/blog/2008/10/the-oteam-lunch-outing/</link>
		<comments>http://freegeek.in/blog/2008/10/the-oteam-lunch-outing/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 15:29:29 +0000</pubDate>
		<dc:creator>Baishampayan</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://g33k.wordpress.com/2008/10/09/the-oteam-lunch-outing/</guid>
		<description><![CDATA[Photos taken at the oTeam Lunch Outing. See and download the full gallery on posterous Posted by email from Baishampayan&#8217;s Posterous]]></description>
			<content:encoded><![CDATA[<p>Photos taken at the oTeam Lunch Outing.
</p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/PDSEsaKIhMEnov6p6xbBtn3bpWQje1HKprpx9PpckKLPQylb0OYvE9pjSv62/DSC_4688.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/4eZ0rJbj469Lsqn2qAMK4UiKJcE9chYPbeWAeR1QrA0094SC0mTOeFIx5cri/DSC_4688.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/O3S8xjd54uk8TJWCYbXren2pcX70zk5RoQV0HQZsD6cDVklopoEcgDyu7xVs/DSC_4689.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/nIsfGXm3Bnaf70fyrFX2uCoXwX9YTEBFxbwinksROX0J523ht5ySARkjrAN2/DSC_4689.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/OZ9kWZHUW0pwB64faqZC77JeIed7PRHfwWKEidj2ZyZFaKI0YegEsQL5DsXY/DSC_4690.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/GPdHjRsTcwSSmqoFaI77ektY7lZv3xRpUPeOHTbsXMYGjKfd60ixCChvBsfU/DSC_4690.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/kGI5wFc83u7I7lbc4pbHr8Sthp2Us4g6MkQ7tt5y4tdJBOCl9oepGDQ4Fr3k/DSC_4692.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/0NHaevE44JkSPesUnPRmJRZR9GvB0IqRaAcTZJfBHt6RdRTJSp8lGfffpWjO/DSC_4692.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/RMMqJhp82dE2YKJcjO7svSGXuSYdKXskhg7bllJ0nwL6PeFtAELciGUjtyHN/DSC_4693.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/OJUFBSAZAHxDiGkp9OHecTOtYEpWfqsJ8wPeQX8GxaTSNG8woc2W5knI7AUj/DSC_4693.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/gPhU81l42GQOe5JZWai2IyNdFS9OIF41PIUU4tIYtOZ2lg9VJbzux8XtHZxx/DSC_4694.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/xnoFe1GORVZPJJ37o935oywBgO7TZF23BOys05G75kMOJI4PMxWaZHxnnPSk/DSC_4694.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/k3w323EJp5hwtEhVeGj8ohOD4e4DoRW4TQX1TNRpRMjC07w2KpFlk4U3Iflx/DSC_4695.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/pso8GOZKYmxCzNK8Ks7N0kkUh8dTvP2zkl5CFydN1smyi2hKGdmaDVwfjb0G/DSC_4695.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/9VE8Oori9VdyqVUucaUYTZvpKICiVyy2ZreKaRaMX9Ipq69TbW7sYUxSz5yH/DSC_4697.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/pGDO90nfhPxO9aq0o67wH6B0FtTzfBTlBD0qLjooAGdyjB0Y2fivfjlncVCB/DSC_4697.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/o6N6POT4ce8BAHMOcdge6Pm3U4lh8KW6ySWuhMaSNaUkCkPPdRUi4yOBRhmP/DSC_4698.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/0pFkGEk7xsXew52I4pGHnska2glEMdQbcpsVPsxCBDEt0ErnTKe2bxWQSlwO/DSC_4698.jpg.scaled.500.jpg" width="357"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/qkeVP6TXFjAURmZ6Hx9v511KkYYPWE4ekbtqidXlSe2ZQgc3mgZ2hh5nbxGl/DSC_4699.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/68fm9lIwsq7DGNxs4ilH3vNK9xhsG3wmRaXyendN1In8jbIfQmHAjDPKHB4s/DSC_4699.jpg.scaled.500.jpg" width="356"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/oJBJ67cNPAUB5kiUI3NwQgDAmIGOghIvybPsekBwCcWvxsjrMHZMemzRjkJy/DSC_4700.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/0euPOF5aa2DdEtgep0AEgqU69DFnfcqisDpwvCGHsuju61vOSdIuNxaBsan2/DSC_4700.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/8WXY9s9Iq6uoFAXGPv5f8usvZa8Vrm9EgtryUDixnKWsGAZgLLjRgr2KHuWJ/DSC_4703.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/kFHtkNX54WgtwViXCtUbmNShfgljDKgiayNJHAJujEI6xiOzJSslG6HbpQXg/DSC_4703.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/RoGTSgR8so9On6ySyOHxX2nmFgQbsWISfYIDf0vhs3iQVpoFVznqGOODX0Hv/DSC_4709.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/D8BbbXi8NuoUzEqpmbrVr5WsHDd7fUgniPAhAqYJcbSGTmARWTo1SPGwiOu3/DSC_4709.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/q7dxAw8hYLeJGLDsZWXCpiMWdfIdxc5eOHrCzfHFn5tEtlPP2rJcwstzE4zN/DSC_4713.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/bXntCjl5InRQzfId6inTl3CLWqX0yjiPgpof2sgf7cQMx9NI6KgspkxhSXP8/DSC_4713.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/x1Og0iU7fmo8YeRDcFbs112mLAFvoTG6sEaR8JaliT29TNY4doKntdr5RHOT/DSC_4714.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/ACLyCmCs2ATAfI2px9bbmn79ScEHMUj6PKkDIQezExXa6VdlQbMIwcQ98hgN/DSC_4714.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/xhBlzwVUpWK2zhOEZoIyIEavYiP6nyo8Fg7k7xp4uHBMtpjAR4BmweewUD3L/DSC_4718.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/FxRg3THN6b2VWeAJqTvHhZ6MBuxJSdLpTM7tu3ZThTnlASQuFhTKjPxMhVly/DSC_4718.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/2XmMsywx5l6GZeFwRu30ao7Tr756qx190XG8NAzzCfCI3B3Ecz2fhvmTDAVE/DSC_4722.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/N0izQrXI6oLY1sbvQLtDaPbPducKiCNbjBQV3xBkzOSBtfb8MN4nx4djPjlg/DSC_4722.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/39LZK8xrd9sAdvNwVqjE1NyIHmgHM9NgTUEhmZNwm0rws8DmwR3db6OHPl7B/0DSC_4722.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/Clt7isY7DKb09eS1SvpblNi598b0cJIMtxSnvHitFzp7SAbCVDKNYiklgBoA/0DSC_4722.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/RrDIACWwRJfPz0T6FiWSF83YgETtGpBRaU8YQZsymc65SiroRhqvH0jjDF1i/DSC_4723.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/3EjsO1Dh0cGHLvZHHQ5roVoKdvLZFBnhDrgIe5fQaa9bjRBPaJhyrvzAeBmE/DSC_4723.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/48tdlfaZtGKXwdsZ1nFdcXB0WAeBvaaqMMFBJMXHSHPiyTuYAOUi4B9eO4UR/DSC_4726.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/clRzGrPJHVvQUYiASPoNMvyBOXsYeOsP2zd9eOq7Ty2fZKjumExaqLVuQqwj/DSC_4726.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/baMgnmhDNbIUgte4gIOFr1DSQPfeCJQvnQb7fMaDl1OEQIC2QWdPaX9ZJlBE/DSC_4729.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/CJUtAl7XMzNsAHMr96zaJ0pToue0Mjy1Niypuh0OnVzTkU1vrxMdicGIz60e/DSC_4729.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/8WQNhB7bqeuJqsTDDkHTrU04k1wD7BPKuUsNWR7DBfBerVLYMu2hWcKwTvce/DSC_4734.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/UaEFlmUMFrB8yvtGE7osyUYOY8AESIQZkb1YjMenWXtRJ91WtryXO1JZhQYJ/DSC_4734.jpg.scaled.500.jpg" width="500"/></a></p>
<p><a href='http://ghoseb.posterous.com/the-oteam-lunch-outing'>See and download the full gallery on posterous</a>
<p style="font-size:10px;"><a href='http://posterous.com'>Posted by email</a> from <a href="http://ghoseb.posterous.com/the-oteam-lunch-outing">Baishampayan&#8217;s Posterous</a></p>
]]></content:encoded>
			<wfw:commentRss>http://freegeek.in/blog/2008/10/the-oteam-lunch-outing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pirate of the Pirate Bay</title>
		<link>http://freegeek.in/blog/2008/10/pirate-of-the-pirate-bay/</link>
		<comments>http://freegeek.in/blog/2008/10/pirate-of-the-pirate-bay/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 07:21:22 +0000</pubDate>
		<dc:creator>Baishampayan</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://g33k.wordpress.com/2008/10/09/pirate-of-the-pirate-bay/</guid>
		<description><![CDATA[Ready to rip DVDs and seed torrents&#8230; Posted by email from Baishampayan&#8217;s Posterous]]></description>
			<content:encoded><![CDATA[<p>Ready to rip DVDs and seed torrents&#8230;
</p>
<p><a href='http://posterous.com/getfile/files.posterous.com/ghoseb/VBvXNWitJ3Egg9lK0E3D1B2HqHfiMaIKOuZmFAHHAGz1HjyzuEnvGAVU7vJk/pirate.jpg.scaled.1000.jpg'><img src="http://posterous.com/getfile/files.posterous.com/ghoseb/Zj9XXJGemRaTOLLz8z5pg2JlL40aM0Iubl3OX6nwlwFfyvGwPdY979foRS83/pirate.jpg.scaled.500.jpg" width="335"/></a></p>
<p style="font-size:10px;"><a href='http://posterous.com'>Posted by email</a> from <a href="http://ghoseb.posterous.com/pirate-of-the-pirate-bay">Baishampayan&#8217;s Posterous</a></p>
]]></content:encoded>
			<wfw:commentRss>http://freegeek.in/blog/2008/10/pirate-of-the-pirate-bay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DO NOT WANT!</title>
		<link>http://freegeek.in/blog/2008/04/do-not-want/</link>
		<comments>http://freegeek.in/blog/2008/04/do-not-want/#comments</comments>
		<pubDate>Tue, 29 Apr 2008 07:20:11 +0000</pubDate>
		<dc:creator>Baishampayan</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[bs]]></category>
		<category><![CDATA[Free Software]]></category>
		<category><![CDATA[hoax]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[stupid]]></category>

		<guid isPermaLink="false">http://g33k.wordpress.com/?p=33</guid>
		<description><![CDATA[Well the reason why I had to resurrect my old and unmaintained blog is that apparently, I have been nominated for the &#8220;Great Indian Developer Awards&#8221; in the &#8220;Top Committer&#8221; category. I had no idea about this until now as I have received no communication from the organisers regarding the awards and I have no [...]]]></description>
			<content:encoded><![CDATA[<p>Well the reason why I had to resurrect my old and unmaintained blog is that apparently, I have been nominated for the &#8220;<a href="http://developersummit.com/awards.html" target="_blank">Great Indian Developer Awards</a>&#8221; in the &#8220;Top Committer&#8221; category.</p>
<p>I had no idea about this until <a href="http://blogs.gnome.org/shres/2008/04/29/great-indian-developer-nomination/">now</a> as I have received no communication from the organisers regarding the awards and I have no idea how I got nominated.</p>
<p>And I think this is completely Bullshit.</p>
<p>I don&#8217;t see any reason how I can get nominated even though I haven&#8217;t been active in the <a href="http://www.gnu.org/philosophy/free-sw.html">Free Software </a>community since the last year or so.</p>
<p>I think there are <em>many</em> other people who deserve this much more than I do. Hell I don&#8217;t think I would even feature in the list of top 100 Indian Free Software developers.</p>
<p>To name a few, I would rather nominate the following (in no particular order):</p>
<ul>
<li><a href="http://t3.dotgnu.info/blog/">Gopal Vijayraghavan</a> (PHP APC, DotGNU)</li>
<li><a href="http://sayamindu.randomink.org/">Sayamindu Dasgupta</a> (GNOME, OLPC)</li>
<li><a href="http://ftbfs.wordpress.com/">Kartik Mistry</a> (Debian, OOo)</li>
<li><a href="http://www.ee.iitm.ac.in/~ee03b091/">Kumar Appaiah</a> (Debian)</li>
<li><a href="http://www.kix.in/">Ananth Narayanan</a> (Gentoo, PHP, Plan9)</li>
<li>&#8230; and many others</li>
</ul>
<p>So, the organisers, please don&#8217;t humiliate me like this and kindly take down my name from your God damned website.</p>
<p>I am just a Free Software enthusiast &#8230; <em>I don&#8217;t need no award</em>.</p>
<p>And in any case, I think this whole event is bullshit, just look at the other nominations and you will know. But that&#8217;s another story &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://freegeek.in/blog/2008/04/do-not-want/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>A reward from Sir Donald</title>
		<link>http://freegeek.in/blog/2007/05/a-reward-from-sir-donald/</link>
		<comments>http://freegeek.in/blog/2007/05/a-reward-from-sir-donald/#comments</comments>
		<pubDate>Thu, 17 May 2007 13:23:08 +0000</pubDate>
		<dc:creator>Baishampayan</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://g33k.wordpress.com/2007/02/23/a-reward-from-sir-donald/</guid>
		<description><![CDATA[Dear Mr Ghose, Many thanks for your extremely helpful note. [...] I owe you the customary "reward check", because these corrections affect pages of The Art of Computer Programming. To what snail-mail address should the check be sent? Cordially, Don Knuth w00t! Update: I received the cheque today! Check my flickr page for a scan [...]]]></description>
			<content:encoded><![CDATA[<pre>
Dear Mr Ghose,

Many thanks for your extremely helpful note. [...]

I owe you the customary "reward check", because these corrections
affect pages of The Art of Computer Programming. To what snail-mail
address should the check be sent?

Cordially,
Don Knuth</pre>
<p>w00t!</p>
<p>Update: I received the cheque today! Check my <a href="http://www.flickr.com/photos/ghoseb/502039190/" title="Reward cheque from Sir Donald Knuth">flickr page</a> for a scan of the cheque.</p>
]]></content:encoded>
			<wfw:commentRss>http://freegeek.in/blog/2007/05/a-reward-from-sir-donald/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.516 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2011-12-30 10:56:42 -->

