<?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>Ronald! &#187; OS X</title>
	<atom:link href="http://www.rchu.nl/tag/os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rchu.nl</link>
	<description>My own little corner of the world wide web</description>
	<lastBuildDate>Mon, 12 Jul 2010 23:44:52 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>My First Steam experience</title>
		<link>http://www.rchu.nl/2010/05/my-first-steam-experience/</link>
		<comments>http://www.rchu.nl/2010/05/my-first-steam-experience/#comments</comments>
		<pubDate>Fri, 14 May 2010 11:09:43 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[LJ Crosspost]]></category>
		<category><![CDATA[games]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=555</guid>
		<description><![CDATA[As a Mac user Steam used to be something from another planet, until recently. I am happy Steam comes to the Mac, bringing lots of great games for me to play. The news that Portal is free (for a limited time) was the trigger for me to actually get started with Steam. And my joy [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rchu.nl/wordpress/wp-content/uploads/Screen-shot-2010-05-14-at-12.53.27.png"><img class="alignright size-medium wp-image-556" title="Steam (Mac Screen shot) " src="http://www.rchu.nl/wordpress/wp-content/uploads/Screen-shot-2010-05-14-at-12.53.27-300x201.png" alt="Steam (Mac Screen shot) " width="300" height="201" /></a>As a Mac user <a href="http://en.wikipedia.org/wiki/Steam_%28content_delivery%29">Steam</a> used to be something from <a href="http://www.microsoft.com/windows/">another planet</a>, until recently. I am happy Steam comes to the Mac, bringing lots of great games for me to play. The news that <a href="http://store.steampowered.com/freeportal">Portal is free</a> (for a limited time) was the trigger for me to actually get started with Steam. And my joy went away fast.</p>
<p><span id="more-555"></span>First of all, I don&#8217;t like the fact that if I actually want to play Portal I have to:</p>
<ol>
<li>Download Steam (a few Mb).</li>
<li>Download the actual Steam files within Steam.</li>
<li>Download several Steam updates.</li>
<li>Download Portal.</li>
<li>Ignore a warning about the minimum system specifications and my windows video driver having an unknown version. Now that says something about the native OS X version they build…</li>
<li>Wait, because even tough the download isn&#8217;t complete and won&#8217;t resume there is a &#8220;play&#8221; button which cannot start the game because their servers are too busy.</li>
<li>Whatever the future may bring…</li>
</ol>
<p>Second, I have less trust in a native application that doesn&#8217;t feel native (misaligned button labels; buttons, and worse, hyperlinks with no feedback weather I clicked them; custom colors, themes and icons; windows sometimes not showing up after switching applications; a crash when I press <code>Command+Q</code>), especially when it doesn&#8217;t work smoothly the first time I use it. Little inconsistencies like one window telling me it went wrong and the other it went fine does not help in gaining my trust either.</p>
<p>But, since I know I like Portal and because I&#8217;d like to be able to play more games on my Mac I&#8217;m just going to keep on trying. It is a good move to make an extremely popular game free to boost the number of Mac Steam users, because it makes users like me accept the rough patches and keep on trying.</p>
<p><strong><em>Update:</em></strong><em> After deleting all local files and downloading Portal again everything went fine, except that the warning about minimum system requirements turned out to be meaningful: Portal does not work on my MacBook (2.16 GHz</em> <em>Core 2 Duo).</em></p>
<p><em> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2010/05/my-first-steam-experience/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PDO: Configuring Apache, MySQL and PHP on OSX 10.5.7</title>
		<link>http://www.rchu.nl/2009/09/pdo-configuring-apache-mysql-and-php-on-osx-10-5-7/</link>
		<comments>http://www.rchu.nl/2009/09/pdo-configuring-apache-mysql-and-php-on-osx-10-5-7/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 11:00:51 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Website]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=376</guid>
		<description><![CDATA[I&#8217;d like to use PDO in conjunction with MySQL, but in the PHP installation shipped with OS X by default only pdo_sqlite is enabled. I do not want to compile my own Apache or PHP so the way to go is to simply add the pdo_mysql module. I followed these instructions but after running phpize [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d like to use PDO in conjunction with MySQL, but in the PHP installation shipped with OS X by default only pdo_sqlite is enabled. I do not want to compile my own Apache or PHP so the way to go is to simply add the pdo_mysql module. I followed <a href="http://gidden.net/tom/2008/06/30/mysql-and-pdo-on-os-x-leopard-intel/">these</a> instructions but after running phpize there were some warings on my screen and no makefile to be found. My current PHP version is 5.2.8 and I used the source of 5.3.0, so I tried again with 5.2.10 (since no other version was available at the <a href="http://www.php.net/downloads.php">PHP download page</a>). Both yield the same result, namely that it compiles, installs and won&#8217;t start.</p>
<p><code> PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/extensions/no-debug-non-zts-20060613/pdo_mysql.so' - (null) in Unknown on line 0</code></p>
<p>Following instructions in the comment to remove all architectures but the x86_64 have no effect. I think I have to compile my own PHP installation and have apache use that. Which sucks so much I decided to just wait for Snow Leopard and pray that either pdo_mysql is installed or dynamicly loading libraries is allowed there. I am happy to inform you all that the first is the case. Hurray!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2009/09/pdo-configuring-apache-mysql-and-php-on-osx-10-5-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OS X, Apache and symbolic links</title>
		<link>http://www.rchu.nl/2009/09/os-x-apache-and-symbolic-links/</link>
		<comments>http://www.rchu.nl/2009/09/os-x-apache-and-symbolic-links/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 10:55:58 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[LJ Crosspost]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=399</guid>
		<description><![CDATA[I use my laptop a lot for web developement, and for some projects I have more files than just the web documents that Apache needs to see. For those I have a directory in my ~/Documents with (amongst other things) a httpdocs directory. I&#8217;d like to just see that in my browser by creating a [...]]]></description>
			<content:encoded><![CDATA[<p>I use my laptop a lot for web developement, and for some projects I have more files than just the web documents that Apache needs to see. For those I have a directory in my ~/Documents with (amongst other things) a httpdocs directory. I&#8217;d like to just see that in my browser by creating a symbolic link in my ~/Sites directory. This proved to be somewhat difficult in OS X 10.5 and also in my fresh installation of 10.6.</p>
<p><span id="more-399"></span></p>
<h2>Creating a web symlink in 10.6</h2>
<h3>Configure Apache</h3>
<p>The installation of Apache that ships with OS X I use doesn&#8217;t allow symlinks by default, so I&#8217;ve added <code>Options +FollowSymLinks</code> in the Apache configuration. These are located in <code>/private/etc/apache2</code> and while you could enable this in <code>httpd.conf</code> I like to keep the system-wide configuration as clean as possible and edited the  (ronald is my username) instead. I&#8217;ve also added <code>AllowOverride All</code> there to be able to use <code>.htaccess</code> files, but thats another topic.</p>
<p>Restart Apache by disabling and enabling &#8220;Web Sharing&#8221; in the sharing preference pane</p>
<h3>Create a symlink</h3>
<p>That&#8217;s just a matter of executing<code> "ln -s ../Documents/website ." </code> in the <code>~/Sites</code> directory. Alas browsing to <code>http://localhost/~ronald/website</code> gives a 403 (forbidden) page. Inspecting the serverlog tells me that either apache is not allowed to follow symlinks (which it is) or the _www user hasn&#8217;t got enough rights to access <code>~/Documents/website</code>.</p>
<h3>It&#8217;s all about permissions</h3>
<p>Well, that&#8217;s just stupid because the directory is readable/executable for everyone. Changing my <code>~/Documents</code> folder to be world readable/executable did the trick. Apparently every directory in the path needs to be accessible. Damn me and my inferior UNIX permissions knowledge!</p>
<p>So it&#8217;s either making my entire Documents directory world readable, which I don&#8217;t really like, or adding the _www user and myself to some group and change ownership of my Documents directory to that group to make my entire Documents folder readable for myself and the _www user, which is slightly less bad. So chmodding everything except the directories linked for web access inside the Documents folder 700 seems the right way to go.</p>
<p>In 10.5 the holy grail was to mess around with the<a href="http://www.red-sweater.com/blog/427/out-of-my-access-control"> Access Control List</a> but that wasn&#8217;t needed in 10.6, so I suggest leaving that part alone.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2009/09/os-x-apache-and-symbolic-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Snow Leopard</title>
		<link>http://www.rchu.nl/2009/09/snow-leopard/</link>
		<comments>http://www.rchu.nl/2009/09/snow-leopard/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 07:14:32 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[LJ Crosspost]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=385</guid>
		<description><![CDATA[Once again I&#8217;ve installed some new OS and write a small post about it. This time it&#8217;s all about Snow Leopard and as usual this is probably more interesting for myself as a checklist sort of thing than for the world to read. It gives more order and satisfaction in the long proces of installing [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rchu.nl/wordpress/wp-content/uploads/snow-leopard.jpg"><img class="alignright size-medium wp-image-531" title="Snow Leopard" src="http://www.rchu.nl/wordpress/wp-content/uploads/snow-leopard-300x187.jpg" alt="Snow Leopard" width="300" height="187" /></a>Once again I&#8217;ve installed some new OS and write a small post about it. This time it&#8217;s all about Snow Leopard and as usual this is probably more interesting for myself as a checklist sort of thing than for the world to read. It gives more order and satisfaction in the long proces of installing and customisation and it functions as a central storage for all cool applications, tweaks and scripts that I install and create to make OS X function just the way I like it.</p>
<p><span id="more-385"></span></p>
<h2>Installation</h2>
<p>I&#8217;ve decided not to upgrade my existing installation of Leopard but to go for a fresh clean installation. Leopard was my first OS X installation and I&#8217;ve done quite some installating, customization and so forth and it sounded like a good idea to just start fresh. I remember reading something about a clean install option, but the installer just asks me for the location, gives me some options what to install and starts right away. I had to abort, reboot, and then used the disk utility on the installer DVD to first format my hard drive. Installation went smooth from that point on.</p>
<p>First impressions are as expected, it works smooth. I am surprised about the time it takes to wake from sleep, almost instantly, but that can also be because this installation is fresh and I was used to my old cluttered Leopard.</p>
<h2>Afterwards</h2>
<p>Time to install some.</p>
<ul>
<li>Firefox 3.5</li>
<li>Growl 1.2b4, the latest beta of 1.2 because 1.1 is uncompatible with snow leopard. It seems to work fine, as does the HardwareGrowler.</li>
<li>Perian 1.1.4</li>
<li>Spark 3.0b9 for global hotkeys</li>
<li>iWork &#8216;09 en iLife &#8216;09</li>
<li>Software updates (10.6.1)</li>
<li>Textmate</li>
<li>Latest flash version since <a href="http://www.macrumors.com/2009/09/03/snow-leopard-installation-downgrades-flash-player-to-vulnerable-version/">Snow Leopard ships with an unsafe one.</a></li>
<li>MacTex</li>
</ul>
<p>And to tweak some.</p>
<ul>
<li>Copied my old <code>~/Music</code> directory, iTunes starts with my good old library. Hurray</li>
<li>Copied my old <code>~/Photos</code> directory, iPhoto cannot open (made with a newer version). Running another software update was the key to success.</li>
<li>The first sync with my iPhone authorizes my computer with the iTunes store and gives me all my contacts back. Nice!</li>
<li>Uncomment the line <code>LoadModule php5_module        libexec/apache2/libphp5.so</code> in <code>/etc/apache2/httpd.conf</code> to enable php5. Fortunately for me, snow leopard provides me with <code>pdo_mysql</code> which Leopard did not (and it wasn&#8217;t possible to just add that module).</li>
</ul>
<p>And to get stuck at some.</p>
<ul>
<li>System clock, going to <em>System preferences &gt; International &gt; Formats &gt; Times (customize button)</em> and changing the medium format doesn&#8217;t work anymore :(</li>
</ul>
<p>My ToDo list also has some.</p>
<ul>
<li>mail multicolumn</li>
<li>mail imap subfolder check</li>
<li>spark firewall status scripts</li>
<li>adium</li>
</ul>
<h2>More Tweaks</h2>
<h3>Firewall scripts</h3>
<p>I take my laptop everywhere so I want to keep the built-in firewall fully closed at all times. I do, however, sometimes take it down if some sharing/program/game doesn&#8217;t work, and I almost always forget to enable it again afterewards. Thats what the following script is for. I use the cron daemon to run it every 5 minutes and it checks the firewall status and gives me a growl notification if it&#8217;s disabled.</p>
<pre class="brush: bash;">
#!/bin/sh
if [ `defaults read /Library/Preferences/com.apple.alf globalstate` -eq &amp;quot;0&amp;quot; ]; then
  echo Firewall is currently disabled | /usr/local/bin/growlnotify -a /Applications/System\ Preferences.app -t Warning;
fi
</pre>
<p>I also added an applescript to a global hotkey in Spark to change the firewall status. It checks the status, displays it with the options to change it with a timeout of 5 seconds.</p>
<pre class="brush: applescript;">
# brings the dialog window to front
delay 1
tell me to activate

set fw_status to (do shell script &amp;quot;defaults read /Library/Preferences/com.apple.alf globalstate&amp;quot;)

if fw_status is equal to &amp;quot;2&amp;quot; then
  set dlg_result to display dialog &amp;quot;Allow only essential services&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;All&amp;quot;, &amp;quot;Specific&amp;quot;, &amp;quot;Essential&amp;quot;} default button 3 cancel button 3 with icon note giving up after 10
  set res to button returned of dlg_result
else if fw_status is equal to &amp;quot;1&amp;quot; then
  set dlg_result to display dialog &amp;quot;Set access for specific services&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;All&amp;quot;, &amp;quot;Specific&amp;quot;, &amp;quot;Essential&amp;quot;} default button 2 cancel button 2 with icon caution giving up after 10
  set res to button returned of dlg_result
else if fw_status is equal to &amp;quot;0&amp;quot; then
  set dlg_result to display dialog &amp;quot;Allow all incomming connections&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;All&amp;quot;, &amp;quot;Specific&amp;quot;, &amp;quot;Essential&amp;quot;} default button 1 cancel button 1 with icon stop giving up after 10
  set res to button returned of dlg_result
end if

if res is equal to &amp;quot;All&amp;quot; then
  do shell script &amp;quot;defaults write /Library/Preferences/com.apple.alf globalstate 0&amp;quot;
  display dialog &amp;quot;Set to 'Allow all incomming connections'&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;OK&amp;quot;} default button 1
else if res is equal to &amp;quot;Specific&amp;quot; then
  do shell script &amp;quot;defaults write /Library/Preferences/com.apple.alf globalstate 1&amp;quot;
  display dialog &amp;quot;Set to 'Set access for specific services'&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;OK&amp;quot;} default button 1
else if res is equal to &amp;quot;Essential&amp;quot; then
  do shell script &amp;quot;defaults write /Library/Preferences/com.apple.alf globalstate 2&amp;quot;
  display dialog &amp;quot;Set to 'Allow only essential services'&amp;quot; with title &amp;quot;Firewall Status&amp;quot; buttons {&amp;quot;OK&amp;quot;} default button 1
end if
</pre>
<p>And now I can easily change the status of my firewall</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2009/09/snow-leopard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The day the Apples fell from the tree</title>
		<link>http://www.rchu.nl/2009/05/the-day-the-apples-fell-from-the-tree/</link>
		<comments>http://www.rchu.nl/2009/05/the-day-the-apples-fell-from-the-tree/#comments</comments>
		<pubDate>Sun, 17 May 2009 21:42:47 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[LJ Crosspost]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=293</guid>
		<description><![CDATA[I&#8217;m no fanboy per se, I just happen to like my MacBook and iPhone a lot. But not today, as today the battery of my MB broke down and my phone just crashed while making a photo. Also while rebooting I held both keys down to power down the thing which it didn&#8217;t respond to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m no fanboy per se, I just happen to like my MacBook and iPhone a lot. But not today, as today the battery of my MB broke down and my phone just crashed while making a photo. Also while rebooting I held both keys down to power down the thing which it didn&#8217;t respond to until after booting up and showing my background and asking for my passcode just for a second. Of course the timing could also just be a coincidence.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2009/05/the-day-the-apples-fell-from-the-tree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
