<?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>Allan McRae</title>
	<atom:link href="http://allanmcrae.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://allanmcrae.com</link>
	<description>One day this will feature a witty tagline...</description>
	<lastBuildDate>Mon, 23 Aug 2010 11:15:45 +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>Australian Election</title>
		<link>http://allanmcrae.com/2010/08/australian-election/</link>
		<comments>http://allanmcrae.com/2010/08/australian-election/#comments</comments>
		<pubDate>Mon, 23 Aug 2010 11:15:45 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=527</guid>
		<description><![CDATA[This is a good summary of the build-up to the Australian election:

The world needs more animated news.  For people unfamiliar with Australian politics, there is barely any exaggeration in that clip.  Also, the Sex Party was actually a reasonably good choice if you look at their policies.
Not that I get to vote in [...]]]></description>
			<content:encoded><![CDATA[<p>This is a good summary of the build-up to the Australian election:</p>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/RQ_s6V1Kv6A?fs=1&amp;hl=en_US"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/RQ_s6V1Kv6A?fs=1&amp;hl=en_US" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
<p>The world needs more animated news.  For people unfamiliar with Australian politics, there is barely any exaggeration in that clip.  Also, the Sex Party was actually a reasonably good choice if you look at their policies.</p>
<p>Not that I get to vote in any of this&#8230;  I am proudly not an Australian citizen!</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2010/08/australian-election/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Undefeatable New Zealand!</title>
		<link>http://allanmcrae.com/2010/07/undefeatable-new-zealand/</link>
		<comments>http://allanmcrae.com/2010/07/undefeatable-new-zealand/#comments</comments>
		<pubDate>Mon, 12 Jul 2010 06:51:15 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[General Rant]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=519</guid>
		<description><![CDATA[Guess which team was the only one to be undefeated at the &#8220;Soccer&#8221; World Cup?  That&#8217;s right&#8230;  New Zealand!
(We did not win a game either but that is not the point.)
]]></description>
			<content:encoded><![CDATA[<p>Guess which team was the only one to be undefeated at the &#8220;Soccer&#8221; World Cup?  That&#8217;s right&#8230;  New Zealand!</p>
<p><small>(We did not win a game either but that is not the point.)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2010/07/undefeatable-new-zealand/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nintendo Australia &#8211; You Suck!</title>
		<link>http://allanmcrae.com/2010/06/nintendo-australia-you-suck/</link>
		<comments>http://allanmcrae.com/2010/06/nintendo-australia-you-suck/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 10:20:17 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=512</guid>
		<description><![CDATA[Lets look at the release dates of Super Mario Galaxy 2 around the globe (according to Wikipedia)&#8230;  

North America: May 23, 2010
Japan: May 27, 2010
EU: June 11, 2010
Australia: July 1, 2010

But Australia is in the same Wii game region as the EU&#8230; the release is exactly the same.  So what the hell Nintendo! [...]]]></description>
			<content:encoded><![CDATA[<p>Lets look at the release dates of Super Mario Galaxy 2 around the globe (according to <a href="http://en.wikipedia.org/wiki/Super_mario_galaxy_2">Wikipedia</a>)&#8230;  </p>
<ul>
<li>North America: May 23, 2010</li>
<li>Japan: May 27, 2010</li>
<li>EU: June 11, 2010</li>
<li>Australia: July 1, 2010</li>
</ul>
<p>But Australia is in the same Wii game region as the EU&#8230; the release is exactly the same.  So what the hell Nintendo!  You are lucky that the game will be awesome so I can not protest.</p>
<p>The delay from the North American release data is something I have learned to live with, as EU region releases are always delayed (supposedly due to having to do the translations).  But at least when the Smash Bros Brawl release date in Australia was four months behind the North American release, the EU suffered along with us.</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2010/06/nintendo-australia-you-suck/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pacman 3.4.0 Released</title>
		<link>http://allanmcrae.com/2010/06/pacman-3-4-0-released/</link>
		<comments>http://allanmcrae.com/2010/06/pacman-3-4-0-released/#comments</comments>
		<pubDate>Fri, 18 Jun 2010 03:50:06 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Pacman]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=506</guid>
		<description><![CDATA[As Dan has already posted about, pacman-3.4.0 has been released.  There are a bunch of new features that I am really enjoying.
Firstly, when updating it database, pacman will only extract the new entries. This is similar to what Xyne&#8217;s rebase script does (without all the extra output). I had not realised how awesome this [...]]]></description>
			<content:encoded><![CDATA[<p>As Dan has already <a href="http://www.toofishes.net/blog/pacman-340-release/">posted</a> about, pacman-3.4.0 has been released.  There are a bunch of new features that I am really enjoying.</p>
<p>Firstly, when updating it database, pacman will only extract the new entries. This is similar to what Xyne&#8217;s <a href="http://xyne.archlinux.ca/projects/rebase">rebase</a> script does (without all the extra output). I had not realised how awesome this feature was until I updated my chroots this morning. It speeds the process up immensely.  The chroots using pacman-3.4 extracted the [extra] repo database with a barely noticeable pause while those using pacman-3.3 took a while.</p>
<p>The other feature that I am enjoying is the addition of a functional &#8216;which&#8217; to the file ownership query.  In the past, to find the owner of a binary in my path I would do something like <tt>pacman -Qo $(which makepkg)</tt> or provide the full path manually.  Now pacman will search for binaries in your path automatically, so this is achieved with <tt>pacman -Qo makepkg</tt>.</p>
<p>Installing packages with <tt>pacman -U <file></tt> has received a nice overhaul, allowing pacman to handle package replacements and install needed dependencies all in one transaction.   No more removing a package with <tt>pacman -Rd</tt> and then installing its replacement.</p>
<p>And makepkg also received its share of upgrades.  It now automatically exits on build/packaging errors in PKGBUILDs so there is no more need to have &#8220;<tt>|| return 1</tt>&#8221; after the commands.  Package splitting has improved with <tt>pkgver</tt>, <tt>pkgrel</tt> and <tt>arch</tt> now being able to be overridden and being able to only build subsets of a split package.</p>
<p>Of course, many other features made it into this pacman release. As always, many changes will hopefully never be noticed by a user (e.g. checking a package architecture matches the system architecture before installing, a major rewrite of the pacman bash completion, overhaul of tests in makepkg, more configurable library stripping during packaging), but all these are very useful contributions.  See <a href="http://projects.archlinux.org/pacman.git/plain/NEWS?id=v3.4.0">here</a> for a more detailed summary of the changes and the git log for all the details of changes.  </p>
<p>A pacman-3.4.0 package is currently in the [testing] repository for Arch Linux.  We all know pacman releases are bug free (as the two patches already in the 3.4.1 queue can attest), so look forward to it being in a [core] repo near you in the not too distant future.</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2010/06/pacman-3-4-0-released/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How Do You Check E-mails?</title>
		<link>http://allanmcrae.com/2010/06/how-do-you-check-e-mails/</link>
		<comments>http://allanmcrae.com/2010/06/how-do-you-check-e-mails/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 13:25:16 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[General Rant]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=502</guid>
		<description><![CDATA[Saw an infomercial for Australia&#8217;s biggest ISP (Telstra BigPond) today and learnt something amazing.  The &#8220;expert&#8221; talking to the presenter said something like:
People do a lot of things on-line these days.  Watching movies, checking emails, browsing&#8230;
I was a bit taken back&#8230;  People use the internet for checking emails?   I have [...]]]></description>
			<content:encoded><![CDATA[<p>Saw an infomercial for Australia&#8217;s biggest ISP (Telstra BigPond) today and learnt something amazing.  The &#8220;expert&#8221; talking to the presenter said something like:</p>
<blockquote><p>People do a lot of things on-line these days.  Watching movies, checking emails, browsing&#8230;</p></blockquote>
<p>I was a bit taken back&#8230;  People use the internet for checking emails?   I have been doing it wrong all these years!</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2010/06/how-do-you-check-e-mails/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>GCC in C++</title>
		<link>http://allanmcrae.com/2010/06/gcc-in-cxx/</link>
		<comments>http://allanmcrae.com/2010/06/gcc-in-cxx/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 13:18:17 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=479</guid>
		<description><![CDATA[As is becoming widely covered, the GCC Steering Committee and the FSF have approved the use of C++ in the GCC codebase.  This is not a particularly sudden decision&#8230;  I originally saw this proposed by Ian Lance Taylor on his blog a couple of years ago.  He also has some good slides [...]]]></description>
			<content:encoded><![CDATA[<p>As is becoming widely covered, the GCC Steering Committee and the FSF have <a href="http://gcc.gnu.org/ml/gcc/2010-05/msg00705.html">approved</a> the use of C++ in the GCC codebase.  This is not a particularly sudden decision&#8230;  I originally saw this <a href="http://www.airs.com/blog/archives/187">proposed</a> by Ian Lance Taylor on his blog a couple of years ago.  He also has some good <a href="http://airs.com/ian/cxx-slides.pdf">slides</a> about how using C++ would be benificial.  There was a <tt>gcc-in-c++</tt> branch that corrected incompatibilities flagged by <tt>-Wc++-compat</tt>, but I think this is mostly merged and there is now an experimental <tt>--enable-build-with-cxx</tt> configure flag.  So I think that this decision comes at no real surprise to anyone involved.</p>
<p>I think this is a great idea!  Why?  Because if the compiler is written in C++, then the compiler developers have more motivation to make C++ compilation faster.  This is good for me as C++ is my primary choice for a writing in a compiled programming language.  So this is a win for me.</p>
<p>Is it a win for GCC?  I know some people (especially <a href="http://thread.gmane.org/gmane.comp.version-control.git/57643/focus=57918">Linus Torvalds</a>) think using C++ for anything is a major disaster.  In fact, despite being a C++ proponent, I tend to agree&#8230;  99% of people who propose the usage of C++ for something are wrong.  Many of the complexities in C++ have no place in most projects and too many C++ programmers feel the need to use the entire C++ toolset.  Let be honest, the <a href="http://en.wikipedia.org/wiki/Curiously_recurring_template_pattern">curiously recurring template pattern</a> and <a href="http://en.wikipedia.org/wiki/Template_metaprogramming">template metaprogramming</a> have no real place anywhere but in academia<sup>[1]</sup>.  But (single) inheritance and the STL do provide what I have seen people try to replicate in C many times.  Using C++ as a C with classes is not really that different from C but it can be much simpler to write. </p>
<p>There are some obvious cases where changing to C++ in the GCC codebase would be of great benefit. Take a look in <tt>gcc/vec.h</tt> in the gcc source. </p>
<p><code>/* The macros here implement a set of templated vector types and<br />
   associated interfaces.  These templates are implemented with<br />
   macros, as we're not in C++ land.  The interface functions are<br />
   typesafe and use static inline functions, sometimes backed by<br />
   out-of-line generic functions. ...</code><br />
That is screaming out to be replaced by a <tt>std::vector</tt>.  There are other examples where simple inheritance is mimicked using a slew of (un)defines and switch statements.  Some of these are so complex, I wonder whether there will be any performance loss due to the introduction of virtual function calls.  Certainly, it will be a win in terms of maintainability.</p>
<p><small>[1] Although in combination you get the expression template paradigm, which allows you to build a really nice numeric vector class that unrolls all loops at compile time and does not suffer from virtual function overhead, making it as fast as manually programming the vector arithmetic in C but much more convenient to use.  Then you go back to using <tt>std::valarray</tt> which is close enough&#8230;</small></p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2010/06/gcc-in-cxx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Thunderbird vs Exchange IMAP</title>
		<link>http://allanmcrae.com/2010/05/thunderbird-vs-excange-imap/</link>
		<comments>http://allanmcrae.com/2010/05/thunderbird-vs-excange-imap/#comments</comments>
		<pubDate>Tue, 25 May 2010 00:49:33 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=472</guid>
		<description><![CDATA[I was having issues with attachments only being partially downloaded in Thunderbird from an IMAP account on a MS Exchange server (2003 I think).  Turns out I ran into a very old Thunderbird bug (filed 2001-07-24).   MS Exchange by default does not return the actual size to the IMAP4 command &#8220;FETCH RFC822.SIZE&#8221;. [...]]]></description>
			<content:encoded><![CDATA[<p>I was having issues with attachments only being partially downloaded in Thunderbird from an IMAP account on a MS Exchange server (2003 I think).  Turns out I ran into a very old Thunderbird <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=92111">bug</a> (filed 2001-07-24).   MS Exchange by default does not return the actual size to the IMAP4 command &#8220;FETCH RFC822.SIZE&#8221;.  This is <a href="http://support.microsoft.com/kb/191504">deliberate</a> as it provides a nice perfomance advantage.  </p>
<p>So&#8230;  like a good Linux user I should once again blame Microsoft software for being broken?  Not this time.  It turns out section 3.4.5 of RFC 2683 (IMAP4 Implementation Recommendations) says that the RCF822.SIZE value should only used for things like providing estimates to the user and not for allocating buffers and the like.  Bad Thunderbird!</p>
<p>The work around is to go to Preferences > Advanced > Config Editor&#8230; and set <tt>mail.server.default.fetch_by_chunks</tt> to FALSE. Old emails will need to be redownloaded to fix the attachments.</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2010/05/thunderbird-vs-excange-imap/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Simple MacBook Pro Fan Daemon</title>
		<link>http://allanmcrae.com/2010/05/simple-macbook-pro-fan-daemon/</link>
		<comments>http://allanmcrae.com/2010/05/simple-macbook-pro-fan-daemon/#comments</comments>
		<pubDate>Sun, 23 May 2010 10:19:37 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=435</guid>
		<description><![CDATA[The fan control on the MacBook Pro under Linux is not the best&#8230;   I would say it does not work at all but I once saw the fan speed increase slightly on its own so it appears to do something, sometimes, according to some logic I can not figure out.
It turns out that [...]]]></description>
			<content:encoded><![CDATA[<p>The fan control on the MacBook Pro under Linux is not the best&#8230;   I would say it does not work at all but I once saw the fan speed increase slightly on its own so it appears to do something, sometimes, according to some logic I can not figure out.</p>
<p>It turns out that taking &#8220;manual&#8221; control of the fan is quite easy.  A simple</p>
<p><code>echo 1 &gt; /sys/devices/platform/applesmc.768/fan1_manual</code><br />
sets the fan to manual mode.  Then you can adjust <tt>fan1_output</tt> in the same directory to set the current fan speed.  Do not get confused with <tt>fan1_input</tt>, as that is strangely the actual fan speed! The minimum and maximum speeds are given by <tt>fan1_min</tt> and <tt>fan1_max</tt>.  If the minimum speed is reported as 0 or 1, ignore it.  For MacBook Pros with Core 2 Duo processors the minimum fan speed should be 2000.  The maximum fan speed is 6200.</p>
<p>So now that we know how to control the fan, we just need some sort of algorithm to choose what the fan speed should be based on the temperature.  The MacBook Pro has a whole bunch of temperature sensors, but the ones that matter are for the processors as they are always the highest.    These are found in <tt>/sys/devices/platform/coretemp.{0,1}/temp1_input</tt> (you may need to load the <tt>coretemp</tt> module).  Montoring these during basic usage shows the average temperatures of the two processors is around 40-45C during idle, 50-55C with basic web browsing and 60-65C when watching a HD movie (at least in warm Australian ambient temperatures).</p>
<p>To save battery on a laptop, I think that the fan should not come on when the computer is doing anything less intensive than watching a movie, so I set that fan to kick in at 65C.  This coincides with what Mac OSX does.  From OSX, it appears that the fans should hit full speed at 80C and the speed builds up exponentially to that point.  The formula I use for changing the fan speed when the temperature is increasing is:</p>
<p><code>temp &lt;= 65:<br />
&nbsp;&nbsp;&nbsp;speed = max(current_speed, 2000)<br />
65 &lt; temp &lt; 80:<br />
&nbsp;&nbsp;&nbsp;step = (6200 - 2000) / ( (80 - 65) * (80 - 64) / 2 )<br />
&nbsp;&nbsp;&nbsp;speed = max(current_speed, ceil(2000 + (temp - 65) * (temp - 64) / 2 * step))<br />
temp &gt;= 80:<br />
&nbsp;&nbsp;&nbsp;speed = 6200</code></p>
<p>When the temperature is decreasing, I prefer to keep the fan going slightly longer to force the temperature down to low levels as quickly as possible.   I push it back down to 55C using this formula:</p>
<p><code>temp &gt;= 80:<br />
&nbsp;&nbsp;&nbsp;speed = 6200<br />
55 &lt; temp &lt; 80:<br />
&nbsp;&nbsp;&nbsp;step = (6200 - 2000) / ( (80 - 55) * (80 - 54) / 2 )<br />
&nbsp;&nbsp;&nbsp;speed = min(current_speed, floor(6200 - (80 - temp) * (81 - temp) / 2 * step)<br />
temp &lt;= 55:<br />
&nbsp;&nbsp;&nbsp;speed = 2000</code><br />
Here is a graphic of what that looks like (red = increasing, blue = decreasing):</p>
<p><img class="aligncenter" src="http://allanmcrae.com/images/fanspeed.png" alt="fan speed" /></p>
<p>Grap the source code <a href="http://allanmcrae.com/packages/mbpfan-1.0-1.src.tar.gz">here</a>.  It assumes two processors and a single fan (not true for all MacBook Pros&#8230;).  For Arch Linux users, there is also a PKGBUILD and daemon (mbpfan) for ease of use.  I am lazy, so there is very little error checking in the code.  It works for me but use at your own risk&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2010/05/simple-macbook-pro-fan-daemon/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Installing Arch on a Macbook Pro (5.5)</title>
		<link>http://allanmcrae.com/2010/04/installing-arch-on-a-macbook-pro-5-5/</link>
		<comments>http://allanmcrae.com/2010/04/installing-arch-on-a-macbook-pro-5-5/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 06:41:36 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[Arch]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=402</guid>
		<description><![CDATA[I recently got a 13&#8243;  Macbook Pro (5.5) and of course need to install Arch Linux on it.  So here goes a log of my install experience. I am not going to cover everything, as there is already basic instructions on the Macbook page in the Arch Wiki and all over the net.
The [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got a 13&#8243;  Macbook Pro (5.5) and of course need to install Arch Linux on it.  So here goes a log of my install experience. I am not going to cover everything, as there is already basic instructions on the <a href="http://wiki.archlinux.org/index.php/Macbook">Macbook</a> page in the Arch Wiki and all over the net.</p>
<p>The basic specs are:</p>
<ul>
<li>2.53GHz Intel Core 2 Duo</li>
<li>4GB (2&#215;2GB) 1066MHz DDR3 SDRAM</li>
<li>500GB Serial ATA; 5400 rpm</li>
</ul>
<p>More details as I deal with getting individual components working&#8230;</p>
<p><strong>Installation:</strong> The install went fine using the latest <a href="http://build.archlinux.org/isos/">test iso</a> (2010.04.19-core-i686).  The only &#8220;trick&#8221; was to change the partition table from GPT format (to msdos) before entering the installer.  Luckily, parted is included on the install CD so this was simple.  Also, install GRUB on the partition holding <tt>/boot</tt> instead of <tt>/dev/sda</tt>.  There was no need to do anything with <a href="http://refit.sourceforge.net/">rEFIt</a> as many guides prepared me for, but I think that is because I did not dual boot.</p>
<p>The final stage is to boot the OSX install CD and run:<br />
<code>bless --device /dev/disk0s2 --setBoot --legacy --verbose </code> to speed up the boot time before you get to GRUB (3s vs 20s).</p>
<p><strong>Video:</strong> This has a NVIDIA GeForce 9400M card, so a <tt>pacman -S nvidia</tt> and <tt>nvidia-xconfig</tt> then we are basically good to go.</p>
<p><strong>Screen Brightness:</strong> There is <tt>mbp_nvidia_bl</tt> in the kernel, so you think that would work but no&#8230;  Any changes made to the backlight level appear to be registered (and gnome-power-manager gives me a nice on-screen indicator that changes are being made) but the brightness stays the same.  The <a href="https://launchpad.net/~mactel-support/+archive/ppa/">Mactel PPA</a> for Ubuntu contains a <tt>nvidia-bl</tt> kernel module which does the job. Grab the PKGBUILD <a href="http://allanmcrae.com/packages/nvidia-bl-0.16.7-1.src.tar.gz">here</a>.</p>
<p><strong>Keyboard Backlight:</strong>  Using <a href="http://www.technologeek.org/projects/pommed/">pommed</a> is supposed to make this work and it did to an extent.  The only issue was roll over from almost completely dimmed to fully on that made disabling the keyboard backlight impossible.  Instead, I am just adjusting it manually using:<br />
<code>echo 255 > /sys/class/leds/smc\:\:kdb_backlight/brightness</code>(TODO: write a script using this to bind the adjustment keys to.)  In OSX, this would automatically come on in low light conditions but I have no idea how to approach that.</p>
<p><strong>Touchpad:</strong> This &#8220;works&#8221; out of the box, although is completely broken as far as I am concerned.  I quickly found out that a major touchpad use is to click with your thumb and then use a finger to select text or move/resize a window, etc. That does not work as touching your finger after the click with the thumb is interpreted as some sort of multitouch event.  A patched bcm5947 module fixes this (but is a hack and is unlikely to be included upstream&#8230;).  Grab the PKGBUILD <a href="http://allanmcrae.com/packages/bcm5974-2.6.33.3-1.src.tar.gz">here</a>.</p>
<p><strong>Wifi:</strong> It has a Broadcom BCM4322 802.11a/b/g/m wireless card.  That does not work with the b43 driver, so requires broadcom-wl driver.  Grab the PKGBUILD <a href="http://allanmcrae.com/packages/broadcom-wl-5.60.48.36-1.src.tar.gz">here</a>.</p>
<p><strong>Suspend to RAM:</strong> Worked out of the box.  I was only required to tell xfce4-power-manager to use it.</p>
<p><strong>Webcam:</strong> Used the <tt>isight-firmware-tools</tt> package to extract the firmware from the file that I remembered to grab from OSX before wiping (or perhaps used google to find&#8230;) and restart.</p>
<p><strong>Sound:</strong> Installed alsa, ran <tt>alsaconf</tt> and everything worked.  Shortcut keys required setting up.</p>
<p><strong>Keyboard:</strong> Ignoring the lack of Home/End/Page Up/Page Dn keys, the thing that most annoys me is that to by default the &#8220;action&#8221; functions take preference over F1-12.  I use F1-12 a lot more that the action keys. So these need to be swapped (TODO: do this&#8230;)</p>
<p><strong>Bluetooth:</strong> Untested. I have no real use for this at the moment&#8230;</p>
<p><strong>Apple Remote:</strong> TODO</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2010/04/installing-arch-on-a-macbook-pro-5-5/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ebooks &#8211; Currently Unavailable Online?</title>
		<link>http://allanmcrae.com/2010/03/ebooks-currently-unavailable-online/</link>
		<comments>http://allanmcrae.com/2010/03/ebooks-currently-unavailable-online/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 05:52:10 +0000</pubDate>
		<dc:creator>Allan</dc:creator>
				<category><![CDATA[General Rant]]></category>

		<guid isPermaLink="false">http://allanmcrae.com/?p=386</guid>
		<description><![CDATA[I was shopping for a book online with a major book retailer today when I came across an interesting entry in my search results (screenshot).   An ebook that is &#8220;Currently Unavailable Online&#8221;!
I struggle to explain such a thing&#8230;   Do I need to go into the store to buy the ebook? If [...]]]></description>
			<content:encoded><![CDATA[<p>I was shopping for a book online with a major book retailer today when I came across an interesting entry in my search results (<a href="http://allanmcrae.com/images/ebook.png">screenshot</a>).   An ebook that is &#8220;Currently Unavailable Online&#8221;!</p>
<p>I struggle to explain such a thing&#8230;   Do I need to go into the store to buy the ebook? If so, how would they give it to me? Or have they just run out of copies to let people download?  This could all be some conspiracy by the <a href="http://minister.innovation.gov.au/Emerson/Pages/REGULATORYREGIMEFORBOOKSTOREMAINUNCHANGED.aspx">Australian publishing mafia</a> to maintain their stranglehold on book sales.  Maybe the website had a monthly transfer quota and they were approaching their limit. People in Australia know all about how exorbitant excess internet usage fees can be.</p>
<p>Anyway, I am glad I already have that book in printed form. Otherwise I may have been forced to investigate further and who knows where such and investigation would have lead.</p>
]]></content:encoded>
			<wfw:commentRss>http://allanmcrae.com/2010/03/ebooks-currently-unavailable-online/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- www.000webhost.com Analytics Code -->
<script type="text/javascript" src="http://analytics.hosting24.com/count.php"></script>
<noscript><a href="http://www.hosting24.com/"><img src="http://analytics.hosting24.com/count.php" alt="web hosting" /></a></noscript>
<!-- End Of Analytics Code -->
