<?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>Hybrid Garden &#187; Web Devlopment</title>
	<atom:link href="http://hybridgarden.com/blog/catalog/web-devlopment/feed/" rel="self" type="application/rss+xml" />
	<link>http://hybridgarden.com/blog</link>
	<description>Rhys Burnie&#039;s Artwork and Web Development blog</description>
	<lastBuildDate>Mon, 08 Nov 2010 23:58:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A simple MooTools yql extension for the Request class</title>
		<link>http://hybridgarden.com/blog/web-devlopment/request-yql/</link>
		<comments>http://hybridgarden.com/blog/web-devlopment/request-yql/#comments</comments>
		<pubDate>Sun, 02 May 2010 03:23:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Devlopment]]></category>
		<category><![CDATA[MooTools]]></category>
		<category><![CDATA[YQL]]></category>

		<guid isPermaLink="false">http://hybridgarden.com/blog/?p=96</guid>
		<description><![CDATA[Request.YQL
 Extends: Request.JSONP
A very simple extension that accepts a YQL query and makes the call returning data from YQL in json format (default). 
 Accepts all inherited options from the Request.* classes up the Request.JSONP family line but url must be the service url. The default value of format is&#8220;json&#8221; it can be any of [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Request.YQL</strong><strong><br />
 Extends: </strong>Request.JSONP</p>
<p>A very simple extension that accepts a <abbr title="Yahoo! Query Language">YQL</abbr> query and makes the call returning <em>data</em> from YQL in <abbr title="JavaScript Object Notation">json</abbr> format <sup>(default)</sup>. <br />
 Accepts all inherited options from the Request.* classes up the Request.JSONP family line but <em>url</em> must be the service url. The default value of <em>format</em> is<em>&#8220;json&#8221; </em>it can be any of the defined YQL formats.</p>
<p><strong>NB:</strong> The .send() method needs to be called and a <em>onSuccess</em> defined for it to do anything. Example:</p>
<pre class="brush: js">new Request.YQL("show tables",{
	onSuccess: function(data) {
				console.log(data);
			 }
}).send();
</pre>
<h3>Mo&#8217; Info</h3>
<ul>
<li><a href="http://developer.yahoo.com/yql/console/">http://developer.yahoo.com/yql/console/</a></li>
<li><a href="http://mootools.net/docs/more/Request/Request.JSONP">http://mootools.net/docs/more/Request/Request.JSONP</a></li>
</ul>
<pre class="brush: js">/** ============================================================================
 * YQL driver
 * Extends: Request.JSONP
 *
 * @version		1.0
 *
 * @license		MIT-style license
 * @author 		Rhys Burnie
 * @copyright		Author &lt;rhys [at] hybridgarden.com&gt;
 * @param 		{String} YQL query
 * @param 		{Object} Request options
 * 				   NB: options.url must be to the YQL service (default to v1 path)
 */
if( ($chk(Request) &amp;&amp; $chk(Request.JSONP)) &amp;&amp; !$chk(Request.YQL) ) {
	Request.YQL = new Class({
		Extends: Request.JSONP,
		options: {
			url: "http://query.yahooapis.com/v1/public/yql?",
			format: 'json'
		},
		initialize: function(query,options) {
			this.parent(options);
	        	if (!query)
	            	return;
	        	this.options.url = this.options.url + 'q=' + encodeURIComponent(query) + '&amp;format='+this.options.format;
		},
	    success: function(data, script) {
	        this.parent(data, script);
	    }
	});
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://hybridgarden.com/blog/web-devlopment/request-yql/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Adding html5 capability to WordPress</title>
		<link>http://hybridgarden.com/blog/misc/adding-html5-capability-to-wordpress/</link>
		<comments>http://hybridgarden.com/blog/misc/adding-html5-capability-to-wordpress/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 09:18:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Web Devlopment]]></category>
		<category><![CDATA[html5]]></category>

		<guid isPermaLink="false">http://hybridgarden.com/blog/?p=30</guid>
		<description><![CDATA[There are two techniques that I find useful for making the WordPress content editor html5 capable. The first is to replace the default wpautop filter for the_excerpt &#38; the_content with Nicolas Gallagher&#8217;s html5autop filter.
The second is to allow html5 tags and attributes in tinyMCE otherwise the tags would be removed when switching between html view, [...]]]></description>
			<content:encoded><![CDATA[<p>There are two techniques that I find useful for making the WordPress content editor html5 capable. The first is to replace the default <strong>wpautop</strong> filter for <em>the_excerpt</em> &amp; <em>the_content</em> with Nicolas Gallagher&#8217;s <a href="http://nicolasgallagher.com/using-html5-elements-in-wordpress-post-content/"><strong>html5autop</strong></a> filter.</p>
<p>The second is to allow html5 tags and attributes in tinyMCE otherwise the tags would be removed when switching between html view, yes you can just use the code view permanently which seems to be a favorite <em>&#8220;solution&#8221;</em> offered by many developers whenever there&#8217;s an issue with the WYSIWYG but I for one would much rather use the WYSIWYG any day to coding in a crappy textarea. As one guy mentions in Nicholas&#8217; comments you can add tinyMCE settings via the <em>tiny_mce_before_init</em> WordPress filter. So I did this:</p>
<pre class="brush: php">function extend_valid_html5($init) {
	// Standard attributes
	$atts = 'role|accesskey|class|contenteditable|contextmenu|dir|draggable|hidden|id|item|itemprop|lang|spellcheck|style|subject|tabindex|title';
	$html5Elements = array(
		'article[#|cite|pubdate]',
		'aside[#]',
		'audio[#]',
		'canvas[#]',
		'command[#]',
		'datalist[#]',
		'details[#]',
		'figure[#]',
		'figcaption[#]',
		'footer[#]',
		'header[#]',
		'hgroup[#]',
		'mark[#]',
		'meter[#]',
		'nav[#]',
		'output[#]',
		'progress[#]',
		'section[#]',
		'summary[#]',
		'time[#|datetime]',
		'video[#]'
	);
	if(!isset($init['extended_valid_elements'])) {
		$init['extended_valid_elements'] = '';
	}
	$init['extended_valid_elements'] .= str_replace('#',$atts,implode(',',$html5Elements));
	return $init;
}

add_filter('tiny_mce_before_init', 'extend_valid_html5');
</pre>
<p>NB: Needs more attributes I&#8217;m just going to add them when I need them for now.</p>
<p>Nicholas adds his filter to the themes function.php file but I placed both filters into a html5support.php plugin which just sits there activated making the filters available, that way I can have multiple themes and not bother writing it into every themes function.php file.</p>
]]></content:encoded>
			<wfw:commentRss>http://hybridgarden.com/blog/misc/adding-html5-capability-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Hybrid Garden&#8217;s &#8211; No Style (kiss)</title>
		<link>http://hybridgarden.com/blog/misc/hybrid-gardens-no-style-kiss/</link>
		<comments>http://hybridgarden.com/blog/misc/hybrid-gardens-no-style-kiss/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 06:32:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Miscellaneous]]></category>
		<category><![CDATA[Web Devlopment]]></category>

		<guid isPermaLink="false">http://hybridgarden.com/blog/?p=22</guid>
		<description><![CDATA[For a very long time now I have been meaning to work on my website which has gone through various versions of crapola ever since I tore the old one down years ago. There are various reason why I&#8217;ve procrastinated for so long, mostly the fact that outside of work where I was a lead [...]]]></description>
			<content:encoded><![CDATA[<p>For a very long time now I have been meaning to work on my website which has gone through various versions of crapola ever since I tore the old one down years ago. There are various reason why I&#8217;ve procrastinated for so long, mostly the fact that outside of work where I was a lead frontend developer I would rather spend any free time on my Artwork rather than work on more code. That being said I have actually developed the site several times using combos of WordPress, Expression Engine and Kohana but would always get to a point where I was unsatisfied.</p>
<p>I have now decided as far as the backend goes the site will be a combo of Kohana with WordPress sitting under <strong>/blog</strong> as I only want to use WP as a blog not exploit it as a CMS. The core of the site will be Kohana using both traditional Controllers and a custom &#8220;fallback&#8221; controller for serving pseudo static content &#8211; that way I can have an unlimited amount of micro sites and projects some as simple as a single static view or ones that run under Controller(s).</p>
<p>The other thing that holds me back is style, well not being able to decide on style. This has lead me to the conclusion that Id rather start the site off with <strong>no style</strong> (well very minimal style).</p>
<p><strong>KISS</strong> <em>Keep It Simple Stupid</em> <del>Will appear quite similar to a browser default apart from a few layout and typography tweaks</del> <ins>is quite minimal</ins>, a nice simple core that can be enhanced further with other themes. I quite like the idea of a minimal style which wont compete with the actual artwork I want to display. In the future I plan on making other themes so they can be switched etc similar to the good old <a href="http://www.csszengarden.com/">Zen Garden</a>.</p>
<p>Once KISS is finalized I&#8217;ll add an additional theme variant <strong>SSIK</strong> <em>Second Style: Inverse KISS </em>(inverted colours) before adding other pretty themes.</p>
]]></content:encoded>
			<wfw:commentRss>http://hybridgarden.com/blog/misc/hybrid-gardens-no-style-kiss/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

