<?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>OpenPeta &#187; Uncategorized</title>
	<atom:link href="http://openpeta.com/index.php/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://openpeta.com</link>
	<description>Open Mind ....  Open Source ...</description>
	<lastBuildDate>Wed, 21 Jul 2010 03:20:44 +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>Linux Tips :  Reducing Size of Digital Camera Photos</title>
		<link>http://openpeta.com/index.php/2010/04/linux-tips-linux-tips/</link>
		<comments>http://openpeta.com/index.php/2010/04/linux-tips-linux-tips/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 08:36:35 +0000</pubDate>
		<dc:creator>ANTHONIRAJ</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/?p=851</guid>
		<description><![CDATA[You have 100 photos which was captured by using your 5 MP digital camera.Each Image has occupied 4 MB in your memory card and also You want to upload all the files into picasa or facebook or an other social networking sites. But the maximum image uploading size is 1 MB in those websites. So [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">You have 100 photos which was captured by using your 5 MP digital camera.Each Image has occupied 4 MB in your memory card and also You want to upload all the files into picasa or facebook or an other social networking sites. But the maximum image uploading size is 1 MB in those websites. So it is very difficult to reduce the size of each and every photo using some photo editing softwares. In this situation you can use the following shell script to convert or compress more than one images. Let us assume, the photos are available in /home/photos folder.</p>
<blockquote>
<p style="text-align: justify;">
<strong># cd /home/photos<br />
# vim compress.sh </strong></p>
</blockquote>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">for</span> img <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #000000; font-weight: bold;">*</span>.JPG<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #000000; font-weight: bold;">do</span>
convert <span style="color: #660033;">-quality</span> <span style="color: #000000;">40</span><span style="color: #000000; font-weight: bold;">%</span> <span style="color: #007800;">$img</span> my-<span style="color: #007800;">$img</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>or<br />
Simply copy the script and paste into your image folder. and run the script in your terminal</p>
<blockquote>
<p style="text-align: justify;"><strong><br />
# chmod 777 compress.sh<br />
# ./compress.sh</strong></p>
</blockquote>
<p>This script will reduce the size of image into approximately 300 KB  .<br />
Reference : IBM Website</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2010/04/linux-tips-linux-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing C and C++ Programs in Linux Environment</title>
		<link>http://openpeta.com/index.php/2010/04/developing-c-and-c-programs-in-linux-environment/</link>
		<comments>http://openpeta.com/index.php/2010/04/developing-c-and-c-programs-in-linux-environment/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 06:35:35 +0000</pubDate>
		<dc:creator>ANTHONIRAJ</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/?p=832</guid>
		<description><![CDATA[Running C and C++ applications in Linux is entirely different from Windows TurboC++ users. Linux uses GCC [Gnu Compiler Collections - C and C++ compiler] for developing these applications . Let us see how to develop C and C++ applications in Linux . Checking GCC compiler GCC comes with all Linux flavors by default . [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Running C and C++ applications in Linux is entirely different from Windows TurboC++ users. Linux uses GCC [Gnu Compiler Collections - C and C++ compiler] for developing these applications . Let us see how to develop C and C++ applications in Linux .</p>
<p><strong>Checking GCC compiler</strong><br />
GCC comes with all Linux flavors by default . To check the version of your GCC , type this command in your terminal</p>
<blockquote>
<p style="text-align: justify;">root@Ubuntu:/home/anthoniraj# <strong>gcc  &#8211;version</strong><br />
gcc (Ubuntu 4.4.1-4ubuntu9) 4.4.1<br />
Copyright (C) 2009 Free Software Foundation, Inc.<br />
This is free software; see the source for copying conditions.  There is NO<br />
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</p>
</blockquote>
<p style="text-align: justify;">By default only C compiler will be there in GCC , you can install C++ support by typing this command in Ubuntu</p>
<blockquote>
<p style="text-align: justify;">#sudo apt-get install build-essential</p>
</blockquote>
<p><strong>Developing C Program</strong><br />
You can use your favorite editor or IDE like Netbeans or Eclipse to develop the C and C++ programs. I am using VIM the simple and king of all editor for developing these programs. Now simply we can write one C program for finding factorial of a given number.<br />
<strong>#vim factorial.c [ file type is .c ]</strong></p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include&lt;stdio.h&gt;</span>
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #993333;">int</span> n <span style="color: #339933;">,</span> i <span style="color: #339933;">;</span>
<span style="color: #993333;">unsigned</span> <span style="color: #993333;">long</span> <span style="color: #993333;">int</span>  res <span style="color: #339933;">=</span> <span style="color: #0000dd;">1</span><span style="color: #339933;">;</span>
<span style="color: #000066;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Enter the number to find the factorial:&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
scanf<span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;%d&quot;</span> <span style="color: #339933;">,</span> <span style="color: #339933;">&amp;</span>n <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span>i <span style="color: #339933;">=</span> <span style="color: #0000dd;">1</span> <span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;=</span> n <span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
res <span style="color: #339933;">*=</span> i<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066;">printf</span><span style="color: #009900;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> The factorial value of %d is %lu<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #339933;">,</span> n<span style="color: #339933;">,</span> res<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong><br />
Compiling and Running</strong><br />
To compile c program , use gcc with file name</p>
<blockquote><p><strong>#gcc factorial.c</strong><br />
<strong>#./a.out </strong> [Default buffer for output]<br />
Enter the number to find the factorial: 5<br />
The factorial value of 5 is 120<br />
or<br />
<strong>#gcc factorial.c -o fact.out</strong><br />
<strong>#./fact.out </strong> [customized file for output]</p></blockquote>
<p><strong>Note</strong> :</p>
<ol>
<li>There is no void keyword in GCC ,</li>
<li>Use int instead of void and also use return 0 .</li>
</ol>
<p><strong><br />
Developing C++ Program</strong><br />
Now I am going to write C++ for the same factorial method.<br />
<strong>#vim factorial.cpp [File Type is cpp] </strong></p>

<div class="wp_syntax"><div class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include &lt;iostream&gt;</span>
using namespace std<span style="color: #339933;">;</span>
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #993333;">int</span> n <span style="color: #339933;">;</span>
<span style="color: #993333;">unsigned</span> <span style="color: #993333;">long</span> <span style="color: #993333;">int</span>  res <span style="color: #339933;">=</span> <span style="color: #0000dd;">1</span><span style="color: #339933;">;</span>
<span style="color: #000066;">cout</span> <span style="color: #339933;">&lt;&lt;</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>Enter the number to find the factorial:&quot;</span> <span style="color: #339933;">&lt;&lt;</span> endl<span style="color: #339933;">;</span>
cin <span style="color: #339933;">&lt;&lt;</span> n <span style="color: #339933;">;</span>
<span style="color: #b1b100;">for</span><span style="color: #009900;">&#40;</span><span style="color: #993333;">int</span> i<span style="color: #339933;">=</span> <span style="color: #0000dd;">1</span> <span style="color: #339933;">;</span> i <span style="color: #339933;">&lt;=</span> n <span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
res <span style="color: #339933;">*=</span> i<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #000066;">cout</span> <span style="color: #339933;">&lt;&lt;</span><span style="color: #ff0000;">&quot;The factorial value of &quot;</span> <span style="color: #339933;">&lt;&lt;</span><span style="color: #ff0000;">&quot;is &quot;</span> <span style="color: #339933;">&lt;&lt;</span> endl<span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>Compiling and Running</strong><br />
To compile c program , use gcc with file name</p>
<blockquote><p><strong>#g++ factorial.cpp</strong><br />
<strong>#./a.out </strong> [Default buffer for output]<br />
Enter the number to find the factorial: 5<br />
The factorial value of 5 is 120<br />
or<br />
<strong>#g++ factorial.cpp -o fact.out</strong><br />
<strong>#./fact.out </strong> [customized file for output]</p></blockquote>
<p>Note :</p>
<ol>
<li> Dont use .h for header files</li>
<li>Use name space for header-file functions</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2010/04/developing-c-and-c-programs-in-linux-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic Linux Command &#8211; &quot;ls&quot;</title>
		<link>http://openpeta.com/index.php/2010/04/basic-linux-command-ls/</link>
		<comments>http://openpeta.com/index.php/2010/04/basic-linux-command-ls/#comments</comments>
		<pubDate>Thu, 08 Apr 2010 01:29:55 +0000</pubDate>
		<dc:creator>ANTHONIRAJ</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/?p=765</guid>
		<description><![CDATA[ls &#8211; List Directories and Files ls command will display the files and folders of current working directory. You can use some options to utilize this command effectively. 1. Display files and folders anthoniraj@Ubuntu:~/sample$ ls sam.txt  uploads  users.csv  users.txt 2. Display the file and folder with privileges , ownership , and size anthoniraj@Ubuntu:~/sample$ ls -l [...]]]></description>
			<content:encoded><![CDATA[<p><strong>ls &#8211; List Directories and Files</strong><br />
ls command will display the files and folders of current working directory. You can use some options to utilize this command effectively.<br />
1. Display files and folders</p>
<blockquote>
<h5>anthoniraj@Ubuntu:~/sample$ ls</h5>
<h5>sam.txt  uploads  users.csv  users.txt</h5>
</blockquote>
<p>2. Display the file and folder with privileges , ownership , and size</p>
<blockquote>
<h5>anthoniraj@Ubuntu:~/sample$ ls -l<br />
total 16<br />
-rw-r&#8211;r&#8211; 1 anthoniraj anthoniraj    5 2010-04-08 06:49 sam.txt<br />
drwxrwxrwx 2 anthoniraj anthoniraj 4096 2010-03-26 08:49 uploads<br />
-rw-r&#8211;r&#8211; 1 anthoniraj anthoniraj  140 2010-04-07 10:33 users.csv</h5>
<h5>-rw-r&#8211;r&#8211; 1 anthoniraj anthoniraj  145 2010-04-07 10:32 users.txt</h5>
</blockquote>
<p>3. Display all files including hidden files</p>
<blockquote>
<h5>anthoniraj@Ubuntu:~/sample$ ls -a<br />
.  ..  sam.txt  uploads  users.csv  users.txt</h5>
</blockquote>
<div id="attachment_769" class="wp-caption aligncenter" style="width: 310px"><a href="http://openpeta.com/wp-content/uploads/2010/04/Screenshot11.png"><img class="size-medium wp-image-769" title="ls command" src="http://www.openpeta.com/wp-content/uploads/2010/04/Screenshot1-300x187.png" alt="" width="300" height="187" /></a><p class="wp-caption-text">ls command output</p></div>
<p>4. Display the folder content recursively</p>
<blockquote>
<h5>anthoniraj@Ubuntu:~/sample$ ls -R</h5>
<h5>.:</h5>
<h5>sam.txt  uploads  users.csv  users.txt<br />
./uploads:</h5>
<h5>cs1999.pdf  kavidhai.pdf  New Text Document.txt  Sample.txt</h5>
</blockquote>
<p>5. Display the inode or index number of each file</p>
<blockquote>
<h5>anthoniraj@Ubuntu:~/sample$ ls -i<br />
331894 sam.txt  336568 uploads  331901 users.csv  331902 users.txt</h5>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2010/04/basic-linux-command-ls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic Linux Commands: Man &#8211; Online Manual Page for Linux Commands</title>
		<link>http://openpeta.com/index.php/2010/04/basic-linux-commands-man-online-manual-page-for-linux-commands/</link>
		<comments>http://openpeta.com/index.php/2010/04/basic-linux-commands-man-online-manual-page-for-linux-commands/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 07:19:15 +0000</pubDate>
		<dc:creator>ANTHONIRAJ</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/?p=744</guid>
		<description><![CDATA[One of the powerful feature of Linux Shell is the help page for commands. all commands comes with the manual page so that it can be easily understood by user.For accessing help or syntax details about any command in Linux , simply get into the terminal and type # man command-name This will display the [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">One of the powerful feature of Linux Shell is the help page for commands. all commands comes with the manual page so that it can be easily understood by user.For accessing help or syntax details about any command in Linux , simply get into the terminal and type</p>
<blockquote>
<h4 style="text-align: justify;"><strong># man command-name</strong></h4>
</blockquote>
<p style="text-align: justify;">This will display the information like name , syntax , description , example , author of the particular command. User can also use some options like  &#8220;-f&#8221; for short description and &#8220;-k&#8221; for displaying commands based on the keyword.<br />
Regular Usgae<br />
<strong>1. Displaying Manual or Help Page</strong></p>
<blockquote>
<h4 style="text-align: justify;"><strong>#man find</strong></h4>
</blockquote>
<p style="text-align: justify;">
<div id="attachment_746" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.openpeta.com/wp-content/uploads/2010/04/Find1.png"><img class="size-medium wp-image-746 " title="Manual Page for Find Command" src="http://www.openpeta.com/wp-content/uploads/2010/04/Find1-300x170.png" alt="Manual Page for Find Command" width="300" height="170" /></a><p class="wp-caption-text">Manual Page for Find Command</p></div>
<p style="text-align: center;">
<p><strong>2. Getting Short Description</strong></p>
<blockquote>
<h4 style="text-align: justify;"><strong>#man  -f  ifconfig</strong></h4>
</blockquote>
<p style="text-align: justify;">
<div id="attachment_747" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-747 " title="Short Description of ifconfig " src="http://www.openpeta.com/wp-content/uploads/2010/04/Man-300x170.png" alt="Short Description of ifconfig " width="300" height="170" /><p class="wp-caption-text">Short Description of ifconfig </p></div>
<p style="text-align: center;">
<p><strong>3.Getting List of commands using Keyword</strong><br />
If you want to know about the commands for network operations ,  you do not know all the Linux networking commands , In this situaltion &#8220;man -k&#8221; option will help you. Type the keyword &#8220;network&#8221; with option &#8220;-k&#8221; in man command , it will display all the commands matching the keyword like network.</p>
<blockquote>
<h4 style="text-align: justify;"><strong>#man -k &#8220;network&#8221;</strong></h4>
</blockquote>
<div id="attachment_748" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.openpeta.com/wp-content/uploads/2010/04/man2.png"><img class="size-medium wp-image-748" title="List of Network Commands" src="http://www.openpeta.com/wp-content/uploads/2010/04/man2-300x170.png" alt="" width="300" height="170" /></a><p class="wp-caption-text">List of Network Commands</p></div>
<p style="text-align: center;">
<p><strong>4. Converting Manual Page into Portable Format [ Text , PDF , PS ]</strong></p>
<p>The default format of the man pages are in troff [ Text Formatting System]. We can convert troff format to text pdf or ps format using man with following options<br />
i) For Text File conversion</p>
<blockquote>
<h4 style="text-align: justify;"><strong># man ls | col -b &gt; lstext.txt</strong></h4>
</blockquote>
<p style="text-align: justify;">ii) For PDF or PS conversion</p>
<blockquote>
<h4 style="text-align: justify;"><strong>#man -t ls &gt; lsps.ps<br />
#man -t ls | ps2pdf &#8211; &gt; lstext.pdf</strong></h4>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2010/04/basic-linux-commands-man-online-manual-page-for-linux-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yahoo Drupal Web Hosting &#8211; Email Configuration Problem</title>
		<link>http://openpeta.com/index.php/2009/12/yahoo-drupal-web-hosting-email-configuration-problem/</link>
		<comments>http://openpeta.com/index.php/2009/12/yahoo-drupal-web-hosting-email-configuration-problem/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 01:48:25 +0000</pubDate>
		<dc:creator>ANTHONIRAJ</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/?p=572</guid>
		<description><![CDATA[Recently  , i installed drupal content management system to my yahoo small business web hosting server.  Everything was good except sending email. Every time when i create new user i got this error Unable to send e-mail. Please contact the site administrator if the problem persists. I googled so many pages , but i could [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">
<p style="text-align: justify;">Recently  , i installed drupal content management system to my yahoo small business web hosting server.  Everything was good except sending email. Every time when i create new user i got this error</p>
<blockquote style="text-align: justify;"><p>Unable to send e-mail. Please contact the site administrator if the problem persists.</p></blockquote>
<p style="text-align: justify;">I googled so many pages , but i could not find any solution , finally i changed one configuration in my drupal CMS , i.e., I changed my personal email id to yahoo domain email id in site configuration page of druapl. now email system  is perfectly working  . . .</p>
<p>Steps</p>
<ol>
<li>Login with Drupal using admin privileges</li>
<li>Select the option <em><strong>&#8220;Site Configuration&#8221;</strong></em> in Admin Menu</li>
<li>Select <strong><em>&#8220;Site Information&#8221; </em></strong>under this.</li>
<li>In Email Text Box change your personal address [ sam@gmail.com ] to yahoo domain address [ sam@openpeta.com ]</li>
<li>Save your configuration</li>
</ol>
<p><a href="http://www.openpeta.com/wp-content/uploads/2009/12/Screenshot-Site-information-Semantic-Web-Google-Chrome.png"><img class="aligncenter size-medium wp-image-578" title="Screenshot-Site information | Semantic Web - Google Chrome" src="http://www.openpeta.com/wp-content/uploads/2009/12/Screenshot-Site-information-Semantic-Web-Google-Chrome-300x158.png" alt="Screenshot-Site information | Semantic Web - Google Chrome" width="300" height="158" /></a></p>
<p>Thats It</p>
<p style="text-align: justify;">Note : When you purchase yahoo small business plan , yahoo will provide one email id with your domain [ like anto@openpeta.com ] . here anto is the user name and openpeta.com is the domain name  , so use this one in site information email text field .</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2009/12/yahoo-drupal-web-hosting-email-configuration-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>2D Graphics Using C in Linux [ Graphics.h in Linux ]</title>
		<link>http://openpeta.com/index.php/2009/09/2d-graphics-using-c-in-linux-graphics-h-in-linux/</link>
		<comments>http://openpeta.com/index.php/2009/09/2d-graphics-using-c-in-linux-graphics-h-in-linux/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 00:18:22 +0000</pubDate>
		<dc:creator>ANTHONIRAJ</dc:creator>
				<category><![CDATA[Image Processing]]></category>
		<category><![CDATA[Open Source Programming]]></category>
		<category><![CDATA[Ubuntu Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/?p=512</guid>
		<description><![CDATA[Most of technical people are trying to migrate from windows to Linux now a days , but they are facing lot of problems with Linux . they do not even know the forums and blogs of Linux which would be useful for finding answer to their query. The main problem of open source is choosing [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Most of technical people are trying to migrate from windows to Linux now a days , but they are facing lot of problems with Linux . they do not even know the forums and blogs of Linux which would be useful for finding answer to their query. The main problem of open source is choosing right one for user need. Because so many open source softwares are available for a single thing. Surely user need some supportive forum or website to find that one . open Peta is also doing that job. The idea of this  post coming to my mind from my college friend . One of my colleague asked me about computer graphics program in Linux using C programming language. the questions is</p>
<blockquote><p>How to draw line, circle , or 2D graphics in Linux Using C or C++?</p></blockquote>
<p>I was searching Internet and found some softwares for developing graphics applications in Linux. that softwares are listed here</p>
<ol>
<li>GTK+   &#8211; Gnome Tool Kit</li>
<li>QT  -  The X toolkit</li>
<li>SVGALIB   [ #include&lt;vgagl.h&gt; ]</li>
<li>libgraph [ #include&lt;graphics.h&gt; ]</li>
</ol>
<p style="text-align: justify;">GTK and QT are simple and used for high level Graphical User Interface [ GUI ] development. SVGALIB and libgraph is used for 2D graphics in Linux .  the syntax and functions are some what different for beginners  [specially the user from windows ] but most of users familiar with windows graphics.h header file in C and C++ , so we can move for libgraph which is exact one for windows graphics user . libgraph is an implementation of the Turbo C graphics API (graphics.h) on GNU/Linux using SDL [ Simple Direct Media Player ]. The library requires SDL for primitive graphics and SDL. First you need to install the following dependency packages using synaptic package manager in Ubuntu Linux to develop the graphics applications properly.</p>
<ul>
<li>SDL Library</li>
</ul>
<div id="attachment_516" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.openpeta.com/wp-content/uploads/2009/09/graph3.png"><img class="size-medium wp-image-516" title="Installing SDL Library" src="http://www.openpeta.com/wp-content/uploads/2009/09/graph3-300x187.png" alt="Installing SDL Library" width="300" height="187" /></a><p class="wp-caption-text">Installing SDL Library</p></div>
<ul>
<li>GUILE &#8211; GNU&#8217;s Ubiquitous Intelligent Language for Extension</li>
</ul>
<p style="text-align: justify;">
<div id="attachment_517" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.openpeta.com/wp-content/uploads/2009/09/graph5.png"><img class="size-medium wp-image-517" title="GUILE Installation" src="http://www.openpeta.com/wp-content/uploads/2009/09/graph5-300x187.png" alt="GUILE Installation" width="300" height="187" /></a><p class="wp-caption-text">GUILE Installation</p></div>
<ul>
<li> After installing these two packages , download the<a href="http://ftp.twaren.net/Unix/NonGNU/libgraph/" target="_blank"> libgraph</a> and install in your system</li>
</ul>
<blockquote><p>#sudo su</p>
<p>#tar -xzvf <a href="http://ftp.twaren.net/Unix/NonGNU/libgraph/libgraph-1.0.2.tar.gz">libgraph-1.0.2.tar.gz</a></p>
<p>#cd libgraph-1.0.2</p>
<p>#make</p>
<p># make install</p></blockquote>
<p>For better understanding , watch this video given here &#8230;.<br />
<center><object width="425" height="344" align="center"><param name="movie" value="http://www.youtube.com/v/hqYlnIn___E&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/hqYlnIn___E&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></center><br />
Developing Graphics Application</p>
<p>1. Open your favorite text editor and type the following code</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
</pre></td><td class="code"><pre class="c" style="font-family:monospace;"><span style="color: #339933;">#include &quot;stdio.h&quot;</span>
<span style="color: #339933;">#include &quot;graphics.h&quot;</span>
<span style="color: #993333;">int</span> main<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
<span style="color: #993333;">int</span> gd<span style="color: #339933;">=</span>DETECT<span style="color: #339933;">,</span> gm<span style="color: #339933;">=</span>VGAMAX<span style="color: #339933;">;</span>
initgraph<span style="color: #009900;">&#40;</span><span style="color: #339933;">&amp;</span>amp<span style="color: #339933;">;</span>gd<span style="color: #339933;">,&amp;</span>amp<span style="color: #339933;">;</span>gm<span style="color: #339933;">,</span> <span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
moveto<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">0</span><span style="color: #339933;">,</span> <span style="color: #0000dd;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
setcolor<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">4</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
rectangle<span style="color: #009900;">&#40;</span><span style="color: #0000dd;">50</span><span style="color: #339933;">,</span><span style="color: #0000dd;">50</span><span style="color: #339933;">,</span><span style="color: #0000dd;">500</span><span style="color: #339933;">,</span><span style="color: #0000dd;">200</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>kbhit<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
closegraph<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">return</span> <span style="color: #0000dd;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>

<p>2. Now compile the program with lgraph library</p>
<blockquote><p>#gcc line.c -lgraph -o output</p>
<p>#./output</p></blockquote>
<p>If you get any error in this line like</p>
<p>./output: error while loading shared libraries: libgraph.so.1: cannot open shared object file: No such file or directory</p>
<p>Do the following</p>
<blockquote><p>sudo cp /usr/local/lib/libgraph.* /usr/lib</p></blockquote>
<p>3. Now one new window will open , there you will get the output Rectangle in Red color.</p>
<div id="attachment_521" class="wp-caption aligncenter" style="width: 310px"><a href="http://openpeta.com/wp-content/uploads/2009/09/out2.png"><img class="size-medium wp-image-521" title="Output Window" src="http://www.openpeta.com/wp-content/uploads/2009/09/out-300x187.png" alt="Output Window" width="300" height="187" /></a><p class="wp-caption-text">Output Window</p></div>
<p>The advantage of libgraph is very easy to remember the syntax  [ all functions are same as turbo c graphics.h ] . still if you are facing any problem to develop graphics applications using this , send your problems through comment page of this post.</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2009/09/2d-graphics-using-c-in-linux-graphics-h-in-linux/feed/</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
		<item>
		<title>Everything About LAMP [ PHP ] &#8211; IV</title>
		<link>http://openpeta.com/index.php/2009/09/everything-about-lamp-php-iv/</link>
		<comments>http://openpeta.com/index.php/2009/09/everything-about-lamp-php-iv/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 15:12:43 +0000</pubDate>
		<dc:creator>ANTHONIRAJ</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/?p=476</guid>
		<description><![CDATA[You can find lot of information about PHP Programming in Openpeta site itself , Links of all php toipics are given here for your reference PHP Basics PHP Simple Program Structure String Handling Array Manipulation Scope of Variables Constant in PHP PHP Basics – Conditional Statements Simple If Condition If-Else Condition Nested If-Else Alternate Syntax [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.openpeta.com/wp-content/uploads/2009/09/300px-PHP-logo.svg.png"><img class="alignnone size-full wp-image-481" title="PHP Logo" src="http://www.openpeta.com/wp-content/uploads/2009/09/300px-PHP-logo.svg.png" alt="PHP Logo" width="180" height="95" /></a>You can find lot of information about PHP Programming in Openpeta site itself , Links of all php toipics are given here for your reference</p>
<ol>
<li><a href="http://www.openpeta.com/index.php/php-basics/" target="_blank">PHP Basics </a>
<ul>
<li> PHP Simple Program Structure</li>
<li> String Handling</li>
<li> Array Manipulation</li>
<li> Scope of Variables</li>
<li> Constant in PHP</li>
</ul>
</li>
<li><a href="http://www.openpeta.com/index.php/php-basics-conditional-statements/" target="_blank">PHP Basics – Conditional Statements </a>
<ul>
<li>Simple If Condition</li>
<li>If-Else Condition</li>
<li>Nested If-Else</li>
<li>Alternate Syntax for If-Else in PHP</li>
</ul>
</li>
<li><a href="http://www.openpeta.com/index.php/php-basics-looping-statements/" target="_blank"> Looping Statements </a>
<ul>
<li>while loop</li>
<li>do-while loop</li>
<li>for loop</li>
</ul>
</li>
<li><a href="http://www.openpeta.com/index.php/php-cookie-simple-example/" target="_blank"> PHP Cookie – Simple Example </a></li>
<li><a href="http://www.openpeta.com/index.php/php-validation-using-ereg-function/" target="_blank">Server Side Validation</a></li>
<li><a href="http://www.openpeta.com/index.php/file-handling-in-php/" target="_blank">File Handling in PHP</a></li>
<li><a href="http://www.openpeta.com/index.php/file-uploading-in-php/" target="_blank">File Uploading in PHP</a></li>
<li>Database Connectivity [ PHP and MySQL]
<ul>
<li><a href="http://www.openpeta.com/index.php/login-form-with-mysql-database/" target="_blank"> Simple Login Form with MySQL Database </a></li>
<li><a href="http://www.openpeta.com/index.php/mysql-insert-query-with-php-program/" target="_blank">MySQL Insert Query with PHP</a></li>
<li><a href="http://www.openpeta.com/index.php/simple-mysql-select-query-with-php-program/" target="_blank">MySQL Select Query with PHP</a></li>
</ul>
<blockquote>
<div>Post your valuable comments and suggestions about this article  &#8230;&#8230;&#8230;</div>
</blockquote>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2009/09/everything-about-lamp-php-iv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Object Serialization in Java</title>
		<link>http://openpeta.com/index.php/2009/07/object-serialization-in-java/</link>
		<comments>http://openpeta.com/index.php/2009/07/object-serialization-in-java/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 03:46:10 +0000</pubDate>
		<dc:creator>ANTHONIRAJ</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/?p=360</guid>
		<description><![CDATA[Since Java is pure object oriented programming , all things must be done using the help of the objects. Some times if  developer wants to transfer the object from one JVM to another JVM or one network to another network , its very difficult to pack or unpack the object contents, because the object can [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Since Java is pure object oriented programming , all things must be done using the help of the objects. Some times if  developer wants to transfer the object from one JVM to another JVM or one network to another network , its very difficult to pack or unpack the object contents, because the object can have any type of datatypes or methods like images ,videos etc .. , serialization helps to do this task.</p>
<p><strong>Object Serialization</strong></p>
<p style="text-align: justify;">Object Serialization is the process of converting object into stream of bytes which would be transferred via network. In other end the stream of bytes would be converted into original object , this process is called object de-serialization. The stream of bytes will be stored into a file in local disk after serialization.Now lets take small review about classes and methods used for Serialization and De-serialization process.</p>
<p>Package Name : java.io</p>
<p>Classes :</p>
<ol>
<li>ObjectOutputStream</li>
<li>ObjectInputStream</li>
<li>FileOutputStream</li>
<li>FileInputStream</li>
</ol>
<p>Methods :</p>
<ol>
<li>Object readObject()</li>
<li>void writeObject(Object obj)</li>
</ol>
<p>Example Program</p>
<p>Now lets create one Employee Object with some fields then we can apply the serialization concept.</p>
<p><strong>1. Employee.java</strong></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.rmi.serial</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/*
 * Author :Anthoniraj.A
 * Date  : 30/06/09
 * Description : Program For Object Creation
 */</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.Serializable</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> Employee <span style="color: #000000; font-weight: bold;">implements</span> <span style="color: #003399;">Serializable</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #003399;">String</span> name<span style="color: #339933;">;</span>
    <span style="color: #003399;">String</span> designation<span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">double</span> salary<span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">int</span> exp<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>2.Employee Serialization</strong></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.rmi.serial</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">/*
 * Author :Anthoniraj.A
 * Date  : 30/06/09
 * Description : Program For Object Serialization
 */</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.File</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.FileOutputStream</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.IOException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.ObjectOutputStream</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.logging.Level</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.util.logging.Logger</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> EmpSerializable
<span style="color: #009900;">&#123;</span>
  Employee emp <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;;</span>
  <span style="color: #003399;">ObjectOutputStream</span> oos <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
&nbsp;
  <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> setValues<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
      emp <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Employee<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
      emp.<span style="color: #006633;">name</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Antony&quot;</span><span style="color: #339933;">;</span>
      emp.<span style="color: #006633;">designation</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;AssistantProfessor&quot;</span><span style="color: #339933;">;</span>
      emp.<span style="color: #006633;">salary</span> <span style="color: #339933;">=</span><span style="color: #cc66cc;">32000</span><span style="color: #339933;">;</span>
      emp.<span style="color: #006633;">exp</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">3</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> serializeValues<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">try</span>
        <span style="color: #009900;">&#123;</span>
          oos <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">ObjectOutputStream</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileOutputStream</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;sample.ser&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          oos.<span style="color: #006633;">writeObject</span><span style="color: #009900;">&#40;</span>emp<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
          <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;An Employee Object is serialized into sample.ser file&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">IOException</span> ex<span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
             ex.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">finally</span>
        <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">try</span>
            <span style="color: #009900;">&#123;</span>
               oos.<span style="color: #006633;">flush</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
               oos.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">IOException</span> ex<span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
                Logger.<span style="color: #006633;">getLogger</span><span style="color: #009900;">&#40;</span>EmpSerializable.<span style="color: #000000; font-weight: bold;">class</span>.<span style="color: #006633;">getName</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">log</span><span style="color: #009900;">&#40;</span>Level.<span style="color: #006633;">SEVERE</span>, <span style="color: #000066; font-weight: bold;">null</span>, ex<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> a<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
       EmpSerializable es <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> EmpSerializable<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       es.<span style="color: #006633;">setValues</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
       es.<span style="color: #006633;">serializeValues</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
&nbsp;
OutPut
An Employee <span style="color: #003399;">Object</span> is serialized into sample.<span style="color: #006633;">ser</span> file</pre></div></div>

<p><strong>3.Employee DeSerialization</strong></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">package</span> <span style="color: #006699;">com.rmi.serial</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">/*
 * Author :Anthoniraj.A
 * Date  : 30/06/09
 * Description : Program For Object Deserialization
 */</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.File</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.FileInputStream</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.IOException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.ObjectInputStream</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> EmpDeserializable
<span style="color: #009900;">&#123;</span>
  <span style="color: #003399;">ObjectInputStream</span> ois <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
  <span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000066; font-weight: bold;">void</span> getValues<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">try</span>
        <span style="color: #009900;">&#123;</span>
           ois <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">ObjectInputStream</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">FileInputStream</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <span style="color: #003399;">File</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;sample.ser&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
           Employee em <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>Employee<span style="color: #009900;">&#41;</span> ois.<span style="color: #006633;">readObject</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
           <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Employee Name :&quot;</span> <span style="color: #339933;">+</span> em.<span style="color: #006633;">name</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
           <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Employee Designation :&quot;</span> <span style="color: #339933;">+</span> em.<span style="color: #006633;">designation</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
           <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Employee Salary :&quot;</span><span style="color: #339933;">+</span>em.<span style="color: #006633;">salary</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
           <span style="color: #003399;">System</span>.<span style="color: #006633;">out</span>.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Employee Experience :&quot;</span> <span style="color: #339933;">+</span> em.<span style="color: #006633;">exp</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> ex<span style="color: #009900;">&#41;</span>
        <span style="color: #009900;">&#123;</span>
           ex.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000000; font-weight: bold;">finally</span>
        <span style="color: #009900;">&#123;</span>
            <span style="color: #000000; font-weight: bold;">try</span>
            <span style="color: #009900;">&#123;</span>
                ois.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
            <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">IOException</span> ex<span style="color: #009900;">&#41;</span>
            <span style="color: #009900;">&#123;</span>
               ex.<span style="color: #006633;">printStackTrace</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
     <span style="color: #009900;">&#125;</span>
  <span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">static</span> <span style="color: #000066; font-weight: bold;">void</span> main<span style="color: #009900;">&#40;</span><span style="color: #003399;">String</span> a<span style="color: #009900;">&#91;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">new</span> EmpDeserializable<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">getValues</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
output
Employee <span style="color: #003399;">Name</span> <span style="color: #339933;">:</span>Antony
Employee Designation <span style="color: #339933;">:</span>AssistantProfessor
Employee Salary <span style="color: #339933;">:</span><span style="color: #cc66cc;">32000.0</span>
Employee Experience <span style="color: #339933;">:</span><span style="color: #cc66cc;">3</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2009/07/object-serialization-in-java/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Little Desktop Apps You Should Check If You Mutlitask</title>
		<link>http://openpeta.com/index.php/2009/06/5-little-desktop-apps-you-should-check-if-you-mutlitask/</link>
		<comments>http://openpeta.com/index.php/2009/06/5-little-desktop-apps-you-should-check-if-you-mutlitask/#comments</comments>
		<pubDate>Sun, 14 Jun 2009 05:52:19 +0000</pubDate>
		<dc:creator>RAJARAJAN</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Weblog]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/index.php/5-little-desktop-apps-you-should-check-if-you-mutlitask/</guid>
		<description><![CDATA[I generally have lots of windows left open on my desktop whenever I am working. Call me lazy for not closing the unused ones, or call me overworked. The truth is things start to get out of control easily. Especially, if you have a small monitor and very little screen estate. Windows 7 does a [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">I generally have lots of windows left open on my desktop whenever I am working. Call me lazy for not closing the unused ones, or call me overworked. The truth is things start to get out of control easily. Especially, if you have a small monitor and very little screen estate. Windows 7 does a nice job of managing this clutter with its awesome task bar, however there are some applications you should download to help manage with your windows management.</p>
<p>I’ve listed 5 of the best apps to hide, resize and do some funky stuff like translucency, all in the name of productivity. Check them<br />
out:</p>
<h3><a href="http://corz.org/windows/software/accessories/KDE-resizing-moving-for-XP-or-Vista.php">1. KDE Window Resizer</a></h3>
<p style="text-align: center;"><img src="http://www.makeuseof.com/wp-content/uploads/2009/06/kdewin.png" alt="" /></p>
<p style="text-align: justify;">One of the things I absolutely adore in KDE Window Resizer is how they handle window resizing and moving. You simply hold down the ALT key, just about grab the window from anywhere and you can move the window around. No need to grab the title bar. Perfect for situations  when the title bar is off screen due to change in screen resolution. To resize the window, just hold the ALT key and click and drag the right mouse button and the window starts resizing according to the movement.</p>
<p><span> </span></p>
<h3><a href="http://officewarfare.net/index.php/window-hider/">2. Window Hider</a></h3>
<p style="text-align: center;"><img src="http://www.makeuseof.com/wp-content/uploads/2009/06/winhider.png" alt="" /></p>
<p style="text-align: justify;">Window Hider is a simple application that you can use for managing the open windows. It does two things &#8211; it can hide the window you want  by simply moving your mouse cursor to the corner or it can kill the application you specify.</p>
<p style="text-align: justify;">You can give Window Hider a list of programs and a shortcut key then when you press that shortcut key it hides only those windows in your list. You can also activate hot corners on screen which hides all the programs in your list by simply moving the mouse cursor to the hot corner. Pretty cool.</p>
<h3><a href="http://www.virtualdisk.net/desktopmost.html">3. Desk TopMost</a></h3>
<p style="text-align: center;"><img src="http://www.makeuseof.com/wp-content/uploads/2009/06/desktopmost.png" alt="" /></p>
<p style="text-align: justify;">So you have a lot of open windows? And you want to access the desktop icons? You could hit Win+D, but then you wouldn’t be able to return to the windows as they were opened, you would have restore the window from the taskbar yourself. Windows7 and Aero peek does an excellent job of it. In case you are not using Windows 7 or your computer doesn’t support the slick Aero Peek, you should try Desk Topmost. Just hit Ctrl + Alt + D and it provides you with a translucent overlay of your desktop over the open windows. After you are done, just right click anywhere and its gone.</p>
<h3><a href="http://powerresizer.sourceforge.net/">4. Power Resizer</a></h3>
<p style="text-align: center;"><img src="http://www.makeuseof.com/wp-content/uploads/2009/04/29-04-2009-20-10-47.jpg" alt="" /></p>
<p>Allows you to mimic another one of the Windows 7 features, power resizer neatly fits your open windows to half screens or maximises them as you drag them to a screen edge or to the top of the screen. Simon covered it earlier <a href="http://www.makeuseof.com/tag/keep-your-open-windows-from-cluttering-up-your-desktop/">here</a>.</p>
<h3><a href="http://windowtabs.com/">5. WindowTabs</a></h3>
<p style="text-align: justify;">WindowTabs attaches a small tab to the top of your windows. You can then drag tabs on top of each other to group them into tabbed windows. Use Alt + Right Arrow and Alt + Left Arrow to cycle through the tabs. Clicking on the tab with your mouse cursor willl take you to the tab as well. The application has a trial and a full version. While the trial version doesn’t have any time limits or nag screens, you would be limited to 3 tabs per group, which is not so bad of a deal.</p>
<p style="text-align: justify;">
<p style="text-align: justify;">
<p style="text-align: justify;">How did those apps help you with your cluttered screen? Know of any more applications that fit the criteria? Or perhaps better alternatives to the above? Let’s hear about them in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2009/06/5-little-desktop-apps-you-should-check-if-you-mutlitask/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Java Servlet Web Application using Netbeans</title>
		<link>http://openpeta.com/index.php/2009/05/creating-java-servlet-web-application-using-netbeans/</link>
		<comments>http://openpeta.com/index.php/2009/05/creating-java-servlet-web-application-using-netbeans/#comments</comments>
		<pubDate>Wed, 27 May 2009 01:26:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Introduction]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.openpeta.com/?p=105</guid>
		<description><![CDATA[Step1: Creating New Project a) Goto File-&#62;New Project ( One window will open) b) In Project Window , Select Web -&#62; Web Application c) Select Next d) Enter the Name of the Project [Eg. MyServlet] and path e) Select Next f) Select the J2EE version and Server which you want to deploy the web Application [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Step1: Creating New Project</strong><br />
a) Goto File-&gt;New Project ( One window will open)<br />
b) In Project Window , Select Web -&gt; Web Application<br />
c) Select Next<br />
d) Enter the Name of the Project [Eg. MyServlet] and path<br />
e) Select Next<br />
f) Select the J2EE version and Server which you want to<br />
deploy the web Application<br />
[Eg : J2EE5 and Tomcat 6.1]</p>
<p>g) Finish the wizard.</p>
<p><strong>Format of Servlet Project</strong></p>
<p>MyServlet (Project Name)<br />
|<br />
|_Web Pages (create html,jsp files here)<br />
|<br />
|-Configuration Files (configure web.xml file)<br />
|<br />
|-Server Resources<br />
|<br />
|-Source Package (create java servlet here)<br />
|<br />
|_Test packages<br />
|<br />
|-Libraries (Add external jar file here)<br />
|<br />
|-Test Libraries</p>
<p><strong>Step 2 : Creating JSP or HTML file</strong><br />
a) Right click on the Web Pages Folder<br />
b) Select New -&gt; HTML option from the pop up window.<br />
c) Type the name of your html page.<br />
d) Finish the wizard.</p>
<p>Eg. select.html</p>
<pre lang ="html" >

&lt;form action="SelectDetails" method="get"&gt;Select the Branch
&lt;select name="branch"&gt;
&lt;option value="IT"&gt; B.Tech - IT &lt;/option&gt;
&lt;option value="CSE"&gt; B.Tech - CSE &lt;/option&gt;
&lt;option value="ECE"&gt; B.Tech - ECE &lt;/option&gt;
&lt;option value="MECH"&gt; B.Tech - Mech &lt;/option&gt;
&lt;/select&gt;
&lt;input type="submit" value="GetDetails" /&gt;
&lt;/form&gt;
</pre>
<p><strong>Step 3: MySQL Database : Check Table Name : student</strong><br />
id       name        branch<br />
1        Amar        IT<br />
2        Amit         CSE<br />
3         Antony       MECH<br />
4        Anbu          ECE<br />
103      Sree            MECH<br />
102       Karthick  IT<br />
104      Deepan        ECE<br />
105      Moorthy   CSE</p>
<p><strong>Step 4: Add MySQL Jconnector jar file under &#8220;Libraries&#8221; foleder</strong><br />
Libraries -&gt; Right Click -&gt; Select Add New Jar File / Folder<br />
My Path : /media/Backup/mysql-connector-java-5.1.6-bin.jar</p>
<p><strong>Step 5: Creating Servlet</strong><br />
a) Right click on the Source Package Folder<br />
b) Select New -&gt; Servlet option from the pop up window.<br />
c) Type the name of your html page.<br />
d) Finish the wizard.</p>
<p><strong>Eg:SelectDetails.java</strong></p>

<div class="wp_syntax"><div class="code"><pre class="java" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.IOException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.io.PrintWriter</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.sql.Connection</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.sql.DriverManager</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.sql.ResultSet</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">java.sql.Statement</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.servlet.ServletException</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.servlet.http.HttpServlet</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.servlet.http.HttpServletRequest</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">import</span> <span style="color: #006699;">javax.servlet.http.HttpServletResponse</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SelectDetails <span style="color: #000000; font-weight: bold;">extends</span> HttpServlet <span style="color: #009900;">&#123;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> processRequest<span style="color: #009900;">&#40;</span>HttpServletRequest request, HttpServletResponse response<span style="color: #009900;">&#41;</span>
            <span style="color: #000000; font-weight: bold;">throws</span> ServletException, <span style="color: #003399;">IOException</span> <span style="color: #009900;">&#123;</span>
        response.<span style="color: #006633;">setContentType</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;text/html;charset=UTF-8&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003399;">PrintWriter</span> out <span style="color: #339933;">=</span> response.<span style="color: #006633;">getWriter</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003399;">Connection</span> conn <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003399;">String</span> branch <span style="color: #339933;">=</span> request.<span style="color: #006633;">getParameter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;branch&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003399;">String</span> userName <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;root&quot;</span><span style="color: #339933;">;</span>
            <span style="color: #003399;">String</span> password <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;123456&quot;</span><span style="color: #339933;">;</span>
            <span style="color: #003399;">String</span> url <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;jdbc:mysql://localhost/Check&quot;</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">Class</span>.<span style="color: #006633;">forName</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;com.mysql.jdbc.Driver&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #006633;">newInstance</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            conn <span style="color: #339933;">=</span> <span style="color: #003399;">DriverManager</span>.<span style="color: #006633;">getConnection</span><span style="color: #009900;">&#40;</span>url, userName, password<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003399;">Statement</span> s <span style="color: #339933;">=</span> conn.<span style="color: #006633;">createStatement</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            s.<span style="color: #006633;">executeQuery</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT id, name FROM student where branch = '&quot;</span> <span style="color: #339933;">+</span> branch <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;'&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003399;">ResultSet</span> rs <span style="color: #339933;">=</span> s.<span style="color: #006633;">getResultSet</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #009900;">&#40;</span>rs.<span style="color: #006633;">next</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000066; font-weight: bold;">int</span> idVal <span style="color: #339933;">=</span> rs.<span style="color: #006633;">getInt</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;id&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #003399;">String</span> nameVal <span style="color: #339933;">=</span> rs.<span style="color: #006633;">getString</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;name&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
                out.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;id = &quot;</span> <span style="color: #339933;">+</span> idVal <span style="color: #339933;">+</span> <span style="color: #0000ff;">&quot;, name = &quot;</span> <span style="color: #339933;">+</span> nameVal <span style="color: #339933;">+</span><span style="color: #0000ff;">&quot;   &quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
rs.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
s.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
out.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span>e.<span style="color: #006633;">toString</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">finally</span> <span style="color: #009900;">&#123;</span>
out.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>conn <span style="color: #339933;">!=</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">try</span> <span style="color: #009900;">&#123;</span>
                    conn.<span style="color: #006633;">close</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                    out.<span style="color: #006633;">println</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;Database connection terminated&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">catch</span> <span style="color: #009900;">&#40;</span><span style="color: #003399;">Exception</span> e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
&nbsp;
        <span style="color: #009900;">&#125;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> doGet<span style="color: #009900;">&#40;</span>HttpServletRequest request, HttpServletResponse response<span style="color: #009900;">&#41;</span>
            <span style="color: #000000; font-weight: bold;">throws</span> ServletException, <span style="color: #003399;">IOException</span> <span style="color: #009900;">&#123;</span>
        processRequest<span style="color: #009900;">&#40;</span>request, response<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> doPost<span style="color: #009900;">&#40;</span>HttpServletRequest request, HttpServletResponse response<span style="color: #009900;">&#41;</span>
            <span style="color: #000000; font-weight: bold;">throws</span> ServletException, <span style="color: #003399;">IOException</span> <span style="color: #009900;">&#123;</span>
        processRequest<span style="color: #009900;">&#40;</span>request, response<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>Step 4 : Run the project.</strong><br />
URL =&gt;  <em>http://localhost:8084/MyServlet/select.html</em></p>
<p><em><strong>Output for CSE<br />
id = 2, name = Amit<br />
id = 105, name = Moorthy</strong></em></p>
]]></content:encoded>
			<wfw:commentRss>http://openpeta.com/index.php/2009/05/creating-java-servlet-web-application-using-netbeans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
