<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>ninja sumos &#187; Uncategorized</title>
	<atom:link href="http://blog.parkerfox.co.uk/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.parkerfox.co.uk</link>
	<description>... adventures in tech town</description>
	<lastBuildDate>Tue, 08 Dec 2009 16:13:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.parkerfox.co.uk' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/3ee7697e66ef1439675fe936c0307d1a?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>ninja sumos &#187; Uncategorized</title>
		<link>http://blog.parkerfox.co.uk</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.parkerfox.co.uk/osd.xml" title="ninja sumos" />
	<atom:link rel='hub' href='http://blog.parkerfox.co.uk/?pushpress=hub'/>
		<item>
		<title>Node Eval: Evaluate Javascript using V8</title>
		<link>http://blog.parkerfox.co.uk/2009/12/06/node-eval-evaluate-javascript-using-v8/</link>
		<comments>http://blog.parkerfox.co.uk/2009/12/06/node-eval-evaluate-javascript-using-v8/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 15:28:21 +0000</pubDate>
		<dc:creator>foxparker</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.parkerfox.co.uk/?p=71</guid>
		<description><![CDATA[Just realeased &#8220;Node Eval&#8221;, whiche allows arbitrary javascript to be evaluated using V8. This is mostly useful for other servers to evaluate javascript, without needing a direct bridge. I&#8217;m using it in Ruby instead of Johnson (which seems to have problems with GC) which provides a nice degree of separation. Use: /eval?js=12*12 =&#62; {&#8220;success&#8221;:true,&#8221;result&#8221;:144} /eval?js=12*a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.parkerfox.co.uk&blog=9418852&post=71&subd=foxparker&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Just realeased &#8220;Node Eval&#8221;, whiche allows arbitrary javascript to be evaluated using V8.</p>
<p>This is mostly useful for other servers to evaluate javascript, without needing a direct bridge. I&#8217;m using it in Ruby instead of Johnson (which seems to have problems with GC) which provides a nice degree of separation.</p>
<p><strong>Use</strong>:</p>
<p><em>/eval?js=12*12</em> =&gt; {&#8220;success&#8221;:true,&#8221;result&#8221;:144}</p>
<p><em>/eval?js=12*a</em> =&gt; {&#8220;success&#8221;:false,&#8221;exception&#8221;:&#8221;ReferenceError: a is not defined&#8221;}</p>
<p>Context is maintained</p>
<p><em>/eval?js=this.a=9</em> =&gt; {&#8220;success&#8221;:true,&#8221;result&#8221;:null}</p>
<p><em>/eval?js=12*a </em> =&gt; {&#8220;success&#8221;:true,&#8221;result&#8221;:108}</p>
<p>It&#8217;s also possible to supply a source file on disk and a context name:</p>
<p><em>/eval?js=func()&amp;file=/abs/path/to/file</em> =&gt; {&#8220;success&#8221;:true,&#8221;result&#8221;: &#8220;func output ok&#8221;}</p>
<p>Note that to be able to call functions, you&#8217;ll need to expose them using the CommonJS &#8220;exports&#8221; declaration.</p>
<p><strong>Github Page</strong></p>
<p><a href="http://github.com/weepy/node_eval">http://github.com/weepy/node_eval</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxparker.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxparker.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxparker.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxparker.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxparker.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxparker.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxparker.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxparker.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxparker.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxparker.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.parkerfox.co.uk&blog=9418852&post=71&subd=foxparker&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.parkerfox.co.uk/2009/12/06/node-eval-evaluate-javascript-using-v8/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dca4c0022387d5087106c01c0a14c308?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foxparker</media:title>
		</media:content>
	</item>
		<item>
		<title>Crazy worm bookmarklet</title>
		<link>http://blog.parkerfox.co.uk/2009/10/08/crazy-worm-bookmarklet/</link>
		<comments>http://blog.parkerfox.co.uk/2009/10/08/crazy-worm-bookmarklet/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 11:14:03 +0000</pubDate>
		<dc:creator>foxparker</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.parkerfox.co.uk/?p=26</guid>
		<description><![CDATA[Can you handle the crazy worm ? If you think you can go =&#62;=&#62;here &#60;=&#60;=<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.parkerfox.co.uk&blog=9418852&post=26&subd=foxparker&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Can you handle the crazy worm ?</p>
<p>
<a href='http://www.parkerfox.co.uk/labs/crazyworm'><br />
  <img style='width:400px;' src='http://foxparker.files.wordpress.com/2009/10/crazy-worm-screeny.png?w=380' /><br />
</a>
</p>
<p>If you think you can go =&gt;=&gt;<a href='http://www.parkerfox.co.uk/labs/crazyworm'>here</a> &lt;=&lt;=</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxparker.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxparker.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxparker.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxparker.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxparker.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxparker.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxparker.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxparker.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxparker.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxparker.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.parkerfox.co.uk&blog=9418852&post=26&subd=foxparker&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.parkerfox.co.uk/2009/10/08/crazy-worm-bookmarklet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dca4c0022387d5087106c01c0a14c308?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foxparker</media:title>
		</media:content>

		<media:content url="http://foxparker.files.wordpress.com/2009/10/crazy-worm-screeny.png" medium="image" />
	</item>
		<item>
		<title>Bezier Curves and Arcs in jQuery</title>
		<link>http://blog.parkerfox.co.uk/2009/09/22/bezier-curves-and-arcs-in-jquery/</link>
		<comments>http://blog.parkerfox.co.uk/2009/09/22/bezier-curves-and-arcs-in-jquery/#comments</comments>
		<pubDate>Tue, 22 Sep 2009 10:25:53 +0000</pubDate>
		<dc:creator>foxparker</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://foxparker.wordpress.com/?p=7</guid>
		<description><![CDATA[The animation engine in jQuery is focussed on single dimensional animation &#8211; hence it&#8217;s difficult to animate two variables along a path. jQuery.path provides a method of multidimensional animation, and in particular provides a method for animating along bezier curves and arcs. Bezier Example: animate along a bezier path. See demo var bezier_params = { [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.parkerfox.co.uk&blog=9418852&post=7&subd=foxparker&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>The animation engine in jQuery is focussed on single dimensional animation &#8211; hence it&#8217;s difficult to animate two variables along a path.</p>
<p><a href="http://github.com/weepy/jquery.path">jQuery.path</a> provides a method of multidimensional animation, and in particular provides a method for animating along bezier curves and arcs.</p>
<h2>Bezier</h2>
<p>Example: animate along a bezier path. See <a href="http://weepy.github.com/jquery.path/">demo</a></p>
<pre>var bezier_params = {
    start: {
      x: 185,
      y: 185,
      angle: 10
    },
    end: {
      x:540,
      y:110,
      angle: -10,
      length: 0.25
    }
  }

$("my_elem").animate({path : new $.path.bezier(bezier_params)})</pre>
<p>Bezier curves are made form a start point, an end point each with a control point</p>
<ul>
<li>start is starting point</li>
<li>end is the final point</li>
<li>x,y indicate the coordinates at that point. Required</li>
<li>angle is the angle of the control point from the line joining the start and end. Optional, default is 0</li>
<li>length is the distance from the point to it&#8217;s control point as a ratio of the distance from start to end. Optional, default is 1/3</li>
</ul>
<h2>Arc</h2>
<p>Exampe: animate along an arc. See <a href="http://weepy.github.com/jquery.path/">demo</a></p>
<pre>var arc_params = {
    center: [285,185],
        radius: 100,
        start: 30,
        end: 200,
        dir: -1
  }

$("my_elem").animate({path : new $.path.arc(arc_params)})</pre>
<ul>
<li>center is the coords of the centre of an imaginary circle that contains the start and end point</li>
<li>radius is the radius of this circle</li>
<li>start is the angle of the start point. 0 is &#8220;North&#8221;, measured clockwise</li>
<li>end is the angle of the start point. 0 is &#8220;North&#8221;, measured clockwise</li>
<li>dir is the direction to move in. Only required if not obvious from start and end (e.g. if start is 100, end is 30, but you want to animate clockwise)</li>
</ul>
<h2>Other Paths</h2>
<p>It is trivial to create other paths, or even animate other parameters. E.g:</p>
<pre>var SineWave = function() {
  this.css = function(p) {
    var s = Math.sin(p*20)
    var x = 500 - p * 300
    var y = s * 50 + 150
    var o = ((s+2)/4+0.1)
    return {top: y + "px", left: x + "px", opacity: o}
  }
};

$("my_elem").animate({path : new SineWave})</pre>
<h2>Links</h2>
<ul>
<li><a href="http://weepy.github.com/jquery.path">Demo</a></li>
<li><a href="http://github.com/weepy/jquery.path/raw/master/jquery.path.js">Javascript File</a></li>
<li><a href="http://github.com/weepy/jquery.path">Github Project</a></li>
<li><a href="http://github.com/weepy/jquery.path/issues">Issue Tracker</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxparker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxparker.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxparker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxparker.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxparker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxparker.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxparker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxparker.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxparker.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxparker.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.parkerfox.co.uk&blog=9418852&post=7&subd=foxparker&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.parkerfox.co.uk/2009/09/22/bezier-curves-and-arcs-in-jquery/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dca4c0022387d5087106c01c0a14c308?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foxparker</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://blog.parkerfox.co.uk/2009/09/10/hello-world/</link>
		<comments>http://blog.parkerfox.co.uk/2009/09/10/hello-world/#comments</comments>
		<pubDate>Thu, 10 Sep 2009 14:20:32 +0000</pubDate>
		<dc:creator>foxparker</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to our new blog. Focus will be on Javascript, jQuery, Ruby, Rails, perhaps some C#<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.parkerfox.co.uk&blog=9418852&post=1&subd=foxparker&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to our new blog. Focus will be on Javascript, jQuery, Ruby, Rails, perhaps some C#</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/foxparker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/foxparker.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/foxparker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/foxparker.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/foxparker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/foxparker.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/foxparker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/foxparker.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/foxparker.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/foxparker.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.parkerfox.co.uk&blog=9418852&post=1&subd=foxparker&ref=&feed=1" />]]></content:encoded>
			<wfw:commentRss>http://blog.parkerfox.co.uk/2009/09/10/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/dca4c0022387d5087106c01c0a14c308?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">foxparker</media:title>
		</media:content>
	</item>
	</channel>
</rss>