<?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"
	>

<channel>
	<title>Westbright</title>
	<atom:link href="http://www.westbright.com/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.westbright.com/blog</link>
	<description>A blog about developing software by Matt West.</description>
	<pubDate>Tue, 23 Dec 2008 08:35:05 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>NSManchester November Meeting</title>
		<link>http://www.westbright.com/blog/2008/11/nsmanchester-november-meeting/</link>
		<comments>http://www.westbright.com/blog/2008/11/nsmanchester-november-meeting/#comments</comments>
		<pubDate>Thu, 06 Nov 2008 22:41:34 +0000</pubDate>
		<dc:creator>mattwestbright</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[iphone]]></category>

		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.westbright.com/blog/?p=14</guid>
		<description><![CDATA[On Wednesday night I attended the NSManchester Cocoa programming meeting organized by Dave Verwer of Shiny Developments. NSManchester is a sort-of Cocoaheads Manchester chapter. I was fortunate enough to meet Dave and Andrew at WWDC earlier this year.
The venue was MDDA in Portland Street (1 minute up from the McDonald&#8217;s on Oxford Road). Its a [...]]]></description>
			<content:encoded><![CDATA[<p>On Wednesday night I attended the <a href="http://www.nsmanchester.com">NSManchester</a> Cocoa programming meeting organized by <a href="http://shinydevelopment.com/about">Dave Verwer of Shiny Developments</a>. NSManchester is a sort-of Cocoaheads Manchester chapter. I was fortunate enough to meet Dave and Andrew at WWDC earlier this year.</p>
<p>The venue was <a href="http://www.manchesterdda.com/">MDDA</a> in Portland Street (1 minute up from the McDonald&#8217;s on Oxford Road). Its a very nice contemporary venue.</p>
<p>Dave gave a good presentation on iPhone development. He presented a simple app show Twitter posts in a UITableView. We also talked about publishing to the AppStore. Unfortunately I haggled/added/cross-examined more than the other attendees (sorry Dave). Most of us went to the pub afterwards. We geeked out, debugged a bit, and I demonstrated my iPhone game Zombies to a few people.</p>
<p>I must admit I don&#8217;t use the fashionable social networking tools on the web much, but I do love meeting people in real life. Its fun to gauge reactions, bounce ideas around, see other sides of the coin.</p>
<p>The plan is to make NSManchester a regular event for the first Thursday each month, so if you&#8217;re in the North of England and interested in iPhone or Mac development please come along. The next one is Thursday 4 December 2008. Have a look at the group&#8217;s <a href="http://groups.google.com/group/nsmanchester/">Google Group</a> and <a href="http://upcoming.yahoo.com/group/4588/">Upcoming</a> pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.westbright.com/blog/2008/11/nsmanchester-november-meeting/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Thoughts on WWDC 2008</title>
		<link>http://www.westbright.com/blog/2008/06/thoughts-on-wwdc-2008/</link>
		<comments>http://www.westbright.com/blog/2008/06/thoughts-on-wwdc-2008/#comments</comments>
		<pubDate>Mon, 16 Jun 2008 10:00:47 +0000</pubDate>
		<dc:creator>mattwestbright</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[iphone]]></category>

		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.westbright.com/blog/?p=10</guid>
		<description><![CDATA[	I&apos;ve had a great time at WWDC this year. The sessions and labs were great, but for me the best part of it was meeting plenty of people. Some I had spoken with on the mailing lists, but mostly I spoke to new people I bumped into the keynote queue or at parties. Plenty of [...]]]></description>
			<content:encoded><![CDATA[<p>	I&apos;ve had a great time at <a href="http://developer.apple.com/wwdc/" title="Apple Worldwide Developer Conference">WWDC</a> this year. The sessions and labs were great, but for me the best part of it was meeting plenty of people. Some I had spoken with on the mailing lists, but mostly I spoke to new people I bumped into the keynote queue or at parties. Plenty of events happened in the evenings. I assumed I would be doing some coding, but I would slump gratefully into my bed each night.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.westbright.com/blog/2008/06/thoughts-on-wwdc-2008/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Fixing PHP PDO after Mac OS X Update</title>
		<link>http://www.westbright.com/blog/2008/06/fixing-php-pdo-after-mac-os-x-update/</link>
		<comments>http://www.westbright.com/blog/2008/06/fixing-php-pdo-after-mac-os-x-update/#comments</comments>
		<pubDate>Wed, 04 Jun 2008 17:10:52 +0000</pubDate>
		<dc:creator>mattwestbright</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[mac]]></category>

		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.westbright.com/blog/?p=8</guid>
		<description><![CDATA[
	A Mac is set up to do web development out of the box, but I decided to build PHP 5 and MySQL 5 from source for a number of reasons. I prefer to use PHP&#8217;s PDO wrapper in my data access layer, not those database specific mysql_* functions. So I followed the instructions at HiveLogic [...]]]></description>
			<content:encoded><![CDATA[<p>
	A Mac is set up to do web development out of the box, but I decided to build <a href="http://www.php.net/downloads.php">PHP 5</a> and <a href="http://dev.mysql.com/downloads/mysql/5.0.html#downloads">MySQL 5</a> from source for a number of reasons. I prefer to use PHP&#8217;s <a href="http://www.php.net/pdo">PDO</a> wrapper in my data access layer, not those database specific <code>mysql_*</code> functions. So I followed the instructions at <a href="http://hivelogic.com/articles/2007/02/ruby-rails-mongrel-mysql-osx">HiveLogic</a> <a href="http://www.procata.com/blog/archives/2007/10/28/working-with-php-5-in-mac-os-x-105/">and</a> <a href="http://www.456bereastreet.com/archive/200711/virtual_hosts_php_and_mysql_on_mac_os_x_105_leopard/">others</a>.
</p>
<p>But when I updated my Mac OS X to 10.5.3 I lost the MySQL PDO configuration. This had also happened when I installed previous 10.5 updates. Fortunately I had kept my configuration in a script. So if you too want to re-configure the PHP PDO for MySQL on your Mac, here is what to do.</p>
<p>Open terminal and <code>cd</code> to you php directory. then run <code>configure</code>:</p>
<pre>
	'./configure' \
	'--prefix=/Users/matt/php' '--with-xsl=/usr' \
	'--with-apxs2=/usr/sbin/apxs' '--with-ldap=/usr' \
	'--with-kerberos=/usr' '--enable-cli' \
	'--with-zlib-dir=/usr' '--enable-trans-sid' \
	'--with-xml' '--enable-exif' '--enable-ftp' \
	'--enable-mbstring' '--enable-mbregex' \
	'--enable-dbx' '--enable-sockets' \
	'--with-iodbc=/usr' '--with-curl=/usr' \
	'--with-config-file-path=/etc' \
	'--sysconfdir=/private/etc' \
	'--with-pdo' \
	'--with-pdo-mysql=/usr/local/mysql/bin/mysql_config' \
	'--with-mysql=/usr/local/mysql' \
	'--with-mysql-sock=/tmp/mysql.sock' \
	'--with-openssl' '--with-xmlrpc' \
	'--without-pear' \
	'--with-soap'
</pre>
<p>	You might want to put that mouthful in a shell script and call it something witty like <code>config-php-pdo.sh</code>. Now run:
</p>
<pre>
	make
</pre>
<p>	then:</p>
<pre>
	sudo make install
</pre>
<p>	Now you should be able to restart apache (from either the command line or from System Preferences &gt; Sharing panel) but that has not worked for me. I had to restart the OS.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.westbright.com/blog/2008/06/fixing-php-pdo-after-mac-os-x-update/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Some Recent History</title>
		<link>http://www.westbright.com/blog/2008/05/some-recent-history/</link>
		<comments>http://www.westbright.com/blog/2008/05/some-recent-history/#comments</comments>
		<pubDate>Mon, 26 May 2008 20:55:46 +0000</pubDate>
		<dc:creator>mattwestbright</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<category><![CDATA[iphone]]></category>

		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.westbright.com/blog/?p=5</guid>
		<description><![CDATA[
Hello. I&#8217;m Matt West. I&#8217;m a programmer living in West Yorkshire in the UK. I am learning how to write applications for the iPhone and iPod Touch, but I want to explain why I want to do that, and how I came to begin that.
An iPod Shuffle
A few years ago I was fortunate enough to [...]]]></description>
			<content:encoded><![CDATA[<p><img src="/img/mattwest-w125xh127.jpg" width="125" height="127" alt="Matt West" class="right" /><br />
Hello. I&#8217;m Matt West. I&#8217;m a programmer living in West Yorkshire in the <acronym title="United Kingdom">UK</acronym>. I am learning how to write applications for the iPhone and iPod Touch, but I want to explain why I want to do that, and how I came to begin that.</p>
<h3>An iPod Shuffle</h3>
<p>A few years ago I was fortunate enough to receive a first generation iPod Shuffle as a gift. This was the third MP3 player I had had, but the two earlier ones were awful to use. The Shuffle&#8217;s good physical design, ease-of-use, and reliability first turned me on to Apple products.</p>
<p>Around that same time I came across <a href="http://www.rubyonrails.org" title="Ruby on Rails">Rails</a> and attended RailsConf in London and saw first hand how people with Mac computers were a happy bunch. So I bought a MacBook, and have enjoyed using it since then.</p>
<h3>Cocoa training course</h3>
<p>Spurred on by the inspirational writing of Mac developers such as <a href="http://www.wilshipley.com/blog/" title="Call Me Fishmeal - Wil Shipley's Blog">Wil Shipley</a> and <a href="http://www.red-sweater.com" title="Red Sweater Blog">Daniel Jalkut</a>, I began learning Cocoa but found it quite tough to learn in snatched moments out of life with my wife and our two young children. I would not say Cocoa is hard, it is a graceful framework. But there is a lot to learn when starting out in Mac development. So I took a week off work (unusual for a contractor I know) in November 2007 to attend the brilliant <a href="http://www.plsys.co.uk/cocoa.htm">Cocoa development course run by Paul and Liz Lynch</a> down in beautiful Old Beaconsfield in Buckinghamshire. The course was a week long, and very intense - there was just me attending. Paul is a good lecturer, and is very knowledgeable and  approachable so makes for a good tutor. I cross-examined him at every stage of the day, every day (the poor man!). Thanks Paul. I recommend this course; I found out about it through seeing the ads on the ADC mailing list.</p>
<h3>Leopard Tech Talk</h3>
<p>
In December I went to the <a href="http://developer.apple.com/events/techtalks/europe.html" title="Apple tour Europe with Leopard Developer Tech Talks">Leopard Tech Talk</a> in Edinburgh, Scotland. It was really nice to meet up with a few people from the very useful and always thought-provoking <a href="http://tech.groups.yahoo.com/group/macsb/">MacSB mailing list / group</a>.</p>
<p>Even though many people are excited about Core Animation, my favourite Leopard feature is the super-fast Spotlight search facility to launch applications, look up words in the dictionary, oh and search for things too. Under Tiger, I used to use LaunchBar and QuickSilver to launch applications using keyboard shortcuts. I have not bothered to install those apps, because I just use Spotlight. It is possible to integrate in to Spotlight by writing an importer for your app. This is called by Spotlight when a user searches for something. Like so much of Mac programming, it nostalgically reminds me of coding for the Palm OS; you would write a routine in your Palm app to respond to a Find launch code.</p>
<h3>iPhone Development</h3>
<p>By the beginning of 2008 I had a small Mac application in development but hadn&#8217;t got as far as I&#8217;d like to with it. Then I was delighted when Apple announced the <acronym title="Software Development Kit">SDK</acronym> for the iPhone and iPod Touch. So I have been busy since then. I must admit its a bit of a struggle because I am still doing Enterprise Java systems for a living during the day.</p>
<p>So I am going to abandon my family once again for a week by going to this year&#8217;s Apple <acronym title="Worldwide Developers Conference">WWDC</acronym>. I am over the moon about it. It will be my first time to California.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.westbright.com/blog/2008/05/some-recent-history/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
