<?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>random facts girl &#187; code</title>
	<atom:link href="http://www.soychicka.com/category/code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.soychicka.com</link>
	<description></description>
	<lastBuildDate>Sat, 03 Jul 2010 22:43:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Setting up geokit.</title>
		<link>http://www.soychicka.com/2010/07/03/setting-up-geokit/</link>
		<comments>http://www.soychicka.com/2010/07/03/setting-up-geokit/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 22:43:58 +0000</pubDate>
		<dc:creator>soychicka</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.soychicka.com/?p=812</guid>
		<description><![CDATA[A quick checklist for creating a new app with geolocation on heroku&#8217;s 1.8.7 stack&#8230; so you can use the count method to your heart&#8217;s content.  I&#8217;m sure that there&#8217;s something I&#8217;ve missed, but it&#8217;s a start&#8230;

sudo gem install geokit (if you haven&#8217;t already)
script/plugin install git://github.com/andre/geokit-rails.git
for new app, create heroku app (

on 1.8.7 stack &#8211; [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>A quick checklist for creating a new app with geolocation on heroku&#8217;s 1.8.7 stack&#8230; so you can use the count method to your heart&#8217;s content.  I&#8217;m sure that there&#8217;s something I&#8217;ve missed, but it&#8217;s a start&#8230;</p>
<ol>
<li>sudo gem install geokit (if you haven&#8217;t already)</li>
<li>script/plugin install git://github.com/andre/geokit-rails.git</li>
<li>for new app, create heroku app (
<ul>
<li>on 1.8.7 stack &#8211; heroku create APPNAME &#8211;stack bamboo-ree-1.8.7 &#8211;remote REMOTENAME</li>
<li>add the following to app&#8217;s .gems file:
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rails -v 2.3.5<br />
pg<br />
geokit --version '=1.5.0'</div></td></tr></tbody></table></div>
</li>
</ul>
</li>
<li>get new developer keys for your heroku app
<ul>
<li>http://developer.yahoo.com/maps/simple/</li>
<li>http://code.google.com/apis/maps/signup.html</li>
</ul>
</li>
<li> add <strong>config.gem &#8220;geokit&#8221;</strong> to config/environment.rb</li>
<li>edit your application controller file:
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">include Geokit<br />
include Geokit::Geocoders<br />
include Geokit::IpGeocodeLookup<br />
<br />
class ApplicationController &lt; ActionController::Base<br />
&nbsp; helper :all<br />
&nbsp; protect_from_forgery<br />
&nbsp; geocode_ip_address<br />
&nbsp; <br />
&nbsp; before_filter :geokit<br />
<br />
&nbsp; def geokit <br />
&nbsp; &nbsp; store_ip_location<br />
&nbsp; &nbsp; @current_location = session[:geo_location] &nbsp;# @current_location is a GeoLoc instance. <br />
&nbsp; end<br />
&nbsp; def store_location<br />
&nbsp; &nbsp; session[:return_to] = request.request_uri<br />
&nbsp; end<br />
&nbsp; <br />
end</div></td></tr></tbody></table></div>
</li>
</ol>
<p>From this point forward, the geocoding methods of the Geokit gem are available.  There&#8217;s more that needs to be done if you want to treat one of your models as geolocatable&#8230; but I&#8217;ll pick that up later <img src='http://www.soychicka.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.soychicka.com/2010/07/03/setting-up-geokit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Visual Studio projects from Parallels</title>
		<link>http://www.soychicka.com/2010/05/22/invalid-uri-the-hostname-could-not-be-parsed-parallels-visual-studio/</link>
		<comments>http://www.soychicka.com/2010/05/22/invalid-uri-the-hostname-could-not-be-parsed-parallels-visual-studio/#comments</comments>
		<pubDate>Sat, 22 May 2010 17:54:16 +0000</pubDate>
		<dc:creator>soychicka</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[parallels]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.soychicka.com/?p=810</guid>
		<description><![CDATA[If you&#8217;re a Mac user forced back into the world of .NET, you might come across the following error message when creating a new Visual Studio project over Parallels:
Invalid URI: the hostname could not be parsed.
Chances are, you are trying to create the project in a directory that is inaccessible to Windows.  In the [...]


Related posts:<ol><li><a href='http://www.soychicka.com/2010/05/22/display-line-numbers-in-visual-studio/' rel='bookmark' title='Permanent Link: Display Line Numbers in Visual Studio'>Display Line Numbers in Visual Studio</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a Mac user forced back into the world of .NET, you might come across the following error message when creating a new Visual Studio project over Parallels:</p>
<p>Invalid URI: the hostname could not be parsed.</p>
<p>Chances are, you are trying to create the project in a directory that is inaccessible to Windows.  In the New Project window, check out the Location field.  If it contains psf://,  you&#8217;re trying to save to the Parallels shared folder &#8211; a location Visual Studio apparently can&#8217;t handle.  Change the location to somewhere on your C: drive, and you should be  good to go.</p>


<p>Related posts:<ol><li><a href='http://www.soychicka.com/2010/05/22/display-line-numbers-in-visual-studio/' rel='bookmark' title='Permanent Link: Display Line Numbers in Visual Studio'>Display Line Numbers in Visual Studio</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.soychicka.com/2010/05/22/invalid-uri-the-hostname-could-not-be-parsed-parallels-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Display Line Numbers in Visual Studio</title>
		<link>http://www.soychicka.com/2010/05/22/display-line-numbers-in-visual-studio/</link>
		<comments>http://www.soychicka.com/2010/05/22/display-line-numbers-in-visual-studio/#comments</comments>
		<pubDate>Sat, 22 May 2010 17:44:35 +0000</pubDate>
		<dc:creator>soychicka</dc:creator>
				<category><![CDATA[Fail]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[designfail]]></category>
		<category><![CDATA[visual studio]]></category>

		<guid isPermaLink="false">http://www.soychicka.com/?p=807</guid>
		<description><![CDATA[Why Visual Studio 2008 doesn&#8217;t display line numbers by default? I don&#8217;t know.  Why there isn&#8217;t a way to toggle line numbers on and off from the interface? I don&#8217;t know.  Why it&#8230;. well, you get the point.  Here&#8217;s how to fix it so you don&#8217;t have to waste time figuring it [...]


Related posts:<ol><li><a href='http://www.soychicka.com/2010/05/22/invalid-uri-the-hostname-could-not-be-parsed-parallels-visual-studio/' rel='bookmark' title='Permanent Link: Creating Visual Studio projects from Parallels'>Creating Visual Studio projects from Parallels</a></li></ol>]]></description>
			<content:encoded><![CDATA[<p>Why Visual Studio 2008 doesn&#8217;t display line numbers by default? I don&#8217;t know.  Why there isn&#8217;t a way to toggle line numbers on and off from the interface? I don&#8217;t know.  Why it&#8230;. well, you get the point.  Here&#8217;s how to fix it so you don&#8217;t have to waste time figuring it out:</p>
<p>From the Tools menu, select Options > TextEditor > All Languages > General&#8230;&#8230; then check the box beside Line Numbers. </p>
<p>You can also turn on line numbers for specific languages too &#8211; just select the target language instead of &#8220;All Languages.&#8221;</p>
<p>If you&#8217;re on the right screen and you still don&#8217;t see it, make sure the  &#8220;Show all settings&#8221; option in the bottom left corner of the Options windows  is checked.</p>


<p>Related posts:<ol><li><a href='http://www.soychicka.com/2010/05/22/invalid-uri-the-hostname-could-not-be-parsed-parallels-visual-studio/' rel='bookmark' title='Permanent Link: Creating Visual Studio projects from Parallels'>Creating Visual Studio projects from Parallels</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.soychicka.com/2010/05/22/display-line-numbers-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First sign of the geekpocalypse</title>
		<link>http://www.soychicka.com/2010/03/27/firstsign-of-the-geekpocalypse/</link>
		<comments>http://www.soychicka.com/2010/03/27/firstsign-of-the-geekpocalypse/#comments</comments>
		<pubDate>Sat, 27 Mar 2010 20:41:58 +0000</pubDate>
		<dc:creator>soychicka</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.soychicka.com/?p=805</guid>
		<description><![CDATA[I just witnessed the first sign of my impending geekpocalypse&#8230; rather than go through the &#8216;hassle&#8217; of working with a gui-based calculator,  I launched irb to do a few quick calculations.
Oy vey.


No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I just witnessed the first sign of my impending geekpocalypse&#8230; rather than go through the &#8216;hassle&#8217; of working with a gui-based calculator,  I launched irb to do a few quick calculations.</p>
<p>Oy vey.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.soychicka.com/2010/03/27/firstsign-of-the-geekpocalypse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recovering Address Book and iCal calendars from a backup drive</title>
		<link>http://www.soychicka.com/2009/11/24/recovering-address-book-and-ical-calendars-from-backup-drive/</link>
		<comments>http://www.soychicka.com/2009/11/24/recovering-address-book-and-ical-calendars-from-backup-drive/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 16:43:36 +0000</pubDate>
		<dc:creator>soychicka</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[user experience]]></category>

		<guid isPermaLink="false">http://www.soychicka.com/?p=773</guid>
		<description><![CDATA[After a clean up-stall of Snow Leopard, all seems well&#8230; but I realize I neglected to create easily importable backups of my address book and calendars.
Not a problem &#8211; I had backed up my hard drive en toto, so recovering my addresses and calendars wasn&#8217;t difficult&#8230;  but since a quick google search didn&#8217;t return [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>After a clean up-stall of Snow Leopard, all seems well&#8230; but I realize I neglected to create easily importable backups of my address book and calendars.</p>
<p>Not a problem &#8211; I had backed up my hard drive en toto, so recovering my addresses and calendars wasn&#8217;t difficult&#8230;  but since a quick google search didn&#8217;t return any suggestions, I thought I&#8217;d share what I did in case you find yourself with the same need.</p>
<blockquote>
<h3>note:</h3>
<p><strong>~/</strong> = <strong>/Users/soychicka/</strong> = my user home directory, just like <strong>~/</strong> = <strong>/Users/yourHomeDir/</strong> = your home directory.</p></blockquote>
<p style="text-align: left;">Sadly, it appears that although they now have much nicer names, all of my screenshots in Snow Leopard are no more than black boxes of appropriate dimensions&#8230;. so that means you&#8217;ll actually have to *gasp* read directions (just for the time being).</p>
<h2>To recover your Address Book contacts:</h2>
<p>Open up two finder windows, one for your backup drive and one for your regular old hard drive that you&#8217;ll be using on a daily basis&#8230; and go to ~/yourHomeDir/Library, then find</p>
<pre>~/Library/Application Support</pre>
<p>in both windows.</p>
<p>You should see a folder called</p>
<pre>AddressBook</pre>
<p>in both windows.  Drag the copy of <span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre; ">AddressBook <span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px; ">on the backup drive into</span></span></p>
<pre>~/Library/Application Support<span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px; ">.</span></pre>
<p>If you dragged the folder into the right location, you&#8217;ll see a dialog that asks if you want to Keep the original, Keep Both, or Replace. Go ahead and click Keep both &#8211; it&#8217;ll keep a backup copy of the original for you in case something goes dreadfully wrong.</p>
<p>Then launch Address Book: you should see all of your contacts happily coexisting once again&#8230;well, at least as happily as they co-existed before, as sadly, Snow Leopard was not shipped with the power to resolve family quarrels or workplace personality conflicts.</p>
<h2>To recover your iCal calendars:</h2>
<p>Open up two finder windows, one for your backup drive and one for your regular old hard drive that you&#8217;ll be using on a daily basis&#8230; and go to ~/yourHomeDir/Library.</p>
<p>You should see a folder called</p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">Calendars</pre>
<p>in both windows. Drag the copy of<span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;"> Calendars <span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px;">from the backup drive into</span></span></p>
<pre style="font: normal normal normal 12px/18px Consolas, Monaco, 'Courier New', Courier, monospace;">~/Library/</pre>
<p>on your regular hard drive.  If you dragged the folder into the right location, you&#8217;ll see a dialog that asks if you want to Keep the original, Keep Both, or Replace. Go ahead and click Keep both &#8211; it&#8217;ll keep a backup copy of the original for you in case something goes dreadfully wrong.</p>
<p>Then launch iCal : you should see all of your calendars happily coexisting once again&#8230;again, at least as happily as work and your personal life existed before, as Snow Leopard was not shipped with the power to add hours to the day and give you a raise.</p>
<p>Unless there was some new setting I forgot to enable&#8230;..</p>
<blockquote><p>Random fact: One of Snow leopard&#8217;s new spots is pretty nice: if you are attempting to copy a file that has the same name as an existing one, instead of offering the option of replacing or canceling, it gives you the option of keeping both, and renames the original</p>
<pre>Filename (original)<span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px; ">.
 Although it still doesn't allow you to <em>merge the contents of two directories </em>(hint hint), it's a step in the right direction.   Thanks, friendly apple UX team!</span></pre>
</blockquote>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.soychicka.com/2009/11/24/recovering-address-book-and-ical-calendars-from-backup-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Radiant Heroku&#8230; getting your Radiant App live on Heroku in about 10 minutes.</title>
		<link>http://www.soychicka.com/2009/11/16/radiant-heroku-getting-a-radiant-app-live-on-heroku/</link>
		<comments>http://www.soychicka.com/2009/11/16/radiant-heroku-getting-a-radiant-app-live-on-heroku/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 20:54:51 +0000</pubDate>
		<dc:creator>soychicka</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[radiant]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.soychicka.com/?p=711</guid>
		<description><![CDATA[I&#8217;ve discovered various degrees of up-to-datedness and accuracy in some of the tutorials out there for deploying an app built on Radiant CMS to Heroku, so here&#8217;s one that is valid for the latest Radiant CMS release (0.8.1).
This tutorial assumes that you have already installed and configured the following:
- Rails (2.3.4)
-  Git (1.6.4.1)
- Heroku gem (1.3.0)
Specifically, [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve discovered various degrees of up-to-datedness and accuracy in some of the tutorials out there for deploying an app built on Radiant CMS to Heroku, so here&#8217;s one that is valid for the latest Radiant CMS release (0.8.1).</p>
<p>This tutorial assumes that you have already installed and configured the following:<br />
- Rails (2.3.4)<br />
-  Git (1.6.4.1)<br />
- Heroku gem (1.3.0)</p>
<p>Specifically, it also assumes that you either a) have configured an ssh keys for use with git, or b) know how to deal with it if you haven&#8217;t.</p>
<p>If you don&#8217;t meet all of the above criteria,  get crackin&#8217;&#8230; but once you&#8217;re ready, read on.</p>
<p><span id="more-711"></span></p>
<h2>Install gems:</h2>
<p>You&#8217;ll need, at bare minimum, the radiant (v0.8.1), taps (v0.2.19), and rspec (v1.2.9) gems.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo gem install radiant</div></td></tr></tbody></table></div>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo gem install taps</div></td></tr></tbody></table></div>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo gem install rspec</div></td></tr></tbody></table></div>
<h2>Create your app</h2>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ radiant --database sqlite3 testApp</div></td></tr></tbody></table></div>
<p>This step automagically creates your Radiant app, and spits out the names of the files it creates followed by a set of instructions for completing installation.  <strong>Ignore what you see there and follow these instructions instead</strong>.</p>
<h2>Create your database</h2>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cd testApp<br />
$ rake db:bootstrap</div></td></tr></tbody></table></div>
<p>This will set up the necessary database structure in your local install.  There are a few options you&#8217;ll need to select:</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">This task will destroy any data in the database. Are you sure you want to continue? [yn] y</div></td></tr></tbody></table></div>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Create the admin user (press enter for defaults).<br />
Name (Administrator):<br />
Username (admin):<br />
Password (radiant):</div></td></tr></tbody></table></div>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Initializing configuration.........OK</div></td></tr></tbody></table></div>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Select a database template:<br />
1. Empty<br />
2. Roasters (a coffee-themed blog / brochure)<br />
3. Simple Blog<br />
4. Styled Blog<br />
[1-4]: (try out 2)</div></td></tr></tbody></table></div>
<h1>Get <strong>git</strong></h1>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ git init</div></td></tr></tbody></table></div>
<p>Initializes your new git repository.  If you don&#8217;t get git, get it <a title="Gitcasts" href="http://gitcasts.com/">here</a></p>
<h2>Make caching Heroku-Friendly</h2>
<p>In your environment config file (config/environment.rb), you need to update the cache configuration.  Heroku&#8217;s file system is read-only, so all cache must be written in the tmp directory.</p>
<p>replace <span style="text-decoration: line-through;"> config.middleware.use ::Radiant::Cache:</span></p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">config.middleware.use ::Radiant::Cache,<br />
:entitystore =&amp;gt; &quot;radiant:tmp/cache/entity&quot;,<br />
:metastore =&amp;gt; &quot;radiant:tmp/cache/meta&quot;</div></td></tr></tbody></table></div>
<h2>Let Heroku know what gems you need.</h2>
<p>Since direct access to the command line is not available on the heroku server, create a .gems file to let Heroku know what gems (and what versions of the gems!) are required for your app.  When you push your project, the required gems will automagically be installed for you.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ vi .gems</div></td></tr></tbody></table></div>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;</div></td></tr></tbody></table></div>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">----------------------<br />
rspec --version 1.2.9<br />
radiant --version 0.8.1<br />
----------------------</div></td></tr></tbody></table></div>
<h2>Check in</h2>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ git add .<br />
$ git commit -m &quot;changed cache dir and added gem manifest&quot;</div></td></tr></tbody></table></div>
<h2>Deploy!</h2>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ heroku create<br />
soychickas-brain2:testApp soychicka$ heroku create<br />
Created http://severe-waterfall-89.heroku.com/ | git@heroku.com:severe-waterfall-89.git<br />
Git remote heroku added</div></td></tr></tbody></table></div>
<p>The returned lines will include the url for your new app, and the address of the git repository pushed to heroku.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$git push heroku master<br />
-----&amp;gt; Rails app detected<br />
Compiled slug size is 7.8MB<br />
-----&amp;gt; Launching............ done<br />
http://severe-waterfall-89.heroku.com deployed to Heroku</div></td></tr></tbody></table></div>
<p>is what you should see if all goes well.  You can see that the server was started, so you&#8217;re almost ready to go.  But first, you need to&#8230;</p>
<h2>Push your database to Heroku</h2>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">heroku db:push<br />
Auto-detected local database: sqlite://db/development.sqlite3.db<br />
Sending schema<br />
Sending data<br />
9 tables, 82 records<br />
schema_migrat: 100% |==========================================| Time: 00:00:00<br />
config: &nbsp; &nbsp; &nbsp; &nbsp;100% |==========================================| Time: 00:00:00<br />
page_parts: &nbsp; &nbsp;100% |==========================================| Time: 00:00:00<br />
extension_met: 100% |==========================================| Time: 00:00:00<br />
sessions: &nbsp; &nbsp; &nbsp;100% |==========================================| Time: 00:00:00<br />
pages: &nbsp; &nbsp; &nbsp; &nbsp; 100% |==========================================| Time: 00:00:00<br />
snippets: &nbsp; &nbsp; &nbsp;100% |==========================================| Time: 00:00:00<br />
layouts: &nbsp; &nbsp; &nbsp; 100% |==========================================| Time: 00:00:00<br />
users: &nbsp; &nbsp; &nbsp; &nbsp; 100% |==========================================| Time: 00:00:00<br />
Sending indexes<br />
Resetting sequences</div></td></tr></tbody></table></div>
<p>is what you should see if all goes well here.</p>
<p>At this point, your app should be live at the url you received when deploying.  Make sure to check it out before tinkering with anything&#8230;  and then you know that you have a safe starting point to return to when you have caused what otherwise would have been irreparable damage to your app.</p>
<p>On that note, I&#8217;d recommend taking advantage of Heroku&#8217;s new <strong><a title="Heroku bundles" href="http://addons.heroku.com/bundles" target="_blank">Bundles</a></strong> feature that lets you create an archive (tarball) of your application code repository and a dump of the database. By default, the bundle is stored on the Heroku servers, but you can download the bundle to your local machine, keep one  or more on Heroku (, upload bundles from your local machine and re-animate a bundle with the &#8220;heroku bundles&#8221; commands.  You can get one bundle for free, or unlimited bundles for $20/month.  The re-animation process seems a little wonky for the time being, but it&#8217;s a good option if you want to unabashedly tinker with abandon (and without fear).</p>
<p>So there&#8217;s a simple installation path for deploying a standard Radiant application on Heroku.  Play around with your install and see if it suits your needs.</p>
<p>Heads up, though: if you want to install extensions in your Heroku-deployed app,  there is a custom path for that too!  Using the built-in <span style="font-family: Monaco, 'Courier New', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace; line-height: 16px; font-size: 12px; color: #444444; white-space: pre;">./script/extension install extensionName </span>doesn&#8217;t play nicely with heroku &#8211; it installs the extensions as submodules, which are not supported by Heroku at this time.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.soychicka.com/2009/11/16/radiant-heroku-getting-a-radiant-app-live-on-heroku/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Restart Apache without restarting OS X</title>
		<link>http://www.soychicka.com/2009/10/29/restart-apache-without-restarting-os-x/</link>
		<comments>http://www.soychicka.com/2009/10/29/restart-apache-without-restarting-os-x/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 19:37:46 +0000</pubDate>
		<dc:creator>soychicka</dc:creator>
				<category><![CDATA[code]]></category>

		<guid isPermaLink="false">http://www.soychicka.com/?p=687</guid>
		<description><![CDATA[1sudo /usr/sbin/apachectl restart
In case you need to modify your httpd.conf on your local system and restart apache, but you can&#8217;t bear the thought of 20 seconds downtime when you could be getting back to &#8230;. the important stuff.



No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo /usr/sbin/apachectl restart</div></td></tr></tbody></table></div>
<p>In case you need to modify your httpd.conf on your local system and restart apache, but you can&#8217;t bear the thought of 20 seconds downtime when you could be getting back to &#8230;. the important stuff.</p>
<p><a href="http://icanhascheezburger.com/2009/09/20/funny-pictures-plannin-ur-doom/"><img title="funny-pictures-cat-plans-your-doom" src="http://icanhascheezburger.wordpress.com/files/2009/09/funny-pictures-cat-plans-your-doom.jpg" alt="funny pictures of cats with captions" /></a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.soychicka.com/2009/10/29/restart-apache-without-restarting-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating a map-based iPhone app</title>
		<link>http://www.soychicka.com/2009/07/18/creating-a-map-based-iphone-app/</link>
		<comments>http://www.soychicka.com/2009/07/18/creating-a-map-based-iphone-app/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 19:52:44 +0000</pubDate>
		<dc:creator>soychicka</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://www.soychicka.com/?p=694</guid>
		<description><![CDATA[The day word went out that OS 3.0 would finally include access to the google MapKit was the tipping point that finally got me to shell out the $99 to join the iPhone developer program.  Unfortunately, at the time, documentation was sparse, and although the back end was in place, I couldn&#8217;t figure out [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>The day word went out that OS 3.0 would finally include access to the google MapKit was the tipping point that finally got me to shell out the $99 to join the iPhone developer program.  Unfortunately, at the time, documentation was sparse, and although the back end was in place, I couldn&#8217;t figure out how to display my annotations.</p>
<p>So I put my map-based projects on hold&#8230;  until yesterday, that is, when I came across <a href="http://blog.objectgraph.com/index.php/2009/04/02/iphone-sdk-30-playing-with-map-kit/" target="_blank">this easy-to-understand 3-part  tutorial with sample code</a> that very clearly shows how all the pieces are put together.  A simple &#8220;Dude, where&#8217;s my car&#8221; app shows how to  gets your current location, then allows you to place a marker at your current location.</p>
<p>Now, the original developers intent was simply to provide an example of how to use MapKit, so I&#8217;m not chiding them for lack of foresight in any way&#8230; but in its current state, it&#8217;s a bit too simplistic to be really useful as a parking app.  But it could easily be tinkered with to provide additional functionality to make it useful:</p>
<ul>
<li>allow you to add markers at a location you define (in case you forgot to set where you parked when you were there)</li>
<li>allow you to set a timer to let you know when your meter is about to run out (or in SF, when the two-hour period of time for people without permits has expired)</li>
<li>store location info when you exit the app (&#8217;cause as is, you lose it when you answer a phone call, etc.)</li>
<li>etc., etc.</li>
</ul>
<p>Regardless, for whatever app you need a map, <a href="http://blog.objectgraph.com/index.php/2009/04/02/iphone-sdk-30-playing-with-map-kit/" target="_blank">this project</a> is a great start for learning how to get started with MapKit.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.soychicka.com/2009/07/18/creating-a-map-based-iphone-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with Sample Code: Rename your project in Xcode 3.x</title>
		<link>http://www.soychicka.com/2009/07/18/working-with-sample-code-rename-your-project-in-xcode-3-x/</link>
		<comments>http://www.soychicka.com/2009/07/18/working-with-sample-code-rename-your-project-in-xcode-3-x/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 19:51:59 +0000</pubDate>
		<dc:creator>soychicka</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[cocoa]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://www.soychicka.com/?p=691</guid>
		<description><![CDATA[When I&#8217;m learning how to code in a new language, I like to start off some sample code that I know works, then mutilate it until it bears no resemblance to what the original developer came up with&#8230; but making sure that it still works at each step along the way.
But my adventures with Cocoa/Obj-C [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>When I&#8217;m learning how to code in a new language, I like to start off some sample code that I know works, then mutilate it until it bears no resemblance to what the original developer came up with&#8230; but making sure that it still works at each step along the way.</p>
<p>But my adventures with Cocoa/Obj-C present a new challenge: no stand-alone php or perl files that can easily be shuffled and renamed&#8230; when you work with a language that requires the software be compiled, there&#8217;s a much deeper structure that needs to be modified in order to assign a new identity to the project.</p>
<p>Sadly, Xcode doesn&#8217;t have an option that allows you to create a new project from an existing project with a new name  (note to Apple: this would be a great feature to include in 3.2, *wink wink nudge nudge*).</p>
<p>But in the meantime, when you have some sample code you want to play around with, but still hang on to the original and not muck up your hard drive with copies of copies of duplicates of copies&#8230; try this:<br />
<span id="more-691"></span></p>
<ol>
<li>Make a copy of the folder containing the project, and rename it from
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">OldProjectName</div></td></tr></tbody></table></div>
<p>to</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NewProjectName</div></td></tr></tbody></table></div>
<p>.</li>
<li>I like to lock the
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">OldProjectName</div></td></tr></tbody></table></div>
<p>folder to make sure I don&#8217;t accidentally muck up the original: (select</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">OldProjectName</div></td></tr></tbody></table></div>
<p>folder, command-i, under General click the Locked checkbox.)  You can always undo it later.</li>
<li>In the
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NewProjectName</div></td></tr></tbody></table></div>
<p>folder, rename:</p>
<ul>
<li>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;OldProjectName.pch</div></td></tr></tbody></table></div>
<p>to</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NewProjectName.pch</div></td></tr></tbody></table></div>
</li>
<li>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;OldProjectName.xcodeproj</div></td></tr></tbody></table></div>
<p>to</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NewProjectName.xcodeproj</div></td></tr></tbody></table></div>
</li>
<li>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">OldProjectName-info.plist</div></td></tr></tbody></table></div>
<p>(if it exists) to</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NewProjectName-info.plist</div></td></tr></tbody></table></div>
</li>
</ul>
</li>
<li>Delete the build folder.</li>
<li>Right-click
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NewProjectName.xcodeproj</div></td></tr></tbody></table></div>
<p>and select Show Package Contents.</li>
<li>Open
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">project.pbxproj</div></td></tr></tbody></table></div>
<p>in your favorite text editor and do a find/replace to update all instances of</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">OldProjectName</div></td></tr></tbody></table></div>
<p>to</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NewProjectName</div></td></tr></tbody></table></div>
<p>. (see #10 if any of your class files</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">OldProjectName</div></td></tr></tbody></table></div>
<p>have in the filename.</li>
<li>Open the project in Xcode.</li>
<li>From the
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Build menu</div></td></tr></tbody></table></div>
<p>, select</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Clean all targets</div></td></tr></tbody></table></div>
<p>.</li>
<li>Try to build and see if it goes.  If you&#8217;re working on an iPhone app, try it out in the simulator first&#8230; if you have any provisioning files for the old application name, you&#8217;ll have to go through the steps to create a new one before you can test it on your device.</li>
<li>if any of your classes contain
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">OldProjectName</div></td></tr></tbody></table></div>
<p>in the class fileName, you&#8217;ll need to</p>
<ul>
<li>update the names of any .h/.m files that include the name of the project&#8230;  don&#8217;t forget you&#8217;ll have to update import statements too</li>
<li>rename any of the
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">@interface</div></td></tr></tbody></table></div>
<p>and</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">@implementation</div></td></tr></tbody></table></div>
<p>declarations that contain</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">OldProjectName</div></td></tr></tbody></table></div>
<p>to contain</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">NewProjectName</div></td></tr></tbody></table></div>
<p>.</li>
<li>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Build</div></td></tr></tbody></table></div>
<p>&gt;</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Clean all targets</div></td></tr></tbody></table></div>
<p>again, build again, and fix anything you missed.</li>
</ul>
</li>
</ol>
<p>You now have a fully renamed project, ready for mutilation.  Enjoy!</p>
<p>Thanks to Aleksandar Vacić for posting <a href="http://aplus.rs/cocoa/how-to-rename-project-in-xcode-3x/">this tutorial</a> that I used to learn the basics of renaming a project&#8230;</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.soychicka.com/2009/07/18/working-with-sample-code-rename-your-project-in-xcode-3-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
