<?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>Hi, I&#039;m Dan Cunningham &#187; Standards</title>
	<atom:link href="http://dancunningham.co.uk/category/web-standards/feed/" rel="self" type="application/rss+xml" />
	<link>http://dancunningham.co.uk</link>
	<description>Webgeek, Designer and Developer from England, UK</description>
	<lastBuildDate>Wed, 01 Feb 2012 22:24:55 +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>Multiple Domain Names, Duplicate Content Fix</title>
		<link>http://dancunningham.co.uk/2010/08/06/multiple-domain-names-duplicate-content-fix/</link>
		<comments>http://dancunningham.co.uk/2010/08/06/multiple-domain-names-duplicate-content-fix/#comments</comments>
		<pubDate>Fri, 06 Aug 2010 20:02:37 +0000</pubDate>
		<dc:creator>Dan Cunningham</dc:creator>
				<category><![CDATA[Geek]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Standards]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.dancunningham.co.uk/?p=218</guid>
		<description><![CDATA[Being a web geek I tend to have my fingers in all the bits and bytes that circle the world wide web, Now this is not in anyways bad but it means my time is always pulled into diverse little specs of dust, fluttering from one space into the next! Now recently I&#8217;ve been asked [...]]]></description>
			<content:encoded><![CDATA[<p>Being a web geek I tend to have my fingers in all the bits and bytes that circle the world wide web, Now this is not in anyways bad but it means my time is always pulled into diverse little specs of dust, fluttering from one space into the next! </p>
<p>Now recently I&#8217;ve been asked alot about Search Engine Optimization, and how people can improve their own domain listings within Google, Bing, Yahoo and other Search engines without going into the whole symantic drama that is HTML coding.</p>
<p>Being a web developer I thought to myself there is no way to fix a ranking without editing the site! Or is there?&#8230; Apprently around 30% of company websites and other small organisations don&#8217;t realise that they are infact doing this and they kill off alot of their own rankings due to one little issue that is the www&#8217;s! </p>
<p>Still not with me? I&#8217;ll run you upto speed on what I&#8217;m referring to&#8230;<br />
Believe it or not, you can actually ask Google, &#8220;How many pages of my website do you have in your memory?&#8221;&#8230; To do this you need to use the <strong>site:url</strong> syntax  within a Google search, What Google will then do is reply with a list of all your domains pages. Fortunatly if you havn&#8217;t been savi and not added this very little fix you will see that Google will have dropped alot of originally decent content and placed it upon the other domain.</p>
<h3>Google Search Comparisons</h3>
<p>Without www&#8217;s<br />
<img src="http://www.dancunningham.co.uk/wp-content/plugins/withoutwww.jpg" alt="withoutwww" title="withoutwww" class="alignnone size-full wp-image-225" /></p>
<p>With www&#8217;s<br />
<img src="http://www.dancunningham.co.uk/wp-content/plugins/withwww.jpg" alt="withwww" title="withwww" class="alignnone size-full wp-image-224" /></p>
<p>Now the above is pretty obvious, I&#8217;ve requested all the pages that are in the google listing engine that are registered under the said sites. Obviously these two domains are the same&#8230; So why is google indexing them seperately? Thats down to how you have your server/site setup.</p>
<p>Ideally what you want is one domain that is either http://test.com or http://www.test.com and not both.</p>
<p>To fix the issue and gain your search engine rankings quickly you need to tell a visitor to go to either one or the other. Now the question I know you&#8217;re going to be asking is, &#8220;Which is better, www&#8217;s or no www&#8217;s?&#8221;. Now this is down to personal perference but I personally rather have no www&#8217;s, and i&#8217;ll explain why.</p>
<p>With the internet progressing with Twitter, Facebook, and other various mobile devices people are using urls more and more day in and day out. Now when you type addresses all day like I do you tent to get bored and annoyed at typing www&#8217;s time after time!</p>
<p>Also I actually prefer to go for with the other big reason, I love to use short URLs and www&#8217;s are annoying (In my opinion).</p>
<h2>The mod_rewrite redirect fix</h2>
<p>To impliment this into your site couldn&#8217;t be easier! Just FTP onto your webhosting and into the root directory of your hosting files, Usuallly that would be www/ or public_html/ (something like that) create a new file called .htaccess and open it up with your editor.</p>
<p>Paste in the following code.<br />
<code>RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
RewriteCond %{HTTP_HOST} ^www.dancunningham.co.uk [NC]<br />
RewriteRule ^(.*)$ http://dancunningham.co.uk/$1 [L,R=301]<br />
</code></p>
<p>Now if you have multiple Top Level Domains (TLD&#8217;s) then you might want to point them all to the same hosting server / directory. Again thats not a problem we can tell the site to handle these in a similar way. Just add the extra domains into your .htaccess like the below example and the apache server will handle the rest.</p>
<p><code><br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{REQUEST_FILENAME} !-f<br />
RewriteCond %{REQUEST_FILENAME} !-d<br />
RewriteRule . /index.php [L]<br />
RewriteCond %{HTTP_HOST} ^www.dancunningham.co.uk [NC]<br />
RewriteRule ^(.*)$ http://dancunningham.co.uk/$1 [L,R=301]<br />
RewriteCond %{HTTP_HOST} ^www.cunni.co.uk [NC]<br />
RewriteRule ^(.*)$ http://dancunningham.co.uk/$1 [L,R=301]<br />
</code></p>
<p>I hope that this tutorial makes sense and helps those who are suffering fundamental search engine ranking issues! I only know of these issues as I&#8217;ve experienced them for myself. So again im simply passing on some knowledge to help others learn from mine. If anyone has anything they wish to add or comment on then please do so below.</p>
]]></content:encoded>
			<wfw:commentRss>http://dancunningham.co.uk/2010/08/06/multiple-domain-names-duplicate-content-fix/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to stop the &#8220;page contains secure and nonsecure items&#8221; warning</title>
		<link>http://dancunningham.co.uk/2010/04/24/how-to-stop-the-page-contains-secure-and-nonsecure-items-warning/</link>
		<comments>http://dancunningham.co.uk/2010/04/24/how-to-stop-the-page-contains-secure-and-nonsecure-items-warning/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 17:45:22 +0000</pubDate>
		<dc:creator>Dan Cunningham</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Geek]]></category>
		<category><![CDATA[Standards]]></category>

		<guid isPermaLink="false">http://www.dancunningham.co.uk/?p=234</guid>
		<description><![CDATA[Are your SSL web pages plagued by the browser warning &#8220;This page contains both secure and nonsecure items. Do you want to display the nonsecure items?&#8221; This is a common error that occurs when some element on a secure web page (one that is loaded with https:// in the address bar) is not being loaded [...]]]></description>
			<content:encoded><![CDATA[<p>Are your SSL web pages plagued by the browser warning &#8220;This page contains both secure and nonsecure items. Do you want to display the nonsecure items?&#8221;<br />
<a href="http://www.dancunningham.co.uk/wp-content/plugins/display-nonsecure-items.gif"><img src="http://www.dancunningham.co.uk/wp-content/plugins/display-nonsecure-items.gif" alt="display-nonsecure-items" title="display-nonsecure-items" width="332" height="150" class="alignleft size-full wp-image-235" /></a></p>
<p>This is a common error that occurs when some element on a secure web page (one that is loaded with https:// in the address bar) is not being loaded from a secure source. This usually occurs with images, frames, iframes, Flash, and JavaScripts. There are a few ways to fix it:<br />
1. Change all URLs to https</p>
<p>Just open up the offending web page and search for http://. Change the references on all images, iframes, Flash, and Javascripts to https://. For example.</p>
<p><code>&lt;img src=&quot;https://www.domain.com/image.gif&quot; alt=&quot;&quot; /&gt;</code></p>
<p>This may not work if you are loading an image from another site that does not have SSL set up. Also, with this method you&#8217;ll be loading SSL images even when the client is loading from a non-secure page. This will add extra processing load on the server and client. This is definitely not recommended for a high volume site.<br />
2. Change all links to // or make them relative</p>
<p>Rather than changing all the links to https://, change them to just //</p>
<p><code>&lt;img src=&quot;//www.domain.com/image.gif&quot; alt=&quot;&quot; /&gt;</code></p>
<p>Alternatively, if the images or scripts are located on the same domain, you can access them relatively, rather than absolutely:</p>
<p><code>&lt;img src=&quot;image.gif&quot; alt=&quot;&quot; /&gt;</code></p>
<p>Using this method, the browser will know that it must load the image securely if the web page is being loaded securely but it will also load the image normally if the page is not being accessed securely. The image will still need to be available on the other server securely. This is likely the best method of getting rid of the pesky &#8220;Do you want to display the nonsecure items?&#8221; warnings.<br />
3. Change the browser settings</p>
<p>It is best to change the code of the page that is giving the error, but if you don&#8217;t have access to change the code, you can always tell your personal web browser not to display that message. To do so follow these steps for Internet Explorer:</p>
<p>   1. Go to Tools, Internet Options.<br />
   2. Select the &#8220;Security&#8221; Tab and then click on the &#8220;Custom Level&#8221; button.<br />
   3. Scroll down until you see the option: &#8220;Display mixed content&#8221;. Select &#8220;Enable&#8221;.<br />
   4. Click Ok. Then you will get a &#8220;Security Warning&#8221; pop-up. Click Yes.</p>
<p>One common reason that this warning shows up is using normal Google Analytics code on a secure page. It is a simple fix to enable Google Analytics on a page using SSL.</p>
<p>If you use the unsecure Google Analytics code on one of your secure   web pages your web browser will warn that there is some page content   that is not secure. This problem can be easily solved by slightly   changing the code used to load Google Analytics.</p>
<p>Instead of:<br />
<code>&lt;script src=&quot;<strong>http://www.google-analytics.com/urchin.js</strong>&quot; type=&quot;text/javascript&quot;&gt;<br />&lt;/script&gt;</code><br />
Use:<br />
<code>&lt;script src=&quot;<strong>https://ssl.google-analytics.com/urchin.js</strong>&quot; type=&quot;text/javascript&quot;&gt; <br />&lt;/script&gt;</code></p>
<p>If you still get the &quot;page contains secure and nonsecure items&quot; after changing that code you should check for other page elements that are using http instead of https.</p>
<p>Google&#8217;s information about using <a href="http://www.google.com/support/googleanalytics/bin/answer.py?answer=55483&amp;topic=10981">SSL with Google Analytics</a> is also available.</p>
<p>Update: Google has now updated the Google Analytics code to use ga.js instead of the urchin.js file. In the process, they have implemented code that will automatically detect whether http or https needs to be used. The new code will also enable new features so it is recommended that you upgrade. This will solve the SSL problem so you won&#8217;t need to worry about the solution above. The upgrade instructions can be <a href="http://www.google.com/analytics/GATCmigrationguide.pdf">found here.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://dancunningham.co.uk/2010/04/24/how-to-stop-the-page-contains-secure-and-nonsecure-items-warning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YouTube Launches HTML5 Support</title>
		<link>http://dancunningham.co.uk/2010/01/21/youtube-launches-html5-support/</link>
		<comments>http://dancunningham.co.uk/2010/01/21/youtube-launches-html5-support/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 15:50:05 +0000</pubDate>
		<dc:creator>Dan Cunningham</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Standards]]></category>

		<guid isPermaLink="false">http://www.cunni.co.uk/?p=158</guid>
		<description><![CDATA[Well as the world of the internet evolves so does the code to run it. Yep thats right, looks like Google have implemented the first major we site to support HTML5. YouTube has just revealed that it is rolling out a new video player that supports HTLM5, one that can be accessed via YouTube’s TestTube [...]]]></description>
			<content:encoded><![CDATA[<p>Well as the world of the internet evolves so does the code to run it. Yep thats right, looks like Google have implemented the first major we site to support HTML5. YouTube has just revealed that it is rolling out a new video player that supports HTLM5, one that can be accessed via YouTube’s <a href="http://www.youtube.com/testtube">TestTube</a> idea incubator.</p>
<p>In an announcement earlier today, the Google (Google)-owned online video service stated that an HTML5-compatible player was the #1 request of its users. HTML5 is the upcoming new standard for the markup language behind most web pages, one that supports video, audio, drag-and-drop, canvas drawing, and many other new features and APIs.</p>
<p>Since HTML5 supports video embeds, YouTube has rolled out a version of its player that runs just on it. No browser plugins (e.g. Flash) are required to watch videos that support HTML5.</p>
<p>There are limitations, though. It doesn’t work with videos that have advertising, captions, or annotations. It also only works with HTML5-compatible browsers, meaning <a href="http://www.google.co.uk/chrome">Chrome</a> or <a href="http://www.apple.com/safari/">Safari</a> or <a href="http://code.google.com/chrome/chromeframe/">Chrome Frame</a> for IE if you so choose not to use a third party browser due to its looks/navigational differences.</p>
<p>You can take a look at a <a href="http://www.youtube.com/html5">demo</a> of the new HTML5 player here. As you can probably tell, it could use some more work, but YouTube promises to improve the interface over time.</p>
<p>We think this is a step in the right direction. While we don’t think Google should just switch over to HTML5 (Flash just allows for more functionality), we do think user should have the option. This is great to see a big website moving up in the support for new browsers and newly impressed code. I hope this means that someday the guys over at http://www.w3.org do make a HTML string that denied the use of Internet Explorer 6 though! *kneels &#038; prays*</p>
<p><a href="http://www.cunni.co.uk/wp-content/plugins/youtube.jpg"><img src="http://www.cunni.co.uk/wp-content/plugins/youtube.jpg" alt="youtube" title="youtube" width="690" class="aligncenter size-full wp-image-162" /></a></p>
<p>Source: mashable.com</p>
]]></content:encoded>
			<wfw:commentRss>http://dancunningham.co.uk/2010/01/21/youtube-launches-html5-support/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Looking into PHP Frameworks</title>
		<link>http://dancunningham.co.uk/2009/12/21/looking-into-php-frameworks/</link>
		<comments>http://dancunningham.co.uk/2009/12/21/looking-into-php-frameworks/#comments</comments>
		<pubDate>Mon, 21 Dec 2009 10:33:19 +0000</pubDate>
		<dc:creator>Dan Cunningham</dc:creator>
				<category><![CDATA[Standards]]></category>

		<guid isPermaLink="false">http://www.cunni.co.uk/?p=145</guid>
		<description><![CDATA[I&#8217;ve recently been coding alot in PHP and MySQL lately and some fellow designers and developers asked what framework I have been working with. Now when this question was asked I put my hands in the air and said, &#8220;Frame work? What frame work!&#8221; They all seemed to be amused by my honesty which is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been coding alot in PHP and MySQL lately and some fellow designers and developers asked what framework I have been working with. Now when this question was asked I put my hands in the air and said, &#8220;Frame work? What frame work!&#8221; They all seemed to be amused by my honesty which is cool but they said you&#8217;re seriously making things hard for yourself! </p>
<p>How apprently a framework is supposed to make you code things correctly into various libs and use them consistantly throught the backend code. The only issue with that is, most of the bespoke content that I write requires unique libs that are only referenced once, this makes the whole point of using a framework silly as I&#8217;m not actually saving anytime at all by doing this.</p>
<p>I did look into various frameworks though, and i have found that the following ones are really quite good, and depending on your knowledge and speed in picking up various code languages, you might want to have a dabble with some of these for yourself!</p>
<p><strong>Frame Works</strong><br />
<strong>Code Igniter</strong>: <a href="http://codeigniter.com">http://codeigniter.com</a><br />
Description: CodeIgniter is a powerful PHP framework with a very small footprint, built for PHP coders who need a simple and elegant toolkit to create full-featured web applications. If you&#8217;re a developer who lives in the real world of shared hosting accounts and clients with deadlines, and if you&#8217;re tired of ponderously large and thoroughly undocumented frameworks</p>
<p><strong>Cake PHP</strong>: <a href="http://cakephp.org/">http://cakephp.org</a><br />
Description: CakePHP is a rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. Using commonly known design patterns like MVC and ORM  within the convention over configuration paradigm, CakePHP reduces development costs and helps developers write less code.</p>
<p><strong>Zend</strong>: <a href="http://framework.zend.com">http://framework.zend.com</a><br />
Description: To provide a lightweight, loosely-coupled component library simplified to provide 4/5s of the functionality everyone needs and that lets you customize the other 20% to meet your specific business needs. By focusing on the most commonly needed functionality, we retain the simplified spirit of PHP programming, dramatically lower the learning curve, and your training costs – so developers get up-to-speed quickly.</p>
<p><strong>ash.MVC</strong>: <a href="http://www.ash-mvc.org/">http://www.ash-mvc.org</a><br />
Description: The basic approach of this framework is to adopt a middle-path approach between faster development cycle, and a robust and scalable application. Moreover, the schemes proposed in the framework stick to the line of simplicity all along.</p>
<p><strong>WASP</strong>: <a href="http://wasp.sourceforge.net/content/">http://wasp.sourceforge.net/content/</a><br />
Description: WASP is a powerful web application framework built on PHP 5. WASP strives to allow web developers to make great applications with more fun and less code, but in the familiar playground of PHP. </p>
<p>All the above prooved to work well at doing very similar tasks, but each has there own way of doing it. If you like the community based type of projects then i suggest Code Igniter/Cake PHP/Zend is the path you&#8217;d need to take, but at the end of the day a frame work is a personal choice, so it is really each to their own. Me personally? well, Im just going to be dabbling in a bit of everything, usually coding bespoke code means I have to be able to appoach it from various sides. Im still unsure which path I&#8217;m wanting to take with MVC! *shrugs*</p>
]]></content:encoded>
			<wfw:commentRss>http://dancunningham.co.uk/2009/12/21/looking-into-php-frameworks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How amazing is Serato Scratch Live!</title>
		<link>http://dancunningham.co.uk/2009/09/18/how-amazing-is-serato-scratch-live/</link>
		<comments>http://dancunningham.co.uk/2009/09/18/how-amazing-is-serato-scratch-live/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 13:56:26 +0000</pubDate>
		<dc:creator>Dan Cunningham</dc:creator>
				<category><![CDATA[Standards]]></category>

		<guid isPermaLink="false">http://www.cunni.co.uk/?p=137</guid>
		<description><![CDATA[I&#8217;ve recently been building up my DJ equiptment hardware to a respectable level, and know i feel its rather good. Industry standard Technics 1210&#8242;s + a Vestax PRO6 Scratch Mixer which compliment themselfs quite nicely in my personal turntablists cook book. Now the only thing missing was something to enable me to use Mp3&#8242;s on [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently been building up my DJ equiptment hardware to a respectable level, and know i feel its rather good. Industry standard Technics 1210&#8242;s + a Vestax PRO6 Scratch Mixer which compliment themselfs quite nicely in my personal turntablists cook book.</p>
<p>Now the only thing missing was something to enable me to use Mp3&#8242;s on the analogue decks, and having set about for a while looking at various differnt approches to this issue I settled with Serato, I had looked into many of the other brands of virtual vinyl production such as final scratch, but serato has been by far the best without the latency issues. Dont get me wrong, you&#8217;ll never beat propper vinyl! But Serato has a pretty good head for resampling time synced code! </p>
<p>Its quite honestly amazing!</p>
<p>Here&#8217;s a shot of how Serato works:<br />
<img src="http://www.bananasmusic.com/multimedia/10778/BodyImage/rane-serato-diagram.gif" alt="Serato setup" /></p>
<p>And another of the PC interface:<br />
<img src="http://www.alphasoundkcdj.com/images/serato_scratch_live_02_f568.jpg" alt="Serato Interface" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dancunningham.co.uk/2009/09/18/how-amazing-is-serato-scratch-live/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

