<?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>fakedarren</title>
	<atom:link href="http://blog.fakedarren.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fakedarren.com</link>
	<description>Adventures in teh interwebz</description>
	<lastBuildDate>Fri, 08 Apr 2011 07:16:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Litany against trolls</title>
		<link>http://blog.fakedarren.com/2011/04/litany-against-trolls/</link>
		<comments>http://blog.fakedarren.com/2011/04/litany-against-trolls/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 20:54:10 +0000</pubDate>
		<dc:creator>fakedarren</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=325</guid>
		<description><![CDATA[I must not feed the trolls.
Trolls are the mind-killer.
Trolls are the little-death that brings total obliteration.
I will face my trolls.
I will permit them to pass over me and through me.
And when they have gone past I will turn the inner eye to see its path.
Where the trolling has gone there will be nothing.
Only I will remain.
]]></description>
			<content:encoded><![CDATA[<p><em>I must not feed the trolls.<br />
</em>Trolls are the mind-killer.<br />
Trolls are the little-death that brings total obliteration.<br />
I will face my trolls.<br />
I will permit them to pass over me and through me.<br />
And when they have gone past I will turn the inner eye to see its path.<br />
Where the trolling has gone there will be nothing.<br />
Only I will remain.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2011/04/litany-against-trolls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using HTML5 tags without JavaScript in IE</title>
		<link>http://blog.fakedarren.com/2010/08/using-html5-tags-without-javascript-in-ie/</link>
		<comments>http://blog.fakedarren.com/2010/08/using-html5-tags-without-javascript-in-ie/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 12:58:56 +0000</pubDate>
		<dc:creator>fakedarren</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=311</guid>
		<description><![CDATA[HTML5 is all the rage at the moment. All the cool kids are doing it.
Dear old IE, however, doesn&#8217;t allow you to use the new tags, such as &#60;article&#62;, &#60;nav&#62; etc in your CSS.
There is the popular &#8216;HTML5Shiv&#8217; which basically does the following in JavaScript:
document.createElement("article");
document.createElement("nav");
But what if you have to make your sites work 100% [...]]]></description>
			<content:encoded><![CDATA[<p>HTML5 is all the rage at the moment. All the cool kids are doing it.</p>
<p>Dear old IE, however, doesn&#8217;t allow you to use the new tags, such as &lt;article&gt;, &lt;nav&gt; etc in your CSS.</p>
<p>There is the popular &#8216;HTML5Shiv&#8217; which basically does the following in JavaScript:</p>
<pre class="js">document.createElement("article");
document.createElement("nav");</pre>
<p>But what if you have to make your sites work 100% in IE <em>without</em> JavaScript? Well, you can do the following using conditional comments:</p>
<p><iframe style="width: 100%; height: 300px" src="http://jsfiddle.net/GYrwW/embedded/html,css,result/"></iframe></p>
<p>Obviously then, you need to use the classnames, not the elements themselves in your CSS.</p>
<p>Ugly? Yes. But it works!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2010/08/using-html5-tags-without-javascript-in-ie/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Embedding videos a different way</title>
		<link>http://blog.fakedarren.com/2010/06/embedding-videos-a-different-way/</link>
		<comments>http://blog.fakedarren.com/2010/06/embedding-videos-a-different-way/#comments</comments>
		<pubDate>Sat, 12 Jun 2010 14:19:20 +0000</pubDate>
		<dc:creator>fakedarren</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=288</guid>
		<description><![CDATA[I&#8217;m starting a new project for a client over the coming weeks and one of the things I want to do during the project is make some improvements to the templates we use as the basis for most of our work.
One of the things that I really wanted to change is the way we deal [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m starting a new project for a client over the coming weeks and one of the things I want to do during the project is make some improvements to the templates we use as the basis for most of our work.</p>
<p>One of the things that I really wanted to change is the way we deal with embedding videos. I was looking to get rid of the dependency on JavaScript (<a href="http://code.google.com/p/swfobject/" onclick="pageTracker._trackPageview('/outgoing/code.google.com/p/swfobject/?referer=');">SwfObject</a>). But in order to do that I&#8217;d have to solve two problems first.</p>
<p>The three reasons we started using SwfObject at work in the first place were:</p>
<ul>
<li>You used to have to &#8216;click to activate&#8217; Flash videos in our good friend IE. <a href="http://msdn.microsoft.com/en-us/ie/bb969055.aspx" onclick="pageTracker._trackPageview('/outgoing/msdn.microsoft.com/en-us/ie/bb969055.aspx?referer=');">Luckily this is no longer an issue</a>.</li>
<li>It allowed you to pass w3c validation. Now, I do not care if a page does not validate because of an embedded YouTube video, but our clients do, and they pay the bills.</li>
<li>We wanted to be able to size the embedded content to fit the page layout. We could use JavaScript to calculate the dimensions before we injected it into the document.</li>
</ul>
<h2>Embedding without &lt;embed&gt;</h2>
<p>So the first thing we&#8217;d need is the HTML to embed a video without the &lt;embed&gt; tag, which is what breaks validation.</p>
<p><iframe style="width: 540px; height: 275px;" frameborder="0" src="http://jsfiddle.net/boske/jUJLH/embedded/html,result"></iframe></p>
<p>Nice! That was easy! I&#8217;ve tested this in all browsers on XP, Vista, Windows 7, and OSX &#8211; no problems!</p>
<h2>Sizing video elements with just CSS</h2>
<p>This one is a little bit trickier. First off we&#8217;re going to need a box that wraps the video element that maintains an aspect ratio; that is, one where the height adjusts to the width.</p>
<p>To do this, we&#8217;ll use a handy trick &#8211; using padding. Padding is cool. If you set the width of an element to 100%, then the padding top / bottom can be expressed as a percentage of this width. So for instance, if you had a column that is 400px wide, and you give an element inside it a width of 100% and a padding-top of 25%, it would get padding-top of 100px.</p>
<p><a href="http://jsfiddle.net/fnKfP/" onclick="pageTracker._trackPageview('/outgoing/jsfiddle.net/fnKfP/?referer=');">Here&#8217;s an example of this in action</a>. Resize the browser window, and you can see the height will always stay 25% of the width.</p>
<p>So now we have a way to create a placeholder for our video. We&#8217;ll position our video inside using absolute positioning. A couple more things:</p>
<ul>
<li>An extra sleeve element is required for our dear friend IE</li>
<li>The padding bottom to use is 56.25% for the ratio (it&#8217;s a 16:9 video, so it&#8217;s 9 / 6 = 0.5625), for 3:4 ratio videos you&#8217;d use 75%</li>
<li>The padding top is for the player&#8217;s controls (25px in this case)</li>
<li>You have to set the percentage on the padding-bottom, again, for IE</li>
</ul>
<p>Here&#8217;s the finished code. You can open it up in jsFiddle and resize the browser window to see it automatically resizing to the content.</p>
<p><iframe style="width: 540px; height: 385px;" frameborder="0" src="http://jsfiddle.net/boske/7hGcX/embedded/result,html,css"></iframe></p>
<p>So&#8230;what do you think? Do you know of any problems with this approach? Let me know in the comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2010/06/embedding-videos-a-different-way/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Why I&#8217;m pleased we have a Conservative Government</title>
		<link>http://blog.fakedarren.com/2010/05/why-im-pleased-we-have-a-conservative-government/</link>
		<comments>http://blog.fakedarren.com/2010/05/why-im-pleased-we-have-a-conservative-government/#comments</comments>
		<pubDate>Thu, 13 May 2010 00:30:06 +0000</pubDate>
		<dc:creator>fakedarren</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=272</guid>
		<description><![CDATA[The last few months here in the UK have been interesting to say the least. Last week we had an election, voting for a new Prime Minister and Government. More than ever, this vote was crucial. Our country is in quite a state at the moment. Our political system has been a shambles over the [...]]]></description>
			<content:encoded><![CDATA[<p>The last few months here in the UK have been interesting to say the least. Last week we had an election, voting for a new Prime Minister and Government. More than ever, this vote was crucial. Our country is in quite a state at the moment. Our political system has been a shambles over the last year; ludicrous expenses claims, spiralling national debt, a rise in immigration, unpopular wars; everyone was keen for an election.</p>
<p>The result was equally interesting. A &#8216;hung&#8217; parliament; no one party won a majority. The result of days of discussion is a coalition Government, with Conservatives and Liberals sharing power. I&#8217;m pleased with this result, and I thought I&#8217;d explain why, given that so many of my friends seem to be so aghast at the concept of the Tories being in power.</p>
<p>I&#8217;ll start by raising my concerns, and I think I share the same thoughts as a lot of my friends. A Conservative Government means the following is almost inevitable:</p>
<ul>
<li>Massive cuts in public spending. There will be less benefits available. The unemployed will get less money. The sick will get less money. Poor families will get less money.</li>
<li>Tax rises. Quite big ones.</li>
<li>An increased divide between the rich and the poor.</li>
</ul>
<p>The above makes for grim reading. So why, given that I understand the above is inevitable, could I possibly be pleased?</p>
<h3>Immigration</h3>
<p>My first reason is one that people tend to feel strongly about, and that is immigration. Under a Conservative Government, it will drop. Sharply. This is an unfortunate necessity, in my opinion, of the situation Britain finds itself in. And, ultimately, a positive thing.</p>
<p>I am privileged to live in such a multi-cultural city as London, and no doubt the plethora of nationalities and cultures is a positive thing. Some of my best friends and most esteemed colleagues are from abroad. However, it is clear that there is a rise in the number of people who are not so willing to embrace being &#8216;British&#8217;, and contributing back through their skills, hard work and culture.</p>
<p>They are more interested in our liberal distribution of wealth by means of easy-to-acquire benefits. Our welfare state is all they are interested in, not our culture. In fact, they are determined to retain their culture, and wave the flag of political incorrectness and xenophobia at us if we so much as dare to point out that maybe completely covering your face with a veil may not be polite. We&#8217;re not a religious country either and people living here need to appreciate and accept this, and not claim we are xenophobic if we, as a nation, are not so up for following a faith and making it as much a part of our lives as would be normal in other countries.</p>
<p>A multi-cultural Britain is a good thing. A loss of national identity is not.</p>
<h3>Benefits and taxes</h3>
<p>Again, I am delighted that we live in a country where we have a welfare state. I was shocked to hear some of my American friends opinions on free healthcare reform recently &#8211; it just does not compute to me, that you should not be entitled to healthcare if you are sick. It&#8217;s one of the things that makes this country so great.</p>
<p>A few years ago I was running a startup company with my good friend Pete. I was earning a pittance, working 60, 70, 80 hours a week. I paid my rent, my council tax, my income tax, the business tax, the tax tax, the tax tax tax&#8230;.you get the idea. I would have been much better off (financially) to have gone and worked at a supermarket, earning the minimum wage; an income of around £12k a year. Or, equally, just stay unemployed; claim housing benefit, tax credits, not paid council tax etc etc. Same amount of disposable income, just less work.</p>
<p>Maybe it was just my unique, personal experience, but this for me was a common trait of the Labour Government.  My strive to succeed, to start my own business, to move up the social rung to the next level of income; there were so many barriers to it. The extra work simply did not equate to extra income. The jump from ~£10k to ~£20k income was <em>painful</em>, to the point where I very nearly gave up.</p>
<p>If you&#8217;ve owned and run a small business during the last 5 years, you&#8217;ll likely agree with me. Labour didn&#8217;t tax the poor as much as tax the <em>aspiring</em> poor. Stay lower class, stay doing &#8216;alright&#8217;, after all, that&#8217;s their base of support, so they want to encourage that slice of society.</p>
<p>If you&#8217;re happy in your job at a supermarket, bar, high street chain, and you don&#8217;t aspire to anything more, a Conservative Government will not help you. If you feel you want to do something more, want to go from doing ok to doing well, then with the current Government, this will be a lot easier. I welcome this.</p>
<p>It is unacceptable to not give aid and benefits to the needy, but those with skills or drive should not be discouraged from bettering themselves, and subsequently, bettering the country as a whole.</p>
<h3>The National Debt</h3>
<p>I hope, one day, to settle down, to start a family. I want my children to be able to enjoy a prosperous Britain.</p>
<p>Our current debt, as a nation, nay, as a world, is out of control. The proposed cuts by the Conservatives, whilst harsh are, in my opinion, necessary. I did not agree with Labour&#8217;s approach to spend their way out of recession.</p>
<p>The current coalition, happily, includes members of the Liberal Democrats. They&#8217;re raising the threshold for tax-free income to £10k &#8211; this is fantastic news. Those on the minimum wage, earning around £12k, working a 37.5 hour week at their local high street store will benefit from this new Government.</p>
<p>My tax bill, however, is going to increase, probably dramatically. And you know what? I&#8217;m not unhappy about it at all. I would rather pay now, while I&#8217;m young, able, and working; in 5 years time, this period of extreme taxation, harsh truths, spending cuts; when I do eventually settle down, and my children grow up, the country will be in a much better state.</p>
<p>We&#8217;re fucked, financially, as a country. You can be selfish &#8211; no-one wants to pay more taxes &#8211; or, you can accept it&#8217;s something that unfortunately we need. &#8216;Blaming&#8217; Labour is easy &#8211; I don&#8217;t think it&#8217;s their fault, per say; but we, as a country, cannot afford a Labour administration. And &#8216;blaming&#8217; a Conservative Government for tax increases is not their fault either. It&#8217;s a necessity.</p>
<p>The &#8216;now&#8217; is fucked regardless of who is in power. The future is what we should look to, and I believe a Conservative Government is best for our country&#8217;s future.</p>
<h3>Benefiting the rich and why it&#8217;s kind of a good thing</h3>
<p>Given my above point, this is one of the reasons why I actually don&#8217;t mind the Conservative&#8217;s perceived agenda of benefitting the rich, at the expense of the poor.</p>
<p>Sure, some of the rich will sit in their castles, counting their money.</p>
<p>But some of them will invest; some of them will take advantage of the current markets and expand their businesses; the super-rich are the people that go into other countries, buy up their industries, and relocate them back to their native country. We <em>need</em> super-rich British people to go to countries in trouble, buy their assets, buy their companies, and ultimately be providers of jobs, for the working class.</p>
<p>We need to encourage the rich to come (or stay) in our country. Need it. For our future.</p>
<h3>Gordon Brown</h3>
<p>I don&#8217;t need to elaborate any more than to say I didn&#8217;t vote for him, I didn&#8217;t like him, and I&#8217;m glad to see him go. I didn&#8217;t vote Labour (no shit sherlock) but I did vote <em>against Gordon Brown<span style="font-style: normal;">. If Labour had appointed a new leader prior to the election, my vote may have been very different.</span></em></p>
<h3><em><span style="font-style: normal;">The &#8216;best loser&#8217; won, and we have Liberals with power</span></em></h3>
<p><em><span style="font-style: normal;">Regardless of the media bullshit, the disaffection with Labour and Gordon Brown and everything in between; The Conservatives &#8216;won&#8217;. They had a larger slice of the vote. We live in a democracy and regardless of whether you agree, more people voted Conservative than any other party. For the two losers to take power would have been a travesty of justice. Are the rules wrong? Possibly, and I expect a change in one form or another. But by the rules, which we all knew, Conservatives &#8216;won&#8217;, and, in the British spirit, we should respect that.</span></em></p>
<p><em><span style="font-style: normal;"><br />
</span></em></p>
<p><em><span style="font-style: normal;">We don&#8217;t have an exclusive Conservative Government. We have a coalition. Nick Clegg and Vince Cable will keep the Conservatives honest; David Cameron can&#8217;t be seen to ignore or discount their opinions; we&#8217;ll have 5 years of Conservatism (the clue to why that&#8217;s good is in the name) and the Liberal votes will ensure that Thatcher-style long-term damage is not caused. After their term in Government, we&#8217;ll get the chance to make a choice again.</span></em></p>
<p><em><span style="font-style: normal;"><br />
</span></em></p>
<p><em><span style="font-style: normal;">By the way, I voted for the Liberal Democrats.</span></em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2010/05/why-im-pleased-we-have-a-conservative-government/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>moobile &#8211; an iPhone / iPad / Android toolkit using MooTools</title>
		<link>http://blog.fakedarren.com/2010/02/moobile/</link>
		<comments>http://blog.fakedarren.com/2010/02/moobile/#comments</comments>
		<pubDate>Sun, 07 Feb 2010 02:16:06 +0000</pubDate>
		<dc:creator>fakedarren</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=262</guid>
		<description><![CDATA[It&#8217;s been a few weeks since I last blogged so I thought I&#8217;d jot down some info about a little side project I&#8217;ve been thinking of starting for a while now. I&#8217;ve tentatively called it &#8216;moobile&#8217; and, as the title of the post suggests, it&#8217;s essentially to be a MooTools-powered mobile app toolkit.
I&#8217;ve spent the [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a few weeks since I last blogged so I thought I&#8217;d jot down some info about a little side project I&#8217;ve been thinking of starting for a while now. I&#8217;ve tentatively called it &#8216;moobile&#8217; and, as the title of the post suggests, it&#8217;s essentially to be a MooTools-powered mobile app toolkit.</p>
<p>I&#8217;ve spent the last week working on some initial ideas on and off and you can see the fruits of my labour at <a href="http://fakedarren.github.com" onclick="pageTracker._trackPageview('/outgoing/fakedarren.github.com?referer=');">http://fakedarren.github.com</a> (preferably on an iPhone, and definitely in a webkit browser).</p>
<p>I&#8217;ve got some basic styles down, with not one image in sight so far (CSS3 is amazing), and the most interesting thing so far is extending my friend&#8217;s existing Touch class with Gesture support. I can now add events to elements such as &#8217;swipe left&#8217; and &#8216;pinch&#8217; &#8211; pretty damn cool. I want to make this very important part of the toolkit rock-solid and a joy to use, so how far it has come in such a short time is really encouraging.</p>
<p>Over the coming weeks I&#8217;ll be completing the HTML templates &#8211; forms need a lot of work, for instance &#8211; and I want to get a really solid set of templates and easy-to-manage CSS so theming is a cinch.</p>
<p>Once that is done, I&#8217;ll push on into getting animations between pages done; sliding, flipping, rotating, fading etc. That&#8217;ll keep me busy for the foreseeable future but there are a lot of other things I want to be able to support in the final version.</p>
<p>Check it out on your iPhones or <a href="http://github.com/fakedarren/moobile" onclick="pageTracker._trackPageview('/outgoing/github.com/fakedarren/moobile?referer=');">fork it on github</a> and let me know what features you&#8217;d like to see!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2010/02/moobile/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cross-browser CSS gradients</title>
		<link>http://blog.fakedarren.com/2010/01/cross-browser-css-gradients/</link>
		<comments>http://blog.fakedarren.com/2010/01/cross-browser-css-gradients/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 15:23:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=233</guid>
		<description><![CDATA[Firefox 3.6 is very close to release (it&#8217;s currently in its first release candidate) and once it lands every browser (even IE) has support for gradients in pure CSS.
This will be incredibly useful. As we add more and more JavaScript and rich media to web pages, performance is affected. One easy way we can mitigate [...]]]></description>
			<content:encoded><![CDATA[<p>Firefox 3.6 is very close to release (it&#8217;s currently in its first release candidate) and once it lands every browser (even IE) has support for gradients in pure CSS.</p>
<p>This will be incredibly useful. As we add more and more JavaScript and rich media to web pages, performance is affected. One easy way we can mitigate the effect this has is to leverage the power of CSS to reduce the number of background images we use; for instance for rounded corners and gradients. Border-radius is still not implemented in IE (rumoured to be included in IE12 when it&#8217;s out in 2043) but gradients are, and we should all start using them now.</p>
<h2>Example</h2>
<p>Here&#8217;s a real-life example. This is just a link; this style can be applied to any element; &lt;button&gt;, &lt;input type=&#8221;submit&#8221;&gt;. &lt;a&gt;, whatever.</p>
<p><a class="sexybutton" href="#">I&#8217;m a button</a></p>
<p>Dependent on what browser you are using, it will look different.</p>
<h2>How it looks cross-browser</h2>
<h4>Firefox 3.5</h4>
<p><img class="alignnone size-full wp-image-247" title="CSS3 Buttons in FF3.5" src="http://blog.fakedarren.com/wp-content/uploads/2010/01/ff3.5buttons.jpg" alt="CSS3 Buttons in FF3.5" width="250" height="26" /></p>
<h4>Firefox 3.6</h4>
<p><img class="alignnone size-full wp-image-248" title="CSS3 buttons in FF3.6" src="http://blog.fakedarren.com/wp-content/uploads/2010/01/ff3.6buttons.jpg" alt="CSS3 buttons in FF3.6" width="250" height="26" /></p>
<h4>Internet Explorer</h4>
<p><img class="alignnone size-full wp-image-249" title="CSS3 buttons in IE" src="http://blog.fakedarren.com/wp-content/uploads/2010/01/iebuttons.jpg" alt="CSS3 buttons in IE" width="250" height="26" /></p>
<h4>Safari and Chrome</h4>
<p><img class="alignnone size-full wp-image-250" title="CSS3 buttons in WebKit" src="http://blog.fakedarren.com/wp-content/uploads/2010/01/webkitbuttons.jpg" alt="CSS3 buttons in WebKit" width="250" height="26" /></p>
<h2>The CSS</h2>
<pre class="css">.sexybutton {
  background: #DEDEDE;
  background: -moz-linear-gradient(top, #FFF, #888);
  background: -webkit-gradient(linear, left top, left bottom, from(#FFF), to(#888));
  border: 1px solid #D6D6D6;
  color: #666;
  display: inline-block;
  filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#FFFFFF', EndColorStr='#888888');
  font: bold 1.3em/22px Helvetica, Arial, sans-serif;
  height: 22px;
  padding: 0 10px;
  text-decoration: none;
  text-shadow: 0 1px 0 #FFF;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}
.sexybutton:HOVER {
  background: #BEBEBE;
  background: -moz-linear-gradient(top, #DDD, #666);
  background: -webkit-gradient(linear, left top, left bottom, from(#DDD), to(#666));
  border: 1px solid #B6B6B6;
  color: #444;
  filter: progid:DXImageTransform.Microsoft.Gradient(StartColorStr='#DDDDDD', EndColorStr='#666666');
  text-shadow: 0 1px 0 #DDD;
}</pre>
<h2>Summary</h2>
<p>I&#8217;m absolutely convinced that using CSS gradients is now viable. Gradients do make a difference, when used well, to the aesthetic of a webpage &#8211; more so, in my opinion, than a few pixels of rounded corner.</p>
<p>I&#8217;m also convinced that as we put more and more JavaScript onto our pages the performance hit of making a design work perfectly in all browsers gets less and less preference. We need to start leveraging CSS effects wherever possible; it is not fair to a user to have to wait for 100k of gradient images (and the extra HTML required) for something that can be represented by much less CSS.</p>
<p>I love this way of rendering gradients and will definitely be using it in my future work.</p>
<h3>Some links</h3>
<ul>
<li><a href="http://webkit.org/blog/175/introducing-css-gradients/" onclick="pageTracker._trackPageview('/outgoing/webkit.org/blog/175/introducing-css-gradients/?referer=');">Safari gradients</a></li>
<li><a href="http://hacks.mozilla.org/2009/11/css-gradients-firefox-36/" onclick="pageTracker._trackPageview('/outgoing/hacks.mozilla.org/2009/11/css-gradients-firefox-36/?referer=');">Firefox gradients</a></li>
<li><a href="http://msdn.microsoft.com/en-us/library/ms532997(VS.85).aspx?ppud=4" onclick="pageTracker._trackPageview('/outgoing/msdn.microsoft.com/en-us/library/ms532997_VS.85_.aspx?ppud=4&amp;referer=');">Internet Explorer gradients</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2010/01/cross-browser-css-gradients/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>.NET development in OSX</title>
		<link>http://blog.fakedarren.com/2010/01/net-development-in-osx/</link>
		<comments>http://blog.fakedarren.com/2010/01/net-development-in-osx/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 14:54:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[OSX]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=226</guid>
		<description><![CDATA[I&#8217;ve recently split my working week between two jobs and one of the perks is that I am now the proud owner of a Macbook Pro. However, both companies I work for use .NET. This means that I need to be able to run the websites I&#8217;m working on locally; and that requires me to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently split my working week between two jobs and one of the perks is that I am now the proud owner of a Macbook Pro. However, both companies I work for use .NET. This means that I need to be able to run the websites I&#8217;m working on locally; and that requires me to use Windows, so I can run IIS.</p>
<h2>Setting up the Virtual Machine</h2>
<p>The first thing to do is go ahead and set up Windows in a Virtual Machine exactly as you would normally. I would recommend installing XP over Windows 7 because it will have a smaller footprint, and you don&#8217;t really need to &#8216;use&#8217; it, just run it in the background.</p>
<p>If you&#8217;re tempted by IIS7&#8217;s ability to run multiple sites (something you cannot do with XP by default), I recommend <a href="http://www.codeplex.com/iisadmin" onclick="pageTracker._trackPageview('/outgoing/www.codeplex.com/iisadmin?referer=');">IISAdmin.NET</a>; this handy utility allows you to switch between multiple sites with IIS5.</p>
<p>There is one required setting, and that is that the Virtual Machine&#8217;s network connection is bridged, not using NAT. This will allow us to assign the Virtual Machine a static IP, which is vital if we&#8217;re to make working in OSX painless.</p>
<h2>Sharing files between the two</h2>
<p>The other choice you have to make is whether or not you want to share your OSX files. I&#8217;ve not bothered because I&#8217;m going to share the other way round &#8211; writing to the VM&#8217;s hard disk, instead of reading them from the Mac in Windows. Mac shares are seen by Windows as a network drive and IIS has some serious issues with these.</p>
<p>I have multiple sites running, and I stick them all in <em>C:\Projects</em>. If you&#8217;re just running with defaults and a single site, they&#8217;ll be in <em>C:\Inetpub\wwwroot</em>. Navigate to these folders in Windows Explorer and right-click. Choose &#8217;sharing and security&#8217; and set this folder to be shared and allow other users to edit these files. Give the share a sensible name like &#8216;<em>Server</em>&#8216; or &#8216;<em>Projects</em>&#8216;.</p>
<h2>Check your VM is all set up</h2>
<p>You should now be able to</p>
<ul>
<li>Access the Internet in the VM</li>
<li>Run your site in the VM as localhost</li>
<li>Ping your VM&#8217;s IP from terminal (type ping x.x.x.x in Terminal, where x.x.x.x is the static IP assigned to the VM)</li>
<li>The folder you store your site files in should be shared (depicted by a hand holding the folder icon)</li>
</ul>
<p>As your VM has a static IP, it is connected to the internet; so I wouldn&#8217;t recommend completely disabling any firewall. You will need to configure your firewall to allow you to be able to access your VM from the Mac, but as there are so many different possibilities I can&#8217;t go into details here.</p>
<h2>Viewing your &#8216;local&#8217; site in OSX</h2>
<p>You should now be able to access your site running under IIS in the virtual machine in OSX. Open a browser and go to the IP address you assigned the the VM. You should see the .NET site running.</p>
<p>Now we&#8217;ll map this IP address to a nice name; so I can access this site as <em>http://dev/</em> or similar. Open your text editor of choice and go to the &#8216;Open&#8217; dialogue (⌘-O) and then type ⌘-shift-G to open the &#8216;Go to folder&#8217; dialogue. Type &#8216;<em>/etc/</em>&#8216; and open the &#8216;hosts&#8217; file. Add your &#8216;nice&#8217; name and the IP you assigned, save, close.</p>
<h2>Viewing your &#8216;local&#8217; site files in OSX</h2>
<p>Open finder and hit ⌘-K. This brings up the &#8216;<em>Connect to Server</em>&#8216; dialogue. I mapped the host name &#8216;<em>mvc</em>&#8216; to my VM&#8217;s IP address, and shared my files as &#8216;<em>Projects</em>&#8216;; so I will connect to &#8216;<em>smb://mvc/Projects</em>&#8216;.</p>
<p>The username and password you connect as should have not affect anything; you can connect as a guest if you so wish. Anyway, you should now be able to view and edit your .NET site in OSX!</p>
<h2>I&#8217;m loving it</h2>
<p>I&#8217;ve only had a few weeks with this setup but I can confirm I am nothing short of delighted with it. I currently am in love with Coda and TextMate. Coda seems to have the best &#8216;out of the box&#8217; syntax highlighting for .NET / C# code, and that&#8217;s why I use it.</p>
<p>I&#8217;m also going to look into auto-mounting the shares but because I use my job for three &#8216;jobs&#8217; (Abacus, GigJunkie and MooTools) this isn&#8217;t really practical. I also foresee some potential problems with source control and permissions; but I&#8217;ll tackle these issues as and when they come around.</p>
<p>Hopefully this post was of vague interest and help to some of you looking to achieve the same. It works well for me and I hope it works well for you too.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2010/01/net-development-in-osx/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>A rough guide to upgrading from MooTools 1.1</title>
		<link>http://blog.fakedarren.com/2010/01/a-rough-guide-to-upgrading-from-mootools-1-1/</link>
		<comments>http://blog.fakedarren.com/2010/01/a-rough-guide-to-upgrading-from-mootools-1-1/#comments</comments>
		<pubDate>Fri, 01 Jan 2010 19:34:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MooTools]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=201</guid>
		<description><![CDATA[I've recently been working on the upgrade layer for MooTools, that allows users of MooTools 1.1 to easily upgrade to the latest version of our favourite framework. If you have a complex site, the following may not be relevant, but hopefully following the steps below will help the majority of users to update their code.]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">Before you read this &#8211; please read the &lt;a href=&#8221;http://mootools.net/blog/2009/12/31/mootools-1-1-upgrade-layer-beta/&#8221;&gt;post on the official MooTools site&lt;/a&gt;.</div>
<div>Before you read this &#8211; please read the <a href="http://mootools.net/blog/2009/12/31/mootools-1-1-upgrade-layer-beta/" onclick="pageTracker._trackPageview('/outgoing/mootools.net/blog/2009/12/31/mootools-1-1-upgrade-layer-beta/?referer=');">post on the official MooTools site</a>.</div>
<p>I&#8217;ve recently been working on the <a href="http://mootools.net/download#upgrade-helper" onclick="pageTracker._trackPageview('/outgoing/mootools.net/download_upgrade-helper?referer=');">upgrade layer for MooTools</a>, that allows users of MooTools 1.1 to easily upgrade to the latest version of our favourite framework. If you have a complex site, the following may not be relevant, but hopefully following the steps below will help the majority of users to update their code.</p>
<p>This isn&#8217;t a complete guide &#8211; but these are the steps I would take. Make sure you read through <a href="http://github.com/mootools/mootools-upgrade-helper#readme" onclick="pageTracker._trackPageview('/outgoing/github.com/mootools/mootools-upgrade-helper_readme?referer=');">the readme</a> first; there are a few breaking changes and subtle API differences. But for simple sites, the following should work.</p>
<h2>Element getters and setters</h2>
<p>One frequently used part of the API from 1.1 was Element setters and getters. Previously, you had methods such as <em>$(el).getValue(val)</em> and <em>$(el).setText(text)</em>. These changed to <em>$(el).set(&#8217;value&#8217;, val)</em> and <em>$(el).set(&#8217;text&#8217;, text)</em>. This is a quite simple change and a good one to start with. The complete list of methods that need to change:</p>
<ul>
<li><em>getText()</em> and <em>setText()</em></li>
<li><em>getHTML()</em> and <em>setHTML()</em></li>
<li><em>getTag()</em></li>
<li><em>getValue()</em></li>
<li><em>setOpacity()</em></li>
</ul>
<h2>Simple Fx</h2>
<p>This is another relatively simple change to make, and again, commonly used. To upgrade is a case of:</p>
<ul>
<li><em>Fx.Base</em> becomes <em>Fx</em></li>
<li><em>Fx.Style </em>becomes <em>Fx.Tween</em> (with some differences, see <a href="http://github.com/mootools/mootools-upgrade-helper#readme" onclick="pageTracker._trackPageview('/outgoing/github.com/mootools/mootools-upgrade-helper_readme?referer=');">readme</a>)</li>
<li><em>Fx.Styles</em> becomes <em>Fx.Morph</em></li>
<li><em>el.effect()</em> becomes <em>el.tween()</em>, and <em>el.effects()</em> becomes <em>el.morph()</em> (again some subtle differences, see <a href="http://github.com/mootools/mootools-upgrade-helper#readme" onclick="pageTracker._trackPageview('/outgoing/github.com/mootools/mootools-upgrade-helper_readme?referer=');">readme</a>)</li>
</ul>
<h2>Selectors</h2>
<p>Next up is replacing <em>$E</em> and <em>$ES</em>.</p>
<ul>
<li><em>$E(selector) </em>becomes <em>document.getElement(selector)</em></li>
<li><em>$ES(selector) </em>becomes <em>document.getElements(selector)</em></li>
</ul>
<p>There was also a second optional parameter you could pass in that defined what element you wanted to search in. An example:</p>
<ul>
<li><em>$E(selector, &#8216;.myDivs&#8217;)</em> would become <em>$$(&#8217;.myDivs&#8217;).getElement(selector)</em> or</li>
<li><em>$E(selector, &#8216;#myOtherDiv&#8217;)</em> would become <em>$(&#8217;myOtherDiv).getElement(selector)</em></li>
</ul>
<h2>Ajax requests</h2>
<p>Last of the common changes to be made is to the MooTools 1.1 <em>Ajax</em> and <em>XHR</em> classes. These need to be replaced with <em>Request</em>. Have a look at the <a href="http://github.com/mootools/mootools-upgrade-helper#readme" onclick="pageTracker._trackPageview('/outgoing/github.com/mootools/mootools-upgrade-helper_readme?referer=');">readme</a> for exact changes.</p>
<h2>Fx methods</h2>
<p>We updated a few <em>Fx</em> methods earlier, now let&#8217;s just finish the job. The following changes should be made:</p>
<ul>
<li><em>myFx.custom() </em>has been changed to <em>myFx.start()</em></li>
<li><em>myFx.clearTimer() </em>and<em> myFx.stop()</em> can both now be written as <em>myFx.cancel()</em></li>
</ul>
<p>If you follow the above steps most of your code should be good to go. If you need any further help just <a href="irc://irc.freenode.net/#mootools">jump on IRC</a> and someone should be there to help. Also, please check the <a href="http://docs111.mootools.net/" onclick="pageTracker._trackPageview('/outgoing/docs111.mootools.net/?referer=');">docs for 1.1</a> and 1.2 to check you are passing the correct arguments.</p>
<p>We will also be working closely with the Joomla! dev team to convert the most popular plugins for you. Once these are done, we&#8217;ll be putting them in the Forge. You can request conversions in the <a href="http://groups.google.com/group/mootools-users/" onclick="pageTracker._trackPageview('/outgoing/groups.google.com/group/mootools-users/?referer=');">MooTools Google Group</a> but we can&#8217;t convert everything -so please don&#8217;t be offended if we don&#8217;t convert your favourite plugin.</p>
<p>Please read <a href="http://mootools.net/blog/2009/12/31/mootools-1-1-upgrade-layer-beta/" onclick="pageTracker._trackPageview('/outgoing/mootools.net/blog/2009/12/31/mootools-1-1-upgrade-layer-beta/?referer=');">the original post on the MooTools blog</a> for more details &#8211; and have fun upgrading!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2010/01/a-rough-guide-to-upgrading-from-mootools-1-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Going too far?</title>
		<link>http://blog.fakedarren.com/2009/12/going-too-far/</link>
		<comments>http://blog.fakedarren.com/2009/12/going-too-far/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 21:03:38 +0000</pubDate>
		<dc:creator>fakedarren</dc:creator>
				<category><![CDATA[Shameless geekery]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=192</guid>
		<description><![CDATA[I’ve just bought a Macbook Pro. Now I have 3 screens at home, and 4 at work. Am I taking it a bit too far? You be the judge!]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just bought a Macbook Pro. Now I have 3 screens at home, and 4 at work. Am I taking it a bit too far? You be the judge!</p>
<h2>My  home setup</h2>
<p><img style="width: 578px;" src="/wp-content/homepc.jpg" alt="home setup!" /></p>
<h2>My  work setup</h2>
<p><img style="width: 578px;" src="/wp-content/workpc.jpg" alt="work setup!" /></p>
<p>I think it&#8217;s frikkin&#8217; cool!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2009/12/going-too-far/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Hosting a Hackathon</title>
		<link>http://blog.fakedarren.com/2009/11/hosting-a-hackathon/</link>
		<comments>http://blog.fakedarren.com/2009/11/hosting-a-hackathon/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 14:06:45 +0000</pubDate>
		<dc:creator>fakedarren</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MooTools]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=184</guid>
		<description><![CDATA[This weekend I&#8217;m absolutely delighted to be hosting a &#8216;Hackathon&#8217; for the MooTools development team here in London. Basically, devs from all over Europe are meeting up here in London for a weekend of hacking away at MooTools 2.0, our search engine, and the awesome MooShell.
We had something similar in San Francisco a couple of [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I&#8217;m absolutely delighted to be hosting a &#8216;Hackathon&#8217; for the MooTools development team here in London. Basically, devs from all over Europe are meeting up here in London for a weekend of hacking away at MooTools 2.0, our search engine, and the awesome MooShell.</p>
<p>We had something similar in San Francisco a couple of months ago which I also had the pleasure of attending. I mentioned that the guys from Europe should have one, suggested London as a venue and now here we are.<a title="Abacus e-Media" href="http://www.abacusemedia.com/" onclick="pageTracker._trackPageview('/outgoing/www.abacusemedia.com/?referer=');"> The awesome company I&#8217;m working for at the moment</a> have let us use their Regent Street office for the event and I cannot express how grateful I am about that.</p>
<p>We&#8217;re going to have quite a high turnout &#8211; about 15 of us I think &#8211; and for a lot of us it&#8217;s going to be the first time we&#8217;ve all met up. The San Francisco one and this one have and will really help the MooTools dev team get closer. Working with people in your spare time in different countries can sometimes be difficult and I think everyone meeting face to face is going to really have a positive impact on how we work together.</p>
<p>Follow the <a title="MooTools twitter feed" href="http://twitter.com/mootools" onclick="pageTracker._trackPageview('/outgoing/twitter.com/mootools?referer=');">@MooTools Twitter feed</a> for regular updates on what&#8217;s going on; we&#8217;ll have live video chat if people want to chip in and give us a hand with what we&#8217;re working on. I can&#8217;t promise (we may be busy coding!) but hopefully we&#8217;ll get a chance to go out for a drink or two and if any MooTools users are around in London you can come and meet the devs. We&#8217;ll tweet the details if that happens.</p>
<p>Also early next year, I hope to organise a more public event, for users as well as devs; we&#8217;ll be discussing this over the weekend. I&#8217;m hoping to get a sponsored bar and a couple of the devs over to do a couple of talks about our favourite JavaScript framework.</p>
<p>Totally looking forward to it. It&#8217;s going to be amazing <img src='http://blog.fakedarren.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2009/11/hosting-a-hackathon/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

