<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" 
   xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" 
   xmlns:html="http://www.w3.org/1999/html" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" 
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
<channel>
   <title>Parsed Participle</title>
   <link>http://www.parsedparticiple.org/blog</link>
   <description>Faiz's Web Journal</description>
   <language>en</language>
   <copyright>Copyright 2007 Faiz Kazi</copyright>
   <ttl>60</ttl>
   <pubDate>Tue, 26 Aug 2008 14:08 GMT</pubDate>
   <managingEditor>faiz@parsedparticiple.org</managingEditor>
   <generator>PyBlosxom http://pyblosxom.sourceforge.net/ 1.4.2 8/16/2007</generator>
<item>
   <title>Avoid STRAWBERRY CONES.</title>
   <guid isPermaLink="false">japan/strawberry-cones</guid>
   <link>http://www.parsedparticiple.org/blog/japan/strawberry-cones.html</link>
   <description><![CDATA[
If you happen to be curious about
<a href="http://www.strawberrycones.com">Strawberry Cones</a>,
a Pizza delivery chain in Japan, not unlike Dominos - my advise
to you would be to curb your curiosity! Their pizza is terrible
and overpriced. They call themselves 
<blockquote>
"The worlds best pizza and ice-cream since 1983."
</blockquote>
Of course, if the caption did not mention pizza then
nobody would figure out what Strawberry Cones actually delivers.
I don't know about the ice-cream (gelato presumably) but
the pizza is simply bad.

]]></description>
   <category domain="http://www.parsedparticiple.org/blog">/japan</category>
   <pubDate>Tue, 26 Aug 2008 14:08 GMT</pubDate>
</item>
<item>
   <title>Squid in the Thar</title>
   <guid isPermaLink="false">life/squid-in-the-thar</guid>
   <link>http://www.parsedparticiple.org/blog/life/squid-in-the-thar.html</link>
   <description><![CDATA[
<div class="image-container">
	<a href="http://www.flickr.com/photos/14518216@N03/1656348695/" 
		title="img_0287.jpg by Faiz Kazi, on Flickr"><img 
		src="http://farm3.static.flickr.com/2326/1656348695_88777abb49.jpg" 
		width="375" height="500" alt="img_0287.jpg" /></a>
	<p style="width:400px">A rather surreal breakfast</p>
</div>
I just found this surreal photo of me sharing dried squid with a
dog in the Thar Desert.
<p>
I believe this was in December, 2005.  The sand dunes are the ones a little
outside Jaisalmer, Rajasthan. I distinctly recall sleeping tent-less, and that
it was very cold.
</p>

]]></description>
   <category domain="http://www.parsedparticiple.org/blog">/life</category>
   <pubDate>Tue, 19 Aug 2008 08:59 GMT</pubDate>
</item>
<item>
   <title>Izakaya at Evening</title>
   <guid isPermaLink="false">japan/izakaya-at-evening</guid>
   <link>http://www.parsedparticiple.org/blog/japan/izakaya-at-evening.html</link>
   <description><![CDATA[
I made a mistake today that I always feared I would.  I walked into
an <a href="http://en.wikipedia.org/wiki/Izakaya">Izakaya</a> this
evening, expecting that I could order the same sort of things they
serve during lunch - Soba and Tempura set menus.
<p>
Many Izakayas transform into simple restaurants serving regular
inexpensive meals during the day, especially during lunch time on
weekdays. Though I had noticed that about this place, I had only
so far been there during lunch time, so nothing stopped me from
walking in at 9 PM hoping to get myself some Soba/Tempura.
</p>
<p>
This can be awkward on many levels: dress-code is never explicit
in such places, but one still stand outs out wearing a T-shirt
and jeans, when everyone else is still in business attire after
a hard day's work. The other thing is that Izakayas are not
just about drinking, but the group ritual of drinking together.
I was the only person there by myself, and only because it would
have been too rude to walk out right after walking in.
</p>
<p>Still, it had been a while since I'd been to one; mostly
because of the relatively low profile I have been keeping
at least where the social life around work is concerned.
Izakaya food, which is basically healthy, small-plate dishes
usually meant to accompany drinks, is very innovative and
one requires a certain amount of knowledge to be able to
order properly, so I had to sort of wing it.
</p>
<p>That awkwardness behind me, everything was simply delicious,
not surprisingly the <em>Tempura no Moriawase</em>.
I accidentally ordered the 
<a href="http://images.google.com/images?q=和風シュウマイ"><em>Wafu-Shumai</em></a>, which was rather amazing too. Not a mistake that I am regretting
too much at this point.
</p>

]]></description>
   <category domain="http://www.parsedparticiple.org/blog">/japan</category>
   <pubDate>Mon, 18 Aug 2008 15:29 GMT</pubDate>
</item>
<item>
   <title>Confessions of a compulsive Bikkle buyer</title>
   <guid isPermaLink="false">japan/bikkle</guid>
   <link>http://www.parsedparticiple.org/blog/japan/bikkle.html</link>
   <description><![CDATA[
<div class="image-container">
	<img src="/pictures/bikkle.jpeg" alt="Bikkle"/>
<p style="width:300px;">
Bikkle, in retro-looking glass bottles. The 
Japanese (Katakana) text under the logo
reads <a href="http://en.wikipedia.org/wiki/Bifidus_Factor">'Bifidus'</a>
</p>
</div>
I have no idea why <a href="http://en.wikipedia.org/wiki/Bikkle">Bikkle</a> 
seems to have become my favorite drink these days.  Bikkle is a yogurt-like
drink sold (apparently) only in vending machines in Japan; there seems
to also be a version sold in a conventional PET bottle in the convenience
stores, but while I can't explain why, I am sure that the glass-bottle
vending-machine version tastes much better.
<p>
Having discovered that
there's a 100-yen vending machine nearby that sells it, it's been a 
constant rate of two bottles a day. It also seems that I'm not the only
Gaijin who is a big fan of this drink: I could list a few people, but 
maybe I'll simply hope that Google leads other Bikkle lovers to this page.
</p>

]]></description>
   <category domain="http://www.parsedparticiple.org/blog">/japan</category>
   <pubDate>Sat, 16 Aug 2008 12:19 GMT</pubDate>
