<?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"
	>

<channel>
	<title>Foliosus &#187; Site Administrativa</title>
	<atom:link href="http://www.foliosus.com/category/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.foliosus.com</link>
	<description>Plants, food and web design</description>
	<pubDate>Mon, 05 May 2008 23:27:50 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>A rake task for setting up new Rails projects for Subversion</title>
		<link>http://www.foliosus.com/2008/01/31/a-rake-task-for-setting-up-new-rails-projects-for-subversion/</link>
		<comments>http://www.foliosus.com/2008/01/31/a-rake-task-for-setting-up-new-rails-projects-for-subversion/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 16:59:02 +0000</pubDate>
		<dc:creator>Brent Miller</dc:creator>
		
		<category><![CDATA[Site Administrativa]]></category>

		<guid isPermaLink="false">http://www.foliosus.com/2008/01/31/a-rake-task-for-setting-up-new-rails-projects-for-subversion/</guid>
		<description><![CDATA[One of the more annoying things about using Subversion for source code control when using rails is that every time you start a new project, you have to go through this dance to get the new project&#8217;s Subversion setup done.  Really, this means that you&#8217;re repeating yourself every time you start a new project, [...]]]></description>
			<content:encoded><![CDATA[<p>One of the more annoying things about using Subversion for source code control when using rails is that every time you start a new project, you have to go through this dance to get the new project&#8217;s Subversion setup done.  Really, this means that you&#8217;re repeating yourself every time you start a new project, so in the interest of DRYness, it seems like you would want to script this.  Even better, you could just setup one canonical project that you checkout instead of running <code>rails my_new_project</code>.</p>
<p>I&#8217;ve <a href="http://blog.teksol.info/2006/03/09/subversion-primer-for-rails-projects" title="A very complete explanation for how to do it at the shell prompt">found</a> <a href="http://www.railsonwave.com/railsonwave/2006/12/19/smart-subversion-script-for-rails-projects" title="A shell script to configure SVN">several</a> <a href="http://blog.unquiet.net/archives/2005/11/06/helpful-rake-tasks-for-using-rails-with-subversion/" title="A rake task to configure SVN">pages</a> <a href="http://wiki.rubyonrails.org/rails/pages/How+To+Use+Subversion+with+a+Rails+Project" title="Rails wiki">on</a> <a href="http://wiki.rubyonrails.org/rails/pages/HowtoUseRailsWithSubversion" title="Another Rails Wiki page">the</a> internets that discuss how to do a good subversion setup, and they each had their strong points.  I&#8217;ve combined their approaches into a method for making a canonical blank app.</p>
<p><span id="more-89"></span></p>
<h3>Creating the canonical app</h3>
<p>First, you should create a repository for your canonical blank app.  Let&#8217;s say it&#8217;s at <code>http://svn.my_svn.com/canonical/trunk</code>. I trust that you know how to do this.  Then, you can create your app:</p>
<pre class="code">rails canonical
cd canonical</pre>
<p>Next you can do an in-place import of your SVN repo into your app directory:</p>
<pre class="code">svn checkout http://svn.my_svn.com/canonical/trunk .</pre>
<p>Don&#8217;t forget the final period in that command; it&#8217;s critical. SVN should say something like <code>Checked out revision 1</code>.  This step puts our newly created canonical directory under Subversion control.</p>
<h3>Adding all of your files to the repository</h3>
<p>Now we put all of our files under Subversion control:</p>
<pre class="code">svn add --force .</pre>
<p>Again, don&#8217;t forget the trailing period.  This command will output a long list of files with a leading &#8220;A&#8221;, indicating that they&#8217;ve been added.</p>
<h3>Create the rake task</h3>
<p>Put the following code in a file called <code>svn.rake</code> in the <code>lib/tasks</code> folder:</p>
<pre class="code">desc "Configure Subversion for Rails"
task :setup_svn do
  puts "Removing /log"
  system "svn remove log/*"
  system "svn commit -m 'removing all log files from subversion'"
  system 'svn propset svn:ignore "*.log" log/'
  system "svn update log/"
  system "svn commit -m 'Ignoring all files in /log/ ending in .log'"

  puts "Ignoring /db"
  system 'svn propset svn:ignore "*.db" db/'
  system "svn update db/"
  system "svn commit -m 'Ignoring all files in /db/ ending in .db'"

  puts "Renaming database.yml database.example"
  system "svn move config/database.yml config/database.example"
  system "svn commit -m 'Moving database.yml to database.example to provide a template for anyone who checks out the code'"
  system 'svn propset svn:ignore "database.yml" config/'
  system "svn update config/"
  system "svn commit -m 'Ignoring database.yml'"

  puts "Ignoring /tmp"
  system 'svn propset svn:ignore "*" tmp/'
  system "svn update tmp/"
  system "svn commit -m 'Ignoring all files in /tmp/'"

  puts "Ignoring /doc"
  system 'svn propset svn:ignore "*" doc/'
  system "svn update doc/"
  system "svn commit -m 'Ignoring all files in /doc/'"
end</pre>
<h3>Do any other setup</h3>
<p>If there are any other setup or configuration bits that you use all the time — plugins, ActionMailer configs, date formats, etc., put those in the appropriate places.  When using <code>script/plugin</code> make sure that you use the <code>-x</code> flag to get the Subversion stuff right.  When using <code>script/generate</code> be sure to use the <code>--svn</code> flag to add the files automatically to Subversion.</p>
<p>For example, at my work most of our apps routinely connect to multiple databases, so I put stubs for each of them in <code>database.example</code>.  I also like to have certain date formats available to me, </p>
<h3>Run the rake task</h3>
<p>Now, execute the new rake task:</p>
<pre class="code">rake setup_svn</pre>
<p>Be warned, though, you should only run this once on the canonical: it moves the <code>database.yml</code> file to <code>database.example</code>, making the project non-functional.  You don&#8217;t want any passwords in there, either, since you don&#8217;t want to expose them in the repository.</p>
<p>The script does a bunch of commits, so any changes you have made to your canonical will be saved to the repository.</p>
<h3>Export new projects</h3>
<p>The next time you want to create a new Rails project, instead of doing <code>rails projectname</code> you should do the following:</p>
<ol>
<li>Export the canonical from the repository</li>
<li>Do an in-place import from the new project&#8217;s repository</li>
<li>Rename <code>database.example</code> as <code>database.yml</code> and populate it</li>
<li>Run <code>rake secret</code> and copy the new secret code into your <code>environment.rb</code> (you don&#8217;t want all of your apps to have the same code)</li>
</ol>
<p>If you don&#8217;t want to mess with the canonical, you can just drop the <code>svn.rake</code> file in to your new projects and run it.  That would give you some DRYness, like a good hitchhiker&#8217;s towel.</p>
<h3>That&#8217;s it!</h3>
<p>Now you should have a good canonical app that makes creating new projects a breeze.  At my work we have multiple developers and we will have dozens of apps by the time we&#8217;re done migrating ourselves out of the old platform.  By standardizing our new projects this way, it makes our startup time much faster and leads to better habits (like always using Subversion), and there is no bad in any of that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foliosus.com/2008/01/31/a-rake-task-for-setting-up-new-rails-projects-for-subversion/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New site launch for Oregon Ki Society</title>
		<link>http://www.foliosus.com/2007/12/08/new-site-launch-for-oregon-ki-society/</link>
		<comments>http://www.foliosus.com/2007/12/08/new-site-launch-for-oregon-ki-society/#comments</comments>
		<pubDate>Sat, 08 Dec 2007 23:23:10 +0000</pubDate>
		<dc:creator>Brent Miller</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Site Administrativa]]></category>

		<guid isPermaLink="false">http://www.foliosus.com/2007/12/08/new-site-launch-for-oregon-ki-society/</guid>
		<description><![CDATA[
Even though I&#8217;ve started a new job, which I love by the way, my freelance work continues.  Last week I launched the newly redesigned Oregon Ki Society site, and it&#8217;s now in my portfolio.  This one is particularly near and dear to my heart, as I began training Aikido with the OKS 11 [...]]]></description>
			<content:encoded><![CDATA[<div class="image_frame"><a href="/portfolio/oregon-ki-society/" title="Go to the design description of the new Oregon Ki Society site"><img src="/wp-content/uploads/2007/12/oregonki_sm.jpg" alt="Oregon Ki Society screenshot" /></a></div>
<p>Even though I&#8217;ve started a new job, which I love by the way, my freelance work continues.  Last week I launched the newly redesigned <a href="http://www.oregonki.org/" title="Oregon Ki Society">Oregon Ki Society</a> site, and it&#8217;s now <a href="/portfolio/oregon-ki-society/" title="Go to the design description of the new Oregon Ki Society site">in my portfolio</a>.  This one is particularly near and dear to my heart, as I began training Aikido with the OKS 11 years ago, and still train today.</p>
<p>To be honest, when I first saw their site in 1996 I wanted to get my hands on it to fix it up.  Little did I know they would still be using the same site in 2007, when I was finally in a position to do something about it. The new site is crisp, clean and fresh with lots of strong photography.  I&#8217;m also quite proud of that since I shot most of the photos.</p>
<p>The content is interesting, too; there are <a href="http://www.ki-society.com/english/renew/aikidokai_002.html" title="Official Ki Society dojo list">Ki Society dojos all over the world</a>, and so there might be one near you.  If there is, it&#8217;s worth checking out.  The aikido training the Ki Society offers is unparalleled.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foliosus.com/2007/12/08/new-site-launch-for-oregon-ki-society/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New page in my portfolio</title>
		<link>http://www.foliosus.com/2006/12/10/new-page-in-my-portfolio/</link>
		<comments>http://www.foliosus.com/2006/12/10/new-page-in-my-portfolio/#comments</comments>
		<pubDate>Mon, 11 Dec 2006 00:34:13 +0000</pubDate>
		<dc:creator>Brent Miller</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Site Administrativa]]></category>

		<guid isPermaLink="false">http://www.foliosus.com/2006/12/10/new-page-in-my-portfolio/</guid>
		<description><![CDATA[
Although this page went live a little while ago, I&#8217;ve just gotten around to writing it up.  A scientist at the University of Santa Barbara contacted me about making a professional page for her.  I&#8217;ve added it to my portfolio.  I&#8217;m particularly happy about the image at the bottom of the page [...]]]></description>
			<content:encoded><![CDATA[<div class="image_frame"><a href="/portfolio/tyler/" title="Link to my description of Claudia Tyler's home page"><img src="/wp-content/uploads/2006/12/tyler_sm.jpg" alt="Thumbnail of Claudia Tyler's site" /></a></div>
<p>Although this page went live a little while ago, I&#8217;ve just gotten around to writing it up.  A scientist at the University of Santa Barbara contacted me about making a <a href="http://www.icess.ucsb.edu/~tyler/" title="Claudia Tyler's home page">professional page</a> for her.  I&#8217;ve <a href="/portfolio/tyler/" title="My description of her page">added it to my portfolio</a>.  I&#8217;m particularly happy about the image at the bottom of the page behaves: use a big screen and make your browser window wide.  Very wide.</p>
<p>I hope that the page will help Claudia advertise her work both to other scientists as well as to potential students and field assistants.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foliosus.com/2006/12/10/new-page-in-my-portfolio/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New portfolio site: Goleta Valley Holistic Health Care</title>
		<link>http://www.foliosus.com/2006/07/16/new-portfolio-site-goleta-valley-holistic-health-care/</link>
		<comments>http://www.foliosus.com/2006/07/16/new-portfolio-site-goleta-valley-holistic-health-care/#comments</comments>
		<pubDate>Mon, 17 Jul 2006 02:17:05 +0000</pubDate>
		<dc:creator>Brent Miller</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Site Administrativa]]></category>

		<guid isPermaLink="false">http://www.foliosus.com/2006/07/16/new-portfolio-site-goleta-valley-holistic-health-care/</guid>
		<description><![CDATA[Another client site went live recently: Goleta Valley Holistic Health Care.  I&#8217;ve put a page in my portfolio about it.  I wish them the best of luck with their new business.
]]></description>
			<content:encoded><![CDATA[<p>Another client site went live recently: <a href="http://www.gvhhc.com/" title="GVHHC home page">Goleta Valley Holistic Health Care</a>.  I&#8217;ve put a <a href="/portfolio/gvhhc/" title="GVHHC site description">page in my portfolio</a> about it.  I wish them the best of luck with their new business.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foliosus.com/2006/07/16/new-portfolio-site-goleta-valley-holistic-health-care/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New site in my portfolio: JessicaReichman.com</title>
		<link>http://www.foliosus.com/2006/05/26/new-site-in-my-portfolio-jessicareichmancom/</link>
		<comments>http://www.foliosus.com/2006/05/26/new-site-in-my-portfolio-jessicareichmancom/#comments</comments>
		<pubDate>Fri, 26 May 2006 23:14:16 +0000</pubDate>
		<dc:creator>Brent Miller</dc:creator>
		
		<category><![CDATA[Design]]></category>

		<category><![CDATA[Site Administrativa]]></category>

		<guid isPermaLink="false">http://www.foliosus.com/2006/05/26/new-site-in-my-portfolio-jessicareichmancom/</guid>
		<description><![CDATA[I&#8217;ve just completed a new site for a local artist named Jessica Reichman.  She approached me with a pre-existing web site that had gotten beaten with an ugly stick and then left unfinished.  It failed to highlight her personality or her work.  The new design does both.  You can see my [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just completed a new site for a local artist named Jessica Reichman.  She approached me with a pre-existing web site that had gotten beaten with an ugly stick and then left unfinished.  It failed to highlight her personality or her work.  The new design does both.  You can see my little writeup in <a href="/portfolio/reichman/" title="Go to my portfolio description">my portfolio</a> or you can just go visit <a href="http://www.jessicareichman.com/" title="Go to JessicaReichman.com">the site</a> to see what it looks like.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foliosus.com/2006/05/26/new-site-in-my-portfolio-jessicareichmancom/feed/</wfw:commentRss>
		</item>
		<item>
		<title>I&#8217;m officially moving</title>
		<link>http://www.foliosus.com/2006/05/15/im-officially-moving/</link>
		<comments>http://www.foliosus.com/2006/05/15/im-officially-moving/#comments</comments>
		<pubDate>Mon, 15 May 2006 17:37:26 +0000</pubDate>
		<dc:creator>Brent Miller</dc:creator>
		
		<category><![CDATA[Site Administrativa]]></category>

		<guid isPermaLink="false">http://www.foliosus.com/2006/05/15/im-officially-moving/</guid>
		<description><![CDATA[It looks like the career switch is now official.  I was up in Portland, Oregon last week finding an apartment and a job, and thanks to the power of Craigslist, I got me both.  The job is a web job that&#8217;s big and corporate, but not super interesting coding.  The upside of [...]]]></description>
			<content:encoded><![CDATA[<p>It looks like the career switch is now official.  I was up in Portland, Oregon last week finding an apartment and a job, and thanks to the power of <a href="http://portland.craigslist.com/" title="Portland classifieds">Craigslist</a>, I got me both.  The job is a web job that&#8217;s big and corporate, but not super interesting coding.  The upside of the job, though, is that at 5:00 it&#8217;s done, and the job stays at work.  It doesn&#8217;t come home.  That will leave me with plenty of time to do some freelancing on the side, to continue playing with Ruby, and do all of the more fun aspects of web design.</p>
<p>The apartment I got is pretty sweet, too.  It&#8217;s a 1940s vintage unit with great hardwood floors and a small but highly usable kitchen.  Its only downside is that the stove is electric and not gas.  Sigh.  I&#8217;ll just have to make it work, but I&#8217;ll miss the easy chile roasting capacity of the gas stoves.</p>
<p>I was super excited when I was up there because I locked in the apartment and the job within 48 hours of landing.  I was kind of surprised at the job offer that came the day after the interview, but I was really surprised about finding the apartment.  I&#8217;m told by my PDX friends that I&#8217;m backwards; I should be shocked at the job offer given the tech job market in Portland these days, but that finding an apartment is really easy.  I guess that living in Santa Barbara for so long really skewed my understanding of what a normal housing market is like.  I&#8217;d sort of forgotten that landlords aren&#8217;t always despots and that there are places in this country where apartments stay on the market for more than 48 hours before being rented.</p>
<p>Cheers to Portland!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foliosus.com/2006/05/15/im-officially-moving/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New site design: Aeonium</title>
		<link>http://www.foliosus.com/2006/04/11/new-site-design-aeonium/</link>
		<comments>http://www.foliosus.com/2006/04/11/new-site-design-aeonium/#comments</comments>
		<pubDate>Tue, 11 Apr 2006 15:06:07 +0000</pubDate>
		<dc:creator>Brent Miller</dc:creator>
		
		<category><![CDATA[Plants]]></category>

		<category><![CDATA[Site Administrativa]]></category>

		<guid isPermaLink="false">http://www.foliosus.com/2006/04/11/new-site-design-aeonium/</guid>
		<description><![CDATA[There&#8217;s a new site design!  If you look just underneath the search box in the sidebar, you&#8217;ll now find a pair of links, titled &#8220;Banksia&#8221; and &#8220;Aeonium.&#8221;  These allow you to switch between the Banksia and Aeonium layouts.  I think that the newer Aeonium layout is more successful, but I love the [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a new site design!  If you look just underneath the search box in the sidebar, you&#8217;ll now find a pair of links, titled &#8220;Banksia&#8221; and &#8220;Aeonium.&#8221;  These allow you to switch between the Banksia and Aeonium layouts.  I think that the newer Aeonium layout is more successful, but I love the colors of Banksia and so I couldn&#8217;t let it disappear.  The new layout is named after the genus <span class="species"><a href="http://images.google.com/images?q=aeonium&#038;sa=N&#038;tab=wi" title="Google search for photos of Aeonium">Aeonium</a></span>, which graces the banner, and was inspired by both the geometric regularity of that species and a Japanese aesthetic of simplicity.  Let me know what you think!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foliosus.com/2006/04/11/new-site-design-aeonium/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Hello World!</title>
		<link>http://www.foliosus.com/2006/01/16/hello-world/</link>
		<comments>http://www.foliosus.com/2006/01/16/hello-world/#comments</comments>
		<pubDate>Tue, 17 Jan 2006 01:26:59 +0000</pubDate>
		<dc:creator>Brent Miller</dc:creator>
		
		<category><![CDATA[Site Administrativa]]></category>

		<guid isPermaLink="false">http://www.foliosus.com/2006/01/16/hello-world/</guid>
		<description><![CDATA[Hello world wide web.  I hope that this post marks the beginning of a long and fruitful relationship between me and you.  For my part, I&#8217;m a web designer-in-training.  Or if you prefer, a grad student who decided to leave the botanical sciences for the wilds of the interweb.  You might [...]]]></description>
			<content:encoded><![CDATA[<p>Hello world wide web.  I hope that this post marks the beginning of a long and fruitful relationship between me and you.  For my part, I&#8217;m a web designer-in-training.  Or if you prefer, a grad student who decided to leave the botanical sciences for the wilds of the interweb.  You might wonder why I would make such a transition.  Well, there are several reasons.</p>
<ol>
<li>Pursuing a career in a field with employment opportunity</li>
<li>Being in an industry that has portable skills, so that my Australian wife and I can move to Perth</li>
<li>Getting a job (see #1)</li>
<li>Finally starting to earn some money - 28 is a bit old to <em>still</em> be a student</li>
</ol>
<p>Looking down the track at a career in Botany, I see that there just aren&#8217;t any jobs out there.  It doesn&#8217;t make sense to play the academic game for another decade finishing a Ph.D. (which lowers lifetime earning potential) and pursuing a couple of post-doc positions to then find out that there isn&#8217;t a job for me to do.  So it is with regret that I&#8217;m leaving academia, as I still love many things about it.  Instead of being a botanist who dabbles in web technologies, I&#8217;ve decided to become a web designer who botanizes; I&#8217;m switching my vocation for my hobby.</p>
<p>So what does this mean for you dear reader, dear web?  It means that you have another blog to read.  I intend to fill these pages with discussion about the web and web technologies, breaking in to the IT industry, design, plants, and good food (my other hobby).  These pages will be part personal, part professional.  I hope that they will be all enjoyable.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.foliosus.com/2006/01/16/hello-world/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
