<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:ymaps="http://api.maps.yahoo.com/Maps/V2/AnnotatedMaps.xsd">

<channel>
	<title>The Codebelay Blog &#187; ruby</title>
	<atom:link href="http://www.codebelay.com/blog/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codebelay.com/blog</link>
	<description>A Journal of Software That Makes Coding Safer and Easier to Manage</description>
	<lastBuildDate>Thu, 02 Sep 2010 20:17:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>My Favorite Coder Interview Question</title>
		<link>http://www.codebelay.com/blog/2009/04/09/my-favorite-coder-interview-question/</link>
		<comments>http://www.codebelay.com/blog/2009/04/09/my-favorite-coder-interview-question/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 01:11:52 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[Questions]]></category>
		<category><![CDATA[TechBiz]]></category>
		<category><![CDATA[WebApps]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[hr]]></category>
		<category><![CDATA[interview questions]]></category>
		<category><![CDATA[interviewing]]></category>
		<category><![CDATA[jobs]]></category>
		<category><![CDATA[leibniz]]></category>
		<category><![CDATA[mergesort]]></category>
		<category><![CDATA[principle of sufficient reason]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=548</guid>
		<description><![CDATA[What is your favorite algorithm? My favorite algorithm right now is the merge sort. I like it so much that I&#8217;ve implemented it in PHP and Ruby. The problem is that as a web developer I&#8217;ve never had to use a merge sort. Back in the old days when pagination was tricky, I&#8217;ve had to [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>What is your favorite algorithm?</p>
<p>My favorite algorithm right now is the <a href="http://en.wikipedia.org/wiki/Mergesort">merge sort</a>.</p>
<div id="attachment_549" class="wp-caption aligncenter" style="width: 280px">
	<img src="http://www.codebelay.com/blog/wp-content/uploads/2009/04/merge_sort_animation2.gif" alt="v1: Nuno Nogueira (Nmnogueira), v2: edited by Daniel Miller (cobaltBlue)" title="merge_sort_animation2" width="280" height="237" class="size-full wp-image-549" />
	<p class="wp-caption-text">v1: Nuno Nogueira (Nmnogueira), v2: edited by Daniel Miller (cobaltBlue)</p>
</div>
<p>I like it so much that I&#8217;ve implemented it in <a href="http://www.codebelay.com/algorithms/sorting/MergeSort.phps">PHP</a> and <a href="http://www.codebelay.com/rb/trunk/mergesort.rb">Ruby</a>.</p>
<p>The problem is that as a web developer I&#8217;ve never had to use a merge sort. Back in the old days when pagination was tricky, I&#8217;ve had to use a linked list, but you really don&#8217;t have to use the merge sort anymore.</p>
<p>So at this point it&#8217;s really just academic.</p>
<p>What interview question should really count now?</p>
<p>More on that in my next post. As a clue, I&#8217;d like to say it has to do with Leibniz&#8217;s statement, &#8220;The present is big with the future.&#8221; A techie who believes that and <a href="http://en.wikipedia.org/wiki/Principle_of_sufficient_reason">the principle of sufficient reason</a> is the kind of techie you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2009/04/09/my-favorite-coder-interview-question/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Quick Guide to Noobwatcher</title>
		<link>http://www.codebelay.com/blog/2008/10/30/a-quick-guide-to-noobwatcher/</link>
		<comments>http://www.codebelay.com/blog/2008/10/30/a-quick-guide-to-noobwatcher/#comments</comments>
		<pubDate>Thu, 30 Oct 2008 17:30:35 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[WebApps]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=335</guid>
		<description><![CDATA[curl -O http://svn.collab.net/repos/svn/trunk/tools/client-side/showchange.pl mv showchange.pl $HOME/bin svn co http://codebelay.com/noobwatcher mkdir watched_repositories cd watches_repositories cp $HOME/noobwatcher/trunk/noobwatcher.rb . svn co Create and edit a settings.yml file. Mine looksl like this: path: /Users/barce/nooblive/trunk repo: http://www.example.com/the_repo_I_am_watching diffs: /Users/barce/nooblive/diffs twitter_email: the_twitter_email_that_notifies_you@example.com twitter_password: the_password_to_the_twitter_email_that_notifies_you twitter_recipient: your_twitter_account sleepseconds: 60 Start noobwatcher: ./noobwatcher.rb]]></description>
			<content:encoded><![CDATA[<p></p><div style="background: #000; color: #fff; padding: 5px;">
curl -O http://svn.collab.net/repos/svn/trunk/tools/client-side/showchange.pl<br />
mv showchange.pl $HOME/bin<br />
svn co http://codebelay.com/noobwatcher<br />
mkdir watched_repositories<br />
cd watches_repositories<br />
cp $HOME/noobwatcher/trunk/noobwatcher.rb .<br />
svn co
<the repo you want to watch>
</div>
<p>Create and edit a settings.yml file. Mine looksl like this:</p>
<div style="background: #000; color: #fff; padding: 5px;">
path: /Users/barce/nooblive/trunk<br />
repo: http://www.example.com/the_repo_I_am_watching<br />
diffs: /Users/barce/nooblive/diffs<br />
twitter_email: the_twitter_email_that_notifies_you@example.com<br />
twitter_password: the_password_to_the_twitter_email_that_notifies_you<br />
twitter_recipient: your_twitter_account<br />
sleepseconds: 60
</div>
<p>Start noobwatcher:</p>
<div style="background: #000; color: #fff; padding: 5px;">
./noobwatcher.rb
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2008/10/30/a-quick-guide-to-noobwatcher/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Part II of NoobWatcher: Automatically Reporting Server File Changes</title>
		<link>http://www.codebelay.com/blog/2008/09/26/part-ii-of-noobwatcher-automatically-reporting-file-changes/</link>
		<comments>http://www.codebelay.com/blog/2008/09/26/part-ii-of-noobwatcher-automatically-reporting-file-changes/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 19:21:02 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[noobwatcher]]></category>
		<category><![CDATA[tripwire]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=250</guid>
		<description><![CDATA[With Noobwatcher, I&#8217;m now able to be really on top of subversion commits. But now it&#8217;s time to start working on part II, the part that keeps track of my server configuration and makes sure that it&#8217;s correct for all the servers that I want to use. I&#8217;m taking a look at Tripwire. Are there [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>With <a href="http://noobwatcher.com/">Noobwatcher</a>, I&#8217;m now able to be really on top of subversion commits. But now it&#8217;s time to start working on part II, the part that keeps track of my server configuration and makes sure that it&#8217;s correct for all the servers that I want to use.</p>
<p>I&#8217;m taking a look at <a href="http://sourceforge.net/project/showfiles.php?group_id=3130&#038;release_id=26024">Tripwire</a>. Are there any libraries that you use for automatically checking if files have changed?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2008/09/26/part-ii-of-noobwatcher-automatically-reporting-file-changes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yahoo&#8217;s BOSS API Example and Notes on Yahoo&#8217;s Hackday</title>
		<link>http://www.codebelay.com/blog/2008/09/15/yahoos-boss-api-example-and-notes-on-yahoos-hackday/</link>
		<comments>http://www.codebelay.com/blog/2008/09/15/yahoos-boss-api-example-and-notes-on-yahoos-hackday/#comments</comments>
		<pubDate>Mon, 15 Sep 2008 18:45:23 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[Social Media]]></category>
		<category><![CDATA[TechBiz]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=215</guid>
		<description><![CDATA[For Yahoo&#8217;s hackday, I was able to finish up this script in Ruby that returns back search results from yelp and chowhound from Yahoo&#8217;s BOSS API. The great thing about it is that you can hit the API an unlimited number of times! Here are a few notes that should help anybody the next time [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>For Yahoo&#8217;s hackday, I was able to finish up<a href="http://www.codebelay.com/rb/trunk/foodsearch.rb"> this script</a> in Ruby that returns back search results from <a href="http://yelp.com/">yelp</a> and <a href="http://www.chowhound.com/">chowhound</a> from <a href="http://developer.yahoo.com/search/boss/boss_guide/">Yahoo&#8217;s BOSS API</a>. The great thing about it is that you can hit the API an unlimited number of times!</p>
<p>Here are a few notes that should help anybody the next time they attend a hackday &#8211; Yahoo&#8217;s or anyone else&#8217;s:</p>
<ul>
<li>The night before install libraries you think you won&#8217;t need. I really wish that I had <a href="http://www.cracklabs.com/prawnto">prawnto</a> installed. I got mired in prawnto idiosyncracies, and was out of the race pretty quick.</li>
<li>Good coders are fast. According to <a href="http://www.hueniverse.com/">Eran Lahav-Hammer</a>, one of the authors of <a href="http://oauth.net/">OAuth</a>, good coders can code an OAuth implementation in the language of their choice in less than one day. Are you a good coder?</li>
<li>Have fun! It&#8217;s a pretty rare opportunity to have so many folks in the industry in one spot.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2008/09/15/yahoos-boss-api-example-and-notes-on-yahoos-hackday/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.445 seconds -->
