<?xml version="1.0" encoding="UTF-8"?>
<posts type="array">
  <post>
    <body>&lt;p&gt;You can never have too many.&lt;br /&gt;&lt;br /&gt;Much like every new version of OSX, there have been a plethora of "How to install BLANK on Snow Leopard" blog posts and walk-throughs detailing all the little tips and tricks around how to install some tool or piece of software.&amp;nbsp; Having a lot of options is awesome, but in the words of the great Biggie Smalls, "mo' blog posts, mo' problems".&lt;br /&gt;&lt;br /&gt;That IS how it went, right?&lt;br /&gt;&lt;br /&gt;Anyway, with all of these walk-throughs, how do you know which ones are good, and which one just suck.&amp;nbsp; Well, you don't really...&lt;br /&gt;&lt;br /&gt;So here's a list of a few [confirmed] valid and useful dev setup walk-throughs:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;First, this is actually a series of posts, as opposed to one single write-up.&amp;nbsp; Actually, its not even a series of posts.&amp;nbsp; Its just the search results for 'Snow Leopard' on the &lt;a title="Hive Logic website" href="http://hivelogic.com/" target="_blank"&gt;Hive Logic&lt;/a&gt; site.&amp;nbsp; So really, its only the first 3-5 posts that matter.&lt;br /&gt;&lt;br /&gt;&lt;a title="Snow Leopard search results on HiveLogic.com" href="http://hivelogic.com/search/results/a7a831b978f2667fa301ea095d3d8fa7" target="_blank"&gt;http://hivelogic.com/search/results/a7a831b978f2667fa301ea095d3d8fa7&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is the route that I personally followed after a fresh install of Snow Leopard, and I had everything up and running in no time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next, &lt;a title="RobbyOnRails.com" href="http://robbyonrails.com/" target="_blank"&gt;Robby On Rails&lt;/a&gt; did a thorough and entertaining post on Snow Leopard Rails dev env setup, or SLRDESU for short.&amp;nbsp; Acronyms make everything better (AMEB).&amp;nbsp; I don't know about you, but Robby's older post about getting setup with Passenger came in handy for me on more than one occasion.&lt;br /&gt;&lt;br /&gt;&lt;a title="The Robby On Rails walk-through" href="http://www.robbyonrails.com/articles/2010/02/08/installing-ruby-on-rails-passenger-postgresql-mysql-oh-my-zsh-on-snow-leopard-fourth-edition" target="_blank"&gt;http://www.robbyonrails.com/articles/2010/02/08/installing-ruby-on-rails-passenger-postgresql-mysql-oh-my-zsh-on-snow-leopard-fourth-edition&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;His latest post covers everything from start to finish, and he even included a few video to pass the time while waiting for binaries to build and whatnot.&amp;nbsp; I haven't personally used this walk-through, but based on my previous experience with Robby's posts, and the recommendation from coworkers, I'm sure it'll get you where you need to be.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Another noteworthy mention comes from the guys over at &lt;a title="Thoughbot website" href="http://thoughtbot.com/" target="_blank"&gt;Thoughtbot&lt;/a&gt;, the makers of such wonderful tools as Shoulda, Paperclip, and Factory Girl.&amp;nbsp; Their robot-laden guide goes beyond just Rails/dev-related stuff, and covers the likes of several generally useful OSX tools.&amp;nbsp; Things like Quicksilver, Fluid, and Firefox/Firebug.&lt;br /&gt;&lt;br /&gt;&lt;a title="Thoughbot walk-through" href="http://robots.thoughtbot.com/post/159805668/2009-rubyists-guide-to-a-mac-os-x-development" target="_blank"&gt;http://robots.thoughtbot.com/post/159805668/2009-rubyists-guide-to-a-mac-os-x-development&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is another one that I haven't personally used, but I think we can trust the guys over at Thoughtbot.&amp;nbsp; After all, their company reputation depends on it!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So there you have it.&amp;nbsp; Three different hand-holding recipes for getting you set up on Snow Leopard.&amp;nbsp; If you haven't upgraded yet, what're you waiting for?&amp;nbsp; Get to it!&lt;/p&gt;</body>
    <created-at type="datetime">2010-03-05T02:36:39Z</created-at>
    <description>Ready to upgrade to Show Leopard?  Dreading the hassle of reinstalling and configuring your dev environment?  Here's three step-by-step guides that will help get you back up and coding in no time.</description>
    <id type="integer">40</id>
    <keywords>osx, snow leopard, ruby, rails, mysql, git, upgrade, development, guide</keywords>
    <published type="boolean">true</published>
    <slug>osx-rails-dev-setup-walk-throughs</slug>
    <title>Snow Leopard Rails Dev Setup Guides</title>
    <updated-at type="datetime">2010-03-05T02:36:39Z</updated-at>
  </post>
  <post>
    <body>&lt;p&gt;I had recently upgraded my MacBook Pro to OS X 10.6 Snow Leopard, and I was in the process of reinstalling most of the ruby gems.&amp;nbsp; The geoip_city gem was the only one that gave me a bit of trouble, so I figured I'd post how I got it working.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go &lt;a title="Maxmind GeoIP source download" href="http://geolite.maxmind.com/download/geoip/api/c/" target="_blank"&gt;here&lt;/a&gt; and download the latest source for the GeoIP C api&lt;/li&gt;
