<?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>Rushabhhathi&#039;s Blog</title>
	<atom:link href="http://rushabhthathi.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rushabhthathi.wordpress.com</link>
	<description>This is a world where Impossible is spelt &#34; I M Possible &#34; and every living being is special!!!</description>
	<lastBuildDate>Tue, 10 Jan 2012 06:07:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rushabhthathi.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Rushabhhathi&#039;s Blog</title>
		<link>http://rushabhthathi.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rushabhthathi.wordpress.com/osd.xml" title="Rushabhhathi&#039;s Blog" />
	<atom:link rel='hub' href='http://rushabhthathi.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Add rich text editor in a rails app</title>
		<link>http://rushabhthathi.wordpress.com/2011/08/13/add-rich-text-editor-in-a-rails-app/</link>
		<comments>http://rushabhthathi.wordpress.com/2011/08/13/add-rich-text-editor-in-a-rails-app/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 18:06:51 +0000</pubDate>
		<dc:creator>R</dc:creator>
				<category><![CDATA[Rails app]]></category>

		<guid isPermaLink="false">http://rushabhthathi.wordpress.com/?p=229</guid>
		<description><![CDATA[Hi, I just came across a requirement to add a rich text editor in my web application made in rails. I used TinyMCE for this. I loved the small js based editor not because of the features but because of the customization options it provides. Here I show u a simple way to integrate TinyMCE [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=229&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,<br />
I just came across a requirement to add a rich text editor in my web application made in rails.<br />
I used <a title="TinyMCE" href="http://www.tinymce.com">TinyMCE</a> for this.</p>
<p>I loved the small js based editor not because of the features but because of the customization options it provides.</p>
<p>Here I show u a simple way to integrate TinyMCE with your rails app.</p>
<p>(Please note that this is applicable for all as its simple JS code)</p>
<p>The steps are:</p>
<ol>
<li>Download the latest version of TinyMCE from <a title="here" href="http://www.tinymce.com/download/download.php" target="_blank">here</a></li>
<li>Extract the tinymce folder and put it in Rails.root/public/javascripts folder.</li>
<li>The code in application.html.erb is:</li>
</ol>
<blockquote><p>&lt;%= stylesheet_link_tag :all %&gt;<br />
&lt;%= javascript_include_tag :defaults %&gt;<br />
&lt;%= javascript_include_tag &#8216;tiny_mce/tiny_mce&#8217; %&gt;</p>
<p>&lt;script language=&#8221;javascript&#8221; type=&#8221;text/javascript&#8221;&gt;<br />
tinyMCE.init({<br />
mode : &#8220;textareas&#8221;,<br />
theme : &#8220;advanced&#8221;,<br />
convert_urls : false,<br />
plugins : &#8220;emotions,preview,fullscreen,iespell,table,xhtmlxtras,save&#8221;,<br />
theme_advanced_buttons1 : &#8220;bold,    italic,    underline,    strikethrough,    justifyleft,    justifycenter,    justifyright,    justifyfull,    bullist,    numlist,    outdent,    indent,    cut,    copy,    paste,    undo,    redo,    link,    unlink,    image,    cleanup,    help,    code,    hr,    removeformat,    formatselect,    fontselect,    fontsizeselect,    styleselect,    sub,    sup,    forecolor,    backcolor,    forecolorpicker,    backcolorpicker,   charmap,    visualaid,    anchor,    newdocument,    blockquote,    separator &#8220;,<br />
theme_advanced_buttons2 : &#8220;    tablecontrols,   table,    row_props,    cell_props,    delete_col,    delete_row,    col_after,    col_before,    row_after,    row_before,    split_cells,    merge_cells&#8221;,<br />
theme_advanced_buttons3 : &#8220;    cite,    abbr,    acronym,    ins,    del,   attribs&#8221;,<br />
theme_advanced_toolbar_location : &#8220;top&#8221;,<br />
theme_advanced_toolbar_align : &#8220;left&#8221;,<br />
extended_valid_elements : &#8220;a[name|href|target|title|onclick],img[class|src|     border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name], hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]&#8220;,</p>
<p>content_css : &#8220;/custom_content.css&#8221;,<br />
theme_advanced_font_sizes: &#8220;10px,12px,13px,14px,16px,18px,20px&#8221;,<br />
font_size_style_values : &#8220;10px,12px,13px,14px,16px,18px,20px&#8221;</p>
<p>});<br />
&lt;/script&gt;</p></blockquote>
<p>The code in the script tags basically initializes the tinymce.</p>
<p>Here you can customize your editor.</p>
<p>I have made some customizations like the defaukt font size is now 20pt.</p>
<p>There are lot of plugins and buttons which one can use.</p>
<p><a title="Here" href="http://www.tinymce.com/wiki.php/TinyMCE" target="_blank">Here</a> is the link for documentation.</p>
<p><a title="Here." href="http://www.tinymce.com/wiki.php/Buttons/controls" target="_blank">Here </a>is the link for available plugins and buttons.</p>
<p>Here is a small screen shot of my editor which I got using the above code.</p>
<p>Note that the code in my views does not change.</p>
<p>Its still</p>
<blockquote><p> &lt;%= f.text_area :content ,:cols=&gt;&#8221;50&#8243;,:rows=&gt;&#8221;10&#8243; %&gt;</p></blockquote>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><a href="http://rushabhthathi.files.wordpress.com/2011/08/editor.png"><br />
</a><a href="http://rushabhthathi.files.wordpress.com/2011/08/editor1.png"><img class="aligncenter size-full wp-image-231" title="editor" src="http://rushabhthathi.files.wordpress.com/2011/08/editor1.png?w=594&#038;h=264" alt="" width="594" height="264" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<br />Filed under: <a href='http://rushabhthathi.wordpress.com/category/rails-app/'>Rails app</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rushabhthathi.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rushabhthathi.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rushabhthathi.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rushabhthathi.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rushabhthathi.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rushabhthathi.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rushabhthathi.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rushabhthathi.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rushabhthathi.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rushabhthathi.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rushabhthathi.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rushabhthathi.wordpress.com/229/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rushabhthathi.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rushabhthathi.wordpress.com/229/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=229&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rushabhthathi.wordpress.com/2011/08/13/add-rich-text-editor-in-a-rails-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/878d36f973ac21d4295c5fd6b448a1ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rushabhthegodfather</media:title>
		</media:content>

		<media:content url="http://rushabhthathi.files.wordpress.com/2011/08/editor1.png" medium="image">
			<media:title type="html">editor</media:title>
		</media:content>
	</item>
		<item>
		<title>Nice JQuery Plugin</title>
		<link>http://rushabhthathi.wordpress.com/2011/08/13/nice-jquery-plugin/</link>
		<comments>http://rushabhthathi.wordpress.com/2011/08/13/nice-jquery-plugin/#comments</comments>
		<pubDate>Sat, 13 Aug 2011 17:01:04 +0000</pubDate>
		<dc:creator>R</dc:creator>
				<category><![CDATA[Leanings]]></category>
		<category><![CDATA[Rails app]]></category>

		<guid isPermaLink="false">http://rushabhthathi.wordpress.com/?p=226</guid>
		<description><![CDATA[I recently found out a very nice JQuery plugin. http://dipi-graphics.com/labs/6/NavDock-jQuery-Plugin.html I havent tried it yet but will try it soon.. From the demo&#8230;its worth a shot !! Filed under: Leanings, Rails app<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=226&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently found out a very nice JQuery plugin.</p>
<blockquote><p>http://dipi-graphics.com/labs/6/NavDock-jQuery-Plugin.html</p></blockquote>
<p>I havent tried it yet but will try it soon..<br />
From the demo&#8230;its worth a shot !!</p>
<br />Filed under: <a href='http://rushabhthathi.wordpress.com/category/leanings/'>Leanings</a>, <a href='http://rushabhthathi.wordpress.com/category/rails-app/'>Rails app</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rushabhthathi.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rushabhthathi.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rushabhthathi.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rushabhthathi.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rushabhthathi.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rushabhthathi.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rushabhthathi.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rushabhthathi.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rushabhthathi.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rushabhthathi.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rushabhthathi.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rushabhthathi.wordpress.com/226/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rushabhthathi.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rushabhthathi.wordpress.com/226/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=226&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rushabhthathi.wordpress.com/2011/08/13/nice-jquery-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/878d36f973ac21d4295c5fd6b448a1ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rushabhthegodfather</media:title>
		</media:content>
	</item>
		<item>
		<title>Using Gradient in HTML using simple CSS</title>
		<link>http://rushabhthathi.wordpress.com/2011/08/12/using-gradient-in-html-using-simple-css/</link>
		<comments>http://rushabhthathi.wordpress.com/2011/08/12/using-gradient-in-html-using-simple-css/#comments</comments>
		<pubDate>Fri, 12 Aug 2011 07:53:31 +0000</pubDate>
		<dc:creator>R</dc:creator>
				<category><![CDATA[Rails app]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://rushabhthathi.wordpress.com/?p=223</guid>
		<description><![CDATA[In this post I show(after some googling) how to use gradients(color transitions) in your html using simple CSS. I am putting the CSS code below. This code can be pasted in the css file of your project. you have to create a div with id as &#8220;gradient&#8221;. Alternatively, you can paste this code in style [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=223&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In this post I show(after some googling) how to use gradients(color transitions) in your html using simple CSS.<br />
I am putting the CSS code below.<br />
This code can be pasted in the css file of your project.<br />
you have to create a div with id as &#8220;gradient&#8221;.<br />
Alternatively, you can paste this code in style compoenet of any element where you want the gradient effect.</p>
<p>the code is:</p>
<blockquote><p>/* For WebKit (Safari, Google Chrome etc) */<br />
		background: -webkit-gradient(linear, left top, left bottom, from(#000), to(#ff9900));<br />
		/* For Mozilla/Gecko (Firefox etc) */<br />
		background: -moz-linear-gradient(top, #000, #ff9900);<br />
		/* For Internet Explorer 5.5 &#8211; 7 */<br />
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#000, endColorstr=#ff9900);<br />
		/* For Internet Explorer 8 */<br />
		-ms-filter: &#8220;progid:DXImageTransform.Microsoft.gradient(startColorstr=#FF0000FF, endColorstr=#FFFFFFFF)&#8221;;
</p></blockquote>
<p>I am showing the preview of the effect which I got.<br />
**** One can change the colors by looking at the code above !!****</p>
<p><a href="http://rushabhthathi.files.wordpress.com/2011/08/box.png"><img src="http://rushabhthathi.files.wordpress.com/2011/08/box.png?w=594&#038;h=333" alt="" title="box" width="594" height="333" class="aligncenter size-full wp-image-224" /></a></p>
<br />Filed under: <a href='http://rushabhthathi.wordpress.com/category/rails-app/'>Rails app</a>, <a href='http://rushabhthathi.wordpress.com/category/ruby/'>Ruby</a>, <a href='http://rushabhthathi.wordpress.com/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rushabhthathi.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rushabhthathi.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rushabhthathi.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rushabhthathi.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rushabhthathi.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rushabhthathi.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rushabhthathi.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rushabhthathi.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rushabhthathi.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rushabhthathi.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rushabhthathi.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rushabhthathi.wordpress.com/223/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rushabhthathi.wordpress.com/223/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rushabhthathi.wordpress.com/223/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=223&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rushabhthathi.wordpress.com/2011/08/12/using-gradient-in-html-using-simple-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/878d36f973ac21d4295c5fd6b448a1ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rushabhthegodfather</media:title>
		</media:content>

		<media:content url="http://rushabhthathi.files.wordpress.com/2011/08/box.png" medium="image">
			<media:title type="html">box</media:title>
		</media:content>
	</item>
		<item>
		<title>Some Core Rails Helper for Ruby</title>
		<link>http://rushabhthathi.wordpress.com/2011/08/10/some-core-rails-helper-for-ruby/</link>
		<comments>http://rushabhthathi.wordpress.com/2011/08/10/some-core-rails-helper-for-ruby/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 13:14:39 +0000</pubDate>
		<dc:creator>R</dc:creator>
				<category><![CDATA[Rails app]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://rushabhthathi.wordpress.com/?p=220</guid>
		<description><![CDATA[The Core Extensions are ActiveSupport’s collection of extensions to Ruby’s core classes and modules. They are basic design patterns solving problems that are encountered often in Ruby. These methods are one level below the Rails API; they are the internal functions that Rails uses. Class:Array&#8211;&#62; &#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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Conversions core_ext/array/conversions.rb • Array#to_sentence joins the array’s elements and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=220&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The Core Extensions are ActiveSupport’s collection of extensions to Ruby’s core<br />
classes and modules. They are basic design patterns solving problems that are<br />
encountered often in Ruby. These methods are one level below the Rails API; they<br />
are the internal functions that Rails uses.</p>
<p>Class:Array&#8211;&gt;<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><strong>Conversions </strong><br />
<strong>core_ext/array/conversions.rb</strong><br />
• Array#to_sentence joins the array’s elements and converts to a string:<br />
%w(Larry Curly Moe).to_sentence # =&gt; &#8220;Larry, Curly, and Moe&#8221;</p>
<p>• Array#to_s(:db) collects an array of ActiveRecord objects (or other objects that<br />
respond to the id method) into a SQL-friendly string.</p>
<p>• Array#to_xml converts an array of ActiveRecord objects into XML. This is usually used<br />
to implement REST-style web services. It relies on the contained objects’ implementation<br />
of to_xml (such as ActiveRecord::XmlSerialization.to_xml).<br />
render <img src='http://s2.wp.com/wp-includes/images/smilies/icon_mad.gif' alt=':x' class='wp-smiley' /> ml =&gt; Product.find(:all).to_xml<br />
Note that render(:xml =&gt; &#8230;) and render(:json =&gt; &#8230;) are new synonyms for<br />
render(:text =&gt; &#8230;) that change the response’s MIME type appropriately.<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p><strong>Grouping </strong><br />
<strong>core_ext/array/grouping.rb</strong><br />
• Array#in_groups_of(size, fill_with) groups elements of an array into fixed-size groups:<br />
(1..8).to_a.in_groups_of(3) # =&gt; [[1, 2, 3], [4, 5, 6], [7, 8, nil]]<br />
(1..8).to_a.in_groups_of(3, 0) # =&gt; [[1, 2, 3], [4, 5, 6], [7, 8, 0]]<br />
(1..8).to_a.in_groups_of(3, false) # =&gt; [[1, 2, 3], [4, 5, 6], [7, 8]]</p>
<p>• Array#split splits an array on a value or the result of a block:<br />
(1..8).to_a.split(4) # =&gt; [[1, 2, 3], [5, 6, 7, 8]]<br />
(1..8).to_a.split {|i| i == 2} # =&gt; [[1], [3, 4, 5, 6, 7, 8]]</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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong><br />
Option processing</strong><br />
<strong> core_ext/array/extract_options.rb</strong></p>
<p>• Array#extract_options! removes and returns the last array item if it is a hash; otherwise,<br />
it returns an empty hash. This supports the common pattern of using a hash as<br />
the last argument to provide keyword arguments to a method:<br />
def example(*args)<br />
options = args.extract_options!<br />
&#8220;#{args.inspect} :: #{options.inspect}&#8221;<br />
end<br />
example 1 # =&gt; &#8220;[1] :: {}&#8221;<br />
example 1, 2 # =&gt; &#8220;[1, 2] :: {}&#8221;<br />
example 1, 2, :a =&gt; 3 # =&gt; &#8220;[1, 2] :: {:a=&gt;3}&#8221;</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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
<strong>Random selection</strong><br />
<strong> core_ext/array/random_access.rb</strong><br />
• Array#rand returns an element selected at random from the array:<br />
(1..10).map{ (1..10).to_a.rand } # =&gt; [2, 7, 7, 7, 7, 1, 10, 10, 2, 5]<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<br />Filed under: <a href='http://rushabhthathi.wordpress.com/category/rails-app/'>Rails app</a>, <a href='http://rushabhthathi.wordpress.com/category/ruby/'>Ruby</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rushabhthathi.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rushabhthathi.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rushabhthathi.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rushabhthathi.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rushabhthathi.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rushabhthathi.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rushabhthathi.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rushabhthathi.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rushabhthathi.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rushabhthathi.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rushabhthathi.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rushabhthathi.wordpress.com/220/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rushabhthathi.wordpress.com/220/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rushabhthathi.wordpress.com/220/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=220&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rushabhthathi.wordpress.com/2011/08/10/some-core-rails-helper-for-ruby/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/878d36f973ac21d4295c5fd6b448a1ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rushabhthegodfather</media:title>
		</media:content>
	</item>
		<item>
		<title>Programming Language</title>
		<link>http://rushabhthathi.wordpress.com/2011/08/09/programming-language/</link>
		<comments>http://rushabhthathi.wordpress.com/2011/08/09/programming-language/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 11:47:29 +0000</pubDate>
		<dc:creator>R</dc:creator>
				<category><![CDATA[Rails app]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://rushabhthathi.wordpress.com/?p=218</guid>
		<description><![CDATA[The primary purpose of source code should not be expressing implementation to a computer; it should be expressing meaning to people. Programming languages are an incredibly expressive and terse medium for the concepts programmers talk about. Proposals to make programming languages more English-like inevitably fail not because of poor implementation but because there is an [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=218&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The primary purpose of source code should not be expressing implementation to a computer; it should be expressing<br />
meaning to people. Programming languages are an incredibly expressive and terse medium for the concepts programmers talk about. Proposals to make programming languages more English-like inevitably fail not because of poor implementation but because there is an inherent impedance mismatch between the domains of English language and computer programming.</p>
<p>Thus, computer programming languages should be compared not by their levels of raw power (any Turing-complete language trivially satisfies this requirement) or speed of execution (for most applications, speed is not critical) but by their programmer<br />
efficiency—the speed at which a programmer can accurately translate his thoughts into code.</p>
<p>Closely related to programmer efficiency is maintainer efficiency: the ability of a maintainer (who may be the original developer, 12 months later) to read the code and deduce what is going on. Perl is often criticized for being “write-only”; it is easy<br />
to write code that is nearly unreadable to future developers. Such code would have high programmer efficiency at the cost of maintainer efficiency. Ruby wins on both fronts: most Ruby code is easy to write and read, once you know the basic syntax and semantics. Still, diving into any large project such as Rails is difficult. Here, we discuss ways to begin reading a codebase.</p>
<br />Filed under: <a href='http://rushabhthathi.wordpress.com/category/rails-app/'>Rails app</a>, <a href='http://rushabhthathi.wordpress.com/category/ruby/'>Ruby</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rushabhthathi.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rushabhthathi.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rushabhthathi.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rushabhthathi.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rushabhthathi.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rushabhthathi.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rushabhthathi.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rushabhthathi.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rushabhthathi.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rushabhthathi.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rushabhthathi.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rushabhthathi.wordpress.com/218/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rushabhthathi.wordpress.com/218/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rushabhthathi.wordpress.com/218/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=218&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rushabhthathi.wordpress.com/2011/08/09/programming-language/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/878d36f973ac21d4295c5fd6b448a1ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rushabhthegodfather</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby we might Miss</title>
		<link>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-9/</link>
		<comments>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-9/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 11:34:34 +0000</pubDate>
		<dc:creator>R</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://rushabhthathi.wordpress.com/?p=209</guid>
		<description><![CDATA[This is the continuation part of the series I started. The topic for this post : String &#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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; String#%(args) interpolates the arguments into itself in the manner of sprintf. To provide more than one value for interpolation, you must supply an array. &#8220;%.5f&#8221; % Math::PI # =&#62; &#8220;3.14159&#8243; &#8220;%.5f, %.5f&#8221; % [Math::PI, Math::E] # =&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=209&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the continuation part of the series I started.<br />
The topic for this post :</p>
<p><strong>String</strong></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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
String#%(args) interpolates the arguments into itself in the manner of sprintf. To provide<br />
more than one value for interpolation, you must supply an array.<br />
&#8220;%.5f&#8221; % Math::PI # =&gt; &#8220;3.14159&#8243;<br />
&#8220;%.5f, %.5f&#8221; % [Math::PI, Math::E] # =&gt; &#8220;3.14159, 2.71828&#8243;<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
• String#[](regex) returns the portion of the string that matches the given regular<br />
expression. If there is no matching portion, nil is returned.<br />
&#8220;asdf&#8221;[/sd/] # =&gt; &#8220;sd&#8221;<br />
&#8220;asdf&#8221;[/^sd/] # =&gt; nil<br />
&#8220;asdf&#8221;[/d(.)/,1] # =&gt; &#8220;f&#8221;<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
• String#scan(regex) collects all of the regular expression’s matches against the string<br />
into an array. If the pattern has captures, each element of the array is itself an array of<br />
captured text.<br />
&#8220;asdf&#8221;.scan(/[a-e]/) # =&gt; ["a", "d"]<br />
&#8220;hello ruby; hello regex&#8221;.scan(/hello (\w+)/) # =&gt; [["ruby"], ["regex"]]<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<br />Filed under: <a href='http://rushabhthathi.wordpress.com/category/ruby/'>Ruby</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rushabhthathi.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rushabhthathi.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rushabhthathi.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rushabhthathi.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rushabhthathi.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rushabhthathi.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rushabhthathi.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rushabhthathi.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rushabhthathi.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rushabhthathi.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rushabhthathi.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rushabhthathi.wordpress.com/209/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rushabhthathi.wordpress.com/209/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rushabhthathi.wordpress.com/209/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=209&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/878d36f973ac21d4295c5fd6b448a1ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rushabhthegodfather</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby we might Miss</title>
		<link>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-8/</link>
		<comments>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-8/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 11:33:10 +0000</pubDate>
		<dc:creator>R</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://rushabhthathi.wordpress.com/?p=207</guid>
		<description><![CDATA[This is the continuation part of the series I started. The topic for this post : Proc &#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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; • Proc#[] is shorthand for Proc.call. p = lambda{&#124;x&#124; x * 2} p[3] # =&#62; 6 &#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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Filed under: Ruby<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=207&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the continuation part of the series I started.<br />
The topic for this post :</p>
<p><strong>Proc</strong></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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
• Proc#[] is shorthand for Proc.call.<br />
p = lambda{|x| x * 2}<br />
p[3] # =&gt; 6<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<br />Filed under: <a href='http://rushabhthathi.wordpress.com/category/ruby/'>Ruby</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rushabhthathi.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rushabhthathi.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rushabhthathi.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rushabhthathi.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rushabhthathi.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rushabhthathi.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rushabhthathi.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rushabhthathi.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rushabhthathi.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rushabhthathi.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rushabhthathi.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rushabhthathi.wordpress.com/207/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rushabhthathi.wordpress.com/207/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rushabhthathi.wordpress.com/207/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=207&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/878d36f973ac21d4295c5fd6b448a1ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rushabhthegodfather</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby we might Miss</title>
		<link>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-7/</link>
		<comments>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-7/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 11:31:53 +0000</pubDate>
		<dc:creator>R</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://rushabhthathi.wordpress.com/?p=205</guid>
		<description><![CDATA[This is the continuation part of the series I started. The topic for this post : Module &#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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; • Module#remove_method removes a method from the specified class. Module#undef_method, on the other hand, actively prevents that method from being invoked on the class; it inserts a special entry into the m_tbl that stops method lookup. &#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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=205&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the continuation part of the series I started.<br />
The topic for this post :</p>
<p><strong>Module</strong></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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
• Module#remove_method removes a method from the specified class. Module#undef_method,<br />
on the other hand, actively prevents that method from being invoked on the class; it<br />
inserts a special entry into the m_tbl that stops method lookup.<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<br />Filed under: <a href='http://rushabhthathi.wordpress.com/category/ruby/'>Ruby</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rushabhthathi.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rushabhthathi.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rushabhthathi.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rushabhthathi.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rushabhthathi.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rushabhthathi.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rushabhthathi.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rushabhthathi.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rushabhthathi.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rushabhthathi.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rushabhthathi.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rushabhthathi.wordpress.com/205/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rushabhthathi.wordpress.com/205/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rushabhthathi.wordpress.com/205/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=205&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/878d36f973ac21d4295c5fd6b448a1ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rushabhthegodfather</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby we  might Miss</title>
		<link>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-6/</link>
		<comments>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-6/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 11:27:11 +0000</pubDate>
		<dc:creator>R</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://rushabhthathi.wordpress.com/?p=203</guid>
		<description><![CDATA[This is the continuation of the series I started. The topic for this post : Kernel &#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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; • Kernel#Array tries to coerce its argument into an array: Array([1,2,3]) # =&#62; [1, 2, 3] Array(1..3) # =&#62; [1, 2, 3] Array(1) # =&#62; [1] &#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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Filed under: Ruby<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=203&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the continuation of the series I started.<br />
The topic for this post :</p>
<p><strong>Kernel</strong></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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
• Kernel#Array tries to coerce its argument into an array:<br />
Array([1,2,3]) # =&gt; [1, 2, 3]<br />
Array(1..3) # =&gt; [1, 2, 3]<br />
Array(1) # =&gt; [1]</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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<br />Filed under: <a href='http://rushabhthathi.wordpress.com/category/ruby/'>Ruby</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rushabhthathi.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rushabhthathi.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rushabhthathi.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rushabhthathi.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rushabhthathi.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rushabhthathi.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rushabhthathi.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rushabhthathi.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rushabhthathi.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rushabhthathi.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rushabhthathi.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rushabhthathi.wordpress.com/203/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rushabhthathi.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rushabhthathi.wordpress.com/203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=203&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/878d36f973ac21d4295c5fd6b448a1ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rushabhthegodfather</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby we might Miss</title>
		<link>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-5/</link>
		<comments>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-5/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 11:24:01 +0000</pubDate>
		<dc:creator>R</dc:creator>
				<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://rushabhthathi.wordpress.com/?p=200</guid>
		<description><![CDATA[This is the continuation of the series I started. The topic for this post : Hash &#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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; • Hash.new accepts a block, which provides a way to calculate a default value if the hash has none. This is useful for caching. The first time a cached method is called with a particular set of arguments, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=200&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is the continuation of the series I started.<br />
The topic for this post :<br />
<strong>Hash</strong></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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
• Hash.new accepts a block, which provides a way to calculate a default value if the hash<br />
has none. This is useful for caching. The first time a cached method is called with a<br />
particular set of arguments, the block is invoked; it calculates the value and stores it<br />
in the hash for future access. ActiveSupport has an implementation of hash caching in<br />
caching_tools.rb, which generates hashes like this:<br />
Hash.new do |as, a|<br />
as[a] = Hash.new do |bs, b|<br />
bs[b] = slow_method(a, b)<br />
end<br />
end<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Hash#delete removes a value from the hash and returns it. This is useful for stripping<br />
out keyword arguments from a hash before passing it along somewhere.<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<br />Filed under: <a href='http://rushabhthathi.wordpress.com/category/ruby/'>Ruby</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rushabhthathi.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rushabhthathi.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rushabhthathi.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rushabhthathi.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rushabhthathi.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rushabhthathi.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rushabhthathi.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rushabhthathi.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rushabhthathi.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rushabhthathi.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rushabhthathi.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rushabhthathi.wordpress.com/200/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rushabhthathi.wordpress.com/200/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rushabhthathi.wordpress.com/200/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rushabhthathi.wordpress.com&amp;blog=13382535&amp;post=200&amp;subd=rushabhthathi&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rushabhthathi.wordpress.com/2011/08/09/ruby-we-might-miss-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/878d36f973ac21d4295c5fd6b448a1ec?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rushabhthegodfather</media:title>
		</media:content>
	</item>
	</channel>
</rss>
