<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Tenmiles Blog</title>
	
	<link>http://tenmiles.com/blog</link>
	<description>Official Tenmiles Blog</description>
	<lastBuildDate>Mon, 21 May 2012 06:34:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Tenmiles" /><feedburner:info uri="tenmiles" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Hiring – Automation Tester and Quality Engineer</title>
		<link>http://feedproxy.google.com/~r/Tenmiles/~3/W27fm8aduFo/</link>
		<comments>http://tenmiles.com/blog/2012/05/hiring-automation-tester-and-quality-engineer/#comments</comments>
		<pubDate>Mon, 21 May 2012 06:07:49 +0000</pubDate>
		<dc:creator>Shalin</dc:creator>
				<category><![CDATA[Jobs]]></category>

		<guid isPermaLink="false">http://tenmiles.com/blog/?p=833</guid>
		<description><![CDATA[The dev team at Tenmiles slice and dice code like no other. Except for the cape and shuriken, they are ninjas in their own right. But, in true legendary Ronald Reagan style, we trust our code, but would to love to verify it as well. So, if you are someone who examines everything with a [...]]]></description>
			<content:encoded><![CDATA[<p>The dev team at Tenmiles slice and dice code like no other. Except for the cape and shuriken, they are ninjas in their own right. But, in true legendary Ronald Reagan style, we trust our code, but would to love to verify it as well.</p>
<p>So, if you are someone who examines everything with a microscope (not literally!), this is the gig for you. Here is what we are looking for:</p>
<h3>Essential Skills</h3>
<p>Aspiration for automated testing and self motivated quick learner.<br />
Strong knowledge in Selenium 2 or 1 with Selenium Web Driver using Python scripting.<br />
At least 1 year of experience in testing web applications using Selenium framework.</p>
<h3>Nice to have</h3>
<p>Knowledge of setting up and working in virtual machine environments, Python, Ruby on Rails, Apache, other automated testing frameworks for web applications and experience in regression testing multiple product versions. Nice to have, but not essential.</p>
<h3>Experience/Education</h3>
<p>2+ years of relevant technical experience required.</p>
<p>A Bachelor&#8217;s degree in Computers / Technology / Science or anything else for that matter.</p>
<p>Even no degree will do, we value the depth of knowledge than anything else. Are you a drop out and obsessed about software testing? We are more than more happy to talk to you.</p>
<h3>What do we offer?</h3>
<p>Great team and products to work on. You will participate and have impact on decisions both in technical terms and in the business domain. We raise no wall against good ideas. We take care of you, so that you can take care of the apps you build.</p>
<p>If you are interested, here is how you can apply. Mail us at jobs@tenmiles.com. Describe yourself, your career path, interests, past work and anything related in a simple mail and send it to us. Sending your resume is optional, but if you do, send it in PDF format and keep it short.</p>
<img src="http://feeds.feedburner.com/~r/Tenmiles/~4/W27fm8aduFo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tenmiles.com/blog/2012/05/hiring-automation-tester-and-quality-engineer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tenmiles.com/blog/2012/05/hiring-automation-tester-and-quality-engineer/</feedburner:origLink></item>
		<item>
		<title>We’re Looking for a Rockstar Python Developer</title>
		<link>http://feedproxy.google.com/~r/Tenmiles/~3/BCDSfSHpVi4/</link>
		<comments>http://tenmiles.com/blog/2012/05/were-looking-for-a-rockstar-python-developer/#comments</comments>
		<pubDate>Fri, 18 May 2012 12:55:29 +0000</pubDate>
		<dc:creator>Shalin</dc:creator>
				<category><![CDATA[Jobs]]></category>

		<guid isPermaLink="false">http://tenmiles.com/blog/?p=825</guid>
		<description><![CDATA[Tenmiles is growing like gangbusters. Thousands of customers use our apps daily and are only too happy to spread the word. So it’s time to expand and we are looking to add a rockstar Python developer to join our talented, tightly knitted team. Are you someone who would love to see your code power one [...]]]></description>
			<content:encoded><![CDATA[<p>Tenmiles is growing like gangbusters. Thousands of customers use our apps daily and are only too happy to spread the word. So it’s time to expand and we are looking to add a rockstar Python developer to join our talented, tightly knitted team.</p>
<p>Are you someone who would love to see your code power one of the top notch Customer Support tools in the cloud? It’s your lucky day then!</p>
<h3>Essential Skills</h3>
<p>Self motivated quick learner.<br />
Strong knowledge in Python 2.6 or above.<br />
Django framework and WSGI Frameworks.<br />
At least 2 &#8211; 3 years of experience in web application development with Python 2.6 or above, WSGI and/or Django framework 1.2 or above and PostgreSQL 8.4.<br />
Development Experience with strong Design, Coding, Testing and Debugging skills.<br />
Love for good UI.</p>
<h3>Nice to have</h3>
<p>Knowledge of Linux shell scripting, managing Apache servers, Amazon Web Services, REST API, Unit Testing Frameworks and using a code repository like CodebaseHQ. Nice to have, but not essential.</p>
<h3>Experience/Education</h3>
<p>3+ years of relevant technical experience required.</p>
<p>A Bachelor&#8217;s degree in Computers / Technology / Science or anything else for that matter.</p>
<p>Even no degree will do, we value the depth of knowledge than anything else. Are you a drop out and obsessed about Python? We are more than more happy to talk to you.</p>
<p>At Tenmiles, you will develop and maintain Python apps. You will turn good ideas into user friendly apps.</p>
<h3>What do we offer?</h3>
<p>Great team and products to work on. You will participate and have impact on decisions both in technical terms and in the business domain. We raise no wall against good ideas. We take care of you, so that you can take care of the apps you build.</p>
<p>If you are interested, here is how you can apply. Mail us at jobs@tenmiles.com. Describe yourself, your career path, interests, past work and anything related in a simple mail and send it to us. Please give appropriate links/urls of your past work or anything you’ve been doing so far. Sending your resume is optional, but if you do, send it in PDF format &amp; keep it short.</p>
<img src="http://feeds.feedburner.com/~r/Tenmiles/~4/BCDSfSHpVi4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tenmiles.com/blog/2012/05/were-looking-for-a-rockstar-python-developer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tenmiles.com/blog/2012/05/were-looking-for-a-rockstar-python-developer/</feedburner:origLink></item>
		<item>
		<title>iOS app development: What’s next</title>
		<link>http://feedproxy.google.com/~r/Tenmiles/~3/B_knrxe-axQ/</link>
		<comments>http://tenmiles.com/blog/2012/05/ios-app-development-whats-next/#comments</comments>
		<pubDate>Tue, 01 May 2012 04:31:01 +0000</pubDate>
		<dc:creator>Shalin</dc:creator>
				<category><![CDATA[Company News]]></category>
		<category><![CDATA[Product News]]></category>

		<guid isPermaLink="false">http://tenmiles.com/blog/?p=807</guid>
		<description><![CDATA[We started 2012 with launch of our first iOS app &#8211; a personal productivity app &#8211; Wonderful Day for iOS. The app hit the charts on launch and got plenty of reviews. Some of them include by: Woikr, MyMac and TechinAsia. We are now working on our second application. The app is long due and [...]]]></description>
			<content:encoded><![CDATA[<p>We started 2012 with launch of our first iOS app &#8211; a <a href="http://www.wonderfuldayapp.com" title="Personal Productivity &#038; Motivation App" target="_blank">personal productivity app</a> &#8211; Wonderful Day for iOS. The app hit the charts on launch and got plenty of reviews. Some of them include by: <a href="http://woikr.com/iphone/wonderful-day-for-iphone-stay-motivated-every-single-day-review/" title="Woikr" target="_blank">Woikr</a>, <a href="http://www.mymac.com/2012/02/wonderful-day-iphone-app-review/" title="My Mac's review of Wonderful Day" target="_blank">MyMac</a> and <a href="http://www.techinasia.com/wonderful-day/" title="Tech in Asia" target="_blank">TechinAsia</a>. </p>
<p>We are now working on our second application. The app is long due and under works. We&#8217;ll have a sneak peak coming out soon. Stay tuned. </p>
<img src="http://feeds.feedburner.com/~r/Tenmiles/~4/B_knrxe-axQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tenmiles.com/blog/2012/05/ios-app-development-whats-next/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tenmiles.com/blog/2012/05/ios-app-development-whats-next/</feedburner:origLink></item>
		<item>
		<title>It’s time to have a Wonderful Day, everyday!</title>
		<link>http://feedproxy.google.com/~r/Tenmiles/~3/FevTrgsTNh0/</link>
		<comments>http://tenmiles.com/blog/2012/02/its-time-to-have-a-wonderful-day-everyday/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 12:15:36 +0000</pubDate>
		<dc:creator>vinay</dc:creator>
				<category><![CDATA[Company News]]></category>
		<category><![CDATA[Product News]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[iOS app]]></category>
		<category><![CDATA[productivity]]></category>
		<category><![CDATA[products]]></category>
		<category><![CDATA[wonderful day]]></category>

		<guid isPermaLink="false">http://tenmiles.com/blog/?p=787</guid>
		<description><![CDATA[We at Tenmiles are big fans of Apple. We also love churning out products every once in a while. Therefore, venturing into iOS app development was a step we were always going to take. Yes, you read it right! We just released our first iOS app and it&#8217;s all about making your day wonderful! Say [...]]]></description>
			<content:encoded><![CDATA[<p>We at Tenmiles are big fans of Apple. We also love churning out products every once in a while. Therefore, venturing into iOS app development was a step we were always going to take. Yes, you read it right! We just released our first iOS app and it&#8217;s all about making your day wonderful! Say hello to <a title="Wonderful Day Website" href="http://wonderfuldayapp.com/" target="_blank">Wonderful Day</a>.</p>
<p><a href="http://wonderfuldayapp.com/" target="_blank"><img class="aligncenter size-medium wp-image-791" title="Wonderful Day" src="http://tenmiles.com/blog/wp-content/uploads/2012/02/Screen-shot-2012-02-21-at-5.31.59-PM1-300x200.png" alt="Wonderful Day - iOS productivity app" width="300" height="200" /></a></p>
<p>Wonderful Day aims to help you develop the habits that you aspire to have, by motivating you everyday. Inspired by Jerry Seinfeld&#8217;s <a title="Seinfeld's Productivity Secret" href="http://lifehacker.com/281626/jerry-seinfelds-productivity-secret" target="_blank">Productivity Secret</a>, it visualizes your goals in a way that screams out &#8220;Don&#8217;t break the chain!&#8221;.</p>
<p>Like what you hear? <a title="Wonderful Day on App Store" href="http://itunes.apple.com/us/app/wonderful-day/id502432398" target="_blank">Get it</a> from the App Store and start your chain of wonderful days today!</p>
<img src="http://feeds.feedburner.com/~r/Tenmiles/~4/FevTrgsTNh0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tenmiles.com/blog/2012/02/its-time-to-have-a-wonderful-day-everyday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tenmiles.com/blog/2012/02/its-time-to-have-a-wonderful-day-everyday/</feedburner:origLink></item>
		<item>
		<title>Marketing Internship, Chennai, India</title>
		<link>http://feedproxy.google.com/~r/Tenmiles/~3/RSjdUHzB7BA/</link>
		<comments>http://tenmiles.com/blog/2011/09/marketing-internship-chennai-india/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 05:30:13 +0000</pubDate>
		<dc:creator>vinay</dc:creator>
				<category><![CDATA[Jobs]]></category>
		<category><![CDATA[hiring]]></category>
		<category><![CDATA[internships]]></category>
		<category><![CDATA[tenmiles]]></category>

		<guid isPermaLink="false">http://tenmiles.com/blog/?p=777</guid>
		<description><![CDATA[As part of our plans to grow our operations, we are looking for promising interns who can work as Marketing Coordinators. While we have the marketing know-how and the sales strength, we need smart young people who can execute our ideas in these areas. We&#8217;re thus looking for people who are energetic, can understand markets [...]]]></description>
			<content:encoded><![CDATA[<p>As part of <a title="Tenmiles is growing, and we're hiring!" href="http://tenmiles.com/blog/2011/09/tenmiles-is-growing-and-were-hiring/" target="_blank">our plans</a> to grow our operations, we are looking for promising interns who can work as Marketing Coordinators.</p>
<p>While we have the marketing know-how and the sales strength, we need smart young people who can execute our ideas in these areas. We&#8217;re thus looking for people who are energetic, can understand markets quickly and communicate clearly.</p>
<p>We have <a title="Tenmiles Products Webpage" href="http://tenmiles.com/products.php" target="_blank">products</a> that do most of the selling themselves, so your job is that much easier, and that much more fun! The <a title="Tenmiles Team Webpage" href="http://tenmiles.com/team.php" target="_blank">team</a> is comprised of some of the most interesting people you&#8217;ll come across in the city. And the icing on the cake? &#8211; a monthly paycheck. So if you want to take a shot at this enviable position, and subsequently a possible full time position at Tenmiles, shoot an email to jobs@tenmiles.com and tell us why you think you&#8217;ll fit this role. Be sure to include your mobile number. A resume is optional but make sure it&#8217;s in PDF format if you send it.</p>
<img src="http://feeds.feedburner.com/~r/Tenmiles/~4/RSjdUHzB7BA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tenmiles.com/blog/2011/09/marketing-internship-chennai-india/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tenmiles.com/blog/2011/09/marketing-internship-chennai-india/</feedburner:origLink></item>
		<item>
		<title>Tenmiles is growing and we’re hiring!</title>
		<link>http://feedproxy.google.com/~r/Tenmiles/~3/UlyyCdFxEuY/</link>
		<comments>http://tenmiles.com/blog/2011/09/tenmiles-is-growing-and-were-hiring/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 05:30:14 +0000</pubDate>
		<dc:creator>vinay</dc:creator>
				<category><![CDATA[Company News]]></category>
		<category><![CDATA[Jobs]]></category>
		<category><![CDATA[chennai]]></category>
		<category><![CDATA[hiring]]></category>
		<category><![CDATA[tenmiles]]></category>

		<guid isPermaLink="false">http://tenmiles.com/blog/?p=761</guid>
		<description><![CDATA[Tenmiles just turned eleven last week and we are celebrating by expanding our team! Tenmiles is known as that small bunch of interesting people in Chennai who churn out world class software products. We build software that looks great, works like a charm, does the job and doesn&#8217;t take water breaks. With world class products at hand, we&#8217;re [...]]]></description>
			<content:encoded><![CDATA[<p>Tenmiles just turned eleven last week and we are celebrating by expanding our team!</p>
<p>Tenmiles is known as that small bunch of <a href="http://tenmiles.com/team.php" target="_blank">interesting people</a> in Chennai who churn out world class <a href="http://tenmiles.com/products.php" target="_blank">software products</a>. We build software that looks great, works like a charm, does the job and doesn&#8217;t take water breaks.</p>
<p>With world class products at hand, we&#8217;re now looking to scale our global reach and operations rapidly. We&#8217;ve been one of the few successful and profitable software product companies in the country, and we&#8217;re proud of it. If you would like to be a part of our growth story, have a look at the current openings in our team :-</p>
<p><strong>Engineering</strong></p>
<ul>
<li>Rails Developers<strong> &#8211; </strong><a title="Rails Developer, Chennai, India" href="http://tenmiles.com/blog/2010/04/rails-developer-chennai/" target="_blank">read more</a></li>
<li>Django Developers</li>
<li>iOS Developers &#8211; <a title="iOS Developer, Chennai, India" href="http://tenmiles.com/blog/2011/04/ios-developer-chennai-india/" target="_blank">read more</a></li>
<li>Linux Engineers</li>
<li>QA Engineers</li>
</ul>
<p><strong>Sales &amp; Marketing</strong></p>
<ul>
<li>Channel Managers</li>
<li>Account Managers</li>
<li>Product Marketing Manager &#8211; <a title="Product Marketing, Chennai, India" href="http://tenmiles.com/blog/2010/10/product-evangelism-marketing-chennai/" target="_blank">read more</a></li>
<li>Product Evangelist &#8211; <a title="Product Evangelist, Chennai, India" href="http://tenmiles.com/blog/2010/10/product-evangelism-marketing-chennai/" target="_blank">read more</a></li>
<li>Marketing Coordinators (open to Interns) &#8211; <a title="Marketing Internship, Chennai, India" href="http://tenmiles.com/blog/2011/09/marketing-internship-chennai-india/" target="_blank">read more</a></li>
</ul>
<p>If you think you will fit under any of the above, tell us why you think so by shooting an email to <a href="mailto:jobs@tenmiles.com" target="_blank">jobs@tenmiles.com</a>. We&#8217;re more interested in your practical experience and your passions than how much you scored in 12th grade mathematics. If you want to include your resume, make sure it&#8217;s in PDF format.</p>
<img src="http://feeds.feedburner.com/~r/Tenmiles/~4/UlyyCdFxEuY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tenmiles.com/blog/2011/09/tenmiles-is-growing-and-were-hiring/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://tenmiles.com/blog/2011/09/tenmiles-is-growing-and-were-hiring/</feedburner:origLink></item>
		<item>
		<title>Rails Refactoring tip: Dry up your constants</title>
		<link>http://feedproxy.google.com/~r/Tenmiles/~3/c-PK9lyMsYc/</link>
		<comments>http://tenmiles.com/blog/2011/08/rails-refactoring-tip-move-up-your-constants/#comments</comments>
		<pubDate>Thu, 04 Aug 2011 05:30:59 +0000</pubDate>
		<dc:creator>Lakshman</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[refactoring]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://tenmiles.com/blog/?p=746</guid>
		<description><![CDATA[If you observe your rails app, you might come across some set of values constantly being used. It is a good idea to identify them and dry them up. For example, in the models, you might have used a Regular expression for checking the validity of email attribute. in app/models/account.rb validates_format_of :email,:with =&#62; /(^([^,@\s]+)@((?:[-_a-z0-9]+\.)+[a-z]{2,})$)&#124;(^$)/i in [...]]]></description>
			<content:encoded><![CDATA[<p>If you observe your rails app, you might come across some set of values constantly being used. It is a good idea to identify them and dry them up. For example, in the models, you might have used a Regular expression for checking the validity of email attribute.</p>
<p>in app/models/account.rb</p>
<pre> validates_format_of :email,:with =&gt; /(^([^,@\s]+)@((?:[-_a-z0-9]+\.)+[a-z]{2,})$)|(^$)/i </pre>
<p>in app/models/delegate.rb</p>
<pre>validates_format_of :email,:with =&gt; /(^([^,@\s]+)@((?:[-_a-z0-9]+\.)+[a-z]{2,})$)|(^$)/i</pre>
<p>Don&#8217;t you see, its very hard to keep using it across models or any other ruby files. For this, We can create a file called constants.rb in config/initializers and declare a constant (with a good, rememberable name) there.</p>
<p>In config/initializers/constants.rb</p>
<pre>EMAIL_REGEXP = /(^([^,@\s]+)@((?:[-_a-z0-9]+\.)+[a-z]{2,})$)|(^$)/i</pre>
<p>Restart the server now. Then in the model file shown above, we can use it like  </p>
<pre>validates_format_of :email,:with =&gt; EMAIL_REGEXP</pre>
<p>We can use the same technique with other constant values that are used more than once in the application.</p>
<img src="http://feeds.feedburner.com/~r/Tenmiles/~4/c-PK9lyMsYc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tenmiles.com/blog/2011/08/rails-refactoring-tip-move-up-your-constants/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tenmiles.com/blog/2011/08/rails-refactoring-tip-move-up-your-constants/</feedburner:origLink></item>
		<item>
		<title>Equality Gotcha of ActiveRecord Objects</title>
		<link>http://feedproxy.google.com/~r/Tenmiles/~3/mKjX5Oy8OKc/</link>
		<comments>http://tenmiles.com/blog/2011/07/equality-gotcha-of-activerecord-objects/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 03:30:04 +0000</pubDate>
		<dc:creator>Lakshman</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[gotcha]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://tenmiles.com/blog/?p=723</guid>
		<description><![CDATA[Two Activerecord objects when compared over == operator returns true when they are instances of the same &#8216;model class&#8217; &#38;&#38; if they have same &#8216;id&#8217; values. This operation is not an attribute-by-attribute comparison. Beware, this behavior can give problems when you do a lot of == operations b/w Activerecord objects, in your application, in which [...]]]></description>
			<content:encoded><![CDATA[<p>Two Activerecord objects when compared over == operator returns true when <em>they are instances of the same &#8216;model class&#8217;</em> &amp;&amp; <em>if they have same &#8216;id&#8217; values</em>. This operation is not an attribute-by-attribute comparison. Beware, this behavior can give problems when you do a lot of == operations b/w Activerecord objects, in your application, in which case you need to override == operator of ActiveRecord::Base according to your needs.</p>
<p>Here is a sample behavior of == operator.</p>
<p><strong>ruby-1.9.2-p180 :001 &gt; p1 = Person.first</strong><br />
=&gt; #&lt;Person id: 1, name: &#8220;John&#8221;, email: &#8220;john@gmail.com&#8221;&gt;<br />
<strong>ruby-1.9.2-p180 :002 &gt; p2 = Person.first</strong><br />
=&gt; #&lt;Person id: 1, name: &#8220;John&#8221;, email: &#8220;john@gmail.com&#8221;&gt;<br />
<strong>ruby-1.9.2-p180 :003 &gt; p1.name = &#8220;somethingelse&#8221;</strong><br />
=&gt; &#8220;somethingelse&#8221;<br />
<strong>ruby-1.9.2-p180 :004 &gt; p1.save</strong><br />
=&gt; true<br />
<strong>ruby-1.9.2-p180 :005 &gt; p1</strong><br />
=&gt; #&lt;Person id: 1, name: &#8220;somethingelse&#8221;, email: &#8220;john@gmail.com&#8221;&gt;<br />
<strong>ruby-1.9.2-p180 :006 &gt; p2</strong><br />
=&gt; #&lt;Person id: 1, name: &#8220;John&#8221;, email: &#8220;john@gmail.com&#8221;&gt;<br />
<strong>ruby-1.9.2-p180 :007 &gt; p1 == p2</strong><br />
=&gt; true</p>
<img src="http://feeds.feedburner.com/~r/Tenmiles/~4/mKjX5Oy8OKc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tenmiles.com/blog/2011/07/equality-gotcha-of-activerecord-objects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tenmiles.com/blog/2011/07/equality-gotcha-of-activerecord-objects/</feedburner:origLink></item>
		<item>
		<title>Bootstrapping a business without shortcuts</title>
		<link>http://feedproxy.google.com/~r/Tenmiles/~3/OiOUx1lMbJk/</link>
		<comments>http://tenmiles.com/blog/2011/07/bootstrapping-a-business-without-shortcuts/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 05:07:24 +0000</pubDate>
		<dc:creator>Shalin</dc:creator>
				<category><![CDATA[Opinions]]></category>
		<category><![CDATA[bootstrap]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[entrepreneurship]]></category>
		<category><![CDATA[founder]]></category>
		<category><![CDATA[startup]]></category>
		<category><![CDATA[vision]]></category>

		<guid isPermaLink="false">http://tenmiles.com/blog/?p=738</guid>
		<description><![CDATA[It is not hard to Bootstrap a company. Many people think bootstrapping is all about thinking short-term. Generate money for the company today. I think otherwise. Bootstrapping successfully needs a long-term vision. Doing services to bootstrap a product company is short-term. Building minimum viable product, selling as soon as you have a prototype is long-term. [...]]]></description>
			<content:encoded><![CDATA[<p>It is not hard to Bootstrap a company. Many people think bootstrapping is all about thinking short-term. Generate money for the company today. I think otherwise. </p>
<p>Bootstrapping successfully needs a long-term vision. Doing services to bootstrap a product company is short-term. Building minimum viable product, selling as soon as you have a prototype is long-term. </p>
<p>Bootstrapped entrepreneurs are not in business because they see a gap in the market. They start companies because of their ideas and ideology. Sticking to long-term vision is the shortest path to remain viable.</p>
<img src="http://feeds.feedburner.com/~r/Tenmiles/~4/OiOUx1lMbJk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tenmiles.com/blog/2011/07/bootstrapping-a-business-without-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tenmiles.com/blog/2011/07/bootstrapping-a-business-without-shortcuts/</feedburner:origLink></item>
		<item>
		<title>ActiveRecord Finders: Returns nil or Throws Exception</title>
		<link>http://feedproxy.google.com/~r/Tenmiles/~3/ZIg7cuUlFZU/</link>
		<comments>http://tenmiles.com/blog/2011/07/activerecord-finders-returns-nil-or-throws-exception/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 03:30:01 +0000</pubDate>
		<dc:creator>Lakshman</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[activerecord]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://tenmiles.com/blog/?p=708</guid>
		<description><![CDATA[ActiveRecord finders behave differently for various types of finders. Suppose you have a model called Account. Here are the ways you can get a record with id 34 in the `accounts` table. acc = Account.find(34) acc = Account.where(:id =&#62; 34).first acc = Account.where(:id =&#62; 34) Suppose a record with id = 34 does not exist [...]]]></description>
			<content:encoded><![CDATA[<p><a title="ActiveRecord" href="http://api.rubyonrails.org/classes/ActiveRecord/Base.html" target="_blank">ActiveRecord</a> finders behave differently for various types of finders. Suppose you have a model called Account. Here are the ways you can get a record with id 34 in the `accounts` table.</p>
<p>acc = Account.find(34)<br />
acc = Account.where(:id =&gt; 34).first<br />
acc = Account.where(:id =&gt; 34)</p>
<p>Suppose a record with id = 34 does not exist in `accounts` table. Most programmers would think that the finders will throw ActiveRecord::RecordNotFound exception in all cases. No, thats not the behavior here. In the first case, using &#8216;find&#8217; method returns ActiveRecord::RecordNotFound exception. Where as in the second case using &#8216;where&#8217; method, it returns nil object. In the third case it returns an empty array []</p>
<p><strong>ruby-1.9.2-p180 :001 &gt;</strong> Account.find(34)<br />
ActiveRecord::RecordNotFound: Couldn&#8217;t find Account with ID=34<br />
<strong>ruby-1.9.2-p180 :002 &gt;</strong> Account.where(:id =&gt; 34).first<br />
=&gt; nil<br />
<strong>ruby-1.9.2-p180 :003 &gt;</strong> Account.where(:id =&gt; 34)<br />
=&gt; []</p>
<p>If we find records using &#8216;find&#8217; method, it is assumed that we have prior knowledge of the table &#8216;accounts&#8217; and the primary key values. So, if there is no record with that id, an exception is thrown. If we use &#8216;where&#8217; method to find records, we are querying based on some conditions. If the query finds anything that matches our conditions, it returns the result. If it cannot find any record that matches our conditions, it returns an empty array or nil object.</p>
<p>Empty array is returned when we fire a non-singular query (as in third case). A Nil object is returned if we fire a singular query. This behavior have to be kept in mind when find records and apply conditions on them, in the <a title="Ruby on Rails" href="http://rubyonrails.org/" target="_blank">Rails</a> controllers.</p>
<img src="http://feeds.feedburner.com/~r/Tenmiles/~4/ZIg7cuUlFZU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tenmiles.com/blog/2011/07/activerecord-finders-returns-nil-or-throws-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tenmiles.com/blog/2011/07/activerecord-finders-returns-nil-or-throws-exception/</feedburner:origLink></item>
	</channel>
</rss>