&lt;li&gt;Untar the source, cd into the directory&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;./configure&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Then run &lt;code&gt;make &amp;amp;&amp;amp; sudo make install&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Finally, run &lt;code&gt;sudo env ARCHFLAGS="-arch x86_64" gem install geoip_city -- --with-geoip-dir=/opt/GeoIP&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;The key is the &lt;code&gt;ARCHFLAGS&lt;/code&gt; parameter in the last step.&amp;nbsp; This indicates the native extensions are to be built for a 64 bit architecture.&lt;/p&gt;
&lt;p&gt;Also, if you need the free GeoIP City Lite database, you can find it &lt;a title="GeoIP City Lite database download link" href="http://www.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz"&gt;here&lt;/a&gt;.&amp;nbsp; I hope this helps.&lt;/p&gt;</body>
    <created-at type="datetime">2009-12-28T19:14:47Z</created-at>
    <description>A quick walk-through of how to install the geoip_city gem on OS X Snow Leopard 10.6.</description>
    <id type="integer">38</id>
    <keywords>snow leopard, osx, geoip, geoip-city, gem, install, ruby, 10.6</keywords>
    <published type="boolean">true</published>
    <slug>geoip-city-gem-on-snow-leopard</slug>
    <title>Geoip_city gem install on Snow Leopard</title>
    <updated-at type="datetime">2009-12-28T19:15:07Z</updated-at>
  </post>
  <post>
    <body>&lt;p&gt;Earlier this afternoon, I was debugging an ajax call that consistently resulted in an error, but only in IE.&amp;nbsp; Checking the log file, I found this:&lt;/p&gt;
