<?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>nandayadav.com</title>
	<atom:link href="http://nandayadav.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://nandayadav.com</link>
	<description>personal blog</description>
	<lastBuildDate>Wed, 10 Mar 2010 18:32:43 +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>jruby-openssl gem issue</title>
		<link>http://nandayadav.com/2010/03/04/jruby-openssl-gem-issue-3/</link>
		<comments>http://nandayadav.com/2010/03/04/jruby-openssl-gem-issue-3/#comments</comments>
		<pubDate>Fri, 05 Mar 2010 05:04:09 +0000</pubDate>
		<dc:creator>nanda</dc:creator>
				<category><![CDATA[processing]]></category>
		<category><![CDATA[jruby]]></category>
		<category><![CDATA[ruby-processing]]></category>

		<guid isPermaLink="false">http://nandayadav.com/?p=69</guid>
		<description><![CDATA[While playing with the awesome Ruby-processing library recently, I had issue loading any rubygem inside the processing code. Whenever I would try to load one, it would throw this Jruby exception:
Exception in thread "Animation Thread" file:/*/.rvm/gems/jruby-1.4.0/gems/ruby-processing-1.0.8/lib/core/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/ssl.rb:8: OpenSSL::SSL requires the jruby-openssl gem (LoadError)
After manually installing and removing the jruby-openssl gem, it still didnt fix the issue. [...]]]></description>
			<content:encoded><![CDATA[<p>While playing with the awesome <a href="http://github.com/jashkenas/ruby-processing">Ruby-processing</a> library recently, I had issue loading any rubygem inside the processing code. Whenever I would try to load one, it would throw this Jruby exception:</p>
<p><code>Exception in thread "Animation Thread" file:/*/.rvm/gems/jruby-1.4.0/gems/ruby-processing-1.0.8/lib/core/jruby-complete.jar!/META-INF/jruby.home/lib/ruby/site_ruby/shared/jruby/openssl/autoloads/ssl.rb:8: OpenSSL::SSL requires the jruby-openssl gem (LoadError)</code></p>
<p><span id="more-69"></span>After manually installing and removing the jruby-openssl gem, it still didnt fix the issue. As it turns out, the latest version, 0.0.6 wasn&#8217;t playing nice. So gem install jruby-openssl -v=0.0.3 did the trick. Just in case someone out there comes across similar issue. Also, since Ruby-processing requires rubygems to be installed as jruby gem, I decided to use rvm and installed jruby from it and installed the processing library and gems in that jruby environment. That way you won&#8217;t have to do some custom stuff for loading gems as mentioned here:</p>
<p><a href="http://wiki.github.com/jashkenas/ruby-processing/using-rubygems">http://wiki.github.com/jashkenas/ruby-processing/using-rubygems</a></p>
<p>Quick Update: After digging into the source code, I realized I could force it to use system jruby instead of the bundled one that comes with ruby-processing using &#8211;jruby flag. And that also fixed the jruby-openssl issue and dont have to use old version to make it work.</p>
]]></content:encoded>
			<wfw:commentRss>http://nandayadav.com/2010/03/04/jruby-openssl-gem-issue-3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Tibhar Nianmor Review</title>
		<link>http://nandayadav.com/2009/09/02/tibhar-nianmor-review/</link>
		<comments>http://nandayadav.com/2009/09/02/tibhar-nianmor-review/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 15:11:29 +0000</pubDate>
		<dc:creator>nanda</dc:creator>
				<category><![CDATA[random]]></category>
		<category><![CDATA[table tennis]]></category>
		<category><![CDATA[nianmor]]></category>
		<category><![CDATA[tibhar]]></category>

		<guid isPermaLink="false">http://nandayadav.com/?p=40</guid>
		<description><![CDATA[Recently, I got to try out this new Tibhar rubber that has been hyped(maybe over-hyped) in Europe. The main selling point of course is unlike those ESN rubbers, Nianmor is made in Japan and can be a good rival to Tenergy series from Butterfly. Although I have used max version of Sinus and tenergy 05 [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I got to try out this new Tibhar rubber that has been hyped(maybe over-hyped) in Europe. The main selling point of course is unlike those ESN rubbers, Nianmor is made in Japan and can be a good rival to Tenergy series from Butterfly. Although I have used max version of Sinus and tenergy 05 before, for some reason I decided to pick 2.0 version Nianmor for my forehand(in Jpen).<span id="more-40"></span></p>
<ol>
<li>Gluing: I must admit, I had a really hard time getting this rubber to stick in, i used the same glue that i have been using all this time, tibar clean extra. The problem was the rubber had a distinct semi-dome shape when I took it out of the packaging, (the dome shape that super glued rubbers have). And that was even before applying any glue to it yet. I also made the mistake of not applying enough pressure on it after gluing and attaching to blade I guess and the internal tension of the rubber took over, I went to the play next day and saw part of the rubber had already come off. Now its better after regluing and putting it under books for few days. Here&#8217;s how it looks now<img class="aligncenter size-medium wp-image-41" title="photo" src="http://nandayadav.com/wp-content/uploads/2009/09/photo-225x300.jpg" alt="photo" width="225" height="300" /></li>
<li>Looping:   I felt this rubber definitely has more kick to it, compared to the Sinus. Looping, especially over the table was pretty easy and forgiving, it has a lower throw than tenergy 05 and I got used to it within minutues really. Since I was using 2.0 version I can&#8217;t say it was faster than tenergy05 for sure but it definitely felt fast. I think it has close enough spin that tenergy 05 generates, not higher though.</li>
<li>Serves: My serves were generating pretty good amount of spin whenever I wanted to, again, I wouldn&#8217;t say more than what tenergy05 was doing though.</li>
<li>Pushes: pushing/over the drops were pretty consistent as well</li>
<li>Blocking: I felt this is one dept where I liked it better than tenergy, because of lower throw blocking was more easier and consistent.</li>
<li>Overall: I think this is a pretty decent rubber for offensive game, but doesn&#8217;t warrant the price tag it carries. Tenergy series was quite pricy at first too and came down a bit later&#8230;hopefully tibhar will do the same..but for those who doesn&#8217;t like the throw of tenergy but want a similar spin and speed, I would say this rubber is definitely worth a try.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://nandayadav.com/2009/09/02/tibhar-nianmor-review/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Recaptcha undefined problem</title>
		<link>http://nandayadav.com/2009/08/13/recaptcha-undefined-problem/</link>
		<comments>http://nandayadav.com/2009/08/13/recaptcha-undefined-problem/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 19:17:24 +0000</pubDate>
		<dc:creator>nanda</dc:creator>
				<category><![CDATA[rails]]></category>
		<category><![CDATA[recaptcha]]></category>

		<guid isPermaLink="false">http://nandayadav.com/?p=22</guid>
		<description><![CDATA[There are various places where we have added recaptcha in our rails app. Afer deploying to staging environment, I realized it wasn&#8217;t working properly and Firebug captured this error:
Recaptcha is not defined
So comparing what could be different between my dev environment and the staging environment, I saw the portion of the app where recaptcha was [...]]]></description>
			<content:encoded><![CDATA[<p>There are various places where we have added recaptcha in our rails app. Afer deploying to staging environment, I realized it wasn&#8217;t working properly and Firebug captured this error:</p>
<p>Recaptcha is not defined<span id="more-22"></span></p>
<p>So comparing what could be different between my dev environment and the staging environment, I saw the portion of the app where recaptcha was failed a secure page. So the fix is rather simple:</p>
<blockquote><p><code><br />
&lt;%= captcha_tags(:ssl =&gt; true) %&gt;<br />
</code></p></blockquote>
<p>Furthermore, just to be on safe side, in other portions of the apps as well I was calling this captcha. So i added a helper method like this:</p>
<blockquote><p><code><br />
def recaptcha_tags_helper(options = {})<br />
options.merge!(:ssl =&gt; true) if request.ssl?<br />
recaptcha_tags(options)<br />
end<br />
</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://nandayadav.com/2009/08/13/recaptcha-undefined-problem/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Objective C/Cocoa Learning curve</title>
		<link>http://nandayadav.com/2009/04/01/objective-ccocoa-learning-curve/</link>
		<comments>http://nandayadav.com/2009/04/01/objective-ccocoa-learning-curve/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 06:02:09 +0000</pubDate>
		<dc:creator>nanda</dc:creator>
				<category><![CDATA[Objective-C]]></category>
		<category><![CDATA[iphone sdk]]></category>

		<guid isPermaLink="false">http://nandayadav.com/?p=15</guid>
		<description><![CDATA[Lately I have been getting pretty motivated to learn Objective-C and it&#8217;s been a fun process so far. However, having done Ruby and rails for over a year now, it&#8217;s definitely a challenge to grasp Objective-C. Ruby definitely spoils you, and I feel I have fallen in that trap and now slowly trying to get [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I have been getting pretty motivated to learn Objective-C and it&#8217;s been a fun process so far. However, having done Ruby and rails for over a year now, it&#8217;s definitely a challenge to grasp Objective-C. Ruby definitely spoils you, and I feel I have fallen in that trap and now slowly trying to get out of the hole. On more than one occasion I have been tempted to do this:<span id="more-15"></span></p>
<p>UIImageView *image = [self findImage:touchLocation];</p>
<p>image.methods</p>
<p>Then I recall this is not ruby, <img src='http://nandayadav.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Of course, there&#8217;s the quick &#8216;Jump to definition&#8217; feature of Xcode that helps a lot.</p>
<p>As far as the convention quirks goes, it took me a while to whether use BOOL values as YES/NO or TRUE/FALSE or true/false. I switched back and forth for a while going by forums and what not, I was doing things like:</p>
<p>valid_move = YES</p>
<p>if valid_move == YES</p>
<p>Until I found a sample code from ADC, and they use it like:</p>
<p>valid_move = YES</p>
<p>if (valid_move) //How convenient, why not just set value as TRUE, I still don&#8217;t get the YES/NO macros for BOOL. Actual value stored is either 0 or 1 of course. Oh well, if it&#8217;s coming from sample code, I might as well follow the same convention. The challenge so far has been just getting used to the syntax and getting used to convention more than anything and also brush up on C pointers.</p>
<p>Although there are few blogs/tuts on iphone sdk and objective-C, I think the sample codes from ADC are the best source to learn what the SDK has to offer and how to use all the libraries. Besides getting hand of coding style, convention, just running the sample codes locally gives a better understanding. I was tempted to buy a iPhone app book from pragmatic programmer&#8217;s but decided not to. The ADC guidelines, code samples, floating tuts and my objective-C book should keep me busy for a while.</p>
]]></content:encoded>
			<wfw:commentRss>http://nandayadav.com/2009/04/01/objective-ccocoa-learning-curve/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
