<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Paddy&#039;s Blog</title>
	<atom:link href="http://blog.paddyonline.in/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.paddyonline.in</link>
	<description>Tech Notes, Snippets, Trends and Business</description>
	<lastBuildDate>Sat, 28 Aug 2010 22:28:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Git show files for a commit</title>
		<link>http://blog.paddyonline.in/2010/06/16/git/</link>
		<comments>http://blog.paddyonline.in/2010/06/16/git/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 12:36:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Git]]></category>

		<guid isPermaLink="false">http://blog.paddyonline.in/?p=239</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><script src="http://gist.github.com/440599.js?file=git_show_files.sh"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.paddyonline.in/2010/06/16/git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A trip to Secunderabad in June</title>
		<link>http://blog.paddyonline.in/2010/06/12/a-trip-to-secunderabad-in-june/</link>
		<comments>http://blog.paddyonline.in/2010/06/12/a-trip-to-secunderabad-in-june/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 13:03:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://blog.paddyonline.in/2010/06/12/a-trip-to-secunderabad-in-june/</guid>
		<description><![CDATA[I&#8217;m taking a trip to Secunderabad between June 17th and June 20th.
Going to Madhu&#8217;s House Warming Function in Secunderabad
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m taking <a href='http://dplr.it/guest/90e085c00106423673dc'>a trip to Secunderabad</a> between June 17th and June 20th.</p>
<p>Going to Madhu&#8217;s House Warming Function in Secunderabad</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.paddyonline.in/2010/06/12/a-trip-to-secunderabad-in-june/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A trip to Bangalore in June</title>
		<link>http://blog.paddyonline.in/2010/06/02/a-trip-to-bangalore-in-june/</link>
		<comments>http://blog.paddyonline.in/2010/06/02/a-trip-to-bangalore-in-june/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 06:32:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>

		<guid isPermaLink="false">http://blog.paddyonline.in/2010/06/02/a-trip-to-bangalore-in-june/</guid>
		<description><![CDATA[I&#8217;m taking a trip to Bangalore between June 4th and June 8th.
I am going to be in Bangalore with my son Santosh and we are having a small function for him to have first food. Really excited!
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m taking <a href='http://dplr.it/guest/1c2758b81a5d0939dfb1'>a trip to Bangalore</a> between June 4th and June 8th.</p>
<p>I am going to be in Bangalore with my son Santosh and we are having a small function for him to have first food. Really excited!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.paddyonline.in/2010/06/02/a-trip-to-bangalore-in-june/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add multiple virtual host along with Passenger</title>
		<link>http://blog.paddyonline.in/2010/01/05/add-multiple-virtual-host-along-with-passenger/</link>
		<comments>http://blog.paddyonline.in/2010/01/05/add-multiple-virtual-host-along-with-passenger/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 06:23:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Shell Scripts]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[vhost]]></category>
		<category><![CDATA[virtual]]></category>

		<guid isPermaLink="false">http://127.0.0.1/blog_new/?p=192</guid>
		<description><![CDATA[I was having few projects on my MAC and was really bugged up with maintaining the port numbers and other stuffs, a real cumbersome.
After, Jacek&#8217;s thought on this, I had set up the following:
Install the gem:
sudo gem install ghost
after that add a virtual host
sudo ghost add paddy.local (a choice of your virtual host)
Install the Passenger [...]]]></description>
			<content:encoded><![CDATA[<p>I was having few projects on my MAC and was really bugged up with maintaining the port numbers and other stuffs, a real cumbersome.</p>
<p>After, Jacek&#8217;s thought on this, I had set up the following:</p>
<p>Install the gem:</p>
<pre class="brush: shell">sudo gem install ghost</pre>
<p>after that add a virtual host</p>
<pre class="brush: shell">sudo ghost add paddy.local (a choice of your virtual host)</pre>
<p>Install the Passenger gem:</p>
<pre class="brush: shell">sudo gem install passenger
sudo passenger-install-apache2-module</pre>
<p>After installing the apache module for passenger, you may have add the following lines (after installation it will tell based on your own enviroment)</p>
<p>(in your httpd.conf)</p>
<pre class="brush: shell">LoadModule passenger_module /Library/Ruby/Gems/1.8/gems/passenger-2.2.8/ext/apache2/mod_passenger.so
PassengerRoot /Library/Ruby/Gems/1.8/gems/passenger-2.2.8
PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby</pre>
<p>Also you may have to enable your virtual host too &#8230;by default, it may be disabled(commented) and you have to enable(uncomment) it</p>
<p># Virtual hosts</p>
<p>Include /Applications/XAMPP/etc/extra/httpd-vhosts.conf</p>
<p>Next, you have to add the vitual host for your rails app.</p>
<p>(httpd-vhosts.conf)</p>
<pre class="brush: shell">
<virtualhost *.80>
ServerName www.yourhost.com
DocumentRoot /somewhere/public
</virtualhost>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.paddyonline.in/2010/01/05/add-multiple-virtual-host-along-with-passenger/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BSNL 3G Speed</title>
		<link>http://blog.paddyonline.in/2009/11/23/bsnl-3g-speed/</link>
		<comments>http://blog.paddyonline.in/2009/11/23/bsnl-3g-speed/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 06:21:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[3g]]></category>
		<category><![CDATA[bsnl]]></category>

		<guid isPermaLink="false">http://127.0.0.1/blog_new/?p=189</guid>
		<description><![CDATA[After a long awaiting for the actual launch of 3G service in Chennai, its available now. I rushed up to the customer service center and got myself the 3G Sim Card and just tried the net speed which BSNL claims
]]></description>
			<content:encoded><![CDATA[<p>After a long awaiting for the actual launch of 3G service in Chennai, its available now. I rushed up to the customer service center and got myself the 3G Sim Card and just tried the net speed which BSNL claims</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.paddyonline.in/2009/11/23/bsnl-3g-speed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Search comma separated values db column in Rails</title>
		<link>http://blog.paddyonline.in/2009/11/22/search-comma-separated-values-db-column-in-rails/</link>
		<comments>http://blog.paddyonline.in/2009/11/22/search-comma-separated-values-db-column-in-rails/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 06:19:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[csv]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://127.0.0.1/blog_new/?p=186</guid>
		<description><![CDATA[I wanted to search for a value in DB and the column data is comma separated values say &#8230;
foo,bar,hey,hay
Now I wanted to find  a record based on the value &#8230;say &#8230;hay
MySQL&#8217;s FIND_IN_SET comes into play and it works as follows

Model.find(:first, :conditions => ["FIND_IN_SET(?,search_column)", search_string])

Hope this helps!
]]></description>
			<content:encoded><![CDATA[<p>I wanted to search for a value in DB and the column data is comma separated values say &#8230;</p>
<p>foo,bar,hey,hay</p>
<p>Now I wanted to find  a record based on the value &#8230;say &#8230;hay</p>
<p>MySQL&#8217;s FIND_IN_SET comes into play and it works as follows</p>
<pre class="brush: ruby">
Model.find(:first, :conditions => ["FIND_IN_SET(?,search_column)", search_string])
</pre>
<p>Hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.paddyonline.in/2009/11/22/search-comma-separated-values-db-column-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making will_paginate to work with acts_as_taggable_on_steriods</title>
		<link>http://blog.paddyonline.in/2009/09/01/making-will_paginate-to-work-with-acts_as_taggable_on_steriods/</link>
		<comments>http://blog.paddyonline.in/2009/09/01/making-will_paginate-to-work-with-acts_as_taggable_on_steriods/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 06:18:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Gems]]></category>
		<category><![CDATA[paginate]]></category>
		<category><![CDATA[taggable]]></category>

		<guid isPermaLink="false">http://127.0.0.1/blog_new/?p=183</guid>
		<description><![CDATA[After going through, few post on pagination for the tags, this worked for me.
 size, :page => params[:page], :per_page => 1)
%>

]]></description>
			<content:encoded><![CDATA[<p>After going through, few post on pagination for the tags, this worked for me.</p>
<pre class="brush: ruby"><%
 size = Upload.find_tagged_with(params[:id]).length
 @uploads = Upload.paginate_tagged_with(params[:id], :total_entries => size, :page => params[:page], :per_page => 1)
%>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.paddyonline.in/2009/09/01/making-will_paginate-to-work-with-acts_as_taggable_on_steriods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing MySQL Gem on Mac OSX with XAMPP</title>
		<link>http://blog.paddyonline.in/2009/07/26/installing-mysql-gem-on-mac-osx-with-xampp/</link>
		<comments>http://blog.paddyonline.in/2009/07/26/installing-mysql-gem-on-mac-osx-with-xampp/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 06:15:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Gems]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[xampp]]></category>

		<guid isPermaLink="false">http://127.0.0.1/blog_new/?p=179</guid>
		<description><![CDATA[I was having lot of trouble on installing the MySQL Gem for Mac OSX Leopard 10.5.9 via XAMPP. I have the XAMPP running and also mySQL. Here are the steps.
1. Install XAMPP for MAC
2. Install XAMPP Dev Package
3. From your terminal type the following command and you&#8217;ll see the following
sudo gem install mysql -- --with-mysql-dir=/Applications/XAMPP/xamppfiles/ [...]]]></description>
			<content:encoded><![CDATA[<p>I was having lot of trouble on installing the MySQL Gem for Mac OSX Leopard 10.5.9 via XAMPP. I have the XAMPP running and also mySQL. Here are the steps.</p>
<p>1. Install XAMPP for MAC</p>
<p>2. Install XAMPP Dev Package</p>
<p>3. From your terminal type the following command and you&#8217;ll see the following</p>
<pre class="brush: shell">sudo gem install mysql -- --with-mysql-dir=/Applications/XAMPP/xamppfiles/ -- with-mysql-lib=/Applications/XAMPP/xamppfiles/lib -- with-mysql-include=/Applications/XAMPP/xamppfiles/include/ -- with-mysql-config=/Applications/XAMPP/xamppfiles/bin/mysql_config</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.paddyonline.in/2009/07/26/installing-mysql-gem-on-mac-osx-with-xampp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Stash</title>
		<link>http://blog.paddyonline.in/2009/05/10/git-stash/</link>
		<comments>http://blog.paddyonline.in/2009/05/10/git-stash/#comments</comments>
		<pubDate>Sun, 10 May 2009 06:10:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[merge]]></category>
		<category><![CDATA[stash]]></category>

		<guid isPermaLink="false">http://127.0.0.1/blog_new/?p=171</guid>
		<description><![CDATA[Currently, I am working on few files and when you do a git pull, you may sometimes get a message as follows:
error: Entry 'app/views/alerts/index.rhtml' not uptodate. Cannot merge.
So you know, somebody has updated the code and you do need to commit the file so that the file can be merged and for some reason I [...]]]></description>
			<content:encoded><![CDATA[<p>Currently, I am working on few files and when you do a git pull, you may sometimes get a message as follows:</p>
<pre class="brush: shell">error: Entry 'app/views/alerts/index.rhtml' not uptodate. Cannot merge.</pre>
<p>So you know, somebody has updated the code and you do need to commit the file so that the file can be merged and for some reason I don&#8217;t want to commit till i finish the work. This is where <strong>git stash</strong> comes into play. from your root of the app, do the following command</p>
<pre class="brush: shell">
git stash
git pull
git stash apply #Apply your changes
</pre>
<p>for more info <a href="http://www.kernel.org/pub/software/scm/git/docs/git-stash.html" target="_blank">http://www.kernel.org/pub/software/scm/git/docs/git-stash.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.paddyonline.in/2009/05/10/git-stash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Is Active</title>
		<link>http://blog.paddyonline.in/2009/04/13/is-active/</link>
		<comments>http://blog.paddyonline.in/2009/04/13/is-active/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 06:13:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[datetime]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://127.0.0.1/blog_new/?p=176</guid>
		<description><![CDATA[
  def is_active?
    (start_date .. expiry_date) === DateTime.now
  end

]]></description>
			<content:encoded><![CDATA[<pre class="brush: ruby">
  def is_active?
    (start_date .. expiry_date) === DateTime.now
  end
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.paddyonline.in/2009/04/13/is-active/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
