<?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>Sam Pierson&#039;s Blog &#187; ruby</title>
	<atom:link href="http://sampierson.com/blog/tag/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://sampierson.com/blog</link>
	<description>Augmentation of an Imperfect Memory.</description>
	<lastBuildDate>Wed, 21 Jul 2010 01:41:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to optimize a Solr index from Sunspot</title>
		<link>http://sampierson.com/blog/software-development/how-to-optimize-a-solr-index-from-sunspot/</link>
		<comments>http://sampierson.com/blog/software-development/how-to-optimize-a-solr-index-from-sunspot/#comments</comments>
		<pubDate>Sat, 17 Jul 2010 03:37:10 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[solr]]></category>
		<category><![CDATA[sunspot]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=678</guid>
		<description><![CDATA[It doesn&#8217;t look like SunSpot has a builtin optimize command.
Here&#8217;s one way you can do it:

&#160;
Sunspot.session.session.send&#40;:connection&#41;.update RSolr::Message::Generator.new.build &#123; &#124;b&#124; b.optimize &#125;

Anyone know of a simpler one?
]]></description>
			<content:encoded><![CDATA[<p>It doesn&#8217;t look like SunSpot has a builtin optimize command.<br />
Here&#8217;s one way you can do it:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">&nbsp;
Sunspot.<span style="color:#9900CC;">session</span>.<span style="color:#9900CC;">session</span>.<span style="color:#9900CC;">send</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:connection</span><span style="color:#006600; font-weight:bold;">&#41;</span>.<span style="color:#9900CC;">update</span> <span style="color:#6666ff; font-weight:bold;">RSolr::Message::Generator</span>.<span style="color:#9900CC;">new</span>.<span style="color:#9900CC;">build</span> <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>b<span style="color:#006600; font-weight:bold;">|</span> b.<span style="color:#9900CC;">optimize</span> <span style="color:#006600; font-weight:bold;">&#125;</span></pre></div></div>

<p>Anyone know of a simpler one?</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/how-to-optimize-a-solr-index-from-sunspot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy rspec matchers</title>
		<link>http://sampierson.com/blog/software-development/easy-rspec-matchers/</link>
		<comments>http://sampierson.com/blog/software-development/easy-rspec-matchers/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 00:04:09 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[rspec]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=646</guid>
		<description><![CDATA[http://rspec.rubyforge.org/rspec/1.2.9/classes/Spec/Matchers.html
]]></description>
			<content:encoded><![CDATA[<p><a href="http://rspec.rubyforge.org/rspec/1.2.9/classes/Spec/Matchers.html">http://rspec.rubyforge.org/rspec/1.2.9/classes/Spec/Matchers.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/easy-rspec-matchers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to stop ActiveRecord putting attribute name in validation message</title>
		<link>http://sampierson.com/blog/software-development/how-to-stop-activerecord-putting-attribute-name-in-validation-message/</link>
		<comments>http://sampierson.com/blog/software-development/how-to-stop-activerecord-putting-attribute-name-in-validation-message/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 20:43:12 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=591</guid>
		<description><![CDATA[Use http://github.com/gumayunov/custom-err-msg/tree/master
Put a ^ at the start of the :message =&#62; option:
Non-base messages are prefixed with the attribute name as usual UNLESS they begin with '^'
 in which case the attribute name is omitted.
]]></description>
			<content:encoded><![CDATA[<p>Use http://github.com/gumayunov/custom-err-msg/tree/master</p>
<p>Put a ^ at the start of the :message =&gt; option:</p>
<pre style="font: normal normal normal 115%/normal Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; line-height: 1.4em; font-family: 'Bitstream Vera Sans Mono', Courier, monospace; font-size: 11px; color: #444444; padding: 0px; margin: 0px;">Non-base messages are prefixed with the attribute name as usual UNLESS they begin with '^'
 in which case the attribute name is omitted.</pre>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/how-to-stop-activerecord-putting-attribute-name-in-validation-message/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paperclip/ImageMagick image geometry specifiers</title>
		<link>http://sampierson.com/blog/software-development/paperclipimagemagick-image-geometry-specifiers/</link>
		<comments>http://sampierson.com/blog/software-development/paperclipimagemagick-image-geometry-specifiers/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 20:36:43 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=589</guid>
		<description><![CDATA[This can be a pain to find so here is the quick access version:
&#60;width&#62;x&#60;height&#62;&#60;specifier&#62;
% Interpret width and height as a percentage of the current size.
! Resize to width and height exactly, loosing original aspect ratio.
&#60; Resize only if the image is smaller than the geometry specification.
&#62; Resize only if the image is greater than the [...]]]></description>
			<content:encoded><![CDATA[<p>This can be a pain to find so here is the quick access version:</p>
<p>&lt;width&gt;x&lt;height&gt;&lt;specifier&gt;</p>
<p>% Interpret width and height as a percentage of the current size.<br />
! Resize to width and height exactly, loosing original aspect ratio.<br />
&lt; Resize only if the image is smaller than the geometry specification.<br />
&gt; Resize only if the image is greater than the geometry specification.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/paperclipimagemagick-image-geometry-specifiers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switching an ActiveRecord instance between STI classes</title>
		<link>http://sampierson.com/blog/software-development/switching-an-activerecord-instance-between-sti-classes/</link>
		<comments>http://sampierson.com/blog/software-development/switching-an-activerecord-instance-between-sti-classes/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 07:11:16 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=582</guid>
		<description><![CDATA[Sometimes you wish to convert one STI class to another, e.g. promote User to Administrator.
ActiveRecord::Base#becomes(Klass) returns an instance of the current record converted to the specified Klass, e.g.:

&#160;
user = User.find_by_login&#40;&#34;sam&#34;&#41;
user.becomes&#40;Administrator&#41;

Note however that this does not change the type attribute of the instance, so you still have an additional step to do if you want this [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes you wish to convert one STI class to another, e.g. promote User to Administrator.</p>
<p>ActiveRecord::Base#becomes(Klass) returns an instance of the current record converted to the specified Klass, e.g.:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">&nbsp;
user = User.<span style="color:#9900CC;">find_by_login</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#996600;">&quot;sam&quot;</span><span style="color:#006600; font-weight:bold;">&#41;</span>
user.<span style="color:#9900CC;">becomes</span><span style="color:#006600; font-weight:bold;">&#40;</span>Administrator<span style="color:#006600; font-weight:bold;">&#41;</span></pre></div></div>

<p>Note however that this does not change the type attribute of the instance, so you still have an additional step to do if you want this conversion to be permanent.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/switching-an-activerecord-instance-between-sti-classes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SV-Ruby Meetup, 2009-03-19</title>
		<link>http://sampierson.com/blog/software-development/sv-ruby-meetup-2009-03-19/</link>
		<comments>http://sampierson.com/blog/software-development/sv-ruby-meetup-2009-03-19/#comments</comments>
		<pubDate>Fri, 20 Mar 2009 03:15:49 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[meetup]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=490</guid>
		<description><![CDATA[Yehuda Katz talked about Rails 3
Rails API should not change!  It&#8217;s a mistake to change the API and the implementation at the same time (think Ruby 1.9 language and VM).
 ORM Agnisticism
With for_for @obj, @obj can be an ActiveRecord, DataMapper, CouchDB, SimpleDB, Sequel object.  Two interfaces are now support for ORM objects, ActiveRecord/DataMapper style: errors, #each, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Yehuda Katz</strong> talked about <strong>Rails 3</strong></p>
<p>Rails API should not change!  It&#8217;s a mistake to change the API and the implementation at the same time (think Ruby 1.9 language and VM).</p>
<p><strong> ORM Agnisticism</strong></p>
<p>With <em>for_for @obj, </em>@obj can be an ActiveRecord, DataMapper, CouchDB, SimpleDB, Sequel object.  Two interfaces are now support for ORM objects, ActiveRecord/DataMapper style: <em>errors, #each, #join </em>and Sequel style: <em>errors, #to_str.<br />
</em>Under the covers:     Works with any ORM that codes to the interface:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="foo" style="font-family:monospace;">ActionORM::Drivers::AbstractDriver
initialize
new_record?
errors
valid?</pre></td></tr></table></div>

<p>Sequel will provide a proxy for their users, an adapter to ActiveRecord API.  Inside Rails, the only line that changed is:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">objects.<span style="color:#9900CC;">map</span>! <span style="color:#006600; font-weight:bold;">&#123;</span> <span style="color:#006600; font-weight:bold;">|</span>o<span style="color:#006600; font-weight:bold;">|</span> ActionORM.<span style="color:#9966CC; font-weight:bold;">for</span><span style="color:#006600; font-weight:bold;">&#40;</span>o<span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#125;</span></pre></div></div>

<p>Makes writing plugins easier.</p>
<p><strong>Rack</strong></p>
<ul>
<li>Is an abstraction between servers (Mongrel Thin Webrick IRB CGI Runner Eb FCGI) and Rails/Merb.</li>
<li>Prefork &#8211; efficient parallelization.</li>
<li>Middleware:     build up pipes of stuff between the server and Merb/Rails</li>
<li>Rails 2.3: Sessions is middleware, Failsafe is middlware.  To use in Rails 2.3, do: <em>config.middlware.use  Foo</em></li>
</ul>
<p>Router can now route to RailsController or MerbController or RailsRouter or SinatraApp,     it really doesn&#8217;t matter.</p>
<p><strong>AbstractController</strong></p>
<p>A pluggable API for building controllers.  Add what you want: dispatch, callbacks etc, leave out what you don&#8217;t want.</p>
<p><strong>Public / Private / Plugin API</strong></p>
<p>Rails had a public API and everything else was :nodoc:.  Trouble with that was that there was no stable interface for plugin writers to implement against.</p>
<p><strong>Rack::Bug</strong></p>
<p>Debug toolbar based on Django Debug Toolbar.  Made pluggable with Orchestra &#8211; a pub/sub framework for streaming instrumentation events that Yehuda just started.  Lower impact.  Will work for New Relic, Five Runs, etc.</p>
<p>Exception Middleware</p>
<p><strong>JavaScript</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;form class=&quot;remote&quot; method=&quot;post&quot;, ...</pre></div></div>

<p>Then in rails.jquery.js</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;form.remote&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">live</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;submit&quot;</span><span style="color: #339933;">,</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> $this.<span style="color: #660066;">ajaxSubmit</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></pre></div></div>

<p>Replace it with rails.you!.js</p>
<p><strong>Performance</strong></p>
<p>Ruby 1.9 is now 2nd fastest dynamic language at 50x slower than C++.  Python2 is the fastest (40x), PHP is the new loser (100x) now that Ruby 1.8.6 (150x) is gone.</p>
<p><strong>Rails Boost</strong></p>
<p>Build you own custom rails stack.  Pick templating language, pick javascript framework&#8230;</p>
<p><strong>Competition</strong></p>
<p>Plugin APIs allow everyone to compete in the area they are interested in, without having to write an entire framework.</p>
<p><strong>Schedule</strong></p>
<p>Alpha for Railsconf. Need something to give to plugin writers.  Would like to get it released by EOY.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/sv-ruby-meetup-2009-03-19/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ActiveRecord performance: validation and associations</title>
		<link>http://sampierson.com/blog/software-development/rails-performance-and-validation/</link>
		<comments>http://sampierson.com/blog/software-development/rails-performance-and-validation/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 07:07:03 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[ActiveRecord]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=475</guid>
		<description><![CDATA[If you have two models associated in some way, it is usual to add a validates_presence_of validator to ensure that the models are connected before saving. However, be aware that there are two ways of doing this with different performance ramifications:

class BlogEntry &#60; ActiveRecord::Base
  belongs_to :blog
  validate_presence_of :blog
end

During validation, Validates_presence_of :blog causes ActiveRecord [...]]]></description>
			<content:encoded><![CDATA[<p>If you have two models associated in some way, it is usual to add a validates_presence_of validator to ensure that the models are connected before saving. However, be aware that there are two ways of doing this with different performance ramifications:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> BlogEntry <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActiveRecord::Base</span>
  belongs_to <span style="color:#ff3333; font-weight:bold;">:blog</span>
  validate_presence_of <span style="color:#ff3333; font-weight:bold;">:blog</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>During validation, <em>Validates_presence_of :blog</em> causes ActiveRecord to call <em>self#blog</em> to see if it is nil. As this is the name of the association it will cause AR to retrieve the associated record from the DB before ascertaining if it is nil.  E.g. with Rails 2.2.2:</p>
<pre>&gt;&gt; e = BlogEntry.find(1)
  BlogEntry Load (0.3ms)   SELECT * FROM "blog_entries" WHERE ("blog_entries"."id" = 1)
=&gt; #
&gt;&gt; e.valid?
  Blog Load (0.3ms)   SELECT * FROM "blogs" WHERE ("blogs"."id" = 1)
=&gt; true</pre>
<p>If you are confident of your database integrity, you can do <em>validates_presence_of :blog_id</em> instead.  This will save you an SQL query.  In a model that is saved frequently, this can be quite beneficial.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> BlogEntry <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActiveRecord::Base</span>
  belongs_to <span style="color:#ff3333; font-weight:bold;">:blog</span>
  validate_presence_of <span style="color:#ff3333; font-weight:bold;">:blog_id</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/rails-performance-and-validation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVRoR Meetup, 2009/02/25</title>
		<link>http://sampierson.com/blog/software-development/svror-metup-20090225/</link>
		<comments>http://sampierson.com/blog/software-development/svror-metup-20090225/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 04:29:45 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[meetup]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=471</guid>
		<description><![CDATA[Ikai Lan, JRuby
Rails 2.2 is thread safe.  Threads are safe to use on the JVM.  Use threads and use their performance advantage.
Warble (from Sun &#8211; Charles Nutter et al) will package a complete Rails app for deployment on a Java App Server.
Lacks the ease of Passenger.
Lots of weird incompatibilities.  Timeout.  RubyIO.  Namespace issues.  Metaprogramming.  You [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Ikai Lan, JRuby</strong></p>
<p>Rails 2.2 is thread safe.  Threads are safe to use on the JVM.  Use threads and use their performance advantage.</p>
<p>Warble (from Sun &#8211; Charles Nutter et al) will package a complete Rails app for deployment on a Java App Server.</p>
<p>Lacks the ease of Passenger.</p>
<p>Lots of weird incompatibilities.  Timeout.  RubyIO.  Namespace issues.  Metaprogramming.  You can&#8217;t use packages that use C extensions, e.g. RMagick.</p>
<p><strong>Adam Blum (adam at rhomobile.com), Building Mobile Apps with Rhodes</strong></p>
<p>Majority of development in HTML (erb templates).<br />
Gives you access to PIM, camera, GPS etc.<br />
On Github, bugs in Lighthouse.</p>
<p>Rhodes</p>
<ul>
<li>Microframework for building locally executing natively optimized mobile apps.</li>
<li>Developers run app generator for their pbjects of interest the edit HTML templates.</li>
<li>Contains first mobile Ruby implementation.</li>
</ul>
<p>RhoSnyc</p>
<ul>
<li>Handles syncing of web service (REST, SOAP) data.</li>
</ul>
<p>ORM = Rhom</p>
<p>Gave a demo.  Seems pretty simple.  Didn&#8217;t seem as easy to debug.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/svror-metup-20090225/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Ruby MySQL gem on Mac OS X Leopard</title>
		<link>http://sampierson.com/blog/system-administration/installing-ruby-mysql-gem-on-mac-os-x-leopard/</link>
		<comments>http://sampierson.com/blog/system-administration/installing-ruby-mysql-gem-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 13:24:30 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[System Administration]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=254</guid>
		<description><![CDATA[Thanks to this post, I discovered how to install the MySQL ruby gem on Mac OS X:
You must be using the x86 variant of MySQL, not x86_64, apparently.  Then:

sudo env ARCHFLAGS=&#34;-arch i386&#34; gem install mysql -- \
--with-mysql-dir=/usr/local/mysql --with-mysql-lib=/usr/local/mysql/lib \
--with-mysql-include=/usr/local/mysql/include

]]></description>
			<content:encoded><![CDATA[<p>Thanks to <a href="http://wonko.com/post/how-to-install-the-mysqlruby-gem-on-mac-os-x-leopard">this post</a>, I discovered how to install the MySQL ruby gem on Mac OS X:</p>
<p>You must be using the x86 variant of MySQL, not x86_64, apparently.  Then:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">env</span> <span style="color: #007800;">ARCHFLAGS</span>=<span style="color: #ff0000;">&quot;-arch i386&quot;</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mysql <span style="color: #660033;">--</span> \
<span style="color: #660033;">--with-mysql-dir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>mysql <span style="color: #660033;">--with-mysql-lib</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>lib \
<span style="color: #660033;">--with-mysql-include</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span><span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>include</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/system-administration/installing-ruby-mysql-gem-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SvROR meetup, 2008/09/25</title>
		<link>http://sampierson.com/blog/software-development/svror-meetup-20080925/</link>
		<comments>http://sampierson.com/blog/software-development/svror-meetup-20080925/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 05:14:57 +0000</pubDate>
		<dc:creator>sam</dc:creator>
				<category><![CDATA[Software Development]]></category>
		<category><![CDATA[meetup]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://sampierson.com/blog/?p=245</guid>
		<description><![CDATA[Jerry Luk, LinkedIn

Bumper Sticker RoR app: 17M users, 900M views/month
NewIN &#8211; show new linkedin uses on google maps / ?globe9?
LinkedIn mobile
LinkedIn iPhone App (not rails)
OpenSocial Sandbox (hackday project)
LinkedIn Polls using JRuby
Use Starling, Beanstalk looking at JMS

Emmet @ JustIn.tv

Website for live video on the Internet (Youtube but live!)
Wrote a caching reverse proxy in Python &#38; Twisted.
Use Twisted [...]]]></description>
			<content:encoded><![CDATA[<p>Jerry Luk, LinkedIn</p>
<ul>
<li>Bumper Sticker RoR app: 17M users, 900M views/month</li>
<li>NewIN &#8211; show new linkedin uses on google maps / ?globe9?</li>
<li>LinkedIn mobile</li>
<li>LinkedIn iPhone App (not rails)</li>
<li>OpenSocial Sandbox (hackday project)</li>
<li>LinkedIn Polls using JRuby</li>
<li>Use Starling, Beanstalk looking at JMS</li>
</ul>
<p>Emmet @ JustIn.tv</p>
<ul>
<li>Website for live video on the Internet (Youtube but live!)</li>
<li>Wrote a caching reverse proxy in Python &amp; Twisted.</li>
<li>Use Twisted : Network Protocols :: Rails</li>
<li>Caches smaller than page items &#8211; don&#8217;t expire page just to change your name or flash.</li>
<li>This is a badass application.</li>
</ul>
<p>At this point the LinkedIn guest wireless network asked me to reauthenticate and I lost access to this post and stopped writing. However&#8230;</p>
<p>The last talk from Adam @ Heroku was great.  He is indeed correct &#8211; people focus way too much on Heroku&#8217;s web tools.  The command line tool is way more interesting.</p>
]]></content:encoded>
			<wfw:commentRss>http://sampierson.com/blog/software-development/svror-meetup-20080925/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
