<?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>Sean&#039;s Blog &#187; mac os x</title>
	<atom:link href="http://seanbehan.com/tag/mac-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://seanbehan.com</link>
	<description>Web Programming, Ruby on Rails, Wordpress, PHP from Burlington, Vermont</description>
	<lastBuildDate>Wed, 18 Jan 2012 21:44:54 +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>Setting Up Users, Permissions and Groups for SSH Access to a Shared Git Repository</title>
		<link>http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/</link>
		<comments>http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 21:44:37 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Git]]></category>
		<category><![CDATA[adduser]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[groupadd]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[repo]]></category>
		<category><![CDATA[shared]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1189</guid>
		<description><![CDATA[If you are having permission problems using git, such as error: insufficient permission for adding an object to repository database ./objects There are a couple thing you can do to remedy the situation, before moving to a full on git server like gitosis. Create your users and add them to a group. Create (if you [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fgit%2Fsetting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Setting Up Users, Permissions and Groups for SSH Access to a Shared Git Repository" data-url="http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>If you are having permission problems using git, such as </p>
<pre class="wp-code-highlight prettyprint">error: insufficient permission for adding an object to repository database ./objects</pre>
<p>There are a couple thing you can do to remedy the situation, before moving to a full on git server like gitosis. </p>
<p>Create your users and add them to a group. Create (if you haven&#8217;t already) your git repo on the server and change permission and ownship and set the git config sharedRepository to true.  </p>
<p>Here are all the commands, quick and dirty!</p>
<pre class="wp-code-highlight prettyprint">
adduser sean
adduser jackson
groupadd developers
adduser sean developers
adduser jackson developers

mkdir -p /git/dev/app.git
cd /git/dev/app.git
git --bare init
vim description  #edit this file (mac os x complains otherwise)
chmod -R g+ws *
chgrp -R developers *
git repo-config core.sharedRepository true
</pre>
<p>Found from: <a href="http://mapopa.blogspot.com/2009/10/git-insufficient-permission-for-adding.html">http://mapopa.blogspot.com/2009/10/git-insufficient-permission-for-adding.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/git/setting-up-permissions-and-groups-for-ssh-access-to-a-shared-git-repository/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails, jQuery and YUI API Docs Available as Mac OS X Dictionary Binaries</title>
		<link>http://seanbehan.com/documentation/ruby-on-rails-jquery-and-yui-api-docs-available-as-mac-os-x-dictionary-binaries/</link>
		<comments>http://seanbehan.com/documentation/ruby-on-rails-jquery-and-yui-api-docs-available-as-mac-os-x-dictionary-binaries/#comments</comments>
		<pubDate>Sat, 05 Dec 2009 15:09:02 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Documentation]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[dictionary]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[yui]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=636</guid>
		<description><![CDATA[I came across an awesome tool this morning. Priit Haamer has chunked Ruby on Rails, jQuery, and some of YUI documentation into native Mac OS X dictionary binaries. This lets you search those API docs from Spotlight, TextMate, any application that uses the dictionary app! I have tested the Ruby on Rails API within TextMate. [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fdocumentation%2Fruby-on-rails-jquery-and-yui-api-docs-available-as-mac-os-x-dictionary-binaries%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Ruby on Rails, jQuery and YUI API Docs Available as Mac OS X Dictionary Binaries" data-url="http://seanbehan.com/documentation/ruby-on-rails-jquery-and-yui-api-docs-available-as-mac-os-x-dictionary-binaries/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>I came across an awesome tool this morning. <a href="http://www.priithaamer.com/">Priit Haamer</a> has chunked Ruby on Rails, jQuery, and some of YUI documentation into native Mac OS X dictionary binaries. This lets you search those API docs from Spotlight, TextMate, any application that uses the dictionary app!</p>
<p>I have tested the Ruby on Rails API within TextMate. Hover over any function and hit ctl+cmd+d and a little popup will give you a glimpse at the API docs. Seems like a nice alternative to ACK or the normal TextMate function lookup.</p>
<p>More information and installation instructions are available at Priit&#8217;s site <a href="http://www.priithaamer.com/blog">http://www.priithaamer.com/blog</a></p>
<p>Here is a nice video of the tool</p>
<p><a href="http://seanbehan.com/documentation/ruby-on-rails-jquery-and-yui-api-docs-available-as-mac-os-x-dictionary-binaries/"><em>Click here to view the embedded video.</em></a></p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/documentation/ruby-on-rails-jquery-and-yui-api-docs-available-as-mac-os-x-dictionary-binaries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disk Usage Information on Mac OS X</title>
		<link>http://seanbehan.com/mac-os-x/disk-usage-information-on-mac-os-x/</link>
		<comments>http://seanbehan.com/mac-os-x/disk-usage-information-on-mac-os-x/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 18:29:17 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[mac os x]]></category>
		<category><![CDATA[df]]></category>
		<category><![CDATA[du]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=594</guid>
		<description><![CDATA[Get disk usage information about the Desktop $ du -h -d 0 Desktop 14G Desktop Information about how much free space is available on computer $ df -lh Filesystem Size Used Avail Capacity Mounted on /dev/disk0s2 111Gi 109Gi 2.3Gi 98% / You can read more about the flags with the man pages $ man du [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fmac-os-x%2Fdisk-usage-information-on-mac-os-x%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Disk Usage Information on Mac OS X" data-url="http://seanbehan.com/mac-os-x/disk-usage-information-on-mac-os-x/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Get disk usage information about the Desktop</p>
<pre class="wp-code-highlight prettyprint">
$ du -h -d 0 Desktop
14G	Desktop
</pre>
<p>Information about how much free space is available on computer</p>
<pre class="wp-code-highlight prettyprint">
$ df -lh
Filesystem     Size   Used  Avail Capacity  Mounted on
/dev/disk0s2  111Gi  109Gi  2.3Gi    98%    /
</pre>
<p>You can read more about the flags with the man pages</p>
<pre class="wp-code-highlight prettyprint">
$ man du
$ man df
</pre>
<p>This is my 100th post!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/mac-os-x/disk-usage-information-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Scala on Mac OS X Leopard</title>
		<link>http://seanbehan.com/programming/installing-scala-on-mac-os-x-leopard/</link>
		<comments>http://seanbehan.com/programming/installing-scala-on-mac-os-x-leopard/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 03:52:01 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[scala]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=543</guid>
		<description><![CDATA[I followed the instructions from here http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/ but I used version 2.7.6 (rather than .5) I installed scala under /usr/local/scala so I had to include it to my path. Type vim .bash_profile export PATH=&#34;/usr/local/bin:/usr/local/sbin:/usr/local/scala/scala-2.7.6.final/bin:$PATH&#34; Now to download and install&#8230; curl -O http://www.scala-lang.org/downloads/distrib/files/scala-2.7.6.final-installer.jar sudo java -jar scala-2.7.6.final-installer.jar This will launch an installer. Just follow the instructions [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fprogramming%2Finstalling-scala-on-mac-os-x-leopard%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Installing Scala on Mac OS X Leopard" data-url="http://seanbehan.com/programming/installing-scala-on-mac-os-x-leopard/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>I followed the instructions from here http://arvinderkang.com/2009/09/01/installing-scala-on-snow-leopard/ but I used version 2.7.6 (rather than .5) I installed scala under /usr/local/scala so I had to include it to my path. Type</p>
<pre class="wp-code-highlight prettyprint">
vim .bash_profile
export PATH=&quot;/usr/local/bin:/usr/local/sbin:/usr/local/scala/scala-2.7.6.final/bin:$PATH&quot;
</pre>
<p>Now to download and install&#8230;</p>
<pre class="wp-code-highlight prettyprint">
curl -O http://www.scala-lang.org/downloads/distrib/files/scala-2.7.6.final-installer.jar
sudo java -jar scala-2.7.6.final-installer.jar
</pre>
<p>This will launch an installer. Just follow the instructions and when it asks for the destination folder, remember that it&#8217;s in /usr/local/scala<br />
Simple as pie!</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/programming/installing-scala-on-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixing MySQL for Rails 2.2 Development on Mac OS X</title>
		<link>http://seanbehan.com/programming/fixing-mysql-for-rails-2-2-development-on-mac-os-x/</link>
		<comments>http://seanbehan.com/programming/fixing-mysql-for-rails-2-2-development-on-mac-os-x/#comments</comments>
		<pubDate>Fri, 03 Jul 2009 16:35:50 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[adapter]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=421</guid>
		<description><![CDATA[Oh what trouble Rails 2.2 and MySQL (on Mac OS X) can be. Rails, as of version >= 2.2, no longer comes bundled with the MySQL adapter. This means you&#8217;ll need to install it yourself, but it appears that the gem for installing it is also broken. This will fail gem install mysql What you [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fprogramming%2Ffixing-mysql-for-rails-2-2-development-on-mac-os-x%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Fixing MySQL for Rails 2.2 Development on Mac OS X" data-url="http://seanbehan.com/programming/fixing-mysql-for-rails-2-2-development-on-mac-os-x/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>Oh what trouble Rails 2.2 and MySQL (on Mac OS X) can be. Rails, as of version >= 2.2, no longer comes bundled with the MySQL adapter. This means you&#8217;ll need to install it yourself, but it appears that the gem for installing it is also broken.</p>
<p>This will fail</p>
<pre class="wp-code-highlight prettyprint">
gem install mysql
</pre>
<p>What you need to do is tell the gem which MySQL to use. I installed MySQL with mac ports, http://macports.org , so I need to specify this when I run the installation command.</p>
<pre class="wp-code-highlight prettyprint">
gem install mysql -- --with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config
</pre>
<p>Check out an earlier post explaining how to install MySQL with mac ports http://seanbehan.com/programming/installing-sphinx-search-engine-on-mac-os-x-or-ld-library-not-found-for-lmysqlclient/</p>
<p>You&#8217;re not out of the woods yet. Rails needs to know the location of the socket it uses to connect to the MySQL server. I created a symbolic link to the location Rails normally looks for this socket. You could specify the location of the socket in the config/database.yml file, however, then you&#8217;ll need to do this with each of your applications.</p>
<pre class="wp-code-highlight prettyprint">
ln -s /private/tmp/mysql.sock /opt/local/var/run/mysql5/mysqld.sock
</pre>
<p>If there is an easier way to get MySQL back for Rails on Mac OS X please let me know. I&#8217;d love a quick fix to this problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/programming/fixing-mysql-for-rails-2-2-development-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Sphinx Search Engine on Mac OS X&#8230; or ld: library not found for -lmysqlclient</title>
		<link>http://seanbehan.com/programming/installing-sphinx-search-engine-on-mac-os-x-or-ld-library-not-found-for-lmysqlclient/</link>
		<comments>http://seanbehan.com/programming/installing-sphinx-search-engine-on-mac-os-x-or-ld-library-not-found-for-lmysqlclient/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 19:19:47 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[sphinx]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=410</guid>
		<description><![CDATA[If you are trying to install Sphinx on Mac OS X, it will most likely fail. The current version of MySQL bundled with Mac OS X is not supported and therefore, it will spit out the error message because it can&#8217;t find the correct libraries. ld: library not found for -lmysqlclient There is a quick [...]]]></description>
			<content:encoded><![CDATA[<div style="height:33px;" class="really_simple_share robots-nocontent snap_nopreview"><div class="really_simple_share_facebook_like" style="width:px;">
				<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fseanbehan.com%2Fprogramming%2Finstalling-sphinx-search-engine-on-mac-os-x-or-ld-library-not-found-for-lmysqlclient%2F&amp;layout=button_count&amp;show_faces=false&amp;width=&amp;action=like&amp;colorscheme=light&amp;send=false&amp;height=27" 
						scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:px; height:27px;" allowTransparency="true"></iframe>
				</div><div class="really_simple_share_twitter" style="width:px;">
					<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" 
						data-text="Installing Sphinx Search Engine on Mac OS X&#8230; or ld: library not found for -lmysqlclient" data-url="http://seanbehan.com/programming/installing-sphinx-search-engine-on-mac-os-x-or-ld-library-not-found-for-lmysqlclient/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>If you are trying to install Sphinx on Mac OS X, it will most likely fail. The current version of MySQL bundled with Mac OS X is not supported and therefore, it will spit out the error message because it can&#8217;t find the correct libraries.</p>
<pre class="wp-code-highlight prettyprint">
 ld: library not found for -lmysqlclient
</pre>
<p>There is a quick solution to the problem -upgrade mysql! You&#8217;ll need Mac Ports installed, available at</p>
<p>http://macports.org/</p>
<p>Run the command</p>
<pre class="wp-code-highlight prettyprint">
sudo port install mysql5
</pre>
<p>This will not destroy any existing data from your previous MySQL installation. The mac port installation will take a while, and it will appear as if it is just hanging. It&#8217;s not. It just takes a while. I clocked it at 15 minutes on a relatively fast network connection. Drink a cappuccino!</p>
<p>After you have the upgrade you&#8217;ll need to download Sphinx available at:<br />
http://sphinxsearch.com/downloads.html (latest stable) and build the Sphinx engine from source like so:</p>
<pre class="wp-code-highlight prettyprint">
wget http://sphinxsearch.com/downloads/sphinx-0.9.8.1.tar.gz
tar xzvf sphinx-0.9.8.1.tar.gz
cd  sphinx-0.9.8.1/
./configure --with-mysql-libs=/opt/local/lib/mysql5/mysql/
--with-mysql-includes=/opt/local/include/mysql5/mysql/
make
sudo make install
</pre>
<p>Much thanks to this post b/c I spent forever trying to get the bundled version of MySQL linked properly:</p>
<p>http://www.fozworks.com/2008/9/5/rake-installation-of-sphinx-in-mac-osx</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/programming/installing-sphinx-search-engine-on-mac-os-x-or-ld-library-not-found-for-lmysqlclient/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

