﻿<?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/"
	>

<channel>
	<title>Chillout Lounge</title>
	<atom:link href="http://logukrishnan.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://logukrishnan.net</link>
	<description>Thoughts...Perceptions...Opinions...</description>
	<pubDate>Tue, 20 Oct 2009 07:32:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Life&#8230; Before &amp; after marriage… A Honest loopback, after a year of  Marriage!</title>
		<link>http://logukrishnan.net/2009/10/05/life-before-after-marriage%e2%80%a6-a-honest-loopback-after-a-year-of-marriage/</link>
		<comments>http://logukrishnan.net/2009/10/05/life-before-after-marriage%e2%80%a6-a-honest-loopback-after-a-year-of-marriage/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 11:28:25 +0000</pubDate>
		<dc:creator>Logu Krishnan</dc:creator>
		
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://logukrishnan.net/?p=81</guid>
		<description><![CDATA[
I have a habit when it comes to reading books, I usually take a longer time to finish a book.. Sometimes 6 months! Also I&#8217;m not a avid reader who gets the next so-called bestsellers and finish it off right away, I never found any reason for most of the books to be best-sellers. To [...]]]></description>
			<content:encoded><![CDATA[<p><font face="georgia"><br />
I have a habit when it comes to reading books, I usually take a longer time to finish a book.. Sometimes 6 months! Also I&#8217;m not a avid reader who gets the next so-called bestsellers and finish it off right away, I never found any reason for most of the books to be best-sellers. To me a book is something not just to pass the time but to stimulate the mind and kindle your thoughts. Be it fiction, non-fiction, sci-fi whatever - anything that does not make my brain think is a junk (of course, in my humble opinion). If I find it worth reading, I always take a long time and take it slow so that the characters get absorbed in me and I understand what the author is really trying to convey. It also allows to live in a magical strange land with other characters&#8230; Well, to the point - I was reading (still reading) Brida by Paulo Coelho which made me (rather inspired me) to write down this blog.. Not many authors have that impact to make you write.</p>
<p>Disclaimer: The book really allowed me to go down the memory lane and re-kindled my past and I&#8217;ve written everything that came to my mind without any censorship.. I&#8217;m writing this sitting at the London Airport while waiting for my flight&#8230; So if you find this crappy/boring in between, feel free to skip… I sure do encourage that <img src='http://logukrishnan.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><font face="georgia"><i><br />
&#8220;… The Other day, I spoke to you about one of the great secrets of magic: the Soulmate. The whole of man&#8217;s life on the face of Earth can be summed up by that search for his Soulmate. He may pretend to be running after wisdom, money or power, but none of that matters. Whatever he achieves will be incomplete if he fails to find hi Soulmate…&#8221; {Excerpt from Brida, Paulo Coelho}<br />
</i></font></p>
<p>Yay Yay Yay…cut..cut&#8230; Sounds sweet isn&#8217;t it?! But&#8230; Let me be honest, Though I vouch this 100% today, I was in complete disagreement of such noxious statements for most of my life. I believed these were fairy tale flowery dialogues and not for real men! How could a Girl or a Women can make such a impact on Men&#8217;s life? For most of my life, I felt… No Way.. You don&#8217;t need a women to live the rest of the life..I could live as single till the end, and marriages are for people who are bound by social pressure. These were my true thoughts and argue with most of the people I see at that time!!</p>
<p>May be this could be because the way I started my life, I was on my own terms immediately after my high school, my dad had a great financial difficulty and his own reasons for not able to afford me a university education and he even suggested to stop dreaming of colleges and do some daily wage jobs. He said an astrologer said that only daily wage jobs will fit me and education is not written in my destiny, and I can never become SOMEONE&#8230; probably that was one of the devastating moments of my life, specially after being one of the school topper and scoring 100% in few of the subjects I took… after three month of depression and not speaking to my dad even after that [yeah! It sounds funny now :)], I had to decide that I had to live life on my own terms, gained my courage and joined the university without even having a clue of how I would pay my fees! Well, I didn&#8217;t know anybody in this world except my mom and dad at that age! but few good souls on earth helped and I got a job with the computer programming skills I had (My Boss checked that I didn&#8217;t violate child labor laws by working at that age!). The Job helped me to pay only 1/2 of the monthly fees and I always had fee-arrears and my name was constantly on the fee defaulter notice board list. This is when Life started becoming very rigid with 18-20 Hrs of work + studies everyday. 5 years of life went like this without a holiday, good moments et al, per day expenses I allowed myself to spend was 1.25 rupees (3 cents!) for bus ticket and 1 banana for the dinner and sometimes without dinner. At that immature age, It was little difficult to admit that I had to work and slog, when rest of my friends were doing what someone would do in their childhood and teenage - a chilled out college life, frequent travel, riding expensive bikes, going behind girls&#8230; I didn&#8217;t have time for any of these.. First time in life, got the feeling that I&#8217;m cursed and lost the happy childhood and teenage life!!</p>
<p>But&#8230; I ensured my pay check is doubled every six months.. After graduation, the intensity just got increased and was on full swing in my career and all I wanted to prove was I could become SOMEONE, I can be educated, I can earn more money than my dad ever did in his entire lifetime. And I did earn and burned the money, and happened to buy my car when I was 24 years old, and the Honda showroom had a note displayed on their showroom with my name and photo as &#8220;The Youngest Owner of a Honda&#8221; !! for few days&#8230; It gave me a pride, because at 24 most of my friends were either searching for a job, scratching to buy a bike and still borrowing money from their dad for their daily expense! By gods grace… I grew up in career quite fast, travelled across the world almost every other month (travelled and worked at around 20 different places around the world - Coimbatore, Chennai, Hyderabad, Bangalore, Delhi, Detroit, Redmond, Seattle, Dubai, Fujairah, Abudhabhi, Sharjah, Umm al-Quwain, Colombo, Kandy, Southfield, Farmington Hills, Detroit, Singapore) Also, got few honors and prestigious awards from Microsoft, and was invited to visit MSFT HQ at Redmond and meet with almost the most of the idols including Bill Gates and meet the product teams of MSFT, I wished my dad was there to see when I stood along side of Bill G&#8230; at work climbed the ladder very fast&#8230;</p>
<p><b>It&#8217;s been 10 years on this quest now, Though these days I earn x times more, even a single rupee was very valuable those days… and that’s when I learnt how one rupee can make a lot of difference. I also learnt that dinner could be finished in 1 rupee… And that’s when life taught me money definitely matters than human values!! And that’s the same time I started to disrespect money!!</b></p>
<p>Glory didn&#8217;t come without any side effects&#8230; over these periods I had become very opinionated, arrogant, complaining and speaking loud non-stop 24/7!! Speak very harsh to people and write harsh stinker emails.. I once wrote a stinker mail to one of my DBA in the team - which made him quit the next day! For which I feel bad now but did not care earlier. At that time, I think quite frankly I started feeling a sense of emptiness filled in my mind. Once my mom was very upset and she said its high time to start Living the Life… Start Living the Life? The sense of emptiness said my mom is correct and as a immediate step I thought of moving to a different place a different country perhaps and may be search for a GIRL!!</p>
<p>So, I Chose to move to London and started processing my Visa through Sunil, one of my good friend who lives there. I was at the end of official visa processing and about to pack my bags to London. Incidentally, at the same time Xavier got hold of my resume and forwarded to Bangalore based Aditi Technologies and was pushing me almost every night to attend the interview. One evening I thought what the heck let me do this and booked a return flight for same day and came to Bangalore. I happened to be in Bangalore for whole 1 day at interviews and when I was on my flight back to Chennai, I decided I&#8217;m not going to London instead move to Bangalore. My dad called me INSANE! Bang.. Dude I&#8217;m used to these now <img src='http://logukrishnan.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Bangalore was 21st City I moved in to make the living, But I didn&#8217;t know that this is the city that would add meaning to my life!</p>
<p>I moved to Bangalore with almost zero expectations, I said to myself I&#8217;m not here to Impress anyone nor to climb the corporate ladder or serve anyone&#8217;s ego - but just to live the life as it comes… and most importantly not to be arrogant and harsh but to achieve the tasks by understanding them and seeing through them and make cautious decisions. I started shedding out lots of unwanted friendships and people I know, and I wanted to choose the people I&#8217;m going to live with. I&#8217;m fine with living 10 people who love me, rather than 100 who stress me out. All I wanted is to identify few people and nurture &amp; grow those relationships around me.. It&#8217;s more like building a beautiful garden around your own house.</p>
<p>Marriage - Well to be frank all along this journey, I happened to meet lots of girls, most of the girls I&#8217;ve met were very artificial to me. They were confused adolescents, I felt they didn&#8217;t know what they really want in life, but they were searching for something constantly. It was instantaneous, if I could speak to them for 10 minutes they spoke 3 Minute Sweet Talk + 3 Minute Complaints + 4 Minute just plain LIES!! I know I sound rude, but that&#8217;s the truth!! I used to think how women could think men are such a dumbos!! But yet men have to smile and listen and speak back. In middle of all this artificialness, I happened to see a girl who spoke just truth and a complete no-nonsense…</p>
<p>Ashwini joined the team I was leading, Initially I thought she must be one of those artificial types. But as I spoke to her, she was different - she was honest in most of the things she did and never tried to muffle up things. And infact during my birthday, whole of my team got together at 9th Mile dhaba and each were saying good things about me one by one… and Ashwini was the only one who started saying what was WRONG in me and how I should correct those behaviors! That was a head-turner for me… and I wanted to speak more to this girl..</p>
<p>And we started speaking more, incidentally one of my customer - Breanna came to Bangalore from Seattle. She wanted to go around and explore bangalore. So as a team we took her out for Indian cinemas, Restaurants et al.. One day she wanted to purchase Indian Sarees and explore Indian Street life, for which Me and Ashwini accompanied Breanna. This is when we spoke more and the more I spoke I was surprised to see that this girl was full of truth and honesty. That day after dropping Breanna, I offered her to go for a long drive to Mysore road (well, I wanted to speak my mind with someone who does not play mind games, who does not pull you down, who does not laugh at you, who does not want to spit on me when I turnaround… in essence I wanted to speak to someone who will be truthful and speak back honestly) All along the Mysore Road and we stopped at KAMAT for a coffee - we were speaking and was in silence both at the same time… While we were on our way back to Bangalore, something clicked and told the brain - MARRY HER!!</p>
<p>Yep, I&#8217;ve heard people saying you cannot make a decision on marrying someone within few days! I would like to strongly deny and this sounds like losers theory - who does NOT LISTEN TO THEIR OWN HEART but trying to compare all worldly materialistic similarities during their coaching periods. YOU DON’T NEED YEARS TO UNDERSTAND A WOMEN, even if this theory is true how would someone determine how many they need to understand a women? 2 years? 5 years? 10 years? My Nanny used to say that &#8220;Women are like the musical instrument Veenai, which would release its secrets to only those who know how to play its strings like a master&#8221; - I felt Ashwini was perfectly tuned for me and didn&#8217;t took much time or difficulty in understanding her.</p>
<p>Trust the Instinct… Instinct is nothing but your true self&#8230;</p>
<p>My dad used to pester me to give a specification of girl, so that he could search and find a girl for me! I never replied him and I always felt that he can never find a girl for me because he never know me fully!</p>
<p>But I had 3 things in my mind that I would expect from the girl I marry&#8230;<br />
1. I should be able to speak my mind without hiding anything to her sitting across a table over a cup of coffee…<br />
2. Should have Zero EGO in front of her, and I should be my true-self when I&#8217;m with her!<br />
3. I must be comfortable and man enough, to cry in front of her when I’m grounded some times…</p>
<p>1 &amp; 2 I was very comfortable with Ashwini even before marriage and on 3rd I thought its just matter of days after I get married and I was not wrong at all&#8230; !!</p>
<p>Very interestingly she also felt the same, and we got married in matter of few days <img src='http://logukrishnan.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> and even before I could realize it&#8217;s our 1st Year Anniversary <img src='http://logukrishnan.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Now I have 2 families, 2 mom and 2 dads and 2 sisters and a younger brother too!</p>
<p>Now the world seems more beautiful and very fulfilling… it’s difficult to express what she has done for me…<br />
For almost an year now, I was not doing anything, I did not meet up with friends, did not keep up with the world, No Diet, probably this whole year has been laziest year of all these years, but I just wanted to laze around free my mind… Remove all the worldly toxins from the mind and trust me I feel I fresh than ever&#8230;</p>
<p>&#8220;There is something I had never told her, that she with her affection and her gaiety, had been largely responsible for me to have rediscovered the meaning of life, that her love had driven me to the far corners of the Earth, because I needed to be rich enough to buy some land and live in peace with her for the rest of my days, lay there in her arms and close the eyes and sleep like a child&#8230;&#8221;</p>
<p><font face="georgia"><i></p>
<p>&#8220;If in the beginning, there was so few people on the face of Earth, and now there are so many, where did all those new souls come from?</p>
<p>The answer is simple. In certain reincarnations, we divide into two. Our souls divide as do crystals and stars, cells and plants.<br />
Our souls divides in two, and those new souls are in turn transformed into two and so, within a few generations, we are scattered over a large part of Earth.</p>
<p>And does only one of those parts know who it is???</p>
<p>We form part of what the alchemists call the Anima Mundi, the soul of the world. The truth is that if the Anima Mundi were merly to keep dividing, it would keep growing, but it would also become gradually weaker. That is why, as well as dividing into two, we also find ourselves. And that process of finding ourselves is called Love. Because when a soul divides, it always divides into a male part and a female part.</p>
<p>That&#8217;s how the Book of Genesis explains it: the soul of Adam was split in two, and Eve was born out of him.</p>
<p>In each life, we feel a mysterious obligation to find at least one of those Soul Mates. The Greater Love that separated them feels pleased with the Love that brings them together again. This is called Marriage&#8221;<br />
<br /> {Excerpt from Brida, Paulo Coelho}<br />
</i></font></p>
<p>My mom is happy and very relaxed these days… but she has a question.. Of all the places how did you find a girl who is from a small town &#8220;Udupi&#8221; - which you have never visited in your entire life ? <img src='http://logukrishnan.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Destiny…</p>
<p>Bangalore has been a city that has added a lot of meaning to life. Let&#8217;s see what else Life has in store for me here..</p>
<p>Alrighty, the gate is announced and I got a flight to catch… ciao…</p>
<p>Logu Krishnan<br />
5th October 2009 12:13 PM<br />
London Heathrow Airport<br />
</font></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flogukrishnan.net%2F2009%2F10%2F05%2Flife-before-after-marriage%25e2%2580%25a6-a-honest-loopback-after-a-year-of-marriage%2F&amp;linkname=Life%26%238230%3B%20Before%20%26amp%3B%20after%20marriage%E2%80%A6%20A%20Honest%20loopback%2C%20after%20a%20year%20of%20%20Marriage%21"><img src="http://logukrishnan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://logukrishnan.net/2009/10/05/life-before-after-marriage%e2%80%a6-a-honest-loopback-after-a-year-of-marriage/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Parallel Programming in C# 4.0 using Visual Studio 2010</title>
		<link>http://logukrishnan.net/2009/06/09/parallel-programming-in-c-40-using-visual-studio-2010/</link>
		<comments>http://logukrishnan.net/2009/06/09/parallel-programming-in-c-40-using-visual-studio-2010/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 10:44:36 +0000</pubDate>
		<dc:creator>Logu Krishnan</dc:creator>
		
		<category><![CDATA[C#]]></category>

		<category><![CDATA[Parallel Programming]]></category>

		<category><![CDATA[Visual Studio 2010]]></category>

		<guid isPermaLink="false">http://logukrishnan.net/?p=66</guid>
		<description><![CDATA[Downloaded Visual Studio 2010 Beta 1 yesterday and as I was glancing through it strike to me that this version is stuffed, unless the previous two predecessors VS2005 &#38; VS2008.
Framework has been more enhanced and visual studio IDE itself have got overhauled a bit. Well, I&#8217;m not going to give you a list of ALL [...]]]></description>
			<content:encoded><![CDATA[<p>Downloaded Visual Studio 2010 Beta 1 yesterday and as I was glancing through it strike to me that this version is stuffed, unless the previous two predecessors VS2005 &amp; VS2008.<br />
Framework has been more enhanced and visual studio IDE itself have got overhauled a bit. Well, I&#8217;m not going to give you a list of ALL features – it&#8217;s been blogged already around the world. Better Google it or Bing it with &#8220;VS2010+Features&#8221;</p>
<p><img src="http://aditiblogs.com/blog/files/2009/06/060709-1708-parallelpro12.png" border="0" alt="" /></p>
<p>However, few notable features that caught my eyes are &#8220;Parallel Programming&#8221;, &#8220;F# - Functional Programming&#8221;, &#8220;Velocity – Distributed Caching&#8221;, &#8220;Azure Tools&#8221; and more important of all the evolving Team system.</p>
<p>But I first wanted to dirt my hand with Parallel Computing, because if you are a computer science student – well, you would be more excited about this than others.<br />
Remember the big pillow sized books that we used to read to make this work? Well, things have changed and world have shrunk already. Though I cannot explain all the nitty gritty of parallel programming I will try this to explain in LAY MAN Terms.</p>
<p>Well, during the Stone Age [!] - Most of the computers in the world had only ONE Processors, except those big beasty servers which are always locked up in rooms with high security (well, usually *nix or Solaris servers) – these beasty servers used to manage most of the corporations. These servers had multiple processors and it took huge efforts to write software&#8217;s and manage them.</p>
<p>Welcome to the modern world – Every household and every laptop being sold these days at least have two or more processors.</p>
<p>Now – that has posed us a BIG Question? Hardwares have evolved, but has our software evolved to execute on multiple processors? – The answer is NO. At least not in the mainstream programming world – let&#8217;s say for example what would happen</p>
<ol>
<li>If we execute a simple FOR Loop</li>
<li>That would call a service (that takes a longer time)</li>
<li>… and execute sequentially for N Times</li>
</ol>
<p>On a single processor this is acceptable and we might use threads to increase the efficiency.</p>
<p>Is this still acceptable on a multiple processors? The answer is no. Fine, but how do we get efficiency without the hurdles of running and managing too many threads? Shouldn&#8217;t there be an easier way out for this?</p>
<p>Alrighty, without much ado, let me show you how easy(!) this is and a little insight on what happens behind the scenes. Let&#8217;s churn out a quick code here based on the same questions we have. Let us say a real long process (Well it could be about counting the stars in the Universe<span style="font-family: Wingdings">J</span>, huh) and let us say you want to do this N times.</p>
<p>In our quest to count all the stars in the universe, let&#8217;s first create a data structure for the star and add to the universe, and let us use the good ol` mother of all loops the &#8220;FOR&#8221; Loop, and see how much inefficient this loop has become these modern days!!</p>
<p><img src="http://aditiblogs.com/blog/files/2009/06/060709-1708-parallelpro21.png" border="0" alt="" /></p>
<p> </p>
<p><span style="color: red;font-size: 12pt"><strong>&#8220;The Sequential execution took almost 30 seconds in my Dual Core Computer.&#8221; </strong></span></p>
<p><img src="http://aditiblogs.com/blog/files/2009/06/060709-1708-parallelpro32.png" border="0" alt="" /></p>
<p>And here is the Parallel Computing version of the same method. Yes, the for loop has been replaced with Parallel.For a new entry in System.Threading namespace.<br />
How simpler can this get to?</p>
<p><img src="http://aditiblogs.com/blog/files/2009/06/060709-1708-parallelpro42.png" border="0" alt="" /></p>
<p><img src="http://aditiblogs.com/blog/files/2009/06/060709-1708-parallelpro5.png" border="0" alt="" /></p>
<p><span style="color: #00b050;font-size: 12pt"><strong>VOILA! The Parallel execution took Just <span style="text-decoration: underline">3 Seconds</span> in my Dual Core Computer. </strong></span></p>
<p>Well, That&#8217;s a significant performance improvement without Hardware Scale-out or Scale-up, all we are doing is using the existing hardware resource efficiently. So much to a FOR Loop <span style="font-family: Wingdings">J</span>, Huh. 30 Seconds of execution have become 3 seconds instantly. Look closer to the screenshot – the stars are not counted sequentially, instead it allocates the task to the available CPU in parallel.</p>
<p>Because the loop is run in parallel, each iteration is scheduled and run individually on whatever core is available. This means that the list is not necessarily processed in order, which can drastically impact your code. You should design your code so that each iteration of the loop is completely independent from the others. Any single iteration should not rely on another in order to complete correctly.</p>
<p>Let us catch up more on the insights soon on next part of the same series&#8230;</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flogukrishnan.net%2F2009%2F06%2F09%2Fparallel-programming-in-c-40-using-visual-studio-2010%2F&amp;linkname=Parallel%20Programming%20in%20C%23%204.0%20using%20Visual%20Studio%202010"><img src="http://logukrishnan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://logukrishnan.net/2009/06/09/parallel-programming-in-c-40-using-visual-studio-2010/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PERFORMANCE Code Killer – Unaligned Memory - C# Structs</title>
		<link>http://logukrishnan.net/2009/02/24/performance-code-killer-%e2%80%93-unaligned-memory-c-structs/</link>
		<comments>http://logukrishnan.net/2009/02/24/performance-code-killer-%e2%80%93-unaligned-memory-c-structs/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 10:41:41 +0000</pubDate>
		<dc:creator>Logu Krishnan</dc:creator>
		
		<category><![CDATA[C#]]></category>

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

		<guid isPermaLink="false">http://logukrishnan.net/?p=64</guid>
		<description><![CDATA[Recently I was analyzing a .NET Application for performance which had lots of structs defined in it, and happened to hit a strange reality. Unaligned Memory problem!
I was running a profiler, and found that the memory allocated for few structs are huge than it should normally allocate (based on my own math of counting the [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: Segoe UI;color: black;font-size: 10pt">Recently I was analyzing a .NET Application for performance which had lots of structs defined in it, and happened to hit a strange reality. </span><span style="font-family: Segoe UI;color: black;font-size: 10pt">Unaligned Memory problem!<br />
</span><span style="font-family: Segoe UI;color: black;font-size: 10pt">I was running a profiler, and found that the memory allocated for few structs are huge than it should normally allocate (based on my own math of counting the bytes). When I probed further, there was an interesting discovery. Read on… </span></p>
<p><span style="color: black"><span style="font-family: Segoe UI;font-size: 9pt"><strong>Alright here is a little head spinner… What is the difference between the following structures?</strong><br />
</span><span style="font-family: Courier New;font-size: 10pt"><br />
struct BadStructure<br />
{<br />
char c1;<br />
int i;<br />
char c2;<br />
}</span><span style="font-family: Tahoma;font-size: 8pt"><br />
</span><span style="font-family: Segoe UI;font-size: 10pt"><strong>Nothing much, except the jumbled type declarations… Huh?<br />
</strong><br />
Fine, Now let&#8217;s look at the size of these structures,</span></span></p>
<p>struct GoodStructure<br />
{<br />
int i;<br />
char c1;<br />
char c2;<br />
}</p>
<p>The size of <span style="text-decoration: underline">BadStructure</span> Structure in:<br />
.NET Framework <strong>3.5</strong> : Managed sizeof= <strong>12 Bytes</strong>, Marshal.Sizeof = <strong>12 Bytes</strong></p>
<p>The size of <span style="text-decoration: underline">GoodStructure</span> Structure in:<br />
.NET Framework <strong>3.5</strong> : Managed sizeof= <strong>8 Bytes</strong>, Marshal.Sizeof = <strong>8 Bytes</strong></p>
<p>[Note: Size of int=4, char=2]</p>
<p>The Reason behind these differences is &#8220;BYTE ALIGNMENT&#8221;, As with the default packing in unmanaged C++, integers are laid out on four-byte boundaries, so while the first<br />
character uses two bytes (a char in managed code is a Unicode character, thus occupying two bytes), the integer moves up to the next 4-byte boundary, and the second character uses the subsequent 2 bytes. The resulting structure is 12 bytes when measured with Marshal.SizeOf.</p>
<p>32 bit microprocessors typically organize memory as shown below.</p>
<p><span style="font-family: Courier New;color: #555555;font-size: 10pt"><br />
        Byte0  Byte1  Byte2 Byte3 </span><span style="font-family: Courier New;color: #555555;font-size: 10pt"><br />
0&#215;1000 </span><span style="font-family: Courier New;color: #555555;font-size: 10pt"><br />
0&#215;1004   A0     A1     A2     A3 </span><span style="font-family: Courier New;color: #555555;font-size: 10pt"><br />
0&#215;1008 </span><span style="font-family: Courier New;color: #555555;font-size: 10pt"><br />
0&#215;100C          B0     B1     B2 </span><span style="font-family: Courier New;color: #555555;font-size: 10pt"><br />
0&#215;1010  B3 </span></p>
<p><span style="color: black"><span style="font-family: Segoe UI;font-size: 10pt">Most of the processer architectures cannot read data from odd addresses.<br />
Processor Architectures are inefficient in reading the data if it starts at an address not divisible by four.<br />
Memory is accessed by performing 32 bit bus cycles. 32 bit bus cycles can however be performed at addresses that are divisible by 4. So for efficiency purposes, compilers add the so-called pad bytes. The reasons for not permitting misaligned long word reads and writes are not difficult to see. For example, an aligned long word A would be written as A0, A1, A2 and A3.</span></span><span style="color: black;font-size: 8pt"><span style="font-family: Tahoma"><br />
</span><span style="font-family: Segoe UI">Here is the IL. </span></span><span style="font-family: Courier New;color: #555555;font-size: 10pt"><br />
.class nested private sequential ansi sealed beforefieldinit BadValueType </span><span style="font-family: Courier New;color: #555555;font-size: 10pt"><br />
extends [mscorlib]System.ValueType<br />
{<br />
.field public char c1<br />
.field public char c2<br />
.field public int32 i<br />
</span><span style="font-family: Courier New;color: #555555;font-size: 10pt">} </span><span style="color: black;font-size: 8pt"><span style="font-family: Tahoma"><br />
<strong>In the .NET Framework 3.5, the JIT does enforce a Sequential layout (if specified) for the managed layout of value types</strong>,<br />
</span><span style="font-family: Verdana">We can use the <strong>System.Runtime.InteropServices</strong> namespace and the <strong>StructLayoutAttribute</strong> class to control the physical layout of the data fields in the Microsoft .NET Framework 3.5<br />
</span></span></p>
<p>Thus the microprocessor can read the complete long word in a single bus cycle. If the same microprocessor now attempts to access a long word at address 0&#215;100D, it will have to read bytes B0, B1, B2 and B3. Notice that this read cannot be performed in a single 32 bit bus cycle. The microprocessor will have to issue two different reads at address 0&#215;100C and 0&#215;1010 to read the complete long word. Thus it takes twice the time to read a misaligned long word.</p>
<p>The following byte padding rules will generally work with most 32 bit processor.<br />
a. single byte numbers can be aligned at any address<br />
b. Two byte numbers should be aligned to a two byte boundary<br />
c. Four byte numbers should be aligned to a four byte boundary</p>
<p>This is the cause of the difference.<br />
<strong>Fine…. How do we fix this ?</strong></p>
<p>the .NET compilers all apply a StructLayoutAttribute to structures, specifying a Sequential layout. This means that the fields are laid out in the type according to their order in the source file.<br />
Fix = specify StructLayout [LayoutKind Sequential,Pack = 1] for the struct.</p>
<p><span style="color: black"><span style="font-family: Segoe UI;font-size: 10pt">Watchout for structures when you create them next time, and think about playing around with &#8216;m&#8217; structures with &#8216;n&#8217; size…. m x n = !!!</span></span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flogukrishnan.net%2F2009%2F02%2F24%2Fperformance-code-killer-%25e2%2580%2593-unaligned-memory-c-structs%2F&amp;linkname=PERFORMANCE%20Code%20Killer%20%E2%80%93%20Unaligned%20Memory%20-%20C%23%20Structs"><img src="http://logukrishnan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://logukrishnan.net/2009/02/24/performance-code-killer-%e2%80%93-unaligned-memory-c-structs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Session on WPF for Chennai .NET UG</title>
		<link>http://logukrishnan.net/2007/07/16/session-on-wpf-for-chennai-net-ug/</link>
		<comments>http://logukrishnan.net/2007/07/16/session-on-wpf-for-chennai-net-ug/#comments</comments>
		<pubDate>Mon, 16 Jul 2007 10:39:40 +0000</pubDate>
		<dc:creator>Logu Krishnan</dc:creator>
		
		<category><![CDATA[MVP]]></category>

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

		<category><![CDATA[C#]]></category>

		<category><![CDATA[Chennai User Group]]></category>

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

		<guid isPermaLink="false">http://logukrishnan.net/?p=62</guid>
		<description><![CDATA[I&#8217;m planning to do a new session on Windows Presentation Foundation [WPF] this weekend.
If you are interested register @ http://groups.msn.com/chennainetusergroup/july21stsessionregistration.msnw 
 
Madhu [Solutions Architect from Polaris Labs] is doing session on Windows Communication Foundation [WCF] on the same day.
]]></description>
			<content:encoded><![CDATA[<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">I&#8217;m planning to do a new session on Windows Presentation Foundation [WPF] this weekend.</p>
<p style="margin: 0in"><span style="font-family: 'Trebuchet MS';font-size: 10pt">If you are interested register @ </span><a href="http://groups.msn.com/chennainetusergroup/july21stsessionregistration.msnw" target="_blank"><span style="font-family: Calibri;font-size: 11pt">http://groups.msn.com/chennainetusergroup/july21stsessionregistration.msnw</span></a><span style="font-family: Calibri;font-size: 11pt"> </span></p>
<p style="margin: 0in;font-family: Calibri;font-size: 11pt"> </p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">Madhu [Solutions Architect from Polaris Labs] is doing session on Windows Communication Foundation [WCF] on the same day.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flogukrishnan.net%2F2007%2F07%2F16%2Fsession-on-wpf-for-chennai-net-ug%2F&amp;linkname=Session%20on%20WPF%20for%20Chennai%20.NET%20UG"><img src="http://logukrishnan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://logukrishnan.net/2007/07/16/session-on-wpf-for-chennai-net-ug/feed/</wfw:commentRss>
		</item>
		<item>
		<title>THERE IS ONLY ONE OF US :: Space - Time Continuum</title>
		<link>http://logukrishnan.net/2007/03/11/there-is-only-one-of-us-space-time-continuum/</link>
		<comments>http://logukrishnan.net/2007/03/11/there-is-only-one-of-us-space-time-continuum/#comments</comments>
		<pubDate>Sun, 11 Mar 2007 10:35:04 +0000</pubDate>
		<dc:creator>Logu Krishnan</dc:creator>
		
		<category><![CDATA[Ramblings]]></category>

		<guid isPermaLink="false">http://logukrishnan.net/?p=57</guid>
		<description><![CDATA[ 
But… if everything has already happened, then it follows that I am Powerless to change my future. Is this predestination ?
No! Don&#8217;t buy into that! That is not true. In fact, this &#8220;Set Up&#8221; should serve you, not disserve you!
You are always at a place of free will and total choice. Being able to see [...]]]></description>
			<content:encoded><![CDATA[<p style="margin: 0in;font-weight: bold"> </p>
<p style="margin: 0in;font-weight: bold"><span style="font-family: 'Trebuchet MS';font-size: 10pt">But… if everything has already </span><span style="font-style: italic;font-family: 'Trebuchet MS';font-size: 10pt">happened</span><span style="font-family: 'Trebuchet MS';font-size: 10pt">,</span><span style="font-family: Calibri;font-size: 11pt"> then it follows that I am Powerless to change my future. Is this predestination ?</span></p>
<p>No! Don&#8217;t buy into that! That is not true. In fact, this &#8220;Set Up&#8221; should serve you, not disserve you!</p>
<p>You are always at a place of free will and total choice. Being able to see into the &#8220;future&#8221; (or get others to do it for you) should enhance your ability to live the life you want, not limit it…</p>
<p style="margin: 0in;font-family: Calibri;font-size: 11pt">…</p>
<p style="margin: 0in;font-family: Calibri;font-size: 11pt">…</p>
<p style="margin: 0in;font-family: Calibri;font-size: 11pt">But how can I avoid that which has <span style="font-style: italic">already happened ?</span></p>
<p style="font-style: italic;margin: 0in;font-family: Calibri;font-size: 11pt;font-weight: bold"> It has not happened to you - yet! You are at a place in the Space-Time Continuum where you are not consciously <span style="font-style: italic">aware </span>of the occurrence. You do not &#8220;know&#8221; it has &#8220;happened&#8221;. You have not &#8220;remembered&#8221; your future! (This forgetfulness is the secret of all time. It is what makes it possible for you to &#8220;play&#8221; the great game of life! I&#8217;ll explain later!)</p>
<p>&lt;p What you do not &#8220;know&#8221; is not &#8220;so&#8221; Since &#8220;you&#8221; do not &#8220;remember&#8221; your future, it has not &#8220;happened&#8221; to &#8220;you&#8221; yet! A thing &#8220;happens&#8221; only when it is &#8220;experienced&#8221;. A thing is &#8220;experienced&#8221; only when it is &#8220;known&#8221;.</p>
<p style="margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt"> </p>
<p style="margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt">Now let&#8217;s say you&#8217;ve been blessed with a brief glimpse, a split-second &#8220;knowing&#8221; of your &#8220;future&#8221;. What&#8217;s happened is that<span>  </span>your spirit - the nonphysical part of you-has simply sped to another place on the Space-Time Continuum and brought back some residual energy-some images or impressions-of that moment or event.</p>
<p style="margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt">These you can &#8220;feel&#8221; or &#8220;see&#8221; these images and energies that are swirling about you.</p>
<p style="margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt"> </p>
<p style="margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt">If you don&#8217;t like what you &#8220;sense&#8221; about your &#8220;future&#8221;, <span style="font-weight: bold">step away from that! Just step away from it! </span>In that instant you can change your experience-and every one of you breathes a sigh of relief!</p>
<p style="margin: 0in;font-family: Calibri;font-size: 11pt;font-weight: bold">Wait a minute! Whoa&#8212;?</p>
<p style="margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt">You must know-you are now ready to be told-that you exist at every level of the Space-Time Continuum <span style="font-style: italic">simultaneously</span>.</p>
<p style="margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt"> </p>
<p style="font-style: italic;margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt;font-weight: bold">That is, your soul Always was, Always Is, and Always Will Be - World without end - Amen..</p>
<p style="margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt"> …<br />
 …</p>
<p style="font-style: italic;margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt;font-weight: bold"> </p>
<p style="margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt">It is all contained in a single truth:</p>
<p style="font-style: italic;margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt;font-weight: bold">THERE IS ONLY ONE OF US.</p>
<p style="font-style: italic;margin: 0in 0in 0in 0.375in;font-family: Calibri;font-size: 11pt;font-weight: bold"> </p>
<p style="margin: 0in;font-family: Calibri;font-size: 11pt">&#8211; excerpt from <span style="font-weight: bold">&#8220;Conversations With God&#8221;</span> by <span style="font-style: italic;font-weight: bold">Neale Donald Walsch</span></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flogukrishnan.net%2F2007%2F03%2F11%2Fthere-is-only-one-of-us-space-time-continuum%2F&amp;linkname=THERE%20IS%20ONLY%20ONE%20OF%20US%20%3A%3A%20Space%20-%20Time%20Continuum"><img src="http://logukrishnan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://logukrishnan.net/2007/03/11/there-is-only-one-of-us-space-time-continuum/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Paradoxical human lives…</title>
		<link>http://logukrishnan.net/2006/08/12/paradoxical-human-lives%e2%80%a6/</link>
		<comments>http://logukrishnan.net/2006/08/12/paradoxical-human-lives%e2%80%a6/#comments</comments>
		<pubDate>Sat, 12 Aug 2006 10:31:06 +0000</pubDate>
		<dc:creator>Logu Krishnan</dc:creator>
		
		<category><![CDATA[Personal]]></category>

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

		<guid isPermaLink="false">http://logukrishnan.net/?p=53</guid>
		<description><![CDATA[Early Today I was sipping my Morning juice and hopping at all the blogs after a long time and heard a knock on the door, when I opened the door there was a very old man with a file accompanied by a guy who looked bit young. The old man wished me[!] “Sir&#8230;” and introduced [...]]]></description>
			<content:encoded><![CDATA[<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">Early Today I was sipping my Morning juice and hopping at all the blogs after a long time and heard a knock on the door, when I opened the door there was a very old man with a file accompanied by a guy who looked bit young. The old man wished me[!] “Sir&#8230;” and introduced that he works for some temple in west mambalam and that’s his son. </span></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">I saw him with a “So what?” look&#8230; He opened the file and showed the 12<sup>th</sup> grade mark sheets of his son and some identification proofs, and this guy has scored 1150/1200 and the man continued that now he needs to pay Rs.11,500 but couldn’t afford the amount!!! </span></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"></span><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">For a moment I thought this is yet another phony trick, but when I looked deep into this guy&#8230; for some reason I happened to see myself few years back&#8230; during my B.Tech days at coimbatore &#8230; standing in front of my CC’s office for a default of 750 rupees for a monthly 1500 fee! That’s when life had twisted me up side down and pushed me to the edges and happened to see all the faces of humans&#8230; I was very young and immature those days. </span></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">That month I had to pick up a 2<sup>nd</sup> part time job on the same month, where the 1<sup>st</sup> job gave me just 750 bucks!! Though these days I earn x times more than that, even a single rupee was very valuable those days&#8230; and that’s when I learnt how a one rupee can make a lot of difference. I also learnt that dinner could be finished in 1 rupee&#8230; And that’s when life teached me money definitely matters than human values!! And that’s the same time I started to disrespect money!! </span></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"></span><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">Now I see someone in front of me in a similar state!!!! I didn’t think much about fraud and gave them some money and immediately the old man asked “do you…… have any…… old clothes……?” by then, I could see some tears and his eyes filled with inability as a father!!! I gave them that I could give&#8230; </span></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"></span><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">Finally the old man blessed and went to the next flat. </span></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"></span><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">Hmm&#8230; I dunno why&#8230; but I see lots of different people these days with entirely different perceptions towards life&#8230;these days&#8230; </span></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"></span><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">Yep, I’ve to admin I was disturbed a bit&#8230; </span></span> </span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt">  </span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">Paradox! Paradox! Paradox&#8230; world&#8230; </span></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000"> </span> </span></p>
<p style="margin: 0in 0in 0pt"><em><span style="font-family: 'Trebuchet MS';color: black;font-size: 10pt" lang="EN">“I, for one, will never believe </span></em></p>
<p style="margin: 0in 0in 0pt"><em><span style="font-family: 'Trebuchet MS';color: black;font-size: 10pt" lang="EN"><span> </span>That god plays dice with the universe&#8230;” </span></em></p>
<p style="margin: 0in 0in 0pt"><em><span style="font-family: 'Trebuchet MS';color: black;font-size: 10pt" lang="EN">&#8230;</span></em><em><span style="font-family: 'Trebuchet MS';font-size: 10pt" lang="EN"> </span></em></p>
<p style="margin: 0in 0in 0pt"><em></em></p>
<p style="margin: 0in 0in 0pt"><em><span style="font-family: 'Trebuchet MS';color: black;font-size: 10pt" lang="EN">“Come on, what could happen? So you die a little&#8230;” </span></em></p>
<p style="margin: 0in 0in 0pt"><em></em></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flogukrishnan.net%2F2006%2F08%2F12%2Fparadoxical-human-lives%25e2%2580%25a6%2F&amp;linkname=Paradoxical%20human%20lives%E2%80%A6"><img src="http://logukrishnan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://logukrishnan.net/2006/08/12/paradoxical-human-lives%e2%80%a6/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Real…Unreal…!!</title>
		<link>http://logukrishnan.net/2006/07/27/real%e2%80%a6unreal%e2%80%a6/</link>
		<comments>http://logukrishnan.net/2006/07/27/real%e2%80%a6unreal%e2%80%a6/#comments</comments>
		<pubDate>Thu, 27 Jul 2006 10:28:17 +0000</pubDate>
		<dc:creator>Logu Krishnan</dc:creator>
		
		<category><![CDATA[Personal]]></category>

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

		<guid isPermaLink="false">http://logukrishnan.net/?p=50</guid>
		<description><![CDATA[&#8220;that Sentence
Whose horrid image doth unfix my hair
&#8230;
Against the use of nature.&#8221;
…
…
 
This view is confirmed by the fact that we only feel images to be &#8220;unreal&#8221; when we already
know them to be images. Images cannot be defined by the feeling of unreality, because when we falsely believe an image to be a sensation, as in [...]]]></description>
			<content:encoded><![CDATA[<p style="margin: 0in"><span style="font-style: italic;font-family: 'Book Antiqua';font-size: 12pt">&#8220;that Sentence</span></p>
<p style="font-style: italic;margin: 0in;font-family: 'Book Antiqua';font-size: 12pt">Whose horrid image doth unfix my hair<br />
&#8230;</p>
<p style="font-style: italic;margin: 0in;font-family: 'Book Antiqua';font-size: 12pt">Against the use of nature.&#8221;</p>
<p style="margin: 0in;font-family: Verdana;font-size: 10pt">…</p>
<p style="margin: 0in;font-family: Verdana;font-size: 10pt">…</p>
<p style="margin: 0in;font-family: Verdana;font-size: 10pt"> </p>
<p style="margin: 0in;font-family: Verdana;font-size: 10pt">This view is confirmed by the fact that we only feel images to be &#8220;unreal&#8221; when we already</p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">know them to be images. Images cannot be defined by the <span style="font-style: italic">feeling</span> of unreality, because when we falsely believe an image to be a sensation, as in the case of dreams, it feels just as real as if it were a sensation. Our feeling of unreality results from our having already realized that we are dealing with an image. As soon as an image begins to deceive us as to its status, it also deceives us as to its correlations, which are what we mean by its &#8220;reality&#8221;.</p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt"> </p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">Stout<span>  </span>(loc. Cit., p.127) cites: &#8220;One characteristic mark of what we agree in calling sensation is its mode of production. It is caused by what we call a <span style="font-style: italic">stimulus</span>. A stimulus is always some condition external to the nervous system itself and operating upon it.&#8221;</p>
<p style="margin: 0in;font-family: Verdana;font-size: 10pt"> </p>
<p style="font-style: italic;margin: 0in;font-family: 'Book Antiqua';font-size: 12pt;font-weight: bold">&#8220;Most of our judgments of perception involve correlations, as when we judge that a certain noise is that of a passing cart. Such judgments are all obviously liable to error, since there is no correlation of which we have a right to be certain that it is invariable.&#8221;</p>
<p style="margin: 0in;font-family: Verdana;font-size: 10pt"> </p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">Excerpt from &#8220;Sensations and Images&#8221;</p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt;font-weight: bold">&#8220;The Analysis of Mind&#8221; by Bertrand Russell</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flogukrishnan.net%2F2006%2F07%2F27%2Freal%25e2%2580%25a6unreal%25e2%2580%25a6%2F&amp;linkname=Real%E2%80%A6Unreal%E2%80%A6%21%21"><img src="http://logukrishnan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://logukrishnan.net/2006/07/27/real%e2%80%a6unreal%e2%80%a6/feed/</wfw:commentRss>
		</item>
		<item>
		<title>End of Hibernation… Spring Blossoms&#8230;</title>
		<link>http://logukrishnan.net/2006/05/30/end-of-hibernation%e2%80%a6-spring-blossoms/</link>
		<comments>http://logukrishnan.net/2006/05/30/end-of-hibernation%e2%80%a6-spring-blossoms/#comments</comments>
		<pubDate>Tue, 30 May 2006 10:26:18 +0000</pubDate>
		<dc:creator>Logu Krishnan</dc:creator>
		
		<category><![CDATA[Personal]]></category>

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

		<guid isPermaLink="false">http://logukrishnan.net/?p=48</guid>
		<description><![CDATA[End of all shrugging coats and ghostly looking trees and a hibernated life… finally the spring is here and already the early bloomer Tulip has filled up the house… and flowers peek out even before the leaves start to grow and finally I see sun after some time…
 
Life is getting better these days, living in [...]]]></description>
			<content:encoded><![CDATA[<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">End of all shrugging coats and ghostly looking trees and a hibernated life… finally the spring is here and already the early bloomer Tulip has filled up the house… and flowers peek out even before the leaves start to grow and finally I see sun after some time…</p>
<p style="margin: 0in;font-family: Verdana;font-size: 10pt"> </p>
<p style="margin: 0in;font-size: 10pt"><span style="font-family: 'Trebuchet MS'">Life is getting better these days, living in a </span><span style="font-family: 'trebuchet ms'">small beautiful American town with no hypes</span><span style="font-family: 'Trebuchet MS'">. The day I came here, everything was like a haunted ghostly snowy town, as the spring sprung… somebody has swished the magic wand&#8230; the whole place became beautiful in a week… somehow felt that I always don&#8217;t look the beauty that&#8217;s around me… </span></p>
<p style="margin: 0in;font-family: Verdana;font-size: 10pt"> </p>
<p style="margin: 0in;font-family: 'trebuchet ms';font-size: 10pt">People here are good, professionals and lives life without any hypocrisy. They speak straight&#8230; The team i&#8217;m working with likes the indian food a lot, but for some reason i always hesitate to go to a indian restaurant, because i don&#8217;t want to forget the indian taste. May be these restaurants should be renames as Indo-American restaurants, as the food here is cooked for americans and sadly not for indians. We cannot blame them when pizza hut in india sells tandoori pizzas and desi pizzas&#8230;</p>
<p style="margin: 0in;font-family: 'trebuchet ms';font-size: 10pt">once when i felt bored with indian food, madhuri cooked  good indian food and reminded me of the indian taste.</p>
<p style="margin: 0in;font-family: 'trebuchet ms';font-size: 10pt"> </p>
<p style="margin: 0in;font-family: 'trebuchet ms';font-size: 10pt">Also met prabha after a long time&#8230; one good soul i wanted to meet in US of A. we planned for the tulip show at holand, but missed the trip due to rain.</p>
<p style="margin: 0in;font-family: 'trebuchet ms';font-size: 10pt"> </p>
<p style="margin: 0in;font-family: 'trebuchet ms';font-size: 10pt">Slowly mingling with the American crowd&#8230; learning poker, mountain biking, golf during weekends&#8230; there are amazing trails in short drive&#8230; also learning to cook fudges, American, Thai cuisine and of course slowly honing my amateur photographic skills&#8230;</p>
<p style="margin: 0in;font-family: 'trebuchet ms';font-size: 10pt"> </p>
<p style="margin: 0in;font-family: 'trebuchet ms';font-size: 10pt">Some Photographs of Michigan at <a href="http://www.logukrishnan.net/photos/michigan" target="_blank">http://www.logukrishnan.net/photos/michigan</a></p>
<p style="margin: 0in;font-family: 'trebuchet ms';font-size: 10pt"> </p>
<p style="margin: 0in;font-family: 'trebuchet ms';font-size: 10pt"><a href="http://www.logukrishnan.net/photos/michigan" target="_blank"><img src="http://www.logukrishnan.net/blogpics/michigancollage.jpg" border="0" alt="Michigan" hspace="2" vspace="2" /></a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flogukrishnan.net%2F2006%2F05%2F30%2Fend-of-hibernation%25e2%2580%25a6-spring-blossoms%2F&amp;linkname=End%20of%20Hibernation%E2%80%A6%20Spring%20Blossoms%26%238230%3B"><img src="http://logukrishnan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://logukrishnan.net/2006/05/30/end-of-hibernation%e2%80%a6-spring-blossoms/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CNUG Community Launch&#8230; Oversubscribed</title>
		<link>http://logukrishnan.net/2006/01/10/cnug-community-launch-oversubscribed/</link>
		<comments>http://logukrishnan.net/2006/01/10/cnug-community-launch-oversubscribed/#comments</comments>
		<pubDate>Tue, 10 Jan 2006 10:21:52 +0000</pubDate>
		<dc:creator>Logu Krishnan</dc:creator>
		
		<category><![CDATA[.NET User Groups]]></category>

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

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

		<category><![CDATA[Chennai User Group]]></category>

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

		<guid isPermaLink="false">http://logukrishnan.net/?p=43</guid>
		<description><![CDATA[CNUG Community Launch was oversubscribed yesterday, We had around 300 confirmed participants but as the event was on Sunday and Chennai was drizzling in the early dawn so I thought the count might be around 200-250, but during the break while I was speaking to JD he said &#8220;we have around 400+ registrations&#8221;, WOW! That [...]]]></description>
			<content:encoded><![CDATA[<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">CNUG Community Launch was oversubscribed yesterday, We had around 300 confirmed participants but as the event was on Sunday and Chennai was drizzling in the early dawn so I thought the count might be around 200-250, but during the break while I was speaking to JD he said &#8220;we have around 400+ registrations&#8221;, WOW! That was a great count and the interesting fact was that the participants count composed of 70% Software Professionals and 30% Students. Which I think is a healthy composition compared to the last year.</span></span><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">After the keynote, I started with my &#8220;C# 2.0 Unleashed&#8221; Session, My objective was not just to speak about the language enhancements but to cross cut at different technologies, and as the crowd is a mixture of Students, Professionals, Enthusiasts I did not wanted to get into the in-depth technologies. So, apart from Language Enhancements, I touched upon different technologies like DirectX, AI, Devices, GPS, C# Evolution et al&#8230; There was Awe’s &amp; wow’s when I showed the Live GPS Demo using my GPS Receiver and ZBuffer’s 3D Engine&#8230; In the end it was very fulfilling session with many interesting questions&#8230;and many congratulations&#8230; </span></span></p>
<p> </p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">One observation I had was that, Many people know WHAT but didn’t know WHY and HOW !!! i.e. people know what generics is, but didn’t know WHY Generics and didn’t know HOW to use generics&#8230;not many people knew the performance gain offered by the Generics&#8230; Also, not many people know that we can do Games in C#, and have never heard of System.IO.Ports et al&#8230;</span></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000"><br />
But, I Should say the crowd was quite alive &amp; Responsive, and questions came out without hesitations&#8230; That was really good to see&#8230; </span></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000"><br />
My session was followed by Ravi ’s SQL Notification and after lunch was </span><a href="http://www.dotnetindia.com/" target="_blank">Anand M</a><span style="color: #000000">’s VB.NET Secrets session&#8230; which got a good applause when he showed all the gimmicks the VB refactoring could do! And when he tried to pull the legs of C#, there was immediate response from the crowd favouring and fighting for C#&#8230; <span> </span>that was an interesting conversation. Later Sankar Spoke about AJAX and Dhamayanthi finished up the event with her VSTS Sessions&#8230; </span></span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000"> </span> </span></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">And we had Ask the Experts&#8230; and on the expert zone I had to answer some interesting questions like, &#8220;Should I Use Threadpool?&#8221;, &#8220;Why is that Microsoft has not released a software to kill Tally ?&#8221; , &#8220;Can C# do Robotics&#8221; ? <span> et al&#8230;</span></span></span></p>
<p style="margin: 0in 0in 0pt">
<span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000"><span>A Special kudos should go to <a href="http://mahalax.blogspot.com/" target="_blank">Mahalaxmi </a>and her team for organizing the whole event.</span></span></span></p>
<p style="margin: 0in 0in 0pt">
<span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000"><span>My Camera&#8217;s battery dried up and couldn&#8217;t take much of the photos, however you can find some photos at <a href="http://photos.logukrishnan.net/CNUGCommunityLaunch/" target="_blank">http://photos.logukrishnan.net/CNUGCommunityLaunch/</a> </span></span></span></p>
<p style="margin: 0in 0in 0pt"> </p>
<p style="margin: 0in 0in 0pt">  <a href="http://photos.logukrishnan.net/CNUGCommunityLaunch/" target="_blank"><img style="width: 242px;height: 169px" src="http://www.logukrishnan.net/blogpics/IMG_4270.JPG" border="0" alt="" hspace="0" width="261" height="187" /> <img style="width: 233px;height: 173px" src="http://www.logukrishnan.net/blogpics/IMG_4262.JPG" border="0" alt="" hspace="0" width="265" height="181" /></a></p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt">  <img style="width: 244px;height: 169px" src="http://www.logukrishnan.net/blogpics/IMG_4269.JPG" border="0" alt="" hspace="0" width="239" height="176" /> <img style="width: 234px;height: 176px" src="http://www.logukrishnan.net/blogpics/IMG_4259.JPG" border="0" alt="" hspace="0" width="269" height="183" /></span></p>
<p style="margin: 0in 0in 0pt"> </p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 10pt"><span style="color: #000000">All in all it was very ful-filling day … Thanks everyone for participating in the event&#8230; You guys made my day&#8230; Thanks&#8230; </span></span></p>
<p style="margin: 0in 0in 0pt"> </p>
<p style="margin: 0in 0in 0pt"> </p>
<p style="margin: 0in 0in 0pt"><span style="font-family: 'Trebuchet MS';font-size: 8pt"><span style="color: #000000">Link: For those of you interested, here is the link to the PPT I used in the Event </span><a href="http://www.logukrishnan.net/CNUGCommunityLaunch/CSharp2.0Unleashed.zip" target="_blank">http://www.logukrishnan.net/CNUGCommunityLaunch/CSharp2.0Unleashed.zip</a></span></p>
<p style="margin: 0in 0in 0pt"> </p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flogukrishnan.net%2F2006%2F01%2F10%2Fcnug-community-launch-oversubscribed%2F&amp;linkname=CNUG%20Community%20Launch%26%238230%3B%20Oversubscribed"><img src="http://logukrishnan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://logukrishnan.net/2006/01/10/cnug-community-launch-oversubscribed/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Chennai .NET UG Community Launch</title>
		<link>http://logukrishnan.net/2006/01/02/chennai-net-ug-community-launch/</link>
		<comments>http://logukrishnan.net/2006/01/02/chennai-net-ug-community-launch/#comments</comments>
		<pubDate>Mon, 02 Jan 2006 10:18:42 +0000</pubDate>
		<dc:creator>Logu Krishnan</dc:creator>
		
		<category><![CDATA[.NET User Groups]]></category>

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

		<category><![CDATA[Chennai User Group]]></category>

		<guid isPermaLink="false">http://logukrishnan.net/?p=39</guid>
		<description><![CDATA[Chennai .NET User Group [ http://www.cnug.net ] is getting rejuvenated, and has announced the community launch of the Visual Studio 2005, SQL Server 2005 and Biztalk Server 2006. This event is 1 Full day stuffed with Technical Sessions + Fun on 8th Jan 2006 at &#8220;Tidel Park Auditorium&#8221;, Chennai
I&#8217;m speaking on this event on the [...]]]></description>
			<content:encoded><![CDATA[<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">Chennai .NET User Group [ <a href="http://www.cnug.net/" target="_blank">http://www.cnug.net</a> ] is getting rejuvenated, and has announced the community launch of the Visual Studio 2005, SQL Server 2005 and Biztalk Server 2006. This event is 1 Full day stuffed with Technical Sessions + Fun on 8th Jan 2006 at &#8220;Tidel Park Auditorium&#8221;, Chennai</p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">I&#8217;m speaking on this event on the title &#8220;C# 2.0 - Unleashed&#8221;, Interesting Topic to discuss <img src='http://logukrishnan.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> and also opportunity to meet lotsa people&#8230;</p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">Interested ? Do Signup for the event at</p>
<p style="margin: 0in;font-family: 'Trebuchet MS';color: blue;font-size: 10pt"><a href="http://groups.msn.com/chennainetusergroup/communitylaunchsignup1.msnw" target="_blank">http://groups.msn.com/chennainetusergroup/communitylaunchsignup1.msnw</a></p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">
Here is the Event Invitation with the detailed Agenda.</p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt"><a href="http://www.logukrishnan.net/blogpics/CNUGLaunch.jpg" target="_blank"><img src="http://www.logukrishnan.net/blogpics/CNUGLaunch_thumb.jpg" border="0" alt="CNUG Launch" hspace="3" vspace="3" /></a></p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt"> </p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">For more details check <a href="http://www.cnug.net/" target="_blank">http://www.cnug.net</a></p>
<p style="margin: 0in;font-family: 'Trebuchet MS';font-size: 10pt">Let&#8217;s Rock Guyz ! See You There&#8230;</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Flogukrishnan.net%2F2006%2F01%2F02%2Fchennai-net-ug-community-launch%2F&amp;linkname=Chennai%20.NET%20UG%20Community%20Launch"><img src="http://logukrishnan.net/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Save/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://logukrishnan.net/2006/01/02/chennai-net-ug-community-launch/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
