<?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; apple</title>
	<atom:link href="http://www.rchu.nl/tag/apple/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, 06 Feb 2012 20:00:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Inconsistent gestures in OSX Lion</title>
		<link>http://www.rchu.nl/2011/11/inconsistent-gestures-in-osx-lion/</link>
		<comments>http://www.rchu.nl/2011/11/inconsistent-gestures-in-osx-lion/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 11:44:17 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[Lion]]></category>
		<category><![CDATA[OS X]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=949</guid>
		<description><![CDATA[As everyone it took me some time, though not more than a day or two, to get used to natural scrolling in OS X Lion, but now I really like it. If feels natural because it feels like you put your fingers on the page and pull it upwards to scroll down, and vice versa. <a href='http://www.rchu.nl/2011/11/inconsistent-gestures-in-osx-lion/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.rchu.nl/wordpress/wp-content/uploads/Screen-Shot-2011-11-01-at-12.18.17-150x150.png" alt="OS X Swipe gesture" title="OS X Swipe gesture" width="150" height="150" class="alignright size-thumbnail wp-image-950" />As everyone it took me some time, though not more than a day or two, to get used to <em>natural scrolling</em> in OS X Lion, but now I really like it. If feels natural because it feels like you put your fingers on the page and pull it upwards to scroll down, and vice versa. The same thing goes for the four finger swipe to switch between spaces and full screen applications. Hold the current space, and pull it to the left to reveal the space or application on the right.</p>
<p>It does not, however, work that way with the three finger gesture to go to the next or previous page, which also works as the back/next button in my browser. Visualizing the pages of a document or in your browser history as numbered pages going from left to right seems the most natural (if you read from left to right as I do). But swiping to the left brings you to the previous page, not the next. I ask you to go into mission control. Do a four-finger swipe to the left, and then a three finger swipe to the left and see what happens (you will go to the next space, and then go back to the previous space). Same direction, different result.</p>
<p>The trackpad gestures take little time to get used to, the direction doesn&#8217;t really matter that much because  you get used to it. But because these swipe gestures are inconsistent they still causes me to make the wrong gesture. I hope those human-interface geniuses at Apple will realize this too and, most importantly, fix it.</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2011/11/inconsistent-gestures-in-osx-lion/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2011/11/inconsistent-gestures-in-osx-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disk usage notification</title>
		<link>http://www.rchu.nl/2011/02/disk-usage-notification/</link>
		<comments>http://www.rchu.nl/2011/02/disk-usage-notification/#comments</comments>
		<pubDate>Wed, 16 Feb 2011 11:50:59 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[scripting]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=714</guid>
		<description><![CDATA[I don&#8217;t pay much attention to my hard disk usage nor do I remember to periodically empty the trash. In fact, I don&#8217;t want to empty the trash as long as the disk space is available because you never know when to need to restore a trashed file. To keep track of my disk usage <a href='http://www.rchu.nl/2011/02/disk-usage-notification/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.rchu.nl/wordpress/wp-content/uploads/Screen-shot-2011-02-16-at-12.48.21.png"><img class="alignright size-thumbnail wp-image-719" title="Disk usage growl notification" src="http://www.rchu.nl/wordpress/wp-content/uploads/Screen-shot-2011-02-16-at-12.48.21-150x150.png" alt="" width="150" height="150" /></a>I don&#8217;t pay much attention to my hard disk usage nor do I remember to periodically empty the trash. In fact, I don&#8217;t want to empty the trash as long as the disk space is available because you never know when to need to restore a trashed file.</p>
<p>To keep track of my disk usage I made a simple bash script that determines the free space and size of the trash and sends a Growl notification if the disk space is running low or the trash is to big (absolute or proportional to the free space available) and set my crontab to run it every 15 minutes. <span id="more-714"></span></p>
<pre class="brush: bash;">
#!/bin/sh

trash=`du -d 0 -k /Users/ronald/.Trash/ | awk '{print &quot;scale=0; &quot;$1&quot;*1024/1000000000&quot;}' | bc`
freespace=`df / | tail -n 1 | awk '{print &quot;scale=0; &quot;$4&quot;*512/1000000000&quot;}' | bc`
trashperc=`echo &quot;scale=0; 100*$trash/$freespace&quot;|bc`

if   [ $freespace -lt 20  ]; then message=&quot;Free disk space is running low&quot;
elif [ $trashperc -gt 100 ]; then message=&quot;Trash is more than half of the free disk space&quot;
elif [ $trash     -gt 20  ]; then message=&quot;Trash is getting big&quot;
else exit
fi

echo &quot;$message

$freespace GB free
$trash GB in trash ($trashperc%)&quot; |  /usr/local/bin/growlnotify -a /Applications/Utilities/Disk\ Utility.app -t Smith
</pre>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2011/02/disk-usage-notification/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2011/02/disk-usage-notification/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[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 <a href='http://www.rchu.nl/2009/09/os-x-apache-and-symbolic-links/'>[...]</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>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2009/09/os-x-apache-and-symbolic-links/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></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>NetNewsWire</title>
		<link>http://www.rchu.nl/2009/06/netnewswire/</link>
		<comments>http://www.rchu.nl/2009/06/netnewswire/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 23:07:12 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/?p=288</guid>
		<description><![CDATA[There are a lot of RSS readers out there, but since I have little requirements I just stick with reading my RSS feeds in Apple Mail. A few weeks ago the products of Newsgator got my attention. The application for the Mac looks pretty standard. Multiple feeds organisable in folders, three panes, the usual. The <a href='http://www.rchu.nl/2009/06/netnewswire/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.newsgator.com/individuals/"><img class="alignright size-full wp-image-289" style="border: 1px solid black;" title="NewsGator Logo" src="http://www.rchu.nl/wordpress/wp-content/uploads/picture-1.png" alt="NewsGator Logo" width="289" height="176" /></a>There are a lot of RSS readers out there, but since I have little requirements I just stick with reading my RSS feeds in Apple Mail. A few weeks ago the products of <a href="http://www.newsgator.com/individuals/">Newsgator</a> got my attention.</p>
<p>The application for the Mac looks pretty standard. Multiple feeds organisable in folders, three panes, the usual. The two things I like a lot after using it for a few weeks are the a build-in browser so you don&#8217;t have to switch back and forth between your browser and news reader and the support for <a href="http://en.wikipedia.org/wiki/Digest_access_authentication">HTTP digest authentication</a> which is used by <a href="http://www.livejournal.com/">Livejournal</a> to gain access to the <a href="http://www.livejournal.com/support/faqbrowse.bml?faqid=149">feeds of livejournals</a> including the protected posts (if your LJ account has access to those).</p>
<p>The iPhone application is okay, haven&#8217;t used it that much.</p>
<p>But the good part is, besides the fact that these are both free applications, that they sync with each other via a free account at newsgator, so when I read a post on my mac the same post isn&#8217;t marked as unread anymore on my iPhone and vica versa. They also provide a web-based RS reader when you login to Newsgator which is a nice extra which I probably won&#8217;t use. It only seems usefull when I have some time to kill somewhere when I&#8217;m around a computer with internet access and without both my laptop and phone. But it&#8217;s a nice extra.</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2009/06/netnewswire/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2009/06/netnewswire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How Apple runs nasty tricks</title>
		<link>http://www.rchu.nl/2008/10/how-apple-runs-nasty-tricks/</link>
		<comments>http://www.rchu.nl/2008/10/how-apple-runs-nasty-tricks/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 21:38:33 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[apple]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/2008/10/how-apple-runs-nasty-tricks/</guid>
		<description><![CDATA[Sometimes when people find out I own a Macbook and since a week also an iPhone they call me an apple-freak. There are of course many apple fans always bashing the PC/Windows users and vica versa, but I don&#8217;t think I belong to those groups. I like the apple products, and thats my prerogative. And <a href='http://www.rchu.nl/2008/10/how-apple-runs-nasty-tricks/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>Sometimes when people find out I own a Macbook and since a week also an iPhone they call me an apple-freak. There are of course many apple fans always bashing the PC/Windows users and vica versa, but I don&#8217;t think I belong to those groups. I like the apple products, and thats my prerogative. And I cenrtainly don&#8217;t think all Apple does is great. It&#8217;s really funny to watch keynotes and see the crowd going wild when Steve Jobs introduces a new color for the iPod, to observe the way they price the only make the cool colored iPods the most expensive ones and the fastest macbook only in black.</p>
<p>Recently I have been searching the web for ways to sync my iPhone and Laptop wireless and found only <a href="http://gizmodo.com/5013150/3g-iphone-getting-wireless-itunes-sync-via-bonjour">rumors</a> that it would be possible and only custom-build <a href="http://justanotheriphoneblog.com/wordpress/2007/12/19/wisync-for-iphone-wireless-sync-new-name-new-features-all-gui-based-now/">workarounds</a> that don&#8217;t get the trick just right yet (though it is a good piece of work). Today I think I found out why this is the case when I stumbled upon <a href="http://www.me.com">MobileMe</a>, a online service by Apple which enables users to sync all of their devices wireless. Oh, and I am unable to find on their site howmuch this service costs, only that I can try it out for free for six months&#8230;</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2008/10/how-apple-runs-nasty-tricks/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2008/10/how-apple-runs-nasty-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vista on my MacBook, part two</title>
		<link>http://www.rchu.nl/2008/07/vista-on-my-macbook-part-two/</link>
		<comments>http://www.rchu.nl/2008/07/vista-on-my-macbook-part-two/#comments</comments>
		<pubDate>Thu, 03 Jul 2008 12:13:40 +0000</pubDate>
		<dc:creator>ronald</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[macbook]]></category>

		<guid isPermaLink="false">http://www.rchu.nl/2008/07/vista-on-my-macbook-part-two/</guid>
		<description><![CDATA[The bad part about a deceased hard disc is that I&#8217;ve had to live a full week without my MacBook. The good part is that using the Leopard DVD I could simply restore my entire system from backup putting it in the state of the last backup which happend to be a few hours before <a href='http://www.rchu.nl/2008/07/vista-on-my-macbook-part-two/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p>The bad part about a deceased hard disc is that I&#8217;ve had to live a full week without my MacBook. The good part is that using the Leopard DVD I could simply restore my entire system from backup putting it in the state of the last backup which happend to be a few hours before the hard disc died. Great, only too bad that I had to reïnstall Vista again.</p>
<p>Not that I use Vista much, so just a clean install and adding some programs should do just fine. I also thought to be smart and leave some unpartitioned space for the installation, saving me a partition resize using the Bootcamp Assistant. Just too bad that the disc is partitioned using a GUID Partition Table (GTD) which is not supported. Vista (or any other flavour of Windows for that matter) requires a Master Boot Record (MBR).</p>
<p>Many web pages tell me to use Disk Utility to change the disc from GTD to MBR, but unless they are refering to a different Disk Utility mine does not have that option. I almost made a bootable CD with <a href="http://refit.sourceforge.net/">rEFIt</a> (which is used in the tutorial to install OSX/Windows/Linux on a macbook) but decided to stop experimenting around and simply use the Boot Camp Assistant to erase the Bootcamp partition and then to create a Bootcamp partition. Lame solution. Takes about 2 minutes.</p>
<p>Thinking ahead&#8230; brilliant!</p>
<p class='fb-like'><iframe src='http://www.facebook.com/plugins/like.php?href=http://www.rchu.nl/2008/07/vista-on-my-macbook-part-two/&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;colorscheme=light' scrolling='no' frameborder='0' allowTransparency='true' style='border:none; overflow:hidden; width:450px; height:65px'></iframe></p>]]></content:encoded>
			<wfw:commentRss>http://www.rchu.nl/2008/07/vista-on-my-macbook-part-two/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

