<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Programming Networking Java and RDBMS</title>
	<atom:link href="http://akmanocha.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://akmanocha.wordpress.com</link>
	<description>some random notes on the Java RDBMS things which either kills my time or excites me enough</description>
	<lastBuildDate>Wed, 09 Dec 2009 11:29:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='akmanocha.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Programming Networking Java and RDBMS</title>
		<link>http://akmanocha.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://akmanocha.wordpress.com/osd.xml" title="Programming Networking Java and RDBMS" />
	<atom:link rel='hub' href='http://akmanocha.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Self Test Java -2</title>
		<link>http://akmanocha.wordpress.com/2009/12/09/self-test-java-2/</link>
		<comments>http://akmanocha.wordpress.com/2009/12/09/self-test-java-2/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 11:29:53 +0000</pubDate>
		<dc:creator>akmanocha</dc:creator>
				<category><![CDATA[clone]]></category>
		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://akmanocha.wordpress.com/?p=28</guid>
		<description><![CDATA[In the same pattern as of last post, I have a new question. Just the difference this time is the question was asked by my brother. Ques:Why is clone method declared protected in Java (object class) I thought hard and thought process led me to the basic difference between public and protected method. For One. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=28&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the same pattern as of last post, I have a new question. Just the difference this time is the question was asked by my brother.</p>
<ol>Ques:Why is clone method declared protected in Java (object class)</ol>
<p>I thought hard and thought process led me to the basic difference between public and protected method. For One. And for second thing, I thought deeply about the Clonable interface may be for the first time. Obviously if a method is defined protected, it is supposed to be used in the class hierarchy only. It can not be called from outside.<br />
1.But why it is kept protected?<br />
2.And doesn&#8217;t Object class provide any implementation of clone(). Does it return null? Does nothing? Throw an exception?<br />
3. What&#8217;s the use of Clonebale interface?</p>
<p>Answers in that order:<br />
1. It&#8217;s kept protected because of the reason so that in your class hierarchy you can provide &#8220;deep copy&#8221; or &#8220;shallow copy&#8221; and you have to take a stand.<br />
Let&#8217;s say with example (<a href="https://lists.xcf.berkeley.edu/lists/advanced-java/1999-December/004590.html"> Reason)<br />
2. for second take straight from Sun javadoc:<br />
&#8220;The method clone for class Object performs a specific cloning operation. First, if the class of this object does not implement the interface Cloneable, then a CloneNotSupportedException is thrown. Note that all arrays are considered to implement the interface Cloneable. Otherwise, this method creates a new instance of the class of this object and initializes all its fields with exactly the contents of the corresponding fields of this object, as if by assignment; the contents of the fields are not themselves cloned.&#8221;<br />
3.Brings us back to the debate of marker interface. Leave that. Its more debatable than that because of the way clone() has been defined in Object class. Because of its access modifier. This is what I have to say (echo-ing somebody else views):<br />
&#8220;You can&#8217;t clone anything that doesn&#8217;t implement the Cloneable interface, but just because something implements the Cloneable interface doesn&#8217;t mean you can clone it&#8221;</p>
<p>Comments (in fact calrity) invited.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akmanocha.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akmanocha.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akmanocha.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akmanocha.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akmanocha.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akmanocha.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akmanocha.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akmanocha.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akmanocha.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akmanocha.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akmanocha.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akmanocha.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akmanocha.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akmanocha.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=28&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akmanocha.wordpress.com/2009/12/09/self-test-java-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a59310b55038448f49d81f5d046a7973?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akmanocha</media:title>
		</media:content>
	</item>
		<item>
		<title>Self Test Java -1</title>
		<link>http://akmanocha.wordpress.com/2009/12/09/self-test-java-1/</link>
		<comments>http://akmanocha.wordpress.com/2009/12/09/self-test-java-1/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 08:40:52 +0000</pubDate>
		<dc:creator>akmanocha</dc:creator>
				<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://akmanocha.wordpress.com/?p=24</guid>
		<description><![CDATA[Yesterday, one of my colleague casually mentioned something while having lunch together. This is what he said &#8220;I am having a class in jar&#8221; On which I can do Class.foName("fully qualified class name"); But, I am not able to do clazz.newInstance(); The question stuck in my mind. But instead of going ususal root of opening [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=24&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yesterday, one of my colleague casually mentioned something while having lunch together. This is what he said &#8220;I am having a class in jar&#8221; On which I can do</p>
<p><code>Class.foName("fully qualified class name");</p>
<p></code></p>
<p>But, I am not able to do</p>
<p><code>clazz.newInstance();</p>
<p></code></p>
<p>The question stuck in my mind. But instead of going ususal root of opening a google box and tamly looking for answer I thought to self test me too. It should be easy pick and I got it bang on target except for the Exception names and exact jargon of the words. One should not be so hard on himself.</p>
<p>Quotuing from javadoc</p>
<p><code>
<dl>
<dt><strong>Returns:</strong> </dt>
<dd>a newly allocated instance of the class represented by this object. </dd>
<dt><strong>Throws:</strong> </dt>
<dd><code><a title="class in java.lang" href="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/IllegalAccessException.html">IllegalAccessException</a></code> - if the class or its nullary constructor is not accessible. </dd>
<dd><code><a title="class in java.lang" href="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/InstantiationException.html">InstantiationException</a></code> - if this <code>Class</code> represents an abstract class, an interface, an array class, a primitive type, or void; or if the class has no nullary constructor; or if the instantiation fails for some other reason. </dd>
<dd><code><a title="class in java.lang" href="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ExceptionInInitializerError.html">ExceptionInInitializerError</a></code> - if the initialization provoked by this method fails. </dd>
<dd><code><a title="class in java.lang" href="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/SecurityException.html">SecurityException</a></code> - if there is no permission to create a new instance.</dd>
</dl>
<p> </p>
<p></code></p>
<p>Now this gonna be my new questions in the interviews I take. M gonna have some fun.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akmanocha.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akmanocha.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akmanocha.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akmanocha.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akmanocha.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akmanocha.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akmanocha.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akmanocha.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akmanocha.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akmanocha.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akmanocha.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akmanocha.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akmanocha.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akmanocha.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=24&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akmanocha.wordpress.com/2009/12/09/self-test-java-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a59310b55038448f49d81f5d046a7973?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akmanocha</media:title>
		</media:content>
	</item>
		<item>
		<title>DataStructure quick pick</title>
		<link>http://akmanocha.wordpress.com/2009/12/09/datastructure-quick-pick/</link>
		<comments>http://akmanocha.wordpress.com/2009/12/09/datastructure-quick-pick/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 03:21:07 +0000</pubDate>
		<dc:creator>akmanocha</dc:creator>
				<category><![CDATA[DataStructure]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[heap]]></category>
		<category><![CDATA[linkedlist]]></category>
		<category><![CDATA[queue]]></category>
		<category><![CDATA[stack tree]]></category>

		<guid isPermaLink="false">http://akmanocha.wordpress.com/?p=19</guid>
		<description><![CDATA[Got this in the mail from my brother. Feel its handy. It might be from some source, which I don&#8217;t know, hence unable to quote otherwise would have. Nonethelss worth saving in this post too. Data Structure: Array Advantages: Quick Insertion, Very fast access if index known Disadvantage: Slow search, slow deletion, fised size Data [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=19&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Got this in the mail from my brother. Feel its handy. It might be from some source, which I don&#8217;t know, hence unable to quote otherwise would have.<br />
Nonethelss worth saving in this post too.</p>
<li>Data Structure: Array<br />
Advantages: Quick Insertion, Very fast access if index known<br />
Disadvantage: Slow search, slow deletion, fised size</li>
<li>Data Structure: Ordered array<br />
Advantages: Quicker search than unsorted array<br />
Disadvantage: Slow insertion and deletion, fixed size</li>
<li>Data Structure: Stack<br />
Advantages: Provides LIFO<br />
Disadvantage: Slow access to other items</li>
<li>Data Structure: Queue<br />
Advantages: Provides FIFO<br />
Disadvantage: Slow access to other items</li>
<li>Data Structure: Linked List<br />
Advantage: Quick insertion, quick deletion<br />
Disadvantage: Slow search</li>
<li>Data Structure: Binary Tree<br />
Advantage: Quick Search, insertion, deletion (if tree remains balanced)<br />
Disadvantage: Deletion Algorithm is complex</li>
<li>Data Structure: Red-Black tree<br />
Advantage: Quick search, insertion, deletion. Tree always balanced<br />
Disadvantage: Complex</li>
<li>Data Structure: 2-3-4 tree<br />
Advantage: Quick search, insertion, deletion. Tree always balanced. Similer trees good for disk storage.<br />
Disadvantage: Complex</li>
<li>Data Structure: Hash table<br />
Advantage: Very fast access if key known. Fast insertion.<br />
Disadvantage: Slow deletion, access slow if key not known, inefficient memory usage.</li>
<li>Data Structure: Heap<br />
Advantage: Fast insertion, deletion, access to largest item.<br />
Disadvantage: Slow access to other items.</li>
<li>Data Structure: Graph<br />
Advantage: Model real world situation<br />
Disadvantage: Some algorithms are slow and complex.</li>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akmanocha.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akmanocha.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akmanocha.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akmanocha.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akmanocha.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akmanocha.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akmanocha.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akmanocha.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akmanocha.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akmanocha.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akmanocha.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akmanocha.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akmanocha.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akmanocha.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=19&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akmanocha.wordpress.com/2009/12/09/datastructure-quick-pick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a59310b55038448f49d81f5d046a7973?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akmanocha</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL SQL everywhere</title>
		<link>http://akmanocha.wordpress.com/2009/12/08/sql-sql-everywhere/</link>
		<comments>http://akmanocha.wordpress.com/2009/12/08/sql-sql-everywhere/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 14:45:40 +0000</pubDate>
		<dc:creator>akmanocha</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://akmanocha.wordpress.com/?p=16</guid>
		<description><![CDATA[this link was working yesterday, today thought of sending it to my bro and found this ;- http://dvdstore.erosentertainment.com/product/specialoffer.asp Microsoft OLE DB Provider for SQL Server error '80040e14' Incorrect syntax near the keyword 'and'. /product/specialoffer.asp, line 20 See the snapshot attached. Some observations: 1. SQL does have error name? Of what use man? Is there any [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=16&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>this link was working yesterday, today thought of sending it to my bro and found this ;-</p>
<p>http://dvdstore.erosentertainment.com/product/specialoffer.asp</p>
<p><code><br />
Microsoft OLE DB Provider for SQL Server error '80040e14'</p>
<p>Incorrect syntax near the keyword 'and'.</p>
<p>/product/specialoffer.asp, line 20<br />
</code></p>
<p>See the snapshot attached.<br />
<img src="http://dvdstore.erosentertainment.com/product/specialoffer.asp" alt="Should happen on prod at least?" /><br />
Some observations:<br />
1. SQL does have error name? Of what use man? Is there any consensus among different RDBMS.<br />
2. It should be a simple testing, I guess. </p>
<p>Guys, share your WTF &#8230;. preferably from Indian sites.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akmanocha.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akmanocha.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akmanocha.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akmanocha.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akmanocha.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akmanocha.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akmanocha.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akmanocha.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akmanocha.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akmanocha.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akmanocha.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akmanocha.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akmanocha.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akmanocha.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=16&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akmanocha.wordpress.com/2009/12/08/sql-sql-everywhere/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a59310b55038448f49d81f5d046a7973?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akmanocha</media:title>
		</media:content>

		<media:content url="http://dvdstore.erosentertainment.com/product/specialoffer.asp" medium="image">
			<media:title type="html">Should happen on prod at least?</media:title>
		</media:content>
	</item>
		<item>
		<title>First tryst with .Net</title>
		<link>http://akmanocha.wordpress.com/2009/12/07/first-tryst-with-net/</link>
		<comments>http://akmanocha.wordpress.com/2009/12/07/first-tryst-with-net/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 09:09:11 +0000</pubDate>
		<dc:creator>akmanocha</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[VS2008]]></category>
		<category><![CDATA[WinForm]]></category>

		<guid isPermaLink="false">http://akmanocha.wordpress.com/?p=11</guid>
		<description><![CDATA[Disclaimer in the beginning itself : I am a java professional basically and Java J2EE and RDBMS is my bread and butter. Still, in the due course of time and out of passion for different programming languages, to gain versatility, and because of mood swings I get rather frequently than rarely, I have a fair bit of flair [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=11&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Disclaimer in the beginning itself : I am a java professional basically and Java J2EE and RDBMS is my bread and butter.</p>
<p>Still, in the due course of time and out of passion for different programming languages, to gain versatility, and because of mood swings I get rather frequently than rarely, I have a fair bit of flair for PHP, Ruby, Python et al&#8230;</p>
<p>C and C++ was my introduction to programming language world, some 10 years back, but never got chance to work extensively on those. Had C# basic knowledge as such, but nothing concrete again. That sums up .Net.</p>
<p>But recently got into the project which has its backend in Java and client written in C#. Want to take full use of technologies.</p>
<p>Intsalled .Net framework 1.0/2.0 and 3.5 which comes bundled with VS2008. First thing first, being a Eclipse/Idea guy all along, spent my hours making VS too similar to Eclipse for me. Second, I always start a project with &#8220;debug&#8221;. Now I am not aware of the theories regarding whether its right or wrong to do so, but yet this is my modus operandi, so I set sail on my debug journey.</p>
<p>Got my debug working. Found out two-three things in first hour, these are:</p>
<p>1. Just like jars, here the things resolve around dlls.</p>
<p>2. the interface to include those dependencies though are pretty bad.</p>
<p>3. VS is much much slow than Eclipse in my humble opinion. You can say I knew it by birth, but now I can definitely write so too.</p>
<p>4. Strange things happen in .Net world (Pardon me, I have heard that too many times that it has definitely affected my viewpoint). My project was supposed to work from the word &#8220;go&#8221;, but it didn&#8217;t. Got some System.DLLexception: and it was not able to load some DLL we are creating in the project through NAnt.  (It was my first experience with NAnt too, something, a very little tiny thing about that in some other post too.) so, DLL was there. But why the f***, it was not able to load then. Got to know it might be because of some other DLLs which this DLL is dependent on. Fine. I thought I will check that. got to know about dependecnychecker, run it and to my surprise and irritation found that whatever dlls it require are present in my system, their path is already included. What the hack! Then, just it happens, sometimes some idea strikes by lightning, I thought to give VS a restart and viola! (Questions for experts here first: I have seen these kind of things sometime happening with Eclipse too, not with jars, is it VS issue or some crap of .Net?)</p>
<p>5. Shortcuts with VS are so bad, I say.</p>
<p>6. Good learning,  and my learning starts with the DLLimport sort of keywords, already a stuff of intermediate level I guess(other experts can confirm or take me out of my fairy tales)</p>
<p>7. Did learn about setting arguments, setting output directories, Assembly Infos in the first go. first two much like Java, not a big deal!</p>
<p>Hope I will get more insight with already running (although crappy)  code at my disposal.</p>
<p>One last question: What&#8217;s the best framework to embed MVC in window Form applications?</p>
<p>And what the hack is Resharper?</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akmanocha.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akmanocha.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akmanocha.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akmanocha.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akmanocha.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akmanocha.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akmanocha.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akmanocha.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akmanocha.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akmanocha.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akmanocha.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akmanocha.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akmanocha.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akmanocha.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=11&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akmanocha.wordpress.com/2009/12/07/first-tryst-with-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a59310b55038448f49d81f5d046a7973?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akmanocha</media:title>
		</media:content>
	</item>
		<item>
		<title>rowcount and variable value on unsuccessful select.</title>
		<link>http://akmanocha.wordpress.com/2009/11/25/rowcount-and-variable-value-on-unsuccessful-select/</link>
		<comments>http://akmanocha.wordpress.com/2009/11/25/rowcount-and-variable-value-on-unsuccessful-select/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 14:23:43 +0000</pubDate>
		<dc:creator>akmanocha</dc:creator>
				<category><![CDATA[PL/SQL]]></category>
		<category><![CDATA[RDBMS]]></category>
		<category><![CDATA[Stored Procedure]]></category>

		<guid isPermaLink="false">http://akmanocha.wordpress.com/?p=8</guid>
		<description><![CDATA[Learn a new thing today, as always. That&#8217;s a classical hierarchical tree problem reprsented in relational database. A table having nodeId and parentNodeId and thus the tree is set up. How do you get the org tree startting from anode going up till the root node level? A stored proc. But two problems in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=8&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Learn a new thing today, as always. That&#8217;s a classical hierarchical tree problem reprsented in relational database.</p>
<p>A table having nodeId and parentNodeId and thus the tree is set up. How do you get the org tree startting from anode going up till the root node level? A stored proc.</p>
<p>But two problems in the implementation.</p>
<p>1. If you want base your loop termination logic in a PL/SQL stored proc on the basis of rowcount on the select statement having where clause.  Then it doesn&#8217;t work. It is not considered unsuccessful, hence doesn&#8217;t result ZERO as rowcount as per PL/SQL rule.</p>
<p>2. If you want to have your loop termination logic on the basis of variable&#8217;s value obtained from the select. That too doesnt gonna work as it doesnt update the value with null on the basis of no row returend.</p>
<p>THE SOLUTION: have a prevParentNodeId and parentNodeId. Andrest you know. Check for the inequality/equality of those.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akmanocha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akmanocha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akmanocha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akmanocha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akmanocha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akmanocha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akmanocha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akmanocha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akmanocha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akmanocha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akmanocha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akmanocha.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akmanocha.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akmanocha.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=8&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akmanocha.wordpress.com/2009/11/25/rowcount-and-variable-value-on-unsuccessful-select/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a59310b55038448f49d81f5d046a7973?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akmanocha</media:title>
		</media:content>
	</item>
		<item>
		<title>Javadoc says about registering a SASL Mechanism &#8230;.</title>
		<link>http://akmanocha.wordpress.com/2009/11/25/javadoc-says-about-registering-a-sasl-mechanism/</link>
		<comments>http://akmanocha.wordpress.com/2009/11/25/javadoc-says-about-registering-a-sasl-mechanism/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 14:15:42 +0000</pubDate>
		<dc:creator>akmanocha</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[smack]]></category>

		<guid isPermaLink="false">http://akmanocha.wordpress.com/?p=6</guid>
		<description><![CDATA[So, what you do if that&#8217;s not working? That&#8217;s it. All the tutorials say on the vast internet. You register all the possible SASLMechanism those are provided by the api/javadoc. Still, its throwing the SASLauthentication failed exception saying authentication failed by &#8220;PLAIN&#8221; mechanism. So, what you do? Easy. You go and un-register that mechanism. Think [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=6&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, what you do if that&#8217;s not working? That&#8217;s it. All the tutorials say on the vast internet.</p>
<p>You register all the possible SASLMechanism those are provided by the api/javadoc. Still, its throwing the SASLauthentication failed exception saying authentication failed by &#8220;PLAIN&#8221; mechanism.</p>
<p>So, what you do?</p>
<p>Easy. You go and un-register that mechanism. Think beyond tutorials and javadoc. Think common sense.</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akmanocha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akmanocha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akmanocha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akmanocha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akmanocha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akmanocha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akmanocha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akmanocha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akmanocha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akmanocha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akmanocha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akmanocha.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akmanocha.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akmanocha.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=6&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akmanocha.wordpress.com/2009/11/25/javadoc-says-about-registering-a-sasl-mechanism/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a59310b55038448f49d81f5d046a7973?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akmanocha</media:title>
		</media:content>
	</item>
		<item>
		<title>Overloaded method invocation in java reflection api</title>
		<link>http://akmanocha.wordpress.com/2009/11/24/overloaded-method-invocation-in-java-reflection-api/</link>
		<comments>http://akmanocha.wordpress.com/2009/11/24/overloaded-method-invocation-in-java-reflection-api/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 15:59:38 +0000</pubDate>
		<dc:creator>akmanocha</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Reflection]]></category>

		<guid isPermaLink="false">http://akmanocha.wordpress.com/?p=3</guid>
		<description><![CDATA[Java Reflection API<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=3&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Bad 3 hours at work.</p>
<p>Was trying to invoke some public function on a class through reflection. Now, just to make that interesting, the method in limelight is overloaded (some 8 times). So poor soul me was thinking that this part needs to be taken care of in Method.invoke(Object arg, Object&#8230; args) only.</p>
<p>xxxMethod.invoke(class, array, arg2);</p>
<p>Got bit less informative exception too. IllegalArgumentException: wrong number of arguments</p>
<p>But at invoke line.</p>
<p>Up above in the code, I was creating that method something like</p>
<p>Method xxxMethod = Class.gethMethod(&#8220;xxx&#8221;, array.getClass());</p>
<p>Now, shouldn&#8217;t the error somehow point to above line also instead of invoke.</p>
<p>Or I guess, it shouldn&#8217;t.  Pretty lame of me, but wasted two precious hours.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/akmanocha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/akmanocha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/akmanocha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/akmanocha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/akmanocha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/akmanocha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/akmanocha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/akmanocha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/akmanocha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/akmanocha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/akmanocha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/akmanocha.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/akmanocha.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/akmanocha.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=akmanocha.wordpress.com&amp;blog=10656270&amp;post=3&amp;subd=akmanocha&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://akmanocha.wordpress.com/2009/11/24/overloaded-method-invocation-in-java-reflection-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a59310b55038448f49d81f5d046a7973?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">akmanocha</media:title>
		</media:content>
	</item>
	</channel>
</rss>
