<?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>Raymond Law &#187; Apple</title>
	<atom:link href="http://rayvinly.com/articles/category/apple/feed/" rel="self" type="application/rss+xml" />
	<link>http://rayvinly.com</link>
	<description>Badminton on Rails</description>
	<lastBuildDate>Sun, 04 Apr 2010 05:18:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>I hate TSA and laugh at their stupidity</title>
		<link>http://rayvinly.com/articles/2008/03/11/i-hate-tsa-and-laugh-at-their-stupidity/</link>
		<comments>http://rayvinly.com/articles/2008/03/11/i-hate-tsa-and-laugh-at-their-stupidity/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 15:58:57 +0000</pubDate>
		<dc:creator>Raymond Law</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[airport]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[macbookair]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[tsa]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[TSA stupidity on Macbook Air

Seriously, TSA is just wasting the government&#8217;s (hence our tax) money and does not provide much in return.  They are known to harrass regular traverlers.  I was once a victim while traveling on work.  I wrote an essay about it but am not sure if I should post [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://truemors.com/?p=26743"><span class="caps">TSA </span>stupidity on Macbook Air</a></p>

<p>Seriously, <span class="caps">TSA </span>is just wasting the government&#8217;s (hence our tax) money and does not provide much in return.  They are known to harrass regular traverlers.  I was once a victim while traveling on work.  I wrote an essay about it but am not sure if I should post it&#8230;</p>

<p><span class="caps">FUCK TSA</span>!</p><script src="http://feeds.feedburner.com/~s/rayvinly?i=http://rayvinly.com/articles/2008/03/11/i-hate-tsa-and-laugh-at-their-stupidity/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://rayvinly.com/articles/2008/03/11/i-hate-tsa-and-laugh-at-their-stupidity/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Another reason not to get the Macbook Air&#8230;</title>
		<link>http://rayvinly.com/articles/2008/03/10/another-reason-not-to-get-the-macbook-air/</link>
		<comments>http://rayvinly.com/articles/2008/03/10/another-reason-not-to-get-the-macbook-air/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 20:11:33 +0000</pubDate>
		<dc:creator>Raymond Law</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[macbookair]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Apparently, the Macbook Air is known to disappear into thin air&#8230; LOL]]></description>
			<content:encoded><![CDATA[<p>Apparently, the Macbook Air is known to <a href="http://truemors.com/?p=26705">disappear into thin air</a>&#8230; <span class="caps">LOL</span></p><script src="http://feeds.feedburner.com/~s/rayvinly?i=http://rayvinly.com/articles/2008/03/10/another-reason-not-to-get-the-macbook-air/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://rayvinly.com/articles/2008/03/10/another-reason-not-to-get-the-macbook-air/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Time Capsule</title>
		<link>http://rayvinly.com/articles/2008/01/15/time-capsule/</link>
		<comments>http://rayvinly.com/articles/2008/01/15/time-capsule/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 16:27:59 +0000</pubDate>
		<dc:creator>Raymond Law</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[macbookair]]></category>
		<category><![CDATA[timecapsule]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Apple announces the Time Capsule today at Macworld 2008.

I returned an Airport Extreme 2 months ago because it kept dropping my Macbook after waking from sleep w/o power plugged in.  It was a very frustrating experience, so I went back to the DI-524, although it also drops my Macbook whenever I turned on my [...]]]></description>
			<content:encoded><![CDATA[<p>Apple announces the <a href="http://www.apple.com/timecapsule/">Time Capsule</a> today at Macworld 2008.</p>

<p>I returned an Airport Extreme 2 months ago because it kept dropping my Macbook after waking from sleep w/o power plugged in.  It was a very frustrating experience, so I went back to the DI-524, although it also drops my Macbook whenever I turned on my Wii.  But I only have to turn Airport off and on and it works again.  The Airport Extreme worked for 30 seconds, then I turned it off/on, worked for another 30 seconds, turned off/on,&#8230;  The firmware is a piece of junk.</p>

<p>Now if Time Capsule does not have the same problem with Airport Extreme, I will probably get one to replace my crappy <span class="caps">NAT </span>and get a 500GB HD for Time Machine.</p>

<p>Airport Extreme $180<br />
500GB HD ~$100</p>

<p>So Time Capsule is priced much more reasonable than the Macbook Air, but only if it actually works and doesn&#8217;t drop connections.</p><script src="http://feeds.feedburner.com/~s/rayvinly?i=http://rayvinly.com/articles/2008/01/15/time-capsule/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://rayvinly.com/articles/2008/01/15/time-capsule/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macbook Air</title>
		<link>http://rayvinly.com/articles/2008/01/15/macbook-air/</link>
		<comments>http://rayvinly.com/articles/2008/01/15/macbook-air/#comments</comments>
		<pubDate>Tue, 15 Jan 2008 16:19:33 +0000</pubDate>
		<dc:creator>Raymond Law</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[macbookair]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Apple announces Macbook Air today at Macworld 2008.

At first, the coolness factor had me regretting not waiting to delay my Macbook purchase, but after learning that $1799 only has the 4200rpm 80GB HD and you have to shell out $3098 for a 64GB SSD.  I am relieved  

However, seeing it come out of [...]]]></description>
			<content:encoded><![CDATA[<p>Apple announces <a href="http://www.apple.com/macbookair/">Macbook Air</a> today at Macworld 2008.</p>

<p>At first, the coolness factor had me regretting not waiting to delay my Macbook purchase, but after learning that $1799 only has the 4200rpm 80GB HD and you have to shell out $3098 for a 64GB <span class="caps">SSD. </span> I am relieved <img src='http://rayvinly.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>

<p>However, seeing it come out of an envelope was extremely cool.  I do dislike the black keys a bit tho.  I thought making the whole thing aluminum would be more cool.  Biege =&gt; black =&gt; white =&gt; aluminum =&gt; black.  Huh?</p><script src="http://feeds.feedburner.com/~s/rayvinly?i=http://rayvinly.com/articles/2008/01/15/macbook-air/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://rayvinly.com/articles/2008/01/15/macbook-air/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Ruby on Rails, MySQL, Mongrel, memcached, and RMagick using MacPorts on Mac OS X 10.5 Leopard</title>
		<link>http://rayvinly.com/articles/2007/11/29/setting-up-ruby-on-rails-with-mysql-on-mac-os-x-10-5-leopard/</link>
		<comments>http://rayvinly.com/articles/2007/11/29/setting-up-ruby-on-rails-with-mysql-on-mac-os-x-10-5-leopard/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 01:35:55 +0000</pubDate>
		<dc:creator>Raymond Law</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Web 2.0]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I recently got the new Santa Rosa Macbook with Leopard pre-installed and I need to set up the Rails development environment.

Basically there are 3 ways to achieve that:

1. Locomotive

Locomotive method is simple and self contained.  It works very well for Mac OS X 10.4 Tiger.  However, the author acknowledges that Locomotive  may [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got the new Santa Rosa Macbook with <a href="http://www.apple.com/macosx/">Leopard</a> pre-installed and I need to set up the Rails development environment.</p>

<p>Basically there are 3 ways to achieve that:</p>

<p><strong>1. Locomotive</strong></p>

<p><a href="http://locomotive.raaum.org/">Locomotive</a> method is simple and self contained.  It works very well for Mac OS X 10.4 Tiger.  However, the author acknowledges that Locomotive  <a href="http://sourceforge.net/forum/forum.php?thread_id=1858643&amp;forum_id=491804">may not be Leopard ready</a>.</p>

<p><strong>2. Rails comes with Leopard</strong></p>

<p>That&#8217;s right.  Apple has included Rails by default, as noted by <a href="http://weblog.rubyonrails.org/2007/10/26/today-is-leopard-day"><span class="caps">DHH</span></a>.  This sounds great.  However, that means you will also have to manually install Imagick, RMagick, and all those other stuff that you need for development.  Also, it may be harder to upgrade Ruby or Rails when new versions come out.  You probably need to install from source to upgrade or what not&#8230;</p>

<p><strong>3. MacPorts</strong></p>

<p>You might already have your Rails environment set up using <a href="http://www.macports.org/">MacPorts</a>.  If that&#8217;s the case, why not just use that?  Even if you are like me with a fresh installed Leopard, MacPorts still has its advantages.  For example, you can use MacPorts to upgrade ruby in the future.</p>

<p>I used MacPorts to set up my Rails environment based on these other great articles:</p>


<ul>
<li><a href="http://teabass.com/super-simple-ruby-on-rails-install-with-macports-for-leopard/">Teabass</a></li>
<li><a href="http://www.robbyonrails.com/articles/2007/06/19/installing-ruby-on-rails-and-postgresql-on-os-x-second-edition">Robby on Rails</a></li>
<li><a href="http://michael.biven.org/2006/12/22/starting-mongrel-or-memcached-with-launchd/">Michael Biven</a></li>
<li><a href="http://gorn.ch/archive/2007/01/22/start-memcached-with-launchd.html"> Tobias Ebn&amp;Atilde;ƒ&amp;Acirc;&para;ther</a></li>
</ul>



<p>1. Install the latest Xcode version for Leopard.  <a href="http://developer.apple.com/tools/download/">Download</a> from the Apple website.</p>

<p>2. Install the latest MacPorts version for Leopard.  <a href="http://www.macports.org/">Download</a> from the MacPorts website.</p>

<p>Run this to update MacPorts:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port selfupdate</pre></div></div>




<p>3. Install Ruby, RubyGems, and Rails.</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> ruby
<span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> rb-rubygems
<span style="color: #c20cb9; font-weight: bold;">sudo</span> gem update <span style="color: #660033;">--system</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> rails <span style="color: #660033;">-y</span></pre></div></div>




<p>4. Install MySQL (directly from Andrew Nesbitt, shown here for completeness).</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> mysql5 +server
<span style="color: #c20cb9; font-weight: bold;">sudo</span> launchctl load <span style="color: #660033;">-w</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>LaunchDaemons<span style="color: #000000; font-weight: bold;">/</span>org.macports.mysql5.plist
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #660033;">-u</span> mysql mysql_install_db5
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span> ; <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>mysql5<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>mysqld_safe <span style="color: #000000; font-weight: bold;">&amp;</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>mysql5<span style="color: #000000; font-weight: bold;">/</span>mysqld.sock <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>mysql.sock</pre></div></div>




<p>5. Install mongrel and mongrel_cluster.</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mongrel
<span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> mongrel_cluster</pre></div></div>




<p>6. Install memcached.</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> memcached
<span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> memcache-client</pre></div></div>




<p>Create a file called /Library/LaunchDaemons/com.danga.memcached.plist, and insert the following:</p>


<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #00bbdd;">&lt;!DOCTYPE plist PUBLIC &quot;-//Apple//DTD PLIST 1.0//EN&quot; &quot;http://www.apple.com/DTDs/PropertyList-1.0.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plist</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Label<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>com.danga.memcached<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>OnDemand<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;false</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>ProgramArguments<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;array<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>/opt/local/bin/memcached<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>-d<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>-m<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>64<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>-u<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>www<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>-p<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
                <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>11211<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/array<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>RunAtLoad<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/key<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
        <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;true</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/dict<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>




<p>In order to launch memcached on boot, enter this in the terminal:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> launchctl load <span style="color: #660033;">-w</span> <span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>LaunchDaemons<span style="color: #000000; font-weight: bold;">/</span>com.danga.memcached.plist</pre></div></div>




<p>7. Install ImageMagick and RMagick</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> port <span style="color: #c20cb9; font-weight: bold;">install</span> ImageMagick
<span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> rmagick</pre></div></div>




<p><strong><span class="caps">NEW</span>!</strong> There are now <a href="http://rmagick.rubyforge.org/install-osx.html">instructions</a> on how to install ImageMagick and RMagick.</p>

<p>8. <em>Optional</em> &#8211; I found out if you have the loaded_plugins gem installed, you may see the following error when running script/console:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1.8</span><span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>activesupport-1.4.2<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>active_support<span style="color: #000000; font-weight: bold;">/</span>dependencies.rb:<span style="color: #000000;">477</span>:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>const_missing<span style="color: #ff0000;">':NameError: uninitialized constant Gem::Version::NUM_RE</span></pre></div></div>




<p>The reason is MacPorts create two directories to store the RubyGems stuff in /opt/local/lib/ruby/site_ruby and /opt/local/lib/ruby/vendor_ruby.  Ruby&#8217;s $LOAD_PATH looks in site_ruby first but the version.rb in site_ruby does not define Gem::Version::NUM_RE whereas the version.rb in vendor_ruby does.  I&#8217;ve outlined the issue <a href="http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/484e09d92b2d9db4#a9adf1301cb66fc1">here</a>. So I simply swap them:</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;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>vendor_ruby_tmp
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>vendor_ruby <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>site_ruby
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>vendor_ruby_tmp <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>vendor_ruby</pre></div></div>




<p>This fixes the error and everything runs well for me, but I would like to hear the experts out there about why there are separate vendor_ruby and site_ruby.</p>

<p>That&#8217;s it.  Hope you find this helpful and please report any problems.</p><script src="http://feeds.feedburner.com/~s/rayvinly?i=http://rayvinly.com/articles/2007/11/29/setting-up-ruby-on-rails-with-mysql-on-mac-os-x-10-5-leopard/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://rayvinly.com/articles/2007/11/29/setting-up-ruby-on-rails-with-mysql-on-mac-os-x-10-5-leopard/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>What did you engrave on your iPod?</title>
		<link>http://rayvinly.com/articles/2007/11/26/what-did-you-engrave-on-your-ipod/</link>
		<comments>http://rayvinly.com/articles/2007/11/26/what-did-you-engrave-on-your-ipod/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 16:09:36 +0000</pubDate>
		<dc:creator>Raymond Law</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[ipod]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[http://www.methodshop.net/games/play/rejectedengraving/index.shtml]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.methodshop.net/games/play/rejectedengraving/index.shtml">http://www.methodshop.net/games/play/rejectedengraving/index.shtml</a></p><script src="http://feeds.feedburner.com/~s/rayvinly?i=http://rayvinly.com/articles/2007/11/26/what-did-you-engrave-on-your-ipod/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://rayvinly.com/articles/2007/11/26/what-did-you-engrave-on-your-ipod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trouble with Airport Extreme</title>
		<link>http://rayvinly.com/articles/2007/11/26/trouble-with-airport-extreme/</link>
		<comments>http://rayvinly.com/articles/2007/11/26/trouble-with-airport-extreme/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 12:19:52 +0000</pubDate>
		<dc:creator>Raymond Law</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[802.11n]]></category>
		<category><![CDATA[airportextreme]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I picked up the AirPort Extreme Base Station with Gigabit Ethernet and the wireless Mighty Mouse from the Apple stores with their &#8220;just ok&#8221; Black Friday sales.

I have experienced a lot of connection drops with the Airport extreme.  The thing keeps dropping the wireless connections at random frequent intervals, rendering it useless.  I [...]]]></description>
			<content:encoded><![CDATA[<p>I picked up the <a href="http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=60C1CBAD&amp;fnode=home%2Fshop_mac%2Fmac_accessories%2Fairport_wireless&amp;nplm=MB053LL%2FA">AirPort Extreme Base Station with Gigabit Ethernet</a> and the wireless <a href="http://store.apple.com/1-800-MY-APPLE/WebObjects/AppleStore.woa/wa/RSLID?mco=37B75F42&amp;fnode=home%2Fshop_mac%2Fmac_accessories&amp;nplm=MB111LL%2FA">Mighty Mouse</a> from the Apple stores with their &#8220;just ok&#8221; Black Friday sales.</p>

<p>I have experienced a lot of <a href="http://discussions.apple.com/thread.jspa?threadID=1222416&amp;tstart=15">connection drops</a> with the Airport extreme.  The thing keeps dropping the wireless connections at random frequent intervals, rendering it useless.  I had to reset and reconfigured it for it to pick up again.  Also, the Airport Utility cannot always find the base station.  When that happens, time for a reset.</p>

<p>I was hoping to replace the DI-524, but I guess that has to wait a little longer until Apple has either a firmware or hardware fix.  This piece of junk is going back to Apple.  Disappointed.</p>

<p>On another hand, the mouse works pretty well with the Macbook.</p><script src="http://feeds.feedburner.com/~s/rayvinly?i=http://rayvinly.com/articles/2007/11/26/trouble-with-airport-extreme/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://rayvinly.com/articles/2007/11/26/trouble-with-airport-extreme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My new Macbook so far</title>
		<link>http://rayvinly.com/articles/2007/11/26/my-new-macbook-so-far/</link>
		<comments>http://rayvinly.com/articles/2007/11/26/my-new-macbook-so-far/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 12:10:22 +0000</pubDate>
		<dc:creator>Raymond Law</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[macosx]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I ordered a white Santa Rosa white Macbook (comes with Leopard at 2.2GHz) from Amazon with $75 rebate and it took them a week to begin shipping on 11/19, but it arrived on 11/21, just in time for me to explore it over the Thanksgiving break.

Here&#8217;s what I think: So far so good.  This [...]]]></description>
			<content:encoded><![CDATA[<p>I ordered a white Santa Rosa white <a href="http://www.apple.com/macbook/macbook.html">Macbook</a> (comes with Leopard at 2.2GHz) from <a href="http://www.apple.com/macbook/macbook.html">Amazon</a> with $75 rebate and it took them a week to begin shipping on 11/19, but it arrived on 11/21, just in time for me to explore it over the Thanksgiving break.</p>

<p>Here&#8217;s what I think: So far so good.  This is my first Mac, as well as my first Apple product <img src='http://rayvinly.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   I am happy that Amazon puts the Macbook in another brown box so that my Macbook box does not look trashy when it arrived.  So kudos to Amazon.  They are really a great place to shop at, as well as Newegg.</p>

<p>The box opening experience was cool but not spectacular.  I have taken some <a href="http://flickr.com/photos/rayvinly/sets/72157603292875118/">pictures</a> during the process.  When I took the Macbook out, I got excited and was mad at myself putting my own fingerprints on it&#8230;LOL</p>

<p>Turned it on, saw the Apple logo, arrived at the Select Language screen.  That&#8217;s it. I was not going to take anymore pictures to ruin my experience.</p>

<p>During the initial setup process, I heard the fan came on very loud several times and I was like: Shit, is my Macbook going to be this loud when I do anything.  Fortunately, that goes away once the setup process is over with.</p>

<p>The display is beautiful and I had no problems with the glossy screen.  When the display is turned off, it is glossy that you can see a reflection of yourself, but once you turn it on, it feels just like a regular <span class="caps">LCD </span>display, only brighter and sharper.</p>

<p>I am learning a lot of keyboard shortcuts and installed some applications, but there&#8217;s just a lot more stuff to explore with.  So far so good.</p><script src="http://feeds.feedburner.com/~s/rayvinly?i=http://rayvinly.com/articles/2007/11/26/my-new-macbook-so-far/" type="text/javascript" charset="utf-8"></script>]]></content:encoded>
			<wfw:commentRss>http://rayvinly.com/articles/2007/11/26/my-new-macbook-so-far/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
