<?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>koden</title>
	<atom:link href="http://www.koden.se/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.koden.se</link>
	<description>code is poetry</description>
	<lastBuildDate>Thu, 17 Jun 2010 20:18:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Feature Test Post</title>
		<link>http://www.koden.se/2009/12/01/feature-test-post/</link>
		<comments>http://www.koden.se/2009/12/01/feature-test-post/#comments</comments>
		<pubDate>Tue, 01 Dec 2009 21:59:59 +0000</pubDate>
		<dc:creator>Skoog</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[Test]]></category>

		<guid isPermaLink="false">http://www.koden.se/?p=53</guid>
		<description><![CDATA[This post i meant to test a few of the plugins I recently installed. The shadowbox plugin. (Flash Snow, Flash Fireworks, a YouTube Video) Syntax Highlighting (WP-Syntax with some tweaks) PHP /** * Calculates the start and end date of a given week. * @param int $week The week number * @param int $year The year * [...]]]></description>
			<content:encoded><![CDATA[<p>This post i meant to test a few of the plugins I recently installed.</p>
<ol>
<li>The <a href="http://sivel.net/wordpress/shadowbox-js/" target="_blank">shadowbox</a> plugin. (<a rel="shadowbox;height=340;width=560;options={'flashVars':{'density' : '40'}}" href="http://www.koden.se/wp-content/uploads/2009/11/snow.swf">Flash Snow</a>, <a rel="shadowbox;height=340;width=560" href="http://www.koden.se/wp-content/uploads/2009/11/fireworks.swf">Flash Fireworks</a>, <a rel="shadowbox;height=340;width=560" href="http://www.youtube.com/v/C3_hpCOGxDg">a YouTube Video</a>)</li>
<li><a href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank">Syntax Highlighting</a> (WP-Syntax with some tweaks)<br />
<strong>PHP</strong></p>
<pre escaped="true" lang="php" line="1">/**
* Calculates the start and end date of a given week.
* @param	int		$week		The week number
* @param	int		$year		The year
* @return	array 	array('begins' =&gt; 'date', 'ends' =&gt; 'date')
*/
public static function get_week_range($week, $year) {
	$week = str_pad($week, 2, 0, STR_PAD_LEFT); // ISO 8601 says weeks must have 2 characters (01, 02, 03 etc)
	return array(
		'begins'	=&gt; date('Y-m-d', strtotime($year.'W'.$week.'1')),
		'ends'		=&gt; date('Y-m-d', strtotime($year.'W'.$week.'7')),
	);
}</pre>
<p><strong>AS3</strong></p>
<pre escaped="true" lang="actionscript3" line="1">/**
* This function creates the velocities for a spherical
* explosion and adds them to the stack.
*/
private function spherical(r:Number, speed:Number):void {
	for (var i:uint = 0; i &lt; this.density; i++) {
		var s:spark = new spark( .5, this.color);
		var theta:Number = Math.random() * Math.PI*2;
		var phi:Number	 = Math.random() * Math.PI*2;

		//var r:Number = Math.floor(Math.random() * 1 + 2);
		s.vx = r * Math.sin(theta) * Math.cos(phi) * speed;
		s.vy = r * Math.sin(theta) * Math.sin(phi) * speed;
		s.vz = r * Math.cos(theta) * 1.2;
		sparks.push(s);
		addChild(s);
	}
}</pre>
<p><strong>JavaScript</strong></p>
<pre escaped="true" lang="javascript" line="1">&lt;script type="text/javascript"&gt;
	var angle	= 0;
	var step    = 1;
	var radiusX	= 200;
	var radiusY = 100;
	var count   = 20;
	var centerX, centerY;

	$(document).ready(function() {
		centerX	= $('body').width() / 2;
		centerY	= $('body').height() / 2;
		for(var i = 0; i &lt; count; i++) {
			$('&lt;img src="accept.png" alt="" id="fly'+i+'"/&gt;').appendTo('body');
		}
		setInterval('move()', 25);
	});

	function move() {
		var x, y;
		for(var i = count; i &gt;= 0; i--) {
			x = centerX + Math.cos((angle - (step * 2 * i)) * Math.PI / 180) * radiusX;
			y = centerY + Math.sin((angle - (step * 2 * i)) * Math.PI / 180) * radiusY;
			$('#fly'+i).css('left', x-8).css('top', y-8).css('opacity', 1 / (i +1));
		}
		angle += step;
	}
&lt;/script&gt;</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.koden.se/2009/12/01/feature-test-post/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog Reset!</title>
		<link>http://www.koden.se/2009/11/22/blog-reset/</link>
		<comments>http://www.koden.se/2009/11/22/blog-reset/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 17:01:55 +0000</pubDate>
		<dc:creator>Skoog</dc:creator>
				<category><![CDATA[Not code]]></category>
		<category><![CDATA[koden.se]]></category>

		<guid isPermaLink="false">http://www.koden.se/?p=3</guid>
		<description><![CDATA[So, the other day I decided to reset my blog. Install a new plugins and change the theme. I also decided that the blog will be written in English from now on. This is because most of the things I will be talking about have a much wider audience than just Swedish (which happens to be [...]]]></description>
			<content:encoded><![CDATA[<p>So, the other day I decided to reset my blog. Install a new plugins and change the theme. I also decided that the blog will be written in English from now on. This is because most of the things I will be talking about have a much wider audience than just Swedish<em> (which happens to be my primary language)</em> people.</p>
<p>This blog will primarily focus on my thoughts and experiments in web based coding technology. But I will probably focus on PHP, JavaScript and ActionScript.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.koden.se/2009/11/22/blog-reset/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
