<?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>Making Life Simple &#187; Uncategorized</title>
	<atom:link href="http://www.lalitmehta.com/home/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lalitmehta.com/home</link>
	<description></description>
	<lastBuildDate>Thu, 19 Jan 2012 09:13:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SVNAnt does not work</title>
		<link>http://www.lalitmehta.com/home/2009/09/03/svnant-does-not-work/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=svnant-does-not-work</link>
		<comments>http://www.lalitmehta.com/home/2009/09/03/svnant-does-not-work/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 17:33:16 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=112</guid>
		<description><![CDATA[If using SVNAnt, make sure subversion is installed on the system. In case, there is a way to use SVNAnt without it please let me know.]]></description>
			<content:encoded><![CDATA[<p>If using SVNAnt, make sure subversion is installed on the system.</p>
<p>In case, there is a way to use SVNAnt without it please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2009/09/03/svnant-does-not-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Invoke a servlet from a servlet</title>
		<link>http://www.lalitmehta.com/home/2009/09/03/invoke-a-servlet-from-a-servlet/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=invoke-a-servlet-from-a-servlet</link>
		<comments>http://www.lalitmehta.com/home/2009/09/03/invoke-a-servlet-from-a-servlet/#comments</comments>
		<pubDate>Thu, 03 Sep 2009 12:33:43 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=115</guid>
		<description><![CDATA[There are couple of ways to do so: Send a HTTP request To invoke a servlet that requires authentication, in addition to creating the URL object, you need to pass authentication cookies too. URL url = new URL("http://blah"); URLConnection con = url.openConnection(); con.setRequestProperty("Cookie", request.getHeader("Cookie")); con.connect(); RequestDispatcher Send a redirect]]></description>
			<content:encoded><![CDATA[<p>There are couple of ways to do so:</p>
<ol>
<li> Send a HTTP request<br />
To invoke a servlet that requires authentication, in addition to creating the URL object, you need to pass authentication cookies too.<br />
<code><br />
URL url = new URL("http://blah");<br />
URLConnection con = url.openConnection();<br />
con.setRequestProperty("Cookie", request.getHeader("Cookie"));<br />
con.connect();<br />
</code>
</li>
<li> RequestDispatcher</li>
<li> Send a redirect</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2009/09/03/invoke-a-servlet-from-a-servlet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GMail down</title>
		<link>http://www.lalitmehta.com/home/2009/09/01/gmail-down/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=gmail-down</link>
		<comments>http://www.lalitmehta.com/home/2009/09/01/gmail-down/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 20:38:10 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=103</guid>
		<description><![CDATA[It has been more than an hour or so, I am unable to access gmail. I get the following error. I wonder what made this happen! Update: Found the problem what caused this mess on gmail&#8217;s blog]]></description>
			<content:encoded><![CDATA[<p>It has been more than an hour or so, I am unable to access gmail. I get the following error.</p>
<p><img class="alignnone size-medium wp-image-102" title="google-error" src="http://www.lalitmehta.com/home/wp-content/uploads/2009/09/google-error-300x87.jpg" alt="google-error" width="300" height="87" /></p>
<p>I wonder what made this happen!</p>
<p>Update: Found the <a title="Gmail down" href="http://gmailblog.blogspot.com/2009/09/more-on-todays-gmail-issue.html" target="_blank">problem</a> what caused this mess on gmail&#8217;s blog</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2009/09/01/gmail-down/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL database backup and restore</title>
		<link>http://www.lalitmehta.com/home/2009/07/14/mysql-database-backup-and-restore/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mysql-database-backup-and-restore</link>
		<comments>http://www.lalitmehta.com/home/2009/07/14/mysql-database-backup-and-restore/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 16:52:58 +0000</pubDate>
		<dc:creator>lalit</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.lalitmehta.com/home/?p=96</guid>
		<description><![CDATA[1. Create Database Backup: You can use mysqldump to create a simple backup of your database using the following syntax. mysqldump -u [username] -p [password] [databasename] &#62; [backupfile.sql] [username] &#8211; this is your database username [password] &#8211; this is the password for your database [databasename] &#8211; the name of your database [backupfile.sql] &#8211; the file [...]]]></description>
			<content:encoded><![CDATA[<p>1. <u>Create Database Backup</u>:<br />
You can use mysqldump to create a simple backup of your database using the following syntax.</p>
<p><code>mysqldump -u [username] -p [password] [databasename] &gt; [backupfile.sql]</code></p>
<ul>
<li>[username] &#8211; this is your database username</li>
<li>[password] &#8211; this is the password for your database</li>
<li>[databasename] &#8211; the name of your database</li>
<li>[backupfile.sql] &#8211; the file to which the backup should be written.</li>
</ul>
<p>You can also ask mysqldump to add a drop table command before every create command by using the option &#8211;add-drop-table. This option is useful if you would like to create a backup file which can rewrite an existing database without having to delete the older database manually first.<br />
<code>mysqldump --add-drop-table -u [username] -p [password] [databasename] &gt; [backupfile.sql]</code></p>
<p>If you want to back up certain tables<br />
<code>mysqldump -u [username] -p [password] [databasename] [table1] [tableN]&gt; [backupfile.sql]</code></p>
<p>If you want to back up multiple databases<br />
<code>mysqldump -u [username] -p [password] [databasename1] [databasenameN] &gt; [backupfile.sql]</code></p>
<p>Or want to back up all databases<br />
<code>mysqldump -u [username] -p [password] --databases-all &gt; [backupfile.sql]</code></p>
<p>2. <u>Restore from database backup</u></p>
<p>Restore a particular database<br />
<code>mysql -u [username] -p [password] [database_to_restore] &lt; [backupfile] </code></p>
<p>Restore all databases<br />
<code>mysql -u [username] -p [password] &lt; [backupfile] </code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lalitmehta.com/home/2009/07/14/mysql-database-backup-and-restore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

