<?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>Vinothbabu&#039;s Desk!</title>
	<atom:link href="http://vinothbabu.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vinothbabu.com</link>
	<description>When Smart becomes Dumb!</description>
	<lastBuildDate>Thu, 31 Mar 2011 09:53:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>India Occupied Mohali</title>
		<link>http://vinothbabu.com/2011/03/31/india-occupied-mohali/</link>
		<comments>http://vinothbabu.com/2011/03/31/india-occupied-mohali/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 09:53:28 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[My World]]></category>
		<category><![CDATA[Sports]]></category>

		<guid isPermaLink="false">http://vinothbabu.com/?p=410</guid>
		<description><![CDATA[Some cool images after the Match between India and Pakistan. The Ultimate]]></description>
			<content:encoded><![CDATA[<p>Some cool images after the Match between India and Pakistan. <span id="more-410"></span></p>
<p><img class="alignnone" src="http://vinothbabu.com/wp-content/uploads/2011/01/03/198968_1805917641708_1652920678_1786816_8186651_n.jpg" alt="" width="532" height="402" /></p>
<p><img class="alignnone" src="http://vinothbabu.com/wp-content/uploads/2011/01/03/208526_10150495159480643_590675642_17713139_1892556_n.jpg" alt="" width="720" height="558" /></p>
<p><img class="alignnone" src="http://vinothbabu.com/wp-content/uploads/2011/01/03/Biscuit.png" alt="" width="401" height="304" /></p>
<p><img class="alignnone" src="http://vinothbabu.com/wp-content/uploads/2011/01/03/IndiaVsPak.jpg" alt="" width="615" height="442" /></p>
<p>The Ultimate</p>
<p><img class="alignnone" src="http://vinothbabu.com/wp-content/uploads/2011/01/03/Sehwag.png" alt="" width="720" height="363" /></p>
]]></content:encoded>
			<wfw:commentRss>http://vinothbabu.com/2011/03/31/india-occupied-mohali/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dead man walking &#8211; Ricky Ponting</title>
		<link>http://vinothbabu.com/2010/12/27/dead-man-walking-ricky-ponting/</link>
		<comments>http://vinothbabu.com/2010/12/27/dead-man-walking-ricky-ponting/#comments</comments>
		<pubDate>Mon, 27 Dec 2010 21:03:58 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[My World]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://vinothbabu.com/?p=407</guid>
		<description><![CDATA[I think the title gives a brief idea on whom i going to jowl, its none other the famous(so called) aussie captain Ricky ponting. I think every one would be watching the Ashes on how Aussies are getting hammered against the poms. With a fifth defeat in the last seven Tests looming Ricky Ponting is [...]]]></description>
			<content:encoded><![CDATA[<p>I think the title gives a brief idea on whom i going to jowl, its none other the famous(so called) aussie captain <strong>Ricky ponting</strong>. I think every one would be watching the Ashes on how Aussies are getting hammered against the poms.<span id="more-407"></span></p>
<p>With a fifth defeat in the last seven  Tests looming Ricky Ponting is getting desperate and is suffering from  just the same pressure that he hoped would derail England in this  series. One number is worth remembering: so far, in fifteen innings on  this tour, England´s bowlers have conceded more than 309 runs just once  (that was in the 1st Test): the lead is already well past that and the  pitch is showing signs of uneven bounce and some life. It is doubtful  that even scoring 500 in the second innings Australia could save this  match now and, so far, they have not managed that in the series even  when not under pressure.</p>
<p><strong>There are two things evident from this series. </strong></p>
<p>1) UDRS does not solve  any problems and if it does then it creates new problems as well;</p>
<p>2)  Ponting should hang his boots after this series is over.  I really could  not understand Australia&#8217;s obsession with keeping Pontin</p>
<p>Ponting is living in denial. the Team composition is flawed.No where in  the world people will accept Shane Watson as an opener, in-spite of the  recent successful run he has enjoyed.Phil Hughes is still raw and needs  more Sheffield exposure.Ricky is more bent on saving his trusted  lieutenants career at the cost of his own. Australlia need to look at  klinger, cos grove, Rogers as a stop gap arrangement.</p>
<p>Can&#8217;t understand why Stephen Smith is  No 6 Batsman of Australia. If they need a fifth bowler why haven&#8217;t they  picked up a specialist spinner. Never seen such a stupid decision from  Australian Selectors before.</p>
<p>I love seeing the aussies getting worked over. No questions about that.  If I remember right, wasnt Ricky the guy who wanted the fielders word to  be taken as gospel in doubtful situations. I wonder why he started his  lil tirade when all the technology proved the catch wasnt a catch at all.</p>
<p>I am disgusted at Ponting&#8217;s behavior today. What this shows the next  generation of kids taking up the game is that its ok to argue the toss  with officials. As  &#8220;voluntary&#8221;level 2 umpire in another sport,  i can  only hope that the ICC throws the book at Ponting and gives him a  holiday from the sport.</p>
<p>when i was thinking ponting is about to loose ashes, his captaincy &amp;  his place in the playing 11, he himself is adding his integrity to his  loosing streak&#8230; he is the same guy who kept on saying that the  fielder&#8217;s say should be the final say for a clean catch &amp; not that  of an umpire&#8217;s or whoever&#8217;s. here is the same guy who is not at all  interested in accepting the umpire&#8217;s or the 3rd umpire&#8217;s who infact  watches the replay again and again closely on a tv. i don&#8217;t know why  people still call him the best captain&#8230; may be successful, but that  happened because of the players &amp; definitely not his captaincy.</p>
<p>It is time for the history to repeat  itself after about forty years. Bill Lawry was sacked  before the end of  ASHES series. Ian Chappel took over. That was a new beginning for  Australian cricket. Ponting has to go before Sydney test. Sadly Ponting  has disgraced himself.</p>
<p><strong>It is quite normal for Ponting to react the way he did, Old habits die hard</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://vinothbabu.com/2010/12/27/dead-man-walking-ricky-ponting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enthiran record breaking collection</title>
		<link>http://vinothbabu.com/2010/11/12/enthiran-record-breaking-collection/</link>
		<comments>http://vinothbabu.com/2010/11/12/enthiran-record-breaking-collection/#comments</comments>
		<pubDate>Fri, 12 Nov 2010 12:43:20 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[Superstar RajiniKanth]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://vinothbabu.com/?p=385</guid>
		<description><![CDATA[With already making a huge impact in the indian film industry, the movie is not breaking records but its setting up a huge standards across the nation. The rajini craze mania has till date made a whopping collection of more than 300 crores which is highest ever for an indian film. The film got a [...]]]></description>
			<content:encoded><![CDATA[<p>With already making a huge impact in the indian film industry, the movie is not breaking records but its setting up a huge standards across the nation. The rajini craze mania has till date made a whopping collection of more than <strong>300 crores</strong> which is highest ever for an indian film. <span id="more-385"></span></p>
<p>The film got a huge response in the first week of the release a treat for all movie fans across the world. According to the media and public reports the movie is still going very strong across the nation.</p>
<p><a href="http://vinothbabu.com/wp-content/uploads/2010/11/6_Days_to_Enthiran.jpg"><img class="aligncenter size-medium wp-image-386" title="6_Days_to_Enthiran" src="http://vinothbabu.com/wp-content/uploads/2010/11/6_Days_to_Enthiran-300x200.jpg" alt="" width="300" height="200" /></a></p>
<p>Buzz is there that on the 100th day mark there could be a big celeberations among fans and SUN network is planning for a never before event to embark the success of enthiran.</p>
<p>Enthiran could make a profit more than 500 Crore which is three times the cost of the production. With a film which has the fabulous technical brilliance like this, this is one movie that would surely be a super duper hit of all time.</p>
<p>&#8220;Kalanidhi Maran&#8217;s only goal was to produce India&#8217;s biggest movie, but it ultimately became Asia&#8217;s biggest movie,&#8221; said Hansraj Saxena, COO, Sun Pictures.</p>
<p>The film did make such huge collections  across the world not because of SUN network, not because of A.R Score, not because of the Technicians or the crew and not because of Shankar the fim&#8217;s creator. It was only one man &#8211; RajiniKanth. He pulls the crowd, regardless of the director or the crew or even the story. There is no one in Indian film industry who can create the magic that this man can do.</p>
<p>His fans love him not just for the things he does on screen but also for  his humble personality in real life and what he does off screen.The flicks that he used to do with a cigarette (yes bad but really cool)  and the way he put his sunglasses on (ultra cool) were nothing that  were ever seen in Bollywood back in the days of growing up in the 80&#8242;s.</p>
<p><strong>&#8220;He is no mere actor – he is a force of nature,&#8221; said Grady Hendrix,  writing in the online magazine Slate. &#8220;If a tiger had sex with a tornado  and then their tiger-nado baby got married to an earthquake, their  offspring would be Rajinikanth.&#8221;</strong></p>
<p>He is not just a superstar of Indian cinema, but <strong>GOD </strong>of Indian cinema whose movies are market blockbuster even before the release.</p>
]]></content:encoded>
			<wfw:commentRss>http://vinothbabu.com/2010/11/12/enthiran-record-breaking-collection/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Will Java 7 ever release?</title>
		<link>http://vinothbabu.com/2010/09/14/will-java-7-ever-release/</link>
		<comments>http://vinothbabu.com/2010/09/14/will-java-7-ever-release/#comments</comments>
		<pubDate>Tue, 14 Sep 2010 12:55:38 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[JAVA/J2EE]]></category>
		<category><![CDATA[My World]]></category>

		<guid isPermaLink="false">http://vinothbabu.com/?p=357</guid>
		<description><![CDATA[I am pretty much waiting for this release from the ORACLE as i am expecting some features which the DOT NET guys are proudly shaking their shoulders.  Mark Reinhold, Chief Architect of the Java Platform Group at Oracle, accepted in his September 8th blog that the current timeline for the release of Java 7 is a [...]]]></description>
			<content:encoded><![CDATA[<p>I am pretty much waiting for this release from the ORACLE as i am expecting some features which the DOT NET guys are proudly shaking their shoulders. <span id="more-357"></span></p>
<p>Mark Reinhold, Chief Architect of the Java Platform Group at Oracle, accepted in his September 8th <a href="http://blogs.sun.com/mr/entry/rethinking_jdk7" target="_blank">blog </a>that the current timeline for the release of Java 7 is a tad unrealistic, and that a full increment release shouldn&#8217;t be expected until the middle of 2012.</p>
<p>I am pretty much afraid my career in JAVA again with the lack of interest from the ORACLE guys and with james gosling leaving the entire java team due to indifference with ORACLE. The Future is goint to be RIA and JAFX has not even started looking at the ground where as Flex has started to rule the world.</p>
<p>But that said, I look forward to whatever Java 7/8 bring. Java and the JVM have had a profound impact on computing. It has most every major paradigm within its community today, much like Lisp does.</p>
<p>I hope that Oracle will duely step up to the plate.</p>
]]></content:encoded>
			<wfw:commentRss>http://vinothbabu.com/2010/09/14/will-java-7-ever-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Doctors &#8211; Are they GOD or Evil?</title>
		<link>http://vinothbabu.com/2010/09/07/doctors-are-they-god-or-evil/</link>
		<comments>http://vinothbabu.com/2010/09/07/doctors-are-they-god-or-evil/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 08:26:21 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[My World]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://vinothbabu.com/?p=349</guid>
		<description><![CDATA[Today while going through news i was shocked to hear that around 50 lives lost because of the doctors strike. I was going through other news related services to know the fact on why are they protesting? These foolish doctors demanding action against senior police officials. My Question comes simple Are they protesting against the [...]]]></description>
			<content:encoded><![CDATA[<p>Today while going through news i was shocked to hear that around 50 lives lost because of the doctors strike. I was going through other news related services to know the fact on why are they protesting? These foolish doctors demanding action against senior police officials. My Question comes simple</p>
<div>
<div>Are they protesting against the <strong>police </strong>or the <strong>public</strong>? surely the public is getting affected.<span id="more-349"></span></div>
<div style="text-align: right;"><a href="http://vinothbabu.com/wp-content/uploads/2010/09/EvilDoctor1.jpg"></a></div>
<p><img class="size-medium wp-image-353 alignleft" title="EvilDoctor" src="http://vinothbabu.com/wp-content/uploads/2010/09/EvilDoctor1-263x300.jpg" alt="" width="263" height="300" /></p>
<div>Its a real shame in our country that people go for strike for reasons which can solved other way too. Our Congress government is busy fighting for some odd issues and common man is getting affected. I have some questions to these so called doctors.</div>
</div>
<div>
<div>
<ol>
<li>Can they ever strike against their colleges which take million of rupees in donation?</li>
<li>
<div>
<div>Can they ever strike against high cost of hospitalization in India?</div>
</div>
</li>
<li>
<div>
<div>
<div>
<div>Can they ever strike against doctors who have turned medicine into pure business and spoiling the name of doctors itself?.</div>
</div>
</div>
</div>
</li>
</ol>
<div>
<div>We should put the families of all 1200 doctors in the ICU and then ask them to continue their strike. <strong> They are no better than murderers!</strong></div>
</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://vinothbabu.com/2010/09/07/doctors-are-they-god-or-evil/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>All about ArrayCollection &#8211; Flex</title>
		<link>http://vinothbabu.com/2010/09/01/all-about-arraycollection-flex/</link>
		<comments>http://vinothbabu.com/2010/09/01/all-about-arraycollection-flex/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 10:28:36 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://vinothbabu.com/?p=343</guid>
		<description><![CDATA[Today i was feeling very bored, then finally decided to get into one of the basics of Flex. Yes its ArrayCollection. Before we go into ArrayCollection, one must construe Array.Array Array is a data structure consisting of a group of elements that are accessed via indexing. It can store simple data types such as number, [...]]]></description>
			<content:encoded><![CDATA[<p>Today i was feeling very bored, then finally decided to get into one of the basics of Flex. Yes its ArrayCollection. Before we go into ArrayCollection, one must construe Array.<span id="more-343"></span><strong>Array</strong></p>
<p>Array is a data structure consisting of a group of elements that are accessed via indexing. It can store simple data types such as number, boolean, string or even complex data type such as other objects or other Arrays.</p>
<p>[codesyntax lang="actionscript3"]</p>
<pre>private var myArray:Array = new Array();
myArray[0] = "vinoth"; // string
myArray[1] = 2; // number
myArray[2] = new Object(); // object</pre>
<p>[/codesyntax]</p>
<p>The above example shows how we define an Array in ActionScript. Now that we have declared an array, lets see how we can retrive the value.</p>
<p>[codesyntax lang="actionscript3"]</p>
<pre>// retrieving the value of an array element
private var name:String = myArray[0];</pre>
<p>[/codesyntax]</p>
<p>Arrays are dynamic and, therefore, can be resized simply by adding or removing elements.</p>
<p>[codesyntax lang="actionscript3"]</p>
<pre>// adds an element to the end of an array and increases the array length by one
myArray.push("Vijay");

// removes the last element from an array and decreases the array length by one
myArray.pop();</pre>
<p>[/codesyntax]</p>
<p>Arrays can also be built using MXML:</p>
<p>[codesyntax lang="php"]</p>
<pre>&lt;mx:Array id="myArray"/&gt; &lt;!--creates an array with zero elements--&gt;

&lt;mx:Array id="myArray"&gt; &lt;!--creates an array with three elements--&gt;
   &lt;mx:String&gt;Vinoth&lt;/mx:String&gt; &lt;!--string--&gt;
   &lt;mx:Number&gt;98&lt;/mx:Number&gt; &lt;!--floating-point number--&gt;
   &lt;mx:Object name="Vijay" age="25"/&gt; &lt;!--object--&gt;
&lt;/mx:Array&gt;</pre>
<p>[/codesyntax]</p>
<p>Array is an object and as such it contains some usefel properties and methods. The length property represents the number of array elements.</p>
<p>[codesyntax lang="actionscript3"]</p>
<pre>private var myArray:Array = new Array(10);
private var numberOfArrayElements:uint = myArray.length; // 10</pre>
<p>[/codesyntax]</p>
<p>By utilizing the methods of the Array class, you can perform a number  of operations on the Array elements or the Array itself. Popular Array  methods include:</p>
<p>* <a href="http://livedocs.adobe.com/flex/3/langref/Array.html#filter%28%29">filter</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/Array.html#indexOf%28%29">indexOf</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/Array.html#join%28%29">join</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/Array.html#push%28%29">push</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/Array.html#reverse%28%29">reverse</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/Array.html#slice%28%29">slice</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/Array.html#sort%28%29">sort</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/Array.html#toString%28%29">toString</a></p>
<p>Though Array has powerful features, but the inability to support data binding is a significant shortcoming. For this we have something called <strong>ArrayCollection</strong>.</p>
<p><strong>Array Collection<br />
</strong></p>
<p>Array Collection is a “wrapper class that exposes an Array as a collection that can be accessed and manipulated using the methods and properties of the ICollectionView or IList interfaces”.</p>
<p>To participate in data binding, an object must be able to:</p>
<p>1. It should dispatch event when something changes in the object.<br />
2. It should allow other objects to listen and respond to events.</p>
<p>[codesyntax lang="actionscript3"]</p>
<pre>// creates a bindable ArrayCollection with zero elements
[Bindable] private var myArrayCollection:ArrayCollection = new ArrayCollection();</pre>
<p>[/codesyntax]</p>
<p>An ArrayCollection can be created in one of three ways:</p>
<p>[codesyntax lang="actionscript3"]</p>
<pre>// creating ArrayCollection with zero elements
private var myArrayCollection:ArrayCollection = new ArrayCollection();
// passing an existing Array into an ArrayCollection via the constructor
private var myArrayCollection:ArrayCollection = new ArrayCollection(myArray);
// assigning an existing Array to the source property of an ArrayCollection
private var myArrayCollection:ArrayCollection = new ArrayCollection();
myArrayCollection.source = myArray;</pre>
<p>[/codesyntax]</p>
<p>Extending the <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html">ListCollectionView </a>class  that implements the ICollectionView and IList interfaces, an  ArrayCollection inherits a handful of properties, methods and events.  Therefore, your plain old Array now has a new set of functionality.</p>
<p>New properties include (but not limited to):</p>
<p>* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#filterFunction">filterFunction</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#length">length</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#list">list</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#sort">sort</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ArrayCollection.html#source">source</a></p>
<p>New methods include (but not limited to):</p>
<p>* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#addEventListener%28%29">addEventListener</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#addItem%28%29">addItem</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#addItemAt%28%29">addItemAt</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#contains%28%29">contains</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#getItemAt%28%29">getItemAt</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#getItemIndex%28%29">getItemIndex</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#refresh%28%29">refresh</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#removeAll%28%29">removeAll</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#removeItemAt%28%29">removeItemAt</a><br />
* <a href="http://livedocs.adobe.com/flex/3/langref/mx/collections/ListCollectionView.html#setItemAt%28%29">setItemAt</a></p>
<p>Once an Array is wrapped inside an ArrayCollection, the properties  and methods of the Array class are no longer accessible unless you  access them through the Array object directly. For example, if you  really want to use the Array’s push method, you could do the following:</p>
<pre>[codesyntax lang="actionscript3"]
<pre>myArrayCollection.source.push("new element");</pre>
<p>[/codesyntax]</pre>
<p>Using an ArrayCollection in place of or in tandem with an existing  Array provides Flex developers with a valuable and responsive data  storage and retrieval mechanism.</p>
<pre></pre>
]]></content:encoded>
			<wfw:commentRss>http://vinothbabu.com/2010/09/01/all-about-arraycollection-flex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE9 Screenshot Leaked</title>
		<link>http://vinothbabu.com/2010/08/30/ie9-screenshot-leaked/</link>
		<comments>http://vinothbabu.com/2010/08/30/ie9-screenshot-leaked/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 12:07:27 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[My World]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://vinothbabu.com/?p=335</guid>
		<description><![CDATA[The new interface of much waited Internet Explorer 9 has been revealed following an article which was published by one of Microsoft&#8217;s Russian subsidiaries. Though it was removed quickly, but it was too late. Microsoft has refused to publicly comment about the leak but, if it’s a fake, it’s very good one. I wonder if [...]]]></description>
			<content:encoded><![CDATA[<p>The new interface of much waited Internet Explorer 9 has been revealed following an article which was published by one of Microsoft&#8217;s Russian subsidiaries. Though it was removed quickly, but it was too late.<span id="more-335"></span></p>
<p><a href="http://vinothbabu.com/wp-content/uploads/2010/08/399-ie9-screenshot-full2.jpg"><img class="aligncenter size-medium wp-image-339" title="399-ie9-screenshot-full" src="http://vinothbabu.com/wp-content/uploads/2010/08/399-ie9-screenshot-full2-300x255.jpg" alt="" width="300" height="255" /></a>Microsoft has refused to publicly comment about the leak but, if it’s a fake, it’s very good one. I wonder if the tab bar will spill over on to the next line like floated  elements in css. Also there is no bookmarks bar or status bar</p>
]]></content:encoded>
			<wfw:commentRss>http://vinothbabu.com/2010/08/30/ie9-screenshot-leaked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creational Patterns &#8211; Abstract Factory Pattern</title>
		<link>http://vinothbabu.com/2010/08/09/creational-patterns-abstract-factory-pattern/</link>
		<comments>http://vinothbabu.com/2010/08/09/creational-patterns-abstract-factory-pattern/#comments</comments>
		<pubDate>Mon, 09 Aug 2010 11:09:20 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[Abstract factory pattern]]></category>
		<category><![CDATA[Creational pattern]]></category>
		<category><![CDATA[Design Patterns]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://vinothbabu.com/?p=312</guid>
		<description><![CDATA[Today we are going to see one of the design patterns abstract factory. Its one level of abstraction higher than factory pattern.The main use of Abstract Factory Patten is that is isolates the concrete classes which are generated. Do we need the names of actual implemenating classes? The names of actual implementing classes are not [...]]]></description>
			<content:encoded><![CDATA[<p>Today we are going to see one of the design patterns abstract factory. Its one level of abstraction higher than factory pattern.The main use of Abstract Factory Patten is that is isolates the concrete classes which are generated. <span id="more-312"></span><strong>Do we need the names of actual implemenating classes? </strong></p>
<p>The names of actual implementing classes are not needed to be known at the client side. Because of the isolation, you can change the implementation from one factory to another. This means that the abstract factory returns the factory of classes.</p>
<p>Since being a die hard fan of RajiniKanth, let me get into his style of explaining things with an example. Let us go with an requirement where we are choosing our team for the current project.</p>
<p>[codesyntax lang="java5"]</p>
<pre>public abstract class ResourceManager {
public abstract Specs getTeamSize();
public abstract Specs getTeamsManager();
public abstract Specs getTechnology();
}// End of class</pre>
<p>[/codesyntax]</p>
<p>This class, as you can see, has three methods all returning different Specs of Resources Needed. They all return a method called Specs . The specification will be different for different types of Projects. Let’s have a look at the class Specs .</p>
<p>[codesyntax lang="java5"]</p>
<pre>package creational.abstractfactory;
public class Specs {
public String specification;
public Specs (String specification) {
this.specification = specification;
}
public String getSpecification() {
return specification;
}
}// End of class</pre>
<p>[/codesyntax]</p>
<p>And now lets go to the sub-classes of ResourceManager . They are Google, Davita and Yahoo.</p>
<p>[codesyntax lang="java5"]</p>
<pre>package creational.abstractfactory;
public class Google extends ResourceManager {
public Specs getTeamSize() {
return new Specs ("25");
}
public Specs getTeamsManager() {
return new Specs ("Vivek");
}
public Specs getTechnology() {
return new Specs ("Java");
}
}// End of class</pre>
<p>[/codesyntax]</p>
<p>[codesyntax lang="java5"]</p>
<pre>public class Davita extends ResourceManager {
public Specs getTeamSize() {
return new Specs ("30");
}
public Specs getTeamsManager() {
return new Specs ("Vinothbabu");
}
public Specs getTechnology() {
return new Specs ("Flex");
}
}// End of class</pre>
<p>[/codesyntax]</p>
<p>[codesyntax lang="java5"]</p>
<pre>public class Yahoo extends ResourceManager {
public Specs getTeamSize() {
return new Specs ("10");
}
public Specs getTeamsManager() {
return new Specs ("Padmanaban");
}
public Specs getTechnology() {
return new Specs ("DOT NET");
}
}// End of class</pre>
<p>[/codesyntax]</p>
<p>Now let’s have a look at the Abstract factory which returns a factory “ResourceManager ”. We call the class ResourceType.</p>
<p>[codesyntax lang="java5"]</p>
<pre>package creational.abstractfactory;
public class ResourceType {
private ResourceManager resm;
public static void main(String[] args) {

ResourceType type = new ResourceType();
//ResourceManager resourceManager = type.getClientName("Google");
System.out.println("Monitor: "+computer.getTeamSize().getSpecification());
System.out.println("RAM: "+computer.getTeamsManager().getSpecification());
System.out.println("Processor: "+computer.getTechnology().getSpecification());
}
public Computer getClientName(String resourceType) {

if (resourceType.equals("Google"))
resm = new Google();
else if(computerType.equals("Davita"))
resm = new Davita();
else if(computerType.equals("Yahoo"))
resm = new Yahoo();
return resm;
  }
}// End of class</pre>
<p>[/codesyntax]</p>
<p><strong>Conclusion:</strong></p>
<p>Abstract factory pattern centralizes decision of what factory to instantiate. Abstract Factory can be used as an alternative to Facade to hide platform-specific classes.</p>
]]></content:encoded>
			<wfw:commentRss>http://vinothbabu.com/2010/08/09/creational-patterns-abstract-factory-pattern/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Singletons in Java</title>
		<link>http://vinothbabu.com/2010/07/16/singletons-in-java/</link>
		<comments>http://vinothbabu.com/2010/07/16/singletons-in-java/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 10:14:41 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[Creational pattern]]></category>
		<category><![CDATA[Design Patterns]]></category>
		<category><![CDATA[JAVA/J2EE]]></category>
		<category><![CDATA[Singleton pattern]]></category>

		<guid isPermaLink="false">http://vinothbabu.com/?p=306</guid>
		<description><![CDATA[Singletons are the design pattern when you want only one instance of a class created. You make the constructor private, and give access to the instantiated object via a static instance method that creates the object if it has not been created already. The singleton class is threadsafe lazy instantiation. I hope many would be [...]]]></description>
			<content:encoded><![CDATA[<p>Singletons are the design pattern when you want only one instance of a class created. You make the constructor private, and give access to the instantiated object via a static instance method that creates the object if it has not been created already.<br />
The singleton class is threadsafe lazy instantiation. I hope many would be knowing on lazy instantiation. With lazy instantiation, a program refrains from creating certain resources until the resource is first needed &#8212; freeing valuable memory space. In lame man words, loading the resource only when its needed.<br />
[codesyntax lang="java5"]<br />
public class YourSingletonClass{<br />
private static YourSingletonClassinstance = new YourSingletonClass();<br />
public static YourSingletonClass getInstance(){<br />
return instance;<br />
}<br />
private YourSingletonClass(){<br />
}<br />
}<br />
[/codesyntax]<br />
<strong>How do we ensure only one the same instance is returned?</strong></p>
<p>We write a public static getter or access method to get the instance of the Singleton Object at runtime. First time the object is created inside this method as it is null. Subsequent calls to this method returns the same object created as the object is globally declared (private) and the hence the same referenced object is returned.</p>
]]></content:encoded>
			<wfw:commentRss>http://vinothbabu.com/2010/07/16/singletons-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating flex components in runtime using XML</title>
		<link>http://vinothbabu.com/2010/05/18/creating-flex-components-in-runtime-using-xml/</link>
		<comments>http://vinothbabu.com/2010/05/18/creating-flex-components-in-runtime-using-xml/#comments</comments>
		<pubDate>Tue, 18 May 2010 20:36:22 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[ActionScript 3.0]]></category>
		<category><![CDATA[Adobe Flex]]></category>
		<category><![CDATA[featured]]></category>

		<guid isPermaLink="false">http://vinothbabu.com/?p=296</guid>
		<description><![CDATA[Today i was going through an requirement on how to create components in runtime where we have parse an XML as input and then create components in the stage.[codesyntax lang="actionscript3" container="none"] &#60;?xml version="1.0" encoding="utf-8"?&#62; &#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="creationCompleteHandler()"&#62; &#60;mx:Script&#62; &#60;![CDATA[ import flash.display.DisplayObject; import mx.core.UIComponent; import mx.controls.ComboBox; ComboBox; import mx.controls.RadioButton; RadioButton; import mx.controls.CheckBox; CheckBox; import mx.controls.TextArea; TextArea; [...]]]></description>
			<content:encoded><![CDATA[<p>Today i was going through an requirement on how to create components in runtime where we have parse an XML as input and then create components in the stage.<span id="more-296"></span>[codesyntax lang="actionscript3" container="none"]</p>
<pre>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
 creationComplete="creationCompleteHandler()"&gt;

 &lt;mx:Script&gt;
 &lt;![CDATA[

 import flash.display.DisplayObject;
 import mx.core.UIComponent;
 import mx.controls.ComboBox; ComboBox;
 import mx.controls.RadioButton; RadioButton;
 import mx.controls.CheckBox; CheckBox;
 import mx.controls.TextArea; TextArea;

 protected function creationCompleteHandler():void
 {
 var components:Array = getComponentsFromXML(xml.component);
 var i:int = 0;
 var n:int = components.length;
 for (i; i &lt; n; i++)
 {
 panel.addChild(components[i] as DisplayObject);
 }
 }

 /**
 *  Parses an XML string, returns array of new components.
 */
 public function getComponentsFromXML(components:XMLList):Array
 {
 var result:Array = [];
 var child:Object;
 var component:UIComponent;
 var type:String;
 var clazz:Class;
 var i:int = 0;
 var n:int = components.length();
 for (i; i &lt; n; i++)
 {
 child = components[i];
 type = child.@type;
 try {
 clazz = flash.utils.getDefinitionByName(type) as Class;
 } catch (error:ReferenceError) {
 traceImportError(type);
 }

 component = new clazz(); // dynamic

 var properties:XMLList = child.elements();
 var property:XML;
 var name:String;
 var value:Object;

 // for each child node
 for each (property in properties)
 {
 name = property.localName();
 value = property.toString();
 // create a more generic method to convert
 // strings to numbers and whatnot
 // this is a regular expression matching any digit
 // check out rubular.com
 if (/\d+/.test(value.toString()))
 value = Number(value);

 if (property.attribute("isStyle") == "true")
 component.setStyle(name, value);
 else
 component[name] = value;
 }
 result.push(component);
 }
 return result;
 }

 protected function traceImportError(type:String):void
 {
 trace("Please include the class '" + type + "' in the swf.");
 var names:Array = type.split(".");
 var last:String = names[names.length - 1];
 trace("import " + type + "; " + last + ";");
 }

 ]]&gt;
 &lt;/mx:Script&gt;

 &lt;!-- sample data --&gt;
 &lt;mx:XML id="xml" source="components.xml" /&gt;

 &lt;!-- sample container --&gt;
 &lt;mx:Panel id="panel" width="100%" height="100%"/&gt;

&lt;/mx:Application&gt;</pre>
<p>[/codesyntax]</p>
<p><a href="http://www.vinothbabu.com/Flex-Samples/creatingComponentsFromXML/creatingComponentsFromXML.html" target="_blank">Live Demo</a></p>
<p><a href="http://www.vinothbabu.com/Flex-Samples/creatingComponentsFromXML.zip" target="_self">Application source</a></p>
]]></content:encoded>
			<wfw:commentRss>http://vinothbabu.com/2010/05/18/creating-flex-components-in-runtime-using-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

