<?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>Safely Reach New Tech Heights Through Our Startup Insights</description>
	<lastBuildDate>Wed, 25 Jan 2012 19:12:53 +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>Upgrade Your Rails Facebook App to SSL</title>
		<link>http://www.codebelay.com/blog/2011/09/13/upgrade-your-rails-facebook-app-to-ssl/</link>
		<comments>http://www.codebelay.com/blog/2011/09/13/upgrade-your-rails-facebook-app-to-ssl/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 05:39:27 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[WebApps]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook apps]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=1159</guid>
		<description><![CDATA[On October 1st of this year, Facebook will be requiring that all apps on Facebook must support HTTPS (SSL). I&#8217;ve provided a guide below which I&#8217;ve used for apps I&#8217;ve worked on that are Rails based. This guide shows you how to change your Rails Facebook App into an app that supports SSL using Passenger [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>On October 1st of this year, <a href="https://developers.facebook.com/blog/post/499/">Facebook will be requiring that all apps on Facebook must support HTTPS (SSL)</a>.</p>
<p>I&#8217;ve provided a guide below which I&#8217;ve used for apps I&#8217;ve worked on that are Rails based. </p>
<p>This guide shows you how to change your Rails Facebook App into an app that supports SSL using <a href="http://www.modrails.com/index.html">Passenger</a> and Apache2.</p>
<p><strong>Step 1: Get an SSL cert or roll your own.<br />
</strong></p>
<p><a href="http://www.dreamhost.com/">Dreamhost.com</a> made it very easy to add an SSL cert for just $15.00 / year.</p>
<p>I tried out my app out using a locally signed certificate which seemed to work just fine:</p>
<div style="padding: 5px; color: #fff; background: #000">
openssl genrsa -des3 -out server.key 2048<br />
openssl req -new -key server.key -out server.csr<br />
cp server.key server.key.org<br />
openssl rsa -in server.key.org -out server.key<br />
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
</div>
<p><br/><br />
<strong>Step 2: Install and compile Apache 2<br />
</strong><br />
Get the latest version of Apache: <a href="http://httpd.apache.org/download.cgi">http://httpd.apache.org/download.cgi</a>.</p>
<p>Configure and compile Apache:<br />
./configure &#8211;prefix=/usr/local/apache2 &#8211;enable-rewrite &#8211;enable-so &#8211;enable-ssl<br />
make &#038;&#038; make install</p>
<p><strong>Step 3: Configure your Rails app<br />
</strong><br />
gem install passenger<br />
passenger-install-apache2-module</p>
<p><strong>Step 4: Edit your Apache 2 config files:<br />
</strong><br />
Edit httpd.conf. For example:</p>
<div style="padding: 5px; color: #fff; background: #000">
<pre style="color: #fff; background: #000;">
LoadModule fcgid_module modules/mod_fcgid.so
LoadModule passenger_module /Users/jimbarcelona/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8/ext/apache2/mod_passenger.so
PassengerRoot /Users/jimbarcelona/.rvm/gems/ruby-1.9.2-p290/gems/passenger-3.0.8
PassengerRuby /Users/jimbarcelona/.rvm/wrappers/ruby-1.9.2-p290/ruby

<Directory "/Users/jimbarcelona/rails_apps">
    Options Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
</Directory>

Include conf/extra/httpd-vhosts.conf
Include conf/extra/httpd-ssl.conf

<IfModule mod_fcgid.c>
IPCCommTimeout 40
IPCConnectTimeout 10

# TODO: change this to production if you are on production
DefaultInitEnv RAILS_ENV development
SocketPath /tmp/fcgidsock
</IfModule>
</pre>
</div>
<p><br/></p>
<p>Edit extra/httpd-vhosts.conf:</p>
<div style="padding: 5px; color: #fff; background: #000">
<pre style="color: #fff; background: #000;">
<VirtualHost *:80>
  ServerName berkeley.l33tcave.com
  ServerAdmin wwwadmin@berkeley.l33tcave.com
  DocumentRoot /Users/jimbarcelona/rails_apps/github/hipsterhookups.com/public
  ErrorLog /usr/local/apache2/logs/rails_error_log
  RewriteEngine On
  <Directory /Users/jimbarcelona/rails_apps/github/hipsterhookups.com/public>
    AllowOverride All
    Options -MultiViews
  </Directory>
  RailsEnv development
</VirtualHost>
</pre>
</div>
<p><br/></p>
<p>Edit extra/httpd-ssl.conf:</p>
<div style="padding: 5px; color: #fff; background: #000">
<pre style="color: #fff; background: #000;">
#   General setup for the virtual host
DocumentRoot "/Users/jimbarcelona/rails_apps/github/hipsterhookups.com/public"
ServerName berkeley.l33tcave.com:443
ServerAdmin you@example.com
ErrorLog "/usr/local/apache2/logs/error_log"
TransferLog "/usr/local/apache2/logs/access_log"

# needed for rails
Options Indexes ExecCGI FollowSymLinks
RewriteEngine On
RailsEnv development

AddHandler fcgid-script .fcgi

  <Directory /Users/jimbarcelona/rails_apps/github/hipsterhookups.com/public>
    AllowOverride All
    Options -MultiViews
  </Directory>
</pre>
</div>
<p><br/><br />
Be sure to add your SSL certs in the httpd-ssl.conf too!</p>
<p><strong>Step 5: Start Apache<br />
</strong></p>
<p># check syntax<br />
apachectl configtest<br />
# start apache<br />
apachectl start</p>
<p><strong>Step 6:</strong> Go to facebook and use https for canvas URLs</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2011/09/13/upgrade-your-rails-facebook-app-to-ssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Cucumber and RSpec on Padrino</title>
		<link>http://www.codebelay.com/blog/2011/07/26/setting-up-cucumber-and-rspec-on-padrino/</link>
		<comments>http://www.codebelay.com/blog/2011/07/26/setting-up-cucumber-and-rspec-on-padrino/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 04:14:01 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=1145</guid>
		<description><![CDATA[This is a quick guide on how to set up Cucumber and RSpec on Padrino. I&#8217;ve created a simple test app on github that reflects the steps written down here. 1. Create the app: padrino g project todo -t cucumber -d sequel -b 2. In the Gemfile use rake 0.8.7: gem 'rake', "0.8.7" 3. In [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is a quick guide on how to set up <a href="http://cukes.info/">Cucumber</a> and <a href="http://rspec.info/">RSpec</a> on <a href="http://www.padrinorb.com/">Padrino</a>.</p>
<p>I&#8217;ve created<a href="https://github.com/barce/padrino_testlab"> a simple test app on github</a> that reflects the steps written down here.</p>
<p>1. Create the app:</p>
<pre>padrino g project todo -t cucumber -d sequel -b</pre>
<p>2. In the Gemfile use rake 0.8.7:</p>
<pre>gem 'rake', "0.8.7"</pre>
<p>3. In features/support/env.rb comment out &#8220;require &#8216;spec/expectations&#8217;&#8221; so it looks like:</p>
<pre># require 'spec/expectations'</pre>
<p>At this point &#8216;cucumber features&#8217; should work and should return a failed test for adding two numbers.</p>
<p>Also at this point, if you create any models, then bare specs for them will be created in the &#8216;spec/models&#8217; folder.</p>
<p>Please feel free to leave questions or comments if you&#8217;ve got a different way of setting things up on Padrino.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2011/07/26/setting-up-cucumber-and-rspec-on-padrino/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Test Image Uploads With MiniTest On Padrino</title>
		<link>http://www.codebelay.com/blog/2011/07/22/how-to-test-image-uploads-with-minitest-on-padrino/</link>
		<comments>http://www.codebelay.com/blog/2011/07/22/how-to-test-image-uploads-with-minitest-on-padrino/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 17:11:04 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[WebApps]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=1127</guid>
		<description><![CDATA[This week I got to pair program with Oren Golan whose last high profile job was at Border Stylo. While there, he wrote a series of excellent blog posts that I highly recommend reading. The one that caught my eye was his post on MiniTest, that&#8217;s a lighter version of RSpec. We created a Padrino [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This week I got to pair program with <a href="https://github.com/oren">Oren Golan</a> whose last high profile job was at <a href="http://borderstylo.com">Border Stylo</a>. While there, he wrote <a href="http://borderstylo.com/posts_by/oren-golan">a series of excellent blog posts</a> that I highly recommend reading. The one that caught my eye was <a href="http://borderstylo.com/posts/251-minitest-rubys-new-bff">his post on MiniTest</a>, that&#8217;s a lighter version of RSpec.</p>
<p>We created a <a href="http://www.padrinorb.com/">Padrino</a> app that uses the <a href="http://sequel.rubyforge.org/">Sequel</a> gem as an ORM for SQLite.</p>
<p>We tested a raw file upload and the uploading capabilities of <a href="https://github.com/jnicklas/carrierwave">Carrierwave</a>.</p>
<p>The working test is on <a href="http://github.com/barce/test">http://github.com/barce/test</a>, and to run it just clone the repo and type the following:</p>
<div style="background: #000; color: #fff; padding: 5px;">
cd test<br />
bundle install<br />
padrino sq:migrate:up</p>
</div>
<p>Here&#8217;s the test:</p>
<div style="background: #000; color: #fff; padding: 5px;">
<pre style='background: #000; color: #fff'>
# put this into the test/test.rb file
require 'rubygems'
gem 'minitest'
require 'minitest/autorun'
require 'rack/test'
require '../config/boot.rb'

class TestManualBadgeType < MiniTest::Unit::TestCase
  include Rack::Test::Methods

  FILE2UPLOAD  = "/Users/jimbarcelona/pink-pony.jpg"
  UPLOADEDFILE = "/Users/jimbarcelona/repos/oren/forks/test/test/pink-pony.jpg"

  def app() Test end

  def setup
    if File.exist?(UPLOADEDFILE)
      File.delete(UPLOADEDFILE)
    end
  end

  def test_opload
    post '/', 'file' => Rack::Test::UploadedFile.new(FILE2UPLOAD, 'image/jpeg')

    assert_equal last_response.status, 201
  end

  def test_carrierwave_201
    post '/carrierwave', 'file' => Rack::Test::UploadedFile.new(FILE2UPLOAD, 'image/jpeg')

    assert_equal last_response.status, 201
  end

  def test_carrierwave_file_exist
    post '/carrierwave', 'file' => Rack::Test::UploadedFile.new(FILE2UPLOAD, 'image/jpeg')
    assert_equal last_response.status, 201
  end
end
</pre>
</div>
<p>Now you&#8217;re ready to run the test upload:</p>
<div style="background: #000; color: #fff; padding: 5px;">
cd test<br />
ruby test.rb
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2011/07/22/how-to-test-image-uploads-with-minitest-on-padrino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Jim Barcelona, Ruby Rockstar</title>
		<link>http://www.codebelay.com/blog/2011/03/09/jim-barcelona-ruby-rockstar/</link>
		<comments>http://www.codebelay.com/blog/2011/03/09/jim-barcelona-ruby-rockstar/#comments</comments>
		<pubDate>Wed, 09 Mar 2011 22:15:04 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[TechBiz]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=1003</guid>
		<description><![CDATA[The term &#8220;rockstar&#8221; is much maligned in tech circles when applied to job descriptions. Another sentiment told with utter sarcasm: Any job description which contains the word, &#8220;rockstar,&#8221; must also disclose the salary offer. -Steve @jangosteve And to round things out: There&#8217;s nothing more ridiculous than job ads requesting a Ruby rock star. &#8212; Giles [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>The term &#8220;rockstar&#8221; is much maligned in tech circles when applied to job descriptions.</p>
<p><a href="http://www.codebelay.com/blog/wp-content/uploads/2011/03/hate_rockstar.png"><img class="aligncenter size-medium wp-image-1004" title="Rockstar *eyeroll*" src="http://www.codebelay.com/blog/wp-content/uploads/2011/03/hate_rockstar-300x107.png" alt="" width="300" height="107" /></a></p>
<p>Another sentiment told with utter sarcasm:</p>
<blockquote><p><em>Any job description which contains the word, &#8220;rockstar,&#8221; must also disclose the salary offer.</em></p>
<p>-Steve</p>
<div>@jangosteve</div>
</blockquote>
<div>And to round things out:</div>
<blockquote>
<div>There&#8217;s nothing more ridiculous than job ads requesting a Ruby rock star. &#8212; <a href="http://gilesbowkett.blogspot.com/2009/05/what-its-like-being-ruby-rock-star.html">Giles Bowkett</a></div>
</blockquote>
<div>Since the term is so maligned, I&#8217;ve decided to take it. Like a day trader attracted to something at it&#8217;s lowest buy point, I&#8217;m attracted to the term, &#8220;Rockstar.&#8221;</div>
<div>My guitar skills aren&#8217;t that great. If anybody should be worthy of the term of Ruby rockstar it should be <a href="http://zedshaw.com/">Zed Shaw</a> for meeting the terms figuratively and literally. He plays guitar in an awesome way in the streets and he&#8217;s a great coder.</div>
<div>I wrote an email to the SF Ruby Meetup List in jest that was <a href="http://www.sfruby.info/messages/12546028/?action=detail&amp;messageId=12546028">written in the alter ego of a Ruby rockstar</a>. I was poking fun of a combination of stereotypes dealing with coders with egos and rockstars with egos.</div>
<div>The businessman in me thinks it&#8217;s such a shame that folks don&#8217;t own up to the moniker. Since others won&#8217;t; I will. I&#8217;m Jim Barcelona, Ruby rockstar.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2011/03/09/jim-barcelona-ruby-rockstar/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgrading To Rails 3</title>
		<link>http://www.codebelay.com/blog/2011/01/06/upgrading-to-rails-3/</link>
		<comments>http://www.codebelay.com/blog/2011/01/06/upgrading-to-rails-3/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 00:40:28 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=996</guid>
		<description><![CDATA[Here&#8217;s how I upgraded Sitebeagle.net to Rails 3. 1. Go into your site&#8217;s Rails directory and install rails_upgrade: script/plugin install git://github.com/rails/rails_upgrade.git Run the following commands and follow the instructions: rake rails:upgrade:check rake rails:upgrade:backup rake rails:upgrade:routes rake rails:upgrade:gems rake rails:upgrade:configuration 2. Make sure that your version of Ruby 1.9+ has iconv working. Mine didn&#8217;t, so I [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Here&#8217;s how I upgraded <a href="http://sitebeagle.net/">Sitebeagle.net</a> to Rails 3.</p>
<p>1. Go into your site&#8217;s Rails directory and install rails_upgrade:</p>
<p>script/plugin install git://github.com/rails/rails_upgrade.git</p>
<p>Run the following commands and follow the instructions:</p>
<p>rake rails:upgrade:check<br />
rake rails:upgrade:backup<br />
rake rails:upgrade:routes<br />
rake rails:upgrade:gems<br />
rake rails:upgrade:configuration</p>
<p>2. Make sure that your version of Ruby 1.9+ has iconv working.</p>
<p>Mine didn&#8217;t, so I went through this process:</p>
<p>rvm package install readline<br />
rvm package install iconv<br />
rvm remove 1.9.2<br />
rvm install &#8211;trace 1.9.2 -C &#8211;with-iconv-dir=$HOME/.rvm/usr</p>
<p>to test:<br />
irb<br />
require &#8216;iconv&#8217; # should return true</p>
<p>3. Upgrade to Rails 3: gem install rails</p>
<p>4. Start migrating to Rails 3: I branched my site using git and went into my Rails root directory and typed:</p>
<p>rails `pwd`</p>
<p>Use your best judgment on what can and cannot be over-written. Here&#8217;s my list:</p>
<p>* let rails overwrite?<br />
* overwrite rake file<br />
* overwrite application_controller.rb? yes but copy<br />
* application_helper.rb ? yes<br />
* routes.rb ? yes but copy<br />
* environment.rb ?<br />
* make new initializer for contants<br />
* config.gem? copy and put into a Gemfile<br />
* application.js ? only if confident in js<br />
* scripts? overwrite all</p>
<p>5. See if stuff works:</p>
<p>rails server</p>
<p>Twitter-auth broke for me, so I had to update it to work on Rails 3 using this guide:</p>
<p><a href="https://github.com/benders/twitter-auth/compare/master...rails_3">https://github.com/benders/twitter-auth/compare/master&#8230;rails_3</a></p>
<p>How&#8217;s your upgrade to Rails 3 go? Let me know in the comments below.</p>
<p><strong>Update (14 January 2011):</strong></p>
<p><a href="http://chrislaco.com/">Chris Laco</a> wrote up this great guide to u<a href="http://chrislaco.com/blog/rails3-dreamhost-and-you/">pgrading Rails 3 on Dreamhost</a>. It solves path problem issues with gems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2011/01/06/upgrading-to-rails-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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[php]]></category>
		<category><![CDATA[Questions]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[TechBiz]]></category>
		<category><![CDATA[WebApps]]></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[command-line]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[WebApps]]></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[ruby]]></category>
		<category><![CDATA[Social Media]]></category>
		<category><![CDATA[TechBiz]]></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.401 seconds -->

