<?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>Full On Design</title>
	<atom:link href="http://www.fullondesign.co.uk/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fullondesign.co.uk</link>
	<description>Design &#38; Web Technologies</description>
	<lastBuildDate>Sun, 30 Oct 2011 21:37:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>10 Brilliant Web Development &amp; Technology Podcasts</title>
		<link>http://www.fullondesign.co.uk/coding/2143-10-brilliant-web-development-technology-podcasts.htm</link>
		<comments>http://www.fullondesign.co.uk/coding/2143-10-brilliant-web-development-technology-podcasts.htm#comments</comments>
		<pubDate>Sun, 30 Oct 2011 20:12:19 +0000</pubDate>
		<dc:creator>Rogem</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://www.fullondesign.co.uk/?p=2143</guid>
		<description><![CDATA[I am a big fan of podcasts, here is a handful of really good podcasts that I&#8217;ve been listening to over the last month on my commute to work. If you use Google Reader (With Google Listen), you can quickly subscribe to this via the bundle I created. 1. Founders Talk Founders talk is a [...]]]></description>
			<content:encoded><![CDATA[<p>I am a big fan of podcasts, here is a handful of really good podcasts that I&#8217;ve been listening to over the last month on my commute to work. If you use Google Reader (With Google Listen), you can quickly subscribe to this <a href="https://www.google.com/reader/bundle/user%2F12400831042212741612%2Fbundle%2FWeb%20Development%20Podcasts">via the bundle I created</a>.</p>
<p><strong>1. <a href="http://5by5.tv/founderstalk">Founders Talk</a></strong></p>
<p>Founders talk is a really good because it interviews really interesting and influential people from the world of the web. Some of the notable people interveiwed include Drew Wilson (the guy who made Pictos &amp; Screeny) &amp; Vitalty Friedman (The editor-in-cheif of smashing magazine).</p>
<p><em>Average Duration</em>: ~ 60 minutes<br />
<em>Release Schedule</em>: Weekly</p>
<p><strong>2. <a href="http://javascriptshow.com/">The Javascript Show</a></strong></p>
<p>The Javascript show is a great round up of all the newest Javascript goings on in the Javascript world. It&#8217;s a great source to find out about new libraries &amp; Javascript news. The key reason I love this show is because they cover a wide variety of useful tools &amp; I always start using the libraries and tools they mention.</p>
<p><em>Average Duration</em>: ~45 minutes<br />
<em>Release Schedule</em>: Weekly</p>
<p><strong>3. <a href="http://ee-podcast.com/">The ExpressionEngine Podcast</a></strong></p>
<p>I&#8217;m not a massive fan of ExpressionEngine (I am a much bigger fan of CMS&#8217;s such as Perch or WordPress), however their podcast is really well put together &amp; really high quality. While it does have a big focus on creating websites in EE, most the stuff they talk about can be applied to working with any website.</p>
<p><em>Average Duration</em>: ~35 minutes<br />
<em>Release Schedule</em>: Weekly</p>
<p><strong>4. <a href="http://thechangelog.com/tagged/episode">The Changelog</a></strong></p>
<p>The Changelog podcast is great , it covers web and desktop development &amp; the hosts appears to be quite well connected (So they interview some pretty interesting folk).</p>
<p><em>Average Duration</em>: ~30 minutes<br />
<em>Release Schedule</em>: Weekly</p>
<p><span id="more-2143"></span></p>
<p><strong>5. <a href="http://www.sitepoint.com/category/podcast/">SitePoint</a></strong></p>
<p>SitePoint is a really great resource of materials to get stared in the world of web development. Their podcast is really well put together &amp; really informative.</p>
<p><em>Average Duration</em>: ~40 minutes<br />
<em>Release Schedule</em>: Weekly</p>
<p><strong>6. <a href="http://thinkvitamin.com/podcast/">Think Vitamin</a></strong></p>
<p>Think Vitamin is well known as a sound information on web development. Their podcast does not disappoint.</p>
<p><em>Average Duration</em>: ~40 minutes<br />
<em>Release Schedule</em>: Weekly</p>
<p><strong>7. <a href="http://www.wired.co.uk/podcast">Wired.co.uk</a></strong></p>
<p>Wired is fairly well known technology &amp; geek culture magazine, their podcast is a 40 or so minute summary of the weeks technology going ons with an in-depth interview. It&#8217;s really well edited, they stick to their release schedule &amp; the quality is fantastic.</p>
<p><em>Average Duration</em>: ~30 minutes<br />
<em>Release Schedule</em>: Weekly</p>
<p><strong>8. <a href="http://atxwebshow.com/">The ATX Web Show!</a></strong></p>
<p>While this podcast is mostly based around the going ons in Austin, Texas, it&#8217;s a really good for finding out some of the cool things happening in web development.</p>
<p><em>Average Duration</em>: ~45 minutes<br />
<em>Release Schedule</em>: Weekly</p>
<p><strong>9. <a href="http://www.bbc.co.uk/podcasts/series/digitalp">Click</a></strong></p>
<p>BBC Click is a really good TV show which has a excellent sister podcast which is really informative of the changes in the technology industry.</p>
<p><em>Average Duration</em>: ~30 minutes<br />
<em>Release Schedule</em>: Weekly</p>
<p><strong>10. <a href="http://pishposh.tv/forrst-podcast/">Forrst Podcast</a></strong></p>
<p>Forrst is pretty well known among most web designers, their podcast covers the going on in the forrest community &amp; also discusses whats happening in the rest of the web.</p>
<p><em>Average Duration</em>: ~45 minutes<br />
<em>Release Schedule</em>: Weekly</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fullondesign.co.uk/coding/2143-10-brilliant-web-development-technology-podcasts.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LivePage &#8211; Released</title>
		<link>http://www.fullondesign.co.uk/news/projects/livepage/2134-livepage-released.htm</link>
		<comments>http://www.fullondesign.co.uk/news/projects/livepage/2134-livepage-released.htm#comments</comments>
		<pubDate>Sun, 16 Oct 2011 20:28:45 +0000</pubDate>
		<dc:creator>Rogem</dc:creator>
				<category><![CDATA[LivePage]]></category>

		<guid isPermaLink="false">http://www.fullondesign.co.uk/?p=2134</guid>
		<description><![CDATA[I&#8217;ve just finished released a new extension for Google Chrome which makes developing websites a little quicker. It&#8217;s called LivePage and can be downloaded from the Google Web Store right now. In a nutshell, on pages you have set as being &#8220;live&#8221; the extension will load up a version of Live.JS which will keep your [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just finished released a new extension for Google Chrome which makes developing websites a little quicker. It&#8217;s called <a href="https://chrome.google.com/webstore/detail/pilnojpmdoofaelbinaeodfpjheijkbh">LivePage</a> and can be downloaded from the <a href="https://chrome.google.com/webstore/detail/pilnojpmdoofaelbinaeodfpjheijkbh">Google Web Store</a> right now.</p>
<p>In a nutshell, on pages you have set as being &#8220;live&#8221; the extension will load up a version of <a href="http://livejs.com/">Live.JS</a> which will keep your webpage on the most recent version without you having to refresh the page. Here is <a href="http://www.youtube.com/watch?v=TMwHII9-m1E">a short video overview</a>, with me explaining the basics of how it works.</p>
<p style="text-align: center;"><iframe src="http://www.youtube.com/embed/TMwHII9-m1E?hd=1" frameborder="0" width="640" height="360"></iframe></p>
<p>It&#8217;s also available on <a href="https://github.com/Rogem002/LivePage">GitHub</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fullondesign.co.uk/news/projects/livepage/2134-livepage-released.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL REPLACE function</title>
		<link>http://www.fullondesign.co.uk/coding/mysql/2120-mysql-replace-function.htm</link>
		<comments>http://www.fullondesign.co.uk/coding/mysql/2120-mysql-replace-function.htm#comments</comments>
		<pubDate>Sat, 10 Sep 2011 22:55:33 +0000</pubDate>
		<dc:creator>Rogem</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.fullondesign.co.uk/?p=2120</guid>
		<description><![CDATA[MySQL always surprises me in the sheer amount of stuff you can do in it. For example I recently found it has a bunch of String Functions. The main one I found to be useful was the REPLACE function, which works like this: So it can be used like: So if you wanted to go through a [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL always surprises me in the sheer amount of stuff you can do in it. For example I recently found it has a bunch of <a href="http://dev.mysql.com/doc/refman/5.0/en/string-functions.html">String Functions</a>. The main one I found to be useful was the <a href="http://dev.mysql.com/doc/refman/5.0/en/string-functions.html#function_replace">REPLACE function</a>, which works like this:</p>
<pre class="brush: plain; title: ; notranslate">REPLACE(Original String, Find This, Replace with this)</pre>
<p>So it can be used like:</p>
<pre class="brush: plain; title: ; notranslate">SELECT REPLACE('My Original String', 'Original', 'Modified');
# This will output: My Modified String</pre>
<p>So if you wanted to go through a full  table and replace a bunch of strings, you could use it like this:</p>
<pre class="brush: plain; title: ; notranslate">UPDATE `table_name` SET `field_name` = REPLACE(`field_name`, 'Find Me', 'Replace with Me');</pre>
<p>Useful no?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fullondesign.co.uk/coding/mysql/2120-mysql-replace-function.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Share or wait rageboxes (And how to bypass them)</title>
		<link>http://www.fullondesign.co.uk/coding/xhtml_and_css/2109-share-or-wait-rage-boxes-and-how-to-bypass-them.htm</link>
		<comments>http://www.fullondesign.co.uk/coding/xhtml_and_css/2109-share-or-wait-rage-boxes-and-how-to-bypass-them.htm#comments</comments>
		<pubDate>Tue, 06 Sep 2011 12:20:53 +0000</pubDate>
		<dc:creator>Rogem</dc:creator>
				<category><![CDATA[XHTML & CSS]]></category>

		<guid isPermaLink="false">http://www.fullondesign.co.uk/?p=2109</guid>
		<description><![CDATA[I was recently shown (via Reddit) possibly one of the biggest crime against UX, a lightbox which asks you to share the website or wait 600 seconds. At first I thought it was fake, but if you visit the offending website, it&#8217;s unfortunately real. So yeah, after a short time of giggling and raging I [...]]]></description>
			<content:encoded><![CDATA[<p>I was recently shown (via <a href="http://www.reddit.com/r/reddit.com/comments/k5pgj/share_or_wait_600_seconds_i_will_do_neither/">Reddit</a>) possibly one of the biggest crime against UX, a lightbox which asks you to share the website or wait 600 seconds.</p>
<p><img class="aligncenter size-full wp-image-2110" title="share or wait 600 seconds *facepalm*" src="http://files.fullondesign.co.uk/uploads/2011/09/share_or_wait_600_seconds.png" alt="share or wait 600 seconds *facepalm*" width="498" height="214" /></p>
<p>At first I thought it was fake, but if you visit the <a href="http://www.soccercaffe.com/hot-news/indonesia-turmenistan-4-3.html" rel="nofollow">offending website</a>, it&#8217;s unfortunately real. So yeah, after a short time of giggling and raging I worked on a way to bypass this.</p>
<h3>How to bypass it</h3>
<p>The easiest way, is to vote with your feet and not use the website. But in some cases, that isn&#8217;t always an option.</p>
<p>A working method I found (if you are using Google Chrome or Safari) is to hide the element.  With your mouse right click on the element and click &#8220;Inspect Element&#8221;, this will open the developer tools. Then under the &#8220;style&#8221; side menu just add the rule &#8220;display:none;&#8221; and it should disappear. In most cases, it might look a bit like the screenshot below.</p>
<p><a href="http://files.fullondesign.co.uk/uploads/2011/09/developer_tools.png"><img class="aligncenter size-medium wp-image-2113" title="developer tools - showing the rule in action." src="http://files.fullondesign.co.uk/uploads/2011/09/developer_tools-300x180.png" alt="developer tools - showing the rule in action" width="300" height="180" /></a></p>
<p>You can also right click on the element in the developer tools and click &#8220;delete node&#8221; on the html causing the ragebox. </p>
<p><span id="more-2109"></span></p>
<h3>Extra Notes</h3>
<ul>
<li>This is the same method using on my post labelled: <a href="http://www.fullondesign.co.uk/coding/xhtml_and_css/1406-bypass-facebooks-like-this-to-see-the-picture-pages-using-google-chrome.htm">Bypass Facebook’s “Like this to see the picture” pages using Google Chrome</a>.</li>
<li>You can also add a rule to your AdBlocker to stop these working on most websites, but that might affect sites which use lightboxes to look pretty.</li>
<li>We totally need to standardise the &lt;lightbox&gt; tag into HTML5, just to deal with crap like this</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.fullondesign.co.uk/coding/xhtml_and_css/2109-share-or-wait-rage-boxes-and-how-to-bypass-them.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP HTML5 Form Class on GitHub</title>
		<link>http://www.fullondesign.co.uk/news/projects/php-html5-form-class/2100-php-html5-form-class-on-github.htm</link>
		<comments>http://www.fullondesign.co.uk/news/projects/php-html5-form-class/2100-php-html5-form-class-on-github.htm#comments</comments>
		<pubDate>Mon, 22 Aug 2011 10:24:26 +0000</pubDate>
		<dc:creator>Rogem</dc:creator>
				<category><![CDATA[PHP-HTML5-Form-class]]></category>

		<guid isPermaLink="false">http://www.fullondesign.co.uk/?p=2100</guid>
		<description><![CDATA[I just finished pushing a PHP HTML5 form class onto GitHub. It&#8217;s a bit of code I keep recycling and I thought it would be cool to share it with everyone. View / Download PHP HTML5 Form Class on GitHub This little class, helps you build and validate form objects. You can read about how [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished pushing a PHP HTML5 form class onto GitHub. It&#8217;s a bit of code I keep recycling and I thought it would be cool to share it with everyone.</p>
<p><a title="PHP HTML5 Form Class on GitHub" href="https://github.com/Rogem002/PHP-HTML5-Form-class">View / Download PHP HTML5 Form Class on GitHub</a></p>
<p>This little class, helps you build and validate form objects. You can read about how it works on the <a title="PHP HTML5 Form Class Wiki" href="https://github.com/Rogem002/PHP-HTML5-Form-class/wiki">wiki on GitHub</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fullondesign.co.uk/news/projects/php-html5-form-class/2100-php-html5-form-class-on-github.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Through The Wormhole With Morgan Freeman is awesome</title>
		<link>http://www.fullondesign.co.uk/uncategorized/2093-through-the-wormhole-with-morgan-freeman-is-awesome.htm</link>
		<comments>http://www.fullondesign.co.uk/uncategorized/2093-through-the-wormhole-with-morgan-freeman-is-awesome.htm#comments</comments>
		<pubDate>Sat, 13 Aug 2011 17:18:19 +0000</pubDate>
		<dc:creator>Rogem</dc:creator>
				<category><![CDATA[Off-Topic]]></category>

		<guid isPermaLink="false">http://www.fullondesign.co.uk/?p=2093</guid>
		<description><![CDATA[I recently was introduced to Through The Wormhole With Morgan Freeman which I found profoundly interesting. In a nutshell, it&#8217;s Morgan Freeman guiding you questions such as &#8220;Is There a Creator?&#8221;, &#8220;Is Time Travel Possible?&#8221; and &#8220;Are We Alone?&#8221; while giving you scientific theories to how/why certain phenomena is possible. While you can only buy season 1 [...]]]></description>
			<content:encoded><![CDATA[<p>I recently was introduced to <a href="http://www.amazon.co.uk/gp/product/B004Z9B7I6/ref=as_li_ss_tl?ie=UTF8&amp;tag=fulondes-21&amp;linkCode=as2&amp;camp=1634&amp;creative=19450&amp;creativeASIN=B004Z9B7I6">Through The Wormhole With Morgan Freeman</a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.co.uk/e/ir?t=&amp;l=as2&amp;o=2&amp;a=B004Z9B7I6" alt="" width="1" height="1" border="0" /> which I found profoundly interesting.</p>
<p>In a nutshell, it&#8217;s Morgan Freeman guiding you questions such as &#8220;Is There a Creator?&#8221;, &#8220;Is Time Travel Possible?&#8221; and &#8220;Are We Alone?&#8221; while giving you scientific theories to how/why certain phenomena is possible. </p>
<p>While you can only buy season 1 on DVD via amazon right now (UK), season 2 can be purchased online and is also awesome. </p>
<p>I highly recommend you give it a try <img src='http://www.fullondesign.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fullondesign.co.uk/uncategorized/2093-through-the-wormhole-with-morgan-freeman-is-awesome.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WP HTML5 Category Selector 1.0.0 Released!</title>
		<link>http://www.fullondesign.co.uk/news/projects/wp-html5-category-selector/2066-wp-html5-category-selector-1-0-0-released.htm</link>
		<comments>http://www.fullondesign.co.uk/news/projects/wp-html5-category-selector/2066-wp-html5-category-selector-1-0-0-released.htm#comments</comments>
		<pubDate>Fri, 15 Jul 2011 23:09:35 +0000</pubDate>
		<dc:creator>Rogem</dc:creator>
				<category><![CDATA[WP HTML5 Category Selector]]></category>

		<guid isPermaLink="false">http://www.fullondesign.co.uk/?p=2066</guid>
		<description><![CDATA[Good News Everyone! I have finally got around to delivering a new wordpress plugin, creatively named &#8220;WP HTML5 Category Selector&#8220;. In a nutshell the WP HTML5 Category Selector adds a filter input field to the category box on the add/edit post page. It&#8217;s primarily aimed at bloggers who have lots (for example more then 10) [...]]]></description>
			<content:encoded><![CDATA[<p>Good News Everyone! I have finally got around to delivering a new wordpress plugin, creatively named &#8220;<a title="WP HTML5 Category Selector @ WordPress.org" href="http://wordpress.org/extend/plugins/wp-html5-category-selector/">WP HTML5 Category Selector</a>&#8220;.</p>
<p>In a nutshell the <a title="WP HTML5 Category Selector @ WordPress.org" href="http://wordpress.org/extend/plugins/wp-html5-category-selector/">WP HTML5 Category Selector</a> adds a filter input field to the category box on the add/edit post page. It&#8217;s primarily aimed at bloggers who have lots (for example more then 10) of categories.</p>
<p>If you have a chance to give it a try, I would love to hear you feedback (On twitter I&#8217;m <a title="Rogem002's Twitter" href="http://twitter.com/#!/Rogem002">@Rogem002</a>).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fullondesign.co.uk/news/projects/wp-html5-category-selector/2066-wp-html5-category-selector-1-0-0-released.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Socialize This 2.2.0 Update Details</title>
		<link>http://www.fullondesign.co.uk/news/projects/socialize-this/1901-socialize-this-2-2-0-update-details.htm</link>
		<comments>http://www.fullondesign.co.uk/news/projects/socialize-this/1901-socialize-this-2-2-0-update-details.htm#comments</comments>
		<pubDate>Wed, 13 Jul 2011 12:40:17 +0000</pubDate>
		<dc:creator>Rogem</dc:creator>
				<category><![CDATA[Socialize This]]></category>

		<guid isPermaLink="false">http://www.fullondesign.co.uk/?p=1901</guid>
		<description><![CDATA[Socialize This 2.2.0 has just been pushed to the WordPress Plugins Repo, and is now available for download. Key changes include: Removed PHP4 support Added Google +1 support Improved analytic data Removed &#8220;Attempt to extend PHP max_execution_time and memory_limit&#8221; options. Made default widget set a sprite image. Made a few UI changes for a better UX I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>Socialize This 2.2.0 has just been pushed to the WordPress Plugins Repo, and is now <a title="Socialize This - Wordress" href="http://wordpress.org/extend/plugins/socialize-this/">available for download</a>.</p>
<p>Key changes include:</p>
<ul>
<li>Removed PHP4 support</li>
<li>Added Google +1 support</li>
<li>Improved analytic data</li>
<li>Removed &#8220;Attempt to extend PHP max_execution_time and memory_limit&#8221; options.</li>
<li>Made default widget set a sprite image.</li>
<li>Made a few UI changes for a better UX</li>
</ul>
<p>I&#8217;m also planning to create a GitHub repository to make it easier for everyone to contribute to future versions.</p>
<p>Enjoy <img src='http://www.fullondesign.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.fullondesign.co.uk/news/projects/socialize-this/1901-socialize-this-2-2-0-update-details.htm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using cookieless domains to improve a website performance</title>
		<link>http://www.fullondesign.co.uk/coding/1668-using-cookieless-domains-to-improve-a-website-performance.htm</link>
		<comments>http://www.fullondesign.co.uk/coding/1668-using-cookieless-domains-to-improve-a-website-performance.htm#comments</comments>
		<pubDate>Fri, 01 Jul 2011 20:49:42 +0000</pubDate>
		<dc:creator>Rogem</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Code Language]]></category>
		<category><![CDATA[Config]]></category>
		<category><![CDATA[Cookie Data]]></category>
		<category><![CDATA[Domain]]></category>
		<category><![CDATA[Domains]]></category>
		<category><![CDATA[Improving Performance]]></category>
		<category><![CDATA[Kilobytes]]></category>
		<category><![CDATA[Loading Times]]></category>
		<category><![CDATA[Static Files]]></category>
		<category><![CDATA[Static Image]]></category>
		<category><![CDATA[Subdomain]]></category>
		<category><![CDATA[Unnecessary Data]]></category>

		<guid isPermaLink="false">http://www.fullondesign.co.uk/?p=1668</guid>
		<description><![CDATA[Fast loading times are a really important factor when it comes to website ranking, so it&#8217;s important to remove as much unnecessary data as possible. A good method to do this is via cookieless domains. Cookieless domains are (as the name suggests) are domains, in which the user will not send cookies (Which can add quite a [...]]]></description>
			<content:encoded><![CDATA[<p>Fast loading times are a really important factor when it comes to website ranking, so it&#8217;s important to remove as much unnecessary data as possible. A good method to do this is via cookieless domains.</p>
<p>Cookieless domains are (as the name suggests) are domains, in which the user will not send cookies (Which can add quite a few kilobytes to a request). For example, say I want a user to load a static image it would be silly of them to also send me the cookie data. Luckily they are super easy to set up.</p>
<p><span id="more-1668"></span></p>
<h3>Set up a sub-domain</h3>
<p>Firstly, set up a subdomain on your website. For example static.yourdomain.com would be suitable, but it&#8217;s really up to you. Now point the domain to a path where you will keep your static files (Such as images and CSS files). For Full On Design, I set up <a href="http://files.fullondesign.co.uk/">http://files.fullondesign.co.uk/</a>.</p>
<h3>Stop cookies being set site wide</h3>
<p>Next, make sure your website does not set website wide cookies. The fastest way to do this is by amending the .htaccess file and adding a <a href="http://httpd.apache.org/docs/2.2/mod/mod_usertrack.html#CookieDomain">CookieDomain Directive</a>. For example: </p>
<pre class="brush: plain; title: ; notranslate">
CookieDomain www.fullondesign.co.uk
</pre>
<p>Alternatively in PHP&#8217;s <a href="http://php.net/manual/en/function.setcookie.php">setcookie()</a> function, I could just use something like:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;?php
setcookie(&quot;TestCookie&quot;, 'Some Value', time()+3600, &quot;/&quot;, &quot;www.fullondesign.co.uk&quot;, 1);
?&gt;
</pre>
<p>The key point to note is that the domain parameter is set to www.fullondesign.co.uk, not .fullondesign.co.uk. Thus the cookies will only be sent when the subdomain is www.fullondesign.co.uk. </p>
<p>Now start linking up to files in that directory and your pretty much done.</p>
<h3>Setting up cookieless domains in WordPress</h3>
<p>WordPress has a few neat built in functions to make this process easier. If you use wordpress pop the following code (just before the &#8220;That&#8217;s all, stop editing! Happy blogging.&#8221; comment) into your config.php file (amend as required):</p>
<pre class="brush: plain; title: ; notranslate">
define('COOKIE_DOMAIN', 'www.fullondesign.co.uk');
</pre>
<p>You can also change the uploads URL of your WordPress install to point to your cookieless domain. In the config.php file add the following(amend as required).: </p>
<pre class="brush: plain; title: ; notranslate">
define('WP_CONTENT_URL', 'http://files.fullondesign.co.uk');
</pre>
<h3>Useful Resources </h3>
<p>I&#8217;ve barely touched on the topic of cookieless domains aside from just saying &#8220;They making your website load faster&#8221;, here a two website which go a little more in depth.</p>
<ul>
<li><a href="http://code.google.com/speed/page-speed/docs/request.html">Google: Minimize request overhead</a></li>
<li><a href="http://www.ravelrumba.com/blog/static-cookieless-domain/">Ravelrumba: Serving Static Content from a Cookieless Domain</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.fullondesign.co.uk/coding/1668-using-cookieless-domains-to-improve-a-website-performance.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>PDO (PHP Data Objects) &#8211; Starter Guide</title>
		<link>http://www.fullondesign.co.uk/coding/php/1907-pdo-php-data-objects-starter-guide.htm</link>
		<comments>http://www.fullondesign.co.uk/coding/php/1907-pdo-php-data-objects-starter-guide.htm#comments</comments>
		<pubDate>Fri, 01 Jul 2011 20:14:19 +0000</pubDate>
		<dc:creator>Rogem</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.fullondesign.co.uk/?p=1907</guid>
		<description><![CDATA[It may surprise you to hear, that using the mysql_connect() function in PHP has recently be marked as &#8220;old hat&#8221; coding because it&#8217;s slow in comparison with newer methods. A better alternative is PDO (PHP Data Objects), a lightweight method for accessing databases. Here is a quick overview to help you get started with PDO. [...]]]></description>
			<content:encoded><![CDATA[<p>It may surprise you to hear, that using the <a href="http://php.net/manual/en/function.mysql-connect.php">mysql_connect()</a> function in PHP has recently be marked as &#8220;old hat&#8221; coding because it&#8217;s slow in comparison with newer methods. A better alternative is <a href="http://php.net/manual/en/book.pdo.php">PDO (PHP Data Objects)</a>, a lightweight method for accessing databases. Here is a quick overview to help you get started with PDO.</p>
<h3>Reasons to use PDO</h3>
<ul>
<li>It&#8217;s Fast - it talks to the database via a database specific PDO-driver.</li>
<li>It&#8217;s Object Oriented &#8211; The methods within the class are the same for each database driver, so you can easily change your database driver without lots of extra coding.</li>
<li>It&#8217;s Flexible-  You can easily change between such database drivers as PostgreSQL, MySQL or SQLite by pretty much just changing your construct statement.</li>
<li>It&#8217;s Safer &#8211; PDO encourages you to bind parameters to your SQL query&#8217;s, meaning that it&#8217;s significantly less likely your website will suffer from a SQL injection based attack.</li>
</ul>
<p><span id="more-1907"></span></p>
<h3>Connecting to a Database</h3>
<p>Connecting to a database is pretty simple. Here is how to connect to a MySQL Database.</p>
<pre class="brush: plain; title: ; notranslate">
&lt;?php
// Define the parameters
$host = 'localhost';
$dbname = 'my_database';
$user = 'mysql_username';
$pass = 'mysql_password';

try {
	// Call the PDO class.
	$db= new PDO('mysql:host='.$host.';dbname='.$dbname, $user, $pass);
} catch(PDOException $e) {
	// If something goes wrong, PDO throws an exception with a nice error message.
	echo $e-&gt;getMessage();
}

?&gt;
</pre>
<h3>Doing A Query</h3>
<p>Again, doing a query is just as simple as:</p>
<pre class="brush: plain; title: ; notranslate">
&lt;?php
$query = $db-&gt;query('SELECT * FROM `users` ORDER BY ID DESC;');
$result = $query-&gt;fetchAll(PDO::FETCH_ASSOC);

// $result will now contain an object of all the rows in the table 'Users'
?&gt;
</pre>
<p>However, if you are using user variables which may cause a SQL Injection you should bind the parameter to the query (see next example).</p>
<h3>Binding a parameter to a query</h3>
<pre class="brush: plain; title: ; notranslate">
&lt;?php
$query = $db-&gt;prepare('SELECT * FROM `users` WHERE `ID` = :ID: AND `email` = :email: ORDER BY ID DESC LIMIT 0,1;');
$query-&gt;execute(array(':ID:' =&gt; '3', ':email:' =&gt; 'me@email.com'));
$result = $query-&gt;fetchAll(PDO::FETCH_ASSOC);
?&gt;
</pre>
<p>If you bind a parameter to a request, it will sterilize the input so that it will not cause a SQL Injection.</p>
<h3>Useful Resources</h3>
<p><a href="http://php.net/manual/en/book.pdo.php">PHP Manual: PHP Data Objects</a></p>
<p><a href="http://net.tutsplus.com/tutorials/php/why-you-should-be-using-phps-pdo-for-database-access/">Nettuts+: Why you Should be using PHP’s PDO for Database Access</a></p>
<p><a href="http://www.amazon.co.uk/gp/product/0596804377/ref=as_li_ss_tl?ie=UTF8&#038;tag=fulondes-21&#038;linkCode=as2&#038;camp=1634&#038;creative=19450&#038;creativeASIN=0596804377">PHP: The Good Parts</a><img src="http://www.assoc-amazon.co.uk/e/ir?t=&#038;l=as2&#038;o=2&#038;a=0596804377" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<h3>Update:</h3>
<p><a href="http://news.php.net/php.internals/53799">As of PHP 5.4 the MySQL extension will be softly deprecated</a>. This means you really should start using PDO ASAP!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.fullondesign.co.uk/coding/php/1907-pdo-php-data-objects-starter-guide.htm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: basic
Database Caching using disk: basic
Object Caching 563/664 objects using disk: basic

Served from: www.fullondesign.co.uk @ 2012-02-04 07:56:05 -->
