<?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>So far, it's RoR</title>
	<atom:link href="http://jacqueschirag.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jacqueschirag.wordpress.com</link>
	<description>Ruby on Rails, PostgreSQL, SVN, etc....</description>
	<lastBuildDate>Wed, 11 Feb 2009 13:05:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jacqueschirag.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>So far, it's RoR</title>
		<link>http://jacqueschirag.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jacqueschirag.wordpress.com/osd.xml" title="So far, it&#039;s RoR" />
	<atom:link rel='hub' href='http://jacqueschirag.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Moved to http://www.question-defense.com</title>
		<link>http://jacqueschirag.wordpress.com/2009/02/11/moved-to-httpwwwquestion-defensecom/</link>
		<comments>http://jacqueschirag.wordpress.com/2009/02/11/moved-to-httpwwwquestion-defensecom/#comments</comments>
		<pubDate>Wed, 11 Feb 2009 12:58:20 +0000</pubDate>
		<dc:creator>Chirag Patel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jacqueschirag.wordpress.com/?p=52</guid>
		<description><![CDATA[I&#8217;ve deciced to join forces with http://www.question-defense.com but will keep this blog up so I don&#8217;t break any links. All the posts in this blog have been copied to http://www.question-defense.com<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=52&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve deciced to join forces with <a href="http://www.question-defense.com">http://www.question-defense.com</a> but will keep this blog up so I don&#8217;t break any links. All the posts in this blog have been copied to <a href="http://www.question-defense.com">http://www.question-defense.com</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jacqueschirag.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jacqueschirag.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jacqueschirag.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jacqueschirag.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jacqueschirag.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jacqueschirag.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jacqueschirag.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jacqueschirag.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jacqueschirag.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jacqueschirag.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jacqueschirag.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jacqueschirag.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jacqueschirag.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jacqueschirag.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=52&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jacqueschirag.wordpress.com/2009/02/11/moved-to-httpwwwquestion-defensecom/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65f13ee634ff4da147ad6d65def8c59f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chirag</media:title>
		</media:content>
	</item>
		<item>
		<title>Rails log analyzers</title>
		<link>http://jacqueschirag.wordpress.com/2008/10/15/rails-log-analyzers/</link>
		<comments>http://jacqueschirag.wordpress.com/2008/10/15/rails-log-analyzers/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 04:25:40 +0000</pubDate>
		<dc:creator>Chirag Patel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jacqueschirag.wordpress.com/?p=47</guid>
		<description><![CDATA[Here are the ones I tried. Hope the comments aren&#8217;t too confusing Simple Rails Log Query Analyzer Ran ruby bin/query_log_analyzer.rb ../log/production.log production.log.1 (small log file ~25MB) Just printed the &#8220;Totals&#8221; heading with no results production.log (large log file ~400MB) Ran for a long time and nothing happened The Action Profiler lets you profile actions to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=47&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here are the ones I tried. Hope the comments aren&#8217;t too confusing</p>
<ol>
<li><a href="http://www.xcombinator.com/2008/04/01/simple-rails-log-query-analyzer/">Simple Rails Log Query       Analyzer</a>
<ul>
<li>Ran  <code>ruby bin/query_log_analyzer.rb ../log/production.log</code>
<ul>
<li><code>production.log.1 (small log file ~25MB) </code> Just printed the &#8220;Totals&#8221; heading with no results</li>
<li><code>production.log (large log file ~400MB) </code> Ran for a long time and nothing happened</li>
</ul>
</li>
</ul>
</li>
<li>The <a href="http://rails-analyzer.rubyforge.org/action_profiler">Action Profiler</a> lets you profile actions to       determine points of optimization.
<ul>
<li>See attachment for the error when running <code>action_profiler ChartController#index</code></li>
<li>Madhu thinks it requires Production Log Analyzer (which requires <a href="http://rails-analyzer.rubyforge.org/tools/classes/SyslogLogger.html">SyslogLogger</a>)</li>
</ul>
</li>
<li><code>rawk.rb</code><br />
(recommended by Railscast.com)</p>
<ul>
<li><code>production.log.1 (small log file ~25MB) </code> shows  <sub>21,300 requests</sub></li>
<p><sub><br />
</sub></p>
<li><code><sub>production.log (large log file ~400MB) </sub></code><sub>—shows <em><strong>only </strong></em></sub>27,200 requests</li>
<li>Both took about a miute to scan and since only 7,000 difference in requests, we think Rawk is not working</li>
<li>07/23/08: Tried <code>ruby rawk.rb ../log/production.log</code> on sdev but hung for long time and never returned</li>
</ul>
</li>
<li><a href="http://nubyonrails.com/articles/a-hodel-3000-compliant-logger-for-the-rest-of-us">Hodel3000CompliantLogger</a>
<ul>
<li>Looks like it’s working but requires <code>mongrel_rails start</code> instead of  <code>ruby script/server</code>. Cannot use it easily with Litespeed probably.</li>
<li>Uses Production Log Analyzer but circumvents <a href="http://rails-analyzer.rubyforge.org/tools/classes/SyslogLogger.html">SyslogLogger</a> (unlke Action Profiler above)</li>
</ul>
</li>
<li><a href="http://railscasts.com/episodes/98"> Railscast.com’s Request Profiling </a></li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jacqueschirag.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jacqueschirag.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jacqueschirag.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jacqueschirag.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jacqueschirag.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jacqueschirag.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jacqueschirag.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jacqueschirag.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jacqueschirag.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jacqueschirag.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jacqueschirag.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jacqueschirag.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jacqueschirag.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jacqueschirag.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=47&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jacqueschirag.wordpress.com/2008/10/15/rails-log-analyzers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65f13ee634ff4da147ad6d65def8c59f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chirag</media:title>
		</media:content>
	</item>
		<item>
		<title>View for version numbers, host names, IPs, etc</title>
		<link>http://jacqueschirag.wordpress.com/2008/07/26/view-for-version-numbers-host-names-ips-etc/</link>
		<comments>http://jacqueschirag.wordpress.com/2008/07/26/view-for-version-numbers-host-names-ips-etc/#comments</comments>
		<pubDate>Sat, 26 Jul 2008 04:31:25 +0000</pubDate>
		<dc:creator>Chirag Patel</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jacqueschirag.wordpress.com/?p=44</guid>
		<description><![CDATA[Here&#8217;s some code (and rendered view) for various version numbers, host names, IPs for Ruby, Rails, PostgreSQL, SMTP. &#60;b&#62;Network&#60;/b&#62;&#60;br&#62; UNIX hostname: &#60;code&#62;&#60;%= `hostname` %&#62;&#60;/code&#62;&#60;br&#62; SERVER_ADDR: &#60;code&#62;&#60;%= request.env["SERVER_ADDR"].to_s %&#62;&#60;/code&#62; &#60;br&#62; HOST_NAME : &#60;code&#62;&#60;%= request.host %&#62;&#60;/code&#62; &#60;br&#62; REMOTE_ADDR: &#60;code&#62;&#60;%= request.env["REMOTE_ADDR"].to_s %&#62;&#60;/code&#62; &#60;br&#62; &#60;br&#62; &#60;b&#62;Software&#60;/b&#62;&#60;br&#62; Database: &#60;code&#62;&#60;%= ActiveRecord::Base.connection.select_value(&#8220;SELECT  VERSION()&#8221;) %&#62;&#60;/code&#62;&#60;br&#62; Email delivery method: &#60;code&#62;&#60;%= ActionMailer::Base.delivery_method %&#62;&#60;/code&#62;&#60;br&#62; SMTP server: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=44&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s some code (and rendered view) for various version numbers, host names, IPs for Ruby, Rails, PostgreSQL, SMTP.</p>
<p><strong><br />
</strong></p>
<p>&lt;b&gt;Network&lt;/b&gt;&lt;br&gt;<br />
UNIX hostname: &lt;code&gt;&lt;%= `hostname` %&gt;&lt;/code&gt;&lt;br&gt;<br />
SERVER_ADDR: &lt;code&gt;&lt;%= request.env["SERVER_ADDR"].to_s %&gt;&lt;/code&gt; &lt;br&gt;<br />
HOST_NAME : &lt;code&gt;&lt;%= request.host %&gt;&lt;/code&gt; &lt;br&gt;<br />
REMOTE_ADDR: &lt;code&gt;&lt;%= request.env["REMOTE_ADDR"].to_s %&gt;&lt;/code&gt; &lt;br&gt;<br />
&lt;br&gt;<br />
&lt;b&gt;Software&lt;/b&gt;&lt;br&gt;<br />
Database: &lt;code&gt;&lt;%= ActiveRecord::Base.connection.select_value(&#8220;SELECT  VERSION()&#8221;) %&gt;&lt;/code&gt;&lt;br&gt;<br />
Email delivery method: &lt;code&gt;&lt;%= ActionMailer::Base.delivery_method %&gt;&lt;/code&gt;&lt;br&gt;<br />
SMTP server: &lt;code&gt; &lt;%= ActionMailer::Base.smtp_settings[:address] %&gt;&lt;/code&gt;&lt;br&gt;<br />
Ruby: &lt;code&gt; &lt;%= &#8220;#{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) on #{RUBY_PLATFORM}&#8221; %&gt; &lt;/code&gt;&lt;br&gt;<br />
Rails: &lt;code&gt; &lt;%= &#8220;#{Rails::VERSION::STRING}&#8221; %&gt; &lt;/code&gt;&lt;br&gt;</p>
<p><strong>Network</strong><br />
UNIX hostname: <code>server1.mydomain.com </code><br />
SERVER_ADDR: <code>10.2.128.100</code><br />
HOST_NAME : <code>www.mydomain.com</code><br />
REMOTE_ADDR: <code>12.207.103.224</code></p>
<p><strong>Software</strong><br />
Database: <code>PostgreSQL 8.3.3 on x86_64-redhat-linux-gnu, compiled by GCC gcc (GCC) 4.1.2 20070626 (Red Hat 4.1.2-14)</code><br />
Email delivery method: <code>activerecord</code><br />
SMTP server: <code> localhost</code><br />
Ruby: <code> 1.8.6 (2007-03-13) on x86_64-linux </code><br />
Rails: <code> 2.1.0 </code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jacqueschirag.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jacqueschirag.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jacqueschirag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jacqueschirag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jacqueschirag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jacqueschirag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jacqueschirag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jacqueschirag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jacqueschirag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jacqueschirag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jacqueschirag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jacqueschirag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jacqueschirag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jacqueschirag.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jacqueschirag.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jacqueschirag.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=44&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jacqueschirag.wordpress.com/2008/07/26/view-for-version-numbers-host-names-ips-etc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65f13ee634ff4da147ad6d65def8c59f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chirag</media:title>
		</media:content>
	</item>
		<item>
		<title>Using helpers in models, views, and controllers</title>
		<link>http://jacqueschirag.wordpress.com/2008/07/08/using-helpers-in-models-views-and-controllers/</link>
		<comments>http://jacqueschirag.wordpress.com/2008/07/08/using-helpers-in-models-views-and-controllers/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 23:25:24 +0000</pubDate>
		<dc:creator>Chirag Patel</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jacqueschirag.wordpress.com/?p=37</guid>
		<description><![CDATA[Using this as a guide JLHPBv2: Using Helpers in Models in Rails, you can make a single Module that can be accessed from models, views, and controllers. The helpers automatically created in app/helpers/*_helpers.rb &#160; might also be available anywhere as long as you include them. I decided to make the methods in the helper class-scoped [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=37&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Using this as a guide <a href="http://jocke-blog.selincite.com/2008/03/using-helpers-in-models-in-rails.html"> JLHPBv2: Using Helpers in Models in Rails</a>, you can make a single <code>Module</code> that can be accessed from models, views, and controllers. The helpers automatically created in <code>app/helpers/*_helpers.rb</code> &nbsp; might also be available anywhere as long as you <code>include</code> them.</p>
<p>I decided to make the methods in the helper class-scoped (using <code>self </code>below) so that the origin of the helper method is explicitly obvious in the call (<code>eg. to_s</code> below) </p>
<pre>
app/lib/utility_helper.rb
module UtilityHelper
  def self.camelcase_to_spaced(word)
    word.gsub(/([A-Z])/, &quot; \\1&quot;).strip
  end
end

app/models/event.rb
class Event &lt; ActiveRecord::Base
  include UtilityHelper

  def to_s
    UtilityHelper.camelcase_to_spaced("This an Event object")
  end
end

app/helpers/events_helper.rb
module EventsHelper
  include UtilityHelper
end

app/controllers/event_controller.rb
class EventController &lt; ApplicationController
  include UtilityHelper
end
</pre>
<p><code><br />
app/views/events/index.html.erb<br />
&lt;%=UtilityHelper.camelcase_to_spaced(event[:event_type])%&rt;<br />
</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jacqueschirag.wordpress.com/37/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jacqueschirag.wordpress.com/37/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jacqueschirag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jacqueschirag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jacqueschirag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jacqueschirag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jacqueschirag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jacqueschirag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jacqueschirag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jacqueschirag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jacqueschirag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jacqueschirag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jacqueschirag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jacqueschirag.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jacqueschirag.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jacqueschirag.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=37&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jacqueschirag.wordpress.com/2008/07/08/using-helpers-in-models-views-and-controllers/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65f13ee634ff4da147ad6d65def8c59f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chirag</media:title>
		</media:content>
	</item>
		<item>
		<title>FiveRuns TuneUp Rails Monitoring</title>
		<link>http://jacqueschirag.wordpress.com/2008/06/19/fiveruns-tuneup-rails-monitoring/</link>
		<comments>http://jacqueschirag.wordpress.com/2008/06/19/fiveruns-tuneup-rails-monitoring/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 12:45:04 +0000</pubDate>
		<dc:creator>Chirag Patel</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://jacqueschirag.wordpress.com/?p=33</guid>
		<description><![CDATA[I just installed FiveRuns TuneUp it’s great! A small header shows up on all your apps (see attachment). I run it locally only It’s drop dead easy to install: To add TuneUp to your Rails application, install the gem: sudo gem install fiveruns_tuneup Then, for a Rails 2.0.x app, run: fiveruns_tuneup /path/to/rails/app For a Rails [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=33&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><span>I just installed<a href="http://www.fiveruns.com/products/tuneup"> FiveRuns TuneUp</a> it’s great! A small header shows up on all your apps (see attachment). I run it locally only</span></p>
<p><strong><span style="color:#1f497d;">It’s drop dead easy to install:</span></strong></p>
<ul>
<li><span style="font-size:12pt;font-family:&quot;">To add TuneUp to your Rails application, install the gem:</span></li>
</ul>
<p class="MsoNormal" style="padding-left:60px;"><span style="font-size:10pt;font-family:&quot;"> sudo gem install fiveruns_tuneup</span></p>
<ul>
<li><span style="font-size:12pt;font-family:&quot;">Then, for a Rails 2.0.x app, run:</span></li>
</ul>
<p class="MsoNormal" style="padding-left:60px;"><span style="font-size:10pt;font-family:&quot;"> fiveruns_tuneup /path/to/rails/app</span></p>
<ul>
<li><span style="font-size:12pt;font-family:&quot;">For a Rails 2.1 app, update your environment.rb to include this line:</span></li>
</ul>
<p class="MsoNormal" style="padding-left:60px;"><span style="font-size:10pt;font-family:&quot;"> config.gem &#8216;fiveruns_tuneup&#8217;</span></p>
<ul>
<li><span style="font-size:10pt;font-family:&quot;"> </span>Launch <span style="color:#1f497d;">your Rails </span>app and you’ll see the head<span style="color:#1f497d;">er to sign up for for a free account view the stats.</span></li>
</ul>
<p><a href="http://jacqueschirag.files.wordpress.com/2008/06/fiveruns1.jpg"><img class="alignnone size-medium wp-image-35" src="http://jacqueschirag.files.wordpress.com/2008/06/fiveruns1.jpg?w=300&#038;h=129" alt="" width="300" height="129" /></a></p>
<p class="MsoNormal">
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jacqueschirag.wordpress.com/33/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jacqueschirag.wordpress.com/33/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jacqueschirag.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jacqueschirag.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jacqueschirag.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jacqueschirag.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jacqueschirag.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jacqueschirag.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jacqueschirag.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jacqueschirag.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jacqueschirag.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jacqueschirag.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jacqueschirag.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jacqueschirag.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jacqueschirag.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jacqueschirag.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=33&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jacqueschirag.wordpress.com/2008/06/19/fiveruns-tuneup-rails-monitoring/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65f13ee634ff4da147ad6d65def8c59f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chirag</media:title>
		</media:content>

		<media:content url="http://jacqueschirag.files.wordpress.com/2008/06/fiveruns1.jpg?w=300" medium="image" />
	</item>
		<item>
		<title>Rails vs PHP vs Java vs &#8230;</title>
		<link>http://jacqueschirag.wordpress.com/2008/01/23/rails-vs-php-vs-java-vs/</link>
		<comments>http://jacqueschirag.wordpress.com/2008/01/23/rails-vs-php-vs-java-vs/#comments</comments>
		<pubDate>Wed, 23 Jan 2008 18:15:55 +0000</pubDate>
		<dc:creator>Chirag Patel</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://jacqueschirag.wordpress.com/2008/01/23/rails-vs-php-vs-java-vs/</guid>
		<description><![CDATA[Good sites comparing Ruby on Rails with other frameworks &#160; Java to Rails: Evaluation: moving from Java to Ruby on Rails for the CenterNet rewrite &#160; PHP to Rails: outside.in » outside.in switches to Rails &#160; To be continuted….<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=32&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="font-family:Calibri;font-size:14pt;margin:0;">Good sites comparing Ruby on Rails with other frameworks</p>
<p style="font-family:Calibri;font-size:14pt;margin:0;">&nbsp;</p>
<p style="font-weight:bold;font-family:Calibri;font-size:14pt;margin:0;">Java to Rails:</p>
<p style="font-weight:bold;font-family:Calibri;font-size:14pt;margin:0;"><a href="http://rewrite.rickbradley.com/pages/moving_to_rails/">Evaluation: moving from Java to Ruby on Rails for the CenterNet rewrite</a></p>
<p style="font-weight:bold;font-family:Calibri;font-size:14pt;margin:0;">&nbsp;</p>
<p style="font-weight:bold;font-family:Calibri;font-size:14pt;margin:0;">PHP to Rails:</p>
<p style="font-family:Calibri;font-size:14pt;margin:0;"><b><a href="http://blog.outside.in/2008/01/22/outsidein-switches-to-rails/">outside.in » outside.in switches to Rails</a></b></p>
<p style="font-family:Calibri;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-family:Calibri;font-size:11pt;margin:0;">To be continuted….</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jacqueschirag.wordpress.com/32/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jacqueschirag.wordpress.com/32/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jacqueschirag.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jacqueschirag.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jacqueschirag.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jacqueschirag.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jacqueschirag.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jacqueschirag.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jacqueschirag.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jacqueschirag.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jacqueschirag.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jacqueschirag.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jacqueschirag.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jacqueschirag.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jacqueschirag.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jacqueschirag.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=32&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jacqueschirag.wordpress.com/2008/01/23/rails-vs-php-vs-java-vs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65f13ee634ff4da147ad6d65def8c59f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chirag</media:title>
		</media:content>
	</item>
		<item>
		<title>User profiles with restful_authentication</title>
		<link>http://jacqueschirag.wordpress.com/2007/12/22/user-profiles-with-restful_authentication/</link>
		<comments>http://jacqueschirag.wordpress.com/2007/12/22/user-profiles-with-restful_authentication/#comments</comments>
		<pubDate>Sat, 22 Dec 2007 03:27:40 +0000</pubDate>
		<dc:creator>Chirag Patel</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://jacqueschirag.wordpress.com/2007/12/22/user-profiles-with-restful_authentication/</guid>
		<description><![CDATA[&#160; Error when updating the user from a form ActiveRecord::RecordInvalid (Validation failed: Password confirmation can&#8217;t be blank, Password is too short (minimum is 4 characters), Password can&#8217;t be blank): &#160; &#160; &#160; Suggestion It&#8217;s probably because of the restrictions on the User model (attr_accessible or attr_protected, in particular). But allowing users access to any part [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=31&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="font-family:Consolas;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-weight:bold;font-family:Calibri;font-size:20pt;margin:0;">Error when updating the user from a form</p>
<p style="font-family:Consolas;font-size:11pt;margin:0;"> ActiveRecord::RecordInvalid (Validation failed: Password confirmation can&#8217;t be blank, Password is too short (minimum is 4 characters), Password can&#8217;t be blank):</p>
<p style="font-family:Consolas;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-family:Consolas;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-family:arial;font-size:12pt;color:black;margin:0;">&nbsp;</p>
<p style="font-weight:bold;font-family:Calibri;font-size:20pt;margin:0;"><a href="http://www.railsforum.com/viewtopic.php?pid=47316">Suggestion</a></p>
<p style="font-family:arial;font-size:12pt;color:black;margin:0;">It&#8217;s probably because of the restrictions on the User model (attr_accessible or attr_protected, in particular). But allowing users access to any part of the User model via mass assignment is dangerous. That&#8217;s why many people create a separate Profile model and link it via a 1:1 (belongs_to, has_one) relationship.</p>
<p style="font-family:arial;font-size:12pt;color:black;margin:0;">&nbsp;</p>
<p style="font-family:arial;font-size:12pt;color:black;margin:0;">&nbsp;</p>
<p style="font-weight:bold;font-family:Calibri;font-size:20pt;margin:0;">Solution</p>
<p style="font-family:arial;font-size:12pt;color:black;margin:0;"> Coming soon</p>
<p style="font-family:arial;font-size:12pt;color:black;margin:0;">&nbsp;</p>
<p style="font-family:Consolas;font-size:11pt;margin:0;">&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jacqueschirag.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jacqueschirag.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jacqueschirag.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jacqueschirag.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jacqueschirag.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jacqueschirag.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jacqueschirag.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jacqueschirag.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jacqueschirag.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jacqueschirag.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jacqueschirag.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jacqueschirag.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jacqueschirag.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jacqueschirag.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jacqueschirag.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jacqueschirag.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=31&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jacqueschirag.wordpress.com/2007/12/22/user-profiles-with-restful_authentication/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65f13ee634ff4da147ad6d65def8c59f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chirag</media:title>
		</media:content>
	</item>
		<item>
		<title>Linux commands to install ImageMagick and RMagick</title>
		<link>http://jacqueschirag.wordpress.com/2007/12/19/linux-commands-to-install-imagemagick-and-rmagick/</link>
		<comments>http://jacqueschirag.wordpress.com/2007/12/19/linux-commands-to-install-imagemagick-and-rmagick/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 01:19:00 +0000</pubDate>
		<dc:creator>Chirag Patel</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://jacqueschirag.wordpress.com/2007/12/19/linux-commands-to-install-imagemagick-and-rmagick/</guid>
		<description><![CDATA[This is what I had to do to get it to work on CentOS 5. For some reason, FreeType would not work with yum so I built it from scratch. I&#8217;m not sure if the all the &#8220;yum install&#8221;s were needed, but I did it anyway. #yum install freetype &#8212; did not work cd /usr/local/src [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=30&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h4><a href="//C:/chirag/files/settings/onenote/Work%20Notebook/HaloRoR%20Code/General%20UI.one#RMagick%20on%20Linux,%20*BSD,%20or%20Cygwin&amp;section-id=%7B93B174E8-5400-424A-9031-AB5CA844D63F%7D&amp;page-id=%7B08156140-3C18-4093-8C2D-8ECDB72D7EA3%7D&amp;end"></a>This is what I had to do to get it to work on CentOS 5. For some reason, FreeType would not work with yum so I built it from scratch. I&#8217;m not sure if the all the &#8220;yum install&#8221;s were needed, but I did it anyway.</h4>
<p style="font-family:Consolas;font-size:10pt;margin:0;">#yum install freetype &#8212; did not work</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">cd /usr/local/src</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">wget <a href="http://download.savannah.gnu.org/releases/freetype/">http://download.savannah.gnu.org/releases/freetype/</a><a href="http://download.savannah.gnu.org/releases/freetype/freetype-2.3.5.tar.gz">freetype-2.3.5.tar.gz</a></p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">tar xvzf freetype-2.3.5.tar.gz</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">./configure</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">make</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">make install</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">&nbsp;</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">yum install glib<br />
yum install glib2<br />
yum install libpng<br />
yum install libjpeg<br />
yum install libtiff<br />
yum install ghostscript<br />
yum install freetype</p>
<p style="font-family:Calibri;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">cd /usr/local/src</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">wget <a href="http://image_magick.veidrodis.com/image_magick/">http://image_magick.veidrodis.com/image_magick/</a>ImageMagick.tar.gz</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">tar xvzf ImageMagick.tar.gz</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">cd ImageMagick-X.Y.Z</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">./configure &#8211;disable-static &#8211;with-modules &#8211;without-perl &#8211;without-magick-plus-plus &#8211;with-quantum-depth=8 CFLAGS=-fPIC</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">make</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">make install</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">&nbsp;</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">wget <a href="http://files.rubyforge.mmmultiworks.com/rmagick/RMagick-1.15.11.tar.gz">http://files.rubyforge.mmmultiworks.com/rmagick/RMagick-1.15.11.tar.gz</a></p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">tar zxvf RMagick-1.15.11.tar.gz</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">cd RMagick-1.15.4</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">./configure</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">export LD_LIBRARY_PATH=/usr/local/lib</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">echo $LD_LIBRARY_PATH</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">make</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">make install</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">&nbsp;</p>
<p style="font-family:Consolas;font-size:10pt;color:#00009a;margin:0;">&nbsp;</p>
<p style="font-family:Consolas;font-size:10pt;color:#00009a;margin:0;">#test Rmagick in Rails</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;"><span style="color:#00009a;">root# </span><span style="color:#993300;">ruby script/console</span></p>
<p style="font-family:Consolas;font-size:10pt;margin:0;"><span style="color:#00009a;">irb(main):001:0&gt; </span><span style="color:#993300;">require &#8216;RMagick&#8217;</span></p>
<p style="font-family:Consolas;font-size:10pt;margin:0;"><span style="color:#00009a;">irb(main):002:0&gt; </span><span style="color:#993300;">include Magick</span></p>
<p style="font-family:Consolas;font-size:10pt;color:#00009a;margin:0;">=&gt; Object</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;"><span style="color:#00009a;">irb(main):003:0&gt; </span><span style="color:#993300;">img = ImageList.new &#8220;test.jpg&#8221;</span></p>
<p style="font-family:Consolas;font-size:10pt;color:#00009a;margin:0;">=&gt; [test.jpg JPEG 10x11 DirectClass 8-bit 391b]</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;"><span style="color:#00009a;">irb(main):004:0&gt; </span><span style="color:#993300;">img.write &#8220;test.png&#8221;</span></p>
<p style="font-family:Consolas;font-size:10pt;color:#00009a;margin:0;">=&gt; [test.jpg=&gt;test.png JPEG 10x11 DirectClass 8-bit]</p>
<p style="font-family:Consolas;font-size:10pt;color:#00009a;margin:0;">irb(main):005:0&gt;</p>
<p style="font-family:Consolas;font-size:10pt;margin:0;">&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jacqueschirag.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jacqueschirag.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jacqueschirag.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jacqueschirag.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jacqueschirag.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jacqueschirag.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jacqueschirag.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jacqueschirag.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jacqueschirag.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jacqueschirag.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jacqueschirag.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jacqueschirag.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jacqueschirag.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jacqueschirag.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jacqueschirag.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jacqueschirag.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=30&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jacqueschirag.wordpress.com/2007/12/19/linux-commands-to-install-imagemagick-and-rmagick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65f13ee634ff4da147ad6d65def8c59f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chirag</media:title>
		</media:content>
	</item>
		<item>
		<title>&#8220;Multiple default values&#8221; migration error with PostgreSQL 8.2.5</title>
		<link>http://jacqueschirag.wordpress.com/2007/12/16/multiple-default-values-migration-error-with-postgresql-825/</link>
		<comments>http://jacqueschirag.wordpress.com/2007/12/16/multiple-default-values-migration-error-with-postgresql-825/#comments</comments>
		<pubDate>Sun, 16 Dec 2007 06:16:25 +0000</pubDate>
		<dc:creator>Chirag Patel</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://jacqueschirag.wordpress.com/2007/12/16/multiple-default-values-migration-error-with-postgresql-825/</guid>
		<description><![CDATA[PostgreSQL 8.2.5 error == CreateHeartrates: migrating ================================================ &#8211; create_table(:heartrates) NOTICE: CREATE TABLE will create implicit sequence &#8220;heartrates_id_seq&#8221; for serial column &#8220;heartrates.id&#8221; rake aborted! PGError: ERROR: multiple default values specified for column &#8220;id&#8221; of table &#8220;heartrates&#8221; : CREATE TABLE heartrates (&#8220;id&#8221; serial primary key DEFAULT NULL, &#8220;user_id&#8221; integer DEFAULT NULL, &#8220;timestamp&#8221; timestamp with time zone DEFAULT [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=29&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="font-weight:bold;font-family:Consolas;font-size:14pt;color:#993300;margin:0;">PostgreSQL 8.2.5 error</p>
<p style="font-family:Consolas;font-size:11pt;margin:0;">== CreateHeartrates: migrating ================================================</p>
<p style="font-family:Consolas;font-size:11pt;margin:0;"><span> </span>&#8211; create_table(:heartrates)</p>
<p style="font-family:Consolas;font-size:11pt;margin:0;"><span> </span>NOTICE:<span>  </span>CREATE TABLE will create implicit sequence &#8220;heartrates_id_seq&#8221; for serial column &#8220;heartrates.id&#8221;</p>
<p style="font-family:Consolas;font-size:11pt;margin:0;"><span> </span>rake aborted!</p>
<p style="font-family:Consolas;font-size:11pt;margin:0;"><span style="background:aqua none repeat scroll 0 50%;">PGError: ERROR:<span>  </span>multiple default values specified for column &#8220;id&#8221; of table &#8220;heartrates&#8221;</span></p>
<p style="font-family:Consolas;font-size:11pt;margin:0;"><span> </span>: CREATE TABLE heartrates (&#8220;id&#8221; serial primary key DEFAULT NULL, &#8220;user_id&#8221; integer DEFAULT NULL, &#8220;timestamp&#8221; timestamp with time zone DEFAULT NULL, &#8220;heartrate&#8221; smallint NOT NULL)</p>
<p style="font-family:Consolas;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-family:Consolas;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-weight:bold;font-family:Consolas;font-size:14pt;color:#993300;margin:0;">Solution</p>
<p style="font-family:Calibri;font-size:11pt;margin:0;">I don&#8217;t see the above error on my Lenovo Windows machine because it&#8217;s running PostgreSQL 8.2.4. The issue occurs with PostgreSQL 8.2.5</p>
<p style="font-family:Calibri;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-family:Calibri;font-size:11pt;margin:0;">Add this to the create table migration</p>
<p style="font-size:11pt;margin:0 0 0 0.375in;">&nbsp;</p>
<p style="font-size:11pt;margin:0 0 0 0.375in;"><span style="font-family:Consolas;">t.column :id, :primary_key, :null =&gt; false</span><span style="font-family:Calibri;"> </span></p>
<p style="font-family:Calibri;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-family:Calibri;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-family:Calibri;font-size:11pt;margin:0;">This is probably the simplest way to deal with this defect.</p>
<p style="font-family:Calibri;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-family:Calibri;font-size:11pt;margin:0;">&nbsp;</p>
<p style="font-family:Calibri;margin:0;"><strong><span style="font-size:12pt;">Post from: </span><a href="http://dev.rubyonrails.org/ticket/10072"><span style="font-size:12pt;">Migrations and PostgreSQL Primary Keys) &#8211; Rails Trac &#8211; Trac</span></a><span style="font-size:11pt;">:</span></strong></p>
<p style="font-family:Calibri;font-size:11pt;margin:0 0 0 0.375in;">I tried to find a good place to patch the code, but everywhere I did, I could easily imagine someone yelling, &#8220;you can&#8217;t touch that&#8221;!</p>
<p style="font-family:Calibri;font-size:11pt;margin:0 0 0 0.375in;">&nbsp;</p>
<p style="font-family:Calibri;font-size:11pt;margin:0 0 0 0.375in;">For instance, if scheme_definitions.rb&#8217;s primary_key could set :null =&gt; false, then everyone should be happy, even other db&#8217;s. Except, that of course you change all db&#8217;s to &#8216;NOT NULL&#8217; versus &#8216;DEFAULT NULL&#8217;. I don&#8217;t know why you&#8217;d want to say &#8216;DEFAULT NULL&#8217; though, it seems vaguely wrong.</p>
<p style="font-family:Calibri;font-size:11pt;margin:0 0 0 0.375in;">&nbsp;</p>
<p style="font-family:Calibri;font-size:11pt;margin:0 0 0 0.375in;">This seems to be still in rails 2.0 too, and is still in 1.2.6.</p>
<p style="font-family:Calibri;font-size:11pt;margin:0 0 0 0.375in;">-Adam</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jacqueschirag.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jacqueschirag.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jacqueschirag.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jacqueschirag.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jacqueschirag.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jacqueschirag.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jacqueschirag.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jacqueschirag.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jacqueschirag.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jacqueschirag.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jacqueschirag.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jacqueschirag.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jacqueschirag.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jacqueschirag.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jacqueschirag.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jacqueschirag.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=29&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jacqueschirag.wordpress.com/2007/12/16/multiple-default-values-migration-error-with-postgresql-825/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65f13ee634ff4da147ad6d65def8c59f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chirag</media:title>
		</media:content>
	</item>
		<item>
		<title>Keep getting kicked off #rubyonrails IRC channel?</title>
		<link>http://jacqueschirag.wordpress.com/2007/10/03/keep-getting-kicked-of-rubyonrails-irc-channel/</link>
		<comments>http://jacqueschirag.wordpress.com/2007/10/03/keep-getting-kicked-of-rubyonrails-irc-channel/#comments</comments>
		<pubDate>Wed, 03 Oct 2007 00:55:32 +0000</pubDate>
		<dc:creator>Chirag Patel</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://jacqueschirag.wordpress.com/2007/10/03/keep-getting-kicked-of-rubyonrails-irc-channel/</guid>
		<description><![CDATA[This is what I did when I was trying to connect to #rubyonrails channel and kept getting thrown into #overflow. I executed the following command twice (while I was still in #overflow) /msg nickserv register &#60;your-password&#62; The first time I ran it, I got the following message: *** -NickServ- Please wait 120 seconds before using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=26&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is what I did when I was trying to connect to <code>#rubyonrails</code> channel and kept getting thrown into <code>#overflow</code>.</p>
<p>I executed the following command <em>twice </em>(while I was still in <code>#overflow</code>)</p>
<blockquote><p><code>/msg nickserv register &lt;your-password&gt;</code><br />
The first time I ran it, I got the following message:</p>
<blockquote><p><code>*** -NickServ- Please wait 120 seconds before using REGISTER again</code></p></blockquote>
<p>I waited a while and got this after running it a second time</p>
<blockquote><p><code>:*** -NickServ- Your nickname is now registered with the password [&lt;my-password&gt; ].</code></p></blockquote>
</blockquote>
<p>Last, I ran the following command for good measure:</p>
<blockquote><p><code>/msg nickserv register &lt;your-password&gt; </code></p></blockquote>
<p>And got the following result:</p>
<blockquote><p><code>*** -NickServ- You have already identified</code></p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jacqueschirag.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jacqueschirag.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jacqueschirag.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jacqueschirag.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jacqueschirag.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jacqueschirag.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jacqueschirag.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jacqueschirag.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jacqueschirag.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jacqueschirag.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jacqueschirag.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jacqueschirag.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jacqueschirag.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jacqueschirag.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jacqueschirag.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jacqueschirag.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jacqueschirag.wordpress.com&amp;blog=1299580&amp;post=26&amp;subd=jacqueschirag&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jacqueschirag.wordpress.com/2007/10/03/keep-getting-kicked-of-rubyonrails-irc-channel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/65f13ee634ff4da147ad6d65def8c59f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Chirag</media:title>
		</media:content>
	</item>
	</channel>
</rss>
