<?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>Sam Doyle</title>
	<atom:link href="http://www.sdoyle.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sdoyle.net</link>
	<description>Web Developer of a Different Sort</description>
	<lastBuildDate>Wed, 12 May 2010 20:09:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Convert Jpeg to ASCII with PHP</title>
		<link>http://www.sdoyle.net/2010/05/convert-jpeg-to-ascii-with-php/</link>
		<comments>http://www.sdoyle.net/2010/05/convert-jpeg-to-ascii-with-php/#comments</comments>
		<pubDate>Wed, 12 May 2010 19:50:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.sdoyle.net/?p=140</guid>
		<description><![CDATA[&#60;html&#62;
&#60;head&#62;
&#60;title&#62;Ascii&#60;/title&#62;
&#60;style&#62;
body{
    line-height:1px;
    font-size:1px;
}
&#60;/style&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;?php
function getext($filename) {
    $pos = strrpos($filename,'.');
    $str = substr($filename, $pos);
    return $str;
}
if(!isset($_POST['submit'])){
?&#62;
&#60;form action=&#34;&#60;?echo $_SERVER['PHP_SELF'];?&#62;&#34; method=&#34;post&#34;&#62;
    JPG img URL: &#60;input type=&#34;text&#34; name=&#34;image&#34;&#62;&#60;br&#62;
    &#60;input type=&#34;submit&#34; name=&#34;submit&#34; value=&#34;Create&#34;&#62;
&#60;/form&#62;
&#60;?
}else{
    $image = $_POST['image'];
  [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;">
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;Ascii&lt;/title&gt;
&lt;style&gt;
body{
    line-height:1px;
    font-size:1px;
}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php
function getext($filename) {
    $pos = strrpos($filename,'.');
    $str = substr($filename, $pos);
    return $str;
}
if(!isset($_POST['submit'])){
?&gt;
&lt;form action=&quot;&lt;?echo $_SERVER['PHP_SELF'];?&gt;&quot; method=&quot;post&quot;&gt;
    JPG img URL: &lt;input type=&quot;text&quot; name=&quot;image&quot;&gt;&lt;br&gt;
    &lt;input type=&quot;submit&quot; name=&quot;submit&quot; value=&quot;Create&quot;&gt;
&lt;/form&gt;
&lt;?
}else{
    $image = $_POST['image'];
    $ext = getext($image);
    if($ext == &quot;.jpg&quot;){
        $img = ImageCreateFromJpeg($image);
    }
    else{
        echo'Wrong File Type';
    }
    $width = imagesx($img);
    $height = imagesy($img);

    for($h=0;$h&lt;$height;$h++){
        for($w=0;$w&lt;=$width;$w++){
            $rgb = ImageColorAt($img, $w, $h);
            $r = ($rgb &gt;&gt; 16) &amp; 0xFF;
            $g = ($rgb &gt;&gt; 8) &amp; 0xFF;
            $b = $rgb &amp; 0xFF;
            if($w == $width){
                echo '&lt;br&gt;';
            }else{
                echo '&lt;span style=&quot;color:rgb('.$r.','.$g.','.$b.');&quot;&gt;#&lt;/span&gt;';
            }
        }
    }
}
?&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>I can&#8217;t take any credit for this&#8230;. I saw it over at <a href="http://phpsnips.com/snippet.php?id=29" rel="ext">PHPSnips</a> and thought it was cool</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-comfeed">
			<a href="http://www.sdoyle.net/2010/05/convert-jpeg-to-ascii-with-php/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Convert+Jpeg+to+ASCII+with+PHP+-+http://bit.ly/bOiqsy+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.sdoyle.net/2010/05/convert-jpeg-to-ascii-with-php/&amp;t=Convert+Jpeg+to+ASCII+with+PHP" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.sdoyle.net/2010/05/convert-jpeg-to-ascii-with-php/&amp;title=Convert+Jpeg+to+ASCII+with+PHP" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.sdoyle.net/2010/05/convert-jpeg-to-ascii-with-php/&amp;title=Convert+Jpeg+to+ASCII+with+PHP" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sdoyle.net/2010/05/convert-jpeg-to-ascii-with-php/&amp;title=Convert+Jpeg+to+ASCII+with+PHP" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.sdoyle.net/2010/05/convert-jpeg-to-ascii-with-php/&amp;title=Convert+Jpeg+to+ASCII+with+PHP" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.sdoyle.net/2010/05/convert-jpeg-to-ascii-with-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cross Browser Compatable Rounded Corners with CSS3 &amp; jQuery</title>
		<link>http://www.sdoyle.net/2010/05/cross-browser-compatable-rounded-corners-with-css3-jquery/</link>
		<comments>http://www.sdoyle.net/2010/05/cross-browser-compatable-rounded-corners-with-css3-jquery/#comments</comments>
		<pubDate>Mon, 10 May 2010 18:50:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript / jQuery]]></category>
		<category><![CDATA[XHTML / HTML]]></category>

		<guid isPermaLink="false">http://www.sdoyle.net/?p=133</guid>
		<description><![CDATA[Today (at my Day Job) I had the task of taking a PSD and slice it up ready to go into a CMS. For the first time I decided it was time to start using some css3 and html5.
Everything was running smoothly until I hit the main navigation. Each navigation item needed to have an [...]]]></description>
			<content:encoded><![CDATA[<p>Today (at my Day Job) I had the task of taking a PSD and slice it up ready to go into a CMS. For the first time I decided it was time to start using some css3 and html5.</p>
<p>Everything was running smoothly until I hit the main navigation. Each navigation item needed to have an oval background on hover. See below.</p>
<p><a href="http://www.sdoyle.net/wp-content/uploads/2010/05/eg.jpg" rel="shadowbox"><img class="aligncenter size-full wp-image-134" title="Rounded Corners Example" src="http://www.sdoyle.net/wp-content/uploads/2010/05/eg.jpg" alt="" width="160" height="106" /></a><em>Please excuse my dodgy paint drawing&#8230;. I&#8217;m on my girlfriends laptop at the moment with no photoshop.</em></p>
<p>After an hour or two&#8217;s research I found the perfect concoction. I&#8217;m going to explain below how to take a block level element and make the corners rounded.</p>
<p>I&#8217;m going to write all the code and comment it so you can see where I&#8217;m coming from.</p>
<pre class="brush: xml;">

&lt;!DOCTYPE HTML&gt;

&lt;html&gt;

&lt;head&gt;
 &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot; /&gt;
 &lt;title&gt;Your Website&lt;/title&gt;
 &lt;style type=&quot;text/css&quot;&gt;
 div#roundMyCorners {
 width: 200px;
 height: 200px;
 background-color: red;
 border: 1px solid black;
 /* The above is just some styling to give the target some dimensions and colours to work with */
 -webkit-border-radius: 6px;
 -moz-border-radius: 6px;
 /* The above will give #roundMyCorners 6px radius'd corners in firefox/safari/chrome etc.*/
 /* This is all that is needed for the above browsers */
 }
 &lt;/style&gt;
&lt;!-- There is no Internet Explorer compatable CSS rules for rounded corners so we'll use a nice simple jQuery plugin --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://code.jquery.com/jquery-1.4.2.min.js&quot;&gt;&lt;/script&gt;
&lt;!-- Reference jQuery from CDN --&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.methvin.com/jquery/jquery.corner.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
///once document is loaded &amp; browser is Internet Explorer
if($.browser.msie) {
 $(document).ready(function(){
 ///SELECTOR            .Corner object method
 $('#roundMyCorners').corner();
 });
}
&lt;/script&gt;

&lt;/head&gt;

&lt;body&gt;
 &lt;!-- This is the target --&gt;
 &lt;div id=&quot;roundMyCorners&quot;&gt;&lt;/div&gt;
&lt;/body&gt;

&lt;/html&gt;
</pre>
<p>Thanks to Chris @ Css-tricks.com for his html5 page structure.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-comfeed">
			<a href="http://www.sdoyle.net/2010/05/cross-browser-compatable-rounded-corners-with-css3-jquery/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Cross+Browser+Compatable+Rounded+Corners+with+CSS3+%26+jQuery+-+http://bit.ly/c4ULWg+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.sdoyle.net/2010/05/cross-browser-compatable-rounded-corners-with-css3-jquery/&amp;t=Cross+Browser+Compatable+Rounded+Corners+with+CSS3+%26+jQuery" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.sdoyle.net/2010/05/cross-browser-compatable-rounded-corners-with-css3-jquery/&amp;title=Cross+Browser+Compatable+Rounded+Corners+with+CSS3+%26+jQuery" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.sdoyle.net/2010/05/cross-browser-compatable-rounded-corners-with-css3-jquery/&amp;title=Cross+Browser+Compatable+Rounded+Corners+with+CSS3+%26+jQuery" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sdoyle.net/2010/05/cross-browser-compatable-rounded-corners-with-css3-jquery/&amp;title=Cross+Browser+Compatable+Rounded+Corners+with+CSS3+%26+jQuery" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.sdoyle.net/2010/05/cross-browser-compatable-rounded-corners-with-css3-jquery/&amp;title=Cross+Browser+Compatable+Rounded+Corners+with+CSS3+%26+jQuery" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.sdoyle.net/2010/05/cross-browser-compatable-rounded-corners-with-css3-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Images Blocked by Ad Blockers</title>
		<link>http://www.sdoyle.net/2010/04/images-blocked-by-ad-blockers/</link>
		<comments>http://www.sdoyle.net/2010/04/images-blocked-by-ad-blockers/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 10:25:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General Web Development]]></category>

		<guid isPermaLink="false">http://www.sdoyle.net/?p=126</guid>
		<description><![CDATA[A while back I spent about 3 days wondering why some of my images weren&#8217;t being displayed on a particular clients computer.
There was nothing out of the ordinary, he was running Window&#8217;s Vista and Internet Explorer 8. What we didn&#8217;t realise was that because I&#8217;d placed said images inside a folder named &#8220;banners&#8221; and said computer was [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I spent about 3 days wondering why some of my images weren&#8217;t being displayed on a particular clients computer.</p>
<p>There was nothing out of the ordinary, he was running Window&#8217;s Vista and Internet Explorer 8. What we didn&#8217;t realise was that because I&#8217;d placed said images inside a folder named &#8220;banners&#8221; and said computer was running behind a networked ad blocker. My images weren&#8217;t getting through.</p>
<p>Attached is a PDF containing all varieties of deviation NOT allowed by different ad blockers. I hope this comes in handy as much to you as it did me.</p>
<p>PDF Can be downloaded form here: <a href="http://www.sdoyle.net/wp-content/uploads/2010/04/blocked-images.pdf">blocked images</a>.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-comfeed">
			<a href="http://www.sdoyle.net/2010/04/images-blocked-by-ad-blockers/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Images+Blocked+by+Ad+Blockers+-+http://bit.ly/9o14l9+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.sdoyle.net/2010/04/images-blocked-by-ad-blockers/&amp;t=Images+Blocked+by+Ad+Blockers" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.sdoyle.net/2010/04/images-blocked-by-ad-blockers/&amp;title=Images+Blocked+by+Ad+Blockers" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.sdoyle.net/2010/04/images-blocked-by-ad-blockers/&amp;title=Images+Blocked+by+Ad+Blockers" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sdoyle.net/2010/04/images-blocked-by-ad-blockers/&amp;title=Images+Blocked+by+Ad+Blockers" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.sdoyle.net/2010/04/images-blocked-by-ad-blockers/&amp;title=Images+Blocked+by+Ad+Blockers" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.sdoyle.net/2010/04/images-blocked-by-ad-blockers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Pseudo-Class Selectors Emulation in Internet Explorer</title>
		<link>http://www.sdoyle.net/2010/03/css3-pseudo-class-selectors-emulation-in-internet-explorer/</link>
		<comments>http://www.sdoyle.net/2010/03/css3-pseudo-class-selectors-emulation-in-internet-explorer/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 20:35:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript / jQuery]]></category>

		<guid isPermaLink="false">http://www.sdoyle.net/?p=118</guid>
		<description><![CDATA[Keith Clark, an independent web developer from the UK, has developed a JavaScript solution to IE’s CSS3 shortcomings in relation to CSS3 selectors. CSS3 selectors became the first W3C module to reach proposed recommendation status back in December 2009.
His ie-css3.js project (currently in beta) allows Internet Explorer, versions 5 through 8, to identify CSS3 pseudo-class [...]]]></description>
			<content:encoded><![CDATA[<p>Keith Clark, an independent web developer from the UK, has developed a JavaScript solution to IE’s CSS3 shortcomings in relation to CSS3 selectors. CSS3 selectors became the first W3C module to reach proposed recommendation status back in December 2009.</p>
<p>His <a href="http://www.keithclark.co.uk/labs/ie-css3/" target="_blank">ie-css3.js</a> project (currently in beta) allows Internet Explorer, versions 5 through 8, to identify CSS3 pseudo-class selectors and render any style rules defined with them. All this is achieved by simply including the script, along with Robert Nyman’s <a href="http://www.domassistant.com/" target="_blank">DomAssistant</a>, within the head element of your web pages.</p>
<h3>Supported Pseudo-Classes</h3>
<ul>
<li>:nth-child</li>
<li>:nth-last-child</li>
<li>:nth-of-type</li>
<li>:nth-last-of-type</li>
<li>:first-child</li>
<li>:last-child</li>
<li>:only-child</li>
<li>:first-of-type</li>
<li>:only-of-type</li>
<li>:empty</li>
</ul>
<h3>Limitations of the project</h3>
<ul>
<li> Style sheets MUST be added to the page using atag. Page level stylesheets or inline styles won’t work. You can still use @import in your style sheets.</li>
<li>Style sheets MUST be hosted on the domain as the page.</li>
<li>Style sheets using file:// protocol will not work due to browser security restrictions.</li>
<li>The :not() pseudo-class is not supported.</li>
<li>The emulation is not dynamic. Once the styles are applied they are fixed so changes to the DOM won’t be reflected.</li>
</ul>
<h3>How does it work?</h3>
<p>ie-css3.js downloads each style sheet on the page and parses it for CSS3 pseudo-class selectors. If a selector is found it’s replaced by a CSS class of a similar name. For example: div:nth-child(2) will become div._iecss-nth-child-2. Next, Robert Nyman’s DOMAssistant is used to find the DOM nodes matching the original CSS3 selector and the same CSS class is applied them.</p>
<p>Finally, the original stylesheet is replaced with the new version and any elements targeted with CSS3 selectors will be styled.</p>
<h3>Bypassing IE’s CSS parser</h3>
<p>In accordance with the W3C specs, a web browser should discard style rules it doesn’t understand. This presents a problem — we need access to the CSS3 selectors in the style sheet but IE throws them away.</p>
<p>To avoid this issue each style sheet is downloaded using a XMLHttpRequest. This allows the script to bypass the browsers internal CSS parser and gain access to the raw CSS file.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-comfeed">
			<a href="http://www.sdoyle.net/2010/03/css3-pseudo-class-selectors-emulation-in-internet-explorer/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=CSS3+Pseudo-Class+Selectors+Emulation+in+Internet+Explorer+-+http://bit.ly/9Tx6EV+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.sdoyle.net/2010/03/css3-pseudo-class-selectors-emulation-in-internet-explorer/&amp;t=CSS3+Pseudo-Class+Selectors+Emulation+in+Internet+Explorer" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.sdoyle.net/2010/03/css3-pseudo-class-selectors-emulation-in-internet-explorer/&amp;title=CSS3+Pseudo-Class+Selectors+Emulation+in+Internet+Explorer" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.sdoyle.net/2010/03/css3-pseudo-class-selectors-emulation-in-internet-explorer/&amp;title=CSS3+Pseudo-Class+Selectors+Emulation+in+Internet+Explorer" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sdoyle.net/2010/03/css3-pseudo-class-selectors-emulation-in-internet-explorer/&amp;title=CSS3+Pseudo-Class+Selectors+Emulation+in+Internet+Explorer" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.sdoyle.net/2010/03/css3-pseudo-class-selectors-emulation-in-internet-explorer/&amp;title=CSS3+Pseudo-Class+Selectors+Emulation+in+Internet+Explorer" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.sdoyle.net/2010/03/css3-pseudo-class-selectors-emulation-in-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Text Rotation</title>
		<link>http://www.sdoyle.net/2010/03/css-text-rotation/</link>
		<comments>http://www.sdoyle.net/2010/03/css-text-rotation/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 20:26:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.sdoyle.net/?p=114</guid>
		<description><![CDATA[
.rotate {

/* Safari */
-webkit-transform: rotate(-90deg);

/* Firefox */
-moz-transform: rotate(-90deg);

/* Internet Explorer */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

}

&#60;p class=&#34;rotate&#34;&#62;This text would be rotated&#60;/p&#62;

The example above rotates text 90 degrees counterclockwise.
The rotation property of Internet Explorer’s BasicImage filter can accept one of four values: 0, 1, 2, or 3 which will rotate the element 0, 90, 180 or 270 degress respectively.





		
			Subscribe to [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: css;">

.rotate {

/* Safari */
-webkit-transform: rotate(-90deg);

/* Firefox */
-moz-transform: rotate(-90deg);

/* Internet Explorer */
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);

}

&lt;p class=&quot;rotate&quot;&gt;This text would be rotated&lt;/p&gt;
</pre>
<p>The example above rotates text 90 degrees counterclockwise.</p>
<p>The rotation property of Internet Explorer’s BasicImage filter can accept one of four values: 0, 1, 2, or 3 which will rotate the element 0, 90, 180 or 270 degress respectively.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-comfeed">
			<a href="http://www.sdoyle.net/2010/03/css-text-rotation/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=CSS+Text+Rotation+-+http://bit.ly/cTnDbT+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.sdoyle.net/2010/03/css-text-rotation/&amp;t=CSS+Text+Rotation" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.sdoyle.net/2010/03/css-text-rotation/&amp;title=CSS+Text+Rotation" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.sdoyle.net/2010/03/css-text-rotation/&amp;title=CSS+Text+Rotation" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sdoyle.net/2010/03/css-text-rotation/&amp;title=CSS+Text+Rotation" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.sdoyle.net/2010/03/css-text-rotation/&amp;title=CSS+Text+Rotation" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.sdoyle.net/2010/03/css-text-rotation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Create Custom Error Pages</title>
		<link>http://www.sdoyle.net/2010/03/how-to-create-custom-error-pages/</link>
		<comments>http://www.sdoyle.net/2010/03/how-to-create-custom-error-pages/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 12:14:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[htaccess]]></category>

		<guid isPermaLink="false">http://www.sdoyle.net/?p=112</guid>
		<description><![CDATA[Within your .htaccess file add the following  lines (and obviously change the filesnames/directories to suit your own needs):

ErrorDocument 400 /errors/badrequest.html
ErrorDocument 401 /errors/authreqd.html
ErrorDocument 403 /errors/forbid.html
ErrorDocument 404 /errors/notfound.html
ErrorDocument 500 /errors/serverr.html






		
			Subscribe to the comments for this post?
		
		
			Tweet This!
		
		
			Share this on Facebook
		
		
			Share this on del.icio.us
		
		
			Add this to Google Bookmarks
		
		
			Digg this!
		
		
			Stumble upon something good? Share it on StumbleUpon
		





]]></description>
			<content:encoded><![CDATA[<p>Within your <a href="http://httpd.apache.org/docs/1.3/howto/htaccess.html" target="_blank">.htaccess</a> file add the following  lines (and obviously change the filesnames/directories to suit your own needs):</p>
<pre class="brush: plain;">
ErrorDocument 400 /errors/badrequest.html
ErrorDocument 401 /errors/authreqd.html
ErrorDocument 403 /errors/forbid.html
ErrorDocument 404 /errors/notfound.html
ErrorDocument 500 /errors/serverr.html
</pre>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-comfeed">
			<a href="http://www.sdoyle.net/2010/03/how-to-create-custom-error-pages/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=How+To+Create+Custom+Error+Pages+-+http://bit.ly/caUMvq+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.sdoyle.net/2010/03/how-to-create-custom-error-pages/&amp;t=How+To+Create+Custom+Error+Pages" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.sdoyle.net/2010/03/how-to-create-custom-error-pages/&amp;title=How+To+Create+Custom+Error+Pages" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.sdoyle.net/2010/03/how-to-create-custom-error-pages/&amp;title=How+To+Create+Custom+Error+Pages" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sdoyle.net/2010/03/how-to-create-custom-error-pages/&amp;title=How+To+Create+Custom+Error+Pages" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.sdoyle.net/2010/03/how-to-create-custom-error-pages/&amp;title=How+To+Create+Custom+Error+Pages" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.sdoyle.net/2010/03/how-to-create-custom-error-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BillForBill.com @billforbill</title>
		<link>http://www.sdoyle.net/2010/03/billforbill-com-billforbill/</link>
		<comments>http://www.sdoyle.net/2010/03/billforbill-com-billforbill/#comments</comments>
		<pubDate>Fri, 19 Mar 2010 12:03:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General Web Development]]></category>
		<category><![CDATA[billforbill]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[sucks]]></category>

		<guid isPermaLink="false">http://www.sdoyle.net/?p=108</guid>
		<description><![CDATA[A few days ago I posted a normal complaint about #IE6. The twitter account @billforbill picked up on my tweet and send me a message telling me I may be interested in http://www.billforbill.com. So I had a quick look. I instantly thought what a brilliant concept.

The general idea is simply to collect a rough Idea [...]]]></description>
			<content:encoded><![CDATA[<p>A few days ago I posted a normal complaint about #IE6. The twitter account <a href="http://twitter.com/billforbill" target="_blank">@billforbill</a> picked up on my tweet and send me a message telling me I may be interested in <a href="http://www.billforbill.com">http://www.billforbill.com</a>. So I had a quick look. I instantly thought what a brilliant concept.</p>
<p><a href="http://www.sdoyle.net/wp-content/uploads/2010/03/billforbill.jpg" rel="shadowbox"><img class="aligncenter size-medium wp-image-109" title="billforbill" src="http://www.sdoyle.net/wp-content/uploads/2010/03/billforbill-300x229.jpg" alt="" width="300" height="229" /></a></p>
<p>The general idea is simply to collect a rough Idea of much time and money has been wasted &#8220;hacking&#8221; Internet Explorer 6 to get it work correctly.</p>
<p>All you do is fill in 3 fields: How many websites have you optimised for IE6? How many hours do you spend doing this per website? How much do you charge per hour? The backend of the site will then work out a total of much time/moneys been wasted and add it to a rolling bill. With the intention of presenting this bill to Bill Gates.</p>
<p>Now I&#8217;m under no illusion that this is going to instantly make Microsoft see sense and deminish IE6 but in my opinion anything that&#8217;s working against IE6 get a big fat thumbs up!</p>
<p>Check out the website at <a href="http://www.billforbill.com" target="_blank">www.billforbill.com</a> or the twitter account <a href="http://www.twitter.com/billforbill" target="_blank">@billforbill</a></p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-comfeed">
			<a href="http://www.sdoyle.net/2010/03/billforbill-com-billforbill/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=BillForBill.com+%40billforbill+-+http://bit.ly/9zq7FF+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.sdoyle.net/2010/03/billforbill-com-billforbill/&amp;t=BillForBill.com+%40billforbill" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.sdoyle.net/2010/03/billforbill-com-billforbill/&amp;title=BillForBill.com+%40billforbill" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.sdoyle.net/2010/03/billforbill-com-billforbill/&amp;title=BillForBill.com+%40billforbill" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sdoyle.net/2010/03/billforbill-com-billforbill/&amp;title=BillForBill.com+%40billforbill" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.sdoyle.net/2010/03/billforbill-com-billforbill/&amp;title=BillForBill.com+%40billforbill" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.sdoyle.net/2010/03/billforbill-com-billforbill/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Reset &#8211; Reduce Browser Inconsistancies</title>
		<link>http://www.sdoyle.net/2010/03/css-reset-reduce-browser-inconsistancies/</link>
		<comments>http://www.sdoyle.net/2010/03/css-reset-reduce-browser-inconsistancies/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 15:49:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.sdoyle.net/?p=105</guid>
		<description><![CDATA[To see the reasoning behind the need for a css reset, read here.

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, [...]]]></description>
			<content:encoded><![CDATA[<p>To see the reasoning behind the need for a css reset, read <a href="http://meyerweb.com/eric/thoughts/2007/04/18/reset-reasoning/" target="_blank">here</a>.</p>
<pre class="brush: css;">
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, font, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}

/* remember to define focus styles! */
:focus {
	outline: 0;
}

/* remember to highlight inserts somehow! */
ins {
	text-decoration: none;
}
del {
	text-decoration: line-through;
}

/* tables still need 'cellspacing=&quot;0&quot;' in the markup */
table {
	border-collapse: collapse;
	border-spacing: 0;
}
</pre>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-comfeed">
			<a href="http://www.sdoyle.net/2010/03/css-reset-reduce-browser-inconsistancies/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=CSS+Reset+-+Reduce+Browser+Inconsistancies+-+http://bit.ly/djGJRX+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.sdoyle.net/2010/03/css-reset-reduce-browser-inconsistancies/&amp;t=CSS+Reset+-+Reduce+Browser+Inconsistancies" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.sdoyle.net/2010/03/css-reset-reduce-browser-inconsistancies/&amp;title=CSS+Reset+-+Reduce+Browser+Inconsistancies" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.sdoyle.net/2010/03/css-reset-reduce-browser-inconsistancies/&amp;title=CSS+Reset+-+Reduce+Browser+Inconsistancies" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sdoyle.net/2010/03/css-reset-reduce-browser-inconsistancies/&amp;title=CSS+Reset+-+Reduce+Browser+Inconsistancies" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.sdoyle.net/2010/03/css-reset-reduce-browser-inconsistancies/&amp;title=CSS+Reset+-+Reduce+Browser+Inconsistancies" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.sdoyle.net/2010/03/css-reset-reduce-browser-inconsistancies/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Basic Page Structure &#124; UTF-8 &#124; Strict Doctype</title>
		<link>http://www.sdoyle.net/2010/02/my-basic-page-structure/</link>
		<comments>http://www.sdoyle.net/2010/02/my-basic-page-structure/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 15:13:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[XHTML / HTML]]></category>

		<guid isPermaLink="false">http://www.sdoyle.net/?p=102</guid>
		<description><![CDATA[Might be of use to someone:

&#60;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Strict//EN&#34;
&#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&#34;&#62;

&#60;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; xml:lang=&#34;en&#34; lang=&#34;en&#34;&#62;

&#60;head&#62;
     &#60;meta http-equiv=&#34;Content-Type&#34; content=&#34;text/html; charset=utf-8&#34;/&#62;

     &#60;title&#62;Test Page&#60;/title&#62;

     &#60;style type=&#34;text/css&#34;&#62;
        * { margin: 0; padding: 0;}
     &#60;/style&#62;

   [...]]]></description>
			<content:encoded><![CDATA[<p>Might be of use to someone:</p>
<pre class="brush: plain;">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;

&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;&gt;

&lt;head&gt;
     &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;/&gt;

     &lt;title&gt;Test Page&lt;/title&gt;

     &lt;style type=&quot;text/css&quot;&gt;
        * { margin: 0; padding: 0;}
     &lt;/style&gt;

     &lt;script type=&quot;text/javascript&quot; src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js&quot;&gt;&lt;/script&gt;

     &lt;script type=&quot;text/javascript&quot;&gt;
        $(function(){
            // Do stuff.
        });
     &lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;/body&gt;

&lt;/html&gt;
</pre>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-comfeed">
			<a href="http://www.sdoyle.net/2010/02/my-basic-page-structure/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=My+Basic+Page+Structure+%7C+UTF-8+%7C+Strict+Doctype+-+http://bit.ly/9Tpoag+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.sdoyle.net/2010/02/my-basic-page-structure/&amp;t=My+Basic+Page+Structure+%7C+UTF-8+%7C+Strict+Doctype" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.sdoyle.net/2010/02/my-basic-page-structure/&amp;title=My+Basic+Page+Structure+%7C+UTF-8+%7C+Strict+Doctype" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.sdoyle.net/2010/02/my-basic-page-structure/&amp;title=My+Basic+Page+Structure+%7C+UTF-8+%7C+Strict+Doctype" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sdoyle.net/2010/02/my-basic-page-structure/&amp;title=My+Basic+Page+Structure+%7C+UTF-8+%7C+Strict+Doctype" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.sdoyle.net/2010/02/my-basic-page-structure/&amp;title=My+Basic+Page+Structure+%7C+UTF-8+%7C+Strict+Doctype" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.sdoyle.net/2010/02/my-basic-page-structure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress: Disable Automatic Formatting Using a Shortcode</title>
		<link>http://www.sdoyle.net/2010/02/wordpress-disable-automatic-formatting-using-a-shortcode/</link>
		<comments>http://www.sdoyle.net/2010/02/wordpress-disable-automatic-formatting-using-a-shortcode/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 15:03:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.sdoyle.net/?p=100</guid>
		<description><![CDATA[function my_formatter($content) {
       $new_content = '';
       $pattern_full = '{(\[raw\].*?\[/raw\])}is';
       $pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
       $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);

       foreach ($pieces as $piece) {
   [...]]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;">
function my_formatter($content) {
       $new_content = '';
       $pattern_full = '{(\[raw\].*?\[/raw\])}is';
       $pattern_contents = '{\[raw\](.*?)\[/raw\]}is';
       $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE);

       foreach ($pieces as $piece) {
               if (preg_match($pattern_contents, $piece, $matches)) {
                       $new_content .= $matches[1];
               } else {
                       $new_content .= wptexturize(wpautop($piece));
               }
       }

       return $new_content;
}

remove_filter('the_content', 'wpautop');
remove_filter('the_content', 'wptexturize');

add_filter('the_content', 'my_formatter', 99);
</pre>
<p>This goes in the PHP in your functions.php file. Once done, you can use the [raw] shortcode in your posts: [raw]Unformatted code[/raw]</p>
<p>I grabbed this from CSS-Tricks. All credit to Chris Coyier who owns CSS-Tricks.</p>


<!-- Begin SexyBookmarks Menu Code -->
<div class="sexy-bookmarks sexy-bookmarks-expand sexy-bookmarks-spaced sexy-bookmarks-bg-caring-old">
<ul class="socials">
		<li class="sexy-comfeed">
			<a href="http://www.sdoyle.net/2010/02/wordpress-disable-automatic-formatting-using-a-shortcode/feed" rel="nofollow" title="Subscribe to the comments for this post?">Subscribe to the comments for this post?</a>
		</li>
		<li class="sexy-twitter">
			<a href="http://twitter.com/home?status=Wordpress%3A+Disable+Automatic+Formatting+Using+a+Shortcode+-+http://bit.ly/b3rNEt+&amp;source=shareaholic" rel="nofollow" title="Tweet This!">Tweet This!</a>
		</li>
		<li class="sexy-facebook">
			<a href="http://www.facebook.com/share.php?v=4&amp;src=bm&amp;u=http://www.sdoyle.net/2010/02/wordpress-disable-automatic-formatting-using-a-shortcode/&amp;t=Wordpress%3A+Disable+Automatic+Formatting+Using+a+Shortcode" rel="nofollow" title="Share this on Facebook">Share this on Facebook</a>
		</li>
		<li class="sexy-delicious">
			<a href="http://delicious.com/post?url=http://www.sdoyle.net/2010/02/wordpress-disable-automatic-formatting-using-a-shortcode/&amp;title=Wordpress%3A+Disable+Automatic+Formatting+Using+a+Shortcode" rel="nofollow" title="Share this on del.icio.us">Share this on del.icio.us</a>
		</li>
		<li class="sexy-googlebookmarks">
			<a href="http://www.google.com/bookmarks/mark?op=add&amp;bkmk=http://www.sdoyle.net/2010/02/wordpress-disable-automatic-formatting-using-a-shortcode/&amp;title=Wordpress%3A+Disable+Automatic+Formatting+Using+a+Shortcode" rel="nofollow" title="Add this to Google Bookmarks">Add this to Google Bookmarks</a>
		</li>
		<li class="sexy-digg">
			<a href="http://digg.com/submit?phase=2&amp;url=http://www.sdoyle.net/2010/02/wordpress-disable-automatic-formatting-using-a-shortcode/&amp;title=Wordpress%3A+Disable+Automatic+Formatting+Using+a+Shortcode" rel="nofollow" title="Digg this!">Digg this!</a>
		</li>
		<li class="sexy-stumbleupon">
			<a href="http://www.stumbleupon.com/submit?url=http://www.sdoyle.net/2010/02/wordpress-disable-automatic-formatting-using-a-shortcode/&amp;title=Wordpress%3A+Disable+Automatic+Formatting+Using+a+Shortcode" rel="nofollow" title="Stumble upon something good? Share it on StumbleUpon">Stumble upon something good? Share it on StumbleUpon</a>
		</li>
</ul>
<div style="clear:both;"></div>
</div>
<!-- End SexyBookmarks Menu Code -->

]]></content:encoded>
			<wfw:commentRss>http://www.sdoyle.net/2010/02/wordpress-disable-automatic-formatting-using-a-shortcode/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
