<?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>Wilted buttercup, grey skies, and geek &#187; OSX</title>
	<atom:link href="http://mmt.me.uk/blog/category/osx/feed/" rel="self" type="application/rss+xml" />
	<link>http://mmt.me.uk/blog</link>
	<description>Mischa’s ramblings on the interweb</description>
	<lastBuildDate>Fri, 20 Aug 2010 14:28:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Signing Mail on Snow Leopard</title>
		<link>http://mmt.me.uk/blog/2010/08/19/signing-mail-in-10-6/</link>
		<comments>http://mmt.me.uk/blog/2010/08/19/signing-mail-in-10-6/#comments</comments>
		<pubDate>Thu, 19 Aug 2010 15:58:35 +0000</pubDate>
		<dc:creator>Mischa Tuffield</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[gpg]]></category>
		<category><![CDATA[gpgmail]]></category>
		<category><![CDATA[mail.app]]></category>

		<guid isPermaLink="false">http://mmt.me.uk/blog/?p=218</guid>
		<description><![CDATA[Yay finally, come across an update to the GPGMail plugin for Mail.app 4.3 on Snow Leopard. This is the one bit of functionality which I have missed since upgrading from Leopard to Snow Leopard, and have been searching for updates periodically for a while now. This is fanstatic news, as I can now digitally sign [...]]]></description>
			<content:encoded><![CDATA[<p>Yay finally,  come across an update to the <a href="http://www.gpgmail.org/"> GPGMail </a> plugin for Mail.app 4.3 on Snow Leopard. This is the one bit of functionality which I have missed since upgrading from Leopard to Snow Leopard, and have been searching for updates periodically for a while now. </p>
<p>This is fanstatic news, as I can now digitally sign my emails, with my GPG identity, which can be found linked to from my <a href="http://mmt.me.uk/foaf.rdf">FOAF file</a>.</p>
<p><a href="http://mmt.me.uk/blog/wp-content/uploads/2010/08/Screen-shot-2010-08-19-at-16.49.55.png"><img src="http://mmt.me.uk/blog/wp-content/uploads/2010/08/Screen-shot-2010-08-19-at-16.49.55.png" alt="" title="Signing Mail in Mail.app 4.3" width="400"  class="aligncenter size-full wp-image-220" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://mmt.me.uk/blog/2010/08/19/signing-mail-in-10-6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Private Browsing with Safari</title>
		<link>http://mmt.me.uk/blog/2009/11/15/private-browsing-with-safari/</link>
		<comments>http://mmt.me.uk/blog/2009/11/15/private-browsing-with-safari/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 20:38:33 +0000</pubDate>
		<dc:creator>Mischa Tuffield</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[Privacy]]></category>

		<guid isPermaLink="false">http://mmt.me.uk/blog/?p=122</guid>
		<description><![CDATA[I use Firefox as my primary browser, both at home and at work. So I have setup my Safari browser, as my private browser &#8211; that is sans cache, history, cookies or anything of a similar nature. I noticed that the &#8220;Private Browsing&#8221; option in Safari, doesn&#8217;t do that good a job of not leaving [...]]]></description>
			<content:encoded><![CDATA[<p>I use <a href="http://www.mozilla.com/firefox/">Firefox</a> as my primary browser, both at home and at work. So I have setup my Safari browser, as my private browser &#8211; that is sans cache, history, cookies or anything of a similar nature. I noticed that the &#8220;Private Browsing&#8221; option in Safari, doesn&#8217;t do that good a job of not leaving files hanging around in one&#8217;s operating system, furthermore unless your careful, <a href="http://en.wikipedia.org/wiki/Spotlight_%28software%29">Spotlight</a> will eventually end up indexing your browser history, cache, which may be less than ideal. </p>
<p>In order to have a zero cache safari instance on my laptop I have taken the following steps :</p>
<ul>
<li>1: Removed spotlight&#8217;s prying eyes, by excluding the following directories :
<ul>
<li>/Users/&lt;USERDIR&gt;/Library/Caches</li>
<li>/Users/&lt;USERDIR&gt;/Library/Safari</li>
<li>/Library/Caches</li>
</ul>
</li>
<li>2: Setup two cronjobs to constantly delete Safari cache-dir</li>
<p><code>*/10 * * * * find /Users/&lt;USERDIR&gt;/Library/Safari -type f -exec rm {} \; 2&gt;&#038;1 &gt; /dev/null<br />
*/10 * * * * find /Users/&lt;USERDIR&gt;/Library/Caches/Metadata/Safari/ -type f -exec rm {} \; 2&gt;&#038;1 &gt; /dev/null</code>
</ul>
</ul>
<p>And finally, I have created a wrapper .app file which open&#8217;s Safari, and then enables &#8220;Private Browsing&#8221; mode, as I could not find a way to do this through editing the Safari.plist file. I followed the <a href="http://www.macworld.com/article/139714/2009/03/enableprivatebrowsing.html">instructions posted on the MacWorld site</a>, and they go a little something list so: </p>
<ul>
<li>1.  One needs to enable the Enable Access for Assistive Devices option, which can be found in the Universal Access system preference.</li>
<li>2. Open the AppleScript editor, and type in the following commands :
<p><code><br />
tell application "Safari"<br />
&nbsp;&nbsp;	activate<br />
end tell<br />
tell application "System Events"<br />
&nbsp;&nbsp;	tell process "Safari"<br />
&nbsp;&nbsp;&nbsp;	     tell menu bar 1<br />
&nbsp;&nbsp;&nbsp;&nbsp;	         tell menu bar item "Safari"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	             tell menu "Safari"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;	               click menu item "Private Browsing"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end tell<br />
&nbsp;&nbsp;&nbsp;&nbsp; end tell<br />
&nbsp;&nbsp;&nbsp; end tell<br />
&nbsp;&nbsp;end tell<br />
end tell<br />
</code></li>
<li>3. Save this shiny new AppleScript as an application (.app file), and I called mine &#8220;PrivateSafari.app&#8221;. </li>
<li>4. I then grabbed the icon file from Safari, and added to the PrivateSafari, and then replace the old shortcut in my Dock, with one to &#8220;PrivateSafari.app&#8221;.</li>
</ul>
<p>It should be noted that I am well aware that the private browsing features in most of the modern web browsers have come under a certain amount of scrutiny recently, below are some links to articles for the interested reader : </p>
<ul>
<li><a href="http://www.bbc.co.uk/news/technology-10891355">Private browsing modes leak data &#8211; BBC News</a></li>
<li><a href="http://arstechnica.com/security/news/2010/08/private-browsing-not-so-private.ars">Private browsing: it&#8217;s not so private &#8211; Ars Technica</a></li>
<li><a href="http://www.itpro.co.uk/625837/private-browsing-not-so-private">Private browsing ‘not so private’  &#8211; IT Pro </a></li>
<li><a href="http://www.theregister.co.uk/2010/08/06/private_browsing_mode_failure/">Private browsing modes in four biggest browsers often fail &#8211; The Reg</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://mmt.me.uk/blog/2009/11/15/private-browsing-with-safari/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Timemachine to a Linux Box</title>
		<link>http://mmt.me.uk/blog/2009/07/07/timemachine-to-a-linux-box/</link>
		<comments>http://mmt.me.uk/blog/2009/07/07/timemachine-to-a-linux-box/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 17:22:11 +0000</pubDate>
		<dc:creator>Mischa Tuffield</dc:creator>
				<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://mmt.me.uk/blog/?p=27</guid>
		<description><![CDATA[By default TimeMachine on Mac OSX is configured to run through the Apple Filing Protocol only. At home I run a backup server for Time Machine on one of my Linux boxes, I did this by enabling the following feature on the machine which I have configured to be backed up. defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes [...]]]></description>
			<content:encoded><![CDATA[<p>By default <a href="http://www.apple.com/macosx/features/timemachine.html">TimeMachine</a> on <a href="http://www.apple.com/macosx/">Mac OSX</a> is configured to run through the <a href="http://en.wikipedia.org/wiki/Apple_Filing_Protocol">Apple Filing Protocol</a> only. </p>
<p>At home I run a backup server for Time Machine on one of my Linux boxes, I did this by enabling the following feature on the machine which I have configured to be backed up. </p>
<p><code>defaults write com.apple.systempreferences TMShowUnsupportedNetworkVolumes 1 </code></p>
<p>This in turn allows for unsupported network volumes to be used as backup volumes. </p>
<p>Below are some other Apple related preferences I have configured on my macbook:</p>
<p><code>defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'</code></p>
<p><code>defaults write com.apple.terminal FocusFollowsMouse -string YES</code></p>
<p><code>defaults write com.apple.Safari IncludeDebugMenu 1</code></p>
<p><code>defaults write com.apple.finder AppleShowAllFiles Yes (ALL FILES IN FINDER)</code></p>
]]></content:encoded>
			<wfw:commentRss>http://mmt.me.uk/blog/2009/07/07/timemachine-to-a-linux-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ld: duplicate symbol _g_bit_nth_lsf Mac OSX Leopard/Darwin</title>
		<link>http://mmt.me.uk/blog/2009/07/07/ld-duplicate-symbol-_g_bit_nth_lsf-mac-osx-leoparddarwin/</link>
		<comments>http://mmt.me.uk/blog/2009/07/07/ld-duplicate-symbol-_g_bit_nth_lsf-mac-osx-leoparddarwin/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 16:41:46 +0000</pubDate>
		<dc:creator>Mischa Tuffield</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[glib]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[_g_bit_nth_lsf]]></category>

		<guid isPermaLink="false">http://mmt.me.uk/blog/?p=19</guid>
		<description><![CDATA[I have had some problems installing software from source on my Max OS X Leopard machine. I should thank Martin Szomszor for his help on getting this working, but after some time faffing we finally got it sorted out. I found that I was having problems making software on Leopard, which I could build fine [...]]]></description>
			<content:encoded><![CDATA[<p>I have had some problems installing software from source on my <a href="http://www.apple.com/macosx/">Max OS X Leopard machine.</a> I should thank <a href="http://users.ecs.soton.ac.uk/mns2/">Martin Szomszor</a> for his help on getting this working, but after some time faffing we finally got it sorted out.</p>
<p>I found that I was having problems making software on Leopard, which I could build fine on my linux (<a href="http://fedoraproject.org/">fedora</a>) machines. The error I was getting was:</p>
<p><b>ld: duplicate symbol _g_bit_nth_lsf in foo.o and bar.o</b></p>
<p>I am running Leopard 10.5.3. I was using glib2, installed via <a href="http://www.finkproject.org/">Fink</a>, version number: 2.12.0-103. After spending lots of time googling I found the following article to be of the most use, <a href="http://www.anders.com/cms/241/Wireshark/MacPorts">&#8220;Wireshark with Macports&#8221;</a>, where Anders Brownworth pointed out that the error was due to a &#8220;<a href="http://trac.macosforge.org/projects/macports/ticket/13006">extern inline bug in glib/gutils.h which is easily fixed</a>&#8220;.</p>
<p>So to fix this:</p>
<ul>
<li>I located <b>gutils.h</b>, which I found here:<br/><br />
 /sw/include/glib-2.0/glib/gutils.h</li>
<li>I then replaced these lines:<br/><br />
<code>#ifdef G_IMPLEMENT_INLINES<br/><br />
#  define G_INLINE_FUNC<br/><br />
#  undef  G_CAN_INLINE<br/></p>
<p>#elif defined (__GNUC__)<br/><br />
#  define G_INLINE_FUNC extern inline<br/><br />
#elif defined (G_CAN_INLINE)</code></li>
<li>With this:<br/><br />
<code>#ifdef G_IMPLEMENT_INLINES<br/><br />
#  define G_INLINE_FUNC<br/><br />
#  undef  G_CAN_INLINE<br/><br />
<font color="red"><code>#elif defined (__APPLE__)<br/><br />
#  define G_INLINE_FUNC static inline</code></font><br/></p>
<p>#elif defined (__GNUC__) <br/><br />
#  define G_INLINE_FUNC extern inline<br/><br />
#elif defined (G_CAN_INLINE)</code></li>
<li>By adding these two middle lines:<br/><br />
<font color="red"><b><code>#elif defined (__APPLE__)<br/><br />
#  define G_INLINE_FUNC static inline</code></b></font></li>
<li>The start of the fragment of code was at line number <em>96</em> in my <b>gutils.h</b> file</li>
</ul>
<p>Here is a link to my edited and working <a href="http://mmt.me.uk/files/gutils.h">gutils.h file</a>.</p>
<p><b>Note 1:</b> I would make sure I get a copy of my original gutils.h file, as this may come in handy</p>
<p><b>Note 2:</b> There is a <a href="http://trac.macosforge.org/projects/macports/attachment/ticket/13006/glib2-inline.2.patch?format=raw">patch</a> which one could apply to make the same changes which I have just described here. This patch follows this <a href="http://trac.macports.org/ticket/13006">ticket</a>. I didn&#8217;t know what to do with the patch file, so I ended up editing the file by hand:). I am guessing that is something todo with macports, mmm, nevermind, its working now.</p>
]]></content:encoded>
			<wfw:commentRss>http://mmt.me.uk/blog/2009/07/07/ld-duplicate-symbol-_g_bit_nth_lsf-mac-osx-leoparddarwin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>duplicate dylib libiconv.2.dylib</title>
		<link>http://mmt.me.uk/blog/2009/07/07/duplicate-dylib-libiconv-2-dylib/</link>
		<comments>http://mmt.me.uk/blog/2009/07/07/duplicate-dylib-libiconv-2-dylib/#comments</comments>
		<pubDate>Tue, 07 Jul 2009 16:29:27 +0000</pubDate>
		<dc:creator>Mischa Tuffield</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[dylib]]></category>
		<category><![CDATA[iconv]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://mmt.me.uk/blog/?p=15</guid>
		<description><![CDATA[When building from source on Mac OSX, I have regularly come across the problem whereby the compiler complains about duplicate dylibs. duplicate dylib libiconv.2.dylib This is due to my use of the Fink and Darwin packages to install various bits I need for OSX development. I recently noticed that many configure scripts cater for the [...]]]></description>
			<content:encoded><![CDATA[<p>When building from source on Mac OSX, I have regularly come across the problem whereby the compiler complains about <em>duplicate dylib</em>s.</p>
<p><code>duplicate dylib libiconv.2.dylib</code></p>
<p>This is due to my use of the <a href="http://www.finkproject.org/">Fink</a> and <a href="http://darwinports.com/">Darwin</a> packages to install various bits I need for OSX development.</p>
<p>I recently noticed that many configure scripts cater for the user to select which <a href="http://www.kernelthread.com/mac/osx/programming.html">dylib</a> they would like to include. So I figured that my problem of duplicate iconv&#8217;s can be overcome by looking for options like :</p>
<p><code>--with-iconv=</code></p>
<p>So look out for similar parameters in configure scripts</p>
<p><code> ./configure --with-iconv=/opt/local/..</code></p>
<p>So, why do I not just remove all but one instance of iconv? Well, Leopard ships with an old version of iconv, and I require recent versions for my development work.</p>
]]></content:encoded>
			<wfw:commentRss>http://mmt.me.uk/blog/2009/07/07/duplicate-dylib-libiconv-2-dylib/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
