<?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>hocuspokus &#187; mac</title>
	<atom:link href="http://hocuspokus.net/category/mac/feed" rel="self" type="application/rss+xml" />
	<link>http://hocuspokus.net</link>
	<description>the life and times of a code monkey</description>
	<lastBuildDate>Fri, 12 Mar 2010 15:57:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing RMagick on Snow Leopard /&#160;Leopard</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F03%2Finstalling-rmagick-on-snow-leopard-leopard&amp;seed_title=Installing+RMagick+on+Snow+Leopard+%2F%26%23160%3BLeopard</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F03%2Finstalling-rmagick-on-snow-leopard-leopard&amp;seed_title=Installing+RMagick+on+Snow+Leopard+%2F%26%23160%3BLeopard#comments</comments>
		<pubDate>Sat, 06 Mar 2010 17:15:38 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[snow-leopard]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=420</guid>
		<description><![CDATA[This used to be quite a complicated task to install ImageMagick and RMagick from source, but these days (thanks to some great work by others) it&#8217;s a piece of cake&#8230;

First install ImageMagick using this install script hosted on github (http://github.com/masterkain/ImageMagick-sl):


cd ~/src
git clone git://github.com/masterkain/ImageMagick-sl.git
cd ImageMagick-sl
chmod +x install_im.sh
sh install_im.sh


Now simply sit back and wait. (Oh, you&#8217;ll need [...]]]></description>
			<content:encoded><![CDATA[<p>This used to be quite a complicated task to install ImageMagick and RMagick from source, but these days (thanks to some great work by others) it&#8217;s a piece of cake&#8230;</p>

<p>First install ImageMagick using this install script hosted on github (<a href="http://github.com/masterkain/ImageMagick-sl">http://github.com/masterkain/ImageMagick-sl</a>):</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>src
git clone git:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>masterkain<span style="color: #000000; font-weight: bold;">/</span>ImageMagick-sl.git
<span style="color: #7a0874; font-weight: bold;">cd</span> ImageMagick-sl
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x install_im.sh
<span style="color: #c20cb9; font-weight: bold;">sh</span> install_im.sh</pre></div></div>


<p>Now simply sit back and wait. (Oh, you&#8217;ll need to enter your password at some points as the libraries are installed into <code>/usr/local</code>).</p>

<p>Then, once that&#8217;s done, RMagick is installed by:</p>


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


<p>Simples. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F03%2Finstalling-rmagick-on-snow-leopard-leopard&amp;seed_title=Installing+RMagick+on+Snow+Leopard+%2F%26%23160%3BLeopard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing the Ruby Bindings for Oracle on Mac OS&#160;X</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F03%2Finstalling-the-ruby-bindings-for-oracle-on-mac-os-x&amp;seed_title=Installing+the+Ruby+Bindings+for+Oracle+on+Mac+OS%26%23160%3BX</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F03%2Finstalling-the-ruby-bindings-for-oracle-on-mac-os-x&amp;seed_title=Installing+the+Ruby+Bindings+for+Oracle+on+Mac+OS%26%23160%3BX#comments</comments>
		<pubDate>Thu, 04 Mar 2010 09:36:56 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[install]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=410</guid>
		<description><![CDATA[This quick crib sheet is for the guys at work (and anyone else who might need help on this one)&#8230;

First install the oracle instant client somewhere - I normally install it to /usr/local/oracle/instantclient_10_2.  Then&#8230;


cd /usr/local/oracle/instantclient_10_2
ln -s libclntsh.dylib.10.1 libclntsh.dylib


Following this, run mkdir -p /usr/local/oracle/network/admin/, and place a copy of the tnsnames.ora file in this directory.

Now [...]]]></description>
			<content:encoded><![CDATA[<p>This quick crib sheet is for the guys at work (and anyone else who might need help on this one)&#8230;</p>

<p>First install the <a href="http://www.oracle.com/technology/software/tech/oci/instantclient/index.html">oracle instant client</a> somewhere - I normally install it to <code>/usr/local/oracle/instantclient_10_2</code>.  Then&#8230;</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>oracle<span style="color: #000000; font-weight: bold;">/</span>instantclient_10_2
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> libclntsh.dylib.10.1 libclntsh.dylib</pre></div></div>


<p>Following this, run <code>mkdir -p /usr/local/oracle/network/admin/</code>, and place a copy of the tnsnames.ora file in this directory.</p>

<p>Now you need to add the following to your <code>.profile</code> or <code>.bashrc</code> file:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Oracle env variables</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">ORACLE_HOME</span>=<span style="color: #ff0000;">&quot;/usr/local/oracle/instantclient_10_2&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">DYLD_LIBRARY_PATH</span>=<span style="color: #ff0000;">&quot;/usr/local/oracle/instantclient_10_2:<span style="color: #007800;">$DYLD_LIBRARY_PATH</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">SQLPATH</span>=<span style="color: #ff0000;">&quot;/usr/local/oracle/instantclient_10_2&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">TNS_ADMIN</span>=<span style="color: #ff0000;">&quot;/usr/local/oracle/network/admin&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">NLS_LANG</span>=<span style="color: #ff0000;">&quot;AMERICAN_AMERICA.UTF8&quot;</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$PATH</span>:<span style="color: #007800;">$DYLD_LIBRARY_PATH</span>&quot;</span></pre></div></div>


<p>That&#8217;s all of the set-up done, now you just need to install the gem:</p>


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


<p>Done. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F03%2Finstalling-the-ruby-bindings-for-oracle-on-mac-os-x&amp;seed_title=Installing+the+Ruby+Bindings+for+Oracle+on+Mac+OS%26%23160%3BX/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing ._ Files From Mounted&#160;Drives</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F02%2Fremoving-_-files-from-mounted-drives&amp;seed_title=Removing+._+Files+From+Mounted%26%23160%3BDrives</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F02%2Fremoving-_-files-from-mounted-drives&amp;seed_title=Removing+._+Files+From+Mounted%26%23160%3BDrives#comments</comments>
		<pubDate>Thu, 11 Feb 2010 20:05:57 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=405</guid>
		<description><![CDATA[Here&#8217;s a quick snippet of goodness to remove those annoying &#8216;._&#8217; files that Macs generate on mounted drives&#8230;


cd &#91;wherever you want to clean&#93;
find . -name &#34;._*&#34; -exec rm '{}' \; -print

]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick snippet of goodness to remove those annoying &#8216;._&#8217; files that Macs generate on mounted drives&#8230;</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>wherever you want to clean<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #c20cb9; font-weight: bold;">find</span> . <span style="color: #660033;">-name</span> <span style="color: #ff0000;">&quot;._*&quot;</span> <span style="color: #660033;">-exec</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #ff0000;">'{}'</span> \; <span style="color: #660033;">-print</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2010%2F02%2Fremoving-_-files-from-mounted-drives&amp;seed_title=Removing+._+Files+From+Mounted%26%23160%3BDrives/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Git and SVN Branch to Bash&#160;Prompt</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F07%2Fadd-git-and-svn-branch-to-bash-prompt&amp;seed_title=Add+Git+and+SVN+Branch+to+Bash%26%23160%3BPrompt</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F07%2Fadd-git-and-svn-branch-to-bash-prompt&amp;seed_title=Add+Git+and+SVN+Branch+to+Bash%26%23160%3BPrompt#comments</comments>
		<pubDate>Thu, 09 Jul 2009 19:58:06 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[noteworthy]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[git]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=352</guid>
		<description><![CDATA[EDIT: (12-Mar-2010) slight update to the svn prompt code to give a better / more useful output&#8230;

I&#8217;ve seen things like this posted on the net before but never really had a chance to play with the idea.  But as I&#8217;m now using git and svn a lot more these days (fingers crossed i&#8217;ll be [...]]]></description>
			<content:encoded><![CDATA[<p><strong>EDIT:</strong> (12-Mar-2010) slight update to the svn prompt code to give a better / more useful output&#8230;</p>

<p>I&#8217;ve seen things like this posted on the net before but never really had a chance to play with the idea.  But as I&#8217;m now using git and svn a lot more these days (fingers crossed i&#8217;ll be totally free of cvs soon!) I thought it was about time I pulled my finger out.</p>

<p>So here&#8217;s the end goal, in a normal directory, we just get a normal bash promt, but in a directory controlled by git or svn, we also get an addition telling us the source control tool in use and the current branch:</p>

<p><img src="http://hocuspokus.net/wp-content/uploads/2009/07/git_svn_bash_terminal.png" alt="git_svn_bash_terminal" title="git_svn_bash_terminal" width="500" height="305" class="aligncenter size-full wp-image-358" /></p>

<p>So, fire up yer terminal and add the following to your <code>.profile</code>, <code>.bash_profile</code> or <code>.bashrc</code> (whichever one you use):</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">parse_git_branch <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	git name-rev HEAD <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">'s#HEAD\ \(.*\)# (git::\1)#'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
parse_svn_branch<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	parse_svn_url <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s#^'</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$(parse_svn_repository_root)</span>&quot;</span><span style="color: #ff0000;">'##g'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print &quot; (svn::&quot;$1&quot;)&quot; }'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
parse_svn_url<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #c20cb9; font-weight: bold;">svn</span> info <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">'s#^URL: ##p'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
parse_svn_repository_root<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	<span style="color: #c20cb9; font-weight: bold;">svn</span> info <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-ne</span> <span style="color: #ff0000;">'s#^Repository Root: ##p'</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #007800;">BLACK</span>=<span style="color: #ff0000;">&quot;\[\033[0;38m\]&quot;</span>
<span style="color: #007800;">RED</span>=<span style="color: #ff0000;">&quot;\[\033[0;31m\]&quot;</span>
<span style="color: #007800;">RED_BOLD</span>=<span style="color: #ff0000;">&quot;\[\033[01;31m\]&quot;</span>
<span style="color: #007800;">BLUE</span>=<span style="color: #ff0000;">&quot;\[\033[01;34m\]&quot;</span>
<span style="color: #007800;">GREEN</span>=<span style="color: #ff0000;">&quot;\[\033[0;32m\]&quot;</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$BLACK</span>[ \u@<span style="color: #007800;">$RED</span>\h <span style="color: #007800;">$GREEN</span>\w<span style="color: #007800;">$RED_BOLD</span><span style="color: #000099; font-weight: bold;">\$</span>(parse_git_branch)<span style="color: #000099; font-weight: bold;">\$</span>(parse_svn_branch)<span style="color: #007800;">$BLACK</span> ] &quot;</span></pre></div></div>


<p>Simples.  Now just open up a new terminal and move into a project directory using svn or git. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F07%2Fadd-git-and-svn-branch-to-bash-prompt&amp;seed_title=Add+Git+and+SVN+Branch+to+Bash%26%23160%3BPrompt/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Building Apache and Mod Perl on Mac OS&#160;X</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F03%2Fbuilding-apache-and-mod-perl-on-mac-os-x&amp;seed_title=Building+Apache+and+Mod+Perl+on+Mac+OS%26%23160%3BX</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F03%2Fbuilding-apache-and-mod-perl-on-mac-os-x&amp;seed_title=Building+Apache+and+Mod+Perl+on+Mac+OS%26%23160%3BX#comments</comments>
		<pubDate>Sat, 07 Mar 2009 09:45:16 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[apache]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=331</guid>
		<description><![CDATA[I&#8217;ve finally had my work laptop upgraded to Leopard!!!  

As such, I&#8217;ve just spent the last couple of days getting things all set-up nicely so that I can get on with my work.  Most of the work that I do is web development orientated, and mainly using Perl and Catalyst, so an install [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally had my work laptop upgraded to Leopard!!! <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>

<p>As such, I&#8217;ve just spent the last couple of days getting things all set-up nicely so that I can get on with my work.  Most of the work that I do is web development orientated, and mainly using <a href="http://www.perl.org/">Perl</a> and <a href="http://www.catalystframework.org/">Catalyst</a>, so an install of Apache and mod_perl is needed.</p>

<p>OS X does come with a complete install of Apache (even with mod_perl!) out of the box and ready to go (info on using this set-up can be found <a href="http://bixsolutions.net/forum/thread-11.html">here</a>), but I&#8217;m also working on another project that may involve the use of <a href="http://www.aptana.com/jaxer">Jaxer</a>, and this requires a newer build of Apache than the one shipped with Leopard. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-sad.png' alt=':(' class='wp-smiley' /> </p>

<p>Thankfully building these tools isn&#8217;t too complicated, here&#8217;s a quick dump of my notes on getting this done.  Note, I&#8217;m installing them into <a href="http://hivelogic.com/articles/2005/11/using_usr_local">/usr/local</a> so that I don&#8217;t mess with any of the OS X internals that I shouldn&#8217;t be touching - this is completely removable.</p>

<p>First, make a work area for building:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chgrp</span> admin <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #660033;">-R</span> <span style="color: #000000;">775</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src</pre></div></div>


<h4>Apache</h4>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">curl <span style="color: #660033;">-O</span> http:<span style="color: #000000; font-weight: bold;">//</span>apache.mirror.infiniteconflict.com<span style="color: #000000; font-weight: bold;">/</span>httpd<span style="color: #000000; font-weight: bold;">/</span>httpd-2.2.11.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf httpd-2.2.11.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> httpd-2.2.11</pre></div></div>


<p>Now here&#8217;s the big one - the Apache configuration.  This compiles a heap of modules I probably don&#8217;t need, but it&#8217;s nice to have them there in case I do ever need them&#8230;</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">CFLAGS</span>=<span style="color: #ff0000;">&quot;-O3&quot;</span> <span style="color: #007800;">CXXFLAGS</span>=<span style="color: #ff0000;">&quot;-O3&quot;</span> \
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2 \
<span style="color: #660033;">--enable-autoindex</span> \
<span style="color: #660033;">--enable-cache</span> \
<span style="color: #660033;">--enable-cgi</span> \
<span style="color: #660033;">--enable-deflate</span> \
<span style="color: #660033;">--enable-dir</span> \
--enable-disk_cache \
<span style="color: #660033;">--enable-fastcgi</span> \
--enable-file_cache \
<span style="color: #660033;">--enable-headers</span> \
<span style="color: #660033;">--enable-include</span> \
<span style="color: #660033;">--enable-info</span> \
--enable-log_config \
--enable-log_forensic \
<span style="color: #660033;">--enable-logio</span> \
--enable-mem_cache \
<span style="color: #660033;">--enable-mime</span> \
--enable-mime_magic \
<span style="color: #660033;">--enable-negotiation</span> \
<span style="color: #660033;">--enable-perl</span> \
<span style="color: #660033;">--enable-proxy</span> \
<span style="color: #660033;">--enable-proxy-balancer</span> \
<span style="color: #660033;">--enable-proxy-http</span> \
<span style="color: #660033;">--enable-rewrite</span> \
<span style="color: #660033;">--enable-speling</span> \
<span style="color: #660033;">--enable-status</span> \
<span style="color: #660033;">--enable-suexec</span> \
<span style="color: #660033;">--enable-userdir</span> \
<span style="color: #660033;">--enable-usertrack</span> \
<span style="color: #660033;">--enable-version</span> \
--enable-vhost_alias \
<span style="color: #660033;">--enable-so</span> \
<span style="color: #660033;">--enable-mods-shared</span>=all</pre></div></div>


<p>Then the standard make and install:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #7a0874; font-weight: bold;">test</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>


<p>Now to add some configuration so that Apache starts on system boot, first we need to create a startup script:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>System<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>StartupItems<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> Apache
<span style="color: #7a0874; font-weight: bold;">cd</span> Apache
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> Apache
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> a+x Apache
mate Apache</pre></div></div>


<p>Paste this content into the file:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
&nbsp;
<span style="color: #666666; font-style: italic;">##</span>
<span style="color: #666666; font-style: italic;"># Apache HTTP Server</span>
<span style="color: #666666; font-style: italic;">##</span>
&nbsp;
. <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.common
&nbsp;
StartService <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	ConsoleMessage <span style="color: #ff0000;">&quot;Starting Apache web server&quot;</span>
	<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apachectl start
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
StopService <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	ConsoleMessage <span style="color: #ff0000;">&quot;Stopping Apache web server&quot;</span>
	<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apachectl stop
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
RestartService <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
	ConsoleMessage <span style="color: #ff0000;">&quot;Restarting Apache web server&quot;</span>
	<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>apachectl restart
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
RunService <span style="color: #ff0000;">&quot;$1&quot;</span></pre></div></div>


<p>Then a configuration file:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">touch</span> StartupParameters.plist
mate StartupParameters.plist</pre></div></div>


<p>Paste this content into the file:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#123;</span>
  Description     = <span style="color: #ff0000;">&quot;Apache web server&quot;</span>;
  Provides        = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;Web Server&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
  Requires        = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;DirectoryServices&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
  Uses            = <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">&quot;Disks&quot;</span>,<span style="color: #ff0000;">&quot;Network Time&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
  OrderPreference = <span style="color: #ff0000;">&quot;None&quot;</span>;
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>


<p>Then reboot and open up <a href="http://localhost">http://localhost</a> to make sure things have worked.</p>

<h4>Mod Perl</h4>

<p>This is a lot more straight forward:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>src
curl <span style="color: #660033;">-O</span> http:<span style="color: #000000; font-weight: bold;">//</span>perl.apache.org<span style="color: #000000; font-weight: bold;">/</span>dist<span style="color: #000000; font-weight: bold;">/</span>mod_perl-<span style="color: #000000;">2.0</span>-current.tar.gz
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf mod_perl-<span style="color: #000000;">2.0</span>-current.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> mod_perl-2.0.4
<span style="color: #c20cb9; font-weight: bold;">perl</span> Makefile.PL <span style="color: #007800;">MP_AP_PREFIX</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>apache2
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #7a0874; font-weight: bold;">test</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>


<p>Now all you have to do is add the following line to your Apache httpd.conf (/usr/local/apache2/conf/httpd.conf) with all of the LoadModule entries:</p>


<div class="wp_syntax"><div class="code"><pre class="ini" style="font-family:monospace;">LoadModule perl_module modules/mod_perl.so</pre></div></div>


<p>All done! <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F03%2Fbuilding-apache-and-mod-perl-on-mac-os-x&amp;seed_title=Building+Apache+and+Mod+Perl+on+Mac+OS%26%23160%3BX/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Want Git Preinstalled on Next Mac OS&#160;X?</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F01%2Fwant-git-preinstalled-on-next-mac-os-x&amp;seed_title=Want+Git+Preinstalled+on+Next+Mac+OS%26%23160%3BX%3F</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F01%2Fwant-git-preinstalled-on-next-mac-os-x&amp;seed_title=Want+Git+Preinstalled+on+Next+Mac+OS%26%23160%3BX%3F#comments</comments>
		<pubDate>Sat, 31 Jan 2009 18:43:01 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=294</guid>
		<description><![CDATA[Yes would be my answer.  It sounds like a good idea, but I&#8217;m not sure if Apple will appreciate the ticket spam though&#8230;


  I have a dream wherein future developers donâ€™t even have to install Git for themselves in order to be able to use it. Apple has shown a very forward thinking [...]]]></description>
			<content:encoded><![CDATA[<p>Yes would be my answer.  It sounds like a good idea, but I&#8217;m not sure if Apple will appreciate the ticket spam though&#8230;</p>

<blockquote>
  <p>I have a dream wherein future developers donâ€™t even have to install Git for themselves in order to be able to use it. Apple has shown a very forward thinking attitude towards shipping OS X with various programming languages and version control systems. Right now is a critical time in which we can help push to have Git preinstalled on the next version of their operating system. The more people that use Git, the better the ecosystem becomes, and removing the installation barrier is a big step in that direction.</p>
  
  <p>Iâ€™m told, on good authority, that the best way to make this happen is to let Apple know that itâ€™s something we desire. So if youâ€™d like to be able to fire up a fresh Mac and type <code>git</code> without ever installing it, open a ticket on Appleâ€™s bug reporting site:</p>
  
  <p><a href="http://bugreporter.apple.com">http://bugreporter.apple.com</a></p>
  
  <p>Let them know that youâ€™re using Git on your mac, and that youâ€™d love to see it shipped with the next version of OS X so that even more developers can experience the joy of distributed version control!</p>
</blockquote>

<p>via <a href="http://github.com/blog/327-want-git-preinstalled-on-next-mac-os-x" class="via">Github</a></p>
<a href="http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F01%2Fwant-git-preinstalled-on-next-mac-os-x&amp;seed_title=Want+Git+Preinstalled+on+Next+Mac+OS%26%23160%3BX%3F" rel="bookmark" class="asides-permalink" title="Permanent Link to Want Git Preinstalled on Next Mac OS&nbsp;X?">(0)</a>]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2009%2F01%2Fwant-git-preinstalled-on-next-mac-os-x&amp;seed_title=Want+Git+Preinstalled+on+Next+Mac+OS%26%23160%3BX%3F/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install PostgreSQL on Mac OS X&#160;Leopard</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F11%2Finstall-postgresql-on-mac-os-x-leopard&amp;seed_title=Install+PostgreSQL+on+Mac+OS+X%26%23160%3BLeopard</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F11%2Finstall-postgresql-on-mac-os-x-leopard&amp;seed_title=Install+PostgreSQL+on+Mac+OS+X%26%23160%3BLeopard#comments</comments>
		<pubDate>Sun, 16 Nov 2008 10:57:42 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[datbase]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=248</guid>
		<description><![CDATA[This type of guide is all over the internet, but I&#8217;m too lazy to search for one every time I want to do this.  So here&#8217;s a brief overview of how I got PostgreSQL set-up nicely on Mac OS 10.5&#8230;

Setting Up Our Environment

Using a text editor of your choice, add the following lines to [...]]]></description>
			<content:encoded><![CDATA[<p>This type of guide is all over the internet, but I&#8217;m too lazy to search for one every time I want to do this. <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-wink.png' alt=';)' class='wp-smiley' /> So here&#8217;s a brief overview of how I got PostgreSQL set-up nicely on Mac OS 10.5&#8230;</p>

<h4>Setting Up Our Environment</h4>

<p>Using a text editor of your choice, add the following lines to the bottom of the <code>/etc/profile</code> file (you&#8217;ll need to be an administrator to do this):</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># MacPorts</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #007800;">$PATH</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># PostgreSQL</span>
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PATH</span>=<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>postgresql83<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #007800;">$PATH</span></pre></div></div>


<p>Now before we move on, make sure that you have <a href="http://www.macports.org/">MacPorts</a> installed.</p>

<p><span id="more-248"></span></p>

<h4>Installing PostgreSQL with MacPorts</h4>

<p>I like MacPorts - it makes installing general Unix packages and keeping them up-to-date a snap.  As such, we&#8217;ll use it to do the heavy lifting for installing PostgreSQL.  Open up a terminal and hit up the following command:</p>


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


<p>Sit back and wait a while&#8230;  That&#8217;s the basic install done.</p>

<p>Now to configure it, do the following:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>db<span style="color: #000000; font-weight: bold;">/</span>postgresql83<span style="color: #000000; font-weight: bold;">/</span>defaultdb
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> postgres:postgres <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>db<span style="color: #000000; font-weight: bold;">/</span>postgresql83<span style="color: #000000; font-weight: bold;">/</span>defaultdb
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">su</span> postgres <span style="color: #660033;">-c</span> <span style="color: #ff0000;">'/opt/local/lib/postgresql83/bin/initdb -D /opt/local/var/db/postgresql83/defaultdb'</span></pre></div></div>


<p>This installs a default database instance for us to be getting on with.  Next, run this command to get PostgreSQL to start on system boot:</p>


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


<p>Reboot your Mac.</p>

<h4>Creating a User Account and Database</h4>

<p>Once your Mac is back up, we finally need to create an account for us to use (substitute &#8216;daz&#8217; for your username)&#8230;</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">createuser <span style="color: #660033;">--superuser</span> daz <span style="color: #660033;">-U</span> postgres</pre></div></div>


<p>Now a database to play with&#8230;</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">createdb test_db</pre></div></div>


<h4>Admin Your Database with pgAdmin 3</h4>

<p>Download <a href="http://www.pgadmin.org/">pgAdmin</a>, then run the following commands to set up some functions that allows pgAdmin to collect statistics about your databases:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>postgresql83<span style="color: #000000; font-weight: bold;">/</span>contrib<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">su</span> postgres <span style="color: #660033;">-c</span> psql <span style="color: #000000; font-weight: bold;">&lt;</span> adminpack.sql</pre></div></div>


<p>That&#8217;s it - job done!<sup id="fnref:1"><a href="#fn:1" rel="footnote">1</a></sup></p>

<div class="footnotes">
<hr />
<ol>

<li id="fn:1">
<p>For notes on making the database accessible over the network, please refer to one of my posts on <a href="/2008/05/13/install-postgresql-on-ubuntu-804/">PostgreSQL on Ubuntu</a>.&#160;<a href="#fnref:1" rev="footnote">&#8617;</a></p>
</li>

</ol>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F11%2Finstall-postgresql-on-mac-os-x-leopard&amp;seed_title=Install+PostgreSQL+on+Mac+OS+X%26%23160%3BLeopard/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sync Your Things Database via&#160;Dropbox</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F11%2Fsync-your-things-database-via-dropbox&amp;seed_title=Sync+Your+Things+Database+via%26%23160%3BDropbox</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F11%2Fsync-your-things-database-via-dropbox&amp;seed_title=Sync+Your+Things+Database+via%26%23160%3BDropbox#comments</comments>
		<pubDate>Thu, 06 Nov 2008 10:03:09 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[noteworthy]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[gtd]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[things]]></category>
		<category><![CDATA[to-do]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=241</guid>
		<description><![CDATA[Dropbox is a great service, I&#8217;m using it happily to keep my files in sync across multiple computers - I&#8217;m even using it to keep all of my passwords in sync, but I&#8217;ve thought of another great use&#8230;  How about syncing my Things database between my macs (as this is my to-do list manager [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://www.getdropbox.com/">Dropbox</a> is a great service, I&#8217;m using it happily to keep my files in sync across multiple computers - I&#8217;m even using it to keep all of my <a href="http://www.switchersblog.com/2008/10/1password-29-br.html">passwords in sync</a>, but I&#8217;ve thought of another great use&#8230;  How about syncing my <a href="http://culturedcode.com/things/">Things</a> database between my macs (as this is my to-do list manager of choice)?</p>

<p>This is not fully tested yet, (just thought of it this morning) so i&#8217;ll update a bit later and report on as to wether things goes completely mental, but the way I&#8217;ve done this is as follows&#8230;</p>

<p>Make sure Things is completely shut down, then open up a terminal and type in the following commands:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Application\ Support<span style="color: #000000; font-weight: bold;">/</span>Cultured\ Code<span style="color: #000000; font-weight: bold;">/</span></pre></div></div>


<p>This moves us into the correct directory.  First, to be on the safe side - we&#8217;ll take a backup of our files&#8230;</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-R</span> Things Things.bak</pre></div></div>


<p>Now just move the Things directory into your dropbox and create a symbolic link in its place.</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mv</span> Things ~<span style="color: #000000; font-weight: bold;">/</span>Dropbox<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> ~<span style="color: #000000; font-weight: bold;">/</span>Dropbox<span style="color: #000000; font-weight: bold;">/</span>Things Things</pre></div></div>


<p>Fingers crossed this should have the desired results! <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile.png' alt=':)' class='wp-smiley' /> </p>

<p><strong>Update:</strong> It works!!! <img src='http://hocuspokus.net/wp-content/plugins/smilies-themer/tango/face-smile-big.png' alt=':D' class='wp-smiley' />  On the second computer all you need to do to get the ball rolling is to close down Things, open up a terminal and type the following commands:</p>


<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>Library<span style="color: #000000; font-weight: bold;">/</span>Application\ Support<span style="color: #000000; font-weight: bold;">/</span>Cultured\ Code<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> Things
<span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> ~<span style="color: #000000; font-weight: bold;">/</span>Dropbox<span style="color: #000000; font-weight: bold;">/</span>Things Things</pre></div></div>


<p>Note - my 2nd mac only had a fresh install of Things - <strong>no data</strong>.  I installed it, opened it up (so the initial database was created), then did the above.</p>
]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F11%2Fsync-your-things-database-via-dropbox&amp;seed_title=Sync+Your+Things+Database+via%26%23160%3BDropbox/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>VMWare Fusion 2 Beta&#160;2</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F07%2Fvmware-fusion-2-beta-2&amp;seed_title=VMWare+Fusion+2+Beta%26%23160%3B2</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F07%2Fvmware-fusion-2-beta-2&amp;seed_title=VMWare+Fusion+2+Beta%26%23160%3B2#comments</comments>
		<pubDate>Thu, 31 Jul 2008 10:35:11 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=156</guid>
		<description><![CDATA[It&#8217;s got friggin&#8217; Unity for Linux!!!  This looks good&#8230;


  The VMWare team has just released the second beta for VMWare Fusion 2.0, the company&#8217;s popular virtualization program for the Mac.
  
  The new beta adds a TON of new features, as the video above demonstrates. I got a chance to talk [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s got friggin&#8217; Unity for Linux!!!  This looks good&#8230;</p>

<blockquote>
  <p>The VMWare team has <a href="http://blogs.vmware.com/teamfusion/2008/07/safer-stronger.html">just released</a> <a href="http://www.vmware.com/communities/content/beta/fusion/fusion2_beta2.html">the second beta for VMWare Fusion 2.0</a>, the company&#8217;s popular virtualization program for the Mac.</p>
  
  <p>The new beta adds a TON of new features, as the video above demonstrates. I got a chance to talk to VMWare today about the new beta and it is HOT. I&#8217;ll be posting a more in-depth overview tomorrow, but until then, here are some of the highlights:</p>
  
  <ul>
  <li><strong>Unity 2.0</strong> - The newest version of Fusion is really focused on better Windows-Mac integration. You can now launch Windows programs from the dock or access Mac programs from within your virtual machine. You can also link folders like Documents, Pictures and Music on your virtual machine with those folders on your Mac.</li>
  <li><strong>Multiple Snapshots</strong> VMWare has worked really hard to bring a Time Machine-like ease to backing up and protecting your virtual machine. You can now designate how often you want to take full system snapshots of your VM, whether once an hour, once a day or once a week, and how many copies you want to keep.</li>
  <li><strong>Better Video and Graphics Graphics</strong> and shading support has been improved for Macs that have higher-end graphics cards, and even integrated Macs can now play 1080p HD video in virtual machines with considerably less CPU overhead.</li>
  <li><strong>Support for more client OSs</strong>, including Leopard Server You can now run Leopard Server as a VM in OS X 10.4 and 10.5, even on client machines (virtualizing Mac OS X client is blocked by Apple&#8217;s license terms). Support for the latest version of <a href="http://www.ubuntu.com">Ubuntu</a> (Hardy Heron) is also available right out of the box with Unity integration. Power users can now designate up to four virtual CPUs per virtual machine, which is great for anyone wanting to take an XServe or Mac Pro to the next level.</li>
  </ul>
  
  <p><a href="http://communities.vmware.com/community/beta/fusion">VMWare Fusion 2.0 beta 2</a> is available for Intel Macs running OS X 10.4 or OS X 10.5. New users can try the beta for free and the upgrade path (including future betas and the full version of Fusion 2.0) is free for all existing Fusion 1.0 customers.</p>
</blockquote>

<p>via <a href="http://www.tuaw.com/2008/07/30/vmware-fusion-2-beta-2-available-now/" class="via">TUAW</a></p>
<a href="http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F07%2Fvmware-fusion-2-beta-2&amp;seed_title=VMWare+Fusion+2+Beta%26%23160%3B2" rel="bookmark" class="asides-permalink" title="Permanent Link to VMWare Fusion 2 Beta&nbsp;2">(0)</a>]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F07%2Fvmware-fusion-2-beta-2&amp;seed_title=VMWare+Fusion+2+Beta%26%23160%3B2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trash Stuff From the Command&#160;Line</title>
		<link>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Ftrash-stuff-from-the-command-line&amp;seed_title=Trash+Stuff+From+the+Command%26%23160%3BLine</link>
		<comments>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Ftrash-stuff-from-the-command-line&amp;seed_title=Trash+Stuff+From+the+Command%26%23160%3BLine#comments</comments>
		<pubDate>Mon, 26 May 2008 14:22:36 +0000</pubDate>
		<dc:creator>Daz</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://hocuspokus.net/?p=147</guid>
		<description><![CDATA[A great little command-line tool for Leopard:


  osx-trash manipulates the Mac OS X trash from the command line, just like the Finder does. It uses AppleScript via Scripting Bridge on top of to communicate with the Finder. You can move files to the trash, empty the trash, and list items currently in the trash.


project [...]]]></description>
			<content:encoded><![CDATA[<p>A great little command-line tool for Leopard:</p>

<blockquote>
  <p><code>osx-trash</code> manipulates the Mac OS X trash from the command line, just like the Finder does. It uses AppleScript via Scripting Bridge on top of to communicate with the Finder. You can move files to the trash, empty the trash, and list items currently in the trash.</p>
</blockquote>

<p><a href="http://www.dribin.org/dave/osx-trash/" class="via">project page</a> <a href="http://www.dribin.org/dave/blog/archives/2008/05/24/osx_trash/" class="via">via</a></p>
<a href="http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Ftrash-stuff-from-the-command-line&amp;seed_title=Trash+Stuff+From+the+Command%26%23160%3BLine" rel="bookmark" class="asides-permalink" title="Permanent Link to Trash Stuff From the Command&nbsp;Line">(1)</a>]]></content:encoded>
			<wfw:commentRss>http://hocuspokus.net/feeder/?FeederAction=clicked&amp;feed=Articles+%28RSS2%29&amp;seed=http%3A%2F%2Fhocuspokus.net%2F2008%2F05%2Ftrash-stuff-from-the-command-line&amp;seed_title=Trash+Stuff+From+the+Command%26%23160%3BLine/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->