<?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>Technical Bhaigiri</title>
	<atom:link href="http://techbhai.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://techbhai.wordpress.com</link>
	<description>Bhai To The Rescue</description>
	<lastBuildDate>Sat, 17 Jan 2009 01:50:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='techbhai.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Technical Bhaigiri</title>
		<link>http://techbhai.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://techbhai.wordpress.com/osd.xml" title="Technical Bhaigiri" />
	<atom:link rel='hub' href='http://techbhai.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Learning Spring webMVC using Springframework tutorial</title>
		<link>http://techbhai.wordpress.com/2009/01/17/learning-spring-webmvc-using-springframework-tutorial/</link>
		<comments>http://techbhai.wordpress.com/2009/01/17/learning-spring-webmvc-using-springframework-tutorial/#comments</comments>
		<pubDate>Sat, 17 Jan 2009 01:42:36 +0000</pubDate>
		<dc:creator>amlistening</dc:creator>
				<category><![CDATA[Programming Practice]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[beans]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[http://static.springframework.org/docs/Spring-MVC-step-by-step/part4.html]]></category>
		<category><![CDATA[Spring WebMVC]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://techbhai.wordpress.com/?p=116</guid>
		<description><![CDATA[So unless you like Netbeans, it might be a series of manual steps to create a Spring WebMVC application setup. A good idea is to use the SpringFramework tutorial as given on http://static.springframework.org/docs/Spring-MVC-step-by-step/index.html There is a small error in the &#8230; <a href="http://techbhai.wordpress.com/2009/01/17/learning-spring-webmvc-using-springframework-tutorial/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=116&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So unless you like Netbeans, it might be a series of manual steps to create a Spring WebMVC application setup. A good idea is to use the SpringFramework tutorial as given on <a href="http://static.springframework.org/docs/Spring-MVC-step-by-step/index.html">http://static.springframework.org/docs/Spring-MVC-step-by-step/index.html</a><img class="alignleft size-full wp-image-120" title="xdev-spring_logo" src="http://techbhai.files.wordpress.com/2009/01/xdev-spring_logo.jpg?w=500&#038;h=69" alt="xdev-spring_logo" width="500" height="69" /></p>
<p>There is a small error in the tutorial, so to save you time if you use this, watchout for the extra &#8220;&lt;beans&gt;&#8221; tag.  So your springapp-servlet.xml in Chapter 4 should look like</p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;UTF-8&#8243;?&gt;</p>
<p>&lt;beans xmlns=&#8221;<a href="http://www.springframework.org/schema/beans">http://www.springframework.org/schema/beans</a>&#8220;<br />
       xmlns:xsi=&#8221;<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>&#8220;<br />
       xsi:schemaLocation=&#8221;<a href="http://www.springframework.org/schema/beans">http://www.springframework.org/schema/beans</a><br />
       <a href="http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">http://www.springframework.org/schema/beans/spring-beans-2.5.xsd</a>&#8220;&gt;</p>
<p><span style="text-decoration:line-through;">&lt;beans&gt;</span></p>
<p>&lt;bean id=&#8221;&#8230;&#8230;&#8230;.</p>
<p>Ref: <a href="http://static.springframework.org/docs/Spring-MVC-step-by-step/part4.html">http://static.springframework.org/docs/Spring-MVC-step-by-step/part4.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techbhai.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techbhai.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techbhai.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techbhai.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techbhai.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techbhai.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techbhai.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techbhai.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techbhai.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techbhai.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techbhai.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techbhai.wordpress.com/116/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techbhai.wordpress.com/116/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techbhai.wordpress.com/116/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=116&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techbhai.wordpress.com/2009/01/17/learning-spring-webmvc-using-springframework-tutorial/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8011a9992d4c02195f264e20516277a1?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">In my endeavor to explore</media:title>
		</media:content>

		<media:content url="http://techbhai.files.wordpress.com/2009/01/xdev-spring_logo.jpg" medium="image">
			<media:title type="html">xdev-spring_logo</media:title>
		</media:content>
	</item>
		<item>
		<title>Rownum and the Top-N query</title>
		<link>http://techbhai.wordpress.com/2008/11/02/rownum-and-the-top-n-query/</link>
		<comments>http://techbhai.wordpress.com/2008/11/02/rownum-and-the-top-n-query/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 22:26:25 +0000</pubDate>
		<dc:creator>amreekandesi</dc:creator>
				<category><![CDATA[Oracle]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[interview questions]]></category>
		<category><![CDATA[rownum]]></category>
		<category><![CDATA[top-n query]]></category>

		<guid isPermaLink="false">http://techbhai.wordpress.com/?p=110</guid>
		<description><![CDATA[Rownum is a special column that can be used to limit the number of results returned by a query. However, not understanding exactly how it works can lead to unexpected results. Let&#8217;s go into some simple scenarios involving the rownum &#8230; <a href="http://techbhai.wordpress.com/2008/11/02/rownum-and-the-top-n-query/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=110&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Rownum is a special column that can be used to limit the number of results returned by a query. However, not understanding exactly how it works can lead to unexpected results. Let&#8217;s go into some simple scenarios involving the <em>rownum </em>clause.</p>
<p style="text-align:justify;">Here&#8217;s our table definition:<br />
<span style="color:#000080;">create table employee (empname varchar(20), empid number(10));</span></p>
<p style="text-align:justify;">Let&#8217;s say we want to retrieve 5 rows from this table. This is what the query might look like.<br />
<span style="color:#000080;"><em>select * from employee where rownum &lt;= 5;</em></span></p>
<p style="text-align:justify;">Now if we want the top 5 empids from this table, here&#8217;s a novice attempt.  This query will not return the top 5 empids as desired, but just some 5 rows sorted by empids.<br />
<em><span style="color:#000080;">select * from employee where rownum &lt; 5 order by empid desc;</span></em></p>
<p style="text-align:justify;">Here&#8217;s what we need to do. What follows is called a <em>Top-N query</em>. This query contains a nested query that retrieves the rows from this table sorted by the empids, and then applies a rownum clause on the results of this query to return the desired result.<br />
<em><span style="color:#000080;">select * from (select * from employee order by empid desc) where rownum &lt;=5;</span></em></p>
<p style="text-align:justify;">Essentially a Top-N query is a query used to retrieve the top N rows from a table, based on desired conditions. In our example, our query was attempting to retrieve the top 5 empids from the employee table.</p>
<p style="text-align:justify;">(Please note that all queries listed here were run and tested on Oracle.)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techbhai.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techbhai.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techbhai.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techbhai.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techbhai.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techbhai.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techbhai.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techbhai.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techbhai.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techbhai.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techbhai.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techbhai.wordpress.com/110/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techbhai.wordpress.com/110/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techbhai.wordpress.com/110/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=110&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techbhai.wordpress.com/2008/11/02/rownum-and-the-top-n-query/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ae7208ac412d19adfd4eab2d9bc4cc82?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">amreekandesi</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming Practice: Prime Numbers</title>
		<link>http://techbhai.wordpress.com/2008/11/02/programming-practice-prime-numbers/</link>
		<comments>http://techbhai.wordpress.com/2008/11/02/programming-practice-prime-numbers/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 17:17:36 +0000</pubDate>
		<dc:creator>amreekandesi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming Practice]]></category>
		<category><![CDATA[code  sample]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[find primes]]></category>
		<category><![CDATA[interview questions]]></category>
		<category><![CDATA[prime numbers]]></category>

		<guid isPermaLink="false">http://techbhai.wordpress.com/?p=101</guid>
		<description><![CDATA[Problem: Compute all prime numbers less than specified integer Example: Input: 100 Output: 1 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97 Algorithm: &#8230; <a href="http://techbhai.wordpress.com/2008/11/02/programming-practice-prime-numbers/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=101&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong> Compute all prime numbers less than specified integer</p>
<p><strong>Example:</strong><br />
Input: 100<br />
Output: 1 2 3 5 7 11 13 17 19 23 29 31 37 41 43 47 53 59 61 67 71 73 79 83 89 97</p>
<p><strong>Algorithm:</strong><br />
We use an algorithm known as the <a href="http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes">Sieve of Eratosthenes</a> to solve this problem. How it works is that for each prime number starting from 2, we mark all multiples of that number as non prime. At the end of this process, all the prime numbers are identified.</p>
<p>Here&#8217;s the detailed steps.<br />
1. Create an array of n items, and mark all values as 1 to mark them as prime.<br />
2. Iterate over the array going from i = 2 to sqrt(n). If i is prime, mark all multiples of i as 0 (non prime)</p>
<p><strong>Java Code:</strong></p>
<p><img class="alignnone size-full wp-image-102" title="findprimes" src="http://techbhai.files.wordpress.com/2008/11/findprimes.jpg?w=451&#038;h=304" alt="" width="451" height="304" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techbhai.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techbhai.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techbhai.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techbhai.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techbhai.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techbhai.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techbhai.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techbhai.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techbhai.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techbhai.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techbhai.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techbhai.wordpress.com/101/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techbhai.wordpress.com/101/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techbhai.wordpress.com/101/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=101&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techbhai.wordpress.com/2008/11/02/programming-practice-prime-numbers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ae7208ac412d19adfd4eab2d9bc4cc82?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">amreekandesi</media:title>
		</media:content>

		<media:content url="http://techbhai.files.wordpress.com/2008/11/findprimes.jpg" medium="image">
			<media:title type="html">findprimes</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming Practice: Remove specified characters from input string</title>
		<link>http://techbhai.wordpress.com/2008/11/02/programming-practice-remove-specified-characters-from-input-string/</link>
		<comments>http://techbhai.wordpress.com/2008/11/02/programming-practice-remove-specified-characters-from-input-string/#comments</comments>
		<pubDate>Sun, 02 Nov 2008 17:03:21 +0000</pubDate>
		<dc:creator>amreekandesi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming Practice]]></category>
		<category><![CDATA[code  sample]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[interview questions]]></category>

		<guid isPermaLink="false">http://techbhai.wordpress.com/?p=95</guid>
		<description><![CDATA[Problem: Given two input strings, remove all occurrences of all the letters in the second string from the first one Examples: Input: &#8220;Battle of The Vowels&#8221;, &#8220;aeiou&#8221;, Output: &#8220;Bttl f Th Vwls&#8221; (removing all vowels from the input string) Algorithm: &#8230; <a href="http://techbhai.wordpress.com/2008/11/02/programming-practice-remove-specified-characters-from-input-string/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=95&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><strong>Problem:</strong> Given two input strings, remove all occurrences of all the letters in the second string from the first one</p>
<p style="text-align:justify;"><strong>Examples:</strong></p>
<p style="text-align:justify;">Input: &#8220;Battle of The Vowels&#8221;, &#8220;aeiou&#8221;, Output: &#8220;Bttl f Th Vwls&#8221; (removing all vowels from the input string)</p>
<p style="text-align:justify;"><strong>Algorithm:</strong></p>
<p style="text-align:justify;">We could iterate over the remove string and for each character, remove all occurrences from the input string. Give input string of length &#8216;n&#8217; and remove string of length &#8216;m&#8217;, this brute force algorithm would lead to a complexity of O(mn).</p>
<p style="text-align:justify;">Here&#8217;s a more efficient algorithm. Iterate over the remove string, and store each character in an array. Later as we iterate over the input string, we lookup this array, and if that character is present in this array, then we remove it from the input. This algorithm works if the array lookup is a constant time operation. The net complexity of this algorithm would be O(m+n), much better than the O(mn) brute force algorithm described earlier.</p>
<p style="text-align:justify;">The detailed steps are as folllows:</p>
<p style="text-align:justify;">1. Create an array &#8216;<em>flags</em>&#8216; of 256 characters. Entries in this array serve as flags denoting whether character &#8216;i&#8217; is to be removed or not. Initialize all elements of this array to false.<br />
2. Iterate over the <em>remove </em>string. For each character i in the string, mark <em>flags</em>[i] as true<br />
3. Iterate over the <em>input </em>string. For each character in the string, if <em>flags</em>[i] is true, then copy it to an output array. Otherwise continue to the next character.<br />
4. At the end of this iteration, the output array will contain all characters of <em>input </em>minus all letters of <em>remove</em>.</p>
<p style="text-align:justify;"><strong>Java Code:</strong></p>
<p style="text-align:justify;"><img class="alignright size-full wp-image-96" title="removechars" src="http://techbhai.files.wordpress.com/2008/11/removechars.jpg?w=500&#038;h=275" alt="" width="500" height="275" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techbhai.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techbhai.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techbhai.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techbhai.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techbhai.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techbhai.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techbhai.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techbhai.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techbhai.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techbhai.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techbhai.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techbhai.wordpress.com/95/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techbhai.wordpress.com/95/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techbhai.wordpress.com/95/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=95&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techbhai.wordpress.com/2008/11/02/programming-practice-remove-specified-characters-from-input-string/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ae7208ac412d19adfd4eab2d9bc4cc82?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">amreekandesi</media:title>
		</media:content>

		<media:content url="http://techbhai.files.wordpress.com/2008/11/removechars.jpg" medium="image">
			<media:title type="html">removechars</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming Practice: Nth Element in Inorder Tree Traversal</title>
		<link>http://techbhai.wordpress.com/2008/10/24/programming-practice-nth-element-in-inorder-tree-traversal/</link>
		<comments>http://techbhai.wordpress.com/2008/10/24/programming-practice-nth-element-in-inorder-tree-traversal/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 18:20:02 +0000</pubDate>
		<dc:creator>amlistening</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming Practice]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Binary tree]]></category>
		<category><![CDATA[code  sample]]></category>
		<category><![CDATA[Find nth position element in an Inorder traversal]]></category>
		<category><![CDATA[Inorder traversal]]></category>
		<category><![CDATA[reverse a sentence]]></category>
		<category><![CDATA[technical interview]]></category>

		<guid isPermaLink="false">http://techbhai.wordpress.com/?p=71</guid>
		<description><![CDATA[Problem: To find the nth position element in an Inorder traversal of a Binary tree. Each node in the Binary tree contains the size of the tree underneath. Examples: For a tree with root:node1, left child: node2, right child: node3 &#8230; <a href="http://techbhai.wordpress.com/2008/10/24/programming-practice-nth-element-in-inorder-tree-traversal/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=71&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><strong>Problem: </strong>To find the nth position element in an Inorder traversal of a Binary tree. Each node in the Binary tree contains the size of the tree underneath.</p>
<p style="text-align:justify;"><strong>Examples:</strong></p>
<p style="text-align:justify;">For a tree with root:node1, left child: node2, right child: node3</p>
<p style="text-align:justify;">Input: 1, Output: node2<br />
Input: 3, Output: node3</p>
<p style="text-align:justify;"><strong>Algorithm:</strong></p>
<p style="text-align:justify;">1.Traverse the tree to find the node where required inorder position is equal to weight of a node<br />
2.Weight of each node is determined by keeping track of the size of the tree traversed.<br />
3.If node&#8217;s weight is less than inorder position then go left else go right and carry the weight of the  current node</p>
<p><strong>Java Code:</strong></p>
<pre><img class="aligncenter size-full wp-image-90" title="inordertree" src="http://techbhai.files.wordpress.com/2008/11/inordertree.jpg?w=500&#038;h=309" alt="" width="500" height="309" /></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techbhai.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techbhai.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techbhai.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techbhai.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techbhai.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techbhai.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techbhai.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techbhai.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techbhai.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techbhai.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techbhai.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techbhai.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techbhai.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techbhai.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=71&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techbhai.wordpress.com/2008/10/24/programming-practice-nth-element-in-inorder-tree-traversal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8011a9992d4c02195f264e20516277a1?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">In my endeavor to explore</media:title>
		</media:content>

		<media:content url="http://techbhai.files.wordpress.com/2008/11/inordertree.jpg" medium="image">
			<media:title type="html">inordertree</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming Practice: Palindrome Test</title>
		<link>http://techbhai.wordpress.com/2008/10/24/programming-practice-palindrome-test/</link>
		<comments>http://techbhai.wordpress.com/2008/10/24/programming-practice-palindrome-test/#comments</comments>
		<pubDate>Fri, 24 Oct 2008 17:25:20 +0000</pubDate>
		<dc:creator>amreekandesi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming Practice]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[palindrome]]></category>
		<category><![CDATA[practice]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[technical interview]]></category>

		<guid isPermaLink="false">http://techbhai.wordpress.com/?p=80</guid>
		<description><![CDATA[Problem: Detect whether a given string is a palindrome or not. A palindrome is a word that spells the same if it is reversed. Examples: Input: &#8220;madam&#8221;, Output: true Input: &#8220;test&#8221;, Output: false Input: &#8220;a&#8221;, Output: true Input: &#8220;aabbaa&#8221;, Output: &#8230; <a href="http://techbhai.wordpress.com/2008/10/24/programming-practice-palindrome-test/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=80&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><strong>Problem: </strong>Detect whether a given string is a palindrome or not. A palindrome is a word that spells the same if it is reversed.</p>
<p style="text-align:justify;"><strong>Examples:</strong><br />
Input: &#8220;madam&#8221;, Output: true<br />
Input: &#8220;test&#8221;, Output: false<br />
Input: &#8220;a&#8221;, Output: true<br />
Input: &#8220;aabbaa&#8221;, Output: true</p>
<p style="text-align:justify;"><strong>Algorithm:</strong><br />
1. Initialize two counters, one pointing to the first character, and the second to the last one<br />
2. Iterate over the string. Compare the characters at the two locations. If the characters match then advance the front counter by 1 and the back counter by -1. If the characters don&#8217;t match, the string is not a palindrome.<br />
3. If the two counters reach the same location, and everything has matched so far, the string is a palindrome</p>
<p style="text-align:justify;"><strong>Java Code:</strong></p>
<p><img class="aligncenter size-full wp-image-81" title="palindrome" src="http://techbhai.files.wordpress.com/2008/10/palindrome.jpg?w=426&#038;h=152" alt="" width="426" height="152" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techbhai.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techbhai.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techbhai.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techbhai.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techbhai.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techbhai.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techbhai.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techbhai.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techbhai.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techbhai.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techbhai.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techbhai.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techbhai.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techbhai.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=80&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techbhai.wordpress.com/2008/10/24/programming-practice-palindrome-test/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ae7208ac412d19adfd4eab2d9bc4cc82?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">amreekandesi</media:title>
		</media:content>

		<media:content url="http://techbhai.files.wordpress.com/2008/10/palindrome.jpg" medium="image">
			<media:title type="html">palindrome</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming Practice: Reverse a Sentence</title>
		<link>http://techbhai.wordpress.com/2008/10/23/programming-practice-reverse-a-sentence/</link>
		<comments>http://techbhai.wordpress.com/2008/10/23/programming-practice-reverse-a-sentence/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 19:41:06 +0000</pubDate>
		<dc:creator>amreekandesi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming Practice]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[code  sample]]></category>
		<category><![CDATA[reverse a sentence]]></category>
		<category><![CDATA[reverse a string]]></category>
		<category><![CDATA[technical interview]]></category>

		<guid isPermaLink="false">http://techbhai.wordpress.com/?p=64</guid>
		<description><![CDATA[Problem: Given a string of words, reverse the string such that the last word becomes the first one. The word itself should not be changed Examples: Input: &#8220;Hello world&#8221;, Output: &#8221; World Hello&#8221; Input: &#8220;This blog rocks&#8221;, Output: &#8221; rocks &#8230; <a href="http://techbhai.wordpress.com/2008/10/23/programming-practice-reverse-a-sentence/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=64&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;"><strong>Problem: </strong>Given a string of words, reverse the string such that the last word becomes the first one. The word itself should not be changed</p>
<p style="text-align:justify;"><strong>Examples:</strong></p>
<p style="text-align:justify;">Input: &#8220;Hello world&#8221;, Output: &#8221; World Hello&#8221;<br />
Input: &#8220;This blog rocks&#8221;, Output: &#8221; rocks blog this&#8221;</p>
<p style="text-align:justify;"><strong>Algorithm:</strong></p>
<p style="text-align:justify;">1. Initialize two counters, <em>front </em>and <em>back</em>, to the end of the input string<br />
2. While we havent reached the start of the string, move down <em>front </em>we encounter a space. Copy the part of the string from this point until <em>back</em> into the output.<br />
3. Move back down by one character to account for the space. Set <em>front </em>to <em>back</em>, and repeat till <em>front </em>is more than 0.</p>
<p><strong>Java Code:</strong></p>
<p><img class="aligncenter size-full wp-image-67" title="sentencereverse1" src="http://techbhai.files.wordpress.com/2008/10/sentencereverse1.jpg?w=500&#038;h=198" alt="" width="500" height="198" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techbhai.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techbhai.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techbhai.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techbhai.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techbhai.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techbhai.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techbhai.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techbhai.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techbhai.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techbhai.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techbhai.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techbhai.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techbhai.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techbhai.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=64&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techbhai.wordpress.com/2008/10/23/programming-practice-reverse-a-sentence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ae7208ac412d19adfd4eab2d9bc4cc82?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">amreekandesi</media:title>
		</media:content>

		<media:content url="http://techbhai.files.wordpress.com/2008/10/sentencereverse1.jpg" medium="image">
			<media:title type="html">sentencereverse1</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming Practice: String To Integer</title>
		<link>http://techbhai.wordpress.com/2008/10/23/programming-practice-string-to-integer/</link>
		<comments>http://techbhai.wordpress.com/2008/10/23/programming-practice-string-to-integer/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 19:23:28 +0000</pubDate>
		<dc:creator>amreekandesi</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[Programming Practice]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[code  sample]]></category>
		<category><![CDATA[java code]]></category>
		<category><![CDATA[technical interview]]></category>

		<guid isPermaLink="false">http://techbhai.wordpress.com/?p=51</guid>
		<description><![CDATA[We earlier saw how to convert an integer number to its string representation. Lets look at the reverse problem. Problem: Given a number as a string, convert it to the corresponding integer representation Examples: Input: &#8220;123&#8243;, Output: 123 Input&#8221; &#8220;0&#8243;, &#8230; <a href="http://techbhai.wordpress.com/2008/10/23/programming-practice-string-to-integer/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=51&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">We earlier saw <a href="http://techbhai.wordpress.com/2008/10/23/programming-practice-integer-to-string/">how to convert an integer number</a> to its string representation. Lets look at the reverse problem.</p>
<p style="text-align:justify;"><strong>Problem:</strong> Given a number as a string, convert it to the corresponding integer representation</p>
<p style="text-align:justify;"><strong>Examples:</strong></p>
<p style="text-align:justify;">Input: &#8220;123&#8243;, Output: 123<br />
Input&#8221; &#8220;0&#8243;, Output: 0<br />
Input: &#8220;-1&#8243;, Output: -1<br />
Input: &#8220;+100&#8243;, Output: 100</p>
<p><strong>Algorithm:</strong><br />
1. The first character could potentially be a &#8216;+&#8217; or &#8216;-&#8217;. Check for this and record this information.<br />
2. Iterate over the string characters. For each character, convert it to its integer form by subtracting &#8217;0&#8242; from it.<br />
3. Initialize output to 0. For each digit we read, multiply output by 10 and add this digit to it. This will make sure that starting from the most significant digit, each digit reaches its corresponding place in the final number.<br />
4. In the final output, account for the sign on the number.</p>
<p><strong>Java Code:</strong><img class="aligncenter size-full wp-image-57" title="stringtoint1" src="http://techbhai.files.wordpress.com/2008/10/stringtoint1.jpg?w=500&#038;h=304" alt="" width="500" height="304" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techbhai.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techbhai.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techbhai.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techbhai.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techbhai.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techbhai.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techbhai.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techbhai.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techbhai.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techbhai.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techbhai.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techbhai.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techbhai.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techbhai.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=51&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techbhai.wordpress.com/2008/10/23/programming-practice-string-to-integer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ae7208ac412d19adfd4eab2d9bc4cc82?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">amreekandesi</media:title>
		</media:content>

		<media:content url="http://techbhai.files.wordpress.com/2008/10/stringtoint1.jpg" medium="image">
			<media:title type="html">stringtoint1</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming Practice: Integer To String</title>
		<link>http://techbhai.wordpress.com/2008/10/23/programming-practice-integer-to-string/</link>
		<comments>http://techbhai.wordpress.com/2008/10/23/programming-practice-integer-to-string/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 18:33:05 +0000</pubDate>
		<dc:creator>amreekandesi</dc:creator>
				<category><![CDATA[Programming Practice]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[sample code]]></category>
		<category><![CDATA[technical interview]]></category>

		<guid isPermaLink="false">http://techbhai.wordpress.com/?p=34</guid>
		<description><![CDATA[This is a new section we are going to start. We will be talking about how to solve some typical and commonly asked (in interviews) programming questions. To start off, this one is a relatively simple one. Problem: Given an &#8230; <a href="http://techbhai.wordpress.com/2008/10/23/programming-practice-integer-to-string/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=34&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">This is a new section we are going to start. We will be talking about how to solve some typical and commonly asked (in interviews) programming questions. To start off, this one is a relatively simple one.</p>
<p style="text-align:justify;"><span style="color:#000000;"><strong>Problem:</strong> Given an integer value, convert it to its string representation.</span></p>
<p><strong>Examples:</strong><br />
Input: 127, Output: &#8220;127&#8243;<br />
Input: -123, Output: &#8220;-123&#8243;</p>
<p><strong>Algorithm:</strong><br />
1. Determine if the number is negative. If yes, multiply by -1 to make it positive. Lets call this &#8216;n&#8217;.<br />
2. Compute n%10 (remainder of the division). This is the value of the  current digit, starting off with the least significant one. Store this digit in a temp array location.<br />
3. Divide n by 10. Assign this to n.<br />
4. Repeat steps 2 and 3 till n becomes 0.<br />
5. At this point the output could potentially contain the reversed string representation. We can go through this output to create the output in the correct order.</p>
<p><strong>Java Code:</strong><img class="aligncenter size-full wp-image-60" title="inttostring" src="http://techbhai.files.wordpress.com/2008/10/inttostring.jpg?w=485&#038;h=342" alt="" width="485" height="342" /></p>
<p>There are other ways of solving this problem which would not require reversing the output in the end. This is just one possible solution.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techbhai.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techbhai.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techbhai.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techbhai.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techbhai.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techbhai.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techbhai.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techbhai.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techbhai.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techbhai.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techbhai.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techbhai.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techbhai.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techbhai.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=34&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techbhai.wordpress.com/2008/10/23/programming-practice-integer-to-string/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ae7208ac412d19adfd4eab2d9bc4cc82?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">amreekandesi</media:title>
		</media:content>

		<media:content url="http://techbhai.files.wordpress.com/2008/10/inttostring.jpg" medium="image">
			<media:title type="html">inttostring</media:title>
		</media:content>
	</item>
		<item>
		<title>Execute C Programs on Unix from Windows</title>
		<link>http://techbhai.wordpress.com/2008/07/15/how-to-execute-programs-on-unixlinux-from-windows-using-c/</link>
		<comments>http://techbhai.wordpress.com/2008/07/15/how-to-execute-programs-on-unixlinux-from-windows-using-c/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 01:43:13 +0000</pubDate>
		<dc:creator>amlistening</dc:creator>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[C]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[How to execute scripts on Unix/Linux from Windows using]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technical]]></category>

		<guid isPermaLink="false">http://amlistening.wordpress.com/?p=39</guid>
		<description><![CDATA[Appended below is the C program to execute a shell script using rsh on a remote Unix/Linux machine. This C program can run on Windows/Unix/Linux. #include &#60;stdlib.h&#62; int main(int argc, char *argv[]) { system(&#8220;rsh hostname -l username script/path/on/unix/test.sh&#8221;); return 0; &#8230; <a href="http://techbhai.wordpress.com/2008/07/15/how-to-execute-programs-on-unixlinux-from-windows-using-c/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=19&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:justify;">Appended below is the C program to execute a shell script using rsh on a remote Unix/Linux machine. This C program can run on Windows/Unix/Linux.</p>
<p style="text-align:justify;"><a href="http://amlistening.wordpress.com/technical-articles/">#include &lt;stdlib.h&gt;<br />
int main(int argc, char *argv[])<br />
{<br />
system(&#8220;rsh hostname -l username script/path/on/unix/test.sh&#8221;);<br />
return 0;<br />
}</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/techbhai.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/techbhai.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/techbhai.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/techbhai.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/techbhai.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/techbhai.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/techbhai.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/techbhai.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/techbhai.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/techbhai.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/techbhai.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/techbhai.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/techbhai.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/techbhai.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/techbhai.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/techbhai.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=techbhai.wordpress.com&amp;blog=4199594&amp;post=19&amp;subd=techbhai&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://techbhai.wordpress.com/2008/07/15/how-to-execute-programs-on-unixlinux-from-windows-using-c/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/8011a9992d4c02195f264e20516277a1?s=96&#38;d=wavatar" medium="image">
			<media:title type="html">In my endeavor to explore</media:title>
		</media:content>
	</item>
	</channel>
</rss>
