<?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>kevinandre</title>
	<atom:link href="http://kevinandre.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://kevinandre.com</link>
	<description>expression through creativity</description>
	<lastBuildDate>Mon, 26 Dec 2011 23:29:59 +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>Using Require JS to Load Mootools</title>
		<link>http://kevinandre.com/dev/mootools/using-require-js-to-load-mootools/</link>
		<comments>http://kevinandre.com/dev/mootools/using-require-js-to-load-mootools/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 13:31:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mootools]]></category>

		<guid isPermaLink="false">http://kevinandre.com/dev/mootools/using-require-js-to-load-mootools/</guid>
		<description><![CDATA[<p>There are many scripts for loading JavaScript. One of my favorites is <a href="http://requirejs.org/" target="_blank">RequireJS</a>. David Walsh wrote an <a href="http://davidwalsh.name/mootools-requirejs" target="_blank">article</a> about loading Mootools using RequireJS but his technique requires loading mootools core as a whole. What about loading the Mootools modules separately?</p> <p>Mootools, downloaded from github, comes with packaged with a utility called [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_142" class="wp-caption alignleft" style="width: 410px"><img class="size-full wp-image-142" title="MooTools + RequireJS" src="http://kevinandre.com/wp-content/uploads/2011/10/mootools_requirejs.gif" alt="MooTools + RequireJS" width="400" height="190" /><p class="wp-caption-text">MooTools + RequireJS</p></div>
<p>There are many scripts for loading JavaScript. One of my favorites is <a href="http://requirejs.org/" target="_blank">RequireJS</a>. David Walsh wrote an <a href="http://davidwalsh.name/mootools-requirejs" target="_blank">article</a> about loading Mootools using RequireJS but his technique requires loading mootools core as a whole. What about loading the Mootools modules separately?</p>
<p>Mootools, downloaded from github, comes with packaged with a utility called Packager. I wrote an <a href="http://kevinandre.com/dev/using-mootools-packager/">article</a> on using this tool. It is great for packaging your code prior to deployment but it doesn&#8217;t work for dynamic loading in the client. Aaron Newton created a useful tool called <a href="http://mootools.net/blog/2009/11/09/mootools-depender-a-build-tool-for-mootools-javascript-libraries/" target="_blank">Depender</a> that dynamically builds a script for your page. His solution requires running Django on your server. This isn&#8217;t always possible with shared hosting.</p>
<p>RequireJS is great for loading Javascript files. And because of its extensibility using plugins, it becomes even better. I created a Mootools plugin that has the current dependency model for Mootools core 1.4.1 and more 1.4.0.1. It uses this model to dynamically determine which class files are needed by your page and loads them using RequireJS. It also allows you to specify your own files and the required dependencies.</p>
<p>This is very useful during development. Because RequireJS also comes with a build tool, you can use the plugin and configuration to build a production ready script. Check out the <a href="https://github.com/xsokev/mootools-requirejs-plugin">project page</a> for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://kevinandre.com/dev/mootools/using-require-js-to-load-mootools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Session with Facebook Graph API</title>
		<link>http://kevinandre.com/dev/facebookapisession/</link>
		<comments>http://kevinandre.com/dev/facebookapisession/#comments</comments>
		<pubDate>Wed, 22 Jun 2011 16:16:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://kevinandre.com/?p=132</guid>
		<description><![CDATA[<p>I ran into an issue while using the Facebook Graph API. I could never get the session to change from null though I was successfully being authenticated. Turns out a call to getSession() should be performed in the callback page. Calling getSession immediately stores the session information from the Request object. From that point, your [...]]]></description>
			<content:encoded><![CDATA[<p>I ran into an issue while using the Facebook Graph API. I could never get the session to change from null though I was successfully being authenticated. Turns out a call to getSession() should be performed in the callback page. Calling getSession immediately stores the session information from the Request object. From that point, your application has access to the Facebook session data until it times out or until you log out.</p>
]]></content:encoded>
			<wfw:commentRss>http://kevinandre.com/dev/facebookapisession/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Focused</title>
		<link>http://kevinandre.com/poetry/focused/</link>
		<comments>http://kevinandre.com/poetry/focused/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 02:45:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Poetry]]></category>

		<guid isPermaLink="false">http://kevinandre.com/?p=130</guid>
		<description><![CDATA[Focused, I am focused but I stray for a moment to see
The sounds of a beautiful woman walking towards me]]></description>
			<content:encoded><![CDATA[<p><!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px 'Times New Roman'} -->Focused, I am focused but I stray for a moment to see</p>
<p>The sounds of a beautiful woman walking towards me</p>
<p>Many people are around but no one else is there</p>
<p>Her lovely eyes, her beautiful smile, the enchanting smell of her hair</p>
<p>I smile to draw attention, a smile I get in return</p>
<p>As she nears anticipation grows, my heart starts to yearn</p>
<p>I wonder what her thoughts are as I prepare my words</p>
<p>I am deeply enthralled in another world filled with flowers and birds</p>
<p>My fantasies are aroused but reality does not comply</p>
<p>For returning from this dreaming state finds her only passing by</p>
<p>I continue eating; focused, I am focused.</p>
<p>&nbsp;</p>
<p><strong>by Kevin A.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://kevinandre.com/poetry/focused/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I Dream</title>
		<link>http://kevinandre.com/poetry/idream/</link>
		<comments>http://kevinandre.com/poetry/idream/#comments</comments>
		<pubDate>Thu, 07 Apr 2011 02:21:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Poetry]]></category>

		<guid isPermaLink="false">http://kevinandre.com/?p=124</guid>
		<description><![CDATA[what is the meaning
when I close my eyes?
when I embrace the nocturnal likeness of myself,
this thing called night,

I dream]]></description>
			<content:encoded><![CDATA[<p><!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: center; font: 14.0px Arial} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 12.0px Arial; min-height: 14.0px} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 16.0px Arial} p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; text-align: right; font: 12.0px Arial} -->what is the meaning</p>
