<?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>How to Start a Two-Bit Operation: Small Business Tips &#187; Development</title>
	<atom:link href="/blog/category/development/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.twobitoperation.com/blog</link>
	<description>From start to small business.  Learn and live vicariously.</description>
	<lastBuildDate>Sat, 24 Apr 2010 16:22: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>A Prime Conundrum</title>
		<link>http://www.twobitoperation.com/blog/a-prime-conundrum/</link>
		<comments>http://www.twobitoperation.com/blog/a-prime-conundrum/#comments</comments>
		<pubDate>Fri, 21 Jul 2006 15:08:38 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Learning]]></category>

		<guid isPermaLink="false">http://www.twobitoperation.com/blog/2006/07/21/a-prime-conundrum/</guid>
		<description><![CDATA[I&#8217;ve got an interesting (read: geeky) story to share, but first a quick status update. We&#8217;re both in Chicago for the next two-week working session, and the excitement level&#8217;s as high as it&#8217;s ever been, save for maybe the first work session where we&#8217;d code every night til 6am.Â  This time we&#8217;re still working long [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got an interesting (read: geeky) story to share, but first a quick status update. We&#8217;re both in Chicago for the next two-week working session, and the excitement level&#8217;s as high as it&#8217;s ever been, save for maybe the first work session where we&#8217;d code every night til 6am.Â  This time we&#8217;re still working long hours but the schedule&#8217;s flipped around, so we&#8217;re up at 6 each morning instead.Â  It&#8217;s been a great change &#8211; we&#8217;re still getting lots of work done while staying a lot healthier.Â  Much of our excitement comes from the fact that we&#8217;re close to sharing a private Beta out to a large set of people.Â  As anyone who&#8217;s ever shipped software (or anything, for that matter) can tell you, when you get close to a ship date, everything seems to conspire against you to delay things as much as possible.Â  And so it is, our todo lists are growing each day.Â  What&#8217;s a sample task?Â  &quot;Prepare for feedback: grow a thick skin.&quot; <img src='/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&lt;geek-out begins&gt;</p>
<p>Onto the geek-out story.Â  Our project focuses on certain content and includes phone numbers.Â  We found a problem in the phone numbers database table where there were tons (figuratively, not literally a multiple of 2000lbs) of duplicate phone numbers, all of them &quot;2147483647&quot;.Â Â  There were over 20,000 phone numbers in the table and over 2/3rds of them were all this mysterious phone number.Â  Who was this mysterious, popular person?Â  We had no idea &#8211; our problem was that all the numbers we were putting into the database were all <em>unique</em>, but somehow most of them were being transformed.Â  Perplexed, we approached the problem like any other high-functioning partnership &#8211; we started blaming each other.Â  <img src='/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Â Â Â  </p>
<p>We pored over every line of our Ruby on Rails code that handled the phone numbers, and set breakpoints at every stage of our data processing, but to no avail &#8211; the numbers seemed perfect right up til they were stored in the db, but were transformed once we pulled them back out.Â  After an hour of frustration, we randomly googled for <a href="http://www.google.com/search?q=2147483647&amp;start=0&amp;ie=utf-8&amp;oe=utf-8&amp;client=firefox-a&amp;rls=org.mozilla:en-US:official">&quot;2147483647&quot;</a> and discovered it was a <a href="http://mersennewiki.org/index.php/Main_Page">Mersenne Prime</a>, which is a prime number that is one less than a power of 2.Â  Aha!Â  The problem was that we were stripping all the formatting from our phone number strings and storing the resulting 10-digit value in the database in an INT type column.Â  It just so happens that the 10-digit number 2,147,483,647 is 2^31 &#8211; 1 or 0&#215;7FFFFFFF, the maximum signed integer value for any INT column.Â  So, every phone number whose digits were less than that value stored fine, and all phone numbers above it were stored as this max integer value, and the fix was simply to change the type to a STRING type instead.Â  As you&#8217;d expect, we were kicking ourselves (and each other) after discovering this.Â  Who knew such a little type declaration could cause such a headache?Â  I thought I&#8217;d gotten away from these problems forever when I switched out of a developer role at MS!Â  My ex-coworkers reading this are probably shaking their heads in shame. <img src='/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>&lt;/geek-out ends&gt;</p>
<p align="right">-JL</p>
<p align="right"><em>Powered by</em> <a href="http://www.qumana.com/">Qumana</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.twobitoperation.com/blog/a-prime-conundrum/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to actually work when you&#8217;re &#8220;working from home&#8221;</title>
		<link>http://www.twobitoperation.com/blog/how-to-actually-work-when-youre-working-from-home/</link>
		<comments>http://www.twobitoperation.com/blog/how-to-actually-work-when-youre-working-from-home/#comments</comments>
		<pubDate>Fri, 12 May 2006 21:40:45 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[General Business]]></category>
		<category><![CDATA[Personal Issues]]></category>
		<category><![CDATA[Practical Tips]]></category>
		<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Startup]]></category>
		<category><![CDATA[Working Virtually]]></category>

		<guid isPermaLink="false">http://www.twobitoperation.com/blog/2006/05/12/how-to-actually-work-when-youre-working-from-home/</guid>
		<description><![CDATA[
While browsing Lifehacker I found this AllBusiness blog post about a topic near and dear to our hearts: how to work from home. One of the biggest adjustments I had to make after leaving Microsoft 3 months ago was adapting to the drastic change in my work environment. Making your home a place of productivity [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>While browsing Lifehacker I found this <a href="http://www.allbusiness.com/blog/PersonalProductivity/2975282/005499.html">AllBusiness blog post</a> about a topic near and dear to our hearts: how to work from home. One of the biggest adjustments I had to make after leaving Microsoft 3 months ago was adapting to the drastic change in my work environment. Making your home a place of productivity in addition to one of rest and relaxation requires a lot of changes, both around the house and in your own actions and perspectives. For most people (that means me) trying to be more productive at home is a never ending battle, but with the right motivation and dedication you can definitely make it work. Hereâ€™s a list of the more successful things that have helped me. Iâ€™ll save the list of <em>unsuccessful</em> things for a future post. <img alt=")" src="/blog/wp-includes/images/smilies/icon_smile.gif" /></p>
<ul>
<li><strong>Establish a dedicated office.</strong> Keep the stuff in the area strictly work-related; no bills, leisure books, tv, etc. to distract you from what you <em>should</em> be doing when youâ€™re there. Making your entire home the â€œofficeâ€ does <em>not</em> work.</li>
<li><strong>Make lists.</strong> You should know what you <em>must</em> accomplish that day, and additionally things youâ€™d <em>like</em> to get done if thereâ€™s time. Finishing the <em>must</em> list means you can call it a day &#8211; this helps you avoid burnout, as starting a business is a marathon, not a sprint. Work on the <em>like</em> list if youâ€™re feeling particularly energetic.</li>
<li><strong>Stay accountable.</strong> Relying on others is really effective here. If youâ€™re lucky enough to have business partners, set up regular status checks, and make sure to share not only what you <em>have</em> done but what you <em>will</em> by the next checkpoint. If youâ€™re flying solo, you can still leverage the pressure of being accountable to others by setting up situations where others expect something from you, like scheduling lunch or coffee where youâ€™ll give a demo of your latest stuff to a friend. Having paying customers helps a lot in this regard too. <img alt=")" src="/blog/wp-includes/images/smilies/icon_smile.gif" /></li>
<li><strong>Take the right breaks.</strong> Taking a break between tasks helps you unwind from and process the previous work and refocus your energies fully on the next task. There have been too many times where Iâ€™ve â€œfinishedâ€ one task only to find myself disengaged on the next one because my mind was still thinking about what I was just working on.</li>
<li><strong>Stop taking the wrong breaks.</strong> My personal Achillesâ€™ heel. Your home, by nature, is your most comfortable and distracting place on the planet. Add to that a high-speed internet connection with email, IM, and sites like Youtube and Myspace, along with zero parental supervision, and youâ€™ve got a recipe for disaster. One thing thatâ€™s worked for me is turning the wrong breaks into the right breaks; by promising myself time to browse/chat after each task, Iâ€™m better able to keep my focus on where it should be. If thatâ€™s not enough, you can try using two browsers like the AllBusiness article mentions, or better yet, two computers, with one dedicated to work. If all else fails, disconnect your internet. Seriously. <img alt=")" src="/blog/wp-includes/images/smilies/icon_smile.gif" /></li>
<li><strong>Get out of the house.</strong> Coming from an office environment where I was used to <em>seeing</em> lots of people every day, it was disheartening to suddenly find myself home alone all day. Now I try to find a reason to get out of the house each day. This can be as simple as going to the gym or running, but Iâ€™ve found that just being around people helps. What also works well, if your work lets you, is working at a cafe or library every once in a while. The change of pace is refreshing, and oftentimes helps you focus better on your work.</li>
<li><strong>Be regular.</strong> And Iâ€™m not talking about <a href="http://www.metamucil.com/">Metamucil</a> here. In our first working session, Justin and I worked ourselves to exhaustion. We were so passionate about getting stuff done that we would work til we passed out, shifting our schedules later and later in the day. After two weeks of that we finally learned that itâ€™s not the way you train for a marathon. <img alt=")" src="/blog/wp-includes/images/smilies/icon_smile.gif" /> Since weâ€™re all creatures of habit, it helps productivity to have regular work hours and to stick to them. Thereâ€™ll definitely be the days when work demands much more from you, but even in those cases itâ€™s important to have a normal â€œpaceâ€ of work that you can return to.</li>
</ul>
</div>
<p><a href="http://ads.adgenta.com/ads/ads.dll/click?client=twobitoperation&amp;GUID=05%2F12%2F06+14%3A33%3A55"><img height="70" border="0" width="364" alt="Ads by AdGenta.com" src="http://ads.adgenta.com/ads/ads.dll/view?client=twobitoperation&amp;GUID=05%2F12%2F06+14%3A33%3A55&amp;width=364&amp;height=70&amp;bgColor=ffffff&amp;FOOTER_COLOR=ffffff&amp;FOOTER_GRADIENT=0&amp;TF_C=990033&amp;DF_C=000000&amp;DMF_C=0000ff&amp;FF_C=000000&amp;keywords=work" /></a></p>
<p>These are the top things that have worked for me (or that Iâ€™m working on) to help me actually â€œworkâ€ from home. What kinds of things have worked well for you?</p>
<p align="right">-JL</p>
<p align="left">
]]></content:encoded>
			<wfw:commentRss>http://www.twobitoperation.com/blog/how-to-actually-work-when-youre-working-from-home/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>The Ruby on Rails bible, version 2</title>
		<link>http://www.twobitoperation.com/blog/the-ruby-on-rails-bible-version-2/</link>
		<comments>http://www.twobitoperation.com/blog/the-ruby-on-rails-bible-version-2/#comments</comments>
		<pubDate>Sun, 07 May 2006 03:30:25 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Startup]]></category>

		<guid isPermaLink="false">http://www.twobitoperation.com/blog/2006/05/07/the-ruby-on-rails-bible-version-2/</guid>
		<description><![CDATA[Just a heads-up that a new version of Agile Web Development With Rails has been released as a beta.  If you have even the slightest interest in playing with Rails, you should get this book because it&#8217;s got all the info you&#8217;ll need to get off to a great start.  We&#8217;ve had copies [...]]]></description>
			<content:encoded><![CDATA[<p>Just a heads-up that a new version of <a href="http://weblog.rubyonrails.org/archives/trackback/4490">Agile Web Development With Rails</a> has been released as a beta.  If you have even the slightest interest in playing with Rails, you should get this book because it&#8217;s got all the info you&#8217;ll need to get off to a great start.  We&#8217;ve had copies of the first version since we started coding and they&#8217;re now <em>extremely</em> worn out from all the abuse (or love, depending on your perspective).  The new version covers all the great features added to Rails in the latest 1.1 release, including:</p>
<ul>
<li>RJS &#8211; ridiculously simple updating of multiple page elements from a single AJAX request</li>
<li>migrations &#8211; a simple way to allow incremental updating of your database without disturbing the rest of your app</li>
<li>Capistrano &#8211; a fantastic utility for one-click deployment of your changes to your production server(s)</li>
<li><a href="http://en.wikipedia.org/wiki/REST">RESTful interfaces</a></li>
</ul>
<p>We definitely plan to check out this latest version; you should too. <img src='/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p align="right">-JL</p>
<p align="right">
]]></content:encoded>
			<wfw:commentRss>http://www.twobitoperation.com/blog/the-ruby-on-rails-bible-version-2/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The cat&#8217;s (halfway) out of the bag&#8230;</title>
		<link>http://www.twobitoperation.com/blog/the-cats-halfway-out-of-the-bag/</link>
		<comments>http://www.twobitoperation.com/blog/the-cats-halfway-out-of-the-bag/#comments</comments>
		<pubDate>Thu, 04 May 2006 07:32:29 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[About]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://twobitoperation.com/blog/2006/05/04/the-cats-halfway-out-of-the-bag/</guid>
		<description><![CDATA[And her name is Ruby.  Ruby on Rails, to be exact.  After &#8220;working&#8221; now for a few months in near total secrecy, it&#8217;s time we shared some of the technical details of how we spend most of our time.  We&#8217;re still not ready to share what exactly we are doing, but we [...]]]></description>
			<content:encoded><![CDATA[<p>And her name is Ruby.  Ruby on Rails, to be exact.  After &#8220;working&#8221; now for a few months in near total secrecy, it&#8217;s time we shared some of the technical details of how we spend most of our time.  We&#8217;re still not ready to share <em>what</em> exactly we are doing, but we want to be able to discuss <em>how</em> we are doing it.  And a large part of the <em>how</em> is Ruby on Rails.</p>
<p>What is <a href="http://www.rubyonrails.org/">Ruby on Rails</a>?   <a href="http://en.wikipedia.org/wiki/Ruby_programming_language">Ruby</a> is an interpreted, object-oriented programming language, and Rails refers to the web development framework that <a href="http://www.loudthinking.com/">DHH</a> and others at <a href="http://www.37signals.com/">37 Signals</a> extracted from their <a href="http://www.basecamphq.com/">Basecamp</a> product.  Ruby is a simple-to-learn, yet powerfully expressive and flexible language that can lead to really elegant (or really ugly) code.  Combine this with Rails, which provides a very supportive <a href="http://en.wikipedia.org/wiki/Model_view_controller">MVC architecture</a>,  and you have a fantastic starting point for building any sort of web application in a short amount of time.</p>
<p>Since Justin and I had only minimal experience in building websites, we wanted to go with a technology that was easy to learn and be productive with, and had a large community of users from which we could get a lot of support.  Ruby on Rails fit that bill, and we couldn&#8217;t be more happy with our choice.  Along with many helpful websites, the following two books got us up and running quickly; I&#8217;d highly recommend them to anyone interested in Ruby on Rails:</p>
<ul>
<li><a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&#038;tag=howtostartatw-20&#038;camp=1789&#038;creative=9325&#038;path=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F097669400X%2Fsr%3D8-1%2Fqid%3D1146639942%2Fref%3Dpd_bbs_1%3F%255Fencoding%3DUTF8">Agile Web Development With Rails</a><img width="1" height="1" border="0" style="border: medium none  ! important; margin: 0px ! important" src="http://www.assoc-amazon.com/e/ir?t=howtostartatw-20&#038;l=ur2&#038;o=1" /></li>
<li><a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&#038;tag=howtostartatw-20&#038;camp=1789&#038;creative=9325&#038;path=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F0974514055%2Fsr%3D8-2%2Fqid%3D1146639942%2Fref%3Dpd_bbs_2%3F%255Fencoding%3DUTF8">Programming Ruby</a><img width="1" height="1" border="0" style="border: medium none  ! important; margin: 0px ! important" src="http://www.assoc-amazon.com/e/ir?t=howtostartatw-20&#038;l=ur2&#038;o=1" /></li>
</ul>
<p>So consider this fair warning; from now on we&#8217;ll be geeking out occasionally with Ruby on Rails-specific issues and solutions that we encounter.  Of course, the best way to follow along is to try it yourself.  <img src='/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <a href="http://www.amazon.com/exec/obidos/redirect?link_code=ur2&#038;tag=howtostartatw-20&#038;camp=1789&#038;creative=9325&#038;path=http%3A%2F%2Fwww.amazon.com%2Fgp%2Fproduct%2F097669400X%2Fsr%3D8-1%2Fqid%3D1146639942%2Fref%3Dpd_bbs_1%3F%255Fencoding%3DUTF8"><br />
</a></p>
<div align="right">-JL</div>
]]></content:encoded>
			<wfw:commentRss>http://www.twobitoperation.com/blog/the-cats-halfway-out-of-the-bag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
