<?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://parsedparticiple.org/blog</link>
   <description>Faiz's Web Journal</description>
   <language>en</language>
   <copyright>Copyright 2007 Faiz Kazi</copyright>
   <ttl>60</ttl>
   <pubDate>Sat, 01 Dec 2007 14:30 GMT</pubDate>
   <managingEditor>faiz@parsedparticiple.org</managingEditor>
   <generator>PyBlosxom http://pyblosxom.sourceforge.net/ 1.4.2 8/16/2007</generator>
<item>
   <title>The Inconvenience of having long legs</title>
   <guid isPermaLink="false">japan/ohachi</guid>
   <link>http://parsedparticiple.org/blog/japan/ohachi.html</link>
   <description><![CDATA[
<a href="http://www.ohati.com/">Ohachi</a> (Japanese: おはち) is a chain 
of restaurants in Tokyo that fall under the "Teishoku-ya san" category 
(Japanese: 定食屋さん).
Teishoku just means "set meal". There's one close to the JR Ebisu station, not very
far from where I work. Craving some <em>kaki-fry</em> (deep-fried Oysters), 
<div class="image-container">
<img src="http://www.ohati.com/menu/images/menu3_05.jpg"/>
</div>
I went there
on my way home today. A lot of these restaurants have counter-seats so that's where
they seat you in you go in alone, or if there aren't any free tables.
<p>
Well, so I ordered a coffee before my meal, and a few minutes after it had 
arrived, the waitress came up to me and offered, with an extra apologetic 
tone, the option of moving to a regular table (though I was alone), if I was
finding it uncomfortable to sit at the counter (which, I only then realised,
I indeed was). Having long legs can be troublesome, though having gotten used to 
it I hardly notice it myself.</p>
<p>
But it's a great example of really good service when someone else takes note of
your discomfort, however trifling it may be, and offers to help before you can
even say to yourself "damn these long legs!"
</p>

]]></description>
   <category domain="http://parsedparticiple.org/blog">/japan</category>
   <pubDate>Sat, 01 Dec 2007 14:30 GMT</pubDate>
</item>
<item>
   <title>Concert tickets purchased, Anticipation commences</title>
   <guid isPermaLink="false">music/the_police_tickets</guid>
   <link>http://parsedparticiple.org/blog/music/the_police_tickets.html</link>
   <description><![CDATA[
The tickets to the 2007 Police world tour (which, in Japan, will be 2008 by the 
time they get here to perform at the Tokyo Dome) just arrived.
<div class="image-container" style="height:auto;width:auto;">
<img src="/pictures/the-police-tickets.jpeg" />
</div>
<a href="http://thilosophy.com/">Thilo</a>, (my colleague and more-than-occasional 
sufferer of my worst puns) for whom I picked up a ticket as well, is beginning to
be concerned about my general euphoria, and is also getting a little tired of having to
parse out-of-context Police lyrics in lieu of coherent sentences.
<p>
I'm allowing myself that smug feeling of reassured satisfaction. Looks like 
the <a href="/blog/programming/screen-scraping.html">Screen scraping</a> idea
paid off. These are relatively good seats (they had better be; they cost 13,000 yen each),
and might I add that though I managed to get them relatively early, the previous
day's show (February 13th) was already sold out.
</p>

]]></description>
   <category domain="http://parsedparticiple.org/blog">/music</category>
   <pubDate>Fri, 30 Nov 2007 11:37 GMT</pubDate>