<p>when I close my eyes?</p>
<p>when I embrace the nocturnal likeness of myself,</p>
<p>this thing called night,</p>
<p><em>I dream</em></p>
<p>when I am amidst the atmosphere which makes all things visible,</p>
<p>I think it is called the light of day,</p>
<p><em>I dream</em></p>
<p>when I break from continuously adding to the great lore of my mind,</p>
<p>. . . infinity,</p>
<p>. . . education,</p>
<p><em>I dream</em></p>
<p>when I am drowned in the sounds of that which makes my heart</p>
<p>pause from its rhythmic flow,</p>
<p>the music of life and love,</p>
<p><em>I dream</em></p>
<p>when I can find no activity which will accept</p>
<p>my willingness to participate,</p>
<p><em>I dream</em></p>
<p>I dream about how wonderful it is to be loved by you.</p>
<p>&nbsp;</p>
<p><strong>by Kevin Andre Armstrong</strong></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://kevinandre.com/poetry/idream/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remember the Milk Cheatsheet</title>
		<link>http://kevinandre.com/general/rtmcheatsheet/</link>
		<comments>http://kevinandre.com/general/rtmcheatsheet/#comments</comments>
		<pubDate>Thu, 03 Mar 2011 22:54:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://kevinandre.com/?p=118</guid>
		<description><![CDATA[<p>A little cheatsheet I created to help me with the cool commands available for the online task management application called Remember the Milk. Thought I&#8217;d shared it.</p> <p style="text-align: center;"><a href="http://kevinandre.com/wp-content/uploads/2011/03/rtmcheatsheet.pdf"><br /> <br /> </a></p>]]></description>
			<content:encoded><![CDATA[<p>A little cheatsheet I created to help me with the cool commands available for the online task management application called Remember the Milk. Thought I&#8217;d shared it.</p>
<p style="text-align: center;"><a href="http://kevinandre.com/wp-content/uploads/2011/03/rtmcheatsheet.pdf"><br />
<img class="aligncenter size-large wp-image-120" title="RTM Cheatsheet" src="http://kevinandre.com/wp-content/uploads/2011/03/rtmcheatsheet-1024x790.png" alt="" width="922" height="711" /><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://kevinandre.com/general/rtmcheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking Forms for Modifications</title>
		<link>http://kevinandre.com/dev/mootools/dirtyform/</link>
		<comments>http://kevinandre.com/dev/mootools/dirtyform/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 23:30:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mootools]]></category>

		<guid isPermaLink="false">http://kevinandre.com/?p=116</guid>
		<description><![CDATA[Sometimes in applications forms are submitted without any changes being made. This can of course be a waste of bandwidth and processing time on the server. This very simple <a href="http://mootools.net">MooTools</a> class checks the values in a form to see if its values have been modified and returns a result of true or false.]]></description>
			<content:encoded><![CDATA[<p>Sometimes in applications forms are submitted without any changes being made. This can of course be a waste of bandwidth and processing time on the server. This very simple <a href="http://mootools.net">MooTools</a> class checks the values in a form to see if its values have been modified and returns a result of true or false.</p>
<h2><a href="https://github.com/xsokev/DirtyForm">DirtyForm Class</a></h2>
<p>The class is located on <a href="https://github.com/xsokev/DirtyForm">here</a> on github.</p>
<h3>Examples</h3>
<p>All form fields in a single form with two fields excluded.<br />
<iframe style="width: 98%; height: 530px; border: 1px solid #999;" src="http://jsfiddle.net/xsokev/5ENgz/embedded"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://kevinandre.com/dev/mootools/dirtyform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using MooTools Packager</title>
		<link>http://kevinandre.com/dev/mootools/using-mootools-packager/</link>
		<comments>http://kevinandre.com/dev/mootools/using-mootools-packager/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 00:33:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mootools]]></category>

		<guid isPermaLink="false">http://kevinandre.com/?p=113</guid>
		<description><![CDATA[It is now possible and recommended to generate MooTools (and its plugins) yourself using MooTools Packager or MooTools Depender. These libraries combine multiple javascript files into one for single file deployment. Once you understand the convention these libraries use, building a single production file is a breeze. This article focuses on setting up your javascript files for use primarily with Packager.]]></description>
			<content:encoded><![CDATA[<h4><strong>Overview</strong></h4>
<p>It is now possible and recommended to generate MooTools (and its plugins) yourself using <a href="https://github.com/kamicane/packager">MooTools Packager</a> or <a href="https://github.com/anutron/mootools-depender">MooTools Depender</a>. These libraries combine multiple javascript files into one for single file deployment. Once you understand the convention these libraries use, building a single production file is a breeze. This article focuses on setting up your javascript files for use primarily with Packager. Once created though, the files can be used with Packager or Depender.<br />
<br/></p>
<h4><strong>Packager</strong></h4>
<address>&#8220;Packager is a PHP 5.2+ library to concatenate libraries split in multiple files in a single file. It automatically calculates dependancies. Packager requires a yml header syntax in every file, and a package.yml manifest file, as seen on the MooTools project.&#8221;</address>
<p><br/></p>
<h5><strong>Structure</strong></h5>
<p>Start by creating a folder for your project. Inside that folder you should have a Source folder and the file package.yml.<br />
- PeopleProject/<br />
&nbsp;&nbsp;&nbsp;&nbsp;- package.yml<br />
&nbsp;&nbsp;&nbsp;&nbsp;- Source/<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Employee.js<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;- Person.js</p>
<p><span style="text-decoration: underline;">Package.yml</span><br />
Below is a sample package.yml file.</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #000066;">name</span><span style="color: #339933;">:</span> People
sources<span style="color: #339933;">:</span>
<span style="color: #339933;">-</span> <span style="color: #3366CC;">&quot;Source/Person.js&quot;</span>
<span style="color: #339933;">-</span> <span style="color: #3366CC;">&quot;Source/Employee.js&quot;</span></pre></div></div>

<ul>
<li>The <strong>name</strong> property specifies the name of your project. It is the name that will be registered with the project manifest.</li>
<li>The <strong>sources</strong> property specifies the location of your javascript source files.</li>
</ul>
<address>Note: Other properties can be added to this manifest file. Some properties are specific for use with MooTools forge.</address>
<p><br/><br />
<span style="text-decoration: underline;">Source Files</span><br />
Source files consists of whatever javascript code you choose. The header of these javascript files is what is important. The header syntax should be in YAML as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">/*
---
name: Person
requires:
- Core/Class
provides: Person
...
*/</span></pre></div></div>

<p>The <code style="font-family: monospace;">---</code> and <code style="font-family: monospace;">...</code> are very important. They are required by YAML and specify the start and end of a YAML block.</p>
<ul>
<li>The <strong>name</strong> property specifies the name of the source file and is used by Packager to reference the source file.</li>
<li>The <strong>requires</strong> property specifies the dependencies of the source file. This can be written using a YAML collection block sequence with each entry on its own line and preceded by a dash and a space or by using a flow sequence with entry separated by a comma within square brackets [].</li>
<li>The <strong>provides</strong> property specifies the code that is provided by the source file. A source file can provide several blocks of code. When any one of those blocks is required by another source file, the entire file is included.</li>
</ul>
<p>As with the manifest file, this YAML block can contain other useful properties such as author, description, license, etc.<br />
<br/></p>
<h5><strong>Command line usage</strong></h5>
<p>With the manifest and the source files properly configured, using Packager from the command line is simple.</p>
<p>First you must register the manifest by issuing the register command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>packager register <span style="color: #000000; font-weight: bold;">&lt;</span>path-to-manifest<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>After the manifest has been registered, you can issue several build commands depending on your needs.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>packager build +components People<span style="color: #000000; font-weight: bold;">/</span>Person People<span style="color: #000000; font-weight: bold;">/</span>Employee</pre></div></div>

<p>Which builds the passed in components (and their dependancies) using your registered packages. You can get the same results with the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>packager build People<span style="color: #000000; font-weight: bold;">/</span>Person People<span style="color: #000000; font-weight: bold;">/</span>Employee</pre></div></div>

<p>You can build every component from your project with the command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>packager build People<span style="color: #000000; font-weight: bold;">/*</span></pre></div></div>

<p>To write the results of the commands to a file, use the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>packager build People<span style="color: #000000; font-weight: bold;">/*</span> <span style="color: #000000; font-weight: bold;">&gt;</span> people.js</pre></div></div>

<p>More commands and explanations can be found on the <a href="https://github.com/kamicane/packager">packager project page</a>.</p>
<address>Note: The command line script only works on unices.</address>
]]></content:encoded>
			<wfw:commentRss>http://kevinandre.com/dev/mootools/using-mootools-packager/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Pseudos for dojo.query</title>
		<link>http://kevinandre.com/dev/creating-a-dojo-pseudo-query/</link>
		<comments>http://kevinandre.com/dev/creating-a-dojo-pseudo-query/#comments</comments>
		<pubDate>Thu, 02 Dec 2010 15:03:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://kevinandre.com/dev/creating-a-dojo-pseudo-query/</guid>
		<description><![CDATA[<p>I enjoy using libraries that have built query support for XML. Much of the data that is generated by my organization&#8217;s internal applications is in the form of XML. 9 times out of 10 I have to parse that data for values to be used for my development. My most recent development project prompted me [...]]]></description>
			<content:encoded><![CDATA[<p>I enjoy using libraries that have built query support for XML. Much of the data that is generated by my organization&#8217;s internal applications is in the form of XML. 9 times out of 10 I have to parse that data for values to be used for my development. My most recent development project prompted me to use <a title="Dojo" href="http://www.dojotoolkit.org/">Dojo</a> for my development.</p>
<p>The XML that I had to parse required querying for node with text of a certain value. The native :contains pseudo shipped with dojo didn&#8217;t work because it uses the innerHTML property which isn&#8217;t available for XML nodes. I could have rewritten that pseudo but that would potentially break other code. I decided to create my own pseudo with the logic used in jQuery&#8217;s :contains pseudo:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">dojo.<span style="color: #660066;">query</span>.<span style="color: #660066;">pseudos</span>.<span style="color: #660066;">text</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #000066;">name</span><span style="color: #339933;">,</span> condition<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> cz <span style="color: #339933;">=</span> condition.<span style="color: #660066;">charAt</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span> cz <span style="color: #339933;">==</span> <span style="color: #3366CC;">'&quot;'</span> <span style="color: #339933;">||</span> cz <span style="color: #339933;">==</span> <span style="color: #3366CC;">&quot;'&quot;</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span> <span style="color: #006600; font-style: italic;">//remove quote</span>
        condition <span style="color: #339933;">=</span> condition.<span style="color: #660066;">slice</span><span style="color: #009900;">&#40;</span><span style="color: #CC0000;">1</span><span style="color: #339933;">,</span> <span style="color: #339933;">-</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
    <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>elem<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#40;</span>elem.<span style="color: #660066;">textContent</span> <span style="color: #339933;">||</span> elem.<span style="color: #660066;">innerText</span> <span style="color: #339933;">||</span> <span style="color: #3366CC;">&quot;&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">indexOf</span><span style="color: #009900;">&#40;</span>condition<span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;=</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Using the following XML:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;">&lt;catalog<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;">&lt;book id=<span style="color: #ff0000;">&quot;bk101&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;author<span style="color: #7400FF;">&gt;</span></span>Grisham, John<span style="color: #000000;">&lt;/author<span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;title<span style="color: #7400FF;">&gt;</span></span>The Confession: A Novel<span style="color: #000000;">&lt;/title<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;">&lt;/book<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;">&lt;book id=<span style="color: #ff0000;">&quot;bk102&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;author<span style="color: #7400FF;">&gt;</span></span>Morrison, Matthew<span style="color: #000000;">&lt;/author<span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;title<span style="color: #7400FF;">&gt;</span></span>One Day More<span style="color: #000000;">&lt;/title<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;">&lt;/book<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;">&lt;book id=<span style="color: #ff0000;">&quot;bk103&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;author<span style="color: #7400FF;">&gt;</span></span>Grisham, John<span style="color: #000000;">&lt;/author<span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;title<span style="color: #7400FF;">&gt;</span></span>The Partner<span style="color: #000000;">&lt;/title<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;">&lt;/book<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;">&lt;book id=<span style="color: #ff0000;">&quot;bk104&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;author<span style="color: #7400FF;">&gt;</span></span>Grisham, John<span style="color: #000000;">&lt;/author<span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;title<span style="color: #7400FF;">&gt;</span></span>Theodore Boone: Kid Lawyer<span style="color: #000000;">&lt;/title<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;">&lt;/book<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;">&lt;book id=<span style="color: #ff0000;">&quot;bk105&quot;</span><span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;author<span style="color: #7400FF;">&gt;</span></span>Morrison, Matthew<span style="color: #000000;">&lt;/author<span style="color: #7400FF;">&gt;</span></span>
        <span style="color: #000000;">&lt;title<span style="color: #7400FF;">&gt;</span></span>It Takes Two<span style="color: #000000;">&lt;/title<span style="color: #7400FF;">&gt;</span></span>
    <span style="color: #000000;">&lt;/book<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;">&lt;/catalog<span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>I could find all books by John Grisham using the following:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">dojo.<span style="color: #660066;">query</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'book'</span><span style="color: #339933;">,</span> xml<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">filter</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>book<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #000066; font-weight: bold;">return</span> dojo.<span style="color: #660066;">query</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'author:text(Grisham, John)'</span><span style="color: #339933;">,</span> book<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">length</span> <span style="color: #339933;">&gt;</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://kevinandre.com/dev/creating-a-dojo-pseudo-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flowers</title>
		<link>http://kevinandre.com/photo/flowers/</link>
		<comments>http://kevinandre.com/photo/flowers/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 01:47:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[flower]]></category>
		<category><![CDATA[nature]]></category>

		<guid isPermaLink="false">http://kevinandre.com/?p=75</guid>
		<description><![CDATA[<p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p> <p></p>]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-76" title="flower1" src="http://kevinandre.com/wp-content/uploads/2010/11/1-300x300.jpg" alt="" width="300" height="300" /></p>
<p><img class="alignnone size-medium wp-image-77" title="flower12" src="http://kevinandre.com/wp-content/uploads/2010/11/2-300x300.jpg" alt="" width="300" height="300" /></p>
<p><img class="alignnone size-medium wp-image-78" title="flower3" src="http://kevinandre.com/wp-content/uploads/2010/11/3-300x300.jpg" alt="" width="300" height="300" /></p>
<p><img class="alignnone size-medium wp-image-79" title="flower4" src="http://kevinandre.com/wp-content/uploads/2010/11/4-300x300.jpg" alt="" width="300" height="300" /></p>
<p><img class="alignnone size-medium wp-image-80" title="flower5" src="http://kevinandre.com/wp-content/uploads/2010/11/5-300x300.jpg" alt="" width="300" height="300" /></p>
<p><img class="alignnone size-medium wp-image-81" title="flower7" src="http://kevinandre.com/wp-content/uploads/2010/11/7-300x300.jpg" alt="" width="300" height="300" /></p>
<p><img class="alignnone size-medium wp-image-82" title="flower8" src="http://kevinandre.com/wp-content/uploads/2010/11/8-300x300.jpg" alt="" width="300" height="300" /></p>
<p><img class="alignnone size-medium wp-image-83" title="flower9" src="http://kevinandre.com/wp-content/uploads/2010/11/101-300x300.jpg" alt="" width="300" height="300" /></p>
]]></content:encoded>
			<wfw:commentRss>http://kevinandre.com/photo/flowers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tampa, FL</title>
		<link>http://kevinandre.com/photo/tampa-fl/</link>
		<comments>http://kevinandre.com/photo/tampa-fl/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 00:03:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Photography]]></category>
		<category><![CDATA[nature]]></category>
		<category><![CDATA[tampa]]></category>
		<category><![CDATA[travel]]></category>
		<category><![CDATA[water]]></category>

		<guid isPermaLink="false">http://ka/?p=60</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<img src="http://kevinandre.com/wp-content/uploads/2010/11/wpid-11-2010-11-2-19-03.jpg" alt="wpid-11-2010-11-2-19-03.jpg" width="600" height="600" />
<img src="http://kevinandre.com/wp-content/uploads/2010/11/wpid-10-2010-11-2-19-03.jpg" alt="wpid-10-2010-11-2-19-03.jpg" width="600" height="600" />
<img src="http://kevinandre.com/wp-content/uploads/2010/11/wpid-5-2010-11-2-19-03.jpg" alt="wpid-5-2010-11-2-19-03.jpg" width="600" height="600" />
]]></content:encoded>
			<wfw:commentRss>http://kevinandre.com/photo/tampa-fl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

