<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>James Mills Blog</title>
	
	<link>http://blog.jamesmills.co.uk</link>
	<description />
	<lastBuildDate>Fri, 04 May 2012 12:28:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/JamesMillsBlog" /><feedburner:info uri="jamesmillsblog" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Refresh Teesside – Exciting time ahead!</title>
		<link>http://feedproxy.google.com/~r/JamesMillsBlog/~3/LnCEZQ_jg5A/</link>
		<comments>http://blog.jamesmills.co.uk/2012/05/04/refresh-teesside-exciting-time-ahead/#comments</comments>
		<pubDate>Fri, 04 May 2012 12:28:45 +0000</pubDate>
		<dc:creator>James Mills</dc:creator>
				<category><![CDATA[Refresh Teesside]]></category>

		<guid isPermaLink="false">http://blog.jamesmills.co.uk/?p=312</guid>
		<description><![CDATA[Refresh Teesside is stronger than ever and is growing at a pace that we never believed it would. The feedback so far has been amazing and it would seem that everyone who has attended an event has gone away and spread the word!

The number of people attending the events has been steady which is unheard of for events like this. Each month we are reaching more and more people and the enthusiasm is growing.

Last month we contacted you to ask you to share the news about the Refresh events, and you did it! The coverage over the last month has been amazing. Thanks to your support we have managed to secure the venue for the foreseeable future. Not only this, but we have managed to secure a sponsor for the next three months which will enable us to offer free food at the next three months at the very least.]]></description>
			<content:encoded><![CDATA[<h1>Thank you</h1>
<p>Refresh Teesside is stronger than ever and is growing at a pace that we never believed it would. The feedback so far has been amazing and it would seem that everyone who has attended an event has gone away and spread the word!</p>
<p>The number of people attending the events has been steady which is unheard of for events like this. Each month we are reaching more and more people and the enthusiasm is growing.</p>
<p>Last month we contacted you to ask you to share the news about the Refresh events, and you did it! The coverage over the last month has been amazing. Thanks to your support we have managed to secure the venue for the foreseeable future. Not only this, but we have managed to secure a sponsor for the next three months which will enable us to offer free food at the next three months at the very least.</p>
<h1>New event format</h1>
<p>This month we hope that we are going to see a slight change in the format of the events.</p>
<p>6 &#8211; 6.30pm : Registration<br />
6.30pm : Welcome &amp; announcements<br />
6.30 &#8211; 7pm : Networking<br />
7 &#8211; 7.30pm : Member spotlight *NEW*<br />
7.30 &#8211; 8pm : Food<br />
8pm : Prize draw<br />
8 &#8211; 9pm : Networking</p>
<p>This new format will see each monthly event focussing on a member of Refresh Teesside. This is open to anyone who has attended an event in the past. The time can be spent teaching, sharing knowledge, advertising, highlighting a service they offer or anything else like this.</p>
<h1>Prize draw and goodies</h1>
<p>So far we have had a prize draw every month which has seen prizes including t-shirts from GitHub and Brightbook, bottles of Champagne from Sharpe Recruitment, key-toppers from Waze, stickers and all sorts of other goodies. Hopefully we can keep this going! Any contributions or ideas would be welcome.</p>
<h1>Wifi access</h1>
<p>For future events we aim to supply free wifi so we encourage you to bring laptops and make the most of it. Live coverage from the event really helps with the buzz of Refresh Teesside and we can show others what they are missing by not attending.</p>
<h1>Future ideas/development</h1>
<p>We just wanted to mention a couple of things looking into the future. We want Refresh Teesside to branch out. We are in discussion with a couple of members about running a workshop event which will see a number of beginners workshops running at the same time possibly in the same location. So far I am talking to people about running workshops on Codeigniter, Ruby on Rails and jQuery. We are also very keen on running a ‘Hack Day’ which will see us all getting together over a set time period to produce a new website for a charity from scratch. More to be discussed at a later date&#8230; please get in touch with your ideas.</p>
<p><a href="http://refreshteesside-may.eventbrite.com/">Signup to the May event now! Wednesday 9th May 2012</a></p>
<p>We look forward to seeing you on Wednesday!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jamesmills.co.uk/2012/05/04/refresh-teesside-exciting-time-ahead/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.jamesmills.co.uk/2012/05/04/refresh-teesside-exciting-time-ahead/</feedburner:origLink></item>
		<item>
		<title>UK Postcode database with lat &amp; long</title>
		<link>http://feedproxy.google.com/~r/JamesMillsBlog/~3/XY5PrzUnW8E/</link>
		<comments>http://blog.jamesmills.co.uk/2012/03/28/uk-postcode-database-with-lat-long/#comments</comments>
		<pubDate>Wed, 28 Mar 2012 08:37:42 +0000</pubDate>
		<dc:creator>James Mills</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[geocode]]></category>
		<category><![CDATA[latitude]]></category>
		<category><![CDATA[longitude]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[postcodes]]></category>

		<guid isPermaLink="false">http://blog.jamesmills.co.uk/?p=305</guid>
		<description><![CDATA[As we all know the full postcode database with all latitude and longitude information is Copyright to Royal Mail. This is annoying. I know there are loads of databases out [...]]]></description>
			<content:encoded><![CDATA[<p>As we all know the full postcode database with all latitude and longitude information is Copyright to Royal Mail. This is annoying. I know there are loads of databases out there which claim to be the full dataset and there are loads of API&#8217;s which will geocode UK postcodes etc. In the past we have used an awesome service called <a href="http://www.postcodeanywhere.co.uk">PostcodeAnywhere</a> which does a great job of address lookup and validation&#8230; but it&#8217;s a paid service&#8230; obviously they have to make money somehow! I have also played with Google API etc. I also think that someone released a dataset on Wikileaks but if I remember rightly this was partial postcodes (only contains the first part of the postcode e.g. TS19).</p>
<p>I was chatting to <a href="http://twitter.com/alexjakass">Alex Akass</a> on skype the other day and he pointed me to the Ordnance Survey website who have just released a full set of UK postcodes in a database as recent as February 2012! The service, called <a href="http://www.ordnancesurvey.co.uk/oswebsite/products/code-point-open/">Code-Point Open (ordnancesurvey.co.uk)</a> contains 2,993,351 rows. This data also looks to be available on the new data.gov.org beta site under the same name <a href="http://data.gov.uk/dataset/os-code-point-open">Code-Point Open (data.gov.uk)</a>.</p>
<p>The data comes in CSV files to split the data up. I created a quick PHP script that looped through these files and put all the postcodes into one database table. All looks good.</p>
<p>This got me thinking. The database comes with &#8216;Postcode&#8217;, &#8216;Eastings&#8217; &amp; &#8216;Northings&#8217; columns. There must be something you can run Eastings and Northings through to get the latitude and longitude. I did a quick Google and found a post by a guy called <a href="http://p2p.wrox.com/c/71541-converting-easting-northing-latitude-longitude.html#post230847">samjudson on this forum</a>.</p>
<p>I searched for my postcode in the database and then ran the Northings and Eastings through this function to get the latitude and longitude. I used <a href="http://itouchmap.com/latlong.html">itouchmap.com</a> to load this data on the map and compared it with the pointer that got shown on the map when I inputted my postcodes directly. They were very close, close enough to be useful I think.</p>
<p>So what I was thinking, was I could add the conversion function to my php script and whilst I am looping through the csv files I could also add the latitude and longitude and I will end up with a current table with full UK postcode, Eastings, Northings, Latitude &amp; Longitude.</p>
<p>Would welcome thoughts&#8230;</p>
<p><!-- http://pastie.org/3683783 --></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jamesmills.co.uk/2012/03/28/uk-postcode-database-with-lat-long/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://blog.jamesmills.co.uk/2012/03/28/uk-postcode-database-with-lat-long/</feedburner:origLink></item>
		<item>
		<title>Refresh Teesside – a networking event for creative Teessiders!</title>
		<link>http://feedproxy.google.com/~r/JamesMillsBlog/~3/3OPAdYCZMkU/</link>
		<comments>http://blog.jamesmills.co.uk/2012/01/15/refresh-teesside-a-networking-event-for-creative-teessiders/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 15:15:02 +0000</pubDate>
		<dc:creator>James Mills</dc:creator>
				<category><![CDATA[Refresh Teesside]]></category>
		<category><![CDATA[events]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[refresh teesside]]></category>
		<category><![CDATA[rftees]]></category>
		<category><![CDATA[teesside]]></category>

		<guid isPermaLink="false">http://blog.jamesmills.co.uk/?p=300</guid>
		<description><![CDATA[Refresh Teesside meet at 6pm on the second Wednesday of every month. We meet in the function room upstairs at Capaldi’s Restaurant, Linthorpe Road, Middlesbrough.]]></description>
			<content:encoded><![CDATA[<p><strong>Next Event &#8211; 6pm, Wednesday 8th February @ Capaldi&#8217;s, Linthorpe Road, Middlesbrough</strong></p>
<p>Refresh Teesside meet at 6pm on the second Wednesday of every month. We meet in the function room upstairs at Capaldi’s Restaurant, Linthorpe Road, Middlesbrough.</p>
<p>In Teesside there are hundreds of creative businesses who can benefit from knowing each other. Many of the businesses are relatively small in size, focusing on a specific skill or service. Everyone can benefit from knowing other professionals in their own trades and networking with other professionals who offer skills and services they may require in the future.</p>
<p>Registration will be between 6 and 6.30pm. We will greet you and ensure you are registered. At 6.30pm there will be an introduction to the event with any announcements. After this, it’s up to you to get out of the event what you want.</p>
<p>There will be developers with their laptops out sharing code and working on problems. There will be freelance developers and designers looking to connect with agencies. There will be photographers looking to offer their services to others. There will be business owners who may be recruiting. Most importantly there will be creative people networking with their peers.</p>
<p>There will be light food, kindly provided by Capaldi’s, during the evening. The bar will be open. The event officially finishes at 9pm.</p>
<p>We look forward to seeing you there, if you have any questions then send us a tweet or an email.</p>
<hr />
<p><strong>To register for the event please go to the <a href="http://bit.ly/A8OI8d">Refresh Teesside Eventbrite page</a></strong></p>
<p>If you would like to find out more information about future events then please bookmark our <a href="http://www.refreshteesside.org">official website</a>.</p>
<p>Other links that you may find interesting:</p>
<ul>
<li><a href="https://www.facebook.com/refreshteesside">Refresh Teesside Facebook page</a></li>
<li><a href="https://twitter.com/#!/refreshteesside">Refresh Teesside Twitter page</a></li>
<li><a href="http://groups.google.com/group/refresh-teesside">Refresh Teesside Google Group</a></li>
<li><a href="http://www.linkedin.com/groups/Refresh-Teesside-Promoting-design-technology-780867">refresh Teesside LinkedIn group</a></li>
<li><a href="http://www.last.fm/group/Refresh+Teesside">Refresh Teesside Last.fm group</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.jamesmills.co.uk/2012/01/15/refresh-teesside-a-networking-event-for-creative-teessiders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.jamesmills.co.uk/2012/01/15/refresh-teesside-a-networking-event-for-creative-teessiders/</feedburner:origLink></item>
		<item>
		<title>Printing an array, string or anything else…</title>
		<link>http://feedproxy.google.com/~r/JamesMillsBlog/~3/CpnXUON2cOs/</link>
		<comments>http://blog.jamesmills.co.uk/2011/10/28/printing-an-array-string-or-anything-else/#comments</comments>
		<pubDate>Fri, 28 Oct 2011 12:46:49 +0000</pubDate>
		<dc:creator>James Mills</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.jamesmills.co.uk/?p=282</guid>
		<description><![CDATA[This post is carrying on the theme of sharing little bits of code (like my good friend @boxedfish did the other day) - How to easily split a sequence of number [...]]]></description>
			<content:encoded><![CDATA[<p>This post is carrying on the theme of sharing little bits of code (like my good friend <a href="http://twitter.com/boxedfish">@boxedfish</a> did the other day) - <a href="http://blog.boxedfish.co.uk/how-to-easily-split-a-sequence-of-numbers-into-a-hython-seperate-string/">How to easily split a sequence of number into a hython seperate string</a></p>
<p>This is not the greatest bit of code I have ever written and its not going to knock you over with complexity but what it will do is save your little fingers and over a year give you back quite a large chunk of time.</p>
<pre class="brush: php; title: ; notranslate">

function output($my_array, $my_die = 0)
{
	echo '&lt;hr /&gt;';
	echo '&lt;pre&gt;';
	print_r($my_array);
	echo '&lt;/pre&gt;';
	echo '&lt;hr /&gt;';

	if ($my_die == 1) { die(); }
}
</pre>
<p>Then all you have to do is</p>
<pre class="brush: php; title: ; notranslate">
output($my_string);
output($my_array);
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.jamesmills.co.uk/2011/10/28/printing-an-array-string-or-anything-else/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.jamesmills.co.uk/2011/10/28/printing-an-array-string-or-anything-else/</feedburner:origLink></item>
		<item>
		<title>Phil Sturgeon to talk FuelPHP at next PHPNE</title>
		<link>http://feedproxy.google.com/~r/JamesMillsBlog/~3/pn4YnUc9BmA/</link>
		<comments>http://blog.jamesmills.co.uk/2011/10/12/phil-sturgeon-to-talk-fuelphp-at-next-phpne-event/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 08:54:07 +0000</pubDate>
		<dc:creator>James Mills</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[FuelPHP]]></category>
		<category><![CDATA[alex akass]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[fuelphp]]></category>
		<category><![CDATA[phil sturgeon]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpne]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://blog.jamesmills.co.uk/?p=268</guid>
		<description><![CDATA[I can not wait until Tuesday 18th October! It has just been announced that Phil Sturgeon will be giving an introduction to FuelPHP. Most of you will know that Phil [...]]]></description>
			<content:encoded><![CDATA[<p>I can not wait until Tuesday 18th October! It has just been announced that <a href="http://twitter.com/#!/philsturgeon">Phil Sturgeon</a> will be giving an introduction to <a href="http://fuelphp.com">FuelPHP</a>. Most of you will know that Phil is part of the development team of FuelPHP and has already given us <a href="http://codeigniter.com/">Codeigniter</a>, an amazing php framework which has changed my life in many ways.</p>
<p>I have been involved with web development for around 10 years now. Sounds surprising but it&#8217;s true. My life/job has involved many things as well as pure web development. I have been involved with core business projects such as setting up a business, accounting and marketing as well as project and client management. When it comes to web development, my day to day activities include working with HTML, XHTML, CSS, PHP, Photoshop, WordPress, Magento, MySQL along with server setup and management. I call myself a php web developer because that is what I do most and what I love most; however I am really  a jack of all trades.</p>
<p>For most of the projects I have worked on I have been either the sole developer or the senior developer. Everything that I know about PHP has been self taught, everything has been trial and error. I did go to Teesside University and studied Information Technology which touched on some web development; however in my opinion the University need to seriously sort itself out when it comes to our industry, its shocking&#8230; but thats a blog/rant for another day.</p>
<p>Throughout my life as a developer, I been involved with many different sized project and when you don&#8217;t have another developer to bounce ideas off you learn quickly. It is also very easy for you to slip into bad habits. When you are planning a project you have to assume that your doing things the best way. You don&#8217;t want to show a &#8216;weakness&#8217; and ask other developers if you are doing something the right way! After sometime, I realized I was reusing my own code over and over again in new projects. Therefore,  I started to comprise a folder of all the functions, classes, html templates and css that I would usually have to write from scratch for each project. At the time I did not realise this was known in the industry as a &#8216;framework&#8217;. By the time I came across frameworks such as Codeigniter, Zend and Kohana, I was too involved in my own framework. I had also made contact with other PHP developers online who were dead against using frameworks&#8230; &#8216;frameworks go against what PHP is&#8217;&#8230; &#8216;frameworks will slow down your system&#8217;&#8230; &#8216;frameworks contain loads of pointless code&#8217;&#8230; &#8216;frameworks will slow your development down&#8217;&#8230; the list goes on and on&#8230; so I got a bit stuck! I knew my own framework inside out, it was quick, it worked&#8230; why use anything else? PHP is all about using core PHP&#8230; thats what its all about&#8230; right?</p>
<p>One sunny day a guy called <a href="http://twitter.com/#!/boxedfish">Alex Akass</a> encouraged me to start to use an open source frmaework. I should mention that I have never met Alex in person; however we speak nearly every day on Skype. I may be a sole developer but I do have a solid development team made up of contacts I have met online and more recently at such events as <a href="http://phpne.org.uk">PHPNE</a>. Alex introduced me to Codeigniter and I started to use it for a live project. I work in an agency where project turnover is high. I don&#8217;t have the luxury of time to look at new technology and work on something inhouse to test it before working on a live client project. I trusted Alex and I dived in. Since that day my life has changed in so many ways. To list a few:</p>
<ul>
<li>More structured framework</li>
<li>Input from years and years of other developers experience</li>
<li>Access to functions and classes I would never have thought of</li>
<li>Much more reliable and stable final projects</li>
<li>Faster project development&#8230;. much faster!</li>
<li>A shed load of online blog and video tutorials</li>
<li>The feeling I am up-to-date</li>
<li>etc&#8230;</li>
</ul>
<p>I could go on and on&#8230; however there is one thing that is missing from the list above which has rocked my world. When I started to use Codeigniter I started to see that things were not so different to the structure I had put in place for my own framework. Things I had created functions for were included in Codeigniter. It was an amazing feeling. The years I have been working on my own learning from trial and error were not wasted. I did know what I was doing! I feel as if I owe this feeling of validation to Alex and the creators of Codeigniter. Since making the jump to Codeigniter,  every day I have had on development has been even more enjoyable than before. If there is anyone out there waiting to make the jump, stop waiting&#8230; jump! You are not alone.</p>
<p>Recently I have been attending <a href="http://phpne.org.uk">PHPNE </a>events in Newcastle. I spend an hour traveling there and back on the train so that I can join the others in the pub after the talk to network. Its been a real eye opener for me. I really enjoy meeting and talking to other developers. Today I am extremely excited because I have just put a blog post live on the PHPNE website announcing our October event&#8230; <a href="http://twitter.com/#!/philsturgeon">Phil Sturgeon</a> will be giving an introduction on FuelPHP, a new &#8216;kick ass&#8217; (the words he used when I was talking to him on Friday night at the #NENT event) framework he is part of.</p>
<p>Why am I so excited? Two reason. Firstly, Phil is a leading developer on Codeigniter. Codeigniter changed my life. Secondly I have recently been getting a lot of ear ache from <a href="http://www.twitter.com/xocs">Chris Scott</a> telling me that I should take a look at <a href="http://rubyonrails.org">Ruby on Rails</a>, talking to me about things like <a href="http://guides.rubyonrails.org/migrations.html">migrations</a>, <a href="http://en.wikipedia.org/wiki/Object-relational_mapping">ORM </a>and <a href="http://haml-lang.com/">HAML</a>&#8230; Phil is also a leading developer on FuelPHP&#8230; and guess what&#8230; Fuel introduces things like ORM and migrations and has support for things like HAML&#8230;</p>
<p>If you are interested in attending the event you will need to be quick because spaces are limited. Head to the <a href="http://phpne.org.uk">PHPNE website</a> for more information and register on <a href="http://phpneoctober-eorg.eventbrite.com">EventBrite</a> asap.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jamesmills.co.uk/2011/10/12/phil-sturgeon-to-talk-fuelphp-at-next-phpne-event/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.jamesmills.co.uk/2011/10/12/phil-sturgeon-to-talk-fuelphp-at-next-phpne-event/</feedburner:origLink></item>
		<item>
		<title>Sync Postbox contacts with iPhone &amp; Google Contacts</title>
		<link>http://feedproxy.google.com/~r/JamesMillsBlog/~3/u8LYqN3gZKY/</link>
		<comments>http://blog.jamesmills.co.uk/2011/08/08/sync-postbox-contacts-with-iphone-google-contacts/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 10:07:53 +0000</pubDate>
		<dc:creator>James Mills</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[contacts]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[outlook]]></category>
		<category><![CDATA[postbox]]></category>
		<category><![CDATA[syncing]]></category>

		<guid isPermaLink="false">http://blog.jamesmills.co.uk/?p=261</guid>
		<description><![CDATA[A while ago I started to try a new mail client called Postbox. I have used Microsoft Outlook all my life but I was not happy with the way it grouped messages and [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>A while ago I started to try a new mail client called <a href="http://www.postbox-inc.com/">Postbox</a>. I have used Microsoft Outlook all my life but I was not happy with the way it grouped messages and since I am an iPhone user and really like the way that messages are grouped by subject, this has become a key thing to me. I also wanted to move away from Microsoft. Postbox have been releasing updates quite often since I started using it and the most recent update make the hole thing look and work amazingly so I am more than happy and would recommend it to anyone.</p>
<p>One thing that has been a little problem is the way it manages contacts. I did have a very robust way of backing up and syncing my contacts between all my devises. I have an iPhone, iPad, Laptop, work desktop and home desktop.</p>
<p>I now focus my sync around Google contacts. If you keep all your contacts in Google you can then link your iPhone/iPad to live sync. You can then link Soocial and Google Contacts to keep a backup. You can then pop along to <a href="http://www.postbox-inc.com/extensions">http://www.postbox-inc.com/extensions</a> and download <a href="http://www.zindus.com/">Zindus</a> which will sync the &#8216;Personal Address Book&#8217; in Postbox to Google Contacts.</p>
<p>Great setup, no need to do anything.</p>
<p>Hope this help someone in the same situation.</p>
</div>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jamesmills.co.uk/2011/08/08/sync-postbox-contacts-with-iphone-google-contacts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.jamesmills.co.uk/2011/08/08/sync-postbox-contacts-with-iphone-google-contacts/</feedburner:origLink></item>
		<item>
		<title>Codeigniter &amp; Google Maps</title>
		<link>http://feedproxy.google.com/~r/JamesMillsBlog/~3/pu0dPwtt97o/</link>
		<comments>http://blog.jamesmills.co.uk/2011/03/14/codeigniter-google-maps/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 17:23:31 +0000</pubDate>
		<dc:creator>James Mills</dc:creator>
				<category><![CDATA[Codeigniter]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[google api]]></category>

		<guid isPermaLink="false">http://blog.jamesmills.co.uk/?p=242</guid>
		<description><![CDATA[I am currently working on a website that is based on bike routes. What basically happens is our client goes out and rides the route tracking the route with his [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently working on a website that is based on bike routes. What basically happens is our client goes out and rides the route tracking the route with his GPS devise. He then downloads this GPS info into MemoryMaps and adjusts the route points as necessary. This information is then exported from MemoryMaps into a GPX file. The GPX file is then uploaded into our custom built backend along with some route information and a description and this route is then listed as a route. The first latitude and longitude imported from the GPX file is saved as the starting point and so an overview map can be shown of all the routes. When you click on one of the route starting points you get a little overview of the route and you can then click to view the full route page.</p>
<p>I am using Codeigniter for this project. I am obsessed with Codeigniter since I was introduced to it by <a href="http://twitter.com/boxedfish">@boxedfish</a>. Its taken me a long time to move away from my own framework, but the move has been well worth it. There is an amazing <a href="http://code.google.com/p/php-google-map-api/">PHP Google Maps API class</a> which I have used in the past and I was about to get started on creating a Codeigniter library using this class when it crossed my mind to do a quick search in Google for one already built. Wise move! <a href="http://codeigniter.com/wiki/Google_Maps_API_V3_Library/">Google Maps API V3 Library</a> already exists thanks to the good people at in-the-attic.co.uk.</p>
<p>Adding an overview map with a number of markers was one of the easiest implementations of Google maps I have ever done&#8230; however I got a little stuck when it came to the route information pages where I wanted to show the route points using polylines. A simple enough task!</p>
<p>I fired up the <a href="http://www.bradwedell.com/phpgooglemapapi/docs/GoogleMapAPI/GoogleMapAPI.html#methodaddPolylineByCoordsArray">documentation </a>(which is part of the original php class not the library by in-the-attic.co.uk)</p>
<p><code>$this-&gt;gmap-&gt;addPolylineByCoordsArray($poly_array,false,'#FF0000', '6', '0.5');</code></p>
<p>This should have done the trick. I simply get all the coordinates of my route, put them in an array and bing, bang bosh! I tried everything under the sun to get this to work but I could not get the polylines to display on the map, every time I tried to load the page the map would not load. I knew I was getting the information in the array but something was not right. I made a <a href="http://twitter.com/#!/jamesmills/status/46220691305009152">cry of help to twitter </a>but nothing came back&#8230; I did what every good developer should do, I went away and worked on something else! Then it hit me, why not just open up the class file and look at the function that processes the $poly_array and see what format it should be in. It was then I realised that I was assuming that everyone called latitude &#8216;lat&#8217; and longitude &#8216;lng&#8217;. In fact it was expecting <a href="http://twitter.com/#!/jamesmills/status/46236059708817408">&#8216;long&#8217;</a>!</p>
<p>So for anyone else out there was is having problems, the correct array format for addPolylineByCoordsArray is:</p>
<p><code>$poly_array[] = array('lat' =&gt; $my_lat, 'long' =&gt; $my_lng);</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jamesmills.co.uk/2011/03/14/codeigniter-google-maps/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://blog.jamesmills.co.uk/2011/03/14/codeigniter-google-maps/</feedburner:origLink></item>
		<item>
		<title>Molly in the Evening Gazette</title>
		<link>http://feedproxy.google.com/~r/JamesMillsBlog/~3/NZj3L8VNXJM/</link>
		<comments>http://blog.jamesmills.co.uk/2011/03/12/molly-in-the-evening-gazette/#comments</comments>
		<pubDate>Sat, 12 Mar 2011 15:49:39 +0000</pubDate>
		<dc:creator>James Mills</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[molly]]></category>

		<guid isPermaLink="false">http://blog.jamesmills.co.uk/2011/03/12/molly-in-the-evening-gazette/</guid>
		<description><![CDATA[Molly in the pets corner in today's Evening Gazette]]></description>
			<content:encoded><![CDATA[<p>Molly in the pets corner in today&#8217;s Evening Gazette</p>
<p><a rel="prettyPhoto" href="http://blog.jamesmills.co.uk/wp-content/uploads/2011/03/20110312-182209.jpg"><img class="alignleft size-medium wp-image-212" title="20110312-182209.jpg" src="http://blog.jamesmills.co.uk/wp-content/uploads/2011/03/20110312-182209-224x300.jpg" alt="" width="224" height="300" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jamesmills.co.uk/2011/03/12/molly-in-the-evening-gazette/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.jamesmills.co.uk/2011/03/12/molly-in-the-evening-gazette/</feedburner:origLink></item>
		<item>
		<title>30th birthday in New York</title>
		<link>http://feedproxy.google.com/~r/JamesMillsBlog/~3/yM2iHhEES2A/</link>
		<comments>http://blog.jamesmills.co.uk/2011/02/21/30th-birthday-in-new-york/#comments</comments>
		<pubDate>Mon, 21 Feb 2011 23:10:57 +0000</pubDate>
		<dc:creator>James Mills</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://blog.jamesmills.co.uk/2011/02/21/30th-birthday-in-new-york/</guid>
		<description><![CDATA[From Random Phtots I had an absolutely amazing time in New York for my 30th birthday. Had am awesome brunch. Walked round Central Park to take some pics with my [...]]]></description>
			<content:encoded><![CDATA[<table style="width: auto;">
<tbody>
<tr>
<td><a href="https://picasaweb.google.com/lh/photo/0aKUJgIKiUfVqxtdIeedtQ?feat=embedwebsite"><img src="https://lh4.googleusercontent.com/_p5u8vbV2pVI/TX0IbeVZJgI/AAAAAAAABHM/BFWPvyBXhSo/s400/P1280441-1.JPG" alt="" width="400" height="300" /></a></td>
</tr>
<tr>
<td style="font-family: arial,sans-serif; font-size: 11px; text-align: right;">From <a href="https://picasaweb.google.com/jimgmills/RandomPhtots?feat=embedwebsite">Random Phtots</a></td>
</tr>
</tbody>
</table>
<p>I had an absolutely amazing time in New York for my 30th birthday.</p>
<p>Had am awesome brunch. Walked round Central Park to take some pics with my new SLR Fiona got me. Went up Empire State building. Had many beers with Simon whilst girls went shopping. Went to Toys r us in Times Square. Now getting ready for a nice birthday tea. All whilst visiting New York in the middle of a snow storm! 30th Birthday&#8230; DONE!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jamesmills.co.uk/2011/02/21/30th-birthday-in-new-york/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.jamesmills.co.uk/2011/02/21/30th-birthday-in-new-york/</feedburner:origLink></item>
		<item>
		<title>A little advice about cars if you live in Teesside</title>
		<link>http://feedproxy.google.com/~r/JamesMillsBlog/~3/zh4A_4vpLQU/</link>
		<comments>http://blog.jamesmills.co.uk/2010/08/12/a-little-advice-about-cars-if-you-live-in-teesside/#comments</comments>
		<pubDate>Thu, 12 Aug 2010 07:55:26 +0000</pubDate>
		<dc:creator>James Mills</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://blog.jamesmills.co.uk/?p=201</guid>
		<description><![CDATA[I know I have not posted for a while, I will blog again soon with a few more exciting things but I feel as if I need to pass a [...]]]></description>
			<content:encoded><![CDATA[<p>I know I have not posted for a while, I will blog again soon with a few more exciting things but I feel as if I need to pass a little advice on to anyone looking or thinking of getting a car from Acklam Car Centre. My advice, don&#8217;t.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.jamesmills.co.uk/2010/08/12/a-little-advice-about-cars-if-you-live-in-teesside/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://blog.jamesmills.co.uk/2010/08/12/a-little-advice-about-cars-if-you-live-in-teesside/</feedburner:origLink></item>
	</channel>
</rss>

