<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Knowledge Base</title>
	<atom:link href="http://rkutti.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rkutti.wordpress.com</link>
	<description>Knowledge Base</description>
	<lastBuildDate>Fri, 22 Feb 2008 12:40:57 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='rkutti.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/ca21d21aa4510990e149b4d88a579a9f?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Knowledge Base</title>
		<link>http://rkutti.wordpress.com</link>
	</image>
			<item>
		<title>mysql_pconnect() vs mysql_connect()</title>
		<link>http://rkutti.wordpress.com/2008/02/22/mysql_pconnect-vs-mysql_connect/</link>
		<comments>http://rkutti.wordpress.com/2008/02/22/mysql_pconnect-vs-mysql_connect/#comments</comments>
		<pubDate>Fri, 22 Feb 2008 12:35:23 +0000</pubDate>
		<dc:creator>rkutti</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://rkutti.wordpress.com/?p=18</guid>
		<description><![CDATA[ When connecting, the pconnect wolud first try to find a (persistent) link that&#8217;s already open with the same host, username and password. If the link already exist then the identifier for that will be returned instead of opening a new connection. Later, create a new link for each connection.
 The Connection to the SQL [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=18&subd=rkutti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img src="http://www-jlc.kek.jp/lib/green-round-bullet.gif" /> When connecting, the pconnect wolud first try to find a (persistent) link that&#8217;s already open with the same host, username and password. If the link already exist then the identifier for that will be returned instead of opening a new connection. Later, create a new link for each connection.</p>
<p><img src="http://www-jlc.kek.jp/lib/green-round-bullet.gif" /> The Connection to the SQL server will not be closed when the execution of the script ends. Instead the link will be opened for future use and mysql_close() will not will not close links established by mysql_pconnect(). Later, The link to the server will be closed as soon as the execution of the script ends, unless its closed earlier by explicitly calling mysql_close().</p>
<p>Reference: <a href="http://in2.php.net/mysql_pconnect" target="_blank">mysql_pconnect()</a> and <a href="http://in2.php.net/manual/en/function.mysql-connect.php" target="_blank">mysql_connect()</a></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rkutti.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rkutti.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rkutti.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rkutti.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rkutti.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rkutti.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rkutti.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rkutti.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rkutti.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rkutti.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rkutti.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rkutti.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=18&subd=rkutti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rkutti.wordpress.com/2008/02/22/mysql_pconnect-vs-mysql_connect/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84b2609fa130eb5d7ed73779534ee1a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rkutti</media:title>
		</media:content>

		<media:content url="http://www-jlc.kek.jp/lib/green-round-bullet.gif" medium="image" />

		<media:content url="http://www-jlc.kek.jp/lib/green-round-bullet.gif" medium="image" />
	</item>
		<item>
		<title>Take the dump of Postgresql database from Linux console</title>
		<link>http://rkutti.wordpress.com/2008/02/20/take-the-dump-of-postgresql-database-from-linux-console/</link>
		<comments>http://rkutti.wordpress.com/2008/02/20/take-the-dump-of-postgresql-database-from-linux-console/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 12:28:33 +0000</pubDate>
		<dc:creator>rkutti</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dbdump]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://rkutti.wordpress.com/?p=17</guid>
		<description><![CDATA[*To dump data or structure in the database from a dump file
$psql -u DBUserName datbaseName &#60; databaseName_dump.sql
*To take the dump from the database
$pg_dump -u databaseName &#62; filename.sql // data + structure
It will ask the username and password of database
$pg_dump -u databaseName -a &#62; filename.sql // only data
$pg_dump -u databaseName -s &#62; filename.sql // only structure
$pg_dump [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=17&subd=rkutti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>*To dump data or structure in the database from a dump file</p>
<p>$psql -u DBUserName datbaseName &lt; databaseName_dump.sql</p>
<p>*To take the dump from the database</p>
<p>$pg_dump -u databaseName &gt; filename.sql // data + structure<br />
It will ask the username and password of database</p>
<p>$pg_dump -u databaseName -a &gt; filename.sql // only data</p>
<p>$pg_dump -u databaseName -s &gt; filename.sql // only structure</p>
<p>$pg_dump &#8211;username=sql-ledger -W databaseName &gt; filename.sql<br />
It will ask the password of database</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rkutti.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rkutti.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rkutti.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rkutti.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rkutti.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rkutti.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rkutti.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rkutti.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rkutti.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rkutti.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rkutti.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rkutti.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=17&subd=rkutti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rkutti.wordpress.com/2008/02/20/take-the-dump-of-postgresql-database-from-linux-console/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84b2609fa130eb5d7ed73779534ee1a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rkutti</media:title>
		</media:content>
	</item>
		<item>
		<title>Quote from Bible for Valentine&#8217;s day</title>
		<link>http://rkutti.wordpress.com/2008/02/14/quote-from-bible-for-valentines-day/</link>
		<comments>http://rkutti.wordpress.com/2008/02/14/quote-from-bible-for-valentines-day/#comments</comments>
		<pubDate>Thu, 14 Feb 2008 11:30:04 +0000</pubDate>
		<dc:creator>rkutti</dc:creator>
				<category><![CDATA[Inspirations]]></category>
		<category><![CDATA[bible]]></category>
		<category><![CDATA[quote]]></category>
		<category><![CDATA[valentine's day]]></category>

		<guid isPermaLink="false">http://rkutti.wordpress.com/?p=16</guid>
		<description><![CDATA[
Jesus said this:
But I tell everyone who is listening:
 Love your enemies.
Be kind to those who hate you.
Bless those who curse you.
Pray for those who insult you.
If someone strikes you on the cheek, offer the other cheek as well. If someone takes your coat, don’t stop him from taking your shirt.
Give to everyone who asks [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=16&subd=rkutti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><div class="entry">
<div class="snap_preview">Jesus said this:</p>
<blockquote><p>But I tell everyone who is listening:<br />
<font color="#ff0000"> Love</font> your enemies.<br />
Be kind to those who hate you.<br />
Bless those who curse you.<br />
Pray for those who insult you.<br />
If someone strikes you on the cheek, offer the other cheek as well. If someone takes your coat, don’t stop him from taking your shirt.<br />
Give to everyone who asks you for something. If someone takes what is yours, don’t insist on getting it back.</p>
<p><font face="book antiqua">Do for other people everything you’d like them to do for you.</font></p>
<p>If you <font color="#ff0000">love</font> those who <font color="#ff0000">love</font> you, do you deserve any thanks for that? Even sinners <font color="#ff0000">love</font> those who <font color="#ff0000">love</font> them.<br />
If you help those who help you, do you deserve any thanks for that? Sinners do that too.<br />
If you lend anything to those from whom you expect to get something back, do you deserve any thanks for that? Sinners also lend to sinners to get back what they lend.<br />
Rather, <font color="#ff0000">love</font> your enemies, help them, and lend to them without expecting to get anything back. Then you will have a great reward. You will be the children of the Most High God. After all, he is kind to unthankful and evil people. Be merciful as your Father is merciful.</p>
<p>Stop judging, and you will not be judged.<br />
Stop condemning, and you will not be condemned.<br />
Forgive, and you will be forgiven.<br />
Give, and you will receive. A large quantity, pressed together, shaken down, and running over will be put into your pocket.<br />
The standards you use for others will be applied to you.</p>
<p>Refrence:<a href="http://ramblingsofpassion.wordpress.com/2008/02/14/a-not-so-sappy-love-quote-for-valentines-day/" target="_blank">Ramblings of Passion</a></p></blockquote>
</div>
</div>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rkutti.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rkutti.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rkutti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rkutti.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rkutti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rkutti.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rkutti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rkutti.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rkutti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rkutti.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rkutti.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rkutti.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=16&subd=rkutti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rkutti.wordpress.com/2008/02/14/quote-from-bible-for-valentines-day/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84b2609fa130eb5d7ed73779534ee1a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rkutti</media:title>
		</media:content>
	</item>
		<item>
		<title>Some usefull Linux Commands</title>
		<link>http://rkutti.wordpress.com/2008/02/06/some-usefull-linux-commands/</link>
		<comments>http://rkutti.wordpress.com/2008/02/06/some-usefull-linux-commands/#comments</comments>
		<pubDate>Wed, 06 Feb 2008 09:59:05 +0000</pubDate>
		<dc:creator>rkutti</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://rkutti.wordpress.com/?p=15</guid>
		<description><![CDATA[To know the ip address of the machine
$ifconfig
To view list of previously typed commands in command prompt 
$history &#124; grep &#60;word that need to be searched&#62;
To Know the ip address of the website
$host site-name

To list all the process running in a machine
$ps aux

To kill a process that is running
$kill -9 the process code
To know which [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=15&subd=rkutti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><font color="#0000ff">To know the ip address of the machine</font><br />
$<font color="#ff0000">ifconfig</font></p>
<p><font color="#0000ff">To view list of previously typed commands in command prompt </font><br />
$<font color="#ff0000">history | grep &lt;word that need to be searched&gt;</font></p>
<p><font color="#0000ff">To Know the ip address of the website</font><br />
$<font color="#ff0000">host site-name<br />
</font><br />
<font color="#0000ff">To list all the process running in a machine</font><br />
$<font color="#ff0000">ps aux<br />
</font><br />
<font color="#0000ff">To kill a process that is running</font><br />
$<font color="#ff0000">kill -9 the process code</font></p>
<p><font color="#0000ff">To know which process consumes more space</font><br />
$<font color="#ff0000">top</font></p>
<p><font color="#0000ff">To know how much space the folder occupies</font><br />
$<font color="#ff0000">du -sh .</font></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rkutti.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rkutti.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rkutti.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rkutti.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rkutti.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rkutti.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rkutti.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rkutti.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rkutti.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rkutti.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rkutti.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rkutti.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=15&subd=rkutti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rkutti.wordpress.com/2008/02/06/some-usefull-linux-commands/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84b2609fa130eb5d7ed73779534ee1a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rkutti</media:title>
		</media:content>
	</item>
		<item>
		<title>House for Rent</title>
		<link>http://rkutti.wordpress.com/2008/02/05/house-for-rent/</link>
		<comments>http://rkutti.wordpress.com/2008/02/05/house-for-rent/#comments</comments>
		<pubDate>Tue, 05 Feb 2008 16:02:30 +0000</pubDate>
		<dc:creator>rkutti</dc:creator>
				<category><![CDATA[Real Estate]]></category>
		<category><![CDATA[3BHK]]></category>
		<category><![CDATA[chennai]]></category>
		<category><![CDATA[realestate]]></category>
		<category><![CDATA[rent]]></category>
		<category><![CDATA[renthouse]]></category>

		<guid isPermaLink="false">http://rkutti.wordpress.com/2008/02/05/house-for-rent/</guid>
		<description><![CDATA[Ground Floor and First Floor duplex model
Anna Nagar, Chennai, Tamil Nadu
Bedrooms : 3
Land Area : 1200 Sq-ft
Buildup Area &#8211; 2000 Sq ft
Description:
This flat is located in Vellacherri, chennai with good surroundings, with spacious rooms, with good water supply, with main road approach, with easy access.
Key Features:-
Semi Furnished, Spaceous terrace, Double Car Parking
Contact Person : Mr. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=14&subd=rkutti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Ground Floor and First Floor duplex model<br />
Anna Nagar, Chennai, Tamil Nadu<br />
Bedrooms : 3<br />
Land Area : 1200 Sq-ft<br />
Buildup Area &#8211; 2000 Sq ft</p>
<p>Description:<br />
This flat is located in Vellacherri, chennai with good surroundings, with spacious rooms, with good water supply, with main road approach, with easy access.</p>
<p>Key Features:-<br />
Semi Furnished, Spaceous terrace, Double Car Parking</p>
<p><b>Contact Person</b> : Mr. Prathab<br />
<b>Contact Number</b> : +91-9944168941</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rkutti.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rkutti.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rkutti.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rkutti.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rkutti.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rkutti.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rkutti.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rkutti.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rkutti.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rkutti.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rkutti.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rkutti.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=14&subd=rkutti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rkutti.wordpress.com/2008/02/05/house-for-rent/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84b2609fa130eb5d7ed73779534ee1a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rkutti</media:title>
		</media:content>
	</item>
		<item>
		<title>Display textarea content with line breaks in html page</title>
		<link>http://rkutti.wordpress.com/2008/01/31/display-textarea-content-with-line-breaks-in-html-page/</link>
		<comments>http://rkutti.wordpress.com/2008/01/31/display-textarea-content-with-line-breaks-in-html-page/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 12:21:22 +0000</pubDate>
		<dc:creator>rkutti</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://rkutti.wordpress.com/2008/01/31/display-textarea-content-with-line-breaks-in-html-page/</guid>
		<description><![CDATA[Let us see how javascript, php, and ruby display the content of textarea with line breaks
Javascript:
document.getElemnetById(&#8216;textareacontent&#8217;).value.replace(/\n/g,&#8217;&#60;br&#62;&#8217;);
PHP:
preg_replace(&#8220;/\n/&#8221;,&#8221;&#60;br&#62;&#8221;,$_REQUEST['t1']);
Ruby:
(teaxtareacontent).gsub(/\n/,&#8221;&#60;br&#62;&#8221;)
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=11&subd=rkutti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Let us see how javascript, php, and ruby display the content of textarea with line breaks</p>
<p>Javascript:</p>
<p>document.getElemnetById(&#8216;textareacontent&#8217;).value.replace(/\n/g,&#8217;&lt;br&gt;&#8217;);</p>
<p>PHP:</p>
<p>preg_replace(&#8220;/\n/&#8221;,&#8221;&lt;br&gt;&#8221;,$_REQUEST['t1']);</p>
<p>Ruby:</p>
<p>(teaxtareacontent).gsub(/\n/,&#8221;&lt;br&gt;&#8221;)</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rkutti.wordpress.com/11/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rkutti.wordpress.com/11/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rkutti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rkutti.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rkutti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rkutti.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rkutti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rkutti.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rkutti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rkutti.wordpress.com/11/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rkutti.wordpress.com/11/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rkutti.wordpress.com/11/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=11&subd=rkutti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rkutti.wordpress.com/2008/01/31/display-textarea-content-with-line-breaks-in-html-page/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84b2609fa130eb5d7ed73779534ee1a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rkutti</media:title>
		</media:content>
	</item>
		<item>
		<title>PHP Singleton Object</title>
		<link>http://rkutti.wordpress.com/2008/01/29/php-singleton-object/</link>
		<comments>http://rkutti.wordpress.com/2008/01/29/php-singleton-object/#comments</comments>
		<pubDate>Tue, 29 Jan 2008 13:58:20 +0000</pubDate>
		<dc:creator>rkutti</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[SingletonPattern]]></category>

		<guid isPermaLink="false">http://rkutti.wordpress.com/?p=10</guid>
		<description><![CDATA[The singleton pattern is a design pattern that is used to restrict instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system.
Here is an example, that demonstrates this singleton pattern:
&#60;?php
echo &#8221; 1: &#8220;;
$user_1 = CurrentUser::singleton();
echo &#8220;\n 2: &#8220;;
$user_1-&#62;counter();
echo &#8220;\n 3: &#8220;;
$user_2 = CurrentUser::singleton();
echo [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=10&subd=rkutti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>The <a href="http://en.wikipedia.org/wiki/Singleton_pattern" title="Singleton Pattern" target="_blank">singleton pattern</a> is a design pattern that is used to restrict instantiation of a class to one object. This is useful when exactly one object is needed to coordinate actions across the system.</p>
<p>Here is an example, that demonstrates this singleton pattern:<span id="more-10"></span></p>
<p><font color="#3366ff"><b>&lt;?php</b></font></p>
<p><font color="#3366ff"><b>echo &#8221; 1: &#8220;;<br />
$user_1 = CurrentUser::singleton();</b></font></p>
<p><font color="#3366ff"><b>echo &#8220;\n 2: &#8220;;<br />
$user_1-&gt;counter();</b></font></p>
<p><font color="#3366ff"><b>echo &#8220;\n 3: &#8220;;<br />
$user_2 = CurrentUser::singleton();</b></font></p>
<p><font color="#3366ff"><b>echo &#8220;\n 4: &#8220;;<br />
$user_2-&gt;counter();</b></font></p>
<p><font color="#3366ff"><b>echo &#8220;\n 5: &#8220;;<br />
$user_1-&gt;counter();</b></font></p>
<p><font color="#3366ff"><b>echo &#8220;\n 6: &#8220;;<br />
$post = new Post();</b></font></p>
<p><font color="#3366ff"><b>echo &#8220;\n 7: &#8220;;<br />
$post-&gt;counter();</b></font></p>
<p><font color="#3366ff"><b>/* Singleton Class: CurrentUser */<br />
class CurrentUser<br />
{<br />
// Hold an instance of the class<br />
private static $instance;<br />
private $counter = 0;</b></font></p>
<p><font color="#3366ff"><b>// A private constructor; prevents direct creation of object<br />
private function __construct()<br />
{<br />
echo &#8220;Constructing CurrentUser \n&#8221;;<br />
}</b></font></p>
<p><font color="#3366ff"><b>// The singleton method<br />
public static function singleton()<br />
{<br />
if (!isset(self::$instance)) {<br />
$c = __CLASS__;<br />
self::$instance = new $c;<br />
} else {<br />
echo &#8220;&lt;span class=\&#8221;ghost\&#8221;&gt;CurrentUser already exists&lt;/span&gt; \n&#8221;;<br />
}<br />
return self::$instance;<br />
}</b></font></p>
<p><font color="#3366ff"><b>public function counter()<br />
{<br />
echo &#8220;CurrentUser -&gt; counter = &#8221; . $this-&gt;counter . &#8221; \n&#8221;;<br />
++$this-&gt;counter;<br />
}<br />
}</b></font></p>
<p><font color="#3366ff"><b>/* Normal Class: Post */<br />
class Post<br />
{<br />
private $current_user;</b></font></p>
<p><font color="#3366ff"><b>public function __construct()<br />
{<br />
echo &#8220;Constructing Post \n    &#8220;;<br />
$this-&gt;current_user = CurrentUser::singleton();<br />
}</b></font></p>
<p><font color="#3366ff"><b>public function counter()<br />
{<br />
echo &#8220;Post -&gt; counter \n    &#8220;;<br />
$this-&gt;current_user-&gt;counter();<br />
}<br />
}<br />
?&gt;<br />
</b></font><br />
In this code there is a class CurrentUser, which consists of one private and static variable to hold current user object and another private variable for counter.</p>
<p>This class consists of three functions,<br />
1: The contructor &#8211; which is called when the class is instantiated<br />
2: Singleton &#8211; it checks if the variable instantiate is set or not. If its not set then new object is created else it uses the existing object<br />
3: Counter fn &#8211; to increment the counter variable.</p>
<p>Output of the code:<br />
<font color="#0000ff"> 1: Constructing CurrentUser<br />
2: CurrentUser -&gt; counter = 0<br />
3: CurrentUser already exists<br />
4: CurrentUser -&gt; counter = 1<br />
5: CurrentUser -&gt; counter = 2<br />
6: Constructing Post</font><br />
<font color="#0000ff"> CurrentUser already exists<br />
7: Post -&gt; counter<br />
CurrentUser -&gt; counter = 3</font></p>
<p>Here is an example, without singleton pattern</p>
<p><font color="#0000ff"><b>&lt;?php<br />
echo &#8220;1: &#8220;;<br />
$user_1 = CurrentUser::singleton();</b></font></p>
<p><font color="#0000ff"><b>echo &#8220;&lt;br&gt;2: &#8220;;<br />
$user_1-&gt;counter();</b></font></p>
<p><font color="#0000ff"><b>echo &#8220;&lt;br&gt;3: &#8220;;<br />
$user_2 = CurrentUser::singleton();</b></font></p>
<p><font color="#0000ff"><b>echo &#8220;&lt;br&gt;4: &#8220;;<br />
$user_2-&gt;counter();</b></font></p>
<p><font color="#0000ff"><b>echo &#8220;&lt;br&gt;5: &#8220;;<br />
$user_1-&gt;counter();</b></font></p>
<p><font color="#0000ff"><b>echo &#8220;&lt;br&gt;6: &#8220;;<br />
$post = new Post();</b></font></p>
<p><font color="#0000ff"><b>echo &#8220;&lt;br&gt;7: &#8220;;<br />
$post-&gt;counter();</b></font></p>
<p><font color="#0000ff"><b>/* Singleton Class: CurrentUser */<br />
class CurrentUser<br />
{<br />
// Hold an instance of the class<br />
private $instance;<br />
private $counter = 0;</b></font></p>
<p><font color="#0000ff"><b>// A private constructor; prevents direct creation of object<br />
private function __construct()<br />
{<br />
echo &#8220;Constructing CurrentUser \n&#8221;;<br />
}</b></font></p>
<p><font color="#0000ff"><b>// The singleton method<br />
public function singleton()<br />
{<br />
$c = __CLASS__;<br />
$instance = new $c;<br />
return $instance;<br />
}</b></font></p>
<p><font color="#0000ff"><b>public function counter()<br />
{<br />
echo &#8220;CurrentUser -&gt; counter = &#8221; . $this-&gt;counter . &#8221; \n&#8221;;<br />
++$this-&gt;counter;<br />
}<br />
}</b></font></p>
<p><font color="#0000ff"><b>/* Normal Class: Post */<br />
class Post<br />
{<br />
private $current_user;</b></font></p>
<p><font color="#0000ff"><b>public function __construct()<br />
{<br />
echo &#8220;Constructing Post &lt;br&gt;&#8221;;<br />
$this-&gt;current_user = CurrentUser::singleton();<br />
}</b></font></p>
<p><font color="#0000ff"><b>public function counter()<br />
{<br />
echo &#8220;Post -&gt; counter&lt;br&gt;&#8221;;<br />
$this-&gt;current_user-&gt;counter();<br />
}<br />
}<br />
?&gt;</b></font></p>
<p>In this example, the CurrentUser object is created each time when the singleton function is called.</p>
<p>The output of this code:<br />
<font color="#0000ff"> 1: Constructing CurrentUser<br />
2: CurrentUser -&gt; counter = 0<br />
3: Constructing CurrentUser<br />
4: CurrentUser -&gt; counter = 0<br />
5: CurrentUser -&gt; counter = 1<br />
6: Constructing Post<br />
Constructing CurrentUser<br />
7: Post -&gt; counter<br />
CurrentUser -&gt; counter = 0</font></p>
<p>Reference: <a href="http://www.imarc.net/communique/view/118/implementing_a_php_singleton" title="Implementing a PHP Singleton" target="_blank">Implementing a PHP Singleton</a><code></code><code></code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rkutti.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rkutti.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rkutti.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rkutti.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rkutti.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rkutti.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rkutti.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rkutti.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rkutti.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rkutti.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rkutti.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rkutti.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=10&subd=rkutti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rkutti.wordpress.com/2008/01/29/php-singleton-object/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84b2609fa130eb5d7ed73779534ee1a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rkutti</media:title>
		</media:content>
	</item>
		<item>
		<title>Take the dump of database from the console</title>
		<link>http://rkutti.wordpress.com/2008/01/23/take-the-dump-of-database-from-the-console/</link>
		<comments>http://rkutti.wordpress.com/2008/01/23/take-the-dump-of-database-from-the-console/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 08:09:04 +0000</pubDate>
		<dc:creator>rkutti</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://rkutti.wordpress.com/2008/01/23/take-the-dump-of-database-from-the-console/</guid>
		<description><![CDATA[To take dump of whole database:
$ mysqldump -u &#60;username&#62; -p &#60;databasename&#62; &#62; &#60;filename&#62;.sql
To take dump of the (only)structure of the database
$ mysqldump -u &#60;username&#62; -p &#60;databasename&#62; -d &#62; &#60;filename&#62;.sql
To take dump of the (only)data of the database
$ mysqldump -u &#60;username&#62; -p &#60;databasename&#62; -t &#62; &#60;filename&#62;.sql
To take dump of the database with complete insert statement
$ mysqldump [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=9&subd=rkutti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To take dump of whole database:<br />
$ mysqldump -u &lt;username&gt; -p &lt;databasename&gt; &gt; &lt;filename&gt;.sql</p>
<p>To take dump of the (only)structure of the database<br />
$ mysqldump -u &lt;username&gt; -p &lt;databasename&gt; -d &gt; &lt;filename&gt;.sql</p>
<p>To take dump of the (only)data of the database<br />
$ mysqldump -u &lt;username&gt; -p &lt;databasename&gt; -t &gt; &lt;filename&gt;.sql</p>
<p>To take dump of the database with complete insert statement<br />
$ mysqldump -u &lt;username&gt; -p &lt;databasename&gt; -c &gt; &lt;filename&gt;.sql</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rkutti.wordpress.com/9/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rkutti.wordpress.com/9/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rkutti.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rkutti.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rkutti.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rkutti.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rkutti.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rkutti.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rkutti.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rkutti.wordpress.com/9/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rkutti.wordpress.com/9/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rkutti.wordpress.com/9/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=9&subd=rkutti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rkutti.wordpress.com/2008/01/23/take-the-dump-of-database-from-the-console/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84b2609fa130eb5d7ed73779534ee1a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rkutti</media:title>
		</media:content>
	</item>
		<item>
		<title>How to create database using mysql commands</title>
		<link>http://rkutti.wordpress.com/2008/01/08/how-to-create-database-using-mysql-commands/</link>
		<comments>http://rkutti.wordpress.com/2008/01/08/how-to-create-database-using-mysql-commands/#comments</comments>
		<pubDate>Tue, 08 Jan 2008 09:39:25 +0000</pubDate>
		<dc:creator>rkutti</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://rkutti.wordpress.com/2008/01/08/how-to-create-database-using-mysql-commands/</guid>
		<description><![CDATA[To create database from command prompt. Login to mysql as root user.
To login into mysql prompt in linux machine.
Type the following command in the console
$ mysql -u &#60;username&#62; -p&#60;password&#62;
After entering the mysql prompt follow these steps to create a database
and load the database with sql file.
A CREATE DATABASE statement to create a database.
&#62; create database [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=8&subd=rkutti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To create database from command prompt. Login to mysql as root user.<br />
To login into mysql prompt in linux machine.<br />
Type the following command in the console</p>
<p>$ mysql -u &lt;username&gt; -p&lt;password&gt;</p>
<p>After entering the mysql prompt follow these steps to create a database<br />
and load the database with sql file.</p>
<p>A CREATE DATABASE statement to create a database.<br />
&gt; create database &lt;databasename&gt;;</p>
<p>A GRANT statement to grant privileges to database.<br />
&gt; grant all on &lt;databasename&gt;.* to &lt;username&gt;@localhost identified by &#8216;&lt;password&gt;&#8217;;</p>
<p>A FLUSH PRIVILEGES statement to tell the server to reload the grant.<br />
&gt; flush privileges;</p>
<p>A USE statement to tell the server to use the given database for further operations.<br />
&gt; use &lt;databasename&gt;;</p>
<p>A SOURCE statement to tell server to load the given sql file in the database.<br />
&gt; source &lt;filename.sql&gt;</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rkutti.wordpress.com/8/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rkutti.wordpress.com/8/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rkutti.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rkutti.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rkutti.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rkutti.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rkutti.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rkutti.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rkutti.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rkutti.wordpress.com/8/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rkutti.wordpress.com/8/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rkutti.wordpress.com/8/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=8&subd=rkutti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rkutti.wordpress.com/2008/01/08/how-to-create-database-using-mysql-commands/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84b2609fa130eb5d7ed73779534ee1a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rkutti</media:title>
		</media:content>
	</item>
		<item>
		<title>Microformats</title>
		<link>http://rkutti.wordpress.com/2007/12/10/microformats/</link>
		<comments>http://rkutti.wordpress.com/2007/12/10/microformats/#comments</comments>
		<pubDate>Mon, 10 Dec 2007 04:29:20 +0000</pubDate>
		<dc:creator>rkutti</dc:creator>
				<category><![CDATA[Technical]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[microformats]]></category>

		<guid isPermaLink="false">http://rkutti.wordpress.com/2007/12/10/microformats/</guid>
		<description><![CDATA[Microformats are tiny little markup definitions built on top of, usually, HTML or XHTML.
The available microformats are hCalendar, hReview, hCard, RelLicense, RelTag, XFN Format etc.,
The basic format of hCard is to use vCard object/property names in lower-case for class names, and to map the nesting of vCard objects directly into nested XHTML elements.
For example, Here [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=6&subd=rkutti&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://microformats.org/wiki/Main_Page" target="_blank">Microformats</a> are tiny little markup definitions built on top of, usually, HTML or XHTML.</p>
<p>The available microformats are <a href="http://microformats.org/wiki/hcalendar" target="_blank">hCalendar</a>, <a href="http://microformats.org/wiki/hreview">hReview</a>, <a href="http://microformats.org/wiki/hcard" target="_blank">hCard</a>, <a href="http://microformats.org/wiki/rel-license" target="_blank">RelLicense</a>, <a href="http://microformats.org/wiki/rel-tag" target="_blank">RelTag</a>, <a href="http://microformats.org/wiki/XFN" target="_blank">XFN Format</a> etc.,</p>
<p>The basic format of <a href="http://microformats.org/wiki/hcard" target="_blank">hCard</a> is to use vCard object/property names in lower-case for class names, and to map the nesting of vCard objects directly into nested XHTML elements.</p>
<p>For example, Here is a sample vCard</p>
<p>BEGIN:VCARD<br />
VERSION:3.0<br />
FN:Jeffrey Thomas<br />
END:VCARD</p>
<p>and an equivalent in literal hCard:<br />
&lt; p class=&#8221;vcard&#8221;&gt;   &lt; span class=&#8221;fn&#8221;&gt;Jeffrey Thomas &lt; \span &gt; &lt; \ p&gt;</p>
<p>There are several ruby parser for parsing this microformats to mention a few like <a href="http://mofo.rubyforge.org/" target="_blank">mofo</a>, <a href="http://code.whytheluckystiff.net/hpricot/" target="_blank">hpricot</a> etc</p>
<p>Check the <a href="http://microformats.org/wiki/Main_Page" target="_blank">microformats wiki</a> for further details.</p>
<p><strong>Importance of Microformats</strong></p>
<p>Helps in &#8211; Aggregation Sites and  Sharing Information with a Specific Community</p>
<p>You can also get more information from this <a href="http://blog.mozilla.com/faaborg/2006/12/11/microformats-part-0-introduction" target="_blank">blog</a> about microformats and how websites using this.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/rkutti.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/rkutti.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rkutti.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rkutti.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rkutti.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rkutti.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rkutti.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rkutti.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rkutti.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rkutti.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rkutti.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rkutti.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rkutti.wordpress.com&blog=1645502&post=6&subd=rkutti&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://rkutti.wordpress.com/2007/12/10/microformats/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/84b2609fa130eb5d7ed73779534ee1a4?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rkutti</media:title>
		</media:content>
	</item>
	</channel>
</rss>