<?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>Fetch1.com &#187; Programming</title>
	<atom:link href="http://fetch1.com/category/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://fetch1.com</link>
	<description>Priyank Maniar&#039;s Weblog on Blogging, Programming, Windows, Technology and other stuff.</description>
	<lastBuildDate>Thu, 21 Jan 2010 23:49:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Running system command through Java</title>
		<link>http://fetch1.com/running-system-command-through-java/111</link>
		<comments>http://fetch1.com/running-system-command-through-java/111#comments</comments>
		<pubDate>Wed, 16 Sep 2009 16:20:41 +0000</pubDate>
		<dc:creator>fetch1</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Running system command through Java]]></category>

		<guid isPermaLink="false">http://fetch1.com/?p=111</guid>
		<description><![CDATA[Running system commands through Java Try the below code (for Linux OS) &#38; you&#8217;ll get the listing of files &#38; folders from current directory If you want to open &#38; close CD rom infinitely, Just replace &#8216;ls&#8217; command with the cd ROM opening cmd Also for CD ROM closing &#8230;. Enclose them in infinite loop [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Running system commands through Java</strong></p>
<p>Try the below code (for Linux OS) &amp; you&#8217;ll get the listing of files &amp; folders from current directory</p>
<p>If you want to open &amp; close CD rom infinitely,<br />
Just replace &#8216;ls&#8217; command with the cd ROM opening cmd<br />
Also for CD ROM closing &#8230;. Enclose them in infinite loop &#8230; thats all&#8230;&#8230;</p>
<p>(You have to maintain a boolean flag for open &amp; close)</p>
<p>try {</p>
<p>Process p = Runtime.getRuntime().exec(&#8220;ls&#8221;); //Line to talk with H/W</p>
<p>BufferedReader stdInput = new BufferedReader(new<br />
InputStreamReader(p.getInputStream()));</p>
<p>BufferedReader stdError = new BufferedReader(new<br />
InputStreamReader(p.getErrorStream()));</p>
<p>// read the output from the command</p>
<p>System.out.println(&#8220;Here is the standard output of the command:\n&#8221;);<br />
while ((s = stdInput.readLine()) != null) {<br />
System.out.println(s);<br />
}</p>
<p>// read any errors from the attempted command</p>
<p>System.out.print(&#8220;Here is the standard error of the command (if any): &#8220;);<br />
while ((s = stdError.readLine()) != null) {<br />
System.out.println(s);<br />
}</p>
<p>System.exit(0);<br />
}<br />
catch (IOException e) {}</p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/button" title="Running system command through Java" url="http://fetch1.com/running-system-command-through-java/111"></script><h3  class="related_post_title">Random Posts</h3><ul class="related_post"><li><a href="http://fetch1.com/worlds-most-smallest-batch-virus/44" title="World&#8217;s Most smallest Batch Virus">World&#8217;s Most smallest Batch Virus</a></li><li><a href="http://fetch1.com/why-servlets-are-server-extensions/109" title="why servlets are server Extensions ?">why servlets are server Extensions ?</a></li><li><a href="http://fetch1.com/tips-for-buying-used-monitor/89" title="Tips for Buying used Monitor">Tips for Buying used Monitor</a></li><li><a href="http://fetch1.com/google-talks-and-orkuts-secret-tricks-and-smileys/177" title="Google talk&#8217;s and Orkut&#8217;s secret Tricks and smileys">Google talk&#8217;s and Orkut&#8217;s secret Tricks and smileys</a></li><li><a href="http://fetch1.com/hathway-increasing-the-download-speed/143" title="Hathway Increasing the Download Speed">Hathway Increasing the Download Speed</a></li><li><a href="http://fetch1.com/shortcut-key-for-closing-current-tab-in-a-browser/36" title="Shortcut key for Closing current Tab in a Browser?">Shortcut key for Closing current Tab in a Browser?</a></li><li><a href="http://fetch1.com/how-to-enhance-the-sounds-and-music-on-your-desktop/158" title="How to Enhance the Sounds and Music on your Desktop/Laptop ?">How to Enhance the Sounds and Music on your Desktop/Laptop ?</a></li><li><a href="http://fetch1.com/pros-and-cons-of-adbrite/125" title="Pros and Cons of Adbrite.">Pros and Cons of Adbrite.</a></li><li><a href="http://fetch1.com/how-to-make-a-folder-delete-protected/57" title="How to make a folder delete protected?">How to make a folder delete protected?</a></li><li><a href="http://fetch1.com/how-to-send-a-mass-email-to-all-the-users-in-phpbb/12" title="How to Send a Mass Email to All the Users in PHPBB ?">How to Send a Mass Email to All the Users in PHPBB ?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://fetch1.com/running-system-command-through-java/111/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>why servlets are server Extensions ?</title>
		<link>http://fetch1.com/why-servlets-are-server-extensions/109</link>
		<comments>http://fetch1.com/why-servlets-are-server-extensions/109#comments</comments>
		<pubDate>Tue, 15 Sep 2009 20:58:30 +0000</pubDate>
		<dc:creator>fetch1</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[why servlets are server Extensions ?]]></category>

		<guid isPermaLink="false">http://fetch1.com/?p=109</guid>
		<description><![CDATA[It is because you write your own code to handle the HTTP request and send response accordingly, which server makes use of as per the need. It is because with the help of servlet you can extend the capability of server. Not just Http capability but with your own implementation you can make server to [...]]]></description>
			<content:encoded><![CDATA[<p>It is because you write your own code to handle the HTTP request and send response accordingly, which server makes use of as per the need.</p>
<p>It is because with the help of servlet you can extend the capability of server. Not just Http capability but with your own implementation you can make server to serve different protocol requests too. One fundamental thing we must note here is Servlet is a specification that defines the abilities of a web application on webserver.</p>
<p>servlet are basically the server side programs. whenever we send a request from our browser it is then sent to the web server which finds the corresponding page (html,jpeg etc.). However the web server are meant moreover for the static content i.e. if the content is available in the server then it will sent back.</p>
<p>In the Case of Servlets the web server maps the request to the servlet which has some logic.</p>
<p>web server is not just for static content, it can serve dynamic content using web components like servlet, jsp</p>
<p><strong>Server Extention</strong></p>
<p>They are called Simply Server Extention Because using them U can Extend the server ie u can extend the server functionality.<br />
A web server has limited functionality<br />
as it can&#8217;t do atleast two tasks<br />
1) Cannot add somethng to database<br />
2) Cannot generate on-demand/on-the fly/dynamic web pages.<br />
Servets perform these tasks ( and much more also) that is why they are commonly called Server Extentions.<strong><br />
</strong></p>
<p><strong></strong></p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/button" title="why servlets are server Extensions ?" url="http://fetch1.com/why-servlets-are-server-extensions/109"></script><h3  class="related_post_title">Random Posts</h3><ul class="related_post"><li><a href="http://fetch1.com/running-system-command-through-java/111" title="Running system command through Java">Running system command through Java</a></li><li><a href="http://fetch1.com/how-to-enable-avatar-in-phpbb/16" title="How to Enable Avatar in PHPBB?">How to Enable Avatar in PHPBB?</a></li><li><a href="http://fetch1.com/hathway-increasing-the-download-speed/143" title="Hathway Increasing the Download Speed">Hathway Increasing the Download Speed</a></li><li><a href="http://fetch1.com/websites-to-submit-blogswebsites/74" title="A List of Websites Where you can submit your blogs/websites">A List of Websites Where you can submit your blogs/websites</a></li><li><a href="http://fetch1.com/justhost-discount-coupon-50-off/3" title="Justhost Discount Coupon 50 % OFF">Justhost Discount Coupon 50 % OFF</a></li><li><a href="http://fetch1.com/tips-for-buying-used-monitor/89" title="Tips for Buying used Monitor">Tips for Buying used Monitor</a></li><li><a href="http://fetch1.com/how-to-send-a-mass-email-to-all-the-users-in-phpbb/12" title="How to Send a Mass Email to All the Users in PHPBB ?">How to Send a Mass Email to All the Users in PHPBB ?</a></li><li><a href="http://fetch1.com/prevent-pendrive-viruses/52" title="Prevent PenDrive Viruses">Prevent PenDrive Viruses</a></li><li><a href="http://fetch1.com/how-to-prevent-ies-history-from-getting-deleted/59" title="How to Prevent IE&#8217;s History from getting deleted?">How to Prevent IE&#8217;s History from getting deleted?</a></li><li><a href="http://fetch1.com/how-to-make-an-autorun-file-for-cd/55" title="How to make An Autorun file for CD?">How to make An Autorun file for CD?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://fetch1.com/why-servlets-are-server-extensions/109/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to store sql query result into excel file?</title>
		<link>http://fetch1.com/how-to-store-sql-query-result-into-excel-file/107</link>
		<comments>http://fetch1.com/how-to-store-sql-query-result-into-excel-file/107#comments</comments>
		<pubDate>Tue, 15 Sep 2009 20:49:06 +0000</pubDate>
		<dc:creator>fetch1</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://fetch1.com/?p=107</guid>
		<description><![CDATA[if reports are to be exported then,  API Apache POI will work out else you can also do the same thing with the query for backup and dumps for example if you are using mysql you can use 1.) mysqldump &#8211;tab=/path/to/some/dir &#8211;opt database_name 2.) mysqldump &#8211;add-drop-table -u admin -p pass21 Customers &#60; custback.sql Random PostsHow [...]]]></description>
			<content:encoded><![CDATA[<p>if reports are to be exported then,  API Apache POI will work out else you can also do the same thing with the query for backup and dumps</p>
<p>for example</p>
<p>if you are using mysql<br />
you can use</p>
<p>1.) mysqldump &#8211;tab=/path/to/some/dir &#8211;opt database_name</p>
<p>2.) mysqldump &#8211;add-drop-table -u admin -p pass21 Customers &lt; custback.sql</p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/button" title="How to store sql query result into excel file?" url="http://fetch1.com/how-to-store-sql-query-result-into-excel-file/107"></script><h3  class="related_post_title">Random Posts</h3><ul class="related_post"><li><a href="http://fetch1.com/how-to-enhance-the-sounds-and-music-on-your-desktop/158" title="How to Enhance the Sounds and Music on your Desktop/Laptop ?">How to Enhance the Sounds and Music on your Desktop/Laptop ?</a></li><li><a href="http://fetch1.com/why-servlets-are-server-extensions/109" title="why servlets are server Extensions ?">why servlets are server Extensions ?</a></li><li><a href="http://fetch1.com/is-parsbux-legitscam/81" title="Is Parsbux Legit/Scam?">Is Parsbux Legit/Scam?</a></li><li><a href="http://fetch1.com/how-to-prevent-ies-history-from-getting-deleted/59" title="How to Prevent IE&#8217;s History from getting deleted?">How to Prevent IE&#8217;s History from getting deleted?</a></li><li><a href="http://fetch1.com/how-to-zoom-in-or-zoom-out-in-a-browser/30" title="How to Zoom in or Zoom out in a Browser?">How to Zoom in or Zoom out in a Browser?</a></li><li><a href="http://fetch1.com/google-talks-and-orkuts-secret-tricks-and-smileys/177" title="Google talk&#8217;s and Orkut&#8217;s secret Tricks and smileys">Google talk&#8217;s and Orkut&#8217;s secret Tricks and smileys</a></li><li><a href="http://fetch1.com/how-to-send-a-mass-email-to-all-the-users-in-phpbb/12" title="How to Send a Mass Email to All the Users in PHPBB ?">How to Send a Mass Email to All the Users in PHPBB ?</a></li><li><a href="http://fetch1.com/review-of-ajab-prem-ki-ghazab-kahani/150" title="Review of Ajab Prem ki Ghazab Kahani">Review of Ajab Prem ki Ghazab Kahani</a></li><li><a href="http://fetch1.com/shortcut-key-for-opening-new-tab-in-a-browser/33" title="Shortcut key for opening New Tab in a Browser?">Shortcut key for opening New Tab in a Browser?</a></li><li><a href="http://fetch1.com/how-to-make-a-folder-delete-protected/57" title="How to make a folder delete protected?">How to make a folder delete protected?</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://fetch1.com/how-to-store-sql-query-result-into-excel-file/107/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>World&#8217;s Most smallest Batch Virus</title>
		<link>http://fetch1.com/worlds-most-smallest-batch-virus/44</link>
		<comments>http://fetch1.com/worlds-most-smallest-batch-virus/44#comments</comments>
		<pubDate>Mon, 17 Aug 2009 20:15:52 +0000</pubDate>
		<dc:creator>fetch1</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Treasure]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Worlds Most smallest Batch Virus]]></category>

		<guid isPermaLink="false">http://fetch1.com/?p=44</guid>
		<description><![CDATA[This is the smallest batch virus only of 5 letters in length %0&#124;%0 save this as bat file n run it you cannot successfully exit this program&#8230;. Explanation %0 gives the location of bat file which is running it including the filename this program will create two instance of itself and each instance will again [...]]]></description>
			<content:encoded><![CDATA[<p>This is the smallest batch virus only of 5 letters in length</p>
<p>%0|%0</p>
<p>save this as bat file n run it</p>
<p>you cannot successfully exit this program&#8230;.</p>
<p><strong>Explanation</strong></p>
<p>%0 gives the location of bat file which is running it including the filename<br />
this program will create two instance of itself and each instance will again creates another two and it continues recursively. This is equivalent (not exactly) to executing a piece of code in an infinite loop( while(1){ //code } )</p>
<p>the operator &#8216;|&#8217; is called as the redirection operator(pipe operator)..this pipe operator sends one programs output to another programs input</p>
<p>%0 gives the fullpath to the batchfile in which it is coded. i.e. if you have saved the above code as abc.bat in C:\ drive.. then %0 will give the output as &#8216;C:\abc.bat</p>
<script type="text/javascript" class="owbutton" src="http://onlywire.com/button" title="World's Most smallest Batch Virus" url="http://fetch1.com/worlds-most-smallest-batch-virus/44"></script><h3  class="related_post_title">Random Posts</h3><ul class="related_post"><li><a href="http://fetch1.com/how-to-store-sql-query-result-into-excel-file/107" title="How to store sql query result into excel file?">How to store sql query result into excel file?</a></li><li><a href="http://fetch1.com/google-talks-and-orkuts-secret-tricks-and-smileys/177" title="Google talk&#8217;s and Orkut&#8217;s secret Tricks and smileys">Google talk&#8217;s and Orkut&#8217;s secret Tricks and smileys</a></li><li><a href="http://fetch1.com/how-to-prevent-ies-history-from-getting-deleted/59" title="How to Prevent IE&#8217;s History from getting deleted?">How to Prevent IE&#8217;s History from getting deleted?</a></li><li><a href="http://fetch1.com/shortcut-key-for-closing-current-tab-in-a-browser/36" title="Shortcut key for Closing current Tab in a Browser?">Shortcut key for Closing current Tab in a Browser?</a></li><li><a href="http://fetch1.com/review-of-ajab-prem-ki-ghazab-kahani/150" title="Review of Ajab Prem ki Ghazab Kahani">Review of Ajab Prem ki Ghazab Kahani</a></li><li><a href="http://fetch1.com/is-parsbux-legitscam/81" title="Is Parsbux Legit/Scam?">Is Parsbux Legit/Scam?</a></li><li><a href="http://fetch1.com/shortcut-key-for-opening-new-tab-in-a-browser/33" title="Shortcut key for opening New Tab in a Browser?">Shortcut key for opening New Tab in a Browser?</a></li><li><a href="http://fetch1.com/how-could-you-reduce-your-download-while-surfing/14" title="How could you reduce your Download while surfing?">How could you reduce your Download while surfing?</a></li><li><a href="http://fetch1.com/how-to-enhance-the-sounds-and-music-on-your-desktop/158" title="How to Enhance the Sounds and Music on your Desktop/Laptop ?">How to Enhance the Sounds and Music on your Desktop/Laptop ?</a></li><li><a href="http://fetch1.com/running-system-command-through-java/111" title="Running system command through Java">Running system command through Java</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://fetch1.com/worlds-most-smallest-batch-virus/44/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
