<?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/category/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>Installing MatPlotLib on OS X for Python Version 2.6.1 with PIP and VirtualEnv</title>
		<link>http://seanbehan.com/mac-os-x/installing-matplotlib-on-os-x-for-python-version-2-6-1/</link>
		<comments>http://seanbehan.com/mac-os-x/installing-matplotlib-on-os-x-for-python-version-2-6-1/#comments</comments>
		<pubDate>Sat, 23 Apr 2011 21:56:03 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[environment]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[matplotlib]]></category>
		<category><![CDATA[package management]]></category>
		<category><![CDATA[pip]]></category>
		<category><![CDATA[virtualenv]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1285</guid>
		<description><![CDATA[If you thought you had installed matplotlib only to find this File "/Library/Python/2.6/site-packages/matplotlib-0.91.1-py2.6-macosx-10.6-universal.egg/matplotlib/numerix/__init__.py", line 166, in __import__('ma', g, l) File "/Library/Python/2.6/site-packages/matplotlib-0.91.1-py2.6-macosx-10.6-universal.egg/matplotlib/numerix/ma/__init__.py", line 16, in from numpy.core.ma import * ImportError: No module named ma It is because the package being installed is version 0.91 and you need at least version 1.0 . If it&#8217;s already installed [...]]]></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%2Finstalling-matplotlib-on-os-x-for-python-version-2-6-1%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 MatPlotLib on OS X for Python Version 2.6.1 with PIP and VirtualEnv" data-url="http://seanbehan.com/mac-os-x/installing-matplotlib-on-os-x-for-python-version-2-6-1/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>If you thought you had installed matplotlib only to find this<br />
<code><br />
File "/Library/Python/2.6/site-packages/matplotlib-0.91.1-py2.6-macosx-10.6-universal.egg/matplotlib/numerix/__init__.py", line 166, in <module><br />
    __import__('ma', g, l)<br />
  File "/Library/Python/2.6/site-packages/matplotlib-0.91.1-py2.6-macosx-10.6-universal.egg/matplotlib/numerix/ma/__init__.py", line 16, in <module><br />
    from numpy.core.ma import *<br />
ImportError: No module named ma<br />
</code><br />
It is because the package being installed is version 0.91 and you need at least version 1.0 .</p>
<p>If it&#8217;s already installed pass pip the upgrade flag and specify the package location with the &#8220;-f&#8221; flag<br />
<code><br />
pip install --upgrade -f http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz matplotlib<br />
</code></p>
<p>If not installed<br />
<code><br />
pip install -f http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz matplotlib<br />
</code></p>
<p>Resources: </p>
<p>http://stackoverflow.com/questions/3555551/why-does-pip-install-matplotlib-version-0-91-1-when-pypi-shows-version-1-0-0</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/mac-os-x/installing-matplotlib-on-os-x-for-python-version-2-6-1/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing and Using Rvm on Mac OS X, Creating Gemsets and Reverting to Original Environment</title>
		<link>http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/</link>
		<comments>http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/#comments</comments>
		<pubDate>Mon, 13 Sep 2010 17:35:23 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[mac os x]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[rvm]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[version management]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=1187</guid>
		<description><![CDATA[What is RVM and why should you use it? RVM is a Ruby interpreter, version management tool. In short, it enables you to switch between different versions and releases of Ruby (for instance, version 1.8.6, 1.8.7, jruby 1.9.2, ruby enterprise edition) on the same machine, while associating different gems with each version of the ruby [...]]]></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%2Finstalling-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment%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 and Using Rvm on Mac OS X, Creating Gemsets and Reverting to Original Environment" data-url="http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>What is RVM and why should you use it? RVM is a Ruby interpreter, version management tool. In short, it enables you to switch between different versions and releases of Ruby (for instance, version 1.8.6, 1.8.7, jruby 1.9.2, ruby enterprise edition) on the same machine, while associating different gems with each version of the ruby interpreter. This is super useful and awesome. If you want to play with Rails 3 and Ruby 1.9.1, for 5 minutes, and then want to switch back to your production apps, which are running on Rails 2.3.5 and Ruby 1.8.7, you can do so with a single command from the terminal. With RVM this is a fairly simple process so there is no reason not to install it. You can also revert back to your system settings (not using RVM) with a single command. After all Rails is just a gem, so you can easily create and manage different RVM &#8220;gemsets&#8221;, (sets of different gems), for the different versions of Ruby (rubies as RVM refers to them) you have installed.      </p>
<p>Installing RVM  </p>
<pre class="wp-code-highlight prettyprint">
bash &lt; &lt;(curl -s https://rvm.beginrescueend.com/install/rvm)
</pre>
<p>Next you have to add rvm to your bash profile</p>
<pre class="wp-code-highlight prettyprint">
# place in ~/.bash_profile as the very last line
[[ -s &quot;$HOME/.rvm/scripts/rvm&quot; ]] &amp;&amp; . &quot;$HOME/.rvm/scripts/rvm&quot;
</pre>
<p>To check everything went well</p>
<pre class="wp-code-highlight prettyprint">
type rvm | head -n1
</pre>
<p>Should tell you &#8220;rvm is a function&#8221; </p>
<p>How to add ruby, pass it the version to install </p>
<pre class="wp-code-highlight prettyprint">
rvm install 1.8.7
</pre>
<p>*The current terminal session will load this environment. New sessions will not. To use a version of ruby and set it as the default, pass it the &#8211;default option</p>
<pre class="wp-code-highlight prettyprint">
rvm use 1.8.7 --default
</pre>
<p>Next create a gemset, which will make available different gems for different versions</p>
<pre class="wp-code-highlight prettyprint">
rvm gemset create rails_2_3_5
</pre>
<p>When you run &#8220;gem list&#8221;, you should see nothing!</p>
<pre class="wp-code-highlight prettyprint">
gem install rails -v=2.3.5
</pre>
<p>Set a default rvm and default gemset, specify which gemset with the @ sign and include the &#8211;default option</p>
<pre class="wp-code-highlight prettyprint">
rvm use 1.8.7@rails_2_3_5 --default
</pre>
<pre class="wp-code-highlight prettyprint">
which gem
gem list
ruby --version
rails --version
</pre>
<p>And to get back to where you started and revert to using your original ruby setup </p>
<pre class="wp-code-highlight prettyprint">
rvm system
</pre>
<p>For upgrading your version of RVM check out this post I wrote <a href="http://seanbehan.com/ruby/how-to-upgrade-rvm-on-mac-os-x/">http://seanbehan.com/ruby/how-to-upgrade-rvm-on-mac-os-x/</a></p>
<p>Finally, you can create a .rvmrc file and put it in any directory and when you cd into that directory the environment specified in the file will be loaded automatically. This way you don&#8217;t have to remember the version and gemsets and type them into the console. All you have to do is put the ruby version and gemset name in the file like so</p>
<pre class="wp-code-highlight prettyprint">ruby1.8.7@rails2.3.5</pre>
<p>You&#8217;ll be prompted to trust the .rvmrc file the first time, type &#8220;y&#8221; for yes. Also, subdirectories will inherit this .rvmrc so you can just put it in the parent directory like</p>
<pre class="wp-code-highlight prettyprint">
rails2/
     .rvmrc
     app1
     app2
rails3/
     .rvmrc
     app1
     app2
</pre>
<p>And both app1 and app2 will use the .rvmrc environment while your rails3 directory apps will load the environment in its directory!</p>
<p>More information available here:<br />
<a href="http://rvm.beginrescueend.com/rvm/install/">http://rvm.beginrescueend.com/rvm/install/</a><br />
<a href="http://www.stjhimy.com/posts/4">http://www.stjhimy.com/posts/4</a><br />
<a href="http://eddorre.com/posts/installing-rails-3-beta-4-using-rvm">http://eddorre.com/posts/installing-rails-3-beta-4-using-rvm</a></p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/mac-os-x/installing-and-using-rvm-on-mac-os-x-creating-gemsets-and-reverting-to-original-environment/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Updating Your Twitter Status with cURL and a Bash Function</title>
		<link>http://seanbehan.com/linux/updating-your-twitter-status-with-curl-and-a-bash-function/</link>
		<comments>http://seanbehan.com/linux/updating-your-twitter-status-with-curl-and-a-bash-function/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 01:34:50 +0000</pubDate>
		<dc:creator>bseanvt</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://seanbehan.com/?p=673</guid>
		<description><![CDATA[I&#8217;m usually at the command line so I wrote a little a bash function so that i can type tweet this is really neat but kind of pointless and it will update my twitter status! some characters trip it up but in general it&#8217;s useful for most of my tweets. The tweet function just spits [...]]]></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%2Flinux%2Fupdating-your-twitter-status-with-curl-and-a-bash-function%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="Updating Your Twitter Status with cURL and a Bash Function" data-url="http://seanbehan.com/linux/updating-your-twitter-status-with-curl-and-a-bash-function/" 
						data-via="" ></a> 
				</div></div>
		<div style="clear:both;"></div><p>I&#8217;m usually at the command line so I wrote a little a bash function so that i can type</p>
<pre class="wp-code-highlight prettyprint">
tweet this is really neat but kind of pointless
</pre>
<p>and it will update my twitter status! some characters trip it up but in general it&#8217;s useful for most of my tweets. The tweet function just spits out the arguments passed to it for the status parameter for the API call to twitter.</p>
<p>Add the following to the .bash_profile file and reload the terminal (don&#8217;t forget to add your email and pwd where appropriate).</p>
<pre class="wp-code-highlight prettyprint">
tweet() {
   curl -u your_twitter_email_addr:your_twitter_passwd -d status=&quot;$*&quot; http://twitter.com/statuses/update.xml
 }
 </pre>
<p>*** Twitter still uses http basic authentication for their API. However, they are moving away from it in favor of oAuth. So I&#8217;m not sure how long this fun will last :{</p>
]]></content:encoded>
			<wfw:commentRss>http://seanbehan.com/linux/updating-your-twitter-status-with-curl-and-a-bash-function/feed/</wfw:commentRss>
		<slash:comments>1</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>
	</channel>
</rss>

