<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Matt Brock&#039;s Blog</title>
	<atom:link href="http://blog.mattbrock.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mattbrock.co.uk</link>
	<description>Freelance Infrastructure Consultant and Audiovisual Artist based in London</description>
	<lastBuildDate>Fri, 27 Jan 2012 09:18:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.mattbrock.co.uk' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/844489d17bf9b9bed1263da1a2786471?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Matt Brock&#039;s Blog</title>
		<link>http://blog.mattbrock.co.uk</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.mattbrock.co.uk/osd.xml" title="Matt Brock&#039;s Blog" />
	<atom:link rel='hub' href='http://blog.mattbrock.co.uk/?pushpress=hub'/>
		<item>
		<title>PostgreSQL tuning: ensuring that as many sorts as possible are done in memory and not on disk</title>
		<link>http://blog.mattbrock.co.uk/2011/12/01/postgresql-tuning-ensuring-that-as-many-sorts-as-possible-are-done-in-memory-and-not-on-disk/</link>
		<comments>http://blog.mattbrock.co.uk/2011/12/01/postgresql-tuning-ensuring-that-as-many-sorts-as-possible-are-done-in-memory-and-not-on-disk/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 22:02:23 +0000</pubDate>
		<dc:creator>Matt Brock</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[available RAM]]></category>
		<category><![CDATA[Bash]]></category>
		<category><![CDATA[Bash script]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[disk cache]]></category>
		<category><![CDATA[free]]></category>
		<category><![CDATA[in memory]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[local0]]></category>
		<category><![CDATA[log_destination]]></category>
		<category><![CDATA[log_temp_files]]></category>
		<category><![CDATA[on disk]]></category>
		<category><![CDATA[postgres]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[postgresql.conf]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[reset work_mem]]></category>
		<category><![CDATA[set work_mem]]></category>
		<category><![CDATA[slow queries]]></category>
		<category><![CDATA[sorts]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[swapping]]></category>
		<category><![CDATA[syslog]]></category>
		<category><![CDATA[temp files]]></category>
		<category><![CDATA[temporary file]]></category>
		<category><![CDATA[temporary files]]></category>
		<category><![CDATA[tuning]]></category>
		<category><![CDATA[virtual memory]]></category>
		<category><![CDATA[work_mem]]></category>

		<guid isPermaLink="false">http://blog.mattbrock.co.uk/?p=2048</guid>
		<description><![CDATA[(This post assumes a PostgreSQL installation located at /var/lib/pgsql on a Red Hat-type Linux system such as Red Hat Enterprise Linux or CentOS. If your system differs from this, you may need to modify some of the paths accordingly.) In &#8230; <a href="http://blog.mattbrock.co.uk/2011/12/01/postgresql-tuning-ensuring-that-as-many-sorts-as-possible-are-done-in-memory-and-not-on-disk/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=2048&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>(This post assumes a PostgreSQL installation located at <em>/var/lib/pgsql</em> on a Red Hat-type Linux system such as Red Hat Enterprise Linux or CentOS. If your system differs from this, you may need to modify some of the paths accordingly.)</p>
<p>In PostgreSQL, sorts larger than a certain size will get performed on disk instead of in memory, and this makes them much slower as a result. Ideally all sorts should be done in memory (except for the ones that are genuinely too big to fit into your available RAM, because swapping to virtual memory should be avoided at all costs).</p>
<h1>Seeing which sorts are happening on disk</h1>
<p>To see which sorts are being performed on disk, the following parameters need to be enabled in <em>/var/lib/pgsql/data/postgresql.conf</em>:</p>
<p><code>log_destination = 'syslog'<br />
log_temp_files = 0</code></p>
<p>PostgreSQL syslog logging goes to the &#8216;local0&#8242; facility by default, so in <em>/etc/syslog.conf</em> make sure that you have &#8216;local0.none&#8217; added to the line for <em>/var/log/messages</em>, and add the following line:</p>
<p><code>local0.* /var/log/pgsql</code></p>
<p>Then restart syslog and reload PostgreSQL:</p>
<p><code>service syslog restart<br />
service postgresql reload</code></p>
<p>You should now start seeing details of your disk-based sorts in <em>/var/log/pgsql</em>. Each one will start with a line containing the phrase &#8216;LOG:  temporary file&#8217; and will show other details below this line including the SQL of the query which contained the sort. After a while you will see patterns emerging. </p>
<h1>Making sorts happen in memory instead of on disk</h1>
<p>If you have disk-based sorts occurring frequently, you can find the size of the largest of the frequent queries and then set this as the standard threshold for sorts. The parameter for this in <em>/var/lib/pgsql/data/postgresql.conf</em> is &#8216;work_mem&#8217;. For example, if you had frequent disk-spaced sorts using up to 64MB, you would set the following in <em>/var/lib/pgsql/data/postgresql.conf</em>:</p>
<p><code>work_mem = 64MB</code></p>
<p><strong>Be very careful, however</strong>, because this setting gets used by each query in each thread, so if you set this too high you could rapidly run out of RAM and cause the system to start swapping, which would be disastrous. The best thing to do is increase this bit by bit until as many as possible of your frequent queries are sorting in RAM but without running out of available memory. To see how much RAM is actually available on your system, use the command &#8216;free&#8217;. As Linux tends to use up the majority of available RAM for its disk cache, the number you actually care about is the &#8216;free&#8217; column in the &#8216;buffers/cache&#8217; row &#8211; this is how much RAM is really available. For example, here we can see that there are just over 11 GB of free RAM available:</p>
<p><code># free<br />
             total       used       free     shared    buffers     cached<br />
Mem:      12300988   12013536     287452          0     277788   10801424<br />
-/+ buffers/cache:     934324   11366664<br />
Swap:      4192956        240    4192716</code></p>
<p>Once you&#8217;ve dealt with sorts for frequent queries, you might find there are still the occasional disk-based sorts happening for a small number of particularly intensive queries. For those, you can increase the sort memory threshold on a per-query basis and then put it back to the standard setting once the query is finished. To do this, prepend your query with:</p>
<p><code>SET work_mem = '500MB';</code></p>
<p>changing &#8217;500MB&#8217; to whatever size is appropriate for you, then append the query with:</p>
<p><code>RESET work_mem;</code></p>
<p>to return it to the standard threshold. Again, <strong>be careful</strong> that you don&#8217;t use up all the system&#8217;s available RAM because then the dreaded swapping will occur.</p>
<p>Once you&#8217;ve done all this, as many sorts as possible will be happening in memory instead of on disk, and your PostgreSQL installation should be performing considerably better as a result of this tuning.</p>
<h1>Getting information from the logfile into a more useful format</h1>
<p>When PostgreSQL logs temporary files (disk-based sorts), the log entries can be rather messily distributed in the logfile, especially if you&#8217;re logging other things, such as slow queries, at the same time. I knocked up the following Bash script to quickly extract the details of the sorts into a more useful format:</p>
<p><code>#!/bin/bash</p>
<p>PROG=$(basename $0)<br />
PPROG=$(echo $PROG | awk -F '.' '{print $1}')<br />
TMPFILE1=/tmp/$PPROG.tmp1<br />
TMPFILE2=/tmp/$PPROG.tmp2<br />
LOGFILE=$1</p>
<p>if [ -z "$1" ] ; then<br />
  &nbsp; &nbsp; echo "Usage: $PROG LOGFILE"<br />
  &nbsp; &nbsp; exit<br />
fi</p>
<p>cat /dev/null &gt; $TMPFILE2</p>
<p>grep "temporary file" $LOGFILE &gt; $TMPFILE1</p>
<p>cat $TMPFILE1 | while read LINE ; do<br />
  &nbsp; &nbsp; NO1=$(echo $LINE | awk -F '[][-]' '{print $2}' )<br />
  &nbsp; &nbsp; NO2=$(echo $LINE | awk -F '[][-]' '{print $4}' )<br />
  &nbsp; &nbsp; cat $LOGFILE | \<br />
    &nbsp; &nbsp; &nbsp; &nbsp; awk -F '[][-]' "(\$2 ~ /$NO1/) &amp;&amp; (\$4 ~ /$NO2/) {print \$0}" \<br />
    &nbsp; &nbsp; &nbsp; &nbsp; &gt;&gt; $TMPFILE2<br />
  &nbsp; &nbsp; echo "" &gt;&gt; $TMPFILE2<br />
done</p>
<p>cat $TMPFILE2</p>
<p>rm -f $TMPFILE1 $TMPFILE2</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbrocksblog.wordpress.com/2048/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbrocksblog.wordpress.com/2048/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbrocksblog.wordpress.com/2048/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbrocksblog.wordpress.com/2048/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbrocksblog.wordpress.com/2048/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbrocksblog.wordpress.com/2048/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbrocksblog.wordpress.com/2048/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbrocksblog.wordpress.com/2048/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbrocksblog.wordpress.com/2048/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbrocksblog.wordpress.com/2048/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbrocksblog.wordpress.com/2048/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbrocksblog.wordpress.com/2048/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbrocksblog.wordpress.com/2048/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbrocksblog.wordpress.com/2048/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=2048&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.mattbrock.co.uk/2011/12/01/postgresql-tuning-ensuring-that-as-many-sorts-as-possible-are-done-in-memory-and-not-on-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54c73154f61929ee3eeae4d588553a88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt Brock</media:title>
		</media:content>
	</item>
		<item>
		<title>Matt Brock: iPhoneography @ Cafe Seventy Nine</title>
		<link>http://blog.mattbrock.co.uk/2011/09/08/matt-brock-iphoneography-cafe-seventy-nine/</link>
		<comments>http://blog.mattbrock.co.uk/2011/09/08/matt-brock-iphoneography-cafe-seventy-nine/#comments</comments>
		<pubDate>Thu, 08 Sep 2011 11:27:37 +0000</pubDate>
		<dc:creator>Matt Brock</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.mattbrock.co.uk/?p=2040</guid>
		<description><![CDATA[For six weeks I am exhibiting my iPhone photography in Cafe Seventy Nine in Primrose Hill, London. It’s a great space so go along and check it out! There are prints and books of my work for sale there. They &#8230; <a href="http://blog.mattbrock.co.uk/2011/09/08/matt-brock-iphoneography-cafe-seventy-nine/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=2040&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For six weeks I am exhibiting my iPhone photography in Cafe Seventy Nine in Primrose Hill, London.</p>
<p>It’s a great space so go along and check it out! There are prints and books of my work for sale there. They also serve great coffee and tea and delicious vegetarian food.</p>
<p><img src="http://farm7.static.flickr.com/6192/6126391501_5e5c4f896e_o.jpg" width="800" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbrocksblog.wordpress.com/2040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbrocksblog.wordpress.com/2040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbrocksblog.wordpress.com/2040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbrocksblog.wordpress.com/2040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbrocksblog.wordpress.com/2040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbrocksblog.wordpress.com/2040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbrocksblog.wordpress.com/2040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbrocksblog.wordpress.com/2040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbrocksblog.wordpress.com/2040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbrocksblog.wordpress.com/2040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbrocksblog.wordpress.com/2040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbrocksblog.wordpress.com/2040/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbrocksblog.wordpress.com/2040/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbrocksblog.wordpress.com/2040/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=2040&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.mattbrock.co.uk/2011/09/08/matt-brock-iphoneography-cafe-seventy-nine/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54c73154f61929ee3eeae4d588553a88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt Brock</media:title>
		</media:content>

		<media:content url="http://farm7.static.flickr.com/6192/6126391501_5e5c4f896e_o.jpg" medium="image" />
	</item>
		<item>
		<title>A Beginner’s Guide to iPhone Photography</title>
		<link>http://blog.mattbrock.co.uk/2011/07/28/a-beginner%e2%80%99s-guide-to-iphone-photography/</link>
		<comments>http://blog.mattbrock.co.uk/2011/07/28/a-beginner%e2%80%99s-guide-to-iphone-photography/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 10:47:40 +0000</pubDate>
		<dc:creator>Matt Brock</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[A Beginner’s Guide to iPhone Photography]]></category>
		<category><![CDATA[beginner's guide]]></category>
		<category><![CDATA[Digital Photographer]]></category>
		<category><![CDATA[iPhoneography]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://blog.mattbrock.co.uk/?p=2026</guid>
		<description><![CDATA[I&#8217;ve written an article for Digital Photographer magazine called A Beginner’s Guide to iPhone Photography, which will hopefully come in useful for all you budding iPhoneographers out there. There&#8217;s a link to Part 2 at the bottom of Part 1. &#8230; <a href="http://blog.mattbrock.co.uk/2011/07/28/a-beginner%e2%80%99s-guide-to-iphone-photography/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=2026&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve written an article for Digital Photographer magazine called <a href="http://news.dphotographer.co.uk/news/uncategorized/a-beginners-guide-to-iphone-photography-part-1/">A Beginner’s Guide to iPhone Photography</a>, which will hopefully come in useful for all you budding iPhoneographers out there. There&#8217;s a link to Part 2 at the bottom of Part 1. Enjoy!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbrocksblog.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbrocksblog.wordpress.com/2026/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbrocksblog.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbrocksblog.wordpress.com/2026/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbrocksblog.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbrocksblog.wordpress.com/2026/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbrocksblog.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbrocksblog.wordpress.com/2026/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbrocksblog.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbrocksblog.wordpress.com/2026/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbrocksblog.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbrocksblog.wordpress.com/2026/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbrocksblog.wordpress.com/2026/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbrocksblog.wordpress.com/2026/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=2026&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.mattbrock.co.uk/2011/07/28/a-beginner%e2%80%99s-guide-to-iphone-photography/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54c73154f61929ee3eeae4d588553a88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt Brock</media:title>
		</media:content>
	</item>
		<item>
		<title>Mac OS X Lion review</title>
		<link>http://blog.mattbrock.co.uk/2011/07/26/mac-os-x-lion-review/</link>
		<comments>http://blog.mattbrock.co.uk/2011/07/26/mac-os-x-lion-review/#comments</comments>
		<pubDate>Tue, 26 Jul 2011 15:55:46 +0000</pubDate>
		<dc:creator>Matt Brock</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Address Book]]></category>
		<category><![CDATA[AirDrop]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Auto Save]]></category>
		<category><![CDATA[⌘-Tab]]></category>
		<category><![CDATA[blur]]></category>
		<category><![CDATA[Dock]]></category>
		<category><![CDATA[Exposé]]></category>
		<category><![CDATA[Front Row]]></category>
		<category><![CDATA[Full-Screen Apps]]></category>
		<category><![CDATA[gestures]]></category>
		<category><![CDATA[HDMI]]></category>
		<category><![CDATA[iCal]]></category>
		<category><![CDATA[iCal Server]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Launchpad]]></category>
		<category><![CDATA[Leopard]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Mac Mini]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Mac OS X Lion]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[mice]]></category>
		<category><![CDATA[Mission Control]]></category>
		<category><![CDATA[opacity]]></category>
		<category><![CDATA[OS X Leopard Server]]></category>
		<category><![CDATA[quitting without asking]]></category>
		<category><![CDATA[Resume]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[scroll bars]]></category>
		<category><![CDATA[Show indicator lights for open applications]]></category>
		<category><![CDATA[Sidebar icon size]]></category>
		<category><![CDATA[Snow Leopard]]></category>
		<category><![CDATA[Spaces]]></category>
		<category><![CDATA[System Preferences]]></category>
		<category><![CDATA[Terminal]]></category>
		<category><![CDATA[To Do items]]></category>
		<category><![CDATA[trackpads]]></category>
		<category><![CDATA[Versions]]></category>
		<category><![CDATA[window resizing]]></category>

		<guid isPermaLink="false">http://blog.mattbrock.co.uk/?p=2004</guid>
		<description><![CDATA[My experience with Lion so far has been, to say the least, mixed. I thought I&#8217;d list some of my experiences in the form of a brief review. Launchpad: Tedious scrolling through multiple screens of apps in order to launch &#8230; <a href="http://blog.mattbrock.co.uk/2011/07/26/mac-os-x-lion-review/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=2004&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My experience with Lion so far has been, to say the least, mixed. I thought I&#8217;d list some of my experiences in the form of a brief review.</p>
<p><b>Launchpad:</b> Tedious scrolling through multiple screens of apps in order to launch one of them? No thanks. Dreadful.</p>
<p><b>Mission Control:</b> It seems like a good idea in principle to combine Exposé and Spaces, but in doing so some useful functionality is lost: minimised windows are no longer shown; multiple desktops are now one-dimensional rather than two-dimensional; I no longer have a number in the Menu Bar telling me which desktop I&#8217;m currently on; and it&#8217;s harder to see the contents of the other desktops. All a bit of a shame really.</p>
<p><b>Full-Screen Apps:</b> This seems initially useful, but: it doesn&#8217;t make use of multiple monitors; the keyboard shortcut only seems to work some of the time; it disables my hot corner to quickly get to the Desktop; switching between windows within a fullscreen app (e.g. Mail) is sometimes impossible; and it adds confusion because all windows already have a Zoom button, so now they all have two maximise buttons instead of one.</p>
<p><b>Resume/Auto Save/Versions:</b> This seems like a good idea in theory, but I doubt many of the apps I use will implement this for a long time, if ever.</p>
<p><b>AirDrop:</b> I was really looking forward to this one but didn&#8217;t realise that it only works on some recent Macs, i.e. none of mine. So that was very disappointing.</p>
<p><b>Mail:</b> The redesign is quite nice both aesthetically and ergonomically. Nothing ground-breaking, but nice. I&#8217;ve already become very dependent on the conversation view to the point where I now wish they&#8217;d hurry up and enable it for my iPhone too.</p>
<p><b>Address Book/iCal:</b> The horrible graphics in these are ugly and ridiculous, and Address Book has much less space for useful information as a result. I thought Apple had stopped this sort of nonsense years ago and didn&#8217;t expect to see it come back now. Also, iCal is having severe problems talking to my work calendar, and the work calendar is iCal Server running on OS X Leopard Server, so it&#8217;s particularly annoying that that doesn&#8217;t work properly [now fixed by using SSL for CalDAV]. Having said all that, I do like the new &#8216;planner&#8217; pane on the &#8216;Day&#8217; view &#8211; that&#8217;s now replaced &#8216;Week&#8217; as my standard view as a result.</p>
<p><b>Front Row:</b> Instead of bringing this up to date, which would have been sensible especially now that Mac minis have HDMI outputs, they&#8217;ve just removed it instead. Great. Thanks, Apple. I don&#8217;t use it that much in comparison to Plex on my <a href="http://blog.mattbrock.co.uk/2010/07/10/my-mac-mini-based-media-centre/">Mac mini-based media centre</a>, but it would have been nice to have functionality added instead of the whole thing being taken away. Very poor show indeed.</p>
<p><b>Terminal:</b> I love the new &#8216;Blur&#8217; option for window backgrounds, and I&#8217;ve come up with a really nice combination of blur and opacity for my active and inactive windows. But why, when I open new tabs, do they start SSHing into random servers when I don&#8217;t want them to? I presume this is something to do with Resume but it&#8217;s bloody annoying and I want it to stop! [Turns out it was necessary to change the 'New tabs open with' settings in the Startup tab in Terminal Preferences.]</p>
<p><b>UI changes:</b> Being able to resize a window from any edge is very welcome &#8211; I wish they&#8217;d done this years ago. It&#8217;s nice to see the back of the oversized Aqua scroll bars at last (but desirable to change the scroll bar setting to show &#8216;Always&#8217; in the General System Preference because this is a computer, not an iPhone). The overall look and feel is like a more subtle, streamlined version of Snow Leopard, which is quite nice generally. I worried about the icons in sidebars (in Finder and Mail most noticeably) being stupidly oversized, but thankfully I then found the &#8216;Sidebar icon size&#8217; option in the General System Preference &#8211; setting that to &#8216;Small&#8217; makes everything OK again. And the increased use of animation is quite enjoyable and might occasionally be vaguely useful for new computer users. All the new gesture stuff is irrelevant to me because I don&#8217;t have any of the new Macs with big trackpads, and I prefer using mice anyway (though not Apple mice because they&#8217;re an ergonomic nightmare). Oh, and suddenly finding scrolling going in the wrong direction wasn&#8217;t particularly useful, but thankfully that was easy to turn off in the Mouse System Preference.</p>
<p><b>System stuff:</b> Make sure you have &#8216;Show indicator lights for open applications&#8217; ticked in the Dock System Preference, partly because that&#8217;s a traditional behaviour which helps to actually make the Dock useful, and partly because if you don&#8217;t then Lion will randomly quit open apps without asking. Another bit of weirdness is the &#8216;Mail, Contacts &amp; Calendars&#8217; System Preference, which seems to serve no useful purpose whatsoever other than to confuse users by duplicating settings which you&#8217;ve already got in Mail, iCal, etc.</p>
<p>So there we go. Once you&#8217;ve turned all the annoyances off it&#8217;s basically just a neater, slicker version of Snow Leopard with a few things missing, so I&#8217;m not exactly blown away by this new OS. I think the main problem is that trying to mix Mac OS X and iOS causes a conflicting mess of too many different UI paradigms. Apple should either have stuck with tweaking the Mac OS X foundations or rebuilding the whole thing from the ground up, not ending up with something in between the two which doesn&#8217;t quite work.</p>
<p><b>Edit:</b> It&#8217;s quite interesting to compare the rather dark tone of this review to the optimistic positivity of my <a href="http://blog.mattbrock.co.uk/2009/08/29/snow-leopard/">Snow Leopard</a> and <a href="http://blog.mattbrock.co.uk/2007/11/13/mac-os-x-leopard/">Leopard</a> reviews. It makes Lion feel like even more of a step back than a step forward.</p>
<p><b>Edit:</b> Reading back on my reviews of previous versions of OS X, I&#8217;m reminded of what a mess Apple made of To Do Items in Mail when that was <a href="http://blog.mattbrock.co.uk/2007/11/13/mac-os-x-leopard/">added to Leopard</a>. I see they&#8217;ve fixed that by simply removing them again, which I guess is fair enough really.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbrocksblog.wordpress.com/2004/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbrocksblog.wordpress.com/2004/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbrocksblog.wordpress.com/2004/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbrocksblog.wordpress.com/2004/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbrocksblog.wordpress.com/2004/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbrocksblog.wordpress.com/2004/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbrocksblog.wordpress.com/2004/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbrocksblog.wordpress.com/2004/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbrocksblog.wordpress.com/2004/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbrocksblog.wordpress.com/2004/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbrocksblog.wordpress.com/2004/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbrocksblog.wordpress.com/2004/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbrocksblog.wordpress.com/2004/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbrocksblog.wordpress.com/2004/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=2004&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.mattbrock.co.uk/2011/07/26/mac-os-x-lion-review/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54c73154f61929ee3eeae4d588553a88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt Brock</media:title>
		</media:content>
	</item>
		<item>
		<title>iPhoneography: where photography, art and technology truly meet</title>
		<link>http://blog.mattbrock.co.uk/2011/06/18/iphoneography-where-photography-art-and-technology-truly-meet/</link>
		<comments>http://blog.mattbrock.co.uk/2011/06/18/iphoneography-where-photography-art-and-technology-truly-meet/#comments</comments>
		<pubDate>Sat, 18 Jun 2011 16:08:34 +0000</pubDate>
		<dc:creator>Matt Brock</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[App Store]]></category>
		<category><![CDATA[Apple Stores]]></category>
		<category><![CDATA[apps]]></category>
		<category><![CDATA[art]]></category>
		<category><![CDATA[bickr blog]]></category>
		<category><![CDATA[Blogger]]></category>
		<category><![CDATA[Blurb]]></category>
		<category><![CDATA[Chase Jarvis]]></category>
		<category><![CDATA[Edgar Cuevas]]></category>
		<category><![CDATA[EYE'EM]]></category>
		<category><![CDATA[Flickr]]></category>
		<category><![CDATA[Flickr Explore]]></category>
		<category><![CDATA[Glyn Evans]]></category>
		<category><![CDATA[hardware accessories]]></category>
		<category><![CDATA[Hipstamatic]]></category>
		<category><![CDATA[HIPSTAMATICS]]></category>
		<category><![CDATA[influence of iPhoneography]]></category>
		<category><![CDATA[Instagram]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhoneArt]]></category>
		<category><![CDATA[iPhoneogenic]]></category>
		<category><![CDATA[iPhoneography]]></category>
		<category><![CDATA[iphoneographyCentral]]></category>
		<category><![CDATA[Life in LoFi]]></category>
		<category><![CDATA[London iPhoneographers: Street Photography]]></category>
		<category><![CDATA[London iPhoneography Group]]></category>
		<category><![CDATA[Marty Yawnick]]></category>
		<category><![CDATA[mobile photography]]></category>
		<category><![CDATA[MobiTog]]></category>
		<category><![CDATA[Nicki Fitz-Gerald]]></category>
		<category><![CDATA[Owle Bubo]]></category>
		<category><![CDATA[P1XELS]]></category>
		<category><![CDATA[photo blogs]]></category>
		<category><![CDATA[photo editing]]></category>
		<category><![CDATA[photographers]]></category>
		<category><![CDATA[photographs]]></category>
		<category><![CDATA[photography books]]></category>
		<category><![CDATA[point and shoot]]></category>
		<category><![CDATA[processing]]></category>
		<category><![CDATA[professional photographers]]></category>
		<category><![CDATA[Rollei telephoto lens for iPhone 4]]></category>
		<category><![CDATA[smartphones]]></category>
		<category><![CDATA[the best camera is the one that's with you]]></category>
		<category><![CDATA[Tumblr]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://blog.mattbrock.co.uk/?p=1905</guid>
		<description><![CDATA[Photographers are increasingly embracing smartphones, and Apple&#8217;s iPhone in particular, as valid alternatives to their SLRs. Adopting the philosophy that &#8216;the best camera is the one that&#8217;s with you&#8217;, photographers find with iPhones that they can simply point and shoot &#8230; <a href="http://blog.mattbrock.co.uk/2011/06/18/iphoneography-where-photography-art-and-technology-truly-meet/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1905&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/matt_brock/5348315615/"><img src="http://farm6.static.flickr.com/5282/5348315615_a5ed5b3b75_m.jpg" align="right" hspace="10" vspace="10" /></a>Photographers are increasingly embracing smartphones, and Apple&#8217;s iPhone in particular, as valid alternatives to their SLRs. Adopting the philosophy that &#8216;the best camera is the one that&#8217;s with you&#8217;, photographers find with iPhones that they can simply point and shoot in situations where photography would not be an option with a larger camera. For many, this embodies the true essence of photography, in which making a timely visual capture of a particular moment is more important than painstakingly changing lenses and altering aperture settings. More and more photographers are questioning the assumption that bulky, costly photographic equipment is necessary for taking worthwhile photographs. Instead, they are realising that you can never tell when inspiration is going to strike, and being able to take photographs instantly at any time is incredibly advantageous.</p>
<p>As well as making it possible to take photographs at any time, the iPhone&#8217;s operating system, iOS, provides the photographer with a portable processing lab in the form of third party &#8216;apps&#8217; downloaded from the App Store. Other smartphones have photo apps too, but the range available on iOS is far superior to what&#8217;s available on Android or other platforms. Quite a few people are now familiar with the popular <a href="http://hipstamaticapp.com/">Hipstamatic</a> app, but this is only one of many. The first iPhone photography apps tended to offer simulations of Lomography cameras and were often quite &#8216;lo-fi&#8217;, which was perhaps natural given the relatively poor quality of the cameras on the first iPhones. However, the camera has been improved on each new iPhone model, and the iPhone 4 has a camera which is on a par with some compact cameras. At the same time, the photography apps available have gone beyond just lo-fi effects and into much more professional territory, offering advanced editing features, layering and masking, a huge range of filters and textures, and other facilities such as HDR. The range of editing possibilities for iPhone photography is now quite incredible.</p>
<p><a href="http://www.flickr.com/photos/matt_brock/5143724153/"><img src="http://farm5.static.flickr.com/4132/5143724153_0b12283ba3_m.jpg" align="left" hspace="10" vspace="10" /></a>In addition to the camera itself and the software, there are increasing numbers of hardware accessories for iPhoneography, such as the <a href="http://www.macworld.com/article/157656/2011/02/owle_iphone.html">Owle Bubo</a> mount and stabiliser, and the <a href="http://www.photographyblog.com/news/rollei_telephoto_lens_for_iphone_4/">Rollei telephoto lens</a> for the iPhone 4. The fact that hardware manufacturers such as Rollei are taking the iPhone so seriously is a very good sign for the future of the medium. Another very good sign is that the iPhone 4 has just overtaken the Nikon D90 as <a href="http://www.flickr.com/cameras/">the most popular camera in the Flickr community</a>. Many people are now finding that the sheer power of a good camera that&#8217;s always available, combined with the advanced editing features offered by the huge range of apps, makes for photographs which are both spontaneous and highly artistic. This has led to a new photographic and artistic subgenre referred to by some as &#8216;iPhoneography&#8217;, which is seen in many ways as highly representative of the current zeitgeist of art meeting technology. iPhone photographs can encompass all photographic genres from street photography to landscapes, but their spontaneity and artistic processing gives them a style of their own. The influence of iPhoneography can be seen increasingly on more traditional photography, as well as on film and TV, where iPhoneography-style processing such as blurring, tilt-shift effects, vignettes and colour filtering is increasingly in vogue.</p>
<p>There is a vibrant community of incredibly talented iPhoneographers on the Internet who are pushing the boundaries of this medium and sharing their results with each other and the rest of the world, and this even includes some professional photographers such as <a href="http://www.chasejarvis.com/">Chase Jarvis</a> who have embraced the iPhone as a valid and exciting part of their toolkit. Many of these iPhoneographers use Flickr to share photos and to give feedback. This makes sense because Flickr has been the most popular photo-sharing site for some time. However, some iPhoneographers use other sites in addition to, or instead of, Flickr. Tumblr has been popular due to its simple microblogging format which is ideal for posting photos and getting feedback on them, although recent technical glitches have made it a less attractive proposition. Some maintain photo blogs using WordPress or Blogger. Twitter is also very popular with iPhoneographers because it enables them to share thoughts and tips, as well as to link to new photos no matter where they are hosted. </p>
<p><a href="http://www.flickr.com/photos/matt_brock/5488590128/"><img src="http://farm6.static.flickr.com/5177/5488590128_e1f56cd085_m.jpg" align="right" hspace="10" vspace="10" /></a>In addition to these generic sharing sites, however, there are sites which are specific to mobile photography. Taking the iPhoneography world by storm currently is the mobile photo-sharing phenomenon known as <a href="http://instagr.am/">Instagram</a>. Despite its low-resolution square-format restrictions, it enables mobile photographers to share photos and get feedback in a very simple and streamlined way which makes it very addictive for many. Other sites dedicated to mobile photography are <a href="http://www.eyeem.com/">EYE&#8217;EM</a> and <a href="http://mobitog.com/">MobiTog</a>. Instagram, EYE&#8217;EM and MobiTog cater to all mobile photographers, not just iPhone photographers, so those using Android phones and Blackberrys can also join in the fun.</p>
<p>A rather different approach to photo sharing is taken by <a href="http://pixelsatanexhibition.com/">P1XELS</a>. This is a curated site which takes the form of a blog, and at P1XELS they are keen to emphasise the importance of iPhoneography as an art form rather than just as a method for taking &#8216;snaps&#8217;. Only photographs taken on iPhones are welcome here, which is probably indicative of how much more advanced the iOS platform is for photography in comparison to other mobile platforms. Anyone remaining cynical about the worth of iPhoneography only has to browse the beautiful images on this site to find out what incredible works of art can be created from photographs taken on the iPhone. </p>
<p><a href="http://www.flickr.com/photos/matt_brock/5104443962/"><img src="http://farm2.static.flickr.com/1128/5104443962_85054683c2_m.jpg" align="left" hspace="10" vspace="10" /></a>There are various other blogs devoted to showcasing talented iPhoneographers and which also provide news and information about the iPhoneography scene. Glyn Evans&#8217; <a href="http://www.iphoneography.com/">iPhoneography</a> blog, founded back in 2008 when Glyn coined the term &#8216;iPhoneography&#8217;, is usually the first port of call for information about what&#8217;s happening in the iPhoneography world. Other excellent iPhoneography blogs include Marty Yawnick&#8217;s <a href="http://lifeinlofi.com/">Life in LoFi</a>, Edgar Cuevas&#8217; <a href="http://iphoneogenic.tumblr.com/">iPhoneogenic</a>, and the <a href="http://bickr.co.uk/">bickr blog</a>. As well as these blogs, there is also the very worthwhile <a href="http://www.iphoneart.com/">iPhoneArt</a> site which has a thriving community and is growing and getting even better all the time, and also the extremely useful <a href="http://www.iphoneographycentral.com/">iphoneographyCentral site</a>, recently set up by Nicki Fitz-Gerald, which provides iPhoneography tutorials and other handy resources.</p>
<p>iPhoneography exhibitions and events are occurring around the world. Some of these have been arranged by P1XELS, but there have been quite a few others too, including several at various Apple Stores worldwide. More are appearing all the time, such as the <a href="http://www.orangedotgallery.co.uk/hipstamatics/">HIPSTAMATICS</a> exhibition in London earlier this year, and also the <a href="http://blog.mattbrock.co.uk/2011/06/15/london-iphoneographers-street-photography/">London iPhoneographers: Street Photography</a> event which I&#8217;ve helped to organise at the Apple Store on Regent Street in London. As mobile photography becomes ever more prevalent, no doubt we will see even more of these events and exhibitions appearing in the future.</p>
<p><a href="http://www.flickr.com/photos/matt_brock/5370252974/in/set-72157625221955730"><img src="http://farm6.static.flickr.com/5085/5370252974_a51f5b49a1_m.jpg" align="right" hspace="10" vspace="10" /></a>A similar scenario is occurring with books about iPhoneography, which are increasing in number all the time. Current examples of traditionally-published books are <a href="http://www.amazon.co.uk/Art-iPhoneography-Stephanie-C-Roberts/dp/1907579176"><i>The Art of iPhoneography</i></a> by Stephanie Roberts, <a href="http://www.amazon.co.uk/Create-Great-iPhone-Photos-Effects/dp/1593272855"><i>Create Great iPhone Photos</i></a> by Allan Hoffman, <a href="http://www.amazon.co.uk/IPhone-Photography-Dummies-Lifestyles-Paperback/dp/0470643641/ref=sr_1_1?s=books&amp;ie=UTF8&amp;qid=1308404233&amp;sr=1-1"><i>iPhone Photography &amp; Video for Dummies</i></a> by Angelo Micheletti, and <a href="http://www.amazon.co.uk/iPhone-Obsessed-Photo-Editing-Experiments/dp/0321771621/ref=sr_1_1?s=books&amp;ie=UTF8&amp;qid=1308404276&amp;sr=1-1"><i>iPhone Obsessed: Photo Editing Experiments with Apps</i></a> by Dan Marcolina. There are also now <a href="http://lifeinlofi.com/2010/12/13/a-gallery-of-iphone-photo-books/">many self-published books</a> by iPhoneographers on Blurb, including my own <a href="http://www.blurb.com/bookstore/detail/1526782"><i>iPhoneography</i></a>.</p>
<p>After reading this article, I hope those skeptical about the future of mobile photography, and iPhoneography in particular, are a bit less cynical. I also hope that those who are already pursuing an interest in this type of photography have found some useful information and have been encouraged to take their interest further. There is much fun to be had, and many great images to be created. My own interest in iPhoneography began in August 2009 (when I wrote a <a href="http://blog.mattbrock.co.uk/2009/08/27/iphone-photography/">blog post</a> about my new-found enthusiasm for it), and since then, as already mentioned, I&#8217;ve helped to organise an iPhoneography event and have published a book of my iPhone photos. I&#8217;ve also been showcased and reviewed in various places, been successful in photo contests, been featured on <a href="http://www.flickr.com/explore">Flickr Explore</a>, and been approached to have one of my photos used for the cover of a novel (though unfortunately this didn&#8217;t happen in the end, but it was nice to be considered). Additionally, I run the <a href="http://www.flickr.com/groups/londoniphoneography/">London iPhoneography Group</a> which I formed in September 2010. You can find me on Flickr as <a href="http://www.flickr.com/photos/matt_brock/">matt_brock</a>, you can check out my Tumblr-based <a href="http://iphoneography.mattbrock.co.uk/">iPhoneography site</a> or look at <a href="http://pixelsatanexhibition.com/?s=Matt+Brock">my work on P1XELS</a> should you wish to do so, and you can find me on Twitter as <a href="http://twitter.com/_mattbrock">_mattbrock</a>. My interest in iPhoneography continues to grow, and given the exciting nature of the medium I&#8217;m quite sure it will do so for some time to come.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbrocksblog.wordpress.com/1905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbrocksblog.wordpress.com/1905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbrocksblog.wordpress.com/1905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbrocksblog.wordpress.com/1905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbrocksblog.wordpress.com/1905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbrocksblog.wordpress.com/1905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbrocksblog.wordpress.com/1905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbrocksblog.wordpress.com/1905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbrocksblog.wordpress.com/1905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbrocksblog.wordpress.com/1905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbrocksblog.wordpress.com/1905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbrocksblog.wordpress.com/1905/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbrocksblog.wordpress.com/1905/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbrocksblog.wordpress.com/1905/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1905&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.mattbrock.co.uk/2011/06/18/iphoneography-where-photography-art-and-technology-truly-meet/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54c73154f61929ee3eeae4d588553a88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt Brock</media:title>
		</media:content>

		<media:content url="http://farm6.static.flickr.com/5282/5348315615_a5ed5b3b75_m.jpg" medium="image" />

		<media:content url="http://farm5.static.flickr.com/4132/5143724153_0b12283ba3_m.jpg" medium="image" />

		<media:content url="http://farm6.static.flickr.com/5177/5488590128_e1f56cd085_m.jpg" medium="image" />

		<media:content url="http://farm2.static.flickr.com/1128/5104443962_85054683c2_m.jpg" medium="image" />

		<media:content url="http://farm6.static.flickr.com/5085/5370252974_a51f5b49a1_m.jpg" medium="image" />
	</item>
		<item>
		<title>London iPhoneographers: Street Photography</title>
		<link>http://blog.mattbrock.co.uk/2011/06/15/london-iphoneographers-street-photography/</link>
		<comments>http://blog.mattbrock.co.uk/2011/06/15/london-iphoneographers-street-photography/#comments</comments>
		<pubDate>Wed, 15 Jun 2011 20:25:11 +0000</pubDate>
		<dc:creator>Matt Brock</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[Apple Store]]></category>
		<category><![CDATA[Daniel Holland]]></category>
		<category><![CDATA[Danny Dutch]]></category>
		<category><![CDATA[England]]></category>
		<category><![CDATA[event]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[iPhoneography]]></category>
		<category><![CDATA[iPhoneography London]]></category>
		<category><![CDATA[Leyla Bile]]></category>
		<category><![CDATA[London]]></category>
		<category><![CDATA[London iPhoneography Group]]></category>
		<category><![CDATA[London Street Photography Festival]]></category>
		<category><![CDATA[Londoner]]></category>
		<category><![CDATA[Matthew Burlem]]></category>
		<category><![CDATA[Regent Street]]></category>
		<category><![CDATA[Robson Santos]]></category>
		<category><![CDATA[street photography]]></category>

		<guid isPermaLink="false">http://blog.mattbrock.co.uk/?p=1935</guid>
		<description><![CDATA[At 7pm on 11th July, the Apple Store on Regent Street will be hosting an iPhoneography event to highlight four talented members of the London iPhoneography Group who will be showing their work and discussing how they use their iPhones &#8230; <a href="http://blog.mattbrock.co.uk/2011/06/15/london-iphoneographers-street-photography/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1935&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.flickr.com/photos/matt_brock/5855914119/in/pool-1531833@N21/"><img src="http://farm3.static.flickr.com/2540/5855914119_4d4255d3c4_z.jpg" /></a></p>
<p>At 7pm on 11th July, the Apple Store on Regent Street will be hosting an iPhoneography event to highlight four talented members of the London iPhoneography Group who will be showing their work and discussing how they use their iPhones for street photography in London: Daniel Holland, Robson Santos, Matthew Burlem and Leyla Bile. </p>
<p>We&#8217;re very excited about this because it will be the first iPhoneography event in an Apple Store in England, and also because it will coincide with the first ever London Street Photography Festival which runs from 7th to 17th July. There have been superb iPhoneography events in other Apple Stores around the world, and we&#8217;re very pleased to be able to do one of our own in London.</p>
<p>As administrator of the London iPhoneography Group and a keen iPhoneographer and Londoner, I&#8217;m providing support for this event (but not showing photos this time).</p>
<h2>Useful Links</h2>
<p><a href="http://www.flickr.com/photos/dannydutch/">Daniel Holland (Danny Dutch)</a><br />
<a href="http://www.flickr.com/photos/iphoneographylondon/">Robson Santos (iPhoneography London)</a><br />
<a href="http://www.flickr.com/photos/matthewburlem/">Matthew Burlem</a><br />
<a href="http://leylakai.tumblr.com/">Leyla Bile</a> </p>
<p><a href="http://www.flickr.com/groups/londoniphoneography/">London iPhoneography Group</a><br />
<a href="http://www.londonstreetphotographyfestival.org/">London Street Photography Festival</a> </p>
<h2>Update (18/07/11)</h2>
<p>The event was extremely successful and I&#8217;ve written a review of it <a href="http://www.iphoneography.com/journal/2011/7/13/review-of-the-london-iphoneographers-street-photography-even.html">on the iPhoneography blog</a>. Below are some photographs from the event.</p>
<p><img src="http://mattbrocksblog.files.wordpress.com/2011/07/poster.jpg?w=600" width="600" /></p>
<p><img src="http://mattbrocksblog.files.wordpress.com/2011/07/theatre.jpg?w=600" width="600" /></p>
<p><img src="http://mattbrocksblog.files.wordpress.com/2011/07/daniel.jpg?w=600" width="600" /></p>
<p><img src="http://mattbrocksblog.files.wordpress.com/2011/07/robson.jpg?w=600" width="600" /></p>
<p><img src="http://mattbrocksblog.files.wordpress.com/2011/07/leyla.jpg?w=600" width="600" /></p>
<p><img src="http://mattbrocksblog.files.wordpress.com/2011/07/matthew.jpg?w=600" width="600" /></p>
<p><img src="http://mattbrocksblog.files.wordpress.com/2011/07/qa.jpg?w=600" width="600" /></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbrocksblog.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbrocksblog.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbrocksblog.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbrocksblog.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbrocksblog.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbrocksblog.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbrocksblog.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbrocksblog.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbrocksblog.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbrocksblog.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbrocksblog.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbrocksblog.wordpress.com/1935/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbrocksblog.wordpress.com/1935/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbrocksblog.wordpress.com/1935/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1935&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.mattbrock.co.uk/2011/06/15/london-iphoneographers-street-photography/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54c73154f61929ee3eeae4d588553a88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt Brock</media:title>
		</media:content>

		<media:content url="http://farm3.static.flickr.com/2540/5855914119_4d4255d3c4_z.jpg" medium="image" />

		<media:content url="http://mattbrocksblog.files.wordpress.com/2011/07/poster.jpg" medium="image" />

		<media:content url="http://mattbrocksblog.files.wordpress.com/2011/07/theatre.jpg" medium="image" />

		<media:content url="http://mattbrocksblog.files.wordpress.com/2011/07/daniel.jpg" medium="image" />

		<media:content url="http://mattbrocksblog.files.wordpress.com/2011/07/robson.jpg" medium="image" />

		<media:content url="http://mattbrocksblog.files.wordpress.com/2011/07/leyla.jpg" medium="image" />

		<media:content url="http://mattbrocksblog.files.wordpress.com/2011/07/matthew.jpg" medium="image" />

		<media:content url="http://mattbrocksblog.files.wordpress.com/2011/07/qa.jpg" medium="image" />
	</item>
		<item>
		<title>Using Amazon&#8217;s EC2 cloud service to host our entire web infrastructure</title>
		<link>http://blog.mattbrock.co.uk/2011/03/29/using-amazons-ec2-cloud-service-to-host-our-entire-web-infrastructure/</link>
		<comments>http://blog.mattbrock.co.uk/2011/03/29/using-amazons-ec2-cloud-service-to-host-our-entire-web-infrastructure/#comments</comments>
		<pubDate>Tue, 29 Mar 2011 13:34:21 +0000</pubDate>
		<dc:creator>Matt Brock</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[system administrator]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[Amazon EC2]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA["Amazon Web Services"]]></category>
		<category><![CDATA[AWS]]></category>
		<category><![CDATA[S3]]></category>
		<category><![CDATA["Simple Storage Service"]]></category>
		<category><![CDATA[cloud]]></category>
		<category><![CDATA["the cloud"]]></category>
		<category><![CDATA["Elastic Compute Cloud"]]></category>
		<category><![CDATA[Amazon S3]]></category>
		<category><![CDATA[colocation]]></category>
		<category><![CDATA[colo]]></category>
		<category><![CDATA[data centre]]></category>
		<category><![CDATA[cloud infrastructure]]></category>
		<category><![CDATA[web hosting]]></category>
		<category><![CDATA[web infrastructure]]></category>
		<category><![CDATA[AWS Management Console]]></category>
		<category><![CDATA[EC2 command line tools]]></category>
		<category><![CDATA[EC2 CLI]]></category>
		<category><![CDATA[RightScale]]></category>
		<category><![CDATA[instance types]]></category>
		<category><![CDATA[web application infrastructure]]></category>
		<category><![CDATA[disaster recovery]]></category>
		<category><![CDATA[DR]]></category>
		<category><![CDATA[Elastic Block Store]]></category>
		<category><![CDATA[EBS]]></category>
		<category><![CDATA[EBS volume]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[EBS snapshots]]></category>
		<category><![CDATA[Bash script]]></category>
		<category><![CDATA[s3cmd]]></category>
		<category><![CDATA[load balancing]]></category>
		<category><![CDATA[Elastic Load Balancing]]></category>
		<category><![CDATA[ELB]]></category>
		<category><![CDATA[CNAME]]></category>
		<category><![CDATA[A record]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[blacklisting]]></category>
		<category><![CDATA[Elastic IP]]></category>
		<category><![CDATA[reverse DNS]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[Paul Norman]]></category>

		<guid isPermaLink="false">http://blog.mattbrock.co.uk/?p=1894</guid>
		<description><![CDATA[Following our successful migration to Amazon&#8217;s S3 service for media storage and delivery, we decided to move our entire server infrastructure from its traditional data centre colocation to Amazon&#8217;s Elastic Compute Cloud (or &#8216;EC2&#8242;). Using this cloud-based infrastructure instead of &#8230; <a href="http://blog.mattbrock.co.uk/2011/03/29/using-amazons-ec2-cloud-service-to-host-our-entire-web-infrastructure/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1894&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Following our <a href="http://blog.mattbrock.co.uk/2009/06/09/migrating-to-cloud-services-for-delivering-media-content/">successful migration</a> to Amazon&#8217;s <a href="http://aws.amazon.com/s3/">S3</a> service for media storage and delivery, we decided to move our entire server infrastructure from its traditional data centre colocation to Amazon&#8217;s <a href="http://aws.amazon.com/ec2/">Elastic Compute Cloud (or &#8216;EC2&#8242;)</a>. Using this cloud-based infrastructure instead of data centre colocation provides two main benefits for us. </p>
<p>Firstly, EC2 is much more flexible than traditional colocation. Our infrastructure can now be expanded or altered, quite radically if necessary, in hours or even minutes, just by typing a few commands or clicking a few buttons. Previously, making similar changes would have taken weeks of planning, ordering, delivery, physical installation, software installation, etc.</p>
<p>Secondly, EC2 works out cheaper. EC2 server instances tend to work out cheaper than their physical colocation equivalents, especially when you&#8217;re able to plan ahead with <a href="http://aws.amazon.com/ec2/pricing/">pricing</a> by using Amazon&#8217;s &#8216;Reserved&#8217; pricing instead of their standard &#8216;On-Demand&#8217; pricing. Also, because of EC2&#8242;s flexibility, it&#8217;s only ever necessary to run precisely the infrastructure required at the present moment, so you&#8217;re never paying for more than you need. With a traditional colocation setup, the lack of flexibility means that you will always have more hardware than you need at the present moment in order to cope with possible traffic spikes, hardware failures, etc., and that extra hardware increases the cost even further.</p>
<p>Getting up and running with EC2 is pretty straightforward. You just need to provide payment details, set up security details, and then you&#8217;re free to fire up server instances and try it out. There are various instance types to choose from depending on the hardware spec you need. Much of this can now be done via the <a href="http://aws.amazon.com/console/">Amazon Web Services (&#8216;AWS&#8217;) Management Console</a>, although you can also install the <a href="http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/index.html?setting-up-your-tools.html">EC2 command line tools</a> in order to operate EC2 via the CLI. I prefer using the CLI, probably because I&#8217;ve been doing it that way for longer, but also I guess there are still some things you can do via the CLI which you can&#8217;t do via the AWS Management Console.</p>
<p>Any decent system administrator will want to set up and configure instances according to his own tastes and requirements, and the best way to do this is to start an instance from an image that&#8217;s closest to what you want, then modify it accordingly, then create your own image from that running instance. I originally started up an instance from a CentOS image provided by <a href="http://www.rightscale.com/">RightScale</a>, then modified it heavily according to my own preferences, then created an image of my own from it. This image is what I called the &#8216;base&#8217; image. </p>
<p>I then created several different instance types for each of the different types of servers we have in our infrastructure. For each of these I started from the &#8216;base&#8217; image, installed the applications required for that instance type, then created a new image from it, so that I ended up with several images: one for web server instances, another for mail server instances, and so on. Each instance type has a certain set of events which need to occur when that instance is first run, e.g. working out its own external hostname, setting up certain directories that are needed, etc., and for this I have a startup script in <i>/etc/rc.d/init.d</i> on each instance which works out whether it&#8217;s a brand new instance and, if so, performs all these tasks.</p>
<p>Once all the required instance types have been created and made available as images which can be started as required, it&#8217;s almost possible to start up a full web application infrastructure with all the components required for it. However, there are a few extra things to think about first.</p>
<p>Firstly, it&#8217;s necessary to consider disaster recovery. Conveniently, most of our instances do not contain any unique data which would be missed if the instance died, and if an instance dies then it&#8217;s normally just a case of firing up a new one to take its place. Obviously requirements will vary from one company to another, but in our case only the database instance contains unique data, i.e. the live database. I solved the disaster recovery requirement for the database instance by utilising an AWS storage solution called <a href="http://aws.amazon.com/ebs/">Elastic Block Store (or &#8216;EBS&#8217;)</a>. An EBS volume is a storage volume which can be connected to a running instance and which can also be snapshotted. So, all the data for our live database is on an EBS volume connected to the database instance, and this gets backed up and snapshotted every night. I have a Bash script which does this automatically from cron, and which also removes any shapshots older than 28 days. </p>
<p>Therefore, if the database instance dies, I can just fire up a new instance and connect the EBS volume to the new instance. In the unlikely event that the EBS volume dies, I can just create a new one from the latest snapshot and connect it to the database instance. This is therefore a very handy DR solution for the live database, and EBS volumes have the added bonus of being faster than the standard instance-based storage, which is obviously ideal for a database.</p>
<p>All instance images and EBS snapshots are stored on S3. S3 is an exceptionally safe form of storage, so the chances of anything getting lost on it are incredibly low, and this very low level of risk might be reassurance enough for many companies. In our case, however, I&#8217;m exceptionally paranoid so I also take backups of everything we have on S3 (including all our media which is <a href="http://blog.mattbrock.co.uk/2009/06/09/migrating-to-cloud-services-for-delivering-media-content/">also stored there</a>). Every month I use the rsync-style functionality within the very handy <a href="http://s3tools.org/s3cmd">s3cmd</a> tool to incrementally backup all our S3 buckets to a disk on a server in our office.</p>
<p>Another consideration is how to load balance the front-end servers. Amazon provide a great solution for this called <a href="http://aws.amazon.com/elasticloadbalancing/">Elastic Load Balancing</a>. This can be used to quickly and easily create a load balancer which can be configured to distribute whatever traffic you like across whichever instances you need. It even has support for sticky sessions. The only problem I&#8217;ve found with ELB is that it requires you to point a CNAME at the load balancer rather than an A record, which means that you can&#8217;t use root domains (i.e. apple.com instead of www.apple.com) because the DNS spec does not allow a root domain to be a CNAME. There are various hacks to get around this, but none of them are perfect, and it&#8217;s a problem I hope Amazon will solve soon. In the meantime, <a href="https://forums.aws.amazon.com/thread.jspa?threadID=32044">this thread</a> in the AWS developer forums gives more information.</p>
<p>It&#8217;s also necessary to consider the delivery of email. Unfortunately, due to the ease with which server infrastructures can be created on EC2, a lot of spammers use it to send email, which means that EC2 IP addresses are heavily blacklisted. For each EC2 instance you wish to send email from, therefore, you need to follow a process which helps Amazon to ensure that you&#8217;re not sending spam. Firstly, you need to assign an Elastic IP to the instance. An Elastic IP is an IP address you can request and then keep for your own use, assigning it to whichever instance you like at any given time instead of using whichever IP address that instance happened to have by default. Once the Elastic IP is assigned to the mail server instance, you just need to <a href="https://aws-portal.amazon.com/gp/aws/html-forms-controller/contactus/ec2-email-limit-rdns-request">tell Amazon</a> to set up reverse DNS for that Elastic IP and remove its email sending limitations. This process works well, and we haven&#8217;t had any problems sending mail from our mail server instance since completing it.</p>
<p>As with the general EC2 functions, EBS, ELB and Elastic IPs can be controlled via the AWS Management Console, but the CLI tools tend to be more powerful than the console. CLI commands for EBS and Elastic IPs are included within the EC2 command line tools, but ELB has <a href="http://aws.amazon.com/developertools/2536?_encoding=UTF8&amp;jiveRedirect=1">its own set of CLI tools</a>.</p>
<p>The actual migration of our infrastructure to EC2 was similar to other infrastructure migrations I&#8217;ve done in the past, but with the added bonus of EC2&#8242;s flexibility. This means that you can set up the infrastructure roughly how you think it will need to be, and then tweak it as you go along by starting and stopping instances, changing instance types, etc., instead of having to predict things as best you can then hope for the best. Since the migration, our entire infrastructure has been successfully running in the cloud for several months, and we continue to be very happy with Amazon Web Services. We closed our account with our colo provider some time ago, then sold all our physical servers.</p>
<p>For those of you who haven&#8217;t yet started using EC2, or who haven&#8217;t got very far with it yet, lots of useful details on the practicalities of hosting on EC2 can be found in <a href="http://www.paul-norman.co.uk/2011/02/hosting-a-website-on-amazon-ec2/">this excellent series of blog posts</a> written by my friend Paul Norman. </p>
<p>There&#8217;s a lot more you can do with EC2 which I haven&#8217;t covered, but hopefully this post gives an idea of how easy it is to set up a web infrastructure on there, and by reading the documentation and following the updates from Amazon, you can easily work out which additional details you need.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbrocksblog.wordpress.com/1894/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbrocksblog.wordpress.com/1894/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbrocksblog.wordpress.com/1894/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbrocksblog.wordpress.com/1894/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbrocksblog.wordpress.com/1894/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbrocksblog.wordpress.com/1894/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbrocksblog.wordpress.com/1894/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbrocksblog.wordpress.com/1894/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbrocksblog.wordpress.com/1894/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbrocksblog.wordpress.com/1894/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbrocksblog.wordpress.com/1894/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbrocksblog.wordpress.com/1894/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbrocksblog.wordpress.com/1894/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbrocksblog.wordpress.com/1894/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1894&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.mattbrock.co.uk/2011/03/29/using-amazons-ec2-cloud-service-to-host-our-entire-web-infrastructure/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54c73154f61929ee3eeae4d588553a88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt Brock</media:title>
		</media:content>
	</item>
		<item>
		<title>Using MobileMe and other services to wirelessly sync data between Macs and iOS devices</title>
		<link>http://blog.mattbrock.co.uk/2011/01/13/using-mobileme-and-other-services-to-wirelessly-sync-data-between-macs-and-ios-devices/</link>
		<comments>http://blog.mattbrock.co.uk/2011/01/13/using-mobileme-and-other-services-to-wirelessly-sync-data-between-macs-and-ios-devices/#comments</comments>
		<pubDate>Thu, 13 Jan 2011 12:32:20 +0000</pubDate>
		<dc:creator>Matt Brock</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[iPad]]></category>
		<category><![CDATA[Safari]]></category>
		<category><![CDATA[bookmarks]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[Xmarks]]></category>
		<category><![CDATA[bookmark sync]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[iCal]]></category>
		<category><![CDATA[To Do items]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[MobileMe]]></category>
		<category><![CDATA[Address Book]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[wireless sync]]></category>
		<category><![CDATA[synchronisation]]></category>
		<category><![CDATA[Macs]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[iOS devices]]></category>
		<category><![CDATA[iDevices]]></category>
		<category><![CDATA[iPod Touch]]></category>
		<category><![CDATA[desktop apps]]></category>
		<category><![CDATA[mobile apps]]></category>
		<category><![CDATA[web apps]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[email accounts]]></category>
		<category><![CDATA[email rules]]></category>
		<category><![CDATA[email signatures]]></category>
		<category><![CDATA[smart mailboxes]]></category>
		<category><![CDATA[webmail]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[contacts]]></category>
		<category><![CDATA[Google Contacts]]></category>
		<category><![CDATA[calendars]]></category>
		<category><![CDATA[Calendar]]></category>
		<category><![CDATA[calendar subscriptions]]></category>
		<category><![CDATA[Google Calendar]]></category>
		<category><![CDATA[to do lists]]></category>
		<category><![CDATA[to dos]]></category>
		<category><![CDATA[tasks]]></category>
		<category><![CDATA[task list]]></category>
		<category><![CDATA[Google Tasks]]></category>
		<category><![CDATA[Fluid]]></category>
		<category><![CDATA[Things]]></category>
		<category><![CDATA[Evernote]]></category>
		<category><![CDATA[documents]]></category>
		<category><![CDATA[iDisk]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[Google Docs]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[news sync]]></category>
		<category><![CDATA[RSS]]></category>
		<category><![CDATA[RSS sync]]></category>
		<category><![CDATA[Google Reader]]></category>
		<category><![CDATA[NetNewsWire]]></category>
		<category><![CDATA[Gruml]]></category>
		<category><![CDATA[Reeder]]></category>
		<category><![CDATA[Byline]]></category>
		<category><![CDATA[Google Reader sync]]></category>
		<category><![CDATA[Twitter sync]]></category>
		<category><![CDATA[Echofon]]></category>
		<category><![CDATA[email sync]]></category>
		<category><![CDATA[contacts sync]]></category>
		<category><![CDATA[address book sync]]></category>
		<category><![CDATA[Google Sync]]></category>
		<category><![CDATA[calendar sync]]></category>
		<category><![CDATA[tasks sync]]></category>
		<category><![CDATA[sync to do items]]></category>
		<category><![CDATA[notes sync]]></category>
		<category><![CDATA[document sync]]></category>
		<category><![CDATA[iDisk sync]]></category>
		<category><![CDATA[BusyToDo]]></category>

		<guid isPermaLink="false">http://blog.mattbrock.co.uk/?p=1857</guid>
		<description><![CDATA[I make extensive use of several Macs and an iPhone, I like using desktop and mobile apps in preference to web apps, and it would drive me mad if I couldn&#8217;t keep data constantly and wirelessly in sync between my &#8230; <a href="http://blog.mattbrock.co.uk/2011/01/13/using-mobileme-and-other-services-to-wirelessly-sync-data-between-macs-and-ios-devices/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1857&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I make extensive use of several Macs and an iPhone, I like using desktop and mobile apps in preference to web apps, and it would drive me mad if I couldn&#8217;t keep data constantly and wirelessly in sync between my apps on all my devices. I&#8217;m constantly trying to find the best ways of doing this, so I thought I&#8217;d share my methods for the benefit of all. This applies to anyone with one or more Macs, iPhones, iPads and iPod Touches.</p>
<p>As I have a <a href="http://www.me.com/">MobileMe</a> account, there is a heavy focus on that service, but MobileMe does cost a significant amount of money each year which may not be ideal for everyone, so I&#8217;ve given alternatives wherever possible. </p>
<h3>Email</h3>
<p>Email is the first of several things that I use MobileMe for. On the whole, MobileMe provides a decent, reliable email service with plenty of storage, and it works very smoothly with Mail on iOS and Mac (as you would expect). Also, the MobileMe System Preference enables you to sync all your mail accounts, rules, signatures and smart mailboxes across all your Macs, saving you a lot of configuration hassle. Additionally, MobileMe webmail is very nice for those rare occasions where it&#8217;s needed.</p>
<p>A free alternative is <a href="http://mail.google.com/">Gmail</a>, but this doesn&#8217;t work as nicely as MobileMe in Mail on Mac or iOS &#8211; in fact it&#8217;s pretty messy in Mail on Mac &#8211; plus you can&#8217;t automatically sync your mail accounts, rules, signatures and smart mailboxes across all your Macs.</p>
<h3>Contacts</h3>
<p>I&#8217;m always amazed when I receive one of those Facebook updates from a friend saying that they&#8217;ve lost or changed their phone, and could everyone please contact them to remind them of their number? Now that we all use multiple computers and smartphones, surely nobody should have to manually re-add all their contacts into their new phone.</p>
<p>I use MobileMe to keep contacts synchronised automatically and wirelessly between Address Book on my Macs and Contacts on my iPhone. It works beautifully. </p>
<p>If you&#8217;re using Gmail for email then you&#8217;ll presumably want to access your <a href="http://contacts.google.com/">Google Contacts</a>. You can do this from iOS with Google Sync, which works OK. It&#8217;s harder to get Google Contacts working with Address Book on Mac, though. It generally seems to be pretty glitchy and, at least for certain versions of Address Book, the sync will only occur when you physically connect and sync your iPhone, which is pretty silly. On the whole, this is a somewhat messy and undesirable option from what I&#8217;ve seen.</p>
<h3>Calendars</h3>
<p>Again, I use MobileMe to keep my calendars in sync, and it does a great job of keeping calendar events synchronised across iCal on my Macs and Calendar on iPhone. As well as my regular calendars, I also subscribe to calendars on other sites such as Last.fm, and MobileMe keeps all these calendar subscriptions in sync too, both on my Macs and my iPhone. It even maintains the proper calendar colours across all my devices! Excellent stuff.</p>
<p>The obvious free alternative here is <a href="http://calendar.google.com/">Google Calendar</a>. Using Google Sync this works reasonably well with iPhone, but getting synced with iCal on Mac is fairly complicated and potentially rather unreliable. Also, as far as I am aware, Google Sync doesn&#8217;t provide any way of letting you sync calendars you&#8217;ve subscribed to on other sites. Again, not a great solution.</p>
<h3>To Do Items</h3>
<p>MobileMe infuriated me for quite some time with its inability to sync To Do Items from my Macs to my iPhone. However, the new MobileMe calendar enables third-party developers to make apps which &#8216;plug in&#8217; to the MobileMe calendar to fill in the missing gaps. One such app which has recently been created for iOS is <a href="http://www.busymac.com/busytodo/">BusyToDo</a>. I&#8217;ve just started making use of this app and I can report that it works wonderfully and is fantastic value for money. I can now sync my To Do Items back and forth between my iPhone and iCal on my Macs, and because I make extensive use of &#8216;to do lists&#8217; I&#8217;m extremely pleased about this.</p>
<p>If you&#8217;re not a MobileMe subscriber, the best solution I&#8217;ve found is to use Google Tasks, which is free. On iPhone, iPad or iPod Touch, go to <a href="http://gmail.com/tasks">gmail.com/tasks</a> in Safari, then just log in with your Google account and you&#8217;re ready to go. If you click the arrow at the bottom and choose &#8216;Add to Home Screen&#8217;, it will create a nice Google Tasks icon so it can be accessed like a regular app.</p>
<p>Unfortunately, setting up Google Tasks as a Mac app is a little more complicated, but it&#8217;s not <b>too</b> complicated and it works well when it&#8217;s done. The first thing to do is download and install <a href="http://fluidapp.com/">Fluid</a>, a very handy program which enables you to turn web apps into Mac desktop apps. Once installed, launch Fluid to create a new &#8216;Site Specific Browser&#8217;. The URL should be <a href="https://mail.google.com/tasks/ig">https://mail.google.com/tasks/ig</a> and the Name should be &#8216;Google Tasks&#8217;, then click Create. You can then go into your Applications folder and run Google Tasks just like a regular app, logging in with your Google account to get to your tasks. To make it look a bit nicer in your Dock, you might want to add a more appropriate icon. I suggest downloading the excellent Fluid Mac Icons from <a href="http://fairheadcreative.com/goodies">Fairhead Creative Goodies page</a> (and double click to unzip it once it&#8217;s downloaded). Then go into Preferences for your Google Tasks app, click the Change button next to &#8216;Application icon&#8217;, and select the &#8216;Gtasks-Icon.rsrc&#8217; from the ones you just downloaded. You might need to restart the app and possibly re-add it to your Dock for the new icon to take effect. </p>
<p>When the app is running, you should see something which looks like this:</p>
<p><img src="http://mattbrocksblog.files.wordpress.com/2011/01/picture-4.png?w=300" width="300" /></p>
<p>The only problem with this solution is that it doesn&#8217;t work when you don&#8217;t have any Internet access, but in practice I haven&#8217;t found that too much of a problem. </p>
<p>There is also a task list management application called <a href="http://culturedcode.com/things/">Things</a>, but that&#8217;s stupidly overpriced for a glorified task list in my opinion, and it doesn&#8217;t even do over the air sync between iOS and multiple Macs.</p>
<h3>Notes</h3>
<p>I make extensive use of notes for keeping lists of music and films I want to get, making meeting agendas and action lists, writing down ideas for songs, and all sorts of other random things. Notes are, therefore, pretty important for me, and I use MobileMe to keep my notes synced between Mail on Mac and the Notes app on iPhone. In my opinion it&#8217;s a bit odd having notes in a mail application, but there we go; it seems to do the job fine, and it helps to keep as many things as possible within MobileMe, which is neater for me.</p>
<p>If you don&#8217;t mind in-app adverts and a limited amount of storage for syncing data, a free alternative to consider is <a href="http://www.evernote.com/">Evernote</a>. You can install the Evernote app on multiple Macs and iOS devices and it does a fair job of keeping things in sync wirelessly. I found, however, that the wireless sync on the iPhone was pretty ropey, but they may have improved it since then. One benefit of Evernote is that it allows many types of media as well as just written notes, so you can take a photo with your iPhone and use that as a note, or you can save a web address from Safari and use that as a note, etc. That&#8217;s quite cool. </p>
<h3>Documents</h3>
<p>It&#8217;s obviously very useful to have your documents kept in sync between all your devices. I use MobileMe&#8217;s iDisk for this. On my Macs I choose the option to sync my iDisk, which keeps a local copy of the iDisk on that Mac to speed things up. On my iPhone I use the iDisk app which enables me to view documents (though, annoyingly, it doesn&#8217;t work with OpenOffice documents) and share them. In general, this solution works well for me.</p>
<p>A popular alternative is <a href="http://www.dropbox.com/">Dropbox</a>, which has apps for Mac and iOS. When I&#8217;ve used Dropbox I&#8217;ve found it to be a little clunky, but many people seem very happy with it. Dropbox is free for a limited amount of storage, but prices increase significantly when you add additional storage. Another solution to consider is <a href="http://docs.google.com/">Google Docs</a>, which allows you to edit documents in the browser on both Macs and iOS devices. As far as I know there are no desktop apps for it, although you could use Fluid to make a desktop app out of it like we did with Google Tasks (above). Google Docs is free, however.</p>
<h3>Bookmarks</h3>
<p>I depend quite heavily on bookmarks and find it frustrating when I&#8217;m using a browser which doesn&#8217;t have all my bookmarks in it. By far the simplest way of dealing with this problem is to use Safari on all your Macs and iOS devices and sync bookmarks between all of them using MobileMe. This works well for me because I have a MobileMe account and I consider Safari to be a decent browser.</p>
<p>It&#8217;s not easy finding alternatives to this system. Other browsers offer free ways of keeping bookmarks in sync, e.g. Google Chrome features a bookmark sync facility using your Google account, but that only works with Chrome on the desktop and will not sync your bookmarks to Safari on your iPhone/iPad/iPod Touch. If you use MobileMe but you prefer to avoid Safari on the desktop, you can get around this by using <a href="http://www.xmarks.com/">Xmarks</a> to sync your bookmarks from your preferred browser to Safari on the desktop, then use MobileMe to sync from desktop Safari to mobile Safari &#8211; this is a messy solution, but it does work.</p>
<h3>News</h3>
<p>RSS is a fantastic way of keeping up to date with your favourite news sites, and it becomes even more useful if you can keep your RSS feeds in sync between all your devices. You can sync RSS feeds over MobileMe but in order to do this you have to use the RSS facilities in Safari which are fiddly and limited, and you can&#8217;t sync to iOS, so all in all this is a pretty poor solution.</p>
<p><a href="http://reader.google.com/">Google Reader</a> is the best thing to use here, and it&#8217;s free. I don&#8217;t much like using the Google Reader web app on my Macs, but there are Mac desktop apps which will sync well with Google Reader and provide a good all-round experience. I use <a href="http://netnewswireapp.com/">NetNewsWire</a>, which has always worked well for me, although I&#8217;m not keen on the in-app adverts. There are other options on Mac such as <a href="http://www.grumlapp.com/">Gruml</a>, but I&#8217;ve never felt any huge need to switch.</p>
<p>NetNewsWire is also available on iOS but, like many others, I&#8217;ve found it to be increasingly unusable on my iPhone. There are much better alternative (paid) apps which many people swear by such as Reeder and Byline, but at the moment I actually just use Google Reader in Safari because it&#8217;s free, it has a decent mobile interface interface, and you can create an app icon for it on your home screen just as we did for Google Tasks (above).</p>
<h3>Twitter</h3>
<p>Yes, it&#8217;s actually possible to keep Twitter in sync across multiple devices. If you&#8217;re a fairly heavy Twitter user, you might find it quite annoying that your desktop Twitter app doesn&#8217;t know about all the tweets, direct messages, replies, etc. that you dealt with earlier on your iPhone. You can solve this problem by using <a href="http://www.echofon.com/">Echofon</a> on all your Macs and iOS devices. It&#8217;s not perfect, but it does a reasonable job of remembering where you were on your iPhone and transferring that across to your Mac, and vice versa. Echofon is free if you don&#8217;t mind seeing in-app adverts.</p>
<p><b>Edit (08/02/11):</b> modified &#8216;To Do Items&#8217; to reflect the availability of BusyToDo for syncing MobileMe To Do Items to iOS.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbrocksblog.wordpress.com/1857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbrocksblog.wordpress.com/1857/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbrocksblog.wordpress.com/1857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbrocksblog.wordpress.com/1857/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbrocksblog.wordpress.com/1857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbrocksblog.wordpress.com/1857/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbrocksblog.wordpress.com/1857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbrocksblog.wordpress.com/1857/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbrocksblog.wordpress.com/1857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbrocksblog.wordpress.com/1857/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbrocksblog.wordpress.com/1857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbrocksblog.wordpress.com/1857/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbrocksblog.wordpress.com/1857/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbrocksblog.wordpress.com/1857/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1857&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.mattbrock.co.uk/2011/01/13/using-mobileme-and-other-services-to-wirelessly-sync-data-between-macs-and-ios-devices/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54c73154f61929ee3eeae4d588553a88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt Brock</media:title>
		</media:content>

		<media:content url="http://mattbrocksblog.files.wordpress.com/2011/01/picture-4.png?w=433" medium="image" />
	</item>
		<item>
		<title>2010: the year of iPhoneography</title>
		<link>http://blog.mattbrock.co.uk/2011/01/02/2010-the-year-of-iphoneography/</link>
		<comments>http://blog.mattbrock.co.uk/2011/01/02/2010-the-year-of-iphoneography/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 20:05:53 +0000</pubDate>
		<dc:creator>Matt Brock</dc:creator>
				<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://blog.mattbrock.co.uk/?p=1848</guid>
		<description><![CDATA[2010 was, for me, very much about iPhoneography. During the year, iPhoneography seemed to go from a fun, interesting curiosity to a full-blown photography subgenre or even a &#8216;movement&#8217;, and I&#8217;ve become part of a vibrant community of iPhoneographers on &#8230; <a href="http://blog.mattbrock.co.uk/2011/01/02/2010-the-year-of-iphoneography/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1848&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>2010 was, for me, very much about iPhoneography. During the year, iPhoneography seemed to go from a fun, interesting <a href="http://blog.mattbrock.co.uk/2009/08/27/iphone-photography/">curiosity</a> to a full-blown photography subgenre or even a &#8216;movement&#8217;, and I&#8217;ve become part of a vibrant community of iPhoneographers on the Internet who are pushing the boundaries of this medium and sharing their results with each other and the rest of the world. This feels like being part of something quite special, and I&#8217;ve met some cool new people through the community. </p>
<p>Towards the end of the year I created the <a href="http://www.flickr.com/groups/londoniphoneography/">London iPhoneography Group</a> and I&#8217;m hoping to find the time to arrange a meet for the group sometime soon &#8211; it will be great to meet some fellow iPhoneographers in real life. I also produced a <a href="http://www.blurb.com/bookstore/detail/1526782">book</a> of the best iPhone photos I took with my iPhone 3G, and I&#8217;ve received lots of nice feedback from people who have bought the book which makes it really worthwhile. During 2011 I hope to produce a book of photos taken with my iPhone 4. </p>
<p>During 2010 I&#8217;ve been featured in various places and had some success with contests during the year, details of which are available <a href="http://iphoneography.mattbrock.co.uk/info">here</a> (when Tumblr is working). I hope to continue this success in 2011, but the most important thing for me is to keep trying to create interesting iPhone photos and share them with others, and also to keep being inspired by the amazing things other iPhoneographers are doing. Long may it continue!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbrocksblog.wordpress.com/1848/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbrocksblog.wordpress.com/1848/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbrocksblog.wordpress.com/1848/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbrocksblog.wordpress.com/1848/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbrocksblog.wordpress.com/1848/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbrocksblog.wordpress.com/1848/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbrocksblog.wordpress.com/1848/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbrocksblog.wordpress.com/1848/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbrocksblog.wordpress.com/1848/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbrocksblog.wordpress.com/1848/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbrocksblog.wordpress.com/1848/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbrocksblog.wordpress.com/1848/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbrocksblog.wordpress.com/1848/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbrocksblog.wordpress.com/1848/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1848&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.mattbrock.co.uk/2011/01/02/2010-the-year-of-iphoneography/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54c73154f61929ee3eeae4d588553a88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt Brock</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up and maintaining Linux software RAID on an Apple Xserve G5 with Yellow Dog Linux</title>
		<link>http://blog.mattbrock.co.uk/2010/12/21/setting-up-and-maintaining-linux-software-raid-on-an-apple-xserve-g5-with-yellow-dog-linux/</link>
		<comments>http://blog.mattbrock.co.uk/2010/12/21/setting-up-and-maintaining-linux-software-raid-on-an-apple-xserve-g5-with-yellow-dog-linux/#comments</comments>
		<pubDate>Tue, 21 Dec 2010 18:08:21 +0000</pubDate>
		<dc:creator>Matt Brock</dc:creator>
				<category><![CDATA[SysAdmin]]></category>
		<category><![CDATA[/proc/mdstat]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Apple bootstrap]]></category>
		<category><![CDATA[Apple Partition Map]]></category>
		<category><![CDATA[Finnix]]></category>
		<category><![CDATA[G5]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mac-fdisk]]></category>
		<category><![CDATA[md]]></category>
		<category><![CDATA[mdadm]]></category>
		<category><![CDATA[mkofboot]]></category>
		<category><![CDATA[New World Mac]]></category>
		<category><![CDATA[notifications]]></category>
		<category><![CDATA[partition map]]></category>
		<category><![CDATA[partition scheme]]></category>
		<category><![CDATA[partitioning scheme]]></category>
		<category><![CDATA[partitions]]></category>
		<category><![CDATA[PowerPC]]></category>
		<category><![CDATA[RAID 1]]></category>
		<category><![CDATA[RAID arrays]]></category>
		<category><![CDATA[Red Hat]]></category>
		<category><![CDATA[software RAID]]></category>
		<category><![CDATA[Xserve]]></category>
		<category><![CDATA[yaboot]]></category>
		<category><![CDATA[yaboot.conf]]></category>
		<category><![CDATA[ybin]]></category>
		<category><![CDATA[YDL]]></category>
		<category><![CDATA[Yellow Dog Linux]]></category>

		<guid isPermaLink="false">http://blog.mattbrock.co.uk/?p=1826</guid>
		<description><![CDATA[Despite certain frustrations with our Apple Xserve G5s, I&#8217;ve found that they make decent Linux servers, especially considering their age. Recently I wanted to repurpose one as a development server, and in that role I really wanted disk redundancy for &#8230; <a href="http://blog.mattbrock.co.uk/2010/12/21/setting-up-and-maintaining-linux-software-raid-on-an-apple-xserve-g5-with-yellow-dog-linux/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1826&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Despite <a href="http://blog.mattbrock.co.uk/2008/07/09/apple-xserve-g5-frustration/">certain frustrations</a> with our Apple Xserve G5s, I&#8217;ve found that they make decent Linux servers, especially considering their age. Recently I wanted to repurpose one as a development server, and in that role I really wanted disk redundancy for added protection of the data. Unfortunately there&#8217;s no RAID controller in these servers, so software RAID is the only option. Originally RAID wasn&#8217;t crucial and I gave up on software RAID as it seemed too complicated to justify the time spent figuring out how to do it. This time, however, it was more important and I was determined to get software RAID functioning.</p>
<p>Never having used software RAID before, this was quite a steep learning curve for me, especially given that the Xserve G5 is a &#8216;New World&#8217; class of Mac, which means that it uses the Apple Partition Map partitioning scheme, which is fairly rare in a Linux world that is largely involved with master boot records. I use <a href="http://www.yellowdoglinux.com/">Yellow Dog Linux</a> on our Xserves because it&#8217;s based around Red Hat, and we use Red Hat-based distributions as standard. Yellow Dog Linux 6.2 actually makes it very easy to set up RAID as part of the installation process, although there are one or two aspects I prefer to do a different way as a result of experimenting with this process. Also, manipulating existing arrays and making new disks bootable took me some time to figure out.</p>
<p>So, let&#8217;s discuss the method which ended up working for me. The Xserve has three disks, and I wanted two of the disks to contain RAID 1 partitions with the third disk as a spare. I used RAID 1 because I wanted a RAID level which would continue to work well even if only one disk was left functioning on the server. RAID 5 requires a minimum of two disks with Linux software RAID, and it&#8217;s slower than RAID 1, so it&#8217;s generally less desirable for me. Also, you can&#8217;t use a RAID 5 array for your <i>/boot</i> partition, so since you&#8217;ve got to use RAID 1 for <i>/boot</i> then I figure you might as well use it for everything else.</p>
<p>Before starting the Yellow Dog Linux installation, I firstly used mac-fdisk in <a href="http://www.finnix.org/">Finnix</a> to partition the disks myself, because this gives more control over the process, and I found that odd and unhelpful things happened when trying to do the initial partitioning in Yellow Dog Linux. Finnix, incidentally, is a superb live sysadmin Linux distribution which still has PowerPC support in version 93.0 and is thus ideal for working on Xserves. mac-fdisk must be used because it&#8217;s the only Linux partitioning tool I&#8217;m aware of which understands the weird partition types needed for things to function on a New World Mac.</p>
<p>So, boot into Finnix, for which you&#8217;ll need to choose &#8216;finnix64&#8242; on these G5 machines. Next we&#8217;ll do the partitioning. In mac-fdisk, for each of your disks, firstly press I to initialise the partition scheme. This will remove all existing partitions then create the partition map, which is a special partition that must always be the first partition on each disk. Then press B to create the special Apple bootstrap partition, which should ideally be the second partition on the disk (specify 64 as the first block for this partition so that it follows on from the first partition). Then press C to add each Linux partition that you will use as part of your RAID partitions. I normally make the first one of these the <i>/boot</i> partition with a size of 100MB, then the second one the <i>/</i> partition to use up most of the disk, then finally a partition to use as swap. Don&#8217;t forget to press W to write the new partition map. After that, make a note of the exact scheme and partition sizes you have used on the first disk, then do the same on the other two disks.</p>
<p>Next, boot off the Yellow Dog Linux install CD. When you get to the partitioning screen, choose &#8216;Create custom layout&#8217; and continue. You should now see a representation of the partitioning scheme you just created within Finnix. It will probably say &#8216;ext3&#8242; or &#8216;Foreign&#8217; for each of the Linux partitions you created. Edit each of these on <i>/dev/sda</i> and <i>/dev/sdb</i> these so they are all formatted as &#8216;software RAID&#8217;. Just leave <i>/dev/sdc</i> alone for now &#8211; we&#8217;re not going to do anything with this third disk as it&#8217;s just there as a spare. Actually, Yellow Dog Linux does allow you to set this up as a hot spare for your RAID array partitions, but I found in practice that this seemed to cause more problems than it solved, so I avoid that now.</p>
<p>Then click the &#8216;RAID&#8217; button and choose to &#8216;Create a RAID device&#8217;. Assuming you&#8217;ve followed a similar partitioning scheme to me, choose &#8216;/boot&#8217; as the mount point, set the RAID level to &#8216;RAID1&#8242;, and tick the boxes next to &#8216;sda3&#8242; and &#8216;sdb3&#8242;. This will create the RAID device <i>/dev/md0</i> for the <i>/boot</i> partition. Then do the same for the other RAID partitions you need, including the swap partition (if you have one). Then proceed with the rest of the install, configuring the other options as you want them.</p>
<p>Once Yellow Dog Linux is installed, boot your Xserve and log in. When you do <code>watch cat /proc/mdstat</code>, you should see information about your RAID arrays showing a healthily active state and containing the disk partitions you specified in the installer. Some of your RAID partitions may still be resyncing; don&#8217;t worry about this &#8211; it&#8217;s just a normal part of the process. So now you can start using your Xserve, and you won&#8217;t need to worry about the RAID setup again until one of the disks fails.</p>
<p>In Yellow Dog Linux, when a disk fails, you will get notified via email because mdadm is automatically started up at boot time as a daemon in monitor mode. For these notifications to work you just need to make sure you have your root email from this server going somewhere useful. When you get a notification like this, you&#8217;ll see that the partitions on the failed disk will be marked as failed, e.g. if it&#8217;s the second disk which has failed then <code>mdadm --detail /dev/md0</code> will show that <i>/dev/sda3</i> is active but that <i>/dev/sdb3</i> has failed. You should now remove all the failed partitions with <code>mdadm /dev/md0 -r failed</code> and equivalent for each of your RAID partitions. Then shut the machine down, take out the failed disk, and replace it with the third disk which we allocated as a spare. It&#8217;s best to put the spare disk into the slot where the failed disk was, so that we don&#8217;t encounter any confusion with drive ordering. Then start the server up again.</p>
<p>As we already partitioned this new disk earlier on, we should be easily able to add the partitions to our RAID arrays with <code>mdadm /dev/md0 --add /dev/sdb3</code> and equivalent for each partition. We can then watch the new partitions being synchronised into the arrays with <code>watch cat /proc/mdstat</code>. Once that&#8217;s done, we&#8217;re back up and running with full redundancy and only a tiny amount of downtime to swap the disks around.</p>
<p>We still need to make the new disk bootable, however, so that we can boot the server if the original disk fails. This is a case of setting up the yaboot boot loader properly on the Apple bootstrap partition on the new disk. As you may remember, the bootstrap partition is the second partition on the disk which we created as part of the partitioning process. For the sake of these examples we&#8217;ll assume the new disk is the second disk (<i>/dev/sdb</i>), but if it&#8217;s the first disk then just change <i>/dev/sdb</i> to <i>/dev/sda</i> in each example. </p>
<p>So, firstly we need to make sure that <i>/etc/yaboot.conf</i> is set up correctly. The &#8216;boot&#8217; parameter must be set for the correct partition on the correct drive, so in this case this line should be <code>boot=/dev/sdb2</code>. There shouldn&#8217;t be any need to edit anything else in this file. We then format the bootstrap partition with <code>mkofboot -b /dev/sdb2</code>. And then we install the yaboot bootloader with <code>ybin -b /dev/sdb2</code>. You should then be able to boot off the new disk, although it&#8217;s worth testing that just to be on the safe side.</p>
<p>We can now add a new third disk to the Xserve and partition it in the same way as we did earlier, so this disk will act as a spare next time a disk failure occurs. And there we have it &#8211; full disk redundancy on an Apple Xserve G5 using Linux software RAID.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mattbrocksblog.wordpress.com/1826/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mattbrocksblog.wordpress.com/1826/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/mattbrocksblog.wordpress.com/1826/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/mattbrocksblog.wordpress.com/1826/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/mattbrocksblog.wordpress.com/1826/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/mattbrocksblog.wordpress.com/1826/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/mattbrocksblog.wordpress.com/1826/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/mattbrocksblog.wordpress.com/1826/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/mattbrocksblog.wordpress.com/1826/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/mattbrocksblog.wordpress.com/1826/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/mattbrocksblog.wordpress.com/1826/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/mattbrocksblog.wordpress.com/1826/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/mattbrocksblog.wordpress.com/1826/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/mattbrocksblog.wordpress.com/1826/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.mattbrock.co.uk&amp;blog=11193426&amp;post=1826&amp;subd=mattbrocksblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.mattbrock.co.uk/2010/12/21/setting-up-and-maintaining-linux-software-raid-on-an-apple-xserve-g5-with-yellow-dog-linux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/54c73154f61929ee3eeae4d588553a88?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Matt Brock</media:title>
		</media:content>
	</item>
	</channel>
</rss>
