<?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>Facility9 &#187; OS X</title>
	<atom:link href="http://facility9.com/tag/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://facility9.com</link>
	<description>Jeremiah Peschka - professional something or other</description>
	<lastBuildDate>Fri, 06 Jan 2012 15:00:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Taking out the Trash</title>
		<link>http://facility9.com/2011/11/taking-out-the-trash/</link>
		<comments>http://facility9.com/2011/11/taking-out-the-trash/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 17:00:10 +0000</pubDate>
		<dc:creator>Jeremiah Peschka</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://facility9.com/?p=2337</guid>
		<description><![CDATA[If you&#8217;re like me, you probably don&#8217;t think a lot about what you throw into the trash on your computer &#8211; you just put files and folders in there to be deleted and, eventually, you empty the trash. The other day I dropped a 40GB virtual machine into the trash and then told OS X&#8230;]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re like me, you probably don&#8217;t think a lot about what you throw into the trash on your computer &#8211; you just put files and folders in there to be deleted and, eventually, you empty the trash. The other day I dropped a 40GB virtual machine into the trash and then told OS X to empty the trash. A few hours later, it was still chugging away at pretending it was deleting the trash. There were no messages in Console about files being locked and unable to be cleaned up and no warnings of any other kind.</p>
<p>Being the resourceful individual that I am, I dropped into the terminal and ran <code>sudo rm -rf .Trash/*</code>. That process hung as well. I checked the console and all of the various logs again and there was nothing going on.</p>
<p>As a last resort before giving up and switching to the backup computer, I rebooted the Mac into single user mode (hold down Command-S during the boot sequence). Once I was in single user mode, OS X dropped me off at a command prompt as the root user. A few quick <code>cd</code>s later and I was able to once again <code>rm -rf .Trash/*</code>. This time it worked like a charm.</p>
<p>I have no idea what happened and there were no logs to point me in the right direction. I can only assume that OS X got hung up trying to read the contents of the virtual hard disk which is, in reality, nothing more than a bundle of files, much like an OS X application. Maybe there was just too much junk&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://facility9.com/2011/11/taking-out-the-trash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing PostgreSQL on Mac OS X</title>
		<link>http://facility9.com/2010/02/installing-postgresql-on-mac-os-x/</link>
		<comments>http://facility9.com/2010/02/installing-postgresql-on-mac-os-x/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 14:00:45 +0000</pubDate>
		<dc:creator>Jeremiah Peschka</dc:creator>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://facility9.com/?p=1344</guid>
		<description><![CDATA[This is a pretty simple process, but one that I thought I would document because I ran into a few gotchas along the way. I originally installed OS X using the one click installer from EnterpriseDB. Unfortunately, the installer hung while attempting to finish the installation process and they only thing to do was to&#8230;]]></description>
			<content:encoded><![CDATA[<p>This is a pretty simple process, but one that I thought I would document because I ran into a few gotchas along the way.</p>
<p>I originally installed OS X using the one click installer from EnterpriseDB. Unfortunately, the installer hung while attempting to finish the installation process and they only thing to do was to roll back the install. I attempted to build from macports, but that proved to be a huge pain in my ass and reminded me a little bit too much of using Linux, so I scrapped that idea as well. I started browsing the EnterpriseDB installation notes and came across an unattended install. Since my installation failed trying to launch the final interactive stage of the installation, I said to myself &#8220;Self, I bet we should try this.&#8221;</p>
<ol>
<li>Download PostgreSQL from EnterpriseDB <a href='http://www.enterprisedb.com/products/pgdownload.do#osx' target='_blank'>http://www.enterprisedb.com/products/pgdownload.do#osx</a></li>
<li>Mount the OS X disk image file</li>
<li>In the Terminal, change to the directory where the image file was mounted:<br />
<code> cd /Volumes/PostgreSQL\ 8.4.2-1/</code></li>
<li>Start the unattended installation<br />
<code> sudo ./postgresql-8.4.2-1-osx.app/Contents/MacOS/installbuilder.sh<br />
  --mode unattended</code></li>
<li>Once the installation has finished, add the following line to your .profile:<br />
<code>source /Library/PostgreSQL/8.4/pg_env.sh</code><br />
If you&#8217;ve never created your .profile you can do the following in a terminal window:</p>
<ol>
<li><code>touch ~/.profile</code><br />This will create the file if it doesn&#8217;t exist and will only change the last modification date if it does.</li>
<li><code>open /Applications/TextEdit.app .profile</code><br />This opens your .profile in the TextEdit application</li>
</ol>
</li>
<li>Save and close your .profile</li>
<li>Create a new database user.<br />
<code>createuser [YOUR NAME HERE] --pwprompt --username=postgres</code><div id="attachment_1346" class="wp-caption alignnone" style="width: 525px"><a href="http://d1kpgdt94igfig.cloudfront.net/wp-content/uploads/2010/02/pg-new-user.jpg"><img src="http://d1kpgdt94igfig.cloudfront.net/wp-content/uploads/2010/02/pg-new-user.jpg" alt="Alt text for the image, e.g. “The Mona Lisa”" title="pg-new-user" width="515" height="368" class="size-full wp-image-1346" /></a><p class="wp-caption-text">This could be anyone...</p></div></li>
<li>When you&#8217;re prompted for the &#8220;Password:&#8221;, use &#8220;postgres&#8221;. This is the default password for the postgres superuser. Because you&#8217;ve just created another superuser, you&#8217;ll never have to touch this account again, but you should probably look up some <a href="http://www.postgresql.org/docs/8.4/interactive/index.html" target="_blank">fantastic documentation</a> and learn how to change the password.<div id="attachment_1345" class="wp-caption alignnone" style="width: 516px"><a href="http://d1kpgdt94igfig.cloudfront.net/wp-content/uploads/2010/02/pg-new-user-success.jpg"><img src="http://d1kpgdt94igfig.cloudfront.net/wp-content/uploads/2010/02/pg-new-user-success.jpg" alt="" title="pg-new-user-success" width="506" height="367" class="size-full wp-image-1345" /></a><p class="wp-caption-text">I'm a real live boy!</p></div></li>
</ol>
<p>There you have it: how to set up and install PostgreSQL on OS X. If you want to continue forward and install a Ruby library to interact with PostgreSQL, just type<br />
<code>sudo gem install postgres-pr</code> to install the pure Ruby version PostgreSQL driver. If you want to install one of the C-based drivers, you&#8217;ll need to mess around with macports.</p>
<p><em>Note:</em> EnterpriseDB make and distribute a binary version of PostgreSQL for a variety of platforms. In addition, they provide paid support and also offer a variety of enterprise features. They have in no way paid me for this post.</p>
<hr />
<p><strong>Related Posts:</strong></p>
<p><a href='http://facility9.com/2010/07/21/postgresql-tutorial-creating-your-first-database' target='_blank'>PostgreSQL Tutorial – Creating Your First Database</a><br />
<a href='http://facility9.com/2010/07/28/postgresql-tutorial-creating-the-pagila-schema' target='_blank'>PostgreSQL Tutorial – Creating the Pagila Schema</a><br />
<a href='http://facility9.com/2010/08/04/postgresql-tutorial-referring-to-other-tables' target='_blank'>PostgreSQL Tutorial – Referring to Other Tables</a><br />
<a href='http://facility9.com/2010/08/11/postgresql-tutorial-inserting-data' target='_blank'>PostgreSQL Tutorial – Inserting Data</a></p>
]]></content:encoded>
			<wfw:commentRss>http://facility9.com/2010/02/installing-postgresql-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic
Database Caching 3/15 queries in 0.011 seconds using disk: basic
Object Caching 411/431 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: d1kpgdt94igfig.cloudfront.net

Served from: facility9.com @ 2012-02-11 03:13:42 -->