</item>
<item>
   <title>Discovering xmonad</title>
   <guid isPermaLink="false">programming/xmonad</guid>
   <link>http://www.parsedparticiple.org/blog/programming/xmonad.html</link>
   <description><![CDATA[
<p>As someone who has maintained his set of 'dotfiles' faithfully 
for a few years now, window-manager choice and configuration
has been of great importance.  I used <a href="http://www.fvwm.org/">FVWM</a>
for a few years, finally switching to 
<a href="http://sawfish.wikia.com/wiki/Main_Page">Sawfish</a> somewhere
in 2005.  My sawfish configuration mimics what I had set up in
my fvwm days rather closely, and sporadic periods of messing
around with settings have been the only (enjoyable) disruption
to my otherwise very productive computing life (as far as 
my Desktop environment is concerned).
</p>
<p>I switched to Sawfish simply because it's scripting
language, librep is a Lisp - one that I  had been spending
many commuting <a href="/zaurus">Zaurus</a> hours on.  Life has been very good
with this the way it is.</p>
<p>Until I read 
<a href="http://lambda-the-ultimate.org/node/2932">yesterday's LTU article</a>
a post that talks about side-effects in imperative languages
that cause closures to capture variables in less-than-desirable
ways. It was not the actual post itself, but a link to
a series, with one interesting post featuring a tour of
Haskell and a rather fabulous example to use as a 
working demo program: <a href="http://xmonad.org/tour.html">XMonad</a>,
a really good window manager written in and extensible 
in Haskell:</p>
<ul>
  <li>Windows are automatically tiled</li>
  <li>Mouseless</li>
  <li>Configurable (even in real time), using Haskell</li>
</ul>
<p>
I'm tempted to try it; given todays large displays, arranging
windows with your mouse just feels silly.
</p>
<h3>Imperative-style Iterations and closures don't mix well</h3>
The undesirable form of variable capture that
<a href="http://www.research.microsoft.com/%7Eemeijer/">Erik Meijer</a>
<a href="http://research.microsoft.com/~emeijer/Blog/LookClosure.html">describes</a>
is, I think, a lot to do with supporting closures in languages where C-style
iteration is still relatively a norm. The 
<code>for (i = 0; i&lt;10; i++){ /*..*/ }</code> lets you
use the <code>i</code> as a block scope variable
while it remains a part of the <em>mechanism of the iteration</em>.
It's easy to reproduce this in Perl (the language which is
many things to many people), if you use the C iteration idiom:
<pre class="code">
my @arr = ();
for (my $i = 4; $i &lt; 7; $i++) {
    push @arr, sub {
        return $i;
    };
}

for (my $i = 4; $i &lt; @arr; $i++) {
    my $f = $arr[$i];
    print $f-&gt;(), "\n";
}
</pre>
But the idiomatic way does away with this problem;
and things are better now that we don't have to
get distracted by the iteration mechanism:
<code>map</code> and <code>grep</code> where one can: 
<pre class="code">
my @arr = map {
    my $i = $_;
    sub {
        return $i;
    }
} (4..7);

print $_-&gt;(), "\n" foreach @arr;
</pre>
Javascript may not have map/grep, but for Functional-style iterations,
libraries do a great job of providing such utilities. Prototype.js
comes to mind.
<pre class="code">
var delayedActions = [4,5,6,7].map(function (n) {
    return function (i) {
        return i;
    };
});
</pre>
In fact this is where these closure-ish APIs shine - they
overcome Javascript's problem (i.e., variables only have function scope)
by expressing loops functionally.


]]></description>
   <category domain="http://www.parsedparticiple.org/blog">/programming</category>
   <pubDate>Wed, 13 Aug 2008 16:27 GMT</pubDate>
</item>
<item>
   <title>OpenJDK in Debian/Unstable</title>
   <guid isPermaLink="false">programming/openjdk</guid>
   <link>http://www.parsedparticiple.org/blog/programming/openjdk.html</link>
   <description><![CDATA[
I don't routinely need to write Java code these days,
but it still feels good to know that the JDK is now
available as Free Software in Debian:
<pre class="code">
$ apt-get install openjdk-6-jdk openjdk-6-source
# and then...
$ which java
/usr/bin/java
$ java -version
java version "1.6.0_0"
OpenJDK  Runtime Environment (build 1.6.0_0-b11)
OpenJDK 64-Bit Server VM (build 1.6.0_0-b11, mixed mode)
</pre>
I don't use Java much (but that could have been because
of it's non-free pain), and have so far managed 
with <a href="http://gcc.gnu.org/java/">GCJ</a> surprisingly
well. However, having the official Sun JDK as packaged, 
Free software is really good.


]]></description>
   <category domain="http://www.parsedparticiple.org/blog">/programming</category>
   <pubDate>Tue, 12 Aug 2008 16:12 GMT</pubDate>
</item>
</channel>
</rss>

