<?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>Ghosty</title>
	<atom:link href="http://ghosty.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://ghosty.co.uk</link>
	<description>my ramblings</description>
	<lastBuildDate>Tue, 17 Jan 2012 12:15:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>SOPA Blackout</title>
		<link>http://ghosty.co.uk/2012/01/sopa-blackout/</link>
		<comments>http://ghosty.co.uk/2012/01/sopa-blackout/#comments</comments>
		<pubDate>Tue, 17 Jan 2012 12:15:10 +0000</pubDate>
		<dc:creator>ghosty</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[blackout]]></category>
		<category><![CDATA[sopa]]></category>

		<guid isPermaLink="false">http://ghosty.co.uk/?p=233</guid>
		<description><![CDATA[This site will be joining in on the SOPA Blackout on the 18th Jan. If you are reading this from America, I urge you to please contact your representative about this awful bill.]]></description>
			<content:encoded><![CDATA[<p>This site will be joining in on the <a href="http://operationsopa.blogspot.com/2012/01/list-of-companiesorganizations-that-are.html">SOPA Blackout</a> on the 18th Jan.</p>
<p>If you are reading this from America, I urge you to please contact your representative about this awful bill.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghosty.co.uk/2012/01/sopa-blackout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canterbury cathedral on a frosty morning</title>
		<link>http://ghosty.co.uk/2012/01/canterbury-cathedral-on-a-frosty-morning/</link>
		<comments>http://ghosty.co.uk/2012/01/canterbury-cathedral-on-a-frosty-morning/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 18:06:43 +0000</pubDate>
		<dc:creator>ghosty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ghosty.co.uk/?p=231</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://ghosty.co.uk/wp-content/uploads/2012/01/20120116-180619.jpg" rel="lightbox[231]"><img src="http://ghosty.co.uk/wp-content/uploads/2012/01/20120116-180619.jpg" alt="20120116-180619.jpg" class="alignnone size-full" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ghosty.co.uk/2012/01/canterbury-cathedral-on-a-frosty-morning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Frosty morning</title>
		<link>http://ghosty.co.uk/2012/01/frosty-morning/</link>
		<comments>http://ghosty.co.uk/2012/01/frosty-morning/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 08:23:39 +0000</pubDate>
		<dc:creator>ghosty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ghosty.co.uk/?p=227</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://ghosty.co.uk/wp-content/uploads/2012/01/20120113-082320.jpg" rel="lightbox[227]"><img src="http://ghosty.co.uk/wp-content/uploads/2012/01/20120113-082320.jpg" alt="20120113-082320.jpg" class="alignnone size-full" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ghosty.co.uk/2012/01/frosty-morning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pretty sky this morning</title>
		<link>http://ghosty.co.uk/2012/01/pretty-sky-this-morning/</link>
		<comments>http://ghosty.co.uk/2012/01/pretty-sky-this-morning/#comments</comments>
		<pubDate>Thu, 12 Jan 2012 08:13:54 +0000</pubDate>
		<dc:creator>ghosty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ghosty.co.uk/?p=224</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://ghosty.co.uk/wp-content/uploads/2012/01/20120112-081331.jpg" rel="lightbox[224]"><img src="http://ghosty.co.uk/wp-content/uploads/2012/01/20120112-081331.jpg" alt="20120112-081331.jpg" class="alignnone size-full" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ghosty.co.uk/2012/01/pretty-sky-this-morning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Frog playing ant crush fail</title>
		<link>http://ghosty.co.uk/2011/12/frog-playing-ant-crush-fail/</link>
		<comments>http://ghosty.co.uk/2011/12/frog-playing-ant-crush-fail/#comments</comments>
		<pubDate>Thu, 22 Dec 2011 06:23:15 +0000</pubDate>
		<dc:creator>ghosty</dc:creator>
				<category><![CDATA[funny]]></category>
		<category><![CDATA[ant crush]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[frog]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://ghosty.co.uk/?p=220</guid>
		<description><![CDATA[After seeing a bearded dragon playing ant crush, it appears that people with pets that like bugs are copying the video.  This is particularly funny, make sure you watch to the end.]]></description>
			<content:encoded><![CDATA[<p>After seeing a <a title="Bearded dragon plays ant crush" href="http://www.youtube.com/watch?v=WTpldq3myV0">bearded dragon playing ant crush</a>, it appears that people with pets that like bugs are copying the video.  This is particularly funny, make sure you watch to the end.</p>
<span style="text-align:center; display: block;"><a href="http://ghosty.co.uk/2011/12/frog-playing-ant-crush-fail/"><img src="http://img.youtube.com/vi/WlEzvdlYRes/2.jpg" alt="" /></a></span>
]]></content:encoded>
			<wfw:commentRss>http://ghosty.co.uk/2011/12/frog-playing-ant-crush-fail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is America thinking!</title>
		<link>http://ghosty.co.uk/2011/12/what-is-america-thinking/</link>
		<comments>http://ghosty.co.uk/2011/12/what-is-america-thinking/#comments</comments>
		<pubDate>Sun, 18 Dec 2011 09:19:55 +0000</pubDate>
		<dc:creator>ghosty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dea]]></category>
		<category><![CDATA[piracy]]></category>
		<category><![CDATA[rights]]></category>
		<category><![CDATA[sopa]]></category>
		<category><![CDATA[USA]]></category>

		<guid isPermaLink="false">http://ghosty.co.uk/?p=211</guid>
		<description><![CDATA[I just wanted to bring this to peoples attention.  This actually scares me, and reminds me of the Digital Economy Act that was forced through in the UK where one persone arguing for the bill actually thought IP (as in &#8230; <a href="http://ghosty.co.uk/2011/12/what-is-america-thinking/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just wanted to bring this to peoples attention.  This actually scares me, and reminds me of the <a title="Digital Economy Act on Wikipedia" href="http://en.wikipedia.org/wiki/Digital_Economy_Act_2010">Digital Economy Act</a> that was forced through in the UK where one persone arguing for the bill actually thought IP (as in IP address) stood for Intellectual Property. <strong>*facepalms*</strong></p>
<span style="text-align:center; display: block;"><a href="http://ghosty.co.uk/2011/12/what-is-america-thinking/"><img src="http://img.youtube.com/vi/JhwuXNv8fJM/2.jpg" alt="" /></a></span>
<p>This was brought to my attention by <a title="What is SOPA | HighEdWebTech | Mike Richwalski" href="http://highedwebtech.com/2011/12/17/what-is-sopa-and-what-does-it-mean/">Mike Richwalski</a>.</p>
<p>I urge anyone in America, please contact your representative.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghosty.co.uk/2011/12/what-is-america-thinking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Theming WordPress using Thematic and Compass</title>
		<link>http://ghosty.co.uk/2011/12/theming-wordpress-using-thematic-and-compass/</link>
		<comments>http://ghosty.co.uk/2011/12/theming-wordpress-using-thematic-and-compass/#comments</comments>
		<pubDate>Sat, 17 Dec 2011 08:14:45 +0000</pubDate>
		<dc:creator>ghosty</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[childtheme]]></category>
		<category><![CDATA[Compass]]></category>
		<category><![CDATA[extend]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://ghosty.co.uk/?p=168</guid>
		<description><![CDATA[Recently I have started to play with making my own themes for WordPress. Rather than start from the ground and reinvent the wheel, I decided to use a base theme which I can then extend. I also opted to use &#8230; <a href="http://ghosty.co.uk/2011/12/theming-wordpress-using-thematic-and-compass/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img class="aligncenter size-full wp-image-184" title="Wordpress-Featured-Image" src="http://ghosty.co.uk/wp-content/uploads/2011/12/Wordpress-Featured-Image1.png" alt="" width="519" height="250" />Recently I have started to play with making my own themes for <a title="Wordpress" href="http://wordpress.org">WordPress</a>. Rather than start from the ground and reinvent the wheel, I decided to use a base theme which I can then extend. I also opted to use the brilliant <a title="Compas stylesheet framework" href="http://compass-style.org/">Compass css framework</a> to speed up development. Im going to talk about how I set my project up to get the most out of these tools.</p>
<p><span id="more-168"></span></p>
<p>Let me say one thing first and foremost, I am not an expert on Compass, nor am I an expert with <a title="SASS" href="http://sass-lang.com/">SASS</a>, or Ruby, or a WordPress theming guru. Therefore what I have done is not necessarily the best way to do it, but it is a way that worked for me.</p>
<h2>Dont reinvent the wheel</h2>
<p>I decided to on using the child theme system built into WordPress, as this allows me to abide by the first rule of web development; Dont reinvent the wheel. This provides me with a solid foundation to start from and get going really quickly. The beauty of using a child theme is the upgrade path; if the base theme gets updated, your changes will remain separate.</p>
<p>After a bit of <a title="Google for wordpress starter theme" href="http://www.google.co.uk/?q=wordpress+starter+theme">googling</a> and reading, I settled upon the <a title="Thematic theme framework" href="http://themeshaper.com/thematic/">Thematic theme framework</a>. I chose this as it seemed to offer the best all round features. I was also boosted in confidence by the fact that it came from the same people that built TwentyEleven, the main theme that ships with the current WordPress.</p>
<p>To <a title="Child theme documentation from WordPress" href="http://codex.wordpress.org/Child_Themes">create a child theme</a> is easy, all it takes is one additional line to your theme declaration in your stylesheet.  The line in question is the Template one. This tells WordPress to extend the theme in the Thematic folder. Obviously you can change this to whatever theme you want to extend. For instance I have extended the <a title="Twenty Eleven theme" href="http://theme.wordpress.com/themes/twentyeleven/">TwentyEleven</a> theme over at <a title="Briar Rose Beauty | Adding a little beauty to your life" href="http://www.briarrosebeauty.com">Briar Rose Beauty</a>, allowing me to provide customisations to the theme without modifying the core codebase.</p>
<p>When you activate your new theme, your stylesheet will be included and the template files [that you have not overridden] from thematic will be used. There is one caveat, no stylesheets are included by default. This is where we crack out our PHP skills and put the following in functions.php</p>
<pre class="brush:php">function wp_ghosty_childtheme_stylesheet() {
    $templatedir = get_bloginfo('template_directory');
    $stylesheetdir = get_bloginfo('stylesheet_directory');
}
?&gt;</pre>
<p>What we have here is a custom function to include the basic stylesheets that we want from the thematic theme. This is the beauty with thematic, the stylesheets are modular, you can pick and choose what you want. Want a 2 column layout? Then include 2c-l-fixed.css, or 2c-r-fixed.css depending on whether you want left or right column.</p>
<h2>Which way is north?</h2>
<p>This is where we start to set up compass. First of all make sure that you have it <a title="Installing the Compass Style Framework" href="http://compass-style.org/install/">installed</a>. Then we need to initialise a new project within our theme folder. To do this we run the following command.</p>
<pre class="brush:bash">compass create childtheme --sass-dir "sass" --css-dir "" --javascripts-dir "javascripts" --images-dir "images"</pre>
<p>That sets up everything we need to use Compass, then to start coding you run this command from within the folder that was just created.</p>
<pre class="brush:bash"> compass watch</pre>
<h2>Full steam ahead</h2>
<p>We now have the compas project set up and running inside our WordPress themes folder, and Compass is watching it to compile the stylesheets.  There are a couple things that we want to tweak to get the theme working.</p>
<p>Compass by default creates us the files <code>screen.css</code>, <code>print.css</code> and <code>ie.css</code>, but WordPress expects the file style.css.  Reading some pages on the web someone suggested creating the style.css and using the following at the top of the file to include your Compass styles.</p>
<pre class="brush:css">@import "screen.css"</pre>
<p>However, I prefer to delete <code>screen.css</code> (and the corresponding source file <code>screen.scss</code>) and create a new file called <code>style.scss</code> in the sass directory.  This then gets compiled to <code>style.css </code>and is one less file for the client to download. Then in the top of your style.scss you need to paste the WordPress theme declaration</p>
<pre class="brush:css">/*
Template Name: My Child Theme
Template URI: http://ghosty.co.uk
Description: My awesome theme that extends thematic
Author: Simon Yeldon
Author URI: http://simon.yeldon.co.uk
Template: thematic
*/</pre>
<p>This then ends up in the compiled style.css and allows WordPress to use your theme</p>
<p>Thats it, you have a theme that you can control the stylesheets using Compass.</p>
<p>One other thing that I do is split up the template using <a title="Compass Style best practice" href="http://compass-style.org/help/tutorials/best_practices/">Compasses partials feature</a>.  This allows you to separate logical units. The sassn folder structure that I end up with for my theme is this.</p>
<ul>
<li><code>sass</code></li>
<ul>
<li><code>partials</code></li>
<ul>
<li><code>_variables.scss</code></li>
<li><code>_imports.scss</code></li>
<li><code>_header.scss</code></li>
<li><code>_content.scss</code></li>
<li><code>_footer.scss</code></li>
</ul>
<li><code>style.scss</code></li>
</ul>
</ul>
<p>I can then include the partials in the style.scss file and keep everything logically separate.  Its a nice idea to keep the variables and the imports in their own files for maintainability.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghosty.co.uk/2011/12/theming-wordpress-using-thematic-and-compass/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Morning rainbow</title>
		<link>http://ghosty.co.uk/2011/12/morning-rainbow/</link>
		<comments>http://ghosty.co.uk/2011/12/morning-rainbow/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 11:18:37 +0000</pubDate>
		<dc:creator>ghosty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ghosty.co.uk/?p=195</guid>
		<description><![CDATA[This greeted me whilst I was waiting for my lift yesterday morning.]]></description>
			<content:encoded><![CDATA[<p><a href="http://ghosty.co.uk/wp-content/uploads/2011/12/20111214-111744.jpg" rel="lightbox[195]"><img src="http://ghosty.co.uk/wp-content/uploads/2011/12/20111214-111744.jpg" alt="20111214-111744.jpg" class="alignnone size-full" /></a></p>
<p>This greeted me whilst I was waiting for my lift yesterday morning.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghosty.co.uk/2011/12/morning-rainbow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WebKitBits: Dev Tools</title>
		<link>http://ghosty.co.uk/2011/12/webkitbits-dev-tools/</link>
		<comments>http://ghosty.co.uk/2011/12/webkitbits-dev-tools/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 20:50:35 +0000</pubDate>
		<dc:creator>ghosty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ghosty.co.uk/?p=192</guid>
		<description><![CDATA[This is an awesome video from WebKitBits all about the new dev tools that are now in WebKit. http://www.webkitbits.com/post/13796063053/chrome-dev-tools-performance]]></description>
			<content:encoded><![CDATA[<p>This is an awesome video from WebKitBits all about the new dev tools that are now in WebKit.</p>
<p><a href="http://www.webkitbits.com/post/13796063053/chrome-dev-tools-performance">http://www.webkitbits.com/post/13796063053/chrome-dev-tools-performance</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ghosty.co.uk/2011/12/webkitbits-dev-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Funny venn diagram</title>
		<link>http://ghosty.co.uk/2011/12/funny-venn-diagram/</link>
		<comments>http://ghosty.co.uk/2011/12/funny-venn-diagram/#comments</comments>
		<pubDate>Sat, 10 Dec 2011 09:03:35 +0000</pubDate>
		<dc:creator>ghosty</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ghosty.co.uk/?p=180</guid>
		<description><![CDATA[This made me giggle, so I thought that I would share it. &#160;]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.geeksaresexy.net/2011/12/09/the-difference-between-god-spider-man-the-spanish-inquisition-and-santa-claus-venn-diagram">This made me giggle</a>, so I thought that I would share it.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://ghosty.co.uk/2011/12/funny-venn-diagram/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

