<?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>Sun, 07 Feb 2010 02:21:02 +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>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>0</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>3</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>2</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>
		<item>
		<title>Looking forward to 2010</title>
		<link>http://blog.fakedarren.com/2009/11/looking-forward-to-2010/</link>
		<comments>http://blog.fakedarren.com/2009/11/looking-forward-to-2010/#comments</comments>
		<pubDate>Sun, 15 Nov 2009 18:23:36 +0000</pubDate>
		<dc:creator>fakedarren</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=181</guid>
		<description><![CDATA[I&#8217;m so looking forward to the next year.
I currently work at an awesome company called Abacus E-Media and I enjoy it, I really do; but recently I&#8217;ve been getting more and more involved with open source projects like MooTools and I get so busy at Abacus I really don&#8217;t get time to contribute.
Next year though, [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m so looking forward to the next year.</p>
<p>I currently work at an awesome company called <a title="Abacus E-Media" href="http://www.abacusemedia.com/" onclick="pageTracker._trackPageview('/outgoing/www.abacusemedia.com/?referer=');">Abacus E-Media</a> and I enjoy it, I really do; but recently I&#8217;ve been getting more and more involved with open source projects like MooTools and I get so busy at Abacus I really don&#8217;t get time to contribute.</p>
<p>Next year though, I get to go (hopefully) down to a part-time contract; this gives me 2 days a (working) week to do something that pushes my skills that bit more; to do things that are closer to the &#8216;bleeding edge&#8217;; it&#8217;s really exciting for me. I&#8217;ve got a lot of options and I&#8217;m excited by all of them.</p>
<p>First of all I want to continue the great work we&#8217;re doing at Abacus. I&#8217;d love to help on the next iteration of their CMS which could turn out to be something quite special.</p>
<p>I also have a burning desire to finish my CMS, &#8216;Excalibur&#8217;. WYSIWYG content editing in the purest form. I also hope to release the codebase as open source, and also hope to be able to provide some demos / examples in the real near future.</p>
<p>I also have an opportunity at <a href="http://www.gigjunkie.net/" onclick="pageTracker._trackPageview('/outgoing/www.gigjunkie.net/?referer=');">GigJunkie</a> that I&#8217;m super-excited about; I really think I can help them with their front end and it sounds like they have their head screwed on with regards to how they want to take their site forward. I&#8217;m intrigued, and would love to be involved.</p>
<p>Last of all&#8230;..MooTools. Goddamn. Next weekend I get to host a hackathon for some of the best JS developers in the world &#8211; more about that next weekend &#8211; but I think the MooTools project has everything it needs to really be a success in 2010. So many awesome, passionate developers; a very solid codebase; so many ways it can grow.</p>
<p>We have so much awesome just waiting to be unleashed. Server-side implementations, a brand new and stupidly good selector engine (Slick), the new Class system; that&#8217;s without the massive improvements to our community, demos and tutorials.</p>
<p>Basically &#8211; 2010, regardless of what the Chinese calendar tells you, is the year of the Moo. And I for one am looking forward to it loads.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2009/11/looking-forward-to-2010/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>A MooTools Demo thingy (and some Fx)</title>
		<link>http://blog.fakedarren.com/2009/11/a-mootools-demo-thingy-and-some-fx/</link>
		<comments>http://blog.fakedarren.com/2009/11/a-mootools-demo-thingy-and-some-fx/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 00:06:18 +0000</pubDate>
		<dc:creator>fakedarren</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MooTools]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=39</guid>
		<description><![CDATA[I&#8217;ve spent quite a bit of time recently working on changes to the MooTools documentation. Now I have a blog up I wanted to write some demos but didn&#8217;t want it to be one long article; I wanted to break the article into sections.
So I made this little demo thingy and thought I&#8217;d see what [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve spent quite a bit of time recently working on changes to the MooTools documentation. Now I have a blog up I wanted to write some demos but didn&#8217;t want it to be one long article; I wanted to break the article into sections.</p>
<p>So I made this little demo thingy and thought I&#8217;d see what people thought of it.</p>
<h2>How it works</h2>
<p>First off I separate each &#8217;slide&#8217; with a &lt;div class=&#8221;section&#8221;&gt;. I&#8217;m also using &lt;pre&gt; tags and the excellent <a href="http://pradador.com/code/lighterjs/" onclick="pageTracker._trackPageview('/outgoing/pradador.com/code/lighterjs/?referer=');">Lighter.js</a> for code highlighting.</p>
<p>I then have a small class that lets you navigate through the &#8217;slides&#8217;. Each time a slide is shown, the HTML, CSS and JavaScript are injected into an iframe (which I called a &#8217;stage&#8217;) and you can show the stage by adding a class of &#8217;showstage&#8217; to the section.</p>
<p>The code is really messy at the moment but it is more of a proof-of-concept than a finished class. I&#8217;ll definitely clean it up, and I may in time make it into a WordPress plugin &#8211; I&#8217;d also love it to be easily used with <a href="http://mooshell.net" onclick="pageTracker._trackPageview('/outgoing/mooshell.net?referer=');">MooShell</a>.</p>
<p>Anyway, have a play and tell me what you think!</p>
<h2>A demo of the demo thingy</h2>
<div class="demo">
<div class="introduction section">
<h2>Really simple animations with .tween() and .morph()</h2>
<p>MooTools effects are really powerful and really easy to use. The easiest way to do basic animations is using the Fx.Tween and Fx.Morph element methods.</p>
<p>Let&#8217;s start off with a couple of simple boxes:</p>
<h3>HTML</h3>
<pre class="html:twilight html">
<div class="box" id="box1"></div>
<div class="box" id="box2"></div>
</pre>
<h3>CSS</h3>
<pre class="css:twilight css">
.box {
	height: 100px;
	position: absolute;
	width: 100px;
}
#box1 {
	background-color: #222;
	border: 1px solid #ccc;
	left: 20px;
	top: 40px;
}
#box2 {
	background-color: #94CC25;
	border: 1px solid #222;
	left: 450px;
	top: -3px;
}
</pre>
</div>
<div class="showstage section">
<h2>Changing a single property</h2>
<p>If you want to just change a single property of an element, like change a background colour or fade an element out, you can use a tween.</p>
<pre class="hidden html"><a id="runscript1" href="#">run script 1</a> | <a id="runscript2" href="#">run script 2</a>
<div class="box" id="box1"></div>
<div class="box" id="box2"></div>
</pre>
<h3>JavaScript</h3>
<pre class="js:twilight js">$('runscript1').addEvent('click', function(e){
	e.stop();
	$('box1').tween('background-color', '#f00');
	$('box2').tween('opacity', 0.7);
});

$('runscript2').addEvent('click', function(e){
	e.stop();
	$('box1').tween('top', 50);
	$('box2').tween('left', 300);
});</pre>
</div>
<div class="section showstage">
<h2>Use .morph() to change more than one property</h2>
<pre class="hidden html">
<a id="runscript" href="#">run script</a>
<div class="box" id="box1"></div>
<div class="box" id="box2"></div>
</pre>
<h3>JavaScript</h3>
<pre class="js:twilight js">$('runscript').addEvent('click', function(e){
	e.stop();
	$('box1').morph({
		'background-color': '#00f',
		'left': 400,
		'top': 15
	});
	$('box2').morph({
		'background-color': '#ff0',
		'border-color': '#94cc25',
		'border-width': 12,
		'left': 30,
		'top': 5
	});
});</pre>
</div>
<div class="section showstage">
<h2>Chaining</h2>
<p>If you want to chain a series of effects, the Fx.Morph class has an option called &#8216;link&#8217;. You can set it to &#8216;chain&#8217; (as well as some other options) like so:</p>
<pre class="hidden html">
<a id="runscript" href="#">run script</a>
<div class="box" id="box1"></div>
</pre>
<h3>JavaScript</h3>
<pre class="js:twilight js">$('runscript').addEvent('click', function(e){
	e.stop();
	$('box1').set('morph', {
		duration: 'long',
		link: 'chain',
		transition: 'bounce:out'
	});
	$('box1').morph({
		'background-color': '#00f',
		'left': 400,
		'top': 15
	}).morph({
		'background-color': '#ff0',
		'border-color': '#94cc25',
		'border-width': 12,
		'left': 30,
		'top': 5
	});
});</pre>
</div>
<div class="section showstage">
<h2>.fade() and .highlight() &#8211; handy helpers</h2>
<pre class="hidden html">
<a id="fadein" href="#">fade in</a> | <a id="fadeout" href="#">fade out</a> | <a id="fadetoggle" href="#">toggle fade</a> | <a id="fadehalf" href="#">fade to 0.5</a>
 |
<a id="highlight" href="#">highlight</a> | <a id="highlightred" href="#">highlight red</a>
<div class="box" id="box1"></div>
<div class="box" id="box2"></div>
</pre>
<h3>JavaScript</h3>
<pre class="js:twilight js">
$('fadein').addEvent('click', function(){
	$('box1').fade('in');
});
$('fadeout').addEvent('click', function(){
	$('box1').fade('out');
});
$('fadetoggle').addEvent('click', function(){
	$('box1').fade('toggle');
});
$('fadehalf').addEvent('click', function(){
	$('box1').fade(0.5);
});

$('highlight').addEvent('click', function(){
	$('box2').highlight();
});
$('highlightred').addEvent('click', function(){
	$('box2').highlight('#ff0000');
});
$$('A').addEvent('click', function(e){
	e.stop();
});
</pre>
</div>
<div class="section">
<h2>Find out more</h2>
<ul>
<li><a href="http://mootools.net/docs/core/Fx/Fx.Tween" onclick="pageTracker._trackPageview('/outgoing/mootools.net/docs/core/Fx/Fx.Tween?referer=');">Offical docs for Fx.Tween</a></li>
<li><a href="http://mootools.net/docs/core/Fx/Fx.Morph" onclick="pageTracker._trackPageview('/outgoing/mootools.net/docs/core/Fx/Fx.Morph?referer=');">Offical docs for Fx.Morph</a></li>
<li><a href="http://demos.mootools.net/Effects" onclick="pageTracker._trackPageview('/outgoing/demos.mootools.net/Effects?referer=');">Demo on mootools.net</a></li>
<li><a href="http://www.mootorial.com/wiki/mootorial/06-fx/01-fx.tween" onclick="pageTracker._trackPageview('/outgoing/www.mootorial.com/wiki/mootorial/06-fx/01-fx.tween?referer=');">The Mootorial</a></li>
</ul>
</div>
<div class="stage"></div>
</div>
<p><script src="/wp-content/themes/hemingway/js/demos.js" type="text/javascript"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2009/11/a-mootools-demo-thingy-and-some-fx/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How I write my CSS, and why</title>
		<link>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/</link>
		<comments>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 18:14:42 +0000</pubDate>
		<dc:creator>fakedarren</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=14</guid>
		<description><![CDATA[I work with a team of awesome Front End Developers, who&#8217;s main job it is to take the designs and code it into accessible HTML and CSS. There are currently 4 of us, and a couple more have been and gone.
We all kind of agree on how we structure our HTML &#8211; in a way [...]]]></description>
			<content:encoded><![CDATA[<p>I work with a team of awesome Front End Developers, who&#8217;s main job it is to take the designs and code it into accessible HTML and CSS. There are currently 4 of us, and a couple more have been and gone.</p>
<p>We all kind of agree on how we structure our HTML &#8211; in a way that is semantically sound, and accessible &#8211; but one thing I&#8217;ve noticed is how different my views on how I structure my CSS are compared to my colleagues. I thought I&#8217;d explain myself, and hope to gain some insight into what others think about my style, given my reasons for choosing it.</p>
<h2>I always capitalise my tags</h2>
<p>I can&#8217;t actually remember when I started doing this &#8211; I guess it was right from the start &#8211; but I always capitalise any HTML element in my CSS. For instance:</p>
<pre class="css:twilight">DIV LI.selected A</pre>
<p>I do this because I really believe it&#8217;s more readable. IDs are very recognisable because of the # sign &#8211; classes, when quickly scanning CSS, are less easy to spot, because the period isn&#8217;t the most noticeable of characters. By capitalising my tag names, I can easily differentiate between IDs, tags, and classes.</p>
<h2>I always order my properties alphabetically</h2>
<p>When I mention this I normally get accused of having horrific OCD, which is probably quite true; a lot of people prefer to group properties by type; as in, top, left, right or border, padding, margin.</p>
<p>My argument for this is that if you order alphabetically you eliminate two possible problems; first of all, duplicates (however unlikely); second of all, gotchas like specifying a font rule after a line height. Compound properties (like font, background etc) implicitly include other rules in them. The main one &#8211; font declaration implicitly includes line-height.</p>
<pre class="css:twilight">line-height: 16px;
font: 1.2em Helvetica, Arial, sans-serif;</pre>
<p>In the above example, the line-height declaration means nothing. It is overriden by the font declaration. Ordering alphabetically eliminates this as a potential problem.</p>
<p>It also means when I&#8217;m looking quickly for something I know whether to look at the beginning or end of a set of properties.</p>
<h2>Single-line declarations FTL</h2>
<p>This is something that me and some of my colleagues can agree to disagree on. I HATE single line declarations. I find them so unreadable. One of my first experiences with single-line CSS was this horror show of a 2,000 line stylesheet &#8211; each one on a single line. First off &#8211; no way should you have 2,000 lines of CSS in one file &#8211; but the single line format killed me.</p>
<p>5 or so years ago this could have been considered best practice, given the prevalence of dial-up.  Now with broadband, whilst abusing a user&#8217;s connection is not encouraged, it&#8217;s not so much of a problem. The extra line breaks aren&#8217;t going to add up to much in terms of file size &#8211; so do yourself a favour and put your properties on separate lines.</p>
<p>It&#8217;s worth noting that whenever you see a &#8216;CSS formatter&#8217; (like <a title="Floele CSS Formatter" href="http://floele.flyspray.org/csstidy//css_optimiser.php" onclick="pageTracker._trackPageview('/outgoing/floele.flyspray.org/csstidy//css_optimiser.php?referer=');">this one</a>) if you format it as &#8216;readable&#8217; then it takes the multi-line approach. Single-line declarations are rubbish.</p>
<p>Also the argument that it&#8217;s harder to find a rule if you don&#8217;t put them all on one line is, in my eyes, invalid &#8211; Firebug tells me exactly what line it&#8217;s on.</p>
<h2>I put IE specific hacks in separate stylesheets</h2>
<p>Again, I find it extremely annoying when people put IE hacks in the stylesheets. They should be separate. I have a whole blog post in the works dedicated to IE hacks so I won&#8217;t go into any details here <img src='http://blog.fakedarren.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>I indent my CSS to show when a declaration is a child of another</h2>
<pre class="css:twilight">UL {
  list-style: none;
  margin: 0;
  padding: 0;
}
    UL LI  {
      color: #CCC;
    }</pre>
<p>By doing this I can clearly see what rules belong to what definition &#8211; again I chalk this down as personal preference but I find indenting like this to be much more readable.</p>
<h2>Use the server to compile your CSS &#8211; then break it up into chunks</h2>
<p>If you are working on a site that has so much CSS that it&#8217;s a performance problem to have lots of small, manageable CSS files, you need to invest the time on building something that collates and compresses them for you. This is NEVER an excuse to not break your CSS up into small manageable chunks, but rather a failure to use the tools you have to make something manageable and maintainable.</p>
<p>I&#8217;ll definitely be doing some posts in the future about this subject with simple C# and PHP examples.</p>
<h2>That&#8217;s how I do it &#8211; what about you?</h2>
<p>That&#8217;s how and why I structure my CSS like I do. I find that having a structure for CSS is something that a lot of people don&#8217;t do &#8211; it&#8217;s often an afterthought for a lot of Front End developers I know. I&#8217;d love to know what you think of my eccentric CSS-based behaviour and what works well for you.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2009/10/how-i-write-my-css-and-why/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>It&#8217;s about frikkin&#8217; time&#8230;</title>
		<link>http://blog.fakedarren.com/2009/10/hellointerwebz/</link>
		<comments>http://blog.fakedarren.com/2009/10/hellointerwebz/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 22:35:54 +0000</pubDate>
		<dc:creator>fakedarren</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.fakedarren.com/?p=1</guid>
		<description><![CDATA[So then. The time has come. I&#8217;m actually going to start blogging.
I&#8217;ve been meaning to for absolutely ages, just never got round to it. But recently I&#8217;ve been getting more and more annoyed with myself for not taking the time to do so.
Hopefully, the content on this here blog will be of interest to people. [...]]]></description>
			<content:encoded><![CDATA[<p>So then. The time has come. I&#8217;m actually going to start blogging.</p>
<p>I&#8217;ve been meaning to for absolutely ages, just never got round to it. But recently I&#8217;ve been getting more and more annoyed with myself for not taking the time to do so.</p>
<p>Hopefully, the content on this here blog will be of interest to people. I&#8217;ve got grand plans &#8211; how well they are executed remains to be seen &#8211; but basically I hope to be able to write a ton of awesome articles about the various tricks I&#8217;ve learnt over the years. I&#8217;ll mainly be covering MooTools, CSS, C# and PHP, with the odd sprinkling of HTML5, accessibility, ActionScript and hell, maybe even some jQuery.</p>
<p>And goddamn am I looking forward to it!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fakedarren.com/2009/10/hellointerwebz/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
