<?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>LonnieOlson &#187; Mac</title>
	<atom:link href="http://lonnieolson.com/blog/tag/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://lonnieolson.com/blog</link>
	<description>Words from the geeky sysadmin</description>
	<lastBuildDate>Wed, 30 Jul 2008 00:58:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Huge boo boo on my laptop</title>
		<link>http://lonnieolson.com/blog/2006/01/13/huge-boo-boo-on-my-laptop/</link>
		<comments>http://lonnieolson.com/blog/2006/01/13/huge-boo-boo-on-my-laptop/#comments</comments>
		<pubDate>Fri, 13 Jan 2006 21:29:39 +0000</pubDate>
		<dc:creator>fungus</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://kittypee.com/wordpress/2006/01/13/huge-boo-boo-on-my-laptop/</guid>
		<description><![CDATA[Last night I made the mistake of playing with some very strong magnets near my laptop.  Magnets are hard to resist, especially when they trigger the magnetic switch that puts it to sleep.  Unforunately I moved the magnet too close to the hard drive.
I heard a single click.  Fear strikes!  I [...]]]></description>
			<content:encoded><![CDATA[<p>Last night I made the mistake of playing with some very strong magnets near my laptop.  Magnets are hard to resist, especially when they trigger the magnetic switch that puts it to sleep.  Unforunately I moved the magnet too close to the hard drive.</p>
<p>I heard a single click.  Fear strikes!  I try to play a track in iTunes since it is already open&#8230; Beachball of death!  Fear turns to terror.  I immediately shut it off, and waited a while, each second seemed like an eternity as thoughts of life without my powerbook streamed through my head.  </p>
<p>I figure there is no use in trying to boot it back up.  I pop in my Tiger install DVD and boot off of it, so far so good.  Launch the Disk Utility.  I hear a nightmarish grinding noise from under my left palm.  Panic!</p>
<p>After some time passed during the grinding from hell, it stopped and displayed my drive with no volumes contained.  Anxiety!</p>
<p>I click on the drive and look at the partition tab and see emptiness.  Horror!</p>
<p>Launch Terminal and type _dmesg_ and see ??disk4: I/O Error??.  Screach!  Wail!  and finally depression.</p>
<p>Life without my powerbook is not worth living.  <img src='http://lonnieolson.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>But then I realize this is complete death, but only a kind of amnesia.  Too bad it is too late to buy a new hard drive.  I quickly get online w/ my _winblows_ box that is normally only running World of Warcraft.  Checking site after site for prices on a new drive.  This is an emergency, I can&#8217;t wait for shipping.  So I bought a new 60G drive for pickup at CompUSA.  Check their store hours&#8230; Damn!  They don&#8217;t open until 10AM.  </p>
<p>It is obvious that I didn&#8217;t sleep very well.</p>
<p>The next morning I pack my amnesiac laptop and a few extra tools  and *drive* to work.  I hate driving.  Especially to work.  But I am willing to sacrifice my comfort for my beloved &#8220;Pi&#8221;.  The first hour at work w/o my baby was dreadful.  Watching the clock every second.</p>
<p>9:45AM&#8230; Race to CompUSA and get there very shortly after they open.  Run up to the counter and ask for my new drive. Race back to work crack open my laptop.</p>
<p>Damn there are a lot of screws, and at least 14 different types before I get to the battery.  Erg.  Oh well, no one said brain surgery would be easy.</p>
<p>Finally get the new drive in and Pi all closed up.  Booted her up w/ the new install DVD.  Wonderful, everything works great!</p>
<p>Now it is time to reaclimate Pi to it&#8217;s former life.  Unfortunately I didn&#8217;t have a full backup (that was planned for the future), but at least I had my home directory tarred up on my iPod.</p>
<p>Install OS, Apps, Software Update, etc, etc.  Restore most of my home directory.  And hours later I have my baby back.  New and improved with an even longer memory (40G -&gt; 60G). </p>
<p>Yay!  He&#8217;s gonna be just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://lonnieolson.com/blog/2006/01/13/huge-boo-boo-on-my-laptop/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setup a PHP.net mirror on OSX</title>
		<link>http://lonnieolson.com/blog/2005/06/17/setup-a-phpnet-mirror-on-osx/</link>
		<comments>http://lonnieolson.com/blog/2005/06/17/setup-a-phpnet-mirror-on-osx/#comments</comments>
		<pubDate>Fri, 17 Jun 2005 22:22:00 +0000</pubDate>
		<dc:creator>fungus</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://kittypee.com/wordpress/2005/06/17/setup-a-phpnet-mirror-on-osx/</guid>
		<description><![CDATA[Many of us PHP developers use php.net often.  The mirrors available are pretty good, but what if you don&#8217;t have a net connection.  Ah, OSX already has Apache and PHP installed.  This combined with the handy way php.net allows anyone to have a mirror can save your life.

We need to get a [...]]]></description>
			<content:encoded><![CDATA[<p>Many of us PHP developers use <a href="http://www.php.net">php.net</a> often.  The mirrors available are pretty good, but what if you don&#8217;t have a net connection.  Ah, OSX already has Apache and PHP installed.  This combined with the handy way php.net allows anyone to have a mirror can save your life.</p>
<ol>
<li>We need to get a copy of the website.  Run this to synchronize you computer with the current site.
<pre>
rsync -avzC --timeout=600 --delete --delete-after  \
--include='manual/en/' --include='manual/en/**'  \
--exclude='manual/**' --exclude='distributions/manual/**'  \
--exclude='distributions/**' --exclude='extra/**' \
rsync.php.net::phpweb /Library/WebServer/Documents/php
</pre>
</li>
<li>Add SQLite support if necessary.  <code>pear install SQLite</code></li>
<li>Setup the Apache VirtualHost:<br />
Save this in a file called <i>/etc/httpd/users/php.conf</i></p>
<pre>
NameVirtualHost *:80
&lt;VirtualHost *:80&gt;
&lt;/VirtualHost&gt;
&lt;VirtualHost *:80&gt;
     ServerName php
     ServerAdmin webmaster@domainname.com                                                                  

     # Webroot of PHP mirror site
     DocumentRoot /Library/WebServer/Documents/php                                                       

     # These PHP settings are necessary to run a mirror
     php_value include_path .:/Library/WebServer/Documents/php/include
     php_flag register_globals on                                                                        

     # Log server activity
     ErrorLog /var/log/httpd/php-error_log
     TransferLog /var/log/httpd/php-access_log                                                           

     # Set directory index
     DirectoryIndex index.php index.html                                                                 

     # Do not display directory listings if index is not present,
     # and do not try to match filenames if extension is omitted
     Options -Indexes -MultiViews                                                                        

     # Handle errors with local error handler script
     ErrorDocument 401 /error.php
     ErrorDocument 403 /error.php
     ErrorDocument 404 /error.php                                                                        

     # Add types not specified by Apache by default
     AddType application/octet-stream .chm .bz2 .tgz
     AddType application/x-pilot .prc .pdb                                                               

     # Set mirror's preferred language here
     SetEnv MIRROR_LANGUAGE "en"
     # Turn spelling support off (which would break URL shortcuts)
     &lt;IfModule mod_speling.c&gt;
       CheckSpelling Off
     &lt;/IfModule&gt;
&lt;/VirtualHost&gt;
</pre>
</li>
<li>run <code>sudo apachectl graceful</code></li>
<li>Add a php alias to you hosts file.  Edit /etc/hosts.  Add &#8220;php&#8221; to the end of the line that starts with &#8220;127.0.0.1&#8243;</li>
<li>In order to get updates you can run the first command any time you want, or if you are running Tiger you can copy this file into <a href="/file_download/1"><i>~/Library/LaunchAgents/net.php.mirror.plist</i></a>.  This will cause it to be updated daily.
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://lonnieolson.com/blog/2005/06/17/setup-a-phpnet-mirror-on-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iTunesStatus</title>
		<link>http://lonnieolson.com/blog/2005/05/25/itunesstatus/</link>
		<comments>http://lonnieolson.com/blog/2005/05/25/itunesstatus/#comments</comments>
		<pubDate>Wed, 25 May 2005 20:09:00 +0000</pubDate>
		<dc:creator>fungus</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Music]]></category>

		<guid isPermaLink="false">http://kittypee.com/wordpress/2005/05/25/itunesstatus/</guid>
		<description><![CDATA[After upgrading to Tiger I wanted to install iChatStatus so my Active Application or Current iTunes song could be displayed as the status.  Unfortunately it does not work on Tiger.
This led me to decide to write my own script so I could do even more.  My script will set your iChat status to [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading to Tiger I wanted to install <a href="http://www.ittpoi.com/ichatstatus/">iChatStatus</a> so my Active Application or Current iTunes song could be displayed as the status.  Unfortunately it does not work on Tiger.</p>
<p>This led me to decide to write my own script so I could do even more.  My script will set your iChat status to the active application, or the current track info if it is actually playing.  As an added bonus it also posts the track info as a new post to my website.</p>
<p>You will need to save this script as an <i>Application Bundle</i> with the <i>Stay Open</i> option.  If you are annoyed at it&#8217;s existence in the Dock you can modify the Info.plist file in the Contents folder and add:</p>
<pre>
       &lt;key&gt;NSUIElement&lt;/key&gt;
	&lt;string&gt;1&lt;/string&gt;
</pre>
<p><a href="/file_download/2" title="iTunesStatus.txt">iTunesStatus.txt</a></p>
]]></content:encoded>
			<wfw:commentRss>http://lonnieolson.com/blog/2005/05/25/itunesstatus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP5 on Mac OSX 10.4 Tiger</title>
		<link>http://lonnieolson.com/blog/2005/05/24/php5-mac-tiger/</link>
		<comments>http://lonnieolson.com/blog/2005/05/24/php5-mac-tiger/#comments</comments>
		<pubDate>Tue, 24 May 2005 22:22:00 +0000</pubDate>
		<dc:creator>fungus</dc:creator>
				<category><![CDATA[Linux/BSD]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://kittypee.com/wordpress/2005/05/24/php5-mac-tiger/</guid>
		<description><![CDATA[I decided to upgrade to PHP5 on my Powerbook.  PHP4 is nice, but not as nice as PHP5.
Here is a quick rundown of what I did.

If fink is installed you may install these optional and very useful libraries

  fink install mysql-client mysql14-dev       # MySQL: connects to MySQL
 [...]]]></description>
			<content:encoded><![CDATA[<p>I decided to upgrade to PHP5 on my Powerbook.  PHP4 is nice, but not as nice as PHP5.</p>
<p>Here is a quick rundown of what I did.</p>
<p>
If fink is installed you may install these optional and very useful libraries</p>
<pre>
  fink install mysql-client mysql14-dev       # MySQL: connects to MySQL
  fink install postgresql80 postgresql80-dev  # PgSQL: connects to Postgresql
  fink install gd2                            # GD: used for image manipulation
</pre>
<p>Download and extract the <a href="http://www.php.net/downloads.php">PHP5</a> source.  Start Terminal and switch to the php5 source directory. </p>
<pre>
  ./configure --with-apxs --with-config-file-path=/etc --sysconfdir=/private/etc
	--with-ldap=/usr --with-kerberos=/usr --enable-cli --with-zlib=/usr
	--enable-trans-sid --with-xml --enable-exif --enable-ftp --enable-mbstring
	--enable-mbregex --enable-dbx --enable-sockets --with-iodbc=/usr
	--with-curl=/usr --with-openssl=/usr  --enable-soap --with-xsl
</pre>
<p>Add these optional extensions if you installed the corresponding fink package.</p>
<pre>
  --with-mysqli=/sw/bin/mysql_config --with-mysql=/sw
  --with-pgsql=/sw
  --with-gd=/sw --with-jpeg --with-png --with-ttf --with-freetype-dir=/usr/X11R6
</pre>
<p>After the configure is done run:</p>
<pre>
  make
  sudo make install
</pre>
<p>Enable mod_php5 in Apache:  open <code>/etc/httpd/httpd.conf</code> in your text editor.  Toward the very bottom of the file replace <code>&lt;IfModule mod_php4.c&gt;</code> with <code>&lt;IfModule mod_php5.c&gt;</code>
<pre>
  sudo apachectl graceful
</pre>
<p>Verify setup:</p>
<pre>
  echo "&lt;? phpinfo(); ?&gt;"&gt; /Library/WebServer/Documents/index.php
  open "http://localhost/"</pre></p>
]]></content:encoded>
			<wfw:commentRss>http://lonnieolson.com/blog/2005/05/24/php5-mac-tiger/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Tiger update</title>
		<link>http://lonnieolson.com/blog/2005/05/17/tiger-update/</link>
		<comments>http://lonnieolson.com/blog/2005/05/17/tiger-update/#comments</comments>
		<pubDate>Wed, 18 May 2005 01:14:26 +0000</pubDate>
		<dc:creator>fungus</dc:creator>
				<category><![CDATA[Fun]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://kittypee.com/wordpress/2005/05/17/tiger-update/</guid>
		<description><![CDATA[After using Tiger for the past few weeks I have some new observations.
Dashboard while cool, is not going to be a necessary part of life with OSX.  It is still very easy to develop for, and many have created some great widgets.  Some of these are useful, but will not change your life [...]]]></description>
			<content:encoded><![CDATA[<p>After using Tiger for the past few weeks I have some new observations.</p>
<p><a href="http://www.apple.com/macosx/features/dashboard/">Dashboard</a> while cool, is not going to be a necessary part of life with OSX.  It is still very easy to develop for, and many have created some great widgets.  Some of these are useful, but will not change your life the same way <a href="http://www.apple.com/macosx/features/expose/">Expose</a> does.</p>
<p><a href="http://www.apple.com/macosx/features/spotlight/">Spotlight</a> is a great search tool, but still too slow to be an application launcher like <a href="http://quicksilver.blacktree.com/">Quicksilver</a> is.</p>
<p>Correction.  CoreData is not the cause of the binary plist files.  The binary plist format has been around since 10.2, but has not been the default until now.  It is easy to convert files between formats using <i>plutil</i>.</p>
<p>Ultimately the best improvements are still under the hood IMHO.  <i>launchd</i> is a great replacement for rc, SystemStarter, cron, inetd, etc.  Hopefully in the near future more daemons/jobs will be migrated to this new system and leave the bloated crappy SystemStarter in the dust.</p>
]]></content:encoded>
			<wfw:commentRss>http://lonnieolson.com/blog/2005/05/17/tiger-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tiger has finally come</title>
		<link>http://lonnieolson.com/blog/2005/05/01/tiger-has-finally-come/</link>
		<comments>http://lonnieolson.com/blog/2005/05/01/tiger-has-finally-come/#comments</comments>
		<pubDate>Sun, 01 May 2005 21:03:49 +0000</pubDate>
		<dc:creator>fungus</dc:creator>
				<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://kittypee.com/wordpress/2005/05/01/tiger-has-finally-come/</guid>
		<description><![CDATA[Friday I got my copy of Tiger (Mac OS X 10.4).  
In fact I am writing this using a great dashboard widget called DashBlog.  Dashboard is realy cool, and comes with some good widgets already, but since they can be written just using HTML/CSS/JS anyone can write their own.  My favorite additions [...]]]></description>
			<content:encoded><![CDATA[<p>Friday I got my copy of Tiger (Mac OS X 10.4).  </p>
<p>In fact I am writing this using a great dashboard widget called <a href="http://www.dashboardlineup.com/article.php/20050414111616957">DashBlog</a>.  Dashboard is realy cool, and comes with some good widgets already, but since they can be written just using HTML/CSS/JS anyone can write their own.  My favorite additions to the standard set of widgets are Dash Monitors and DashBlog.  Dash Monitors is similar to gkrellm for Linux but not quite as configurable/extensible.</p>
<p>Spotlight has many great uses.  Previously I used <a href="http://quicksilver.blacktree.com/">Quicksilver</a> as a super fast app launcher.  Spotlight might not be as fast as Quicksilver, but that is only because it searches through more than just apps.  Spotlight is a good applauncher, but it really shines as a unified search.  Can&#8217;t remember where you stored that old password for a website?  Is it in your email, a text file, etc.?  Simple solution&#8230; Spotlight.</p>
<p>Automator looks cool, but it kind of large and a bit unreasonable for single app scripting.</p>
<p>Core Data pissed me off a bit though.  In Panther all preference files for all apps were simple text/xml files.  That is very handy for app interoperability.  However&#8230;Tiger now allows apps to store prefs in binary files.  Erg!  I was using a great script <a href="http://www.dublan.net">RandomTint.pl</a> to randomize my Terminal background color, but it breaks now.  The &#8216;defaults&#8217; command still does work on these files well, but I am a bit disappointed.</p>
<p>On the <a href="http://www.apple.com/macosx/features/unix/">Tiger Unix</a> page they describe some interesting new stuff.  ACL&#8217;s is quite exciting.  Many unix commands now work with HFS+ files better than before.  Launchd sounds cool, but it is an enormous break with UNIX tradition.  I&#8217;ll have to learn more before I make a final decision.  More and more great programming language and library support like sqlite, perl, php, python, ruby, etc.</p>
<p>Safari RSS sounds good for people who use RSS lightly or general beginners.  I however am a NetNewsWire Lite user, and Safari doesn&#8217;t come close to it.</p>
<p>That is it for now.  There are so many new features that I seem to find a new one all the time, some are small, other big.  And many I haven&#8217;t yet had time to play with yet.</p>
]]></content:encoded>
			<wfw:commentRss>http://lonnieolson.com/blog/2005/05/01/tiger-has-finally-come/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Daring Fireball: Point, Counterpoint: Mac OS X Is Great for Fortysomething Unix Hackers</title>
		<link>http://lonnieolson.com/blog/2005/04/04/daring-fireball-point-counterpoint-mac-os-x-is-great-for-fortysomething-unix-hackers/</link>
		<comments>http://lonnieolson.com/blog/2005/04/04/daring-fireball-point-counterpoint-mac-os-x-is-great-for-fortysomething-unix-hackers/#comments</comments>
		<pubDate>Mon, 04 Apr 2005 23:32:46 +0000</pubDate>
		<dc:creator>fungus</dc:creator>
				<category><![CDATA[Linux/BSD]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://kittypee.com/wordpress/2005/04/04/daring-fireball-point-counterpoint-mac-os-x-is-great-for-fortysomething-unix-hackers/</guid>
		<description><![CDATA[Daring Fireball: Point, Counterpoint: Mac OS X Is Great for Fortysomething Unix Hackers: &#8220;&#8221;
This article was quite surprising.  It seems that I am split into two categories he mentions.  I seem to fit the 40-something Unix hacker, even though I am not 40, but actually 26.  Maybe this has to do with [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://daringfireball.net/2005/04/point_counterpoint">Daring Fireball: Point, Counterpoint: Mac OS X Is Great for Fortysomething Unix Hackers</a>: &#8220;&#8221;</p>
<p>This article was quite surprising.  It seems that I am split into two categories he mentions.  I seem to fit the 40-something Unix hacker, even though I am not 40, but actually 26.  Maybe this has to do with my early indoctrination into the computer world at age 12, followed by extreme enthusiasm, desperate learning, and hacking.</p>
<p>But, then I also fit in with the free-software political zealot crowd.  This makes me quite a guilt ridden OS X user.  I love using Unix based systems, especially Free ones (with a Capital F) like Darwin.  But I hate non-free, encumbered, closed systems.  OS X is a mix of both.  Honestly I bought the powerbook for the amazing hardware.  Unfortunately I started to play with OS X.  I generally liked it, but nothing extreme, that is&#8230; until&#8230; I found the Terminal.  My inner Unix hacker rejoiced, and my eye-candy loving user was quite pleased with the GUI.  And every moment spent with OS X made me grow more and more in love with it. </p>
<p>I guess I have to either ditch OS X, or get over my guilt.</p>
]]></content:encoded>
			<wfw:commentRss>http://lonnieolson.com/blog/2005/04/04/daring-fireball-point-counterpoint-mac-os-x-is-great-for-fortysomething-unix-hackers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New toy</title>
		<link>http://lonnieolson.com/blog/2004/08/31/new-toy/</link>
		<comments>http://lonnieolson.com/blog/2004/08/31/new-toy/#comments</comments>
		<pubDate>Tue, 31 Aug 2004 23:36:12 +0000</pubDate>
		<dc:creator>Lonnie Olson</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[photos]]></category>

		<guid isPermaLink="false">http://kittypee.com/wordpress/2004/08/31/new-toy/</guid>
		<description><![CDATA[My &#8220;PowerBook&#8221;:http://www.apple.com/powerbook/index12.html is here.  I feel like I am learning how to use a computer all over again.  I am such a n00b.  But it does run Unix underneath, I feel comfortable at the Terminal, but the rest is still a little scary.
]]></description>
			<content:encoded><![CDATA[<p>My &#8220;PowerBook&#8221;:http://www.apple.com/powerbook/index12.html is here.  I feel like I am learning how to use a computer all over again.  I am such a n00b.  But it does run Unix underneath, I feel comfortable at the Terminal, but the rest is still a little scary.</p>
]]></content:encoded>
			<wfw:commentRss>http://lonnieolson.com/blog/2004/08/31/new-toy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
