<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Devblog</title>
	<atom:link href="http://www.devblog.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devblog.co.uk</link>
	<description>Web Development, Drupal &#38; Angry Birds</description>
	<lastBuildDate>Tue, 24 Jan 2012 17:21:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Automatic font resizing on iPhone / iPad</title>
		<link>http://www.devblog.co.uk/2012/01/24/automatic-font-resizing-on-iphone-ipad/</link>
		<comments>http://www.devblog.co.uk/2012/01/24/automatic-font-resizing-on-iphone-ipad/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 17:21:06 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=533</guid>
		<description><![CDATA[Our new company website has just gone live and on some pages the layout was broken on the iPhone and iPad. This was due to it&#8217;s minimum font size feature. You can disable this by adding this to your CSS div, p, a, li, td...]]></description>
			<content:encoded><![CDATA[<p>Our new company website has just gone live and on some pages the layout was broken on the iPhone and iPad. This was due to it&#8217;s minimum font size feature.</p>
<p>You can disable this by adding this to your CSS</p>
<p><code>div, p, a, li, td { -webkit-text-size-adjust:none; }</code></p>
<!-- AdSense Now! V1.98 -->
<!-- Post[count: 2] -->
<div class="adsense adsense-leadout" style="text-align:center;margin: 12px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-8882357454529269";
/* Devblog Small */
google_ad_slot = "3111773088";
google_ad_width = 468;
google_ad_height = 60;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2012/01/24/automatic-font-resizing-on-iphone-ipad/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>iPlayer on iPhone App</title>
		<link>http://www.devblog.co.uk/2011/12/29/iplayer-on-iphone-app/</link>
		<comments>http://www.devblog.co.uk/2011/12/29/iplayer-on-iphone-app/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 14:28:51 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/2011/12/29/iplayer-on-iphone-app/</guid>
		<description><![CDATA[Just got to Asda and the little one was asleep so I volunteered to stay in the nice warm car watching Frozen Planet on the BBC iPlayer. They&#8217;ve now updated it so that you can watch using 3G instead of just wifi which is great...]]></description>
			<content:encoded><![CDATA[<p>Just got to Asda and the little one was asleep so I volunteered to stay in the nice warm car watching Frozen Planet on the BBC iPlayer. </p>
<p>They&#8217;ve now updated it so that you can watch using 3G instead of just wifi which is great because I don&#8217;t have to go out in the cold, wind and rain but can just watch polar bears instead</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/12/29/iplayer-on-iphone-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal Commerce: first impressions</title>
		<link>http://www.devblog.co.uk/2011/11/19/drupal-commerce-first-impressions/</link>
		<comments>http://www.devblog.co.uk/2011/11/19/drupal-commerce-first-impressions/#comments</comments>
		<pubDate>Sat, 19 Nov 2011 01:57:52 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=530</guid>
		<description><![CDATA[I&#8217;ve been running an online shop for a year now which hasn&#8217;t really taken off due to a mixture of lack of time and secondly, hating OSCommerce that it&#8217;s running on. Having spent a large portion of the last year using Drupal 7 for work...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been running an online shop for a year now which hasn&#8217;t really taken off due to a mixture of lack of time and secondly, hating OSCommerce that it&#8217;s running on.</p>
<p>Having spent a large portion of the last year using Drupal 7 for work I decided to re-develop the shop using that. I check it out and two main options for contributed modules to provide the shop functionality came up: UberCart and Drupal Commerce. I started with Ubercart since I&#8217;d heard with it and it was more established, however I didn&#8217;t like some aspects of it and after an update, it crashed the site. So I installed the Drupal Commerce module and started to play with that.</p>
<p>The standard configuration was easy enough being a mix of Drupal knowledge and the fundamentals of commerce software. After that it was a case of adding my 250+ products. This is where the first bit of confusion came in. Drupal Commerce works by having a content type called Product Display which can have fields in the same way as other nodes, but also has within the shop Products which are completely seperate and have their own set of fields. It seemed a little confusing at first since I didn&#8217;t get why you&#8217;d want double entry &#8211; having to add the product with the price etc as a Product and then add it again as a Product Display with a description. </p>
<p>After more reading I found out that the seperation of product and display is due to a feature that I specifically needed. My shop sells lingerie and as such each item I sell has options for size and sometimes, colour. In the real world these can be considered seperate products, they are different &#8211; you can&#8217;t send a green one out if the customer has requested red. So with Drupal Commerce you add each option as a seperate Product and then add a Product Display for all of the different options. The Product Display node can then be used to create the site, either as part of a menu, tagged with taxonomy to create product categories or however you would normally use Drupal to create your site.</p>
<p>The benefit though is when you arrive on the Product Display node. Drupal Commerce can then take all the different Products and create option dropdowns so a customer can select the size and colour they want and then add to basket. That chosen Product is then added to their order.</p>
<p>I&#8217;m not sure if this may be annoying for shops where there are no options and you have to add a Product and then Display for each item, but if it is and you have quite a few products then there&#8217;s always Commerce Feeds to the rescue. This is a module that utilises the Drupal Commerce and Feeds modules to allow you to use CSV files or other formats and import them directly into Drupal.</p>
<p>So far I&#8217;ve got the 1,000+ Products added. Tomorrow night I&#8217;ll look at the 250+ Product Displays.</p>
<p>First impressions: impressed</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/11/19/drupal-commerce-first-impressions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strange problem when creatng Drupal 7 Module form_submit and db_update</title>
		<link>http://www.devblog.co.uk/2011/11/04/strange-problem-when-creatng-drupal-7-module-form_submit-and-db_update/</link>
		<comments>http://www.devblog.co.uk/2011/11/04/strange-problem-when-creatng-drupal-7-module-form_submit-and-db_update/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 17:03:21 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=524</guid>
		<description><![CDATA[Today we were creating a new custom module in Drupal and we had a form we had created and a submit handler. In the submit handler we had a db_update to update the row in the database. For ages we couldn&#8217;t find out why it...]]></description>
			<content:encoded><![CDATA[<p>Today we were creating a new custom module in Drupal and we had a form we had created and a submit handler. In the submit handler we had a db_update to update the row in the database. For <em>ages</em> we couldn&#8217;t find out why it wasn&#8217;t working until we noticed we&#8217;d set the update variables using </p>
<blockquote><p>$form_state['values']['name']</p></blockquote>
<p>This is wrong. This stores the values of the form fields as they were when the form was generated. To get the values of the fields as they were submitted, you need:</p>
<blockquote><p>$form_state['input']['name']</p></blockquote>
<p>One of those things that takes hours to spot! ARRRGGHH!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/11/04/strange-problem-when-creatng-drupal-7-module-form_submit-and-db_update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 7: Get the tpl.php name of a certain View</title>
		<link>http://www.devblog.co.uk/2011/09/06/drupal-7-get-the-tpl-php-name-of-a-certain-view/</link>
		<comments>http://www.devblog.co.uk/2011/09/06/drupal-7-get-the-tpl-php-name-of-a-certain-view/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 15:17:55 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[drupal]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=517</guid>
		<description><![CDATA[I was trying to theme a certain view in a D7 site since I couldn&#8217;t get Views to do what I needed without using my own PHP and jQuery. It took me ages to track down what name to use in the tpl file for...]]></description>
			<content:encoded><![CDATA[<p>I was trying to theme a certain view in a D7 site since I couldn&#8217;t get Views to do what I needed without using my own PHP and jQuery.</p>
<p>It took me ages to track down what name to use in the tpl file for my theme. The easiest way of finding out what tpl.php name to use, either for a single view, type of view (e.g. unformatted list) or all views is to go into:</p>
<p><code>Structure > View > Edit your view</code></p>
<p>Then under Advanced of the right you will find a &#8220;Theme: Information&#8221; link that gives you extensive information on the files in use. Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/09/06/drupal-7-get-the-tpl-php-name-of-a-certain-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Drupal 7 doesn&#8217;t use tpl files for nodes or content types</title>
		<link>http://www.devblog.co.uk/2011/09/02/drupal-7-doesnt-use-tpl-files-for-nodes-or-content-types/</link>
		<comments>http://www.devblog.co.uk/2011/09/02/drupal-7-doesnt-use-tpl-files-for-nodes-or-content-types/#comments</comments>
		<pubDate>Fri, 02 Sep 2011 12:45:17 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=515</guid>
		<description><![CDATA[If you are copying the default page.tpl.php to use for either a specific node or a specific content type but Drupal is ignoring it there are usually two main reasons: tpl file name If you are used to the D6 naming conventions, be aware it...]]></description>
			<content:encoded><![CDATA[<p>If you are copying the default page.tpl.php to use for either a specific node or a specific content type but Drupal is ignoring it there are usually two main reasons:</p>
<ol>
<li><strong>tpl file name</strong><br />
If you are used to the D6 naming conventions, be aware it has changed in D7. The new naming conventions are <a target="_blank" href="http://drupal.org/node/1089656" >here</a></li>
<li><strong>Preprocess function</strong><br />
You may have forgotten to put a preprocess hook in your theme file. For example I have this in most of my Zen sub themes:<br />
<code>function MYTHEME_preprocess_page(&#038;$variables, $hook) {<br />
   //some other stuff<br />
	if (isset($variables['node']))<br />
	{<br />
    	$variables['theme_hook_suggestions'][] = 'page__type__'. $variables['node']->type;<br />
    	$variables['theme_hook_suggestions'][] = "page__node__" . $variables['node']->nid;<br />
	}</p>
<p>}<br />
</code></li>
</ul>
<p>Hope that helps</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/09/02/drupal-7-doesnt-use-tpl-files-for-nodes-or-content-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating Drupal 7 Core using Drush</title>
		<link>http://www.devblog.co.uk/2011/08/27/updating-drupal-7-core-using-drush/</link>
		<comments>http://www.devblog.co.uk/2011/08/27/updating-drupal-7-core-using-drush/#comments</comments>
		<pubDate>Sat, 27 Aug 2011 15:37:46 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[drupal]]></category>
		<category><![CDATA[Drush]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=512</guid>
		<description><![CDATA[If you want to save the hassle of upgrading Drupal 7 core from say, 7.4 to 7.7, you can install Drush and then use it from SSH to back up your site and then update core with the follwoing command:drush update Just make sure you&#8217;re...]]></description>
			<content:encoded><![CDATA[<p>If you want to save the hassle of upgrading Drupal 7 core from say, 7.4 to 7.7, you can install Drush and then use it from SSH to back up your site and then update core with the follwoing command:<code>drush update</code><br />
Just make sure you&#8217;re in the directory of the Drupal installation you want to update. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/08/27/updating-drupal-7-core-using-drush/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to delete individual items from OS X Trash</title>
		<link>http://www.devblog.co.uk/2011/08/24/how-to-delete-individual-items-from-os-x-trash/</link>
		<comments>http://www.devblog.co.uk/2011/08/24/how-to-delete-individual-items-from-os-x-trash/#comments</comments>
		<pubDate>Wed, 24 Aug 2011 08:48:58 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[os x]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=509</guid>
		<description><![CDATA[I recently ran out of hard disk space and figured the best way of getting some back quickly was to delete some Trash. Unfortunately I didn&#8217;t want to delete everything because you never know when something might come in handy. All I wanted to do...]]></description>
			<content:encoded><![CDATA[<p>I recently ran out of hard disk space and figured the best way of getting some back quickly was to delete some Trash. Unfortunately I didn&#8217;t want to delete everything because you never know when something might come in handy. All I wanted to do was delete certain files.</p>
<p>All you need to do is open the Trash in Finder, open a Terminal window and in Terminal type <code>rm</code> </p>
<p>Then you just drag the items you don&#8217;t want into the Terminal window and press enter. That will permanently delete them.</p>
<p>Simples </p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/08/24/how-to-delete-individual-items-from-os-x-trash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverlight vs Flash</title>
		<link>http://www.devblog.co.uk/2011/06/27/silverlight-vs-flash/</link>
		<comments>http://www.devblog.co.uk/2011/06/27/silverlight-vs-flash/#comments</comments>
		<pubDate>Mon, 27 Jun 2011 11:28:36 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=503</guid>
		<description><![CDATA[OK, so this is going to be one of those Microsoft vs everyone else rants but I can&#8217;t help it &#8211; there&#8217;s a reason they keep cropping up. Many moons ago I visited the Microsoft website for assistance in fixing a problem they&#8217;d created and...]]></description>
			<content:encoded><![CDATA[<p>OK, so this is going to be one of those Microsoft vs everyone else rants but I can&#8217;t help it &#8211; there&#8217;s a reason they keep cropping up.</p>
<p>Many moons ago I visited the Microsoft website for assistance in fixing a problem they&#8217;d created and was asked to install Silverlight. Since my job involves keeping up to date with web technologies I installed it and as far as I know haven&#8217;t used it since.</p>
<p>It turns out that one website does use it &#8211; Sky Player. I use Sky Player when I&#8217;m working in the evenings so i work on one Mac and then watch TV or a film on Sky Player using my Laptop.</p>
<p>At the weekend I was working a bit on Friday night and loaded up Firefox to go to Sky Player. Firefox then informed me that a plugin wanted to be run in 32 bit mode &#8211; a message I hadn&#8217;t seen before but I assumed was due to the recent upgrade to Firefox 5 which must now natively run in 64 bit and some plugins haven&#8217;t been updated yet. Since I knew Flash was alright, that&#8217;s when I found out it was running Silverlight.</p>
<p>Now here&#8217;s my problem with Microsoft and Silverlight. You upgrade Firefox and sometimes it informs you that you need to upgrade Flash too and so you do and then everything just keeps working nicely. Not so with Microsoft. Because everything they do has to have a business / revenue generating reason behind it, they don&#8217;t play well with others. That means that Firefox doesn&#8217;t inform you that Silverlight needs to be updated.</p>
<p>So, why is this a downside? Well, because in the case of Sky Player, they use a system to authenticate devices so you can only watch stuff through your Sky account on a number of devices and one of those must be authenticated as the main device, so in my case I have accountname-Mac, accountname-Windows and accountname-Xbox with the Mac being the main device. However when I went in at the weekend, it was saying the device I was using wasn&#8217;t registered and it would be registered automatically. Except that it was in the registered device list and wouldn&#8217;t add itself again or become authenticated so I couldn&#8217;t watch anything.</p>
<p>Arrrggghhh, they annoy me.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/06/27/silverlight-vs-flash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing &#8220;My Account&#8221; and &#8220;Logout&#8221; form header in Zen on Drupal</title>
		<link>http://www.devblog.co.uk/2011/06/16/removing-my-account-and-logout-form-header-in-zen-on-drupal/</link>
		<comments>http://www.devblog.co.uk/2011/06/16/removing-my-account-and-logout-form-header-in-zen-on-drupal/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 10:26:31 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Drupal]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://www.devblog.co.uk/?p=501</guid>
		<description><![CDATA[I&#8217;m just developing a new site in Drupal using the Zen STARTERKIT and it&#8217;s been a while since I&#8217;d done a design without the &#8220;My Account&#8221; and &#8220;Logout&#8221; links being needed in the header. To get rid of them, simply go to admin/structure/menu/settings and change...]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m just developing a new site in Drupal using the Zen STARTERKIT and it&#8217;s been a while since I&#8217;d done a design without the &#8220;My Account&#8221; and &#8220;Logout&#8221; links being needed in the header.</p>
<p>To get rid of them, simply go to admin/structure/menu/settings and change or remove a menu in the Secondary Menus.</p>
<p>Simples</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devblog.co.uk/2011/06/16/removing-my-account-and-logout-form-header-in-zen-on-drupal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

