<?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>Prashanth Udupa</title>
	<atom:link href="http://www.prashanthudupa.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.prashanthudupa.com</link>
	<description>Technical and Philosophical Insights</description>
	<lastBuildDate>Tue, 20 Dec 2011 14:53:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Simple JSON Parser / Serializer in Qt</title>
		<link>http://www.prashanthudupa.com/2011/12/20/simple-json-parser-serializer-in-qt/</link>
		<comments>http://www.prashanthudupa.com/2011/12/20/simple-json-parser-serializer-in-qt/#comments</comments>
		<pubDate>Tue, 20 Dec 2011 14:45:50 +0000</pubDate>
		<dc:creator>Prashanth Udupa</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.prashanthudupa.com/?p=779</guid>
		<description><![CDATA[Today XML and JSON are hot formats for data exchange. While Qt natively supports XML, it doesnt support JSON (well directly). Most developers use external libraries like qjson to serialize QVariantMap objects to a json-string and parse json-string into QVariantMap. One of the key disadvantages of using qjson (or maybe even other libraries) is the [...]]]></description>
			<content:encoded><![CDATA[<p>Today XML and JSON are hot formats for data exchange. While Qt natively supports XML, it doesnt support JSON (well directly). Most developers use external libraries like qjson to serialize QVariantMap objects to a json-string and parse json-string into QVariantMap. One of the key disadvantages of using qjson (or maybe even other libraries) is the license. qjson for example is a LGPL library, which means using it in mobile phone apps might not be a good idea, where the general interest is to not have external dependencies. So the question is &#8211; &#8220;<strong>is it possible to have a JSON serializer/parser using Qt only &#8211; <span style="color: red;">without too much of an effort</span>&#8220;</strong>. The answer is YES!</p>
<p>We would want to have a really simple class that does all the serializing and parsing, so we declare a class like the one below.</p>
<pre>struct JSONData;
class JSON
{
public:
    static JSON&amp; instance();
    ~JSON();

    QVariantMap parse(const QString&amp; string) const;
    QString serialize(const QVariant&amp; value) const;

protected:
    JSON();

private:
    JSONData* d;
};</pre>
<p>We begin implementing the class as follows. The static <strong>instance()</strong> method is implemented as</p>
<pre>JSON&amp; JSON::instance()
{
    static JSON theInstance;
    return theInstance;
}</pre>
<p>That was easy! We now implement the <strong>constructor</strong>. One of the tricks we will be using in the implementation is this &#8211; we make use of the JavaScript JSON object to perform the serializeing and parsing for us. Towards that, we implement the constructor as follows</p>
<pre>struct JSONData
{
    QScriptEngine engine;
    QScriptValue parseFn;
    QScriptValue serializeFn;
};

JSON::JSON()
{
    d = new JSONData;

    const QString script = "function parse_json(string) { return JSON.parse(string); }\n"
                           "function serialize_json(object) { return JSON.stringify(object); }";
    QScriptValue result = d-&gt;engine.evaluate(script);

    d-&gt;parseFn = d-&gt;engine.globalObject().property("parse_json");
    d-&gt;serializeFn = d-&gt;engine.globalObject().property("serialize_json");
}</pre>
<p>Notice how we are creating JavaScript functions to parse and serialize objects. In the constructor we basically QScriptValues of the parse and serialize functions. Next, lets see how the <strong>parse()</strong> function is implemented.</p>
<pre>QVariantMap JSON::parse(const QString&amp; string) const
{
    QScriptValue result = d-&gt;parseFn.call(QScriptValue(), QScriptValueList() &lt;&lt; QScriptValue(string));
    QVariantMap resultMap = result.toVariant().toMap();
    return resultMap;
}</pre>
<p>Really really simple isnt it!</p>
<p>The <strong>serialize()</strong> function is equally simple &#8211; but for a <strong>CreateValue</strong> function dependency.</p>
<pre>QString JSON::serialize(const QVariant&amp; value) const
{
    QScriptValue arg = ::CreateValue(value, d-&gt;engine);
    QScriptValue result = d-&gt;serializeFn.call(QScriptValue(), QScriptValueList() &lt;&lt; arg);
    QString resultString = result.toString();
    return resultString;
}</pre>
<p>The <strong>CreateValue</strong> function basically converts any QVariant to a QScriptValue. QtScript module doesnt make it easy for us (no QScriptEngine::newVariant() is not useful here for all cases). We implement the <strong>CreateValue</strong> function as follows</p>
<pre>QScriptValue CreateValue(const QVariant&amp; value, QScriptEngine&amp; engine)
{
    if(value.type() == QVariant::Map)
    {
        QScriptValue obj = engine.newObject();

        QVariantMap map = value.toMap();
        QVariantMap::const_iterator it = map.begin();
        QVariantMap::const_iterator end = map.end();
        while(it != end)
        {
            obj.setProperty( it.key(), ::CreateValue(it.value(), engine) );
            ++it;
        }

        return obj;
    }

    if(value.type() == QVariant::List)
    {
        QVariantList list = value.toList();
        QScriptValue array = engine.newArray(list.length());
        for(int i=0; i&lt;list.count(); i++)
            array.setProperty(i, ::CreateValue(list.at(i),engine));

        return array;
    }

    switch(value.type())
    {
    case QVariant::String:
        return QScriptValue(value.toString());
    case QVariant::Int:
        return QScriptValue(value.toInt());
    case QVariant::UInt:
        return QScriptValue(value.toUInt());
    case QVariant::Bool:
        return QScriptValue(value.toBool());
    case QVariant::ByteArray:
        return QScriptValue(QLatin1String(value.toByteArray()));
    case QVariant::Double:
        return QScriptValue((qsreal)value.toDouble());
    default:
        break;
    }

    if(value.isNull())
        return QScriptValue(QScriptValue::NullValue);

    return engine.newVariant(value);
}</pre>
<p>Thats it! You can now simply make use of JSON class to parse and serialize JSON objects.</p>
<pre>// Parsing json strings
QString jsonString = ....
QVariantMap jsonObject = JSON::instance().parse(jsonString);

// Serializing json objects
QVariantMap jsonObject = ...
QString jsonString = JSON::instance().serialize(jsonObject)</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.prashanthudupa.com/2011/12/20/simple-json-parser-serializer-in-qt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Philosophy vs Your Philosophy!</title>
		<link>http://www.prashanthudupa.com/2011/11/20/me-vs-you/</link>
		<comments>http://www.prashanthudupa.com/2011/11/20/me-vs-you/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 14:31:16 +0000</pubDate>
		<dc:creator>Prashanth Udupa</dc:creator>
				<category><![CDATA[Insight and Inspiration]]></category>

		<guid isPermaLink="false">http://www.prashanthudupa.com/?p=755</guid>
		<description><![CDATA[Philosophy becomes a subject matter of interest when we end up asking two very important questions to ourselves. (1) What is life (or more specifically my life) all about? and (2) How should I live? Once we start our careers, earn some money and gather some property (home / stuff-for-home / car / other fancy [...]]]></description>
			<content:encoded><![CDATA[<p>Philosophy becomes a subject matter of interest when we end up asking two very important questions to ourselves. (1) <em>What is life (or more specifically my life) all about?</em> and (2) <em>How should I live?</em></p>
<p>Once we start our careers, earn some money and gather some property  (home / stuff-for-home / car / other fancy things) &#8211; we inevitably land  up asking these questions. Because all through our childhood we kept  imagining that getting to a place of felling &#8220;settled down&#8221; is a long  way off and that&#8217;s about the only thing important in life. But as we  start reaching that destination &#8211; these questions stare at us. All  through our life we grow up thinking that there is somehow an ultimate  purpose and that our life is meant to be used up to that end. Somehow,  growing up we imagined that the ultimate purpose was to get married, have  kids, get a job, have comfortable stuff for leading a socially  respectable life and so on. These days most of us get to this end rather  quickly &#8211; and soon a we get to the question &#8211; &#8220;Is  that all there is in life?&#8221;. And lo and behold &#8211; we stare at an absolute  <strong>void</strong>. That void scares us. In a desperate attempt to get rid of  that void &#8211; we fill it up with even more fancy goals, ambitions, habits.  However the questions and the void behind them continue to haunt us.  (1) <em>What is life (or more specifically my life) all about?</em> and (2) <em>How should I live? </em>And  as we being our attempt at answering these questions &#8211; we notice that  the &#8220;pat&#8221; answers don&#8217;t work. Rather the &#8220;pat&#8221; answers don&#8217;t seem to  address the entirety of our life experiences.</p>
<p>We then think &#8211; &#8220;Hey, maybe someone else also faced these questions!  How about hearing the answers other people came up with for these  questions?&#8221;. So we ask around. And it soon becomes pretty obvious that  almost everyone around us has faced these questions. And whats more &#8211;  almost everyone seems to know the answer. Over and above that, almost  everyone wants to &#8220;sell&#8221; their answer and claim that their answer is it!  In all fairness &#8211; for the most part everybody&#8217;s answer does seem to  address some aspects of the questions; but not all of it. So &#8211; we  continue inquiring into the questions.</p>
<p>That&#8217;s when we encounter philosophy. (Atleast that&#8217;s when I  encountered it). Religious texts (Gita, Puranas..), philosophical texts  (Upanishads), spiritual texts (A New Earth, Power of Now etc..),  theological texts and inspiring talks from people (<a href="http://en.wikipedia.org/wiki/Jiddu_Krishnamurti" target="_blank">Jiddu Krishnamurti</a>, <a href="http://en.wikipedia.org/wiki/Bannanje_Govindacharya" target="_blank">Bannanjay Govindacharya</a> for example), inspiring / though-provoking movies (the <a href="http://en.wikipedia.org/wiki/The_Matrix" target="_blank">Matrix</a>, <a href="http://en.wikipedia.org/wiki/Peaceful_Warrior" target="_blank">Peaceful Warrior</a>) &#8211; all seem to offer answers or at least an opening to look at / inquire into the questions.<em> [Jiddu Krishnamurti is an exception here. He doesn't offer answers and  in fact goes as far as saying that we should not take anyone's answer,  rather we should make an honest effort and inquiring into the questions  ourselves and discover our own answers to it.]</em></p>
<p>No matter which  philosophy we begin with &#8211; we will find that the first one that impacts  us a lot seems like the only one that can impact almost everybody. When  &#8220;<a href="http://en.wikipedia.org/wiki/The_Matrix" target="_blank">The Matrix</a>&#8221; was released in the year 1999 &#8211; I was very powerfully  impacted by the philosophy behind it. I was able to let go of a lot (and  I mean a real lot) of baggage. I was, so to speak, &#8220;enlightened&#8221; &#8211; when  I heard Neo say &#8220;<a href="http://www.youtube.com/watch?v=dzm8kTIj_0M" target="_blank">there is no spoon</a>&#8221;  and got the philosophical meaning behind it. And so excited I got about  it &#8211; that I really wanted everybody to watch the movie and really  really get the movie and experience the phenomenal positive impact that  it can offer. I was almost, like many other people I am sure, an  &#8220;official evangelist&#8221; for the movie. My first conversation with any new  person was &#8211; &#8220;have you watched this movie called &#8211; The Matrix?&#8221;. Pretty soon my undying fanatic excitement about the movie became obnoxious, but then that&#8217;s another story. The point I want to make is this: for everybody their current philosophy is exciting and they want everybody around them to &#8220;get&#8221; it and to that end they either evangelize it or become teachers of it. This is very normal and there is nothing great / special / unique or even worthwhile about it.</p>
<p>But then, as with any philosophy, the power and impact can fizzle out  when we are unable to make use of it in the face of new problems / life-situations and bring about a drastic change  in the quality of our lives. That&#8217;s when we either invest some  intellectual effort to make the already known philosophy relevant to our  new problems / situations in life or look for another philosophy and  get excited about yet another idea and the cycle continues.</p>
<p>Sometimes exploring a new idea / philosophy can be very refreshing. I recommend that you try it out. Trying out something new doesn&#8217;t necessarily make anything you already know or believe invalid. A believer of Bhagvad Gita and its philosophy need not avoid experiencing the value of Jiddu Krishamurti teachings, and vice versa. A follower of Eckhart Tolle&#8217;s teachings need not block out Landmark Education and its teachings, and vice versa. There is value in all ideas. The key thing to remember is that an idea that works for you; may not work for someone else. It is also important to remember that what worked for someone, may work for us as well. We wont know &#8211; until we try it out. However, I think we should perhaps stop trying too hard in &#8220;selling&#8221; our ideas to someone new. It is a generous enough gesture to share with someone the impact an idea / philosophy has had on our life and just leave it at that. The other person will chose to experience it for himself out of his own interest / freedom.</p>
<p>It is very normal for all of us to get trapped into thinking that our current philosophy of life is the only thing that works for everybody. As long as we are in that trap, we are not making ourselves available to the value of other philosophies. While our philosophy may answer a lot of questions &#8211; it is important to  know that there might be other ideas that might impact us just as much. The best thing to do would be to keep an open mind and listen to everything and make up our own philosophy of life. It is really important for us to get that for something to be &#8220;useful&#8221; the rest need not be &#8220;useless&#8221;.</p>
<p>For the Landmark Education fanboys &#8211; &#8220;For Landmark to be valid, spirituality need not be invalid&#8221;. For the spirituality fanboys &#8211; &#8220;For spirituality to be valid, Landmark need not be invalid&#8221;. My recommendation is &#8211; listen. See whats available in all ideas and STOP selling one idea / philosophy / individual as the only idea / philosophy / individual that will make life work. I don&#8217;t think one size will fit all. Your ideas / philosophy / guru is just as valid as mine. <img src='http://www.prashanthudupa.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.prashanthudupa.com/2011/11/20/me-vs-you/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Living a Transformed Life</title>
		<link>http://www.prashanthudupa.com/2011/10/05/living-a-transformed-life/</link>
		<comments>http://www.prashanthudupa.com/2011/10/05/living-a-transformed-life/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 03:16:38 +0000</pubDate>
		<dc:creator>Prashanth Udupa</dc:creator>
				<category><![CDATA[Insight and Inspiration]]></category>

		<guid isPermaLink="false">http://www.prashanthudupa.com/?p=745</guid>
		<description><![CDATA[Every aspect of &#8220;living&#8221; is a present-continuous process. For example: breathing, heart-beat, sleeping, eating food etc. In order live, one has to be breathing. It doesnt matter if one has been breathing for the last 10 years &#8211; if one isnt breathing right now, he is dead! Living a transformed life is just like that. [...]]]></description>
			<content:encoded><![CDATA[<p>Every aspect of &#8220;living&#8221; is a present-continuous process. For example: breathing, heart-beat, sleeping, eating food etc. In order live, one has to be breathing. It doesnt matter if one has been breathing for the last 10 years &#8211; if one isnt breathing right now, he is dead!</p>
<p>Living a transformed life is just like that. One has to distinguish his/her being present, slipping into bad-faith (or running a racket), choosing &#8220;what-is&#8221;, getting present to his/her strong-suits and act, being in integrity and so on &#8211; every moment and all the time in order to be transformed. It doesn&#8217;t matter if one has been distinguishing all of that for the last 10 years &#8211; if one isn&#8217;t doing it right now, he is not transformed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prashanthudupa.com/2011/10/05/living-a-transformed-life/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving at the speed of time!</title>
		<link>http://www.prashanthudupa.com/2011/09/28/moving-at-the-speed-of-time/</link>
		<comments>http://www.prashanthudupa.com/2011/09/28/moving-at-the-speed-of-time/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 18:40:03 +0000</pubDate>
		<dc:creator>Prashanth Udupa</dc:creator>
				<category><![CDATA[Insight and Inspiration]]></category>

		<guid isPermaLink="false">http://www.prashanthudupa.com/?p=736</guid>
		<description><![CDATA[Suppose that you are standing by the tree in front of your house. Suppose that a cycle and car pass by you in the same direction. You would probably observe two things: both the cycle and the car passed by you and the car moved faster than the cycle. If you dwell on this for [...]]]></description>
			<content:encoded><![CDATA[<p>Suppose that you are standing by the tree in front of your house. Suppose that a cycle and car pass by you in the same direction. You would probably observe two things:</p>
<ol>
<li> both the cycle and the car passed by you and</li>
<li>the car moved faster than the cycle.</li>
</ol>
<p>If you dwell on this for some time you can quickly figure out the following.</p>
<ol>
<li>that the cycle and car moved past you was observed only because you were standing still.</li>
<li>that the car moved faster than the cycle was also observed because you were standing still.</li>
<li>that the speed of motion of the car as observed by you and the speed of motion of the car as observed by the one riding the cycle are two separate things.</li>
</ol>
<p>This idea of speed/space relativity is not new to any of us. We have all studied about this in our physics class at school.</p>
<div>
<p id="internal-source-marker_0.34134964691475034" dir="ltr">Einstein’s relativity theory points us to the fact that time is not a constant flow if observed from a consciousness moving at the speed of light. Philosophically speaking, time appears to be passing by if and only if we are staying put (psychologically) or moving slower than the “<strong>speed of time</strong>”. That the time has passed by becomes apparent or “visible” to us only if we don’t move along with the time. I guess we are probably coming back to what Einstein said – space and time are not absolute, but relative. Relative to whom? To the observer or, put in other words, the observing consciousness.</p>
<div>
<p id="internal-source-marker_0.34134964691475034" dir="ltr">That there is a future or past occurs to us, only if we are not in the &#8220;present&#8221;. If we psychologically move along with time – there will be no past and no future – just present. Think about it &#8211; would the notion of past, present, future or even time (as in time-of-the-day) be real had it not been for an observing consciousness?</p>
<p dir="ltr">Most of us are not psychologically moving along with time. We sometimes stay put in the past by holding on to grudges, opinions, interpretations and in-general pent up feelings. Sometimes we project ourselves into the future by imagining a point in life that doesn’t have all the “uncomfortable” things that we think that we are having at what is perceived as, ‘right now’. While we are staying in the past or future; the time moves on and we are no longer in sync with it. When that happens the past or future occurs as real to us, because we desperately try to fit them into our present.</p>
<p dir="ltr">Only the present moment exists, the past or future doesn’t exist. Our habit of being in the past or future makes us go out of sync with time – thereby making the &#8220;present&#8221; an illusion; when in-fact the &#8220;present&#8221; is all that there ever is!</p>
<p dir="ltr">[Inspiration for this blog: <a href="http://www.imdb.com/title/tt0438315/">Peaceful Warrior 2006 Movie</a>]</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.prashanthudupa.com/2011/09/28/moving-at-the-speed-of-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compilation of Steve Jobs Talks</title>
		<link>http://www.prashanthudupa.com/2011/08/26/compilation-of-steve-jobs-talks/</link>
		<comments>http://www.prashanthudupa.com/2011/08/26/compilation-of-steve-jobs-talks/#comments</comments>
		<pubDate>Fri, 26 Aug 2011 11:44:44 +0000</pubDate>
		<dc:creator>Prashanth Udupa</dc:creator>
				<category><![CDATA[Moments]]></category>

		<guid isPermaLink="false">http://www.prashanthudupa.com/?p=732</guid>
		<description><![CDATA[Click Here]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.informationweek.com/byte/news/personal-tech/tablets/231600131">Click Here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.prashanthudupa.com/2011/08/26/compilation-of-steve-jobs-talks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>World Wide Economy Collapse &#8211; Explained!</title>
		<link>http://www.prashanthudupa.com/2011/08/08/world-wide-economy-collapse-explained/</link>
		<comments>http://www.prashanthudupa.com/2011/08/08/world-wide-economy-collapse-explained/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 09:10:51 +0000</pubDate>
		<dc:creator>Prashanth Udupa</dc:creator>
				<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.prashanthudupa.com/?p=730</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><iframe width="560" height="349" src="http://www.youtube.com/embed/rG1DUn8mMwk" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.prashanthudupa.com/2011/08/08/world-wide-economy-collapse-explained/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Very interesting interview of Hrithik Roshan</title>
		<link>http://www.prashanthudupa.com/2011/08/06/very-interesting-interview-of-hrithik-roshan/</link>
		<comments>http://www.prashanthudupa.com/2011/08/06/very-interesting-interview-of-hrithik-roshan/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 08:51:21 +0000</pubDate>
		<dc:creator>Prashanth Udupa</dc:creator>
				<category><![CDATA[Insight and Inspiration]]></category>

		<guid isPermaLink="false">http://www.prashanthudupa.com/?p=726</guid>
		<description><![CDATA[‎&#8221;on the contrary, it&#8217;s only through damaging the ego completely, and nullifying it, and then realizing that you&#8217;re still alive and it doesn&#8217;t mean anything, that you realize that it&#8217;s [the ego] not important&#8230;&#8221; &#8211; Hrithik Roshan Read the full interview here- http://timesofindia.indiatimes​.com/entertainment/bollywood/n​ews-interviews/We-couldnt-affo​rd-rent-Hrithik-Roshan/article​show/9492955.cms]]></description>
			<content:encoded><![CDATA[<p>‎&#8221;on the contrary, it&#8217;s only through damaging the ego completely, and nullifying it, and then realizing that you&#8217;re still alive and it doesn&#8217;t mean anything, that you realize that it&#8217;s [the ego] not important&#8230;&#8221; &#8211; <a href="http://en.wikipedia.org/wiki/Hrithik_Roshan">Hrithik Roshan </a></p>
<p>Read the full interview here- <a rel="nofollow" href="http://timesofindia.indiatimes.com/entertainment/bollywood/news-interviews/We-couldnt-afford-rent-Hrithik-Roshan/articleshow/9492955.cms" target="_blank">http://timesofindia.indiatimes​.com/entertainment/bollywood/n​ews-interviews/We-couldnt-affo​rd-rent-Hrithik-Roshan/article​show/9492955.cms</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.prashanthudupa.com/2011/08/06/very-interesting-interview-of-hrithik-roshan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The problem of &#8220;Come and Do it for me!&#8221;</title>
		<link>http://www.prashanthudupa.com/2011/08/03/come-and-do-it-for-me/</link>
		<comments>http://www.prashanthudupa.com/2011/08/03/come-and-do-it-for-me/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 21:57:18 +0000</pubDate>
		<dc:creator>Prashanth Udupa</dc:creator>
				<category><![CDATA[Insight and Inspiration]]></category>

		<guid isPermaLink="false">http://www.prashanthudupa.com/?p=721</guid>
		<description><![CDATA[In most of my blog-posts, I make it a point to write directly about myself. The idea there is to not generalize what I notice in myself for the rest of humanity. But then there are some observations that we can make that holds good for a large section of the population &#8211; which includes [...]]]></description>
			<content:encoded><![CDATA[<p>In most of my blog-posts, I make it a point to write directly about myself. The idea there is to not generalize what I notice in myself for the rest of humanity. But then there are some observations that we can make that holds good for a large section of the population &#8211; which includes myself in it. This blog-post is about such an observation that holds good for a vast majority of people around us.</p>
<p>Most of us go through our lives with a expectation for life out there to &#8220;come and do it for me&#8221; or &#8220;come and do it to me&#8221;. Its like we go out into the world and interact with the life out there and expect the world/life to make things happen for us. For example, we want the politicians to make the country a better place for us, we want the movies to make us laugh/cry/sing etc, we want the girlfriend/boyfriend to make us happy, we want the spouse to make us feel special, we want the job to bring satisfaction to us, we want the money/social-status/property to talk to the society and bring some respect/reputation for us, we want our friendships to create happiness for us and so on.</p>
<p>Take a look at one of the most powerful relationships in a person&#8217;s life &#8211; MARRIAGE. Off-late, I notice a lot of marriages translating into divorces &#8211; atleast in my friends/relatives circle. In most cases it appears as though one of the partners in the marriage expected to get something out of the relationship by imposing an expectation on how the other should make them feel. And when that expectation did not turn out, they went for a divorce. I can understand if the marriage turned into divorce after the couple stayed together for a considerable amount of time and then figured that the marriage was not working. But the instances that I am talking about are the ones where one of the partners enters into the marriage with a firm commitment to break it up!</p>
<p>I recently tumbled upon a short-movie on YouTube that kind of describes what I am talking about here (although the woman in the video does consider going for a divorce not immediately after the wedding, but after sometime). <a href="http://www.youtube.com/watch?v=e5je3SDiutI" target="_blank">Take a look at it here</a>.</p>
<p>It is almost like people enter into a relationship to feel complete OR to feel great OR to feel happy OR satisfied OR to make one&#8217;s life happen (whatever that means). <a href="http://www.youtube.com/watch?v=mMeXmFVq6cY#t=02m32s" target="_blank">I like the way Werner Erhard communicates this.</a></p>
<p>I just picked up marriage, because it is one of the most powerful relationships in life. But this kind of &#8220;come-and-do-it-to-me&#8221; outlook is also observable at work, with friends, with politics, with finance. The problem with the &#8220;come do it to me&#8221; outlook is that &#8211; life almost never &#8220;does&#8221; it for you. Therefore we kind of start feeling that life is not working for us. We really are trying to navigate with a wrong map!</p>
<p>Unless we come from a space of being whole and complete &#8211; we really have nothing to contribute to life. Unless we are clear that we are alright, whole and complete &#8211; we will always navigate through life looking for pieces to pick-up and put-together to make us feel whole and complete. If we can just take a moment and get really present &#8211; it becomes very clear that we are already whole and complete and that nothing needs to be added or removed from who we are!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prashanthudupa.com/2011/08/03/come-and-do-it-for-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Machinery of the &#8220;Brain&#8221;</title>
		<link>http://www.prashanthudupa.com/2011/07/28/machinery-of-the-brain/</link>
		<comments>http://www.prashanthudupa.com/2011/07/28/machinery-of-the-brain/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 14:40:58 +0000</pubDate>
		<dc:creator>Prashanth Udupa</dc:creator>
				<category><![CDATA[Insight and Inspiration]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://www.prashanthudupa.com/?p=719</guid>
		<description><![CDATA[I have been reading this book called Tell-a-tale Brain from V. S. Ramachandran. I must say that his books are just as pleasing to read as it is to listening to his talks. The book brings together the author&#8217;s findings from several years of research about the human brain. With interesting tales, research findings and [...]]]></description>
			<content:encoded><![CDATA[<p>I have been reading this book called <a href="http://books.google.com/books/about/The_Tell_Tale_Brain.html?id=Y5vLDglww74C">Tell-a-tale Brain</a> from <a href="http://en.wikipedia.org/wiki/Vilayanur_S._Ramachandran">V. S. Ramachandran</a>. I must say that his books are just as pleasing to read as it is to listening to his <a href="http://www.ted.com/search?q=vs+ramachandran">talks</a>. The book brings together the author&#8217;s findings from several years of research about the human brain. With interesting tales, research findings and personal opinions &#8211; VSR takes the reader on a nice tour of the human brain. I bought the book after listening to his talks on TED. I read the book from cover to cover as quickly as possible when I read it for the first time. The idea was to get a really quick gist of it. I am reading over it in more detail for the second time around now and I am sure I will read it again and again in the years to come. With every read, the mystery of the brain deepens and it is quite thrilling to know about one&#8217;s own brain.</p>
<p>Just yesterday I was reading the second chapter &#8220;Seeing and Knowing&#8221;. VSR talks about how it is a misconception to think of vision as re-projection of images, captured by the retina, on to an internal mental screen for the brain to then interpret what was seen. He opines, based on research and exhaustive study, that once the images captured by the retina of our eyes gets converted to &#8220;nerve&#8221; impulses and pushed to the brain &#8211; they are no longer treated as images. This means that the brain doesnt do as much image processing as it does &#8220;symbols&#8221; processing. The brain works on the symbols and significances captured in the images captured by the eyes. The brain is more concerned about what the image means, than the image itself. He also goes on to say that the brain is continuously guessing an interpretation of what is being seen by the eyes and finally picks up one of the guesses, that is most close to the model of reality that it has internally created. In effect, what we &#8220;perceive&#8221; is mostly a &#8220;guess&#8221; of what&#8217;s out there.</p>
<p>Philosophers can take it on from here and come up with a whole course on reality and perception <img src='http://www.prashanthudupa.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> . </p>
]]></content:encoded>
			<wfw:commentRss>http://www.prashanthudupa.com/2011/07/28/machinery-of-the-brain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Glad to get rid of my punch-bags</title>
		<link>http://www.prashanthudupa.com/2011/07/24/glad-to-get-rid-of-my-punch-bags/</link>
		<comments>http://www.prashanthudupa.com/2011/07/24/glad-to-get-rid-of-my-punch-bags/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 19:02:55 +0000</pubDate>
		<dc:creator>Prashanth Udupa</dc:creator>
				<category><![CDATA[Insight and Inspiration]]></category>

		<guid isPermaLink="false">http://www.prashanthudupa.com/?p=713</guid>
		<description><![CDATA[Over the years, I have found out something about me &#8211; I am generally glad to find a punch-bag. Everytime I encounter situations that are uncomfortable for me, that are an irritation for me or that show me in bad-light; I simply go to my punch-bag and beat it up. The more I get present to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" style="margin: 5px; border: 2px solid black;" src="http://www.inkity.com/shirtdesigner/prints/clipArt1/A6880508.png" alt="" width="317" height="293" /></p>
<p>Over the years, I have found out something about me &#8211; I am generally glad to find a punch-bag. Everytime I encounter situations that are uncomfortable for me, that are an irritation for me or that show me in bad-light; I simply go to my punch-bag and beat it up. The more I get present to this habit, the more I am present to just how petty and nasty I am!</p>
<p>I have gotten rather clever and good at picking punch bags every now and then; just so that I can keep them around for when I need them. If I took you to my <a href="http://www.thefreedictionary.com/godown">godown</a> and showed you all my punch-bags you would not be all that amazed &#8211; because there is a good chance that you have atleast some of them in your own godown. I have a punch-bag called &#8211; &#8220;I did not have a girlfriend in high-school&#8221;. I have another punch-bag called &#8211; &#8220;I was not smart enough to get into IIT&#8221;. Yet another one called &#8220;I was dumped&#8221;. &#8220;I was humiliated in front of&#8230;.&#8221;. &#8220;My mother did not allow me to go out and play sports enough&#8221;. &#8220;My friends did not keep in touch all that much&#8221;. &#8220;Some people keep too much in-touch&#8221;. &#8220;The Police don&#8217;t do a good job&#8221;. &#8220;Politicians are corrupt&#8221; And so on. I am sure you can recognize some of my punch-bags from your own godown.</p>
<p>Punch-bags are very comforting. They give an opportunity for ventilating stress that gets accumulated during the normal course of events in life. But the unfortunate part is that I go to my punch-bags very often; almost as if I am uninterested in making space for the events/people/places that show up in life. Everytime I am up-against or in-the-face of a situation that is uncomfortable &#8211; I simply dont provide myself an opportunity to be there and experience it fully and may be even transcend it. Because, it is that much more easy to go and beat one or more of my punch-bags. I have done it before and I know that I can beat em up as much as I want.</p>
<p>But this habit is limiting the range of things that I can experience in life. It is limiting my ability to be creative in the face of unpleasant situations. When I discovered this for the first time &#8211; I tried giving up my urge to go to my punch-bag and beat it up. And that exercise actually revealed something for me.</p>
<p>I live in a place called Girinagar in Bangalore. Near my house is a public hall where all sorts of cultural and political gatherings take place. Everytime an event takes place, the organizers install those annoying loud-speakers on light-poles all over the locality. Unfortunately though, one of their favorite light-poles is right in front of my bedroom. Usually the events happen around the evening; but the organizers start playing loud music from morning 8 AM! And I am sure no one wants to be in this situation, especially on a Sunday morning &#8211; where the &#8220;awakening&#8221; normally happens around 10 AM. So, anyway, everytime this thing happens &#8211; I get irritated and angry. I go beat-up my punch-bag that says &#8220;politicians are goondas&#8221; and/or &#8220;the police dont do their job&#8221;. The way I beat the punch-bag is by hurling curses at random imaginary cops and/or politicians and making the scene at home even more irritating for my wife. But, the last time this happened, I gave an opportunity to myself for giving up my punch-bag(s). First I created some space for the loud-speakers and noise to be. This really relieved me of the effort that I had to invest in making them (organizers, police and politicians) as enemies in my mind. I called up the nearest police-station and shared with the cop on the phone what I was going through. He told me to speak to his superior, and then to his superior and so on. Until I managed to speak to the SI of this locality, who was kind enough to visit me at my place and really resolve the issue within minutes. I spoke to the organizers and shared with them that Sunday is really all the my wife and I get to relax and that we really would appreciate if they did not play the loud music. So they turned off the loud speaker near my house, but continued to play light-music near the venue. The Police also gave me the phone number of the local corporator, who also assured on phone that he will ensure control of noise pollution when events get organized. Events still do get organized here and they still do put loud speakers, and I sometimes still have to go talk to the organizers/police &#8211; but the these days they are far more sensitive to noise pollution than they were before. So giving up my attachment to 2 of my punch-bags payed-off! It gave me an opportunity to connect to police and corporators, people who I had never connected to in life before. People who I thought are ones that I should always avoid and stay away from. What I discovered was that they were infact very happy to be of support.</p>
<p>Inspired by this &#8211; I am giving up all of my punch-bags now. I have emptied that godown. When I am present, I can even catch myself unconsciously stocking up new punch-bags and give it up much before they constrain my ability to just be with things and create space for events/people/places to show up in life.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prashanthudupa.com/2011/07/24/glad-to-get-rid-of-my-punch-bags/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

