<?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>I am Ad Taylor &#187; shorts</title>
	<atom:link href="http://www.iamadtaylor.com/blog/shorts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iamadtaylor.com</link>
	<description>The portfolio and blog of Ad Taylor</description>
	<lastBuildDate>Thu, 20 May 2010 22:49:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Using Lessn to handle your international domains</title>
		<link>http://www.iamadtaylor.com/using-lessn-to-handle-your-international-domains/</link>
		<comments>http://www.iamadtaylor.com/using-lessn-to-handle-your-international-domains/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 12:51:48 +0000</pubDate>
		<dc:creator>Ad Taylor</dc:creator>
				<category><![CDATA[shorts]]></category>

		<guid isPermaLink="false">http://www.iamadtaylor.com/?p=378</guid>
		<description><![CDATA[A while ago I read Sam Browns ]]></description>
			<content:encoded><![CDATA[<p>A while ago I read <span class="vcard"><a href="http://sam.brown.tc/" title="Sam Brown">Sam Browns</a></span> <a href="http://sam.brown.tc/entry/417/how-to-register-an-international-domain-name" title="How to register an International domain name>post</a>on <a href="http://sam.brown.tc/entry/417/how-to-register-an-international-domain-name" title="How to register an International domain name">&#8216;How to register an International domain name&#8217; </a> and immediately got domain envy. A few minutes later I snapped up <a href="http://pɐ.com/">http://pɐ.com/</a> as a solution to my bloated domain name eating into my 140 characters. </p>
<p>It comes as no surprise that I have no &#8216;ɐ&#8217; or &#8216;p&#8217; key on my keyboard and I needed a better solution than having to construct it on my clipboard using the <a href="http://www.sevenwires.com/play/UpsideDownLetters.html" rel="nofollow">upside-down generator </a>.</p>
<p> Enter <a href="http://shauninman.com/archive/2009/08/17/less_n">Lessn</a>.</p>
<h2>Lessn</h2>
<p>To cut a long story short, I downloaded and installed <a href="http://shauninman.com/archive/2009/08/17/less_n">Lessn</a> and made a little change that constructed the international domain for me. Whilst I am aware all this is doing is outputting the new domain, it adds it into my blogging &#8216;workflow&#8217; . Not to mention the benefits of <a href="http://shauninman.com/archive/2009/10/12/tweetie_2_and_less_n">Tweeties custom shorteners</a> [though I am yet to play with this]</p>
<p>The changes are simple, change line 7 &#038; 8 of <code>/-/index.php</code> to:</p>
<pre name="code" class="php">
define('CUSTOM_DOMAIN', 'www.uıɐɯopɹnoʎ.com');
define('LESSN_DOMAIN', 	preg_replace('#^www\.#', '', CUSTOM_DOMAIN));
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.iamadtaylor.com/using-lessn-to-handle-your-international-domains/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A beautiful little book Zoë’s Nanna gave us</title>
		<link>http://www.iamadtaylor.com/a-beautiful-little-book-zoe%e2%80%99s-nanna-gave-us/</link>
		<comments>http://www.iamadtaylor.com/a-beautiful-little-book-zoe%e2%80%99s-nanna-gave-us/#comments</comments>
		<pubDate>Sun, 24 Jan 2010 23:08:41 +0000</pubDate>
		<dc:creator>Ad Taylor</dc:creator>
				<category><![CDATA[shorts]]></category>

		<guid isPermaLink="false">http://adtaylor.tumblr.com/post/351489512</guid>
		<description><![CDATA[<img src="http://25.media.tumblr.com/tumblr_kwrxmiswEd1qac5teo1_400.jpg"/><br/><br/><p>A beautiful little book <a href="http://www.zoewithdots.com">Zoë’s</a> Nanna gave us</p>]]></description>
			<content:encoded><![CDATA[<img src="http://25.media.tumblr.com/tumblr_kwrxmiswEd1qac5teo1_400.jpg"/><br/><br/><p>A beautiful little book <a href="http://www.zoewithdots.com">Zoë’s</a> Nanna gave us</p>]]></content:encoded>
			<wfw:commentRss>http://www.iamadtaylor.com/a-beautiful-little-book-zoe%e2%80%99s-nanna-gave-us/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Perch Admin collapsable menu</title>
		<link>http://www.iamadtaylor.com/perch-admin-collapsable-menu/</link>
		<comments>http://www.iamadtaylor.com/perch-admin-collapsable-menu/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 09:20:22 +0000</pubDate>
		<dc:creator>Ad Taylor</dc:creator>
				<category><![CDATA[shorts]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Perch]]></category>

		<guid isPermaLink="false">http://www.iamadtaylor.com/?p=225</guid>
		<description><![CDATA[<p>My only gripe with the Perch admin interface was the landing page or more specifically the huge list of regions, I was finding that it looked daunting to new editors. This is something that Perch are looking at but I wanted a solution for the meantime. Unfortunately the solution is horribly hacky, involving altering the perch.js file.</p>]]></description>
			<content:encoded><![CDATA[<p>I <strong>promise</strong> that this will be my last post about <span class="vcard"><a href="http://www.grabaperch.com" class="url org">Perch</a></span>, I am starting to look somewhat obsessed.
</p>
<p>This hack was born out of necessity as I found that the admin <abbr title="User Interface">UI</abbr> on large <span class="vcard"><a href="http://www.grabaperch.com" class="url org">Perch</a></span> sites looked daunting to new editors.  Though the <abbr title="User Interface">UI</abbr> is beautiful and clean I was finding the lists would be endless and the editor could not find the page, let alone the region. This is something that Perch are looking at but I wanted a solution for the meantime. Unfortunately the solution is horribly hacky, involving altering the perch.js file.</p>
<h3>How to</h3>
<p>Add the following to the bottom of the perch.js file (found in the <code>your-perch-folder/assets/js/perch.js</code>)</p>
<pre name="code" class="javascript">
function pageTidy () {
	if($('td.page').length > 1) {
		resetToTidy();
		$('.page span').css({ cursor: 'pointer' });
		$('.page span').click(function() {
			resetToTidy();
			$(this).parent('td').parent('tr').addClass('currentPage');
			$('.currentPage').children('td').show();
			$('.currentPage').nextAll().each(function(index) {
				if($(this).css('display') == 'table-row'){
					return false;
				}
				$(this).show();
			});
		});
	}

}
function resetToTidy() {
	$('.d  tbody tr').hide();
	$('.shared').parent('tr').show();
	$('.shared').parent('tr').nextAll().each(function(index) {
		if($(this).children('td').hasClass('page')) {
			return false;
		}
		$(this).show();
	});
	$('.d tr').removeClass('currentPage');
	$('.page').parent('tr').show();
	$('.page').siblings('td').hide();
}
</pre>
<p>Then add <code>pageTidy();</code> to the init function. So it would now look like:</p>
<pre name="code" class="javascript">
var init	= function() {
		$('body').addClass('js');
		enhanceCSS();
		initPopups();
		hideMessages();
		pageTidy();
	};
</pre>
<h3>Warning</h3>
<p>Use at your own risk! I have found it seems to work happily on my project but I can&#8217;t imagine that it&#8217;s a good idea to be hacking away at core files. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamadtaylor.com/perch-admin-collapsable-menu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Detecting old versions of Firefox for progressive enhancement</title>
		<link>http://www.iamadtaylor.com/detecting-old-versions-of-firefox-for-progressive-enhancement/</link>
		<comments>http://www.iamadtaylor.com/detecting-old-versions-of-firefox-for-progressive-enhancement/#comments</comments>
		<pubDate>Fri, 31 Jul 2009 10:02:51 +0000</pubDate>
		<dc:creator>Ad Taylor</dc:creator>
				<category><![CDATA[shorts]]></category>
		<category><![CDATA[browser sniffing]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[progressive enhancement]]></category>

		<guid isPermaLink="false">http://www.iamadtaylor.com/?p=176</guid>
		<description><![CDATA[CSS3 -moz-transform doesn't work in older version of Firefox. Here I show how to detect firefox browser versions using jQuery. ]]></description>
			<content:encoded><![CDATA[<p>Today I have been redesigning my CV (as you do) as I wanted it to be hosted/printed/enjoyed from my site and not as a PDF. Whilst designing it I saw a post by <a href="http://snook.ca" class="vcard fn url">Jonathan Snook</a> on <a href="http://snook.ca/archives/html_and_css/css-text-rotation">CSS text rotation</a>, this is really exciting as Jonathan also shows you how to use a filter to make it work in IE — exciting stuff.</p>
<p>I decided to use it on my CV, but whilst designing I noticed it wasn&#8217;t working in Firefox older than 3.5. This sucked. So I set about <strong>BROWSER SNIFFING</strong>. I didn&#8217;t take this decision lightly but I figured it is no different to <code>[if IE]</code> and the only difference to the code would be removing a class.</p>
<h4>jQuery to the rescue</h4>
<p>To make long story short, I used the version function in jquery. Comments are in the code:</p>
<pre>
<code>
if($.browser.firefox || $.browser.mozilla) {

 var ver = $.browser.version;

 // Take out al the full stops so we can use it
 // as an integer
 ver = ver.replace(/\./g,"");

 // As the version numbers differ in length
 // we force all numbers to be the same length.
 // This is ok as we are only interested in the
 // first couple of digits
 var verl = ver.length;
 while (verl < 7) {ver = ver + '0'; verl = ver.length;}
 ver = parseInt(ver);

 // Check to see if the browser is older that 3.5
 if(ver <= "1910000") {$("h3").removeClass('rotate');}

}</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.iamadtaylor.com/detecting-old-versions-of-firefox-for-progressive-enhancement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A fixed position sidebar with scrollable content &#8211; all centred!!</title>
		<link>http://www.iamadtaylor.com/a-fixed-position-sidebar-with-scrollable-content-all-centred/</link>
		<comments>http://www.iamadtaylor.com/a-fixed-position-sidebar-with-scrollable-content-all-centred/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 23:04:40 +0000</pubDate>
		<dc:creator>Ad Taylor</dc:creator>
				<category><![CDATA[shorts]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.iamadtaylor.com/?p=163</guid>
		<description><![CDATA[How to fixed position a side-navigation to a centred 960px grid.]]></description>
			<content:encoded><![CDATA[<p>Today I got the chance to redesign a site I made for a client sometime ago. I have been having the same problem with it I had back then. The sites aims are to be simple and minimal BUT to have all content broken into individual pages/sections. This lead to some <strong>small</strong> pages and it looked odd. (Though I thoroughly agree with small and simple approach)</p>
<p><strong>SO</strong><br/><br />
I decided I would make a single page site with all content separated down the page but joined together with some pretty graphics and smooth JavaScript. <strong>I hit a problem.</strong></p>
<p>I wanted the navigation to be fixed and on a 960px centred grid, with the navigation sat on the side on the content. I have to admit this got me stumped for a bit, but I figured out this way.</p>
<p><strong><em>WARNING:</strong> This <strong>could</strong> be a crappy method.</em></p>
<p>Assuming we have 3 DIVs &#8211; #wrap,#content and #sidebar the css would be as follows.</p>
<pre name="code" class="css">

#wrap {
	position: relative;
	width: 960px;
	margin : 0px auto;
}
#sidebar {
	position : fixed;
	top : 0px;
	left : 50%;
	width : 960px;
	padding-left : 235px;
}
#content {
	width : 700px;
}
</code>
</pre>
<h3>A brief explaination.</h3>
<p>The example all works off the assumption that the #content width is 700px and that we would want a 15px gutter between the elements. So as we are using a percentage to centre the DIV we know where the DIV will be — bang in the middle — and we need to work out how far to push it out. This is done by the simple calculation:</p>
<pre>
(700-(960/2))+15 = 235px
</pre>
</p>
<p>Yeah, I know, stupidly obviously simple. Just it had me hanging around for ages trying to solve. Just thought it could help someone else.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iamadtaylor.com/a-fixed-position-sidebar-with-scrollable-content-all-centred/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