&lt;pre class="terminal"&gt;Processing ApplicationController#index (for 192.168.1.108 at 2009-10-27 14:37:03) [GET]&lt;br /&gt;  Session ID: ddde16cf83baca85a81e9fb0772c2844&lt;br /&gt;  Parameters: {"format"=&amp;gt;"js", "page"=&amp;gt;"1"}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ActionController::MethodNotAllowed (Only get, head, post, put, and delete requests are allowed.):&lt;br /&gt;    /vendor/rails/actionpack/lib/action_controller/routing/recognition_optimisation.rb:65:in `recognize_path'&lt;br /&gt;    /vendor/rails/actionpack/lib/action_controller/routing/route_set.rb:384:in `recognize'&lt;br /&gt;    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:154:in `handle_request'&lt;br /&gt;    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:107:in `dispatch'&lt;br /&gt;    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `synchronize'&lt;br /&gt;    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:104:in `dispatch'&lt;br /&gt;    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:120:in `dispatch_cgi'&lt;br /&gt;    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:35:in `dispatch'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/request_handler.rb:50:in `process_request'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:378:in `start_request_handler'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:336:in `handle_spawn_application'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/utils.rb:183:in `safe_fork'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:334:in `handle_spawn_application'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `__send__'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:163:in `start'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/railz/application_spawner.rb:213:in `start'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `__send__'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'&lt;br /&gt;    /Library/Ruby/Gems/1.8/gems/passenger-2.2.5/bin/passenger-spawn-server:61&lt;br /&gt;&lt;br /&gt;Rendering /Users/brent/Intridea/project/vendor/rails/actionpack/lib/action_controller/templates/rescues/layout.erb (method_not_allowed)&lt;/pre&gt;
&lt;p&gt;WTF?&amp;nbsp; That told me a whole lotta nothing.&lt;/p&gt;
&lt;p&gt;First of all, it was blowing up before it even got into the application code, which was was strange because it worked just fine in Firefox, Safari, etc.&amp;nbsp; Second, I checked the response body and it was returning html.&amp;nbsp; Html?&amp;nbsp; The format is clearly specified as "js" in the request parameters.&amp;nbsp; Double-checking the controller code, there was definitely a respond_to block with format.js, so why was it returning html?&lt;/p&gt;
&lt;p&gt;I showed this to one of my coworkers and he asked if I had tried switching the format calls in the respond_to block.&amp;nbsp; There were two, one for html and one for javascript.&amp;nbsp; I switched them up, and put the format.js first.&amp;nbsp; I reloaded the page, and what do you know, it worked!&amp;nbsp; No error.&amp;nbsp; Again, wtf?&amp;nbsp; He told me that this same bug had kicked his ass on a previous project.&lt;/p&gt;
&lt;p&gt;Aparently, IE7 isn't specific about what sort of response it expects in the accept header.&amp;nbsp; This causes Rails to merely return the first format that it comes to.&amp;nbsp; In my case, the html.&lt;/p&gt;
&lt;p&gt;So if you're not seeing the format that you're expecting when testing with IE7, try reordering the format calls in the respond_to block.&lt;/p&gt;</body>
    <created-at type="datetime">2009-10-28T01:26:06Z</created-at>
    <description>IE7 doesn't explicitly specify what format it expects in the accept header.  This causes Rails to render the first format in the respond_to block.  </description>
    <id type="integer">37</id>
    <keywords>rails, respond_to, ie, ie7, format, bug</keywords>
    <published type="boolean">true</published>
    <slug>ie7-accept-header-and-rails-respon-to-bug</slug>
    <title>IE7's Accept Header And Rails respond_to Bug</title>
    <updated-at type="datetime">2009-10-28T01:26:30Z</updated-at>
  </post>
  <post>
    <body>&lt;p&gt;Eww, Windows?&lt;/p&gt;
