<?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>programming with passion &#187; Mac</title>
	<atom:link href="http://www.jasonrowland.com/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonrowland.com</link>
	<description>Learning Mac, Ruby, iPhone, BlackBerry, Android, WinMobile</description>
	<lastBuildDate>Tue, 14 Jun 2011 19:11:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Native looking Mac apps using Python &amp; wxPython</title>
		<link>http://www.jasonrowland.com/2011/04/native-looking-mac-apps-using-python-wxpython/</link>
		<comments>http://www.jasonrowland.com/2011/04/native-looking-mac-apps-using-python-wxpython/#comments</comments>
		<pubDate>Sun, 24 Apr 2011 04:59:43 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=386</guid>
		<description><![CDATA[So, I went down the road of using wxRuby, but it seems that it is a dead or dying code base. Seems most Ruby-ists are interested in Rails, not in desktop applications. I also failed in my attempt at packaging up a ruby desktop app to make it appear native. I kept running into 64bit [...]]]></description>
			<content:encoded><![CDATA[<p>So, I went down the road of using wxRuby, but it seems that it is a dead or dying code base.  Seems most Ruby-ists are interested in Rails, not in desktop applications.  I also failed in my attempt at packaging up a ruby desktop app to make it appear native.  I kept running into 64bit vs 32bit issues.</p>
<p>Anyway, after quite a few months break from my project, I decided it made more sense to develop my blenderfarmers render farm client application using Python.  Blender itself uses Python to perform all it&#8217;s scripting tasks.  This would guarantee that Python is installed on every computer that is running Blender.</p>
<p>Turns out, it doesn&#8217;t even matter if python is on the target machine because built into Python is the ability to bake the python application into an executable.  Ruby has this ability too, but I just never could get it working.  In one hour, I was able to create a shell wxPython window and &#8220;freeze&#8221; it to a native Mac package that behaves just like a native app.  Beautiful!</p>
<p>I know this is Mac centric, I need to test on Windows too, but my experience is it is harder to get working on my Mac, than my Windows virtual machine.</p>
<p>Great page that helped:  <a title="Optimizing for Mac OS X" href="http://wiki.wxpython.org/Optimizing%20for%20Mac%20OS%20X">Optimizing for Mac OS X</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2011/04/native-looking-mac-apps-using-python-wxpython/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>command line</title>
		<link>http://www.jasonrowland.com/2010/12/command-line/</link>
		<comments>http://www.jasonrowland.com/2010/12/command-line/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 20:57:58 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=370</guid>
		<description><![CDATA[One of the things that I love the most about my Mac is the command line.  I know the Mac is well known for it&#8217;s beautiful user interface, but that doesn&#8217;t stop at the graphical user interface.  It extends to the command line user interface as well.  One of the advantages of being based on [...]]]></description>
			<content:encoded><![CDATA[<p>One of the things that I love the most about my Mac is the command line.  I know the Mac is well known for it&#8217;s beautiful user interface, but that doesn&#8217;t stop at the graphical user interface.  It extends to the command line user interface as well.  One of the advantages of being based on unix is that all the command line power that is available on unix is also available on the Mac.  I know microsoft has recently upgraded their command line abilities but they can&#8217;t really compete with decades of knowledge on command line usage on unix.  There were many times that I felt a little helpless on my windows box when I wanted to do something cool.  I felt helpless because a lot of the stuff I was interested was for unix only.  I do not usually experience that on my Mac.  The unix environment is just more naturally geared for the free software world.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/12/command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac OSX Path</title>
		<link>http://www.jasonrowland.com/2010/10/mac-osx-path/</link>
		<comments>http://www.jasonrowland.com/2010/10/mac-osx-path/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 18:40:35 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=361</guid>
		<description><![CDATA[Great post on Mac Paths http://www.semioticpixels.com/2010/01/path-settings-on-mac-snow-leopard/]]></description>
			<content:encoded><![CDATA[<p>Great post on Mac Paths</p>
<p><a href="http://www.semioticpixels.com/2010/01/path-settings-on-mac-snow-leopard/">http://www.semioticpixels.com/2010/01/path-settings-on-mac-snow-leopard/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/10/mac-osx-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compiling wxruby on Snow Leopard</title>
		<link>http://www.jasonrowland.com/2010/09/compiling-wxruby-on-snow-leopard/</link>
		<comments>http://www.jasonrowland.com/2010/09/compiling-wxruby-on-snow-leopard/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 16:03:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=335</guid>
		<description><![CDATA[I am trying to compile wxruby on Snow Leopard.  I am running into issues because wxwidgets 2.8 which wxruby 2.0.1 is based upon only compiles in 32bit mode.  I can compile wxwidgets 2.8.11 using 32 bit mode.  When I try to compile wxruby, I get errors.  I&#8217;m not quite sure what I need to do [...]]]></description>
			<content:encoded><![CDATA[<p>I am trying to compile wxruby on Snow Leopard.  I am running into issues because wxwidgets 2.8 which wxruby 2.0.1 is based upon only compiles in 32bit mode.  I can compile wxwidgets 2.8.11 using 32 bit mode.  When I try to compile wxruby, I get errors.  I&#8217;m not quite sure what I need to do to resolve this yet.  Once (If) I do, I&#8217;ll update this post.</p>
<h2>compile wxMac</h2>
<pre># Download, compile, install the 2.8.11 version of wxMac
mkdir osx-build
cd osx-build
arch_flags="-arch i386"
../configure  CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags" --enable-universal_binary --with-macosx-sdk=/Developer/SDKs/MacOSX10.4u.sdk --with-macosx-version-min=10.4 --disable-shared --enable-unicode --enable-static --disable-debug --enable-catch_segvs --enable-graphics_ctx --enable-mediactrl --with-opengl --with-libjpeg=builtin --with-libpng=builtin --with-libtiff=builtin --with-expat=builtin --enable-gui --enable-xrc --enable-mdi --enable-gif --enable-pcx --enable-iff --enable-pnm --enable-xpm --with-macosx-sdk=/Developer/SDKs/MacOSX10.6.sdk --with-macosx-version-min=10.6
make
sudo make install</pre>
<h2>compile SWIG</h2>
<pre># Download, compile, install SWIG 1.3.38
cd /usr/local/swig-1.3.38
sudo ./configure --disable-ccache #--disable-ccache is because I do not have yodl2man installed
sudo make
sudo make install</pre>
<h2>compile wxruby</h2>
<pre># Downloaded the trunk versin of wxRuby
svn checkout svn://rubyforge.org/var/svn/wxruby
cd wxruby/trunk
rake</pre>
<h2>Error!</h2>
<pre># ---------------- ERROR
I get the following error:
lipo: can't figure out the architecture type of: /var/folders/pI/pIyyNf1MGiaa6DODFaul2U+++TI/-Tmp-//ccmdge2D.out
lipo: can't open input file: /var/folders/pI/pIyyNf1MGiaa6DODFaul2U+++TI/-Tmp-//ccsraXTA.out (No such file or directory)
rake aborted!
Command failed with status (1): [g++ -c  -I/usr/local/lib/wx/include/mac-un...]</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/09/compiling-wxruby-on-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mac Application Bundle</title>
		<link>http://www.jasonrowland.com/2010/08/mac-application-bundle/</link>
		<comments>http://www.jasonrowland.com/2010/08/mac-application-bundle/#comments</comments>
		<pubDate>Wed, 25 Aug 2010 19:35:56 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=320</guid>
		<description><![CDATA[So, I packaged up my native looking Mac application in my own Application Bundle.  It was super simple to do. An application bundle is nothing more than a folder that has been renamed with the extension &#8220;.app&#8221; and conforms to a certain directory structure.  The directory structure looks like this: /Contents/ /Contents/Info.plist /Contents/MacOS/ /Contents/Resources/ /Contents/youricon.icns [...]]]></description>
			<content:encoded><![CDATA[<p>So, I packaged up my native looking Mac application in my own Application Bundle.  It was super simple to do.</p>
<p>An application bundle is nothing more than a folder that has been renamed with the extension &#8220;.app&#8221; and conforms to a certain directory structure.  The directory structure looks like this:</p>
<pre>/Contents/
/Contents/Info.plist
/Contents/MacOS/
/Contents/Resources/
/Contents/youricon.icns</pre>
<p>The important piece is Info.plist.  It tells the system what to call your bundle and where the executable is located.</p>
<pre>
&lt;plist version="1.0"&gt;
&lt;dict&gt;
  &lt;key&gt;CFBundleExecutable&lt;/key&gt;
  &lt;string&gt;test.rb&lt;/string&gt;
  &lt;key&gt;CFBundleGetInfoString&lt;/key&gt;
  &lt;string&gt;Test&lt;/string&gt;
  &lt;key&gt;CFBundleIconFile&lt;/key&gt;
  &lt;string&gt;test.icns&lt;/string&gt;
  &lt;key&gt;CFBundleIdentifier&lt;/key&gt;
  &lt;string&gt;test&lt;/string&gt;
  &lt;key&gt;CFBundleName&lt;/key&gt;
  &lt;string&gt;Test Name&lt;/string&gt;
&lt;/dict&gt;
&lt;/plist&gt;</pre>
<p>Your application should go in MacOS.  I put my ruby script in the MacOS directory and it could not longer load my resources that were right next to it in that directory.  If I hard code the path to be an absolute path based on where the app is bundled (/Users/jasonxrowland/myapp.app/Contents/MacOS) it works.  I have a feeling, I need to call a Mac specific API to get the resource bundle path.  I&#8217;ll figure that out later&#8230;</p>
<p>I created the icon using the Icon Composer application included with the Mac.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/08/mac-application-bundle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Native Looking Mac App with Ruby</title>
		<link>http://www.jasonrowland.com/2010/08/native-looking-mac-app-with-ruby/</link>
		<comments>http://www.jasonrowland.com/2010/08/native-looking-mac-app-with-ruby/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 03:58:51 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=315</guid>
		<description><![CDATA[Ruby is really popular to make websites because of Rails, but I want to write a native looking application using Ruby.  I&#8217;ve discovered wxruby which is a really cool cross platform GUI library for use with Ruby.  It is built on wxWidgets which is a C++ library for making cross platform GUIs that appear native because [...]]]></description>
			<content:encoded><![CDATA[<p>Ruby is really popular to make websites because of Rails, but I want to write a native looking application using Ruby.  I&#8217;ve discovered <a title="wxruby" href="http://wxruby.rubyforge.org/wiki/wiki.pl">wxruby</a> which is a really cool cross platform GUI library for use with Ruby.  It is built on <a title="wxWidgets" href="http://www.wxwidgets.org/">wxWidgets</a> which is a C++ library for making cross platform GUIs that appear native because they are built on the underlying native libraries of each platform (linux, OSX, and Windows).  Right now, I&#8217;m interested in Mac, but I plan on testing this on Windows and Linux too.</p>
<h2>Installation</h2>
<h3><a href="http://www.wxwidgets.org/">wxWidgets</a></h3>
<p>You have to download the source and compile it yourself for Snow Leopard.  This means, you need to install the developer toolset that comes with your Snow Leopard DVD.  Just install everything, hard drives are cheap.  I don&#8217;t know if you have to actually run &#8220;./configure&#8221;, &#8220;make&#8221; or not.  My guess is you don&#8217;t, but I did.  Snow Leopard has some special challenges and you have to do the following:</p>
<pre>$ set arch_flags="-arch x86_64"
$ ./configure CFLAGS="$arch_flags" CXXFLAGS="$arch_flags" CPPFLAGS="$arch_flags" LDFLAGS="$arch_flags" OBJCFLAGS="$arch_flags" OBJCXXFLAGS="$arch_flags"
$ make</pre>
<h3><a href="http://www.anthemion.co.uk/dialogblocks/">DialogBlocks</a></h3>
<p>After you download, Open the DMG image and copy the contents to wherever you want.  I copied mine to /Developer/Applications.  When you run this for the first time, it asks you to select the location of wxWidgets.</p>
<h3><a href="http://wxruby.rubyforge.org/wiki/wiki.pl">wxruby</a></h3>
<p>The latest stable version is 2.0.1.  If you try to install wxruby through gems, it will install 1.9.3.  I don&#8217;t know what&#8217;s different between the two, but 2.0.1 is a year old so I want to use it.</p>
<h3>wx_sugar</h3>
<pre>$ gem install wx_sugar</pre>
<h3>Ruby</h3>
<p>You should already have a version of Ruby installed.  I list it here because the latest version as I write this is 1.9.2.  Unfortunately, one of the tools we will use to generate ruby classes does not support 1.9.2.  If you really want to use 1.9.2, you can follow the directions <a href="http://www.ruby-forum.com/topic/199622">here</a>.  I haven&#8217;t tried it so I don&#8217;t know if it will work or not.  I just switched to mine to the system version &#8220;rvm  &#8211;default system&#8221;</p>
<h2>Making a simple app</h2>
<p>There is a <a href="http://wxruby.rubyforge.org/wiki/wiki.pl?UsingXRCise">great tutoria</a>l on the wxruby website.  It shows you how all these tools work together to create an application. I created my frame using DialogBlocks.  I created my ruby file using xrcise.  I completed the tutorial.  Now if you forget that wxruby is 32bit only and you just try to run the app, you may see an error like this:</p>
<pre>/Library/Ruby/Gems/1.8/gems/wxruby-2.0.1-universal-darwin-9/lib/wxruby2.bundle: dlopen(/Library/Ruby/Gems/1.8/gems/wxruby-2.0.1-universal-darwin-9/lib/wxruby2.bundle, 9): no suitable image found.  Did find: (LoadError)
/Library/Ruby/Gems/1.8/gems/wxruby-2.0.1-universal-darwin-9/lib/wxruby2.bundle: no matching architecture in universal wrapper - /Library/Ruby/Gems/1.8/gems/wxruby-2.0.1-universal-darwin-9/lib/wxruby2.bundle
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Library/Ruby/Gems/1.8/gems/wxruby-2.0.1-universal-darwin-9/lib/wx.rb:12
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rubygems/custom_require.rb:36:in `require'
from main.rb:3</pre>
<p>To run the app, you need to run ruby in 32 bit mode like this:</p>
<pre>env arch -i386 ruby -rubygems main.rb</pre>
<p>Here is the screen shot of my app running on a mac.</p>
<p><a href="http://www.jasonrowland.com/wp-content/uploads/2010/08/wxruby.png"><img class="alignleft size-full wp-image-318" src="http://www.jasonrowland.com/wp-content/uploads/2010/08/wxruby.png" alt="" width="720" height="582" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/08/native-looking-mac-app-with-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taking screen shots with Mac OSX</title>
		<link>http://www.jasonrowland.com/2010/02/taking-screen-shots-with-mac-osx/</link>
		<comments>http://www.jasonrowland.com/2010/02/taking-screen-shots-with-mac-osx/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 20:10:03 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=293</guid>
		<description><![CDATA[I seem to always forget these short cuts even though i use them frequently. With windows, it is simply &#8220;print screen&#8221; button to capture the desktop and alt-&#8221;print screen&#8221; to capture the active window.  This puts the image in the clip board. The apple commands for capturing the screen aren&#8217;t as intuitive as the Windows [...]]]></description>
			<content:encoded><![CDATA[<p>I seem to always forget these short cuts even though i use them frequently. With windows, it is simply &#8220;print screen&#8221; button to capture the desktop and alt-&#8221;print screen&#8221; to capture the active window.  This puts the image in the clip board.</p>
<p>The apple commands for capturing the screen aren&#8217;t as intuitive as the Windows version.</p>
<p>To capture the desktop, <strong>Command-Shift-3</strong></p>
<p>To capture a portion of the screen, <strong>Command-Shift-4</strong>.</p>
<p>To capture a specific windows, <strong>Command-Shift-4</strong> followed by <strong>space</strong> bar.</p>
<p>The Mac version will create PNG files on the desktop with these commands.  If you hold down the <strong>control</strong> key while pressing these combinations, it will put the image in the clipboard.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/02/taking-screen-shots-with-mac-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simulating a slow network on a Mac</title>
		<link>http://www.jasonrowland.com/2010/02/simulating-a-slow-network-on-a-mac/</link>
		<comments>http://www.jasonrowland.com/2010/02/simulating-a-slow-network-on-a-mac/#comments</comments>
		<pubDate>Fri, 12 Feb 2010 23:52:08 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=268</guid>
		<description><![CDATA[I ran across these very handy commands to simulate a connection of only 4kbps.  This is helpful when developing mobile applications in particular because some cell connections are horrible. sudo ipfw pipe 1 config bw 4KByte/s sudo ipfw add 100 pipe 1 tcp from any to me 3000 There are several interesting parts to these [...]]]></description>
			<content:encoded><![CDATA[<p>I ran across these very handy commands to simulate a connection of only 4kbps.  This is helpful when developing mobile applications in particular because some cell connections are horrible.</p>
<pre>sudo ipfw pipe 1 config bw 4KByte/s
sudo ipfw add 100 pipe 1 tcp from any to me 3000</pre>
<p>There are several interesting parts to these commands.</p>
<p>The 4KByte/s which can be whatever speed you want.  This is the bandwidth, measured in [K|M]{bit/s|Byte/s}.</p>
<p>The other interesting part is 3000.  This is the port that will be slowed.  Port 3000 is the default port on which Ruby on Rails listens.  If you are doing Java, you would probably want to use 8080.</p>
<p>The 100 is the rule number.  Useful when it comes time to delete this rule.</p>
<p>To clear out this pipe, simply type the following when finished:</p>
<pre>sudo ipfw delete 100</pre>
<p>To clear all custom rules, you could type:</p>
<pre>sudo ipfw flush</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2010/02/simulating-a-slow-network-on-a-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change your Terminal prompt on Mac</title>
		<link>http://www.jasonrowland.com/2009/12/change-your-terminal-prompt-on-mac/</link>
		<comments>http://www.jasonrowland.com/2009/12/change-your-terminal-prompt-on-mac/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 20:49:52 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=235</guid>
		<description><![CDATA[I hate the default prompt for the Terminal in Mac.  It usually takes up most of my terminal screen real estate.  It shows me my computer name, my current directory, and who the logged in user is.  I never need to know my computer name.  I rarely need to know who the username is.  If [...]]]></description>
			<content:encoded><![CDATA[<p>I hate the default prompt for the Terminal in Mac.  It usually takes up most of my terminal screen real estate.  It shows me my computer name, my current directory, and who the logged in user is.  I never need to know my computer name.  I rarely need to know who the username is.  If I did &#8220;whoami&#8221; will tell me.  I do like to see my current directory though.</p>
<p>create/edit the .profile file.  Add the following:</p>
<pre>export PS1="\W$"</pre>
<p>Source it by typing</p>
<pre>. .profile</pre>
<p>This will create a prompt with the current directory followed by the $.  Yay.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2009/12/change-your-terminal-prompt-on-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uninstall MySQL on Mac</title>
		<link>http://www.jasonrowland.com/2009/12/uninstall-mysql-on-mac/</link>
		<comments>http://www.jasonrowland.com/2009/12/uninstall-mysql-on-mac/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 22:29:20 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.jasonrowland.com/?p=230</guid>
		<description><![CDATA[Somehow, I either forgot my password, or I did something to mess up my MySQL instance.  it is a development machine, so I don&#8217;t really care about the databases on it.  I just wanted to remove it completely from my machine.  I actually had two copies of mysql installed.  One from Mac Ports and the [...]]]></description>
			<content:encoded><![CDATA[<p>Somehow, I either forgot my password, or I did something to mess up my MySQL instance.  it is a development machine, so I don&#8217;t really care about the databases on it.  I just wanted to remove it completely from my machine.  I actually had two copies of mysql installed.  One from Mac Ports and the other was the package directly from MySQL for the Mac.<br />
I used the following commands to completely remove mysql from my system.</p>
<pre>sudo port uninstall mysql5-server
sudo port uninstall mysql5</pre>
<pre>sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*</pre>
<p>edit /etc/hostconfig and remove the line MYSQLCOM=-YES-</p>
<pre>rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*</pre>
<p>Thanks to <a href="http://akrabat.com/computing/uninstalling-mysql-on-mac-os-x-leopard/">Rob Allen</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.jasonrowland.com/2009/12/uninstall-mysql-on-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