</item>
<item>
   <title><em>Sod off,</em> loathsome script-kiddie</title>
   <guid isPermaLink="false">security/script-kiddie</guid>
   <link>http://parsedparticiple.org/blog/security/script-kiddie.html</link>
   <description><![CDATA[
Someone (or should I say, something, because this looks 
like some auto-scanning script) gained access via SSH
using one of the unused user accounts on this server.
Nothing very spectacular, especially since everything was
easily visible with <code>ps</code>, and even <code>who</code>.
the IP seems to be: <code>86.123.17.188</code>.
<p>
I could see this when I ran <code>who</code>:
<pre class="code">
faiz     pts/3        Nov 19 13:56 (p02a702.tokynt01.ap.so-net.ne.jp)
vasanth  pts/2        Nov 18 23:37 (86.123.17.188:S.0)
</pre>
</p>
<p>Looks like it never got beyond that, though I saw some hundreds of
'./ssh' processes running, which, after summarily killing off, I found
and archived the offending scripts: These were stored and running off of
the directory <code> /var/tmp/vi.recover/irc/ </code> as the user 
'vasanth'. I suspect a weak password lead to a brute-force SSH break-in.
Not at all a bother, but nothing that can't be fixed by an <code>iptables</code>
'<code>-m recent</code>' filter.
</p>
Contents of the directory the intruder was running the scripts from:
<pre class="code" style="height:120px;">
var/
`-- tmp
    `-- vi.recover
        `-- irc
            |-- 1
            |-- 10
            |-- 11
            |-- 12
            |-- 13
            |-- 14
            |-- 15
            |-- 16
            |-- 17
            |-- 18
            |-- 19
            |-- 2
            |-- 20
            |-- 209.85.ps.22
            |-- 21
            |-- 22
            |-- 23
            |-- 24
            |-- 25
            |-- 26
            |-- 27
            |-- 28
            |-- 29
            |-- 3
            |-- 30
            |-- 31
            |-- 32
            |-- 33
            |-- 34
            |-- 35
            |-- 36
            |-- 37
            |-- 38
            |-- 39
            |-- 4
            |-- 40
            |-- 41
            |-- 42
            |-- 43
            |-- 44
            |-- 45
            |-- 46
            |-- 47
            |-- 48
            |-- 49
            |-- 5
            |-- 50
            |-- 51
            |-- 52
            |-- 53
            |-- 54
            |-- 55
            |-- 56
            |-- 57
            |-- 58
            |-- 59
            |-- 6
            |-- 60
            |-- 61
            |-- 62
            |-- 63
            |-- 64
            |-- 7
            |-- 8
            |-- 9
            |-- all
            |-- common
            |-- full
            |-- go.sh
            |-- mfu.txt
            |-- pass_file
            |-- ps
            |-- r00t
            |-- skan
            |-- ss
            |-- ssh
            `-- x

</pre>
<p>Some samples from the <a href="/download/junk/kiddie-scripts.tar.gz">scripts:</a>
<em>Note: though no harm can come if you try running these binaries as a non-root
user (if you are running Linux, that is), it's probably a good idea not to run the
scripts in this archive - there's no easy way to be sure what they actually do.</em>
<pre class="code">
$ cat /var/tmp/vi.recover/irc/go.sh 
./ss 22 -b $1 -i eth0 -s 6
cat bios.txt |sort | uniq &gt; mfu.txt
./ssh-scan
rm -f bios.txt

</pre>
<pre class="code">
#!/bin/bash

clear

rm -rf $1.ps.$2

echo "#=====#==================================#=====#"
echo "#= R =# SSH AUTO SCANNER BY REGELE &amp; CO  #= R =#"
echo "#= E =#-------   #BlackCat TEAM   -------#= E =#"
echo "#= G =#----------------------------------#= G =#"
echo "#= E =# � ALL RIGHTS RESERVED TO Regele �#= E =#"
echo "#= L =#   Now Just Sit Back End Relax    #= L =#"
echo "#= E =#   IPs founder... ACTIVATING!!!   #= E =#"
echo "#Range from -&gt; $1.0.0"
echo "#Range   to -&gt; $1.255.255"
echo "#Looking on -&gt; PORT $2"

./ps $1 $2

sleep 5

cat $1.ps.$2 |sort |uniq &gt; mfu.txt

oopsnr2=`grep -c . mfu.txt`

sleep 5
echo "#---Relax ... Take it Easy---#"

cat 1 &gt; pass_file
sleep 3
./ssh 150

cat 2 &gt; pass_file
sleep 3
./ssh 150

#... and so on

echo "# It's over, you cand go outside and play now #"
</pre>
Yup, script 'kiddie' all right.
</p>

]]></description>
   <category domain="http://parsedparticiple.org/blog">/security</category>
   <pubDate>Mon, 19 Nov 2007 16:55 GMT</pubDate>