&lt;p&gt;Yeah, I said it.&amp;nbsp; As we all know, there's a million and one schmucks out there still rockin' Internet Explorer as their default browser.&amp;nbsp; That means if you want that spreadsheet-in-the-cloud app you've been working on to hit critical mass, you better test it in IE.&lt;/p&gt;
&lt;p&gt;If you're like me, then you've recently started running some or all of your apps locally via &lt;a title="The Passenger Homepage" href="http://www.modrails.com/" target="_blank"&gt;Passenger&lt;/a&gt;.&amp;nbsp; This can cause a bit of a problem when it comes time to test in IE.&amp;nbsp; At least, it did for me anyway.&lt;/p&gt;
&lt;p&gt;I use &lt;a title="Parallels Desktop for Mac" href="http://www.parallels.com/products/desktop/" target="_blank"&gt;Parallels&lt;/a&gt; for my Windows testing, and an old version at that.&amp;nbsp; From what I hear, &lt;a title="VMWare Fusion - Mac Desktop Virtualization" href="http://www.vmware.com/products/fusion/" target="_blank"&gt;VMWare&lt;/a&gt; is better, but I'm too cheap to buy it and I just don't really care that much.&amp;nbsp; Prior to using Passenger locally, I would just point IE at my mac's IP address, port 3000, and everything was kosher.&amp;nbsp; Well, with Passenger, that no worky.&lt;/p&gt;
&lt;p&gt;Now, I'm sure there's probably a way to configure Parallels to allow me to test a Passenger app, but from what I can tell that either requires an updated version of Parallels or more time Googling than I'm willing to spend.&lt;/p&gt;
&lt;p&gt;I knew that I could access my local Apach instance from any machine on my home network, so I figured there's got to be a way to hit my Passenger apps since they're running under that same Apach instance.&amp;nbsp; With a little help from a fellow &lt;a title="Dave's Intridea profile" href="http://www.intridea.com/about/people/naffis" target="_blank"&gt;Intridean&lt;/a&gt;, I got it working.&lt;/p&gt;
&lt;p&gt;Here's what you do:&lt;/p&gt;
&lt;p&gt;1. Set your app up in Passenger, like you normally would.&amp;nbsp; I use the pref pane.&lt;/p&gt;
&lt;p&gt;&lt;a title="Passenger Pref Pane" href="http://s3.amazonaws.com/brentmc79-prod/files/17/original.png?1256675869"&gt;&lt;img style="margin-top: 5px; margin-bottom: 5px;" src="http://s3.amazonaws.com/brentmc79-prod/files/17/medium.png?1256675869" alt="passengerpane.png" width="300" height="223" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;2. Determine you mac's IP address.&amp;nbsp; An easy way is to look in the sharing section of the System Preferences.&lt;/p&gt;
&lt;p&gt;&lt;a title="Sharing Pref Pane" href="http://s3.amazonaws.com/brentmc79-prod/files/18/original.png?1256676029"&gt;&lt;img style="margin-top: 5px; margin-bottom: 5px;" src="http://s3.amazonaws.com/brentmc79-prod/files/18/medium.png?1256676029" alt="sharingprefpane.png" width="300" height="247" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;3. On your Windows machine, add an entry to the hosts file with your mac's IP address and the app's domain (local) domain name.&amp;nbsp; The host file is in C:\WINDOWS\system32\drivers\etc.&lt;/p&gt;
&lt;p&gt;&lt;a title="Windows Host File" href="http://s3.amazonaws.com/brentmc79-prod/files/19/original.png?1256676196"&gt;&lt;img style="margin-top: 5px; margin-bottom: 5px;" src="http://s3.amazonaws.com/brentmc79-prod/files/19/medium.png?1256676196" alt="hostsfile.png" width="300" height="196" /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;That's it!&amp;nbsp; Point IE at http://yourapp.local and you should be golden.&amp;nbsp; This will work for subdomains also, assuming you've added the *.yourapp.local alias to you Passenger conf.&lt;/p&gt;</body>
    <created-at type="datetime">2009-10-27T20:59:36Z</created-at>
    <description>How to test your Rails app running on Passenger from Internet Explorer and Windows.  It's not as hard as you might think...</description>
    <id type="integer">36</id>
    <keywords>rails, passenger, mod_rails, windows, internet explorer</keywords>
    <published type="boolean">true</published>
    <slug>access-your-passenger-app-from-windows</slug>
    <title>Access Your Passenger App From Windows</title>
    <updated-at type="datetime">2009-10-27T21:03:24Z</updated-at>
  </post>
  <post>
    <body>&lt;p&gt;&lt;img style="float: left;" src="http://s3.amazonaws.com/brentmc79-prod/files/12/medium.png?1250352229" alt="Picture_6.png" width="280" height="300" /&gt;&lt;/p&gt;
&lt;p&gt;Out of sheer boredom last night, I decided to whip up a mobile view for my blog.&lt;/p&gt;
&lt;p&gt;It was extremely easy thanks to the &lt;a title="Mobile-fu github page" href="http://github.com/brendanlim/mobile-fu/tree/master" target="_blank"&gt;mobile-fu&lt;/a&gt; plugin by my friend &lt;a title="Brendan's blog" href="http://brendanlim.com/" target="_blank"&gt;Brendan&lt;/a&gt;.&amp;nbsp; I also found a few tips and tricks from &lt;a title="Jun 19 Tutorial: Building a website for the iPhone" href="http://www.engageinteractive.co.uk/blog/2008/06/19/tutorial-building-a-website-for-the-iphone/" target="_blank"&gt;this post&lt;/a&gt; on the Engage Interactive blog such as how to handle orientation changes and how to specify an image for home screen bookmarks.&lt;/p&gt;
&lt;p&gt;I did most of my testing via the iPhone Simulator from the SDK and also a &lt;a title="Fluid App-specific browser" href="http://fluidapp.com/" target="_blank"&gt;Fluid&lt;/a&gt; browser which allows you to specify mobile safari as the user agent, giving you the proper look, and you can use Safari's built-in Firebug-like tools.&lt;/p&gt;
&lt;p&gt;If you've got an iPhone, give it a look...&lt;/p&gt;</body>
    <created-at type="datetime">2009-08-15T19:51:19Z</created-at>
    <description>I recently updated my blog with a mobile view formatted for the iPhone.  Here's how...</description>
    <id type="integer">34</id>
    <keywords>iphone mobile rails mobile-fu ruby layout</keywords>
    <published type="boolean">true</published>
    <slug>now-in-mobile-format</slug>
    <title>Now in mobile format...</title>
    <updated-at type="datetime">2009-08-15T20:01:38Z</updated-at>
  </post>
</posts>
