<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>/home/jasdeep</title>
	<atom:link href="http://jasdeepsingh.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jasdeepsingh.wordpress.com</link>
	<description>Ramblings about workplace, java, python, linux and web</description>
	<pubDate>Thu, 26 Jun 2008 07:01:08 +0000</pubDate>
	<generator>http://wordpress.org/?v=MU</generator>
	<language>en</language>
			<item>
		<title>Being Fired, Hired and Tagged</title>
		<link>http://jasdeepsingh.wordpress.com/2008/06/26/being-fired-hired-and-tagged/</link>
		<comments>http://jasdeepsingh.wordpress.com/2008/06/26/being-fired-hired-and-tagged/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 06:55:45 +0000</pubDate>
		<dc:creator>Jasdeep</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<category><![CDATA[life]]></category>

		<category><![CDATA[profession]]></category>

		<category><![CDATA[tagged]]></category>

		<guid isPermaLink="false">http://jasdeepsingh.wordpress.com/?p=47</guid>
		<description><![CDATA[Its a bit weird post title, but i wanted to write about turbulent happenings in my professional life.
Though its not recommended to tell the World that you have been fired. Because it comes straightway into the mind that only inefficient guys are fired . Anyhow for me ,Our whole team of 30 guys was scrapped [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Its a bit weird post title, but i wanted to write about turbulent happenings in my professional life.</p>
<p>Though its not recommended to tell the World that you have been fired. Because it comes straightway into the mind that only inefficient guys are fired . Anyhow for me ,Our whole team of 30 guys was scrapped all of sudden. They said the global economic slowdown has arrived so the decision is directed from US office and they( Indian office guys )  have nothing to do with it.</p>
<p>It was a bit harsh for most of us,as there should have been some signals beforehand about the lay-off. Anyhow as we work in US styled corporate environment. Things like ethics or employee rights are a bit alien for the corporates. Capital is the only entity a corporation should think of. One should scrap off the resources that are liabilities. But the lay off could have been made smooth also.</p>
<p>Anyway i was hired by another local consulting company, they work on cool enterprise technologies. Looking forward to work with them.</p>
<p>Now the third thing , I was tagged by <a href="http://manmahesh.blogspot.com/" target="_blank">Manpreet</a> , This is the first tag game i&#8217;d be playing. Its fun game.</p>
<p><strong>I&#8217;m :</strong> a radical atheist, leftist, Idealist, feminist, environmentalist.</p>
<p><strong>I think</strong> : more than I do</p>
<p><strong>I know</strong> : quite a lot about everything</p>
<p><strong>I have : </strong>a calm and thinking mind<strong> </strong></p>
<p><strong>I wish : </strong>i should contribute to the society</p>
<p><strong>I hate :</strong> religious bigotry,chauvinism,fanaticism,exploitation.</p>
<p><strong>I miss </strong>: my village</p>
<p><strong>I fear : </strong>nothing except loneliness<strong><br />
</strong></p>
<p><strong>I feel : </strong>feelings should not be turned into weakness</p>
<p><strong>I hear : </strong>things that matter<strong><br />
</strong></p>
<p><strong>I smell : </strong>roses in the nearby garden</p>
<p><strong>I crave : </strong>for ghar di roti, lassi and makhan.</p>
<p><strong>I search : </strong>Google<strong> </strong></p>
<p><strong>I wonder :</strong> how humans have been the superior race on the planet</p>
<p><strong>I regret : </strong>not going for higher studies</p>
<p><strong>I love : </strong>freedom</p>
<p><strong>I ache</strong> : to live in village</p>
<p><strong>I care : </strong>the ones who need it</p>
<p><strong>I am not : </strong> an aggressive person</p>
<p><strong>I believe : </strong> one has to make his/her own destiny</p>
<p><strong>I dance : </strong>to any Punjabi Bhangra Hip-Hop Pop Song.</p>
<p><strong>I sing :</strong> any song that comes to my mind, generally Punjabi , a sample :&#8221;Khaure tere vich kehri khaas khich nee, mainu shuru ton hee billo tere vich nee, Mummy ji dee noonh diss dee, Mera Dil nee parhaee vich lagda nee akhran &#8216;ch toon dissdee&#8221;</p>
<p><strong>I cry</strong> : when deeply hurt, it happens rarely.</p>
<p><strong>I don&#8217;t always : </strong>express myself well.</p>
<p><strong>I fight : </strong>rarely but i want to fight for justice/rights</p>
<p><strong>I write : </strong>to express myself, to share my thoughts,to contribute.</p>
<p><strong>I win : </strong>friends</p>
<p><strong>I lose : </strong>get up and try again</p>
<p><strong>I never :</strong> give up</p>
<p><strong>I always : </strong>try to be a better person<strong><br />
</strong></p>
<p><strong>I confuse : </strong>helmet,keys generally when i am in hurry</p>
<p><strong>I listen : </strong>to Ustad Nusrat ji,ghazals, random pop, Punjabi folk, duets and hip hop.</p>
<p><strong>I can usually be found : </strong>in front of a computer, in a library/book shop, at home or office <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>I am scared : </strong>of nothing .</p>
<p><strong>I need : </strong>to keep learning, keep growing, to contribute, to do something that adds value</p>
<p>I don&#8217;t have sufficient passers for this tag so i will pass it to some non bloggers :</p>
<p><a href="http://vinodkashyap.blogspot.com/" target="_blank"><strong>Vinod</strong></a></p>
<p><a href="http://www.chetanmittal.com/" target="_blank"><strong>Chetan</strong></a></p>
<p><strong><a href="http://selfexile.com/" target="_blank">Sohail</a></strong></p>
<p><a href="http://sakooterspeaks.wordpress.com/" target="_blank"><strong>Sakooter</strong></a></p>
<p><strong>Kanwar Bajwa</strong></p>
<p><strong>Navjit Rai</strong></p>
<p><strong>Supreet Sahota</strong></p>
<p>I have tagged two tech bloggers wish it goes well with there blogging style. I have tagged three non bloggers ,  wish they should enter the blogging world with this tag.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jasdeepsingh.wordpress.com/47/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jasdeepsingh.wordpress.com/47/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jasdeepsingh.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jasdeepsingh.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jasdeepsingh.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jasdeepsingh.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jasdeepsingh.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jasdeepsingh.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jasdeepsingh.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jasdeepsingh.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jasdeepsingh.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jasdeepsingh.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jasdeepsingh.wordpress.com&blog=1115136&post=47&subd=jasdeepsingh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jasdeepsingh.wordpress.com/2008/06/26/being-fired-hired-and-tagged/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/jsbhangra-128.jpg" medium="image">
			<media:title type="html">ਜਸਦੀਪ</media:title>
		</media:content>
	</item>
		<item>
		<title>Joys of Python and APIs</title>
		<link>http://jasdeepsingh.wordpress.com/2008/06/12/joys-of-python-and-apis/</link>
		<comments>http://jasdeepsingh.wordpress.com/2008/06/12/joys-of-python-and-apis/#comments</comments>
		<pubDate>Thu, 12 Jun 2008 13:50:45 +0000</pubDate>
		<dc:creator>Jasdeep</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[Python]]></category>

		<category><![CDATA[Script]]></category>

		<category><![CDATA[API]]></category>

		<category><![CDATA[Charts]]></category>

		<category><![CDATA[google]]></category>

		<guid isPermaLink="false">http://jasdeepsingh.wordpress.com/?p=44</guid>
		<description><![CDATA[At my present job , Most of the time, I have to do changes in the legacy Java code to improve performance.
But this time i was asked to tell the extent of performance improvement due to my changes . I tried to use some Java Profiler , I tried Eclipse TPTP and HPROF but due [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>At my present job , Most of the time, I have to do changes in the legacy Java code to improve performance.</p>
<p>But this time i was asked to tell the extent of performance improvement due to my changes . I tried to use some Java Profiler , I tried <a href="http://www.eclipse.org/tptp/" target="_blank">Eclipse TPTP</a> and <a href="http://java.sun.com/developer/TechTips/2000/tt0124.html" target="_blank">HPROF</a> but due to complacency of the legacy application. I was not able to profile my changes.</p>
<p>So i decided to keep it simple . Log the timestamps and analyze the result. But the log generated by this was unable to show any subsequent improvement in performance as I had to log time in Milliseconds ( System.nanoTime () could not be used for Java 1.4) .</p>
<p>For better time precesion i googled and found this<a href="http://www.javaworld.com/javaworld/javaqa/2003-01/01-qa-0110-timing.html?page=1" target="_blank"> timer library</a> by Vladimir Roubstov.I tweaked it for my code and got the comprehesive log output.</p>
<p>Now to analyze the log, I wrote a python script that reads two log files and generates the time improvements in aggregation and for each run. This was the most exciting part.</p>
<pre><code>for i in imap(lambda x,y:(x, y, x-y), [float(b) for b in new_list],[float(a) for a in old_list]):
              print &#8216;%f - %f = %f&#8217; % i
</code></pre>
<p>I wrote it in no time , <a href="http://www.google.com/search?q=python+rocks" target="_blank">Python Rocks</a> . Then I decided to go one step further. What about plotting it on a graph. Straight away <a href="http://code.google.com/apis/chart/">Google Chart API </a>came to my mind and there is<a href="http://pygooglechart.slowchop.com/"> python wrapper</a> to this.<br />
So I wrote this small function to produce graph for these logs.</p>
<pre><code>def draw_chart():
    from pygooglechart import Axis,SimpleLineChart
    chart = SimpleLineChart(600,200,
                        x_range=(0.000, 0.999), y_range=(0.000, 0.999))
    chart.set_colours(['ff0000', '0000ff'])
    chart.set_legend(['New','Old'])
    chart.add_data([float(a) for a in old_list])
    chart.add_data([float(b) for b in new_list])
    chart.set_axis_range(Axis.LEFT, 0.000, 0.999)
    chart.set_axis_range(Axis.BOTTOM, 1, 100)
    chart.download(&#8217;D:\\my_data.png&#8217;)
</code></pre>
<p>This is the graph generated for my data :</p>
<pre><a href="http://jasdeepsingh.files.wordpress.com/2008/06/my_data1.png"><img class="size-medium wp-image-46" style="vertical-align:middle;" src="http://jasdeepsingh.files.wordpress.com/2008/06/my_data1.png?w=500&h=200" alt="The Generated Graph" width="500" height="200" /></a></pre>
<p>The graph does not show much improvement though , but the post was about joys of python and APIs <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>P.S.</strong> : There are <a href="http://backport-jsr166.sourceforge.net/">Java backports</a> for using 1.5 &gt; features like System.nanoTime().</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jasdeepsingh.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jasdeepsingh.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jasdeepsingh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jasdeepsingh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jasdeepsingh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jasdeepsingh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jasdeepsingh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jasdeepsingh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jasdeepsingh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jasdeepsingh.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jasdeepsingh.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jasdeepsingh.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jasdeepsingh.wordpress.com&blog=1115136&post=44&subd=jasdeepsingh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jasdeepsingh.wordpress.com/2008/06/12/joys-of-python-and-apis/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/jsbhangra-128.jpg" medium="image">
			<media:title type="html">ਜਸਦੀਪ</media:title>
		</media:content>

		<media:content url="http://jasdeepsingh.files.wordpress.com/2008/06/my_data1.png?w=300" medium="image">
			<media:title type="html">The Generated Graph</media:title>
		</media:content>
	</item>
		<item>
		<title>The Stress Market !</title>
		<link>http://jasdeepsingh.wordpress.com/2008/06/08/the-stress-market/</link>
		<comments>http://jasdeepsingh.wordpress.com/2008/06/08/the-stress-market/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 09:45:41 +0000</pubDate>
		<dc:creator>Jasdeep</dc:creator>
		
		<category><![CDATA[India]]></category>

		<category><![CDATA[Thoughts]]></category>

		<category><![CDATA[Art of Living]]></category>

		<category><![CDATA[Consumerism]]></category>

		<category><![CDATA[Market]]></category>

		<category><![CDATA[Scientology]]></category>

		<category><![CDATA[Stress]]></category>

		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://jasdeepsingh.wordpress.com/?p=42</guid>
		<description><![CDATA[&#8220;Take a free Stress Test&#8221;  was the board on small makeshift table , at this busy market in my city. I ignored it for few days . But my friend got lured by the stress meter, books and the girl counsler.So he took the test , She asked him to hold too cannes connected to [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>&#8220;Take a free Stress Test&#8221;  was the board on small makeshift table , at this busy market in my city. I ignored it for few days . But my friend got lured by the stress meter, books and the girl counsler.So he took the test , She asked him to hold too cannes connected to the &#8216;Stress Meter&#8217; and asked some common psychometric questions . Then she interpreted the meter readings to him and hats off to he skills , She sold two self help books to my friend who is hard core non-reader. I too tried my hands with the stress test,but i refused to buy the book she highly recommended me.</p>
<p>Any how , I looked through the books my friend had bought from the &#8220;The Stress Test Shop&#8221;. They were the same old self help books with some exercises to do better at workplace. Then i came to know it was distributed by the local <a href="http://en.wikipedia.org/wiki/Scientology" target="_blank">Scientology</a> outfit. Image of <a href="http://en.wikipedia.org/wiki/Tom_Cruise" target="_blank">Tom Cruise</a> came to my mind, as he is ambassador of Scientology. I have no offenses against <a href="http://en.wikipedia.org/wiki/Scientology" target="_blank">Scientology</a>.  But some days later i read this ad in newspaper.</p>
<p><a href="http://jasdeepsingh.files.wordpress.com/2008/06/screenshot.png"><img class="alignright size-medium wp-image-43" style="float:right;" src="http://jasdeepsingh.files.wordpress.com/2008/06/screenshot.png?w=300&h=148" alt="Stress Counsler" width="300" height="148" /></a></p>
<p>So it is quite lucrative profession to be a Scientology  counselor.</p>
<p><strong> So the question raises is Stress another niche market?</strong></p>
<p>Yes, I think it definitely is.</p>
<p>Another brand in this category is <a href="http://www.artofliving.org/" target="_blank">Art of Living</a>.</p>
<p>Endorsed by Swami <a href="http://en.wikipedia.org/wiki/Sri_Sri_Ravi_Shankar" target="_blank">Sri Sri Ravi Shankar</a>. I again have no offenses against  <a href="http://www.artofliving.org/" target="_blank">Art of Living</a>. It has done good humantarian work. Its satsangs might have helped many of us live better. More over   <a href="http://www.artofliving.org/" target="_blank">Art of Living</a> has become a status symbol.  But the question is ,</p>
<p><strong>Is Stress a market in new India ? Are we consumer of this market ?</strong></p>
<p>The changing India has resulted completely different environment for us , than What it was used to be for our earlier generations. We have our 8 hour plus corporate  day jobs , Which require to put in extra effort to be ahead. To unwind we have weekends  Which generally are &#8216;consumed&#8217; in going for a movie, going for shopping or going for a party . We hit the bed to sleep, which has no regular pattern, We &#8216;consume&#8217; sleep too, and often we are sleep deprived.</p>
<p>The living culture/pattern we follow has given birth to the Stress phenomenon. So how to take over stress bye &#8216;consuming&#8217; medical pills, by &#8216;consuming&#8217; art of living satsangs.</p>
<p>Do we have some leisure time , Time for ourselves only ?  Without TV,Internet When we are in the pure relax mode.  When we don&#8217;t &#8216;consume&#8217; anything.</p>
<p>Lets be peaceful persons by not being consumer to the every market segment. Lets think carefully how we can adapt to the ever demanding living / work culture.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jasdeepsingh.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jasdeepsingh.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jasdeepsingh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jasdeepsingh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jasdeepsingh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jasdeepsingh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jasdeepsingh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jasdeepsingh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jasdeepsingh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jasdeepsingh.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jasdeepsingh.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jasdeepsingh.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jasdeepsingh.wordpress.com&blog=1115136&post=42&subd=jasdeepsingh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jasdeepsingh.wordpress.com/2008/06/08/the-stress-market/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/jsbhangra-128.jpg" medium="image">
			<media:title type="html">ਜਸਦੀਪ</media:title>
		</media:content>

		<media:content url="http://jasdeepsingh.files.wordpress.com/2008/06/screenshot.png?w=300" medium="image">
			<media:title type="html">Stress Counsler</media:title>
		</media:content>
	</item>
		<item>
		<title>Delhi Barcamp 4 Take Aways</title>
		<link>http://jasdeepsingh.wordpress.com/2008/05/19/delhi-barcamp-4-take-aways/</link>
		<comments>http://jasdeepsingh.wordpress.com/2008/05/19/delhi-barcamp-4-take-aways/#comments</comments>
		<pubDate>Mon, 19 May 2008 19:08:03 +0000</pubDate>
		<dc:creator>Jasdeep</dc:creator>
		
		<category><![CDATA[India]]></category>

		<category><![CDATA[Open Source]]></category>

		<category><![CDATA[barcamp]]></category>

		<category><![CDATA[delhi]]></category>

		<category><![CDATA[folksonomy]]></category>

		<category><![CDATA[Python]]></category>

		<category><![CDATA[Rails]]></category>

		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://jasdeepsingh.wordpress.com/?p=38</guid>
		<description><![CDATA[


After being postponed 2 times , The Delhi Barcamp 4 started at Amity audi quite well as scheduled. All credit to Piyush and volunteers the people behind it.
I reached the venue much early and met this guy Nilesh and IITK and IIML product , He has just started a startup and runs a music school [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="aligncenter" src="http://barcamp4" alt="barcamp4" /></p>
<p style="text-align:center;">
<p><a href="http://jasdeepsingh.files.wordpress.com/2008/05/logo.jpg"><img class="aligncenter size-full wp-image-39" src="http://jasdeepsingh.files.wordpress.com/2008/05/logo.jpg?w=400&h=127" alt="delhibarcamp4" width="400" height="127" /></a></p>
<p>After being postponed 2 times , The Delhi Barcamp 4 started at <a href="http://www.amity.edu/" target="_blank">Amity</a> audi quite well as scheduled. All credit to Piyush and volunteers the people behind it.</p>
<p>I reached the venue much early and met this guy <a href="http://nileshtrivedi.in/blog/" target="_blank">Nilesh</a> and IITK and IIML product , He has just started a startup and runs a music school and he was to <a href="http://blog.barcampdelhi.com/barcampers-music-band-lets-rock/" target="_blank">perform</a> in the evening beer party .</p>
<p>Then the event started in a formal way , But by an amazing personality <a href="http://www.linkedin.com/pub/3/785/572" target="_blank">Mr. Talwant Singh</a> , A Judge by profession who has used IT in the district courts to evolutionarily automating the  processes of District Courts, A first by some one  in Government Sector. No wonder he blogs for <a href="http://cybercases.blogspot.com/" target="_blank">cyber security</a>.</p>
<p>He presented a good talk and said build something that <strong>works and is simple to use</strong> even for an illiterate person.</p>
<p>Then it was talk on entrepreneurship incubation my Amity ppl, Then we moved to the presentation halls. First interesting talk was by <a href="http://chahiye.info/" target="_blank">chahiye</a> guys (one of the main sponsors) . The presntation was a bit over crowded by the American names but the emphasis was on <strong>building something that adds value.</strong></p>
<p>Nirat Bhatnagar said there are two ways to make a difference  :</p>
<ul>
<li>start a business and make profit only</li>
<li> start an NGO with no profit no loss.</li>
</ul>
<p>But there is middle path also , to put ethics in you business , to do something that adds value to society.</p>
<p>Then a nice talk by<a href="http://www.fizzyapps.com/" target="_blank"> two young guys</a> on building facebook apps.  They had built a cool Gift sharing app <a href="http://www.facebook.com/add.php?api_key=89ed4bf98681c9ee5b790027d08bed8f" target="_blank">iGift</a> in their summer training.</p>
<p>Another session was by <a href="http://www.alabot.com/" target="_blank">Alabot</a> guys , there product is really cool , it uses <a href="http://en.wikipedia.org/wiki/Natural_language_processing" target="_blank">NLP</a> and sits as middleware to give results for any query from different sources. The talk was more market oriented more then telling how it was built . There was demo  for getting air ticket from chennai to banglore. from IM and it provided awesome results.</p>
<p>In the mean time i met my twitter frnd <a href="http://twitter.com/mayankdhingra" target="_blank">Mayank Dhingra</a> , He is working some really cool stuff at a  startup that works in Mobile and Python . Then the guys frm quite famous <a href="http://www.slideshare.net/" target="_blank">slideshare</a> , <a href="http://twitter.com/simplyarun" target="_blank">Arun</a> and <a href="http://twitter.com/gauravgupta" target="_blank">Gaurav</a>.</p>
<p>Then it was lunch . After lunch Guneet from chaahiye told about developing web apps with <a href="http://www.salesforce.com/" target="_blank">salesforce</a>.</p>
<p>and Demo by <a href="http://www.routeguru.com/" target="_blank">RouteGuru</a> folks .</p>
<p>The the last talk was by two <em>firangs</em> Nick and Charlie from UK and Germany . They out sourced themselves to India for yet another startup for yet another <a href="http://www.rubyonrails.org/">Rails</a> app <a href="http://www.entrip.com/" target="_blank">Entrip</a> . This talk was pick of the barcamp in terms of demo and the work they had done . Entrip is mashup of Google Maps , flickr facebook and many other api&#8217;s to show travel trips by frequent travllers  on a map .</p>
<p>The two presentation i really liked were by <a href="http://www.knowprashant.blogspot.com/" target="_blank">prashant</a> on weird topic East Internet company , he elaborated how the History of expeditions lead to colonies and Wat will happen with the internet .</p>
<p>Get the <a href="http://www.slideshare.net/pacificleo/in-search-of-east-internet-company/">East Internet Company</a><a href="http://www.slideshare.net/pacificleo/in-search-of-east-internet-company/" target="_blank"> presentation</a> here.</p>
<p>The other presentation was by <a href="http://twitter.com/akshatt" target="_blank">Akshatt</a> on <a href="http://en.wikipedia.org/wiki/Folksonomy" target="_blank">Folksonomy</a> the term given to social collaboration over Internet . The power of contribution/sharing can do wonders. Get the <a href="http://is.gd/hPW">Folksonomy presentation</a> here .</p>
<p>There was quiz to go and  a beer party later , but i had to leave as i had been offred lift to gurgaon by another startupper from <a href="http://www.masplantiz.com/" target="_blank">Masplantaz</a>. He is working on some product on <a href="http://www.rubyonrails.org/" target="_blank">Rails</a> . Wish i hear another startup success story. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And Yes i got the free T-Shirt  which says <strong>&#8221; I want to change the world but they don&#8217;t provide the source code &#8220;</strong></p>
<p>This was my first <a href="http://barcamp.org/" target="_blank">barcamp</a>. I wanted to hear about <a href="http://www.python.org/" target="_blank">python</a>/<a href="http://www.djangoproject.com/" target="_blank">django</a> stuff . But it was Rails and Entrepreneurship all the way .</p>
<p>My Takeways from the Barcamp were:</p>
<p><strong>One should build some thing  that is simple and that adds value.</strong></p>
<p>Check out the <a href="http://www.flickr.com/photos/tags/bcd4/" target="_blank">Barcamp Pics at Flickr</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jasdeepsingh.wordpress.com/38/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jasdeepsingh.wordpress.com/38/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jasdeepsingh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jasdeepsingh.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jasdeepsingh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jasdeepsingh.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jasdeepsingh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jasdeepsingh.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jasdeepsingh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jasdeepsingh.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jasdeepsingh.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jasdeepsingh.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jasdeepsingh.wordpress.com&blog=1115136&post=38&subd=jasdeepsingh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jasdeepsingh.wordpress.com/2008/05/19/delhi-barcamp-4-take-aways/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/jsbhangra-128.jpg" medium="image">
			<media:title type="html">ਜਸਦੀਪ</media:title>
		</media:content>

		<media:content url="http://barcamp4" medium="image">
			<media:title type="html">barcamp4</media:title>
		</media:content>

		<media:content url="http://jasdeepsingh.files.wordpress.com/2008/05/logo.jpg" medium="image">
			<media:title type="html">delhibarcamp4</media:title>
		</media:content>
	</item>
		<item>
		<title>Print to console without using semi colon</title>
		<link>http://jasdeepsingh.wordpress.com/2008/04/24/print-to-console-without-using-semi-colon/</link>
		<comments>http://jasdeepsingh.wordpress.com/2008/04/24/print-to-console-without-using-semi-colon/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 13:27:50 +0000</pubDate>
		<dc:creator>Jasdeep</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://jasdeepsingh.wordpress.com/?p=37</guid>
		<description><![CDATA[One of my friend asked : &#8220;How can one write to console without using semi colon in Java ?&#8221;.
I tried many work-arounds . Even Googling did net help much .
I thought i should raise an exception some how thats it some thing will be written on the console. Naa , its did not work well.
Then [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>One of my friend asked : &#8220;How can one write to console without using semi colon in Java ?&#8221;.<br />
I tried many work-arounds . Even Googling did net help much .</p>
<p>I thought i should raise an exception some how thats it some thing will be written on the console. Naa , its did not work well.</p>
<p>Then a stupid workaround was to enable the verbose argument , thats it every class loaded in the JVM is traces on console.</p>
<p>The some how i tried real tricks to print my name on console ,</p>
<p>This is what i got,</p>
<pre><code>
public class Test {

 public static void main(String a[]){

 if ( System.out.append(&#8221;jasdeep&#8221;) instanceof Object ){

               }
         }
  }
</code></pre>
<p>You might be wondering , why i did not use <em>System.out.println()</em> . Because it does not return anything , So it can not be compared in if block.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jasdeepsingh.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jasdeepsingh.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jasdeepsingh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jasdeepsingh.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jasdeepsingh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jasdeepsingh.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jasdeepsingh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jasdeepsingh.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jasdeepsingh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jasdeepsingh.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jasdeepsingh.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jasdeepsingh.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jasdeepsingh.wordpress.com&blog=1115136&post=37&subd=jasdeepsingh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jasdeepsingh.wordpress.com/2008/04/24/print-to-console-without-using-semi-colon/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/jsbhangra-128.jpg" medium="image">
			<media:title type="html">ਜਸਦੀਪ</media:title>
		</media:content>
	</item>
		<item>
		<title>When Synchrozation Fails in Java</title>
		<link>http://jasdeepsingh.wordpress.com/2008/04/21/when-synchrozation-fails-in-java/</link>
		<comments>http://jasdeepsingh.wordpress.com/2008/04/21/when-synchrozation-fails-in-java/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 10:46:25 +0000</pubDate>
		<dc:creator>Jasdeep</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[synchronisation]]></category>

		<category><![CDATA[threads]]></category>

		<guid isPermaLink="false">http://jasdeepsingh.wordpress.com/?p=36</guid>
		<description><![CDATA[My blog title goes like &#8220;Ramblings about workplace, java, python, linux and web &#8221; . But  my recent posts were distracted from  this tagline. The frank answer to this is I was procrastinating. It is not i have not been learning much. I have learnt a lot of new things  professionally but [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My blog title goes like &#8220;Ramblings about workplace, java, python, linux and web &#8221; . But  my recent posts were distracted from  this tagline. The frank answer to this is I was procrastinating. It is not i have not been learning much. I have learnt a lot of new things  professionally but could not get them together to share my learning on the blog.</p>
<p>I was surfing the web to dig deep into Java, When i came across this <a href="http://rayfd.wordpress.com/2007/11/11/when-a-synchronized-class-isnt-threadsafe/">great post</a> by <a href="http://rayfd.wordpress.com/">Curious Schemer</a>.</p>
<p>Mr Ray deliberately explains things in the post that we are rhetorically asked to use ArrayList over Vector for better performance .<br />
If we need to make it thread safe. We do it this way :<br />
<code>   List list = Collections.synchronizedList(new ArrayList());   </code><br />
But it does not solves the purpose. The thread safety breaks if we do something like this :<br />
<code><br />
final List list = Collections.synchronizedList(new ArrayList());<br />
final int nThreads = 1;<br />
ExecutorService es = Executors.newFixedThreadPool(nThreads);<br />
for (int i = 0; i &lt; nThreads; i++) {<br />
&nbsp;   es.execute(new Runnable() {<br />
&nbsp;       public void run() {<br />
&nbsp;           while(true) {<br />
&nbsp;               try {<br />
&nbsp;                   list.clear();<br />
&nbsp;                   list.add(&#8221;888&#8243;);<br />
&nbsp;                   list.remove(0);<br />
&nbsp;               } catch(IndexOutOfBoundsException ioobe) {<br />
&nbsp;                   ioobe.printStackTrace();<br />
&nbsp;               }<br />
&nbsp;           }<br />
&nbsp;       }<br />
&nbsp;   });<br />
}<br />
</code></p>
<blockquote><p>As long nThreads is 1, everything runs just fine. However, increase the number of nThreads to 2, and you start getting this:</p>
<p>java.lang.IndexOutOfBoundsException: Index: 0, Size: 0</p>
<p>at java.util.ArrayList.RangeCheck(Unknown Source)</p>
<p>at java.util.ArrayList.remove(Unknown Source)</p>
<p>at java.util.Collections$SynchronizedList.remove(Unknown Source)
</p></blockquote>
<p>Now the workaround to get away with this problem , is to use block level synchronization . Synchronize the methods which update the list to the fine grain level is the best approach to avoid such exceptions .</p>
<p><code><br />
synchronized (list) {<br />
&nbsp;   list.clear();<br />
&nbsp;   list.add(&#8221;888&#8243;);<br />
&nbsp;   list.remove(0);<br />
}<br />
</code></p>
<p>I learnt my lesson here , one should use atomic level synchrozation to keep the performance and effeciency intact.</p>
<p>The <a href="http://rayfd.wordpress.com/2007/11/11/when-a-synchronized-class-isnt-threadsafe/">Full Post</a> by Mr.Ray is worth read it explains further conflicts in using synchronization .</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jasdeepsingh.wordpress.com/36/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jasdeepsingh.wordpress.com/36/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jasdeepsingh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jasdeepsingh.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jasdeepsingh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jasdeepsingh.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jasdeepsingh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jasdeepsingh.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jasdeepsingh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jasdeepsingh.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jasdeepsingh.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jasdeepsingh.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jasdeepsingh.wordpress.com&blog=1115136&post=36&subd=jasdeepsingh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jasdeepsingh.wordpress.com/2008/04/21/when-synchrozation-fails-in-java/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/jsbhangra-128.jpg" medium="image">
			<media:title type="html">ਜਸਦੀਪ</media:title>
		</media:content>
	</item>
		<item>
		<title>Fighting Traffic Chaos</title>
		<link>http://jasdeepsingh.wordpress.com/2008/04/20/how-to-fight-traffic-chaos/</link>
		<comments>http://jasdeepsingh.wordpress.com/2008/04/20/how-to-fight-traffic-chaos/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 09:28:56 +0000</pubDate>
		<dc:creator>Jasdeep</dc:creator>
		
		<category><![CDATA[India]]></category>

		<category><![CDATA[politics]]></category>

		<category><![CDATA[Industrilisation]]></category>

		<category><![CDATA[Pollution]]></category>

		<category><![CDATA[Problems]]></category>

		<category><![CDATA[Traffic]]></category>

		<guid isPermaLink="false">http://jasdeepsingh.wordpress.com/?p=35</guid>
		<description><![CDATA[Some years back when I came to City Beautiful &#8216;Chandigarh&#8217; . Like everybody who comes here I fell in love with the place. For its planned Living,Gardens, Broad roads with trees along sides. There was hardly any traffic problem those days.
There is a duet Punjabi songs which goes like :
&#8220;To drive on roads of Chandigarh [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Some years back when I came to City Beautiful &#8216;Chandigarh&#8217; . Like everybody who comes here I fell in love with the place. For its planned Living,Gardens, Broad roads with trees along sides. There was hardly any traffic problem those days.<br />
There is a duet Punjabi songs which goes like :</p>
<blockquote><p>&#8220;To drive on roads of Chandigarh is like, paper boat sailing on water flow&#8221;<br />
&#8220;The decorated round abouts are like , The embroidery done by you &#8220;</p></blockquote>
<p>This was true some years back, when traffic was sparse. </p>
<p>Chandigarh is a heaven for students for its academic institutes,entrance coaching centers,training institutes.It has attracted students here like a magnate. Industry has also been set up here in Chandigarh/Panchkula/Mohali tricity. So almost every Punjabi youth comes here looking for a job. Industry also attracts/recruits people from all over India. Although the Industrial growth has not been so steep here relative to other cities.</p>
<p>Accumulation of people here has given rise to traffic chaos in the City Beautiful. To accommodate  traffic administration has to cut down the trees along side one of the main roads to broaden it,has changed round abouts into traffic signals,has improved public transportation system. But still it is unable to contain the rising traffic. Driving at 8-9 PM has become like hell.</p>
<p>The workaround to fight traffic chaos which people like us can do is :</p>
<ul>
<li>Car Pooling for offices </li>
<li>Increase Use of bikes and bicycles</li>
<li>Better public transportation system</li>
</ul>
<p><strong>Car Pooling</strong></p>
<p>In Western countries a concept of <a href="http://en.wikipedia.org/wiki/Carpool">Car Pooling</a> was stated way back Seventies . It has broadened to SMS based / Web Based Carpooling system, and is quite successful also.</p>
<p>In India <a href="http://www.mykoolpool.com/">MyKoolPool</a> is such venture which provides Web/SMS based in Mumbai and Pune. Maybe there such venture like <a href="http://www.commuteeasy.com/index.jsp">Commute Easy</a> in Bangalore and other cities  too .<br />
We have to give push to such ventures in our cities too and In City Beautiful Chandigarh so that it can be kept beautiful.</p>
<p><strong>Using Bikes / Bicycles</strong><br />
The economic rise has thwarted the use of cars, with exponential rate . Which has definitely made the traffic more chaotic than anything else.<br />
Using a bicycle for commuting is rare by people like us. Although it is common for laborers an economically weaker people.<br />
We need to start a bicycle riding campaign, Such that people like us  make lesser use of motor vehicles for common commuting , like visiting nearby places or offices.<br />
Yes I know, there is status conscience setup in our psyche, That is the only reason we don&#8217;t use bicycles anymore. But It will be great if we can change this status conscienceness.<br />
Use of bicycle has many advantages like :</p>
<ul>
<li>Zero Pollution , It has no Carbon emission.</li>
<li>Lesser traffic , It does not need a Broad Road . </li>
<li>Better health, Cycling is a good Exercise for body</li>
</ul>
<p>Yes , Bicycle is non feasible for commuting to longer distances, But use of motor bike is still more traffic friendly , than a car.</p>
<p>Personally i use a mix of Bicycle and Motor Bike for commuting . I go to office on a bicycle and sometimes on the motor bike. In my previous organization which was near to my living place. I always used bicycle for commuting there. And mind you I was not labeled psycho or My status qoutiont was not questioned. It was welcomed by most of my friends actually. I have inspired One of my friend to ride bicycle. there are 3-4 more guys in my new organization which commute on bicycle. But we are quite a small no. people. We need to start a campaign such that It becomes a trend to ride to office on a bicycle. It is quite common in some of European countries.</p>
<p>Come On , Ride Bicycle a day and Keep the Doctor Away. <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Public Transportation</strong><br />
The public transportation system is quite messy in almost all the cities. Either the buses/trains are crowded with passengers, or the the time taken to reach the destination is quite long.<br />
I Wish If we can make public transportation system such that it gives one preference over using Car to commute.<br />
It is only possible if the</p>
<ul>
<li>buses/trains are made high on comfort.</li>
<li> Better routes to the common destinations</li>
</ul>
<p>Moreover for commuting to office locations , Initiative needs to be taken for Public/Private  partnership. Although some corporates have there private commuting vehicles. but they are not much effective. People prefer personnel vehicles over them. I hope public-private partnership can provide a better alternative. As small enterprises can also afford to tie up with public transportation system.</p>
<p>Happy Commuting, People <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jasdeepsingh.wordpress.com/35/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jasdeepsingh.wordpress.com/35/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jasdeepsingh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jasdeepsingh.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jasdeepsingh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jasdeepsingh.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jasdeepsingh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jasdeepsingh.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jasdeepsingh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jasdeepsingh.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jasdeepsingh.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jasdeepsingh.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jasdeepsingh.wordpress.com&blog=1115136&post=35&subd=jasdeepsingh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jasdeepsingh.wordpress.com/2008/04/20/how-to-fight-traffic-chaos/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/jsbhangra-128.jpg" medium="image">
			<media:title type="html">ਜਸਦੀਪ</media:title>
		</media:content>
	</item>
		<item>
		<title>Reservation and Education System of India</title>
		<link>http://jasdeepsingh.wordpress.com/2008/04/11/reservation-and-education-system-of-india/</link>
		<comments>http://jasdeepsingh.wordpress.com/2008/04/11/reservation-and-education-system-of-india/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 06:22:11 +0000</pubDate>
		<dc:creator>Jasdeep</dc:creator>
		
		<category><![CDATA[India]]></category>

		<category><![CDATA[politics]]></category>

		<category><![CDATA[reservation]]></category>

		<guid isPermaLink="false">http://jasdeepsingh.wordpress.com/?p=33</guid>
		<description><![CDATA[The headlines today are huddeled with Reservation being introduced into the IIMs and IITs (the premier institutes for giving higher education and management) for Backward and Other Backward Classes (BC and OBC) excluding their creamy layer. There has been mostly anti-reservation campaigns and little pro-reservation campaigns too.But the state has the stick in its hands [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The headlines today are huddeled with Reservation being introduced into the IIMs and IITs (the premier institutes for giving higher education and management) for Backward and Other Backward Classes (BC and OBC) excluding their creamy layer. There has been mostly anti-reservation campaigns and little pro-reservation campaigns too.But the state has the stick in its hands , it can do what it wants. </p>
<p>Rather than going into same debate whether reservations should be or should not be. I want to know :</p>
<p>Will reservations help in socio-economic upliftment of targeted masses?</p>
<p>Reservation is a just a shock therapy to prevent the damage done by our grass root Public education system. There is no sight of any improvement in&nbsp;Public education system. </p>
<p>I&nbsp;won&rsquo;t go into statistical details, But what i have experienced&nbsp;</p>
<p>I&nbsp;am product of an Village Government School in State of Punjab(One of the affluent states of India). The school where i studied was&nbsp;called the best school in the locality, But the study culture there was like, we were made to learn from the help books rather than reading texts. English was started in 6<sup>th</sup> grade&nbsp;by Social Sciences teacher because there was no English teacher and After 8<sup>th</sup> grade there was no arrangement for English language teaching. There were no extra-curricular activities, no games. It was the time when the school was called in its prime time.</p>
<p>After that the school has gone to worst conditions&nbsp;, the only way the kids&nbsp;clear is by Mass cheating in the exams. The alternative to the government schools are private schools which employ teachers on salaries of 1000 to 1500 and who are product of those government schools. They are called English medium schools , but there is hardly any healthy learning environment.</p>
<p>The economically weaker parents put there kids into Government schools and economically stronger put them into those private schools out come from both schools are almost the same. This is the story of nearly 70% of Punjab and one can imagine the status of other states.</p>
<p>Those to who study in good city schools , are taught good English, are given good environment, are made to take part extra curricular activities. They face the pressure of doing good in the exams in terms of scores . The focus is on getting scores by hook or crook rather than learning. there is no healthy competition ,There is lethal competition. We don&rsquo;t study what we love. We study what we are made to study. I want to know :</p>
<p>Are there any measures taken to improve the quality of education?</p>
<p>Revolutionary changes needs to be done in Education system, But i don&rsquo;t think there is any step being taken in this direction because  this will have long term benefits.</p>
<p>Improvement in Education system would not fetch votes, But Reservations will fetch them quick votes&nbsp;.</p>
<p>We are amused by the way India is progressing , we are amused the way&nbsp;Dhoni&rsquo;s are fetching crores. We are amused be the way India&rsquo;s riches &nbsp;has made&nbsp;into the Forbes list.</p>
<p>We don&rsquo;t care&nbsp;how the other half lives, and&nbsp; Then we are worried about the biggest Internal threat to security are Naxalites. We are amused why they are so evil, we are amused why they can&rsquo;t be like us.</p>
<p>&nbsp;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jasdeepsingh.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jasdeepsingh.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jasdeepsingh.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jasdeepsingh.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jasdeepsingh.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jasdeepsingh.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jasdeepsingh.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jasdeepsingh.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jasdeepsingh.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jasdeepsingh.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jasdeepsingh.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jasdeepsingh.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jasdeepsingh.wordpress.com&blog=1115136&post=33&subd=jasdeepsingh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jasdeepsingh.wordpress.com/2008/04/11/reservation-and-education-system-of-india/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/jsbhangra-128.jpg" medium="image">
			<media:title type="html">ਜਸਦੀਪ</media:title>
		</media:content>
	</item>
		<item>
		<title>My Shell history</title>
		<link>http://jasdeepsingh.wordpress.com/2008/04/11/my-shell-history/</link>
		<comments>http://jasdeepsingh.wordpress.com/2008/04/11/my-shell-history/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 06:16:37 +0000</pubDate>
		<dc:creator>Jasdeep</dc:creator>
		
		<category><![CDATA[Script]]></category>

		<category><![CDATA[Ubuntu]]></category>

		<category><![CDATA[awk]]></category>

		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://jasdeepsingh.wordpress.com/?p=31</guid>
		<description><![CDATA[When i opened my Google reader this morning , cam across this little awk kiddie. So ran it for my ubuntu shell. It tells the story that i have not been doing anything worthy , only  procrastinating 
history&#124;awk '{a[$2]++ } END{for(i in a){print a[i] &#8221; &#8221; i}}&#8217; &#124;sort -rn&#124;head
84 cd
66 ls
43 sudo
15 python
10 django-admin.py
6 [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When i opened my Google reader this morning , cam across this little awk kiddie. So ran it for my ubuntu shell. It tells the story that i have not been doing anything worthy , only  procrastinating </p>
<p><code>history|awk '{a[$2]++ } END{for(i in a){print a[i] &#8221; &#8221; i}}&#8217; |sort -rn|head<br />
84 cd<br />
66 ls<br />
43 sudo<br />
15 python<br />
10 django-admin.py<br />
6 svn<br />
6 ln<br />
4 youtube-dl<br />
4 pidgin<br />
4 cd..<br />
</code></p>
<p>The original script lies <a href="http://www.dehora.net/journal/2008/04/10/that-looks-about-right/">here</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jasdeepsingh.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jasdeepsingh.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jasdeepsingh.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jasdeepsingh.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jasdeepsingh.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jasdeepsingh.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jasdeepsingh.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jasdeepsingh.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jasdeepsingh.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jasdeepsingh.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jasdeepsingh.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jasdeepsingh.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jasdeepsingh.wordpress.com&blog=1115136&post=31&subd=jasdeepsingh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jasdeepsingh.wordpress.com/2008/04/11/my-shell-history/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/jsbhangra-128.jpg" medium="image">
			<media:title type="html">ਜਸਦੀਪ</media:title>
		</media:content>
	</item>
		<item>
		<title>Lisp,Python and Java</title>
		<link>http://jasdeepsingh.wordpress.com/2008/01/29/lisppython-and-java/</link>
		<comments>http://jasdeepsingh.wordpress.com/2008/01/29/lisppython-and-java/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 12:41:54 +0000</pubDate>
		<dc:creator>Jasdeep</dc:creator>
		
		<category><![CDATA[Java]]></category>

		<category><![CDATA[LISP]]></category>

		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://jasdeepsingh.wordpress.com/2008/01/29/lisppython-and-java/</guid>
		<description><![CDATA[While acting on my new year resolutions, I started reading the SICP book .
The book focuses on the aspects of computer programming fundamentals and making the reader learn this by problem solving through LISP&#160; programming language.
So in the first chapter i had to solve some problems , and one of them was :
Define a procedure [...]]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>While acting on my new year resolutions, I started reading the <a href="http://mitpress.mit.edu/sicp/">SICP</a> book .<br />
The book focuses on the aspects of computer programming fundamentals and making the reader learn this by problem solving through <a href="en.wikipedia.org/wiki/Lisp_programming_language">LISP</a>&nbsp; programming language.</p>
<p>So in the first chapter i had to solve some problems , and one of them was :</p>
<p><em>Define a procedure that takes three numbers as arguments and returns the sum of the squares of the two larger numbers.</em></p>
<p>So my implementation of this problem in LISP is here :</p>
<p><code>(defun square(x) (* x x)  )<br />
(defun sum-of-square(x y) (+ (square x) (square y)))<br />
(defun grt(a b) (if(&gt; a b) a b))<br />
(defun grt-2-sum-of-square (a b c )<br />
   (sum-of-square (grt a b)  (grt b c)  )<br />
  )<br />
(grt-2-sum-of-square 1 2 3)<br />
</code></p>
<p>I implemented the same problem with <a href="http://www.python.org/">python</a> as following :</p>
<p><code><br />
   #Returns Square<br />
def square(x):<br />
    return x*x<br />
#Returns Sum of the Squares<br />
def sum_of_square(x,y):<br />
    return square(x)+square(y)<br />
#Returns greater number<br />
def grt(a,b):<br />
    if (a&gt;b):<br />
        return a<br />
    else:<br />
        return b<br />
#Returns the sum fo square of greater numbers<br />
def grt_2_sum_of_square(x,y,z):<br />
    a=grt(x,y)<br />
    b=grt(y,z)<br />
    return sum_of_square(a,b)<br />
# If main mein module is called<br />
if __name__==&#8221;__main__&#8221;:<br />
    #print result<br />
    print grt_2_sum_of_square(1,2,3)</p>
<p></code></p>
<p>and implementation of same problem in <a href="en.wikipedia.org/wiki/Java_(programming_language)">Java</a> goes like this :</p>
<p><code><br />
public class Test {<br />
	// Returns the Square<br />
	public int square(int x){<br />
		return x*x;<br />
	}<br />
	// Returns sum of the Squares<br />
	public int sum_of_square(int x,int y){<br />
		return square(x)+square(y);<br />
	}<br />
	//Returns greater number<br />
	public int grt(int x,int y){<br />
		return (x&gt;y)?x:y;<br />
	}<br />
	//Return the sum fo square of greater numbers<br />
	public int grt_2_sum_of_square(int x,int y,int z){<br />
		int a=grt(x,y);<br />
		int b=grt(y,z);<br />
		return sum_of_square(a,b);<br />
	}<br />
	// Main Method<br />
	public static void main(String a[]){<br />
	//instantiates class<br />
	Test t=new Test();<br />
	int res=t.grt_2_sum_of_square(1, 2, 3);<br />
	System.out.print(res);<br />
	}<br />
}</p>
<p></code></p>
<p>There are easier ways of implementing it in python  and Java though . But i preferred these as i implemented the same LISP construct. I am amused by the simplicity and cleanliness of LISP code here and no. of lines i had to write for doing this.</p>
<p>I wish i should have been taught LISP in school and i would have been a better programmer <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Python gives me pleasure of code elegance and simplicity, but Java is the one i am working with . The one that got me a Job.</p>
<p>Learning new things make me feel better, that there is no end to learning.           </p>
<p class="poweredbyperformancing">Powered by <a href="http://scribefire.com/">ScribeFire</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jasdeepsingh.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jasdeepsingh.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jasdeepsingh.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jasdeepsingh.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jasdeepsingh.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jasdeepsingh.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jasdeepsingh.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jasdeepsingh.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jasdeepsingh.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jasdeepsingh.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jasdeepsingh.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jasdeepsingh.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jasdeepsingh.wordpress.com&blog=1115136&post=30&subd=jasdeepsingh&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jasdeepsingh.wordpress.com/2008/01/29/lisppython-and-java/feed/</wfw:commentRss>
	
		<media:content url="http://a.wordpress.com/avatar/jsbhangra-128.jpg" medium="image">
			<media:title type="html">ਜਸਦੀਪ</media:title>
		</media:content>
	</item>
	</channel>
</rss>