</item>
<item>
   <title>Screen Scraping in this Day And Age</title>
   <guid isPermaLink="false">programming/screen-scraping</guid>
   <link>http://parsedparticiple.org/blog/programming/screen-scraping.html</link>
   <description><![CDATA[
... of RSS, Web2.0 and whatnot. As much as I loved doing 
it back in old days, screen-scraping (parsing HTML off of
web pages with a lot of guesswork) was (and is) yucky. I
suppose I enjoyed it back then because I ended up learning
a bit of Awk, and later Perl.
<p>
But since I've found no good way to avoid missing concerts,
other than hope that there's a RSS feed with ticket/date
information for bands/artists that I don't want to miss,
I have to resort to such nonsense now and then:
<pre class="code">
use LWP::Simple 'get';
use HTML::TableExtract;
use Data::Dumper;

sub STATUS { 5 }  # The 5th column of table happens to be 'ticket status'

my $te = new HTML::TableExtract;
# slurp!
$te-&gt;parse(get '<a href="https://tickets.thepolice.com/">https://tickets.thepolice.com/</a>');

my ($table) = $te-&gt;tables;             # The first and only table in the 
                                       # page is a list of all gigs by city,
                                       # date, and ticket availability
my @tokyo_gigs = grep {                
                    grep /Tokyo/, @$_  # Rows with dates in Tokyo
                 } $table-&gt;rows;

# Look out for any changes; at this time, there are only 2 shows in Tokyo
die "Whoa! no gigs in Tokyo??"    unless @tokyo_gigs;
die "Whoa! *more* gigs in Tokyo??"    if @tokyo_gigs &gt; 2;
die "Whoa! only *one* gig in Tokyo??" if @tokyo_gigs == 1;

# ... and if their status is anything other than 'Coming Soon',
# then either tickets sales have begun, or... are already sold out!
print "Whoa! somethings up!\n", Dumper @tokyo_gigs 
    if grep { ! /coming soon/i  }
       map { $_-&gt;[STATUS] } @tokyo_gigs;

</pre>
</p>
<p>This is just so I don't miss 
<a href="/blog/music/the_police_2007_tour.html">The Police</a>
<a href="https://tickets.thepolice.com/"> live</a> at the Tokyo Dome,
scheduled in February, 2008.</p>

So having to screen-scrape may suck, but at least there's Perl.

<div class="update">
<strong>UPDATE:</strong><span class="datetime">Nov 21, 21:00 JST</span>:
Looks like it worked! Well, sort of. I put the script in my crontab
and this morning it sent me a mail with "Whoa! no gigs in Tokyo??" in the
body; and sure enough, it seems that the presale Tokyo tickets status
had changed - a link that said "Buy Tickets" is in it's place.
<br />(Of course, it's a totally different issue that the site in 
question <em>does not</em> seem to let one purchase tickets for the
Tokyo venues - how lame!  Well, at least I am early enough to buy
the 'general public' tickets on time.)
</div>

]]></description>
   <category domain="http://parsedparticiple.org/blog">/programming</category>
   <pubDate>Mon, 19 Nov 2007 12:58 GMT</pubDate>
</item>
<item>
   <title>THE POLICE 2007 World Tour</title>
   <guid isPermaLink="false">music/the_police_2007_tour</guid>
   <link>http://parsedparticiple.org/blog/music/the_police_2007_tour.html</link>
   <description><![CDATA[
I suppose one could call me a fan. After years of not listening
to classic rock, leave aside 
<a href="http://en.wikipedia.org/wiki/The_Police">The Police</a>,
I suddenly find myself buying all their classic albums. In fact, I
just bought almost all of them. Amazon is evil, I tell you, with
their accursed <em>'Customers who purchased this item also purchased...'</em> feature:
<ul>
  <li>Reggatta de Blanc</li>
  <li>Ghost in the Machine</li>
  <li>Zenyatta Mondatta</li>
  <li>Synchronicity</li>
</ul>
Only <em>Outlandos d'Amour</em> is needed now, to complete a full collection
of all the band's studio albums.
<p>
<strong>And,</strong> what <a href="https://tickets.thepolice.com/">timing</a>: 
2007 sees Sting, Andy Summers and Stewart Copeland not only reuniting as the
original 3-piece band, but with any luck, I get to see them live in Tokyo
in February. If I buy the tickets on time that is. I have a horrible track
record of missing out any good live music in a city that's not exactly
deprived of it.
</p>
I <em>must</em> be a fan; I've spent all weekend watching YouTube videos
of The Police, both clips from their 2007 world tour and the old music
videos from the early 80's.
<p>
I only hope they don't get completely bored of playing the sames songs 
over and over again, by the time they get here.
</p>

]]></description>
   <category domain="http://parsedparticiple.org/blog">/music</category>
   <pubDate>Mon, 19 Nov 2007 12:24 GMT</pubDate>
