<?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>My explorations in rails</title>
	<atom:link href="http://satyaonrails.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://satyaonrails.wordpress.com</link>
	<description>Stuff thats untaught</description>
	<lastBuildDate>Wed, 05 May 2010 19:35:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='satyaonrails.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>My explorations in rails</title>
		<link>http://satyaonrails.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://satyaonrails.wordpress.com/osd.xml" title="My explorations in rails" />
	<atom:link rel='hub' href='http://satyaonrails.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Partials every-where</title>
		<link>http://satyaonrails.wordpress.com/2010/03/03/partials-every-where/</link>
		<comments>http://satyaonrails.wordpress.com/2010/03/03/partials-every-where/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 11:57:54 +0000</pubDate>
		<dc:creator>chintusatya</dc:creator>
				<category><![CDATA[Partials]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[render]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://satyaonrails.wordpress.com/?p=57</guid>
		<description><![CDATA[Using partials in XML Builder files<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=57&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi everybody,</p>
<p>Partials are not limited to be used for HTML rendering.</p>
<p>They can be used for XML too.</p>
<p>Here is an example file ( _details.builder )<br />
  xml.name user.name<br />
  xml.gender user.gender<br />
  xml.age user.age</p>
<p>This can be used in another regular builder file as follows:<br />
  xml.instruct! : xml, :version=&gt;&#8221;1.0&#8243;<br />
  xml.users {<br />
    for user in users<br />
      xml &lt;&#8221;users/details&#8221; , :locals=&gt;{:user=&gt;user})<br />
    end<br />
  }</p>
<p>Hope, this comes handy <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satyaonrails.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satyaonrails.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satyaonrails.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satyaonrails.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satyaonrails.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satyaonrails.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satyaonrails.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satyaonrails.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satyaonrails.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satyaonrails.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satyaonrails.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satyaonrails.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satyaonrails.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satyaonrails.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=57&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satyaonrails.wordpress.com/2010/03/03/partials-every-where/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7379d033523d1963a64f38fe88fa97e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chintu</media:title>
		</media:content>
	</item>
		<item>
		<title>mysqldump multiple/selected tables</title>
		<link>http://satyaonrails.wordpress.com/2009/06/23/mysqldump-multiple-orselected-tables/</link>
		<comments>http://satyaonrails.wordpress.com/2009/06/23/mysqldump-multiple-orselected-tables/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 04:27:26 +0000</pubDate>
		<dc:creator>chintusatya</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[limited mysqldump]]></category>
		<category><![CDATA[mysql backup]]></category>
		<category><![CDATA[mysql dump]]></category>
		<category><![CDATA[mysql dump selected tables]]></category>

		<guid isPermaLink="false">http://satyaonrails.wordpress.com/?p=53</guid>
		<description><![CDATA[This post explains how to dump selected tables only. The actual syntax being: mysqldump [ -u ] DATABASE_NAME [TABLES_LIST] &#62; FILE_NAME So, to dump the entire database use, mysqldump -u USER_NAME DATABASE_NAME &#62; FILE_NAME To dump only selected tables use, mysqldump -u USER_NAME DATABASE_NAME TABLE_1 TABLE_3 TABLE_4 TABLE_9 &#62; FILE_NAME<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=53&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post explains how to dump selected tables only.<br />
The actual syntax being:<br />
<code>mysqldump [ -u  ] DATABASE_NAME [TABLES_LIST] &gt; FILE_NAME</code></p>
<p>So, to dump the entire database use,<br />
<code>mysqldump -u USER_NAME DATABASE_NAME &gt; FILE_NAME</code></p>
<p>To dump only selected tables use,<br />
<code>mysqldump -u USER_NAME DATABASE_NAME TABLE_1 TABLE_3 TABLE_4 TABLE_9 &gt; FILE_NAME</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satyaonrails.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satyaonrails.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satyaonrails.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satyaonrails.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satyaonrails.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satyaonrails.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satyaonrails.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satyaonrails.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satyaonrails.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satyaonrails.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satyaonrails.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satyaonrails.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satyaonrails.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satyaonrails.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=53&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satyaonrails.wordpress.com/2009/06/23/mysqldump-multiple-orselected-tables/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7379d033523d1963a64f38fe88fa97e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chintu</media:title>
		</media:content>
	</item>
		<item>
		<title>pidgin yahoo login solution</title>
		<link>http://satyaonrails.wordpress.com/2009/06/22/pidgin-yahoo-login-solution/</link>
		<comments>http://satyaonrails.wordpress.com/2009/06/22/pidgin-yahoo-login-solution/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 04:19:48 +0000</pubDate>
		<dc:creator>chintusatya</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[pidgin yahoo]]></category>
		<category><![CDATA[pidgin yahoo login]]></category>

		<guid isPermaLink="false">http://satyaonrails.wordpress.com/?p=51</guid>
		<description><![CDATA[Recently there has been a pidgin-yahoo connect/login issue. Had to connect thru yahoo-web-messenger for two days until one of my friend figured out, probably from another web source. The fix is : All you need to do is add a line at the end of /etc/hosts file. The line is : 66.163.181.170 scs.msg.yahoo.com vim /etc/hosts [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=51&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently there has been a pidgin-yahoo connect/login issue.<br />
Had to connect thru yahoo-web-messenger for two days until one of my friend figured out, probably from another web source.<br />
The fix is :</p>
<p>All you need to do is add a line at the end of /etc/hosts file.<br />
The line is :<br />
66.163.181.170 scs.msg.yahoo.com</p>
<p><code><br />
vim /etc/hosts<br />
66.163.181.170 scs.msg.yahoo.com</p>
<p></code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satyaonrails.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satyaonrails.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satyaonrails.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satyaonrails.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satyaonrails.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satyaonrails.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satyaonrails.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satyaonrails.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satyaonrails.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satyaonrails.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satyaonrails.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satyaonrails.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satyaonrails.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satyaonrails.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=51&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satyaonrails.wordpress.com/2009/06/22/pidgin-yahoo-login-solution/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7379d033523d1963a64f38fe88fa97e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chintu</media:title>
		</media:content>
	</item>
		<item>
		<title>Mysql gem installation fix in rails</title>
		<link>http://satyaonrails.wordpress.com/2009/06/18/mysql-gem-installation-fix-in-rails/</link>
		<comments>http://satyaonrails.wordpress.com/2009/06/18/mysql-gem-installation-fix-in-rails/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 08:00:55 +0000</pubDate>
		<dc:creator>chintusatya</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://satyaonrails.wordpress.com/?p=47</guid>
		<description><![CDATA[Today when i was trying to install mysql gem on the rails 2.2.2 + ruby 1.8.6 + gem 1.2.0 on FEDORA, i had the following error: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Building native extensions. This could take a while&#8230; ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb install mysql — —with-mysql-config=/usr/local/mysql/bin/mysql_config checking for mysql_query() [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=47&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today when i was trying to install mysql gem on the rails 2.2.2 + ruby 1.8.6 + gem 1.2.0 on FEDORA, i had the following error:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Building native extensions.  This could take a while&#8230;<br />
ERROR:  Error installing mysql:<br />
	ERROR: Failed to build gem native extension.</p>
<p>/usr/bin/ruby extconf.rb install mysql — —with-mysql-config=/usr/local/mysql/bin/mysql_config<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lm&#8230; yes<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lz&#8230; yes<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lsocket&#8230; no<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
checking for main() in -lnsl&#8230; yes<br />
checking for mysql_query() in -lmysqlclient&#8230; no<br />
*** extconf.rb failed ***<br />
Could not create Makefile due to some reason, probably lack of<br />
necessary libraries and/or headers.  Check the mkmf.log file for more<br />
details.  You may need configuration options.</p>
<p>Provided configuration options:<br />
	&#8211;with-opt-dir<br />
	&#8211;without-opt-dir<br />
	&#8211;with-opt-include<br />
	&#8211;without-opt-include=${opt-dir}/include<br />
	&#8211;with-opt-lib<br />
	&#8211;without-opt-lib=${opt-dir}/lib<br />
	&#8211;with-make-prog<br />
	&#8211;without-make-prog<br />
	&#8211;srcdir=.<br />
	&#8211;curdir<br />
	&#8211;ruby=/usr/bin/ruby<br />
	&#8211;with-mysql-config<br />
	&#8211;without-mysql-config<br />
	&#8211;with-mysql-dir<br />
	&#8211;without-mysql-dir<br />
	&#8211;with-mysql-include<br />
	&#8211;without-mysql-include=${mysql-dir}/include<br />
	&#8211;with-mysql-lib<br />
	&#8211;without-mysql-lib=${mysql-dir}/lib<br />
	&#8211;with-mysqlclientlib<br />
	&#8211;without-mysqlclientlib<br />
	&#8211;with-mlib<br />
	&#8211;without-mlib<br />
	&#8211;with-mysqlclientlib<br />
	&#8211;without-mysqlclientlib<br />
	&#8211;with-zlib<br />
	&#8211;without-zlib<br />
	&#8211;with-mysqlclientlib<br />
	&#8211;without-mysqlclientlib<br />
	&#8211;with-socketlib<br />
	&#8211;without-socketlib<br />
	&#8211;with-mysqlclientlib<br />
	&#8211;without-mysqlclientlib<br />
	&#8211;with-nsllib<br />
	&#8211;without-nsllib<br />
	&#8211;with-mysqlclientlib<br />
	&#8211;without-mysqlclientlib</p>
<p>Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.<br />
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out<br />
ERROR:  could not find gem — locally or in a repository<br />
ERROR:  could not find gem —with-mysql-config=/usr/local/mysql/bin/mysql_config locally or in a repository</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>The fix for it is:<br />
<code>gem install mysql -- --with-mysql-config=/usr/bin/mysql_config</code></p>
<p>Tats it. Its working fine for me.<br />
Hope it works 4 oder folks too.</p>
<p>If not, it means that a library called mysql-devel is missing.</p>
<p>So, install it by &#8220;sudo yum install mysql-devel&#8221; or &#8220;sudo apt-get install libmysql++-dev&#8221;<br />
And then, install the mysql-gem. This should for sure fix it.</p>
<p>For further info, checkout: <a href="http://wiki.rubyonrails.org/database-support/mysql">Rails Mysql wiki</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satyaonrails.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satyaonrails.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satyaonrails.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satyaonrails.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satyaonrails.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satyaonrails.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satyaonrails.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satyaonrails.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satyaonrails.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satyaonrails.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satyaonrails.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satyaonrails.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satyaonrails.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satyaonrails.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=47&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satyaonrails.wordpress.com/2009/06/18/mysql-gem-installation-fix-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7379d033523d1963a64f38fe88fa97e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chintu</media:title>
		</media:content>
	</item>
		<item>
		<title>Making python widgets work in KDE</title>
		<link>http://satyaonrails.wordpress.com/2009/06/17/making-python-widgets-work-in-kde/</link>
		<comments>http://satyaonrails.wordpress.com/2009/06/17/making-python-widgets-work-in-kde/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 13:38:14 +0000</pubDate>
		<dc:creator>chintusatya</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Widgets]]></category>

		<guid isPermaLink="false">http://satyaonrails.wordpress.com/?p=41</guid>
		<description><![CDATA[Today i have installed KDE on my fedora machine and am having all d fun at its UI and sexy look. Every love story has an obvious villain, and in my case when i was installing some WIDGETS, especially python based, like: 1) Now do this 2) Gmail Notifier I had this error: missing python [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=41&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today i have installed KDE on my fedora machine and am having all d fun at its UI and sexy look.<br />
Every love story has an obvious villain, and in my case when i was installing some WIDGETS, especially python based, like:<br />
1) Now do this<br />
2) Gmail Notifier<br />
I had this error:<br />
<strong>missing python script-engine errors</strong>.<br />
On looking around the web, i could this solution:<br />
All u gotta do is : yum install kdebase-workspace-python-applet<br />
Daz it. </p>
<p>For other Linux-flavours, the solutions are available at : <a href="http://www.kde-look.org/content/show.php?content=101229&amp;forumpage=2&amp;PHPSESSID=cae">KDE-LOOK</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satyaonrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satyaonrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satyaonrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satyaonrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satyaonrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satyaonrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satyaonrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satyaonrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satyaonrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satyaonrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satyaonrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satyaonrails.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satyaonrails.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satyaonrails.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=41&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satyaonrails.wordpress.com/2009/06/17/making-python-widgets-work-in-kde/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7379d033523d1963a64f38fe88fa97e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chintu</media:title>
		</media:content>
	</item>
		<item>
		<title>Undefining class at runtime</title>
		<link>http://satyaonrails.wordpress.com/2009/06/16/undefining-class-at-runtime/</link>
		<comments>http://satyaonrails.wordpress.com/2009/06/16/undefining-class-at-runtime/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 06:58:07 +0000</pubDate>
		<dc:creator>chintusatya</dc:creator>
				<category><![CDATA[Model]]></category>
		<category><![CDATA[class_eval]]></category>
		<category><![CDATA[Object]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[remove_const]]></category>
		<category><![CDATA[ROR]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[runtime]]></category>

		<guid isPermaLink="false">http://satyaonrails.wordpress.com/?p=32</guid>
		<description><![CDATA[This post explains undefining the class at runtime. Im not gonna explain the live-cases where this might be used. Ask Uncle Google for that. Lets jump in at d code directly. When u create a new class, say &#8220;Person&#8221;, two things happen: A new object of type(class) Class is instantiated. A new constant called Person [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=32&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post explains undefining the class at runtime.</p>
<p>Im not gonna explain the live-cases where this might be used. Ask Uncle Google for that.</p>
<p>Lets jump in at d code directly.</p>
<p>When u create a new class, say &#8220;Person&#8221;, two things happen:</p>
<ol>
<li>A new object of type(class) Class is instantiated.</li>
<li>A new constant called Person will be instantiated and will hold the value of the class-object created above.</li>
</ol>
<p><strong>Proof</strong>: Class Person;end;</p>
<p>Try, Person.class #=&gt; Class. This means that the Person holds a value which is of class Class. (1 is proved).</p>
<p>Try, Person = 123 #=&gt; Curses saying, Person is already initialized, which means Person is a constant. (2 is proved).</p>
<p>Now, All the constants(Person) and other are silently ducked into the class Object.</p>
<p><strong>Proof:</strong> Object.class_eval{Person} #=&gt; Person Class</p>
<p>So, we should understand by now that the newly created class Person resides as a constant of the class Object.</p>
<p>So if we could somehow remove that constant, then the class Person will also be removed.</p>
<p>There is a method called remove_const for the class Object.</p>
<p>So, try Object.remove_const : Person #=&gt; Curses, NoMethodError: private method `remove_const&#8217; called for Object:Class</p>
<p>This is becoz, remove_const is a private method of Object class.</p>
<p>So the worry now is, how to invoke a private method.</p>
<p>We have two solutions:</p>
<ol>
<li>Object.send(:remove_const , : Person)</li>
<li>Object.class_eval{remove_const : Person}</li>
</ol>
<p>Now try, Person.new. # Curses, uninitialized constant Person</p>
<p>Voila, job done. Very rarely does an ERROR MESSAGE makes us feel happy. Well, kind of an article.</p>
<p>You can learn much about class_eval from this very good article by <a class="wp-caption-dd" title="What is class_eval" href="http://www.khelll.com/blog/ruby/ruby-reflection/" target="_blank">Khaled</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satyaonrails.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satyaonrails.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satyaonrails.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satyaonrails.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satyaonrails.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satyaonrails.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satyaonrails.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satyaonrails.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satyaonrails.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satyaonrails.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satyaonrails.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satyaonrails.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satyaonrails.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satyaonrails.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=32&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satyaonrails.wordpress.com/2009/06/16/undefining-class-at-runtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7379d033523d1963a64f38fe88fa97e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chintu</media:title>
		</media:content>
	</item>
		<item>
		<title>add attribute at runtime</title>
		<link>http://satyaonrails.wordpress.com/2009/06/16/add-attribute-at-runtime/</link>
		<comments>http://satyaonrails.wordpress.com/2009/06/16/add-attribute-at-runtime/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 06:23:47 +0000</pubDate>
		<dc:creator>chintusatya</dc:creator>
				<category><![CDATA[Model]]></category>
		<category><![CDATA[attr_accessor]]></category>
		<category><![CDATA[class_eval]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ROR]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[runtime]]></category>

		<guid isPermaLink="false">http://satyaonrails.wordpress.com/?p=28</guid>
		<description><![CDATA[I&#8217;m all excited abt this post. Coz this is something i learnt just now, and consider it my best learning till now in RUBY. Q: How to add attributes to a class at runtime? A: class Class def new_attr (attr_name) class_eval {attr_accessor :"#{attr_name}"} end end class_eval : Evaluates a string or a block in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=28&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m all excited abt this post.</p>
<p>Coz this is something i learnt just now, and consider it my best learning till now in RUBY.</p>
<p>Q: How to add attributes to a class at runtime?</p>
<p>A:<br />
<code><br />
class Class<br />
def new_attr (attr_name)</p>
<p>class_eval {attr_accessor :"#{attr_name}"}<br />
end<br />
end<br />
</code></p>
<p>class_eval : Evaluates a string or a block in the context of the receiver, here the class.</p>
<p>Explanation:</p>
<p>1) We defined a new method to the CLASS called new_attr, which is intended to add new attributes at runtime.</p>
<p>2) This method needs the name of the new attribute to be passed.</p>
<p>3) In the definition, it calls class_eval, which means &#8220;DO SOMETHING AT THE CLASS LEVEL&#8221;</p>
<p>4) What to do is specified in the block after the class_eval, which says : attr_accessor &#8220;#{attr_name}&#8221;, which will become attr_accessor :name when we call new_attr(&#8216;name&#8217;).</p>
<p>5) We know that attr_accessor is rails syntactic sugar to create the a specific instance variable, and its set/get (read/write) methods. So here, when we call new_attr(&#8216;name&#8217;), its creating a new instance variable (@name) and 2 new methods &#8216;name&#8221; and &#8220;name=&#8221;.</p>
<p>Try this;</p>
<p>class Person; end;</p>
<p>This creates a bare class Person.</p>
<p>p = Person.new</p>
<p>Try, p.name, it throws an error cursing &#8220;Undefined method name&#8221;.</p>
<p>Its fairly expected coz, Person has no attribute called name.</p>
<p>Now, say Person.new_attr(&#8216;name&#8217;)</p>
<p>now try, p.name, it will not curse you.</p>
<p>To check, try Person.singleton_methods.include?(&#8220;name&#8221;)</p>
<p>This says TRUE.</p>
<p>Hope this article comes handy.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satyaonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satyaonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satyaonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satyaonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satyaonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satyaonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satyaonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satyaonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satyaonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satyaonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satyaonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satyaonrails.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satyaonrails.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satyaonrails.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=28&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satyaonrails.wordpress.com/2009/06/16/add-attribute-at-runtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7379d033523d1963a64f38fe88fa97e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chintu</media:title>
		</media:content>
	</item>
		<item>
		<title>Rails multiple databases</title>
		<link>http://satyaonrails.wordpress.com/2009/05/27/rails-multiple-databases/</link>
		<comments>http://satyaonrails.wordpress.com/2009/05/27/rails-multiple-databases/#comments</comments>
		<pubDate>Wed, 27 May 2009 12:02:14 +0000</pubDate>
		<dc:creator>chintusatya</dc:creator>
				<category><![CDATA[Model]]></category>
		<category><![CDATA[databases]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[multiple_database]]></category>
		<category><![CDATA[multiple_databases]]></category>

		<guid isPermaLink="false">http://satyaonrails.wordpress.com/?p=23</guid>
		<description><![CDATA[Consider the case where some tables exist in database A and the others in B. Depending on the table under question, we have to connect to the specific Database and query it. Supposing you have two databases say A,B. Now you need configurations for both of them in database.yml (AS each RAILS configuration can point [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=23&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Consider the case where some tables exist in database A and the others in B. Depending on the table under question, we have to connect to the specific Database and query it.</p>
<p>Supposing you have two databases say A,B.<br />
Now you need configurations for both of them in database.yml (AS each RAILS configuration can point only one DATABASE)<br />
let the development environment point database &#8220;A&#8221;<br />
So create another environment called &#8220;dummy&#8221; point at database &#8220;B&#8221;</p>
<p>development:<br />
adapter  : mysql<br />
username : user-name<br />
password : password<br />
database : A</p>
<p>dummy:<br />
adapter  : mysql<br />
username : user-name<br />
password : password<br />
database : B</p>
<p>Consider two models:<br />
a) Animal &#8211; table = animals in Database A.<br />
b) Person &#8211; table &#8211; persons in Database B.</p>
<p>Usually the classes will be like follows:</p>
<p>class Person &lt;&lt; ActiveRecord::Base<br />
&#8230;&#8230;&#8230;<br />
end</p>
<p>class Animal &lt;&lt; ActiveRecord::Base<br />
&#8230;&#8230;&#8230;<br />
end</p>
<p>Now for Rails to know that it has to connect to DATABASE B when it needs to fetch data from Table &#8220;persons&#8221;, you hust have to add a line in the Person model. i.e:<br />
establish_connection :dummy<br />
where,<br />
establish_connection  &#8211; method which connects to the Database specified in the environment<br />
dummy &#8211; environment name</p>
<p>Thats it.<br />
Try the following in console:</p>
<p>&gt;&gt; Animal.connected? #=&gt; false<br />
&gt;&gt; Animal<br />
&gt;&gt; Animal.connected? #=&gt; true</p>
<p>&gt;&gt; Person.connected? #=&gt; false<br />
&gt;&gt; Person<br />
&gt;&gt; Person.connected? #=&gt; true</p>
<p>connected? is the method which returns whether or not RAILS has connected with the DATABASE in which the table related to this MODEL exists.<br />
Initailly when the RAILS application loads (CONSOLE starts), it has no DB connections.<br />
When u say Animal, it fetches the schema of animals table by connecting to Database A.<br />
So, after that , if u say Animal.connect? , it checks whether or not RAILS has connected to the DB in which the table related to Aniaml(animals) exists.<br />
As it has already connected in the above step, the answer is TRUE.</p>
<p>Same is the case with Person.</p>
<p>The point to observe is that, Before working on the Model, Rails executes &#8220;establish_connection&#8221; method.<br />
If it is not specified in the model, it connects to d DB as specified in the current ENVIRONMENT, if its not already connected.</p>
<p>But if we want o connect to a different DB as in the case with Person model, we override this, by specifying the DATABASE NAME to be connected by specifying the environment name in the &#8220;establish_connection&#8221; as the 1&#8242;st line of the Class.</p>
<p>Hope this is useful.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satyaonrails.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satyaonrails.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satyaonrails.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satyaonrails.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satyaonrails.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satyaonrails.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satyaonrails.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satyaonrails.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satyaonrails.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satyaonrails.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satyaonrails.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satyaonrails.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satyaonrails.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satyaonrails.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=23&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satyaonrails.wordpress.com/2009/05/27/rails-multiple-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7379d033523d1963a64f38fe88fa97e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chintu</media:title>
		</media:content>
	</item>
		<item>
		<title>rake migrate in production environment</title>
		<link>http://satyaonrails.wordpress.com/2009/05/27/rake-migrate-in-production-environment/</link>
		<comments>http://satyaonrails.wordpress.com/2009/05/27/rake-migrate-in-production-environment/#comments</comments>
		<pubDate>Wed, 27 May 2009 09:57:14 +0000</pubDate>
		<dc:creator>chintusatya</dc:creator>
				<category><![CDATA[tasks]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[migrate]]></category>
		<category><![CDATA[rake]]></category>

		<guid isPermaLink="false">http://satyaonrails.wordpress.com/?p=18</guid>
		<description><![CDATA[This is the code in the command line to run the database migrations in Production environment, infact any defined environment in database.yml rake db:migrate RAILS_ENV=&#8221;name_of_the_environment&#8221; Keep in mind that, the file called name_of_the_environment.rb should already be available in config/environments.rb This can be just a copy of the existing files like config/development.rb<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=18&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the code in the command line to run the database migrations in Production environment, infact any defined environment in database.yml</p>
<p><strong>rake db:migrate</strong> <strong>RAILS_ENV=&#8221;name_of_the_environment&#8221;</strong><br />
Keep in mind that, the file called name_of_the_environment.rb should already be available in config/environments.rb</p>
<p>This can be just a copy of the existing files like config/development.rb</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satyaonrails.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satyaonrails.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satyaonrails.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satyaonrails.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satyaonrails.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satyaonrails.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satyaonrails.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satyaonrails.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satyaonrails.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satyaonrails.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satyaonrails.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satyaonrails.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satyaonrails.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satyaonrails.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=18&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satyaonrails.wordpress.com/2009/05/27/rake-migrate-in-production-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7379d033523d1963a64f38fe88fa97e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chintu</media:title>
		</media:content>
	</item>
		<item>
		<title>twitter user tweets</title>
		<link>http://satyaonrails.wordpress.com/2009/05/13/twitter-user-tweets/</link>
		<comments>http://satyaonrails.wordpress.com/2009/05/13/twitter-user-tweets/#comments</comments>
		<pubDate>Wed, 13 May 2009 18:02:09 +0000</pubDate>
		<dc:creator>chintusatya</dc:creator>
				<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Gems]]></category>
		<category><![CDATA[tweets]]></category>

		<guid isPermaLink="false">http://satyaonrails.wordpress.com/?p=15</guid>
		<description><![CDATA[The following code describes the way we can fetch the tweets of the user. I just came across this wonderful GEM to integrate TWITTER in rails. This is called Twitter4r Its API is available at API Its such an easy gem to use. I thought i shall throw the steps needed for the most regular [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=15&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The following code describes the way we can fetch the tweets of the user.</p>
<p>I just came across this wonderful GEM to integrate TWITTER in rails.<br />
This is called <a class="wp-caption" title="twitter4r home page" href="http://twitter4r.rubyforge.org/">Twitter4r</a></p>
<p>Its API is available at <a class="wp-caption" title="Twitter4r - API" href="http://twitter4r.rubyforge.org/rdoc/">API</a></p>
<p>Its such an easy gem to use. I thought i shall throw the steps needed for the most regular task needed&#8230;.Getting the tweets of a particular user.</p>
<p>Install twitter4r.</p>
<p>require &#8220;twitter&#8221;</p>
<p>twitter = Twitter::Client.new(:login=&gt;&#8221;login_name&#8221;,:password=&gt;&#8221;password&#8221;)tweets = twitter.timeline_for(:user,:id=&gt;&#8221;user_name_of_user_whose_tweets_you_need&#8221;)<br />
The result is an array<br />
The important attributes of this array-elements are:<br />
@text &#8211; The text of this tweet<br />
@user &#8211; The user who posted this tweet<br />
@user.name &#8211; name of the user who posted this tweet.<br />
@user.screen_name &#8211; screen name of the user who posted this tweet</p>
<p>Hope this is useful.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/satyaonrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/satyaonrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/satyaonrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/satyaonrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/satyaonrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/satyaonrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/satyaonrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/satyaonrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/satyaonrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/satyaonrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/satyaonrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/satyaonrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/satyaonrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/satyaonrails.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=satyaonrails.wordpress.com&amp;blog=7736311&amp;post=15&amp;subd=satyaonrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://satyaonrails.wordpress.com/2009/05/13/twitter-user-tweets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7379d033523d1963a64f38fe88fa97e1?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">chintu</media:title>
		</media:content>
	</item>
	</channel>
</rss>
