<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Varun Verma</title>
	<atom:link href="http://varunver.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://varunver.wordpress.com</link>
	<description>My techie diary</description>
	<lastBuildDate>Fri, 06 Aug 2010 00:23:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='varunver.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Varun Verma</title>
		<link>http://varunver.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://varunver.wordpress.com/osd.xml" title="Varun Verma" />
	<atom:link rel='hub' href='http://varunver.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Register a .net assembly</title>
		<link>http://varunver.wordpress.com/2010/08/05/register-a-net-assembly/</link>
		<comments>http://varunver.wordpress.com/2010/08/05/register-a-net-assembly/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 00:23:58 +0000</pubDate>
		<dc:creator>Varun Verma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://varunver.wordpress.com/?p=39</guid>
		<description><![CDATA[regasm assemblyName.dll [/tlb] [/codebase]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=39&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>regasm <em>assemblyName.dll</em> [/tlb] [/codebase]</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/varunver.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/varunver.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/varunver.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/varunver.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/varunver.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/varunver.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/varunver.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/varunver.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/varunver.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/varunver.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/varunver.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/varunver.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/varunver.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/varunver.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=39&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://varunver.wordpress.com/2010/08/05/register-a-net-assembly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3fbca3cc513197f7e322f95ff557858b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">varunver</media:title>
		</media:content>
	</item>
		<item>
		<title>Backup Oracle Database</title>
		<link>http://varunver.wordpress.com/2010/08/05/backup-oracle-database/</link>
		<comments>http://varunver.wordpress.com/2010/08/05/backup-oracle-database/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 00:22:46 +0000</pubDate>
		<dc:creator>Varun Verma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://varunver.wordpress.com/?p=37</guid>
		<description><![CDATA[exp<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=37&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>exp</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/varunver.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/varunver.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/varunver.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/varunver.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/varunver.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/varunver.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/varunver.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/varunver.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/varunver.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/varunver.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/varunver.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/varunver.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/varunver.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/varunver.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=37&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://varunver.wordpress.com/2010/08/05/backup-oracle-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3fbca3cc513197f7e322f95ff557858b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">varunver</media:title>
		</media:content>
	</item>
		<item>
		<title>WatiN</title>
		<link>http://varunver.wordpress.com/2010/07/22/watin/</link>
		<comments>http://varunver.wordpress.com/2010/07/22/watin/#comments</comments>
		<pubDate>Thu, 22 Jul 2010 17:05:21 +0000</pubDate>
		<dc:creator>Varun Verma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://varunver.wordpress.com/?p=33</guid>
		<description><![CDATA[WatiN stands for Web Application Testing In .NET, and it&#8217;s a framework that enables web application testing through Internet Explorer. WatiN is inspired on WatiR, a web application testing framework for Ruby. The way that WatiN works is very &#8220;easy&#8221;, knowing that there&#8217;s a lot of work behind a framework like this. WatiN lets you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=33&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>WatiN stands for Web Application Testing In .NET, and it&#8217;s a framework that enables web application testing through Internet Explorer. WatiN is inspired on WatiR, a web application testing framework for Ruby. The way that WatiN works is very &#8220;easy&#8221;, knowing that there&#8217;s a lot of work behind a framework like this. WatiN lets you open Internet Explorer instances, and through interop, interact with the elements in a form. With WatiN, you can get and set values from the elements in a form, and you can fire events of any of the elements in the document too.</p>
<pre>
using System;
using WatiN.Core;

namespace WatinTest
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            // Open a new Internet Explorer window and
            // goto the google website.
            int count = 1000000;
            if (args.Length &lt; 3)
            {
                Console.WriteLine(&quot;Synatx: watintest.exe url username password number_of_times&quot;);
                return;
            }

            string url = args[0].ToString();
            string username = args[1].ToString();
            string password = args[2].ToString();
            if (args.Length == 4)
                count =  Convert.ToInt32(args[3]) ;

            IE ie = new IE(url);

            ie.TextField(Find.ByName(&quot;txtUserName&quot;)).TypeText(username);
            ie.TextField(Find.ByName(&quot;txtPassword&quot;)).TypeText(password);
            ie.Image(Find.ByName(&quot;btnLogin&quot;)).Click();

            Frame frame_contentframe = ie.Frame(Find.ByName(&quot;contentframe&quot;));
            frame_contentframe.Image(Find.ByUrl(url+&quot;/images/Button/search.gif&quot;)).Click();

            for (int i = 0; i &lt; count; i++)
            {
                Console.WriteLine(&quot;Run:{0}&quot;, i);
                string checkbox = string.Format(&quot;dgReport__ctl{0}_chkSelect&quot;, i % 6 + 3);
                frame_contentframe.CheckBox(Find.ById(checkbox))
                    .Checked = true;
                frame_contentframe.Image(Find.BySrc(url+&quot;/Images/Button/edit.gif&quot;)).Click();
                frame_contentframe.Image(Find.BySrc(url+&quot;/Images/Button/save.gif&quot;)).Click();
                frame_contentframe.Image(Find.BySrc(url+&quot;/Images/Button/close.gif&quot;)).Click();
            }

            // Internet Explorer and the console window immediately.
            ie.Close();
        }
    }
}
</pre>
<p><strong>Reference:</strong><br />
<a href="http://www.codeproject.com/KB/aspnet/WatiN.aspx">http://www.codeproject.com/KB/aspnet/WatiN.aspx src=_blank&#8221;/&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/varunver.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/varunver.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/varunver.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/varunver.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/varunver.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/varunver.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/varunver.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/varunver.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/varunver.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/varunver.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/varunver.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/varunver.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/varunver.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/varunver.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=33&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://varunver.wordpress.com/2010/07/22/watin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3fbca3cc513197f7e322f95ff557858b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">varunver</media:title>
		</media:content>
	</item>
		<item>
		<title>Connecting to MySQL using Ruby within NetBeans</title>
		<link>http://varunver.wordpress.com/2010/04/20/connecting-to-mysql-using-ruby-within-netbeans/</link>
		<comments>http://varunver.wordpress.com/2010/04/20/connecting-to-mysql-using-ruby-within-netbeans/#comments</comments>
		<pubDate>Wed, 21 Apr 2010 04:36:12 +0000</pubDate>
		<dc:creator>Varun Verma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://varunver.wordpress.com/?p=23</guid>
		<description><![CDATA[Now this one is really buggy! I&#8217;ve spend 4 hours looking for a solution. Looking at the web left me in anguish thinking about the fact that no forum had such a straightforward solution that I mustered using the famous &#8220;Hit-And-Trial&#8221; algorithm. Alright, too much of gyaan I know but here is what the error [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=23&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now this one is really buggy! I&#8217;ve spend 4 hours looking for a solution. Looking at the web left me in anguish thinking about the fact that no forum had such a straightforward solution that I mustered using the famous &#8220;Hit-And-Trial&#8221; algorithm. Alright, too much of gyaan I know but here is what the error looked up like initially:</p>
<p>#!/usr/bin/ruby -w<br />
require &#8220;dbi&#8221;<br />
..some code</p>
<p>Error:<br />
require no such file to load dbi</p>
<p>OR</p>
<p><code>C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/dbi-0.4.3/lib/dbi.rb:318:in `load_driver': Could not load driver (uninitialized constant MysqlError) (DBI::InterfaceError)<br />
        from C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/dbi-0.4.3/lib/dbi.rb:160:in `_get_full_driver'<br />
        from C:/Program Files/Ruby/lib/ruby/gems/1.8/gems/dbi-0.4.3/lib/dbi.rb:145:in `connect'<br />
        from C:\Users\owner\Documents\NetBeansProjects\Ruby\Learning\lib\main.rb:9</code></p>
<p><strong>SOLUTION</strong><br />
1. Although NetBeans is integrated with Ruby, kindly install the latest environment from <a href="http://www.ruby-lang.org/en/downloads/">http://www.ruby-lang.org/en/downloads/</a></p>
<p>2. Click Tools -&gt; Ruby Platforms within NetBeans IDE. Add a platform as shown below<br />
<a href="http://varunver.files.wordpress.com/2010/04/addplatform.jpg"><img src="http://varunver.files.wordpress.com/2010/04/addplatform.jpg?w=300&#038;h=166" alt="Add Ruby Platform" title="Add Ruby Platform" width="300" height="166" class="alignnone size-large wp-image-24" /></a></p>
<p>3. Go to Project -&gt; Properties -&gt; Run and select the latest version of Ruby as shown below:<br />
<a href="http://varunver.files.wordpress.com/2010/04/properties.jpg"><img src="http://varunver.files.wordpress.com/2010/04/properties.jpg?w=300&#038;h=215" alt="Properties" title="Properties" width="300" height="215" class="alignnone size-large wp-image-25" /></a></p>
<p>4. Compile the program and you are all set.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/varunver.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/varunver.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/varunver.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/varunver.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/varunver.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/varunver.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/varunver.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/varunver.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/varunver.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/varunver.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/varunver.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/varunver.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/varunver.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/varunver.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=23&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://varunver.wordpress.com/2010/04/20/connecting-to-mysql-using-ruby-within-netbeans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3fbca3cc513197f7e322f95ff557858b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">varunver</media:title>
		</media:content>

		<media:content url="http://varunver.files.wordpress.com/2010/04/addplatform.jpg?w=300" medium="image">
			<media:title type="html">Add Ruby Platform</media:title>
		</media:content>

		<media:content url="http://varunver.files.wordpress.com/2010/04/properties.jpg?w=300" medium="image">
			<media:title type="html">Properties</media:title>
		</media:content>
	</item>
		<item>
		<title>WCF Internal Server Error</title>
		<link>http://varunver.wordpress.com/2010/04/20/wcf-internal-server-error/</link>
		<comments>http://varunver.wordpress.com/2010/04/20/wcf-internal-server-error/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 22:59:44 +0000</pubDate>
		<dc:creator>Varun Verma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://varunver.wordpress.com/?p=12</guid>
		<description><![CDATA[Ever encountered the following error while running a WCF Hello World application? HTTP Error 500.19 - Internal Server Error The requested page cannot be accessed because the related configuration data for the page is invalid. Module IIS Web Core Notification BeginRequest Handler Not yet determined Error Code 0x80070005 Config Error Cannot read configuration file due [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=12&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ever encountered the following error while running a WCF Hello World application?</p>
<pre>
HTTP Error 500.19 - Internal Server Error
The requested page cannot be accessed because the related configuration data
for the page is invalid.
Module 	IIS Web Core
Notification 	BeginRequest
Handler 	Not yet determined
Error Code 	0x80070005
Config Error 	Cannot read configuration file due to insufficient permissions
</pre>
<p>If you&#8217;ve reached here perusing through multiple forums and blogs first answer the following question to yourself and &#8216;Yes&#8217; is what you get, then maybe your computer could be suffering from &#8220;Windows Firewall Protection&#8221; syndrome.</p>
<p>Do you get an alert window asking for your permission while you are adding new software or modifying system settings?</p>
<p>If Yes<br />
&#8220;Windows Firewall Protection&#8221; Syndrome<br />
End If</p>
<p>Solution:<br />
Please check your system firewall settings. If you are using Vista:<br />
1. My Computer -&gt; Right Click -&gt; Properties<br />
2. Security Center -&gt; Windows Firewall<br />
3. If it reads &#8220;Your computer is protected&#8221; or &#8220;Windows Firewall is on&#8221;, then you might want to turn the firewall &#8220;<strong>OFF</strong>&#8221; and &#8220;<strong>Restart</strong>&#8221; your computer.</p>
<p>Might not turn out to be a panacea but it is definitely worth trying!<br />
Do post back if this turned out to be a solution for you to help other users.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/varunver.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/varunver.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/varunver.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/varunver.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/varunver.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/varunver.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/varunver.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/varunver.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/varunver.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/varunver.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/varunver.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/varunver.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/varunver.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/varunver.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=12&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://varunver.wordpress.com/2010/04/20/wcf-internal-server-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3fbca3cc513197f7e322f95ff557858b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">varunver</media:title>
		</media:content>
	</item>
		<item>
		<title>Configuring MySQL on Windows and connect using JDBC</title>
		<link>http://varunver.wordpress.com/2010/04/18/configuring-mysql-on-windows-and-connect-using-jdbc/</link>
		<comments>http://varunver.wordpress.com/2010/04/18/configuring-mysql-on-windows-and-connect-using-jdbc/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 04:14:13 +0000</pubDate>
		<dc:creator>Varun Verma</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://varunver.wordpress.com/?p=3</guid>
		<description><![CDATA[1. Download MySQL Community server for Windows from http://dev.mysql.com/downloads/mysql/ Install and configure MySQL to setup a root and password. 2. Download MySQL GUI Tools for Windows from http://dev.mysql.com/downloads/gui-tools/5.0.html Create a table under test schema. 3. Download the MySQL JDBC Driver from http://dev.mysql.com/downloads/connector/j/ 4. Create a project in Eclipse or any other Java editor. Include the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=3&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>1. Download MySQL Community server for Windows from <a href="http://dev.mysql.com/downloads/mysql/">http://dev.mysql.com/downloads/mysql/</a></p>
<p>Install and configure MySQL to setup a root and password.</p>
<p>2. Download MySQL GUI Tools for Windows from <a href="http://dev.mysql.com/downloads/gui-tools/5.0.html">http://dev.mysql.com/downloads/gui-tools/5.0.html</a></p>
<p>Create a table under test schema.</p>
<p>3. Download the MySQL JDBC Driver from <a href="http://dev.mysql.com/downloads/connector/j/">http://dev.mysql.com/downloads/connector/j/</a></p>
<p>4. Create a project in Eclipse or any other Java editor. Include the MySQL JDBC Driver tar within the project. Copy the following code to test the connection:</p>
<pre>import java.sql.*;

public class main {

/**
 * @param args
 */
public static void main(String[] args) {
	// TODO Auto-generated method stub
	Connection con = null;
	String url = "jdbc:mysql://localhost:3306/";
	String db = "test";
	String driver = "com.mysql.jdbc.Driver";
	String user = "root";
	String pass = "admin";
	try{
	  try{
		  Class.forName(driver).newInstance();
		  con = DriverManager.getConnection(url+db, user, pass);
		  Statement st = con.createStatement();
		  ResultSet res = st.executeQuery("SELECT * FROM  user");
		  while (res.next()) {
			  int id = res.getInt("ID");
			  String fName = res.getString("FNAME");
			  String lName = res.getString("LNAME");
			  String email = res.getString("EMAIL");
			  System.out.println(id + ","
								+ fName + ","
								+ lName + ","
								+ email);
		  }
		  con.close();
	  }
	  catch (SQLException s){
		System.out.println("SQL code does not execute.");
	  }
	}
	catch (Exception e){
	  e.printStackTrace();
	}
}

}//End of class
</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/varunver.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/varunver.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/varunver.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/varunver.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/varunver.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/varunver.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/varunver.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/varunver.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/varunver.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/varunver.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/varunver.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/varunver.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/varunver.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/varunver.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=varunver.wordpress.com&amp;blog=13191284&amp;post=3&amp;subd=varunver&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://varunver.wordpress.com/2010/04/18/configuring-mysql-on-windows-and-connect-using-jdbc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/3fbca3cc513197f7e322f95ff557858b?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">varunver</media:title>
		</media:content>
	</item>
	</channel>
</rss>