</item>
<item>
   <title>Bent Derailleur Hanger</title>
   <guid isPermaLink="false">bicycle/bent-derailleur-hanger</guid>
   <link>http://parsedparticiple.org/blog/bicycle/bent-derailleur-hanger.html</link>
   <description><![CDATA[

Too close for comfort...
<br />
Here, it's actually touching the spokes - in fact, it's almost 
<i>in the path</i> of the spokes.

<div class="image-container">
<a href="http://www.flickr.com/photos/14518216@N03/2034513896/" title="Too Close">
<img src="http://farm3.static.flickr.com/2305/2034513896_051121e5b4_m.jpg" alt="too-close" />
</a></div>


<div class="image-container scale">
<a href="http://www.flickr.com/photos/14518216@N03/2034513924/" title="touching">
<img src="http://farm3.static.flickr.com/2292/2034513924_300d89a91c_m.jpg" alt="touching" />
</a><p>Actually touching the spokes</p></div>

'Uncle', as we (Me and Mark) have been addressing the man at the neighborhood bicycle repair-shop, explains that the cause seems to be a damaged/bent hanger:
<div class="image-container">
<a href="http://www.flickr.com/photos/14518216@N03/2034513872/" title="Hanger Bent">
<img src="http://farm3.static.flickr.com/2387/2034513872_051121e5b4_m.jpg" alt="hanger-bent" />
</a></div>

<div class="image-container">
<a href="http://www.flickr.com/photos/14518216@N03/2034439686/" title="Drop Hanger">
<img src="http://farm3.static.flickr.com/2214/2034439686_6cc50cff4d_m.jpg" alt="drop-hanger" /></a>
</div>

<p>
The frame was fixed, Uncle said the 6-7 degree bend was fixable, 
but apparently the hanger isn't 'right' - it's probably why the
derailleur dived into the spokes last month, which was a spectacular
event, still etched in my mind... the rear wheel came off, the chain 
broke and wedged between the largest rear gear and the wheel, and the 
derailleur flipped upwards, and the bike came, literally, to a 
grinding halt. Needless to say, the derailleur and chain,
shown in these pictures are all new.
</p>
<p style="clear:both;">
The risk of that happening again is only if I use the forward
small gear, which is when the spoke-touching happens, as shown
in the photos. And that, says Uncle, will be fixed once the 
drop-hanger arrives - and since 
<a href="http://en.wikipedia.org/wiki/Raleigh_Bicycle_Company">
Raleigh</a> parts seem to be 
relatively scarce in Japan, that's been taking a long time...
</p>


]]></description>
   <category domain="http://parsedparticiple.org/blog">/bicycle</category>
   <pubDate>Thu, 15 Nov 2007 16:43 GMT</pubDate>
