<?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>Void Pointer &#187; Programming</title>
	<atom:link href="http://blog.anands.net/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.anands.net</link>
	<description>10mm and be there.</description>
	<lastBuildDate>Sun, 16 Oct 2011 21:21:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>If your Ajaxed form field disappears during form submission</title>
		<link>http://blog.anands.net/2010/07/08/if-your-ajaxed-form-field-disappears-during-form-submission/</link>
		<comments>http://blog.anands.net/2010/07/08/if-your-ajaxed-form-field-disappears-during-form-submission/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 22:39:54 +0000</pubDate>
		<dc:creator>anand</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://blog.anands.net/?p=2337</guid>
		<description><![CDATA[I spent half a day breaking my head with this, so this might help someone. I had two select boxes inside a HTML form, selecting one updates the values in the other select box.  I used Ajax and a server side call to do this updation, which works fine.  But when I submit the form, [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>I spent half a day breaking my head with this, so this might help someone.</p>
<p>I had two select boxes inside a HTML form, selecting one updates the values in the other select box.  I used Ajax and a server side call to do this updation, which works fine.  But when I submit the form, the new select tag is missing in the form parameters.</p>
<p>If you run into a situation like this, the answer may lie in your HTML form.</p>
<p>My code did something like this:</p>
<pre>&lt;table&gt;
  &lt;form&gt;
    &lt;tr&gt;
      &lt;td&gt;
        &lt;div id="foo"&gt;
        &lt;/div&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
   &lt;/form&gt;
&lt;/table&gt;</pre>
<p>Notice the &lt;form&gt; inside the &lt;table&gt;?  That was the culprit.</p>
<p>Chrome developer console dumped this message which helped.</p>
<p style="text-align: left;"><a href="http://blog.anands.net/wp-content/uploads/2010/07/Screen-shot-2010-07-08-at-3.33.01-PM.png" rel="lightbox[2337]"><img class="aligncenter size-full wp-image-2338" title="Screen shot 2010-07-08 at 3.33.01 PM" src="http://blog.anands.net/wp-content/uploads/2010/07/Screen-shot-2010-07-08-at-3.33.01-PM.png" alt="" width="1276" height="24" /></a></p>
<p style="text-align: left;">Once I flipped the order and moved the &lt;form&gt; to encapsulate the &lt;table&gt;, that fixed the bug <img src='http://blog.anands.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2010/07/08/if-your-ajaxed-form-field-disappears-during-form-submission/" target="_blank"><img src="http://blog.anands.net/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2010/07/08/if-your-ajaxed-form-field-disappears-during-form-submission/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.anands.net/2010/07/08/if-your-ajaxed-form-field-disappears-during-form-submission/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Migrating a rails app from Rails 2.3.8 to Rails 3.0.0 Beta 4</title>
		<link>http://blog.anands.net/2010/06/30/migrating-a-rails-app-from-rails-2-3-8-to-rails-3-0-0-beta-4/</link>
		<comments>http://blog.anands.net/2010/06/30/migrating-a-rails-app-from-rails-2-3-8-to-rails-3-0-0-beta-4/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 06:03:31 +0000</pubDate>
		<dc:creator>anand</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://blog.anands.net/2010/06/30/migrating-a-rails-app-from-rails-2-3-8-to-rails-3-0-0-beta-4/</guid>
		<description><![CDATA[I recently migrated a Rails 2.3.8 app to Rails 3.0.0Beta4. Here is what I learned through that exercise. 1) Install rails sudo gem install rails --pre 2) Install rails upgrade helper plugin rails plugin install git://github.com/rails/rails_upgrade.git script/plugin install git://github.com/rails/rails_upgrade.git /Library/Ruby/Site/1.8/rubygems.rb:233:in `activate': can't activate rails (= 2.3.8, runtime) for [], already activated rails-3.0.0.beta4 for [] (Gem::LoadError) [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p><span style="font-family: 'Trebuchet MS'; font-size: medium;"><span style="font-size: 16px;">I recently migrated a Rails 2.3.8 app to Rails 3.0.0Beta4. Here is what I learned through that exercise.</span></span></p>
<p><span style="font-family: 'Trebuchet MS'; font-size: 16px;">1) Install rails</span></p>
<pre>sudo gem install rails --pre</pre>
<p style="font: 12.0px 'Andale Mono';"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">2) Install rails upgrade helper plugin</span></p>
<pre>rails plugin install git://github.com/rails/rails_upgrade.git
script/plugin install git://github.com/rails/rails_upgrade.git
/Library/Ruby/Site/1.8/rubygems.rb:233:in `activate': can't activate rails (= 2.3.8, runtime) for [], already activated rails-3.0.0.beta4 for [] (Gem::LoadError)</pre>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">Couldn’t proceed with that error. At this point, after spending an hour, I gave up on trying to move my existing Rails2.x app as is to Rails3 since it is clear that the boot process is different for Rails3 and keeping the existing boot.rb etc will create more chaos.</span></p>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">3) Create a new rails 3.0.0 application</span></p>
<pre><span style="font-family: 'Courier New'; font-size: large;"><span style="font-size: 18px;">rails new app_30
cd app_30</span></span></pre>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">Copy over app/controllers, app/views, app/lib, app/models, config/database.yml from old to new</span></p>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">4) Start server script/rails server (script/server won&#8217;t work)</span></p>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">5) Add</span> <span style="font-family: 'Courier New'; font-size: large;"><span style="font-size: 18px;">gem &#8216;mysql&#8217;, &#8217;2.8.1&#8242;</span></span> <span style="font-family: 'Trebuchet MS'; font-size: 16px;">to gemfile</span></p>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">6) Set the root correctly in routes.rb file. For some reason it doesn’t find default controller.</span></p>
<pre>root :to =&gt; "nav#index"</pre>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">7) Install all the missing gems and add them to gemfile with appropriate versions, if need be.</span> <span style="font-family: 'Trebuchet MS'; font-size: 16px;">If you have legacy plugins, the newer gems don’t seem to work correctly, stick to the legacy plugins and move them over to the new app.</span></p>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: 16px;"> <img src='http://blog.anands.net/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> paginate_by_sql breaks since add_limit! is removed from</span> <span style="font-family: 'Courier New'; font-size: large;"><span style="font-size: 18px;">ActiveRecord::Base</span></span><span style="font-family: 'Trebuchet MS'; font-size: 16px;">.</span> <span style="font-family: 'Trebuchet MS'; font-size: 16px;">Fix paginate by sql to do this:</span></p>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;">
<pre>module ActiveRecord
class Base
<span style="font-family: 'Courier New'; font-size: 18px;">  </span><span style="font-family: 'Courier New'; font-size: 18px;">def self.find_by_sql_with_limit(sql, offset, limit)
</span><span style="font-family: 'Courier New'; font-size: 18px;">  </span> <span style="font-family: 'Courier New'; font-size: 18px;">sql = sanitize_sql(sql)
</span><span style="font-family: 'Courier New'; font-size: 18px;">  </span> <span style="font-family: 'Courier New'; font-size: 18px;">find_by_sql(sql + " LIMIT #{offset},#{limit}")
</span><span style="font-family: 'Courier New'; font-size: 18px;">  </span><span style="font-family: 'Courier New'; font-size: 18px;">end
</span><span style="font-family: 'Courier New'; font-size: 18px;">
  </span><span style="font-family: 'Courier New'; font-size: 18px;">def self.count_by_sql_wrapping_select_query(sql)
</span>     sql = sanitize_sql(sql)
<span style="font-family: 'Andale Mono';"><span style="font-family: 'Courier New'; font-size: 18px;">  </span></span> <span style="font-family: 'Courier New'; font-size: 18px;">count_by_sql("select count(*) from (#{sql}) as x")
</span><span style="font-family: 'Courier New'; font-size: 18px;">  </span><span style="font-family: 'Courier New'; font-size: 18px;">end
</span>end
end</pre>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">9) Add the following two routes to routes.rb. Without these two routes /controller/action is not recognized by default.</span></p>
<pre># Install the default route as the lowest priority.</pre>
<p style="font: 12.0px 'Andale Mono';">
<pre>map.connect ':controller/:action/:id.:format'</pre>
<p><span style="font-family: 'Courier New'; font-size: large;"> </span></p>
<pre>map.connect ':controller/:action/:id'</pre>
<p style="font: 12.0px 'Andale Mono';"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">10)</span> <span style="font-family: 'Courier New'; font-size: large;"><span style="font-size: 18px;">ActionDispatch::Cookies::CookieOverflow</span></span> <span style="font-family: 'Trebuchet MS'; font-size: 16px;">error. Set your session_store to be active_record_store.</span> <span style="font-family: 'Trebuchet MS'; font-size: 16px;">Change this in config/initializers/session_store.rb</span></p>
<pre><span style="letter-spacing: 0.0px;"><span style="font-family: 'Courier New'; font-size: large;"><span style="font-size: 18px;">Rails.application.config.session_store :active_record_store, :key =&gt; '_mygreatapp_30_session'</span></span></span></pre>
<pre><span style="font-family: 'Trebuchet MS'; font-size: 16px;">11) Rails generated HTML tags are HTML escaped by default. So if you did something like</span></pre>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font: 12.0px 'Andale Mono'; letter-spacing: 0.0px;"><span style="font-family: 'Trebuchet MS'; font-size: medium;"> </span><span style="font-family: 'Courier New'; font-size: large;"><span style="font-size: 18px;">&lt;%=link_to “&amp;nbsp;foobar” &#8230; %&gt;</span></span><span style="font-size: 16px;">,</span></span> <span style="letter-spacing: 0.0px;"><span style="font-family: 'Trebuchet MS'; font-size: medium;"><span style="font-size: 16px;">the &amp;nbsp; would be escaped and represented literally on screen.</span></span></span></p>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: medium;"><br />
</span></p>
<p style="font: 12.0px 'Helvetica Neue';"><span style="letter-spacing: 0.0px;"><span style="font-family: 'Trebuchet MS'; font-size: medium;"><span style="font-size: 16px;">Likewise, if you had code that did</span></span></span></p>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font: 12.0px 'Andale Mono'; letter-spacing: 0.0px;"><span style="font-family: 'Courier New'; font-size: large;"><span style="font-size: 18px;">&lt;%= getImage %&gt;</span></span></span> <span style="letter-spacing: 0.0px;"><span style="font-family: 'Trebuchet MS'; font-size: medium;"><span style="font-size: 16px;">and getImage helper returned</span></span></span> <span style="font: 12.0px 'Andale Mono'; letter-spacing: 0.0px;"><span style="font-family: 'Courier New'; font-size: large;"><span style="font-size: 18px;">“&lt;a href=”&#8230;”&gt;&lt;img src=””/&gt;&lt;/a&gt;</span></span></span><span style="letter-spacing: 0.0px;"><span style="font-family: 'Trebuchet MS'; font-size: medium;"><span style="font-size: 16px;">, the returned string would be escaped. Use</span></span></span> <span style="font: 12.0px 'Andale Mono'; letter-spacing: 0.0px;"><span style="font-family: 'Courier New'; font-size: large;"><span style="font-size: 18px;">&lt;%= image_tag(getImage) %&gt;</span></span></span> <span style="letter-spacing: 0.0px;"><span style="font-family: 'Trebuchet MS'; font-size: medium;"><span style="font-size: 16px;">and change the getImage to return just the image path.</span></span></span></p>
<p style="font: 12.0px 'Helvetica Neue'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">12) If you are sure that the code is returning safe HTML, then do this:</span></p>
<pre><span style="font-family: 'Courier New'; font-size: large;"><span style="font-size: 18px;">&lt;%= helper_returning_html.html_safe %&gt;</span></span></pre>
<p style="font: 12.0px 'Andale Mono'; min-height: 14.0px;"><span style="font-family: 'Trebuchet MS'; font-size: 16px;">or</span></p>
<p style="font: 12.0px 'Andale Mono'; min-height: 14.0px;"><span style="font-family: 'Courier New'; font-size: large;"><span style="font-size: 18px;">&lt;%= raw helper_returning_html %&gt;</span></span></p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2010/06/30/migrating-a-rails-app-from-rails-2-3-8-to-rails-3-0-0-beta-4/" target="_blank"><img src="http://blog.anands.net/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2010/06/30/migrating-a-rails-app-from-rails-2-3-8-to-rails-3-0-0-beta-4/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.anands.net/2010/06/30/migrating-a-rails-app-from-rails-2-3-8-to-rails-3-0-0-beta-4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Blog changes done and sorry for the duplicates</title>
		<link>http://blog.anands.net/2009/04/13/blog-changes-done-and-sorry-for-the-duplicates/</link>
		<comments>http://blog.anands.net/2009/04/13/blog-changes-done-and-sorry-for-the-duplicates/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 14:10:15 +0000</pubDate>
		<dc:creator>anand</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[general]]></category>
		<category><![CDATA[notice]]></category>

		<guid isPermaLink="false">http://blog.anands.net/?p=987</guid>
		<description><![CDATA[I am done with all the blog changes I talked about in the previous post. The photoblog now exists under the unified blog. I also mirrored the two domains and then took it to the next level by switching the domains as well. http://blog.anands.net is now the unified blog URL and http://textblog.anands.net mirrors it. None [...]
Related posts:<ol>
<li><a href='http://blog.anands.net/2009/04/11/blog-changes/' rel='bookmark' title='Blog changes'>Blog changes</a> <small>I have had two blogs, a photoblog at http://blog.anands.net running...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I am done with all the <a href="http://blog.anands.net/2009/04/11/blog-changes/">blog changes</a> I talked about in the previous post.  The photoblog now exists under the unified blog.  I also mirrored the two domains and then took it to the next level by switching the domains as well.</p>
<p><a href="http://blog.anands.net">http://blog.anands.net</a> is now the unified blog URL and <a href="http://textblog.anands.net" class="broken_link">http://textblog.anands.net</a> mirrors it.  None of you have to change or update any of the RSS feeds, they should work automagically.</p>
<p>Getting this to work without breaking (any more) of the existing clients and permalinks out there was fun.  I learned way more about WordPress than I ever needed to <img src='http://blog.anands.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .  I have a couple of blog entries on how to migrate from PixelPost to WordPress and how to move WordPress from one sub-domain to another.  </p>
<p>Sorry for any of the duplicate posts in your RSS feeds, I could have avoided them with a little bit more careful planning, but I wasn&#8217;t thinking it through.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2009/04/13/blog-changes-done-and-sorry-for-the-duplicates/" target="_blank"><img src="http://blog.anands.net/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2009/04/13/blog-changes-done-and-sorry-for-the-duplicates/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><p>Related posts:<ol>
<li><a href='http://blog.anands.net/2009/04/11/blog-changes/' rel='bookmark' title='Blog changes'>Blog changes</a> <small>I have had two blogs, a photoblog at http://blog.anands.net running...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://blog.anands.net/2009/04/13/blog-changes-done-and-sorry-for-the-duplicates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to link your blog to Facebook and get thrown out</title>
		<link>http://blog.anands.net/2008/08/14/how-to-link-your-blog-to-facebook-and-get-thrown-out/</link>
		<comments>http://blog.anands.net/2008/08/14/how-to-link-your-blog-to-facebook-and-get-thrown-out/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 00:50:23 +0000</pubDate>
		<dc:creator>anand</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[fail]]></category>

		<guid isPermaLink="false">http://blog.anands.net/archives/196</guid>
		<description><![CDATA[The new facebook GUI has a feature where you can link the RSS feed of your blog to your profile. If you do that, every time you post a new entry in your blog, it gets added as a note. Of course, they allow only one blog RSS. In the simplest case, I have 3 [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>The new facebook GUI has a feature where you can link the RSS feed of your blog to your profile. If you do that, every time you post a new entry in your blog, it gets added as a note.</p>
<p>Of course, they allow only one blog RSS. In the simplest case, I have 3 RSS feeds, one for my <a href="http://blog.anands.net" title="photo blog">photo blog</a> and two for this blog [entries and comments]. I added my photo blog first &#8211; then changed my mind and added my text blog next. I wasn&#8217;t sure which of the two blogs I want to link to my account.</p>
<p>I wasn&#8217;t satisfied with this setup, so I wrote a <a href="http://pipes.yahoo.com/pipes/pipe.info?_id=mFcVR0Jq3RGSnGCG1L3fcQ" title="Yahoo Pipe">Yahoo Pipe</a> to link these 3 RSS feeds into one and used the RSS feed of the Pipe in my facebook profile.</p>
<p>Now, I didn&#8217;t realize two things.</p>
<p>a) Facebook&#8217;s RSS aggregation is stupid. Instead of fetching the last 20 [or 10] results alone, it fetches all the entries from your blogs the minute you add them.</p>
<p>b) They don&#8217;t really think that anyone would have more than one blog and if they did, they would have to experiment till they get it right.</p>
<p>So I got a warning message in facebook saying that my actions were in &#8216;violation&#8217; of facebook&#8217;s terms of use and my account might be disabled.</p>
<p>Of course, I was curious enough to find out what the heck I did wrong, so I hit the &#8216;Notes&#8217; page in my facebook profile.</p>
<p>Now I get a nice popup which says my Notes is blocked and the block will be removed whenever they deem fit. That dialog had a link to go back to the home page and a &#8216;Close&#8217; button.</p>
<p>Of course, I hit the &#8216;Close&#8217; button and I saw that my notes page was intact.</p>
<p>I should have probably left it there so that only my notes page was blocked but my profile wasn&#8217;t.</p>
<p>Of course I didn&#8217;t.</p>
<p>I tried to delete a note. I wanted to see if there is a way to delete all my notes and unblock my note page <img src='http://blog.anands.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>That caused facebook to log me out and disable my account.</p>
<p>So much for that new feature.</p>
<p>If anyone knows how to get back into facebook, let me know <img src='http://blog.anands.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2008/08/14/how-to-link-your-blog-to-facebook-and-get-thrown-out/" target="_blank"><img src="http://blog.anands.net/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2008/08/14/how-to-link-your-blog-to-facebook-and-get-thrown-out/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.anands.net/2008/08/14/how-to-link-your-blog-to-facebook-and-get-thrown-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cyclogz, a site for enthusiastic bikers</title>
		<link>http://blog.anands.net/2008/03/09/cyclogz-a-site-for-enthusiastic-bikers/</link>
		<comments>http://blog.anands.net/2008/03/09/cyclogz-a-site-for-enthusiastic-bikers/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 01:51:37 +0000</pubDate>
		<dc:creator>anand</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[cyclogz]]></category>

		<guid isPermaLink="false">http://blog.anands.net/archives/106</guid>
		<description><![CDATA[Subbu, a friend, has put up Cyclogz, a ruby on rails site for tracking biking statistics using Garmin GPS. Check it out. Share on FacebookNo related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.subbu.org">Subbu</a>, a friend, has put up <a href="http://www.cyclogz.com">Cyclogz</a>, a <a href="http://www.rubyonrails.org">ruby on rails</a> site for tracking biking statistics using Garmin GPS.</p>
<p>Check it out.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2008/03/09/cyclogz-a-site-for-enthusiastic-bikers/" target="_blank"><img src="http://blog.anands.net/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2008/03/09/cyclogz-a-site-for-enthusiastic-bikers/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.anands.net/2008/03/09/cyclogz-a-site-for-enthusiastic-bikers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails is a ghetto</title>
		<link>http://blog.anands.net/2008/01/01/rails-is-a-ghetto/</link>
		<comments>http://blog.anands.net/2008/01/01/rails-is-a-ghetto/#comments</comments>
		<pubDate>Tue, 01 Jan 2008 20:41:10 +0000</pubDate>
		<dc:creator>anand</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://blog.anands.net/archives/93</guid>
		<description><![CDATA[Zed rips into the rails community Share on FacebookNo related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<p>Zed <a href="http://www.zedshaw.com/rants/rails_is_a_ghetto.html" class="broken_link">rips into the rails</a> community <img src='http://blog.anands.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2008/01/01/rails-is-a-ghetto/" target="_blank"><img src="http://blog.anands.net/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2008/01/01/rails-is-a-ghetto/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.anands.net/2008/01/01/rails-is-a-ghetto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails v2.0 undefined method `server_settings=&#8217; for ActionMailer::Base:Class (NoMethodError)</title>
		<link>http://blog.anands.net/2007/12/07/rails-v20-undefined-method-server_settings-for-actionmailerbaseclass-nomethoderror/</link>
		<comments>http://blog.anands.net/2007/12/07/rails-v20-undefined-method-server_settings-for-actionmailerbaseclass-nomethoderror/#comments</comments>
		<pubDate>Sat, 08 Dec 2007 04:52:12 +0000</pubDate>
		<dc:creator>anand</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://blog.anands.net/archives/89</guid>
		<description><![CDATA[The first thing that bit me after moving to Rails V2.0 was action_mailer settings that failed: undefined method `server_settings=&#8217; for ActionMailer::Base:Class (NoMethodError) server_settings has been renamed to smtp_settings Change your environment.rb to: config.action_mailer.smtp_settings = { &#8230;. } That fixed the problem. Share on FacebookNo related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<p>The first thing that bit me after moving to Rails V2.0 was action_mailer settings that failed:</p>
<p>undefined method `server_settings=&#8217; for ActionMailer::Base:Class (NoMethodError)</p>
<p>server_settings has been renamed to smtp_settings</p>
<p>Change your environment.rb to:</p>
<p>  config.action_mailer.smtp_settings = {<br />
   &#8230;.<br />
}</p>
<p>That fixed the problem.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2007/12/07/rails-v20-undefined-method-server_settings-for-actionmailerbaseclass-nomethoderror/" target="_blank"><img src="http://blog.anands.net/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2007/12/07/rails-v20-undefined-method-server_settings-for-actionmailerbaseclass-nomethoderror/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.anands.net/2007/12/07/rails-v20-undefined-method-server_settings-for-actionmailerbaseclass-nomethoderror/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Rails v2.0 released</title>
		<link>http://blog.anands.net/2007/12/07/rails-v20-released/</link>
		<comments>http://blog.anands.net/2007/12/07/rails-v20-released/#comments</comments>
		<pubDate>Sat, 08 Dec 2007 02:47:02 +0000</pubDate>
		<dc:creator>anand</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://blog.anands.net/archives/88</guid>
		<description><![CDATA[http://weblog.rubyonrails.org/2007/12/7/rails-2-0-it-s-done. Awesome news. Share on FacebookNo related posts.
No related posts.]]></description>
			<content:encoded><![CDATA[<p><a href="http://weblog.rubyonrails.org/2007/12/7/rails-2-0-it-s-done">http://weblog.rubyonrails.org/2007/12/7/rails-2-0-it-s-done</a>.  Awesome news.</p>
<p class="facebook"><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2007/12/07/rails-v20-released/" target="_blank"><img src="http://blog.anands.net/wp-content/plugins/add-to-facebook-plugin/facebook_share_icon.gif" alt="Share on Facebook" title="Share on Facebook" /></a><a href="http://www.facebook.com/share.php?u=http://blog.anands.net/2007/12/07/rails-v20-released/" target="_blank" title="Share on Facebook">Share on Facebook</a></p><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.anands.net/2007/12/07/rails-v20-released/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
