<?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>rajaseelan.com &#187; Life</title>
	<atom:link href="http://rajaseelan.com/category/life/feed/" rel="self" type="application/rss+xml" />
	<link>http://rajaseelan.com</link>
	<description>junk food for the brain ...</description>
	<lastBuildDate>Tue, 28 Jul 2009 16:37:17 +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>Police report against Al-Islam</title>
		<link>http://rajaseelan.com/2009/07/14/police-report-against-al-islam/</link>
		<comments>http://rajaseelan.com/2009/07/14/police-report-against-al-islam/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 05:01:51 +0000</pubDate>
		<dc:creator>raja</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[the-why-cant-we-just-get-along-dept]]></category>

		<guid isPermaLink="false">http://rajaseelan.com/?p=207</guid>
		<description><![CDATA[Sigh. Never thought I&#8217;d bog about this. 
Can&#8217;t people just live together?
Henotheism (Greek εἷς θεός heis theos &#8220;one god&#8221;) is a term coined by Max Müller, to mean worshiping a single god while accepting the existence or possible existence of other deities.
Fully explained here, in the one &#038; only Wikipedia.  
]]></description>
			<content:encoded><![CDATA[<p>Sigh. Never thought I&#8217;d bog about <a href="http://www.malaysiakini.tv/video/17392.html">this</a>. </p>
<p>Can&#8217;t people just live together?</p>
<blockquote><p><strong>Henotheism </strong>(Greek εἷς θεός heis theos &#8220;one god&#8221;) is a term coined by Max Müller, to mean worshiping a single god while accepting the existence or possible existence of other deities.</p></blockquote>
<p>Fully explained <a href="http://en.wikipedia.org/wiki/Henotheism">here</a>, in the one &#038; only Wikipedia. <img src='http://rajaseelan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://rajaseelan.com/2009/07/14/police-report-against-al-islam/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Obama-natar</title>
		<link>http://rajaseelan.com/2009/06/19/the-obama-natar/</link>
		<comments>http://rajaseelan.com/2009/06/19/the-obama-natar/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 08:51:48 +0000</pubDate>
		<dc:creator>raja</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[the funnies]]></category>

		<guid isPermaLink="false">http://rajaseelan.com/?p=83</guid>
		<description><![CDATA[Yes, apparently being the president of one of the most powerful countries in the world requires leet fly swatting relfexes that may put Mr. Miyagi to shame. Check it out  

The Obama-nator
]]></description>
			<content:encoded><![CDATA[<p>Yes, apparently being the president of one of the most powerful countries in the world requires <em>leet</em> fly swatting relfexes that may put <a href="http://en.wikipedia.org/wiki/Mr_Miyagi">Mr. Miyagi</a> to shame. Check it out <img src='http://rajaseelan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/ORZ00OyKp0I&#038;hl=en&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ORZ00OyKp0I&#038;hl=en&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p><a href='http://www.youtube.com/watch?v=ORZ00OyKp0I' >The Obama-nator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://rajaseelan.com/2009/06/19/the-obama-natar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>F*** my life via bash the pythonic way</title>
		<link>http://rajaseelan.com/2009/03/01/f-my-life-via-bash-the-pythonic-way/</link>
		<comments>http://rajaseelan.com/2009/03/01/f-my-life-via-bash-the-pythonic-way/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 14:15:21 +0000</pubDate>
		<dc:creator>raja</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://rajaseelan.com/?p=58</guid>
		<description><![CDATA[Being a little bored today, I decided to surf around. Thanks to my friend Thaweesak, I got this site called F*** My Life.
A few hilarious stories and minutes later, I realised they had a web api. Thats when I got an epiphany!!! Why not get a random story from here to cheer me up on [...]]]></description>
			<content:encoded><![CDATA[<p>Being a little bored today, I decided to surf around. Thanks to my friend <a href="http://thaweesak.com">Thaweesak</a>, I got this site called <strong><a href="http://www.fmylife.com/">F*** My Life</a></strong>.</p>
<p>A few hilarious stories and minutes later, I realised they had a web api. Thats when I got an epiphany!!! Why not get a random story from here to cheer me up on demand? And for a linux junkie, what better way than through a terminal?</p>
<p>Since I have been experimenting with <a href="http://python.org">python</a> for awhile, what better way to practice a new language than something fun?</p>
<p>Here&#8217;s my script:-</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
</pre>
</td>
<td class="code">
<pre class="python" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">#!/usr/bin/env python</span>
<span style="color: #808080; font-style: italic;"># Ugly script to get a random quote from www.fmylife.com</span>
<span style="color: #808080; font-style: italic;"># Yeah, so ugly I dont even bother catching exceptions</span>
<span style="color: #808080; font-style: italic;">#</span>
<span style="color: #808080; font-style: italic;"># Meant to run on python 2.5++ as I'm using the inbuilt ElementTree package</span>
<span style="color: #808080; font-style: italic;">#</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">urllib</span>
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">xml</span>.<span style="color: black;">etree</span>.<span style="color: black;">ElementTree</span> <span style="color: #ff7700;font-weight:bold;">as</span> ET
<span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #dc143c;">cStringIO</span>
&nbsp;
FML_SITE_RANDOM = <span style="color: #483d8b;">'http://api.betacie.com/view/random'</span>
paramsDict = <span style="color: black;">&#123;</span> <span style="color: #483d8b;">'language'</span>:<span style="color: #483d8b;">'en'</span>, <span style="color: #483d8b;">'key'</span>:<span style="color: #483d8b;">'readonly'</span><span style="color: black;">&#125;</span>
encodedParams = <span style="color: #dc143c;">urllib</span>.<span style="color: black;">urlencode</span><span style="color: black;">&#40;</span>paramsDict<span style="color: black;">&#41;</span>
&nbsp;
<span style="color: #ff7700;font-weight:bold;">try</span>:
	fmldata = <span style="color: #dc143c;">urllib</span>.<span style="color: black;">urlopen</span><span style="color: black;">&#40;</span>FML_SITE_RANDOM, encodedParams<span style="color: black;">&#41;</span>.<span style="color: black;">read</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
	fmldata = ET.<span style="color: black;">XML</span><span style="color: black;">&#40;</span>fmldata<span style="color: black;">&#41;</span>
	author = fmldata.<span style="color: black;">findtext</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'items/item/author'</span><span style="color: black;">&#41;</span>.<span style="color: black;">strip</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
	<span style="color: #ff7700;font-weight:bold;">if</span> <span style="color: #008000;">len</span><span style="color: black;">&#40;</span>author<span style="color: black;">&#41;</span> == <span style="color: #ff4500;">0</span>:
		author = <span style="color: #483d8b;">'anonymous'</span>
&nbsp;
	peopleAgreed = fmldata.<span style="color: black;">findtext</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'items/item/agree'</span><span style="color: black;">&#41;</span>.<span style="color: black;">strip</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
	peopleDisagreed = fmldata.<span style="color: black;">findtext</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'items/item/deserved'</span><span style="color: black;">&#41;</span>.<span style="color: black;">strip</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
	story = fmldata.<span style="color: black;">findtext</span><span style="color: black;">&#40;</span><span style="color: #483d8b;">'items/item/text'</span><span style="color: black;">&#41;</span>.<span style="color: black;">strip</span><span style="color: black;">&#40;</span><span style="color: black;">&#41;</span>
&nbsp;
	<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">&quot;Think your life sucks?<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>
	<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'This happened to '</span> + author + <span style="color: #483d8b;">'.'</span>
	<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">''</span>
	<span style="color: #ff7700;font-weight:bold;">print</span> story + <span style="color: #483d8b;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>
	<span style="color: #ff7700;font-weight:bold;">print</span> peopleAgreed + <span style="color: #483d8b;">' reader(s) agreed'</span>
	<span style="color: #ff7700;font-weight:bold;">print</span> peopleDisagreed + <span style="color: #483d8b;">' reader(s) have seen worse. '</span>
	<span style="color: #ff7700;font-weight:bold;">print</span>
	<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'F*** My Life'</span>
	<span style="color: #ff7700;font-weight:bold;">print</span> <span style="color: #483d8b;">'http://www.fmylife.com'</span>
&nbsp;
&nbsp;
<span style="color: #ff7700;font-weight:bold;">except</span>:
	msg = <span style="color: #483d8b;">''</span><span style="color: #483d8b;">'Whoops!!! Some error, probably your connection. I guess
	your life sucks after all.... :('</span><span style="color: #483d8b;">''</span>
	<span style="color: #ff7700;font-weight:bold;">print</span> msg</pre>
</td>
</tr>
</table>
</div>
<p>Just <code>chmod 755</code> it and place it in your <code>~/bin</code> directory. Then just type in <code>fml</code> in your terminal for some random F*** ups.</p>
<p>Assuming you have Fedora 10 or Python 2.5++ installed, it should work perfectly.</p>
<p>Here&#8217;s a shot of it running:-</p>
<div id="attachment_62" class="wp-caption aligncenter" style="width: 310px"><img src="http://rajaseelan.com/wp-content/uploads/2009/03/fml-in-action-300x213.png" alt="My F*** My Life script in action." title="fml-in-action" width="300" height="213" class="size-medium wp-image-62" />
<p class="wp-caption-text">My F*** My Life script in action.</p>
</div>
<p>Sources I used to create this program:-</p>
<ul>
<li><a href="http://dev.betacie.com/viewforum.php?id=3">F*** My Life Web Api</a></li>
<li><a href="http://docs.python.org/index.html">Python v2.6.1 documentation</a></li>
<li><a href="http://developer.yahoo.com/python/python-xml.html">YDN Parse XML using Python</a></li>
<li><a href="http://developer.yahoo.com/python/python-rest.html">YDN Make Yahoo! Web Service REST calls with Python</a></li>
</ul>
<p>The wonders of Open Source Technology. w00t!!! <img src='http://rajaseelan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://rajaseelan.com/2009/03/01/f-my-life-via-bash-the-pythonic-way/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Create Multiple Firefox Profiles For Different Uses</title>
		<link>http://rajaseelan.com/2009/02/22/create-multiple-firefox-profiles-for-different-uses/</link>
		<comments>http://rajaseelan.com/2009/02/22/create-multiple-firefox-profiles-for-different-uses/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 03:36:40 +0000</pubDate>
		<dc:creator>raja</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Life]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://rajaseelan.com/?p=52</guid>
		<description><![CDATA[Ever had a problem where your Firefox crashes during development because you were browsing multiple tabs in another window?
Or using the latest Firefox beta always messed up your current extensions / settings?
Use Profile Manager.
This keeps separate instances of firefox running, so one crash won&#8217;t affect the other windows.
To access the Profile Manager, first open Firefox [...]]]></description>
			<content:encoded><![CDATA[<p>Ever had a problem where your <a href="http://www.mozilla.com/firefox/">Firefox</a> crashes during development because you were browsing multiple tabs in another window?</p>
<p>Or using the latest Firefox beta always messed up your current extensions / settings?</p>
<p>Use Profile Manager.</p>
<p>This keeps separate instances of firefox running, so one crash won&#8217;t affect the other windows.</p>
<p>To access the Profile Manager, first open Firefox as usual, then from the your os command prompt, launch the profile manager by typing the following command:-</p>
<p><code>firefox -profilemanager -no-remote</code></p>
<p><img src="http://rajaseelan.com/wp-content/uploads/2009/02/firefox-profile-manager.png" alt="My FireFox Profile Manager" /></p>
<p>As you can see, I have created 3 profiles here, my default profile, a Development profile as well as another beta profile for me to test the latest firefox beta, Minefield (www.mozilla.org/projects/minefield/). I set the default profile as my default (duh!), for normal web browsing.</p>
<p>The &#8216;-no-remote&#8217; option allows you to start a new Firefox process that is invisible to the first process.</p>
<p>The &#8216;-P&#8217; option allows you to specify which profile to start. Look at your profile manager for the names in case you forgot <img src='http://rajaseelan.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>I then created some scripts in my ~/bin directory to launch the Development &#038; Beta profiles seperately.</p>
<p>Here&#8217;s a sample script, note that I piped all of &#8216;em ugly error messages to /dev/null and made sure the process ran in the background. This frees up your terminal for more important things.</p>
<div class="wp_syntax">
<table>
<tr>
<td class="line_numbers">
<pre>1
2
3
</pre>
</td>
<td class="code">
<pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Starting devfox ;)&quot;</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>firefox <span style="color: #660033;">-P</span> <span style="color: #ff0000;">&quot;Development&quot;</span> <span style="color: #660033;">-no-remote</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">&amp;</span></pre>
</td>
</tr>
</table>
</div>
<p>Another tip, getting confused with which profile(s) you have open? Use <a href="https://addons.mozilla.org/firefox/browse/type:2">Themes</a> to differentiate them <img src='http://rajaseelan.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>For more information, read on the following links:-</p>
<p><a href="http://kb.mozillazine.org/Opening_a_new_instance_of_Firefox_with_another_profile">Opening Firefox With Another Profile</a><br />
<a href="http://kb.mozillazine.org/Profile_Manager">Firefox Profile Manager</a></p>
<p>Other uses for this include, your own &#8216;incognito&#8217; mode for firefox, ala Chrome.</p>
<p>Hope you find this helpful <img src='http://rajaseelan.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://rajaseelan.com/2009/02/22/create-multiple-firefox-profiles-for-different-uses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Crime &amp; Passion</title>
		<link>http://rajaseelan.com/2008/01/17/crime-passion/</link>
		<comments>http://rajaseelan.com/2008/01/17/crime-passion/#comments</comments>
		<pubDate>Thu, 17 Jan 2008 04:00:57 +0000</pubDate>
		<dc:creator>raja</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[nostalgia]]></category>
		<category><![CDATA[series]]></category>
		<category><![CDATA[singapore]]></category>

		<guid isPermaLink="false">http://rajaseelan.com/2008/01/17/crime-passion/</guid>
		<description><![CDATA[Holy Cow!!! I just saw this on youtube. I had to post this, anyone who grew up as an 80&#8217;s SBC child will instantly recognize this. One of their locally produced cops &#38; thieves dramas, with an uber-catchy theme song. The one posted on youtube is the mandarin (?) dub, but either way its definitely [...]]]></description>
			<content:encoded><![CDATA[<p>Holy Cow!!! I just saw this on youtube. I had to post this, anyone who grew up as an 80&#8217;s SBC child will instantly recognize this. One of their locally produced cops &amp; thieves dramas, with an uber-catchy theme song. The one posted on youtube is the mandarin (?) dub, but either way its definitely worth a listen.</p>
<p><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/QVLwsLXiUAI&#038;rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/QVLwsLXiUAI&#038;rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://rajaseelan.com/2008/01/17/crime-passion/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Of Alco, Nicotine &amp; Retarded Bets..</title>
		<link>http://rajaseelan.com/2008/01/08/of-alco-nicotine-retarded-bets/</link>
		<comments>http://rajaseelan.com/2008/01/08/of-alco-nicotine-retarded-bets/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 06:34:35 +0000</pubDate>
		<dc:creator>raja</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[vacation]]></category>

		<guid isPermaLink="false">http://rajaseelan.com/?p=11</guid>
		<description><![CDATA[Finally back from my vacation. 6 days in Langkawi really was refreshing. Being a beach bum surrounded by tax free alco helps refresh the mind.
I discovered that Malibu tastes excellent when mixed with pineapple, which in turn made me do a few retarded bets. Alcohol and cameras don&#8217;t mix well either, as the latter captures [...]]]></description>
			<content:encoded><![CDATA[<p>Finally back from my vacation. 6 days in Langkawi really was refreshing. Being a beach bum surrounded by tax free alco helps refresh the mind.</p>
<p>I discovered that <a href="http://http://www.malibu-rum.com/" title="Malibu Rum" target="_blank">Malibu</a> tastes excellent when mixed with pineapple, which in turn made me do a few retarded bets. Alcohol and cameras don&#8217;t mix well either, as the latter captures incriminating evidence <img src='http://rajaseelan.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>The problem with long vacations is the natural reluctance to go back to work thats comes once you reach home. Then you just look at the bills piling up on your desk and realise someone&#8217;s got to pay them and drag yourself back (to work).</p>
<p>Will blog later on once my mind starts working. Till then, goodbye.</p>
]]></content:encoded>
			<wfw:commentRss>http://rajaseelan.com/2008/01/08/of-alco-nicotine-retarded-bets/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