</item>
<item>
   <title>Always "Zoku": Sanchōme no Yūhi</title>
   <guid isPermaLink="false">japan/sanchome_no_yuhi</guid>
   <link>http://parsedparticiple.org/blog/japan/sanchome_no_yuhi.html</link>
   <description><![CDATA[
<div>
  <div style="float:left; margin:16px;">
    <img src="/pictures/always-sequel.jpg"/>
  </div>
I just saw the sequel to <i>Always: Sunset on Third Street</i> (Japanese Title: 三丁目の夕日). 
It's as much a tear-jerker as the first part; only this time it got me wondering 
(and how's this for an impromtu conspiracy theory!) - if both movies, 
(which are based on a well-known <i>Manga</i> with the same name) 
could be part of some sort of propaganda? 
<p>
In the same way that a friend (who is a researcher in Women's Studies) 
once explained how 'I Love Lucy' has been frequently suspected of 
being a 'propaganda' TV show, in how it promotes gender roles, is
Sanchōme no Yūhi itself a nostalgia-packaged, public-influencing,
collective viewpoint that Japanese society is better off emulating
the Showa stereotypes depicted in the films?
</p>
<p>
Well, don't get me wrong, I'm a sort of Showa fan myself (package anything
with a vaguely Showa feel to it, and I'll probably bite) - and despite the
melodrama (Think Bollywood sans song and dance), it was fun to watch. Not
the first Japanese movie I've watched fully without subtitles, but certainly
the first on a big screen for me.
<div style="clear:left;"></div>
</div>

]]></description>
   <category domain="http://parsedparticiple.org/blog">/japan</category>
   <pubDate>Tue, 13 Nov 2007 17:08 GMT</pubDate>
</item>
<item>
   <title>Fixed at last! (Or, 90% there)</title>
   <guid isPermaLink="false">bicycle/fixed_at_last</guid>
   <link>http://parsedparticiple.org/blog/bicycle/fixed_at_last.html</link>
   <description><![CDATA[
My bicycle, which was sadly stuck at the mechanic-shop for a whole 3 weeks
owing mainly to the lack of a spare part (A derailleur drop-hanger, to
be precise), is now, finally road-worthy again. Or at least, almost so.

So there's still a danger of the derailleur diving into the spokes
like it did 3 weeks ago - but the chances, says the nice mechanic,
are greatly minimized with the adjustments he's made. He was nice 
enough to not accept any payment until it was 'fully' fixed - i.e., 
after the hanger arrives.

But it feels great to be cycle-borne again!


]]></description>
   <category domain="http://parsedparticiple.org/blog">/bicycle</category>
   <pubDate>Tue, 13 Nov 2007 17:08 GMT</pubDate>
</item>
<item>
   <title>What if Keruac were a Hacker?</title>
   <guid isPermaLink="false">programming/beatnik</guid>
   <link>http://parsedparticiple.org/blog/programming/beatnik.html</link>
   <description><![CDATA[

I came across a programming language called 'Beatnik':
<a href="http://www.cliff.biffle.org/esoterica/beatnik.html">
http://www.cliff.biffle.org/esoterica/beatnik.html
</a>
<p>
I happened upon it while browsing CPAN, and found a module called 
<a href="http://search.cpan.org/~beatnik/Acme-Beatnik-0.02/Beatnik.pm">Acme::Beatnik</a>.




]]></description>
   <category domain="http://parsedparticiple.org/blog">/programming</category>
   <pubDate>Thu, 08 Nov 2007 09:45 GMT</pubDate>
</item>
<item>
   <title>My New Road Bike</title>
   <guid isPermaLink="false">bicycle/new_bike</guid>
   <link>http://parsedparticiple.org/blog/bicycle/new_bike.html</link>
   <description><![CDATA[
<img src="/pictures/new_bike.jpeg"/>
<p>
<a href="http://markara.com/">Mark Arahna</a> actually lugged this all the way from New York.
</p>

]]></description>
   <category domain="http://parsedparticiple.org/blog">/bicycle</category>
   <pubDate>Mon, 08 Oct 2007 14:34 GMT</pubDate>
</item>
<item>
   <title>CHICK COREA Rendezvous in TOKYO: DUET with BELA FLECK</title>
   <guid isPermaLink="false">music/bela_fleck_and_chick_corea</guid>
   <link>http://parsedparticiple.org/blog/music/bela_fleck_and_chick_corea.html</link>
   <description><![CDATA[

<div class="image-container" style="width:60%;">
<img src="/pictures/fleckcorea.jpeg"/>
<p>Bela Fleck (Banjo) with Chick Corea; Note their rather casual attire!</p>
</div>
I was lucky to see <a href="http://en.wikipedia.org/wiki/Chick_Corea">Chick Corea</a> and 
<a href="http://en.wikipedia.org/wiki/Bela_Fleck">Bela Fleck</a> at the Tokyo Blue Note:


Here's what they played (for the second set at least, which was what I went for):
<ol>
<li> Brazil </li>
<li> Children's Song #6 </li>
<li> A Strange Romance </li>
<li> The Enchantment </li>
<li> Joban Dna Nopia </li>
<li> Mountain </li>
<li> <em>(Encore)</em>Spain / Waltz For Abby </li>
</ol>


]]></description>
   <category domain="http://parsedparticiple.org/blog">/music</category>
   <pubDate>Mon, 08 Oct 2007 14:13 GMT</pubDate>
</item>
<item>
   <title>Goodbye Zawinul</title>
   <guid isPermaLink="false">music/zawinul</guid>
   <link>http://parsedparticiple.org/blog/music/zawinul.html</link>
   <description><![CDATA[
Joe Zawinul, legendary Jazz-fusion keyboardist of Weather Report fame 
<a href="http://www.reuters.com/article/entertainmentNews/idUSL1126091220070911?sp=true">passed away</a>
yesterday, at the age of 75.


]]></description>
   <category domain="http://parsedparticiple.org/blog">/music</category>
   <pubDate>Wed, 12 Sep 2007 14:54 GMT</pubDate>
</item>
</channel>
</rss>
