<?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>The Lucid &#187; osx</title>
	<atom:link href="http://thelucid.com/tag/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://thelucid.com</link>
	<description>The Lightweight Ramblings of Jamie Hill</description>
	<lastBuildDate>Sun, 11 Mar 2012 19:52:46 +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>Naming your Terminal tabs in OSX Lion</title>
		<link>http://thelucid.com/2012/01/04/naming-your-terminal-tabs-in-osx-lion/</link>
		<comments>http://thelucid.com/2012/01/04/naming-your-terminal-tabs-in-osx-lion/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 17:13:43 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Mac / OS X]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://thelucid.com/?p=773</guid>
		<description><![CDATA[If you find yourself in the Terminal app with a bunch of tabs open, the default name of &#8220;bash&#8221; isn&#8217;t very useful when navigating between them. You can change the tab name via the UI by right clicking the tab, then clicking &#8220;Inspect Tab&#8221; and changing the window or tab names but this is somewhat [...]]]></description>
			<content:encoded><![CDATA[<p>If you find yourself in the Terminal app with a bunch of tabs open, the default name of &#8220;bash&#8221; isn&#8217;t very useful when navigating between them. You can change the tab name via the UI by right clicking the tab, then clicking &#8220;Inspect Tab&#8221; and changing the window or tab names but this is somewhat long winded.</p>
<p>Below are a couple of bash functions I have in my &#8220;.profile&#8221; file to make this easier:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> tabname <span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;\e]1;$1\a&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> winname <span style="color: #7a0874; font-weight: bold;">&#123;</span>
  <span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;\e]2;$1\a&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></div></div>

<p>Now you can easily name your tabs or windows with the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Rename tab</span>
tabname <span style="color: #ff0000;">&quot;Funky Tab&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Rename window</span>
winname <span style="color: #ff0000;">&quot;Funky Window&quot;</span></pre></div></div>

<p>Thanks to <a href="http://superuser.com/questions/223308/name-terminal-tabs#answer-223314" rel="external">Bubu and Chris Page on the SuperUser site</a> for the right codes.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelucid.com/2012/01/04/naming-your-terminal-tabs-in-osx-lion/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Using Pow when developing Rails applications on OSX</title>
		<link>http://thelucid.com/2012/01/01/using-pow-when-developing-rails-applications-on-osx/</link>
		<comments>http://thelucid.com/2012/01/01/using-pow-when-developing-rails-applications-on-osx/#comments</comments>
		<pubDate>Sun, 01 Jan 2012 15:17:03 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mac / OS X]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[pow]]></category>
		<category><![CDATA[rack]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://thelucid.com/?p=768</guid>
		<description><![CDATA[I heard about Pow a while ago which is &#8220;a zero-config Rack server for Mac OS X&#8221; but never got around to giving it a go. I&#8217;ve just installed it and can instantly see that it is going to make developing with Rails (or any Rack app) a whole lot nicer, especially when dealing with [...]]]></description>
			<content:encoded><![CDATA[<p>I heard about <a href="http://pow.cx" rel="external">Pow</a> a while ago which is &#8220;a zero-config Rack server for Mac OS X&#8221; but never got around to giving it a go. I&#8217;ve just installed it and can instantly see that it is going to make developing with Rails (or any Rack app) a whole lot nicer, especially when dealing with apps that use subdomain account keys.</p>
<p>If you&#8217;ve not tried it yet, head over to <a href="http://pow.cx" rel="external">the Pow website</a> and get it installed with:</p>
<p><code lang="bash">curl get.pow.cx | sh</code></p>
<p>Happy new year everyone!</p>
]]></content:encoded>
			<wfw:commentRss>http://thelucid.com/2012/01/01/using-pow-when-developing-rails-applications-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TextMate refusing to launch in Lion</title>
		<link>http://thelucid.com/2011/11/24/textmate-refusing-to-launch-in-lion/</link>
		<comments>http://thelucid.com/2011/11/24/textmate-refusing-to-launch-in-lion/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 16:57:53 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mac / OS X]]></category>
		<category><![CDATA[TextMate]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://thelucid.com/?p=765</guid>
		<description><![CDATA[On occasion under OSX Lion, TextMate refuses to launch. I&#8217;ve found that simply deleting it&#8217;s pid file seems to get things working again, just open Terminal and type: rm ~/Library/Application\ Support/TextMate/TextMate.pid Hope this safes someone some puzzled frowning time.]]></description>
			<content:encoded><![CDATA[<p>On occasion under OSX Lion, TextMate refuses to launch. I&#8217;ve found that simply deleting it&#8217;s pid file seems to get things working again, just open Terminal and type:</p>
<p><code>rm ~/Library/Application\ Support/TextMate/TextMate.pid</code></p>
<p>Hope this safes someone some puzzled frowning time.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelucid.com/2011/11/24/textmate-refusing-to-launch-in-lion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ruby Causing MacBook Pro to Run Hot</title>
		<link>http://thelucid.com/2011/01/06/ruby-causing-macbook-pro-to-run-hot/</link>
		<comments>http://thelucid.com/2011/01/06/ruby-causing-macbook-pro-to-run-hot/#comments</comments>
		<pubDate>Thu, 06 Jan 2011 08:24:14 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mac / OS X]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[fan]]></category>
		<category><![CDATA[hot]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>

		<guid isPermaLink="false">http://thelucid.com/?p=704</guid>
		<description><![CDATA[The past couple of days the fan on my MacBook Pro has been constantly on and battery usage down to around a third. Launching Activity Monitor, it showed 3 Ruby processes all at 100% CPU usage. The solution was to force quit these processes and within seconds, the fan slowed up and the battery indicator [...]]]></description>
			<content:encoded><![CDATA[<p>The past couple of days the fan on my MacBook Pro has been constantly on and battery usage down to around a third. Launching Activity Monitor, it showed 3 Ruby processes all at 100% CPU usage. The solution was to force quit these processes and within seconds, the fan slowed up and the battery indicator went up. Force quitting these processes didn&#8217;t affect anything I was doing with Rails or IRB so I guess they were just stray processes.</p>
<p>If anyone else gets the same problem, just launch Activity Monitor which lives in the /Applications/Utilities folder, click the CPU tab if not already selected, select processes with a process name of &#8220;ruby&#8221;, click &#8220;Quit Process&#8221; and then select &#8220;Force Quit&#8221;. Just selecting &#8220;Quit&#8221; wouldn&#8217;t work for me hence the &#8220;Force Quit&#8221;.</p>
<p>I hope this saves someone else the head-scratching as to why their Mac is running hot.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelucid.com/2011/01/06/ruby-causing-macbook-pro-to-run-hot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Divvy &#8211; A great way to keep your windows organised in OSX</title>
		<link>http://thelucid.com/2010/09/11/divvy-a-great-way-to-keep-your-windows-organised-in-osx/</link>
		<comments>http://thelucid.com/2010/09/11/divvy-a-great-way-to-keep-your-windows-organised-in-osx/#comments</comments>
		<pubDate>Sat, 11 Sep 2010 11:04:52 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mac / OS X]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[snapping]]></category>

		<guid isPermaLink="false">http://thelucid.com/?p=634</guid>
		<description><![CDATA[I&#8217;ve just come across a great little app for organising windows in OSX. It takes a different approach to your usual snapping system by giving you a grid via a HUD (heads up display) to select how much area you want a window take up. You can find it here: www.mizage.com/divvy/.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just come across a great little app for organising windows in OSX. It takes a different approach to your usual snapping system by giving you a grid via a HUD (heads up display) to select how much area you want a window take up.</p>
<p><a href="http://www.mizage.com/divvy/"><img src="http://thelucid.com/files/divvy.png" alt="A window management app for OSX" title="Divvy - OSX" width="258" height="233" class="center" /></a></p>
<p>You can find it here: <a href="http://www.mizage.com/divvy/">www.mizage.com/divvy/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://thelucid.com/2010/09/11/divvy-a-great-way-to-keep-your-windows-organised-in-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X Tiger &#8211; The Easy Way</title>
		<link>http://thelucid.com/2007/03/01/building-ruby-rails-subversion-mongrel-and-mysql-on-mac-os-x-the-easy-way/</link>
		<comments>http://thelucid.com/2007/03/01/building-ruby-rails-subversion-mongrel-and-mysql-on-mac-os-x-the-easy-way/#comments</comments>
		<pubDate>Fri, 02 Mar 2007 01:40:00 +0000</pubDate>
		<dc:creator>Jamie</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Mac / OS X]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[tools]]></category>

		<guid isPermaLink="false">http://861ea501-9402-46b4-8688-399c1f781438</guid>
		<description><![CDATA[&#8220;Dan Benjamin&#8221;:http://hivelogic.com/authors/danbenjamin recently updated his very helpful article entitled &#8220;&#8221;Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X&#8221;:http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx&#8221;. I don&#8217;t know about anyone else but compiling software is not one of my favourite pastimes. As I&#8217;ve been chopping and changing macs lately I thought I&#8217;d write a couple of shell scripts to get [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;Dan Benjamin&#8221;:http://hivelogic.com/authors/danbenjamin recently updated his very helpful article entitled &#8220;&#8221;Building Ruby, Rails, Subversion, Mongrel, and MySQL on Mac OS X&#8221;:http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx&#8221;.</p>
<p>I don&#8217;t know about anyone else but compiling software is not one of my favourite pastimes. As I&#8217;ve been chopping and changing macs lately I thought I&#8217;d write a couple of shell scripts to get things right before running anything on my nice new (freshly installed) MacBook Pro.</p>
<p>h3. Prerequisites</p>
<p>There are a couple of prerequisites in addition to what&#8217;s on Dan&#8217;s &#8220;&#8221;What&#8217;s Needed&#8221;:http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx&#8221; list before running &#8220;the scripts&#8221;:http://svn.soniciq.com/public/rails/tools/osx_development_setup/. The first is that you must have MySQL installed as referenced in &#8220;Dan&#8217;s article&#8221;:http://hivelogic.com/narrative/articles/ruby-rails-mongrel-mysql-osx, and the second being the following:</p>
<p>Ensure you have the following line at the end of your <code>~/.bash_login</code> file:</p>
<pre>
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
</pre>
<p>You can add this by typing <code>nano ~/.bash_login</code> then copy and paste the above line into the end of the file. Once this is done, hit ctrl-x to exit, answering &#8216;y&#8217; to &#8220;do you want to save changes&#8221; prompt.</p>
<p>h3. The scripts</p>
<p>There are two scripts, &#8220;01_osx_rails.sh&#8221;:http://svn.soniciq.com/public/rails/tools/osx_development_setup/01_osx_rails.sh and &#8220;02_osx_image_tools.sh&#8221;:http://svn.soniciq.com/public/rails/tools/osx_development_setup/02_osx_image_tools.sh and the following will explain how to use them.</p>
<p>h3. Creating your development environment</p>
<p>The first script will install everything in Dan&#8217;s article along with the following gems that I use frequently:<br />
* rails version 1.1.6 for support of older rails apps<br />
* bluecloth<br />
* redcloth<br />
* sqlite3-ruby<br />
* ferret<br />
* ZenTest<br />
* redgreen</p>
<p>Right&#8230; here we go:</p>
<p><small>(please read &#8220;the licence&#8221;:http://svn.soniciq.com/public/rails/tools/osx_development_setup/MIT-LICENCE before running these scripts as although they have been tested on a clean install of Tiger, I can&#8217;t take any responsibility if something breaks)</small><br />
# Download &#8220;01_osx_rails.sh&#8221;:http://svn.soniciq.com/public/rails/tools/osx_development_setup/01_osx_rails.sh to your desktop<br />
# If you don&#8217;t wish to install all of these gems then open the file in a text editor and comment out the relevant lines with a hash.<br />
# Open a new terminal window and type the following:<code>
<pre>
cd ~/Desktop
sh 01_osx_rails.sh
</pre>
<p></code><br />
# Go make a cup of tea and watch all the pretty text scroll before your eyes.</p>
<p>That&#8217;s it, you should now have a fully working development environment.</p>
<p>h3. Image tools</p>
<p>I use a couple of image tools on my system, GD and ImageMagick (with RMagick). If you wish to install these tools and the related libraries, run the following:</p>
<p><small>(This script hasn&#8217;t been tested as much as the previous one so use at your own risk. If anyone has any bug fixes then please post a comment)</small></p>
<p><code>
<pre>
cd ~/Desktop
sh 02_osx_image_tools.sh
</pre>
<p></code></p>
<p>h3. We&#8217;re done</p>
<p>Please let me know if I&#8217;ve missed anything obvious.</p>
<p>I hope this helps anyone else out there with Compilaphobia!</p>
]]></content:encoded>
			<wfw:commentRss>http://thelucid.com/2007/03/01/building-ruby-rails-subversion-mongrel-and-mysql-on-mac-os-x-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

