<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Webdevotion.be</title>
	
	<link>http://webdevotion.be/blog</link>
	<description>Developer for the Flash Platform</description>
	<lastBuildDate>Wed, 16 Jun 2010 15:35:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/webdevotion" /><feedburner:info uri="webdevotion" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Change a column type when using Postgresql in Rails migrations</title>
		<link>http://feedproxy.google.com/~r/webdevotion/~3/nN2b5Luis7Q/</link>
		<comments>http://webdevotion.be/blog/2010/06/16/change-a-column-type-when-using-postgresql-in-rails-migrations/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 15:32:23 +0000</pubDate>
		<dc:creator>Webdevotion</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[:boolean]]></category>
		<category><![CDATA[:text]]></category>
		<category><![CDATA[change_column]]></category>
		<category><![CDATA[heroku]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://webdevotion.be/blog/?p=334</guid>
		<description><![CDATA[When using Rails, you're using migrations a lot.  Migrations are awesome.  But today I ran into a problem.  I had to convert a column to be of type :boolean ( it was of type :text ).  I was suprised when things went wrong.]]></description>
			<content:encoded><![CDATA[<p><span class="drop">W</span>hen using Rails, you&#8217;re using <a href="http://guides.rubyonrails.org/migrations.html">migrations</a> a lot.  Migrations are awesome.  But today I ran into a problem.  I had to convert a column to be of type :boolean ( it was of type :text ).  I was suprised when things went wrong.<br />
<span id="more-334"></span><br />
When running the migration I got this error from Postgresql:<br />
<code>cannot be cast to type "pg_catalog.bool"</code></p>
<p>Apparantly, Postgresql can&#8217;t convert a text column into a boolean, even when passing default values.  The standard way of writing the migration didn&#8217;t work:<br />
<code>change_column :projects, :status, :boolean, :default=>true</code></p>
<p>So I started googling and ended up with:<br />
<code>execute "alter table projects ALTER COLUMN status TYPE boolean USING CASE status WHEN '1' THEN true ELSE false END;"</code></p>
<p>While this line did work, there is a problem with it; it&#8217;s not agnostic.  It&#8217;s written specifically for Postgresql, but may cause issues in other environments.</p>
<p>So, the final, agnostic solution ( <a href="http://twitter.com/simonmenke">thanks Simon</a>! )  uses plain Rails code.  Basically we add a temporary column of type :boolean to store the information.  After looping over all Project records we have converted all text values to the type boolean.  Because we have all information stored in the temporary column, it&#8217;s ok to remove the existing status column and rename convert_status to status.</p>
<pre><code>class ConvertStatusToBoolean < ActiveRecord::Migration
  def self.up
    add_column :projects, :convert_status, :boolean, :default => true

    # look up the schema's to be able to re-inspect the Project model
    # http://apidock.com/rails/ActiveRecord/Base/reset_column_information/class
    Project.reset_column_information

    # loop over the collection
    Project.all.each do |p|
        p.convert_status = p.status == '1'
        p.save
    end

    # remove the older status column
    remove_column :projects, :status
    # rename the convert_status to status column
    rename_column :projects,:convert_status,:status
  end

  def self.down
    change_column :projects, :status, :text
  end
end</code></pre>
<p>Handy cheat sheet:<br />
<a href="http://dizzy.co.uk/ruby_on_rails/cheatsheets/rails-migrations#execute">http://dizzy.co.uk/ruby_on_rails/cheatsheets/rails-migrations#execute</a></p>
<p>Useful info on Apidock:<br />
<a href="http://apidock.com/rails/ActiveRecord/Base/reset_column_information/class">http://apidock.com/rails/ActiveRecord/Base/reset_column_information/class</a><br />
<br/></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webdevotion?a=nN2b5Luis7Q:IuMhk7zOg54:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webdevotion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=nN2b5Luis7Q:IuMhk7zOg54:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=nN2b5Luis7Q:IuMhk7zOg54:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=nN2b5Luis7Q:IuMhk7zOg54:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=nN2b5Luis7Q:IuMhk7zOg54:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webdevotion/~4/nN2b5Luis7Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webdevotion.be/blog/2010/06/16/change-a-column-type-when-using-postgresql-in-rails-migrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webdevotion.be/blog/2010/06/16/change-a-column-type-when-using-postgresql-in-rails-migrations/</feedburner:origLink></item>
		<item>
		<title>Running Ubuntu Lucid Netbook Edition on a Asus EEE PC 1201HA</title>
		<link>http://feedproxy.google.com/~r/webdevotion/~3/_lUr2JmQmd0/</link>
		<comments>http://webdevotion.be/blog/2010/06/10/running-ubuntu-lucid/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 20:19:57 +0000</pubDate>
		<dc:creator>Webdevotion</dc:creator>
				<category><![CDATA[Linux ( Ubuntu )]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[1201AH]]></category>
		<category><![CDATA[asus]]></category>
		<category><![CDATA[blank]]></category>
		<category><![CDATA[eee]]></category>
		<category><![CDATA[gma500]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[resolution]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://webdevotion.be/blog/?p=322</guid>
		<description><![CDATA[Today I installed Ubuntu on my Asus EEE PC 1201HA netbook. Because I've got really good experiences with installing Ubuntu on the computers of my family and friends, I was determined to install Ubuntu Netbook Edition on this one too before passing it on to it's next owner.]]></description>
			<content:encoded><![CDATA[<p><span class="drop">T</span>oday I installed Ubuntu on my Asus EEE PC 1201HA netbook. Because I&#8217;ve got really good experiences with installing Ubuntu on the computers of my family and friends, I was determined to install Ubuntu Netbook Edition on this one too before passing it on to it&#8217;s next owner. ( I just bought it for a temp. side project ).<br />
<span id="more-322"></span><br />
The main reason I recommend Ubuntu to people who are asking for my help is <em>viruses</em>. Most regular home users are still tied to Windows and with Windows comes great responsibility. Most people also rely on old(er) computers, don&#8217;t want to spend money on hardware upgrades and are using computers for very easy tasks.  Enter Ubuntu.</p>
<p>I&#8217;m not saying Ubuntu is not suited for more complicated user profiles. ( With the recent foul play of Apple, I would be more than inclined to use Ubuntu on my MBP on my day to day work. ) I&#8217;m just saying Ubuntu is easy enough to start with for most people to enter a virus free world.  When they see the Firefox logo they now where &#8220;the internet&#8221; is.</p>
<p>But enough mumbo jumbo: how did the installation on the netbook go?  Well, very smooth.  No complaints.  The installation was very straight forward. But&#8230;  the graphics performance was bad.  Problem: Intel&#8217;s GMA500 gfx card.  Intel is not known as a member of the &#8220;we support Linux&#8221; pool.  So, the community is basicly left on it&#8217;s own.  Luckily for us there is a solution.  Created by the community.  It&#8217;s a work in progress, but for now it supports enough to work on your GMA powered netbook.  The biggest thing missing is 3D support.  But if you need that, why would you buy a netbook?</p>
<ol>
<li>First check this wonderful <a href="http://code.google.com/p/gma500/wiki/PPARepository">Google Project</a></li>
<li>Then have a look at my xorg.conf file:
<pre>Section "DRI"
	Mode	0666
EndSection

Section "Extensions"
	Option "Composite" "Enable"
endSection

Section "Device"
	Identifier	"Configured Video Device"
	Driver	"psb"
	Option	"ShadowFB"	"True"
EndSection</pre>
</li>
<li>
Check your grub file ( /etc/default/grub ) and DON&#8217;T forget to <em>sudo run update-grub</em> afterwards.</p>
<pre>
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet acpi_osi=Linux acpi_backlight=vendor mem=2000mb splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_LINUX_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
</pre>
</li>
<li>Restart your system and your screen resolution should be ok. WIFI works as expected ( writing this blog post on the EEE PC now on WIFI ).</li>
</ol>
<p>As I&#8217;m going to pass this system on shortly after this blog post I will not be able to check additional settings for you.  All I can say is: I installed Ubuntu Lucid Netbook Edition from a USB I created on the existing Windows installation on this machine, before overwriting it with the Ubuntu installation. After that I saw that the screen reso wasn&#8217;t ok, so I installed the repo&#8217;s from the aforementioned Google Project page.  After digging through some Googled pages I found the correct settings for my screen.  It is my expectation that the people behind the Google Project will continue their good work and make a fully compatible driver available for us in the foreseeable future.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webdevotion?a=_lUr2JmQmd0:M6Fw1bbhQvM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webdevotion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=_lUr2JmQmd0:M6Fw1bbhQvM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=_lUr2JmQmd0:M6Fw1bbhQvM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=_lUr2JmQmd0:M6Fw1bbhQvM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=_lUr2JmQmd0:M6Fw1bbhQvM:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webdevotion/~4/_lUr2JmQmd0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webdevotion.be/blog/2010/06/10/running-ubuntu-lucid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webdevotion.be/blog/2010/06/10/running-ubuntu-lucid/</feedburner:origLink></item>
		<item>
		<title>How to get up and running with Apparat</title>
		<link>http://feedproxy.google.com/~r/webdevotion/~3/PZCJkBxnHOM/</link>
		<comments>http://webdevotion.be/blog/2010/06/02/how-to-get-up-and-running-with-apparat/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 16:07:39 +0000</pubDate>
		<dc:creator>Webdevotion</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[ANT]]></category>
		<category><![CDATA[apparat]]></category>
		<category><![CDATA[example]]></category>
		<category><![CDATA[fastmath]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[inline]]></category>
		<category><![CDATA[intmath]]></category>
		<category><![CDATA[joa ebert]]></category>
		<category><![CDATA[reducer]]></category>
		<category><![CDATA[tdsi]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://webdevotion.be/blog/?p=276</guid>
		<description><![CDATA[This article describes how one can build and run Apparat ( by Joa Ebert ).  Getting up and running actually is the hardest part.  I'll try to get you started asap.]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/joa"><span class="drop">@</span>joa</a> recently posted <a href="http://blog.joa-ebert.com/2010/05/26/new-apparat-example/">a simple example</a> to illustrate the power of his powerfull optimization framework called <a href="http://code.google.com/p/apparat/">Apparat</a>.  </p>
<blockquote><p>Apparat is a framework to optimize ABC, SWC and SWF files.</p></blockquote>
<p>From the description of the Google Code page we get a hint of what Apparat actually does: &#8220;Apparat is a framework to optimize ABC, SWC and SWF files.&#8221;.  In layman&#8217;s terms: &#8220;Apparat will speed up your Actionscript projects by optimizing certain method calls.&#8221;.  The Actionscript Library for example provides some ( much ) faster ways of doing math and bitwise operations.  Read on to understand more about how to get up and running with Apparat.<br />
<span id="more-276"></span></p>
<p>First, a confession.  This post you are reading right now, is not the original one.  After I thought I was done writing it, I sent it over to Joa and asked for a * small * review.  A review turned into a complete rewrite as I missed an essential part of the project and made things more complicated for people who just want to integrate Apparat into their projects.  So, credit where due: thank you Joa. Without his help this post wouldn&#8217;t be where it is now.</p>
<p>All in all, there are only two steps:</p>
<ol>
<li>Download Apparat ( the compiled version )</li>
<li>Download Scala ( Apparat is ( being re-) written <a href="http://www.scala-lang.org/">Scala</a> )</li>
<li>Integrate Apparat with a project ( we&#8217;ll use Joa&#8217;s example )</li>
</ol>
<h3>Download Apparat</h3>
<p>Let&#8217;s get started by downloading Apparat:<br/><br />
<a href="http://code.google.com/p/apparat/downloads/detail?name=apparat.zip">http://code.google.com/p/apparat/downloads/detail?name=apparat.zip</a></p>
<p>This file contains the compiled SWC among other compiled build tools ( Reducer, TDSI, Apparat, &#8230; ) that are part of Apparat.<br />
You can extract this file wherever you want but it makes sense to put it somewhere close to your projects so you can go back to it easily in the future.<br />
<a href="http://webdevotion.be/blog/wp-content/Screen-shot-2010-06-03-at-13.22.39.png"><img src="http://webdevotion.be/blog/wp-content/Screen-shot-2010-06-03-at-13.22.39.png" alt="Apparat&#039;s folder structure showing the different tools and SWC file" title="Apparat&#039;s folder structure" width="183" height="314" class="alignnone size-full wp-image-304" /></a></p>
<h3>Download Scala</h3>
<p>We should install Scala from <a href="http://www.scala-lang.org/downloads">http://www.scala-lang.org/downloads</a>.  Scala is a general purpose programming language and states that &#8220;Code sizes are typically reduced by a factor of two to three when compared to an equivalent Java application&#8221;.  Sounds interesting to me, but even more to Joa I guess, as he is using Scala to get Apparat to the next level.</p>
<p>The version you need is RC3 at the time of writing this post. Windows users can download this <a href="http://www.scala-lang.org/downloads/distrib/files/scala-2.8.0.RC3.zip">zip</a>, while the Mac / Unix archive would be this <a href="http://www.scala-lang.org/downloads/distrib/files/scala-2.8.0.RC3.tgz">tgz</a> archive.</p>
<p>You can put the extracted folder anywhere, you don&#8217;t need to install anything.  It does makes sense to put it somewhere next to your working directories.  We&#8217;ll need the Scala directory in a moment, but first we&#8217;ll set up our ( example ) project.</p>
<h3>Integrate Apparat with a project</h3>
<p>For brevity&#8217;s sake and to make this howto as easy to follow along as possible, we&#8217;ll download Joa&#8217;s most recent example:<br/><br />
get it from <a href="http://blog.joa-ebert.com/2010/05/26/new-apparat-example/">http://blog.joa-ebert.com/2010/05/26/new-apparat-example/</a>.</p>
<p>After you extracted the source folder of the example project, you should put it in a nice place. Somewhere next to your other Flash projects maybe.  Fire up <a href="http://www.fdt.powerflasher.com/developer-tools/fdt-3/download/">FDT</a>* and click File > New > New Flash Project from the application menu ( top of the window ) and point to the example folder as your working directory.  </p>
<p><em style="font-size:x-small">* We&#8217;re using FDT because it allready comes with an ANT builder plugin.  It should be possible to use Flash Builder but you&#8217;re on your own ( for now &#8211; maybe I&#8217;ll write something about that in a next post if there is interest ).</em></p>
<p>If you&#8217;re not familiar with ANT you will learn something sweet from this post. ANT is a build tool, that can automate the sometimes tedious process of building a project.  Imagine you want to compile an FLA from within FDT or Flash Builder, ANT can do that for you.  It can even upload a compiled file to your staging server if you want.  Do read more about ANT to learn all about it; its definitely worth it.</p>
<p>In the introduction of Joa&#8217;s blog post we read:</p>
<blockquote><p>A complete example is also available. Just change the paths in the build.properties file and compile everything using Ant.</p></blockquote>
<p>So let&#8217;s do that. Open up the example project in your FDT workspace and edit the build.properties file.  You can find all files related to ANT tasks in the &#8220;build&#8221; directory.  You&#8217;ll find three empty variables there: FLEX_HOME, SCALA_HOME and APPARAT_HOME.  Add the correct values for your machine. <del>Windows users should use \ ( backslashes ) in stead of the forward slashes I&#8217;m using on my OS X machine.</del> Update: everyone ( Mac &#038; Win ) should use forward slashes.<br />
<a href="http://webdevotion.be/blog/wp-content/Screen-shot-2010-06-03-at-13.32.44.png"><img src="http://webdevotion.be/blog/wp-content/Screen-shot-2010-06-03-at-13.32.44.png" alt="My build.properties file looks like this with the correct values for the FLEX_HOME, SCALA_HOME and APPARAT_HOME variables" title="My build.properties file" width="560" height="321" class="alignnone size-full wp-image-305" /></a></p>
<p>Save your changes in the build.properties file.</p>
<p>Next we&#8217;ll link our project to the compiled Apparat.swc file.  The SWC is included in the Apparat download we extracted earlier.  In the readme file of the example project we learn that we need to pass an APPARAT_FLEX path to our Flash project in FDT.  Let&#8217;s do that by rightclicking on our example project and choosing New > Linked Libraries. Click the &#8220;add&#8221; button and create a new path &#8220;APPARAT_FLEX&#8221;.  The path should point to your Apparat folder containing the Apparat.swc file.</p>
<p><a href="http://webdevotion.be/blog/wp-content/Screen-shot-2010-06-03-at-14.25.12.png"><img src="http://webdevotion.be/blog/wp-content/Screen-shot-2010-06-03-at-14.25.12.png" alt="Linked Library APPARAT_FLEX" title="Linked Library APPARAT_FLEX" width="538" height="523" class="alignnone size-full wp-image-314" /></a></p>
<p>Now we should be able to compile the project using the ANT task.  Rightclick on the build/build.xml file.  Choose Run as > Ant Build from the context menu.  You should see ANT triggering several tasks in the Console view, with success off course.  The result is a compiled version of both the example-apparat.swf and example-as3.swf files in your &#8220;bin&#8221; folder.</p>
<p>You can see a clear difference in the framerate of the two swf files.  On my recent MBP I get 28fps on the AS3 example and a whopping 40fps on the Apparat version.  And don&#8217;t forget: that&#8217;s 80.000 particles flying by in front of you!</p>
<p><img src="http://webdevotion.be/blog/wp-content/Screen-shot-2010-06-03-at-14.01.38.png" alt="80.000 particles flying around!" title="80.000 particles" width="587" height="41" class="alignnone size-full wp-image-308" /></p>
<p>If you see some errors in the Console, try to figure out what&#8217;s wrong, chances are one of the variables we edited before in the build.properties file are wrong.</p>
<h3>&#8220;What&#8217;s the difference between me and you?&#8221; </h3>
<p>What makes the Apparat version so fast?  Inline methods sir.  If you check out the two class files in the &#8220;src&#8221; folder of the example project in your FDT workspace, you can see they look almost the same.  The only difference is that the the Apparat class file is using FastMath.  As you can see from this screenshot ( click for full size ):</p>
<p><a href="http://webdevotion.be/blog/wp-content/apparat-howto-81.png"><img src="http://webdevotion.be/blog/wp-content/apparat-howto-81-300x183.png" alt="Diff screenshot of the two class files" title="diff screenshot of the two class files" width="300" height="183" class="alignnone size-medium wp-image-311" /></a></p>
<p>FastMath is a class provided by the Apparat SWC ( which we linked before ) and speeds up some mathematical functions. These function are recognized and &#8220;inlined&#8221;, making them so much faster.  Inlining means that the compiler will put the actual method in the executed code, in stead of calling it from memory.  So in stead of storing &#8220;Fastmath.rsqrt&#8221; it will put the actual code of the FastMath.rsqrt method where ever it is needed when compiling.</p>
<p><a href="http://webdevotion.be/blog/wp-content/Screen-shot-2010-06-03-at-14.11.18.png"><img src="http://webdevotion.be/blog/wp-content/Screen-shot-2010-06-03-at-14.11.18.png" alt="Joa&#039;s comments in the FastMath class" title="FastMath class" width="613" height="173" class="alignnone size-full wp-image-310" /></a></p>
<p>E.g.: in stead of using:</p>
<p><code>// AS3 version<br />
dt = 1.0 / Math.sqrt(dx * dx + dy * dy)</code></p>
<p>the Apparat class uses:<br />
<code>// the faster Apparat way, will get inlined by the compiler<br />
dt = FastMath.rsqrt(dx * dx + dy * dy)</code></p>
<p>Don&#8217;t forget to initialize FastMath when using it in your own projects!</p>
<h3>Conclusion</h3>
<p>Getting Apparat into your project should be very easy once you have gone through these ( actually simple ) steps.  The learning curve was a bit steep for me, but I&#8217;m so glad I finally pulled it off with the help of Mr. Ebert.  Please comment, ask, criticize in the comments below and tell us about your progress with this howto.</p>
<p>If there is interest in articles like these, I&#8217;ll try to post more Apparat related articles in the nearby future.</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webdevotion?a=PZCJkBxnHOM:m_3Jzp6w8B8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webdevotion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=PZCJkBxnHOM:m_3Jzp6w8B8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=PZCJkBxnHOM:m_3Jzp6w8B8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=PZCJkBxnHOM:m_3Jzp6w8B8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=PZCJkBxnHOM:m_3Jzp6w8B8:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webdevotion/~4/PZCJkBxnHOM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webdevotion.be/blog/2010/06/02/how-to-get-up-and-running-with-apparat/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		<feedburner:origLink>http://webdevotion.be/blog/2010/06/02/how-to-get-up-and-running-with-apparat/</feedburner:origLink></item>
		<item>
		<title>Smoothing &lt;mx:image/&gt; – the simple way</title>
		<link>http://feedproxy.google.com/~r/webdevotion/~3/QwQVQwAM9U4/</link>
		<comments>http://webdevotion.be/blog/2009/08/05/smoothing-mximage-the-simple-way/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 14:50:20 +0000</pubDate>
		<dc:creator>Webdevotion</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[smoothing]]></category>

		<guid isPermaLink="false">http://webdevotion.be/blog/?p=263</guid>
		<description />
			<content:encoded><![CDATA[<p><span class="drop">S</span>olved this little problem the simple way.  One of the centralized file sharing applications we&#8217;re developing needed some form of branding at the bottom of the screens.  The logo bar, 1400 px wide, needs to be resized when the user changes the resolution of the browserwindow.</p>
<p>Without smoothing, things turn ugly and pixelated. With smoothing turned on, everything keeps looking the way it should, even when resized.</p>
<pre>
&lt;mx:VBox&gt;
    &lt;mx:script&gt;
	private function smoothImage ( img : Image ) : void
	{
		var bmp : Bitmap = img.content as Bitmap;
		bmp.smoothing = true;
	}
    &lt;/mx:script&gt;
    &lt;mx:image id=&quot;logoImage&quot; complete=&quot;smoothImage(logoImage)&quot; source=&quot;images/logo.png&quot; width=&quot;100%&quot; scaleContent=&quot;true&quot;/&gt;
&lt;/mx:VBox&gt;
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webdevotion?a=QwQVQwAM9U4:jXLZPeS8q5I:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webdevotion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=QwQVQwAM9U4:jXLZPeS8q5I:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=QwQVQwAM9U4:jXLZPeS8q5I:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=QwQVQwAM9U4:jXLZPeS8q5I:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=QwQVQwAM9U4:jXLZPeS8q5I:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webdevotion/~4/QwQVQwAM9U4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webdevotion.be/blog/2009/08/05/smoothing-mximage-the-simple-way/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://webdevotion.be/blog/2009/08/05/smoothing-mximage-the-simple-way/</feedburner:origLink></item>
		<item>
		<title>How to merge two images into one using Actionscript</title>
		<link>http://feedproxy.google.com/~r/webdevotion/~3/9yqB2wCYaHY/</link>
		<comments>http://webdevotion.be/blog/2009/08/05/how-to-merge-two-images-into-one-in-actionscript/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 13:18:38 +0000</pubDate>
		<dc:creator>Webdevotion</dc:creator>
				<category><![CDATA[Flash]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[bitmap]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[matrix]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[scale]]></category>

		<guid isPermaLink="false">http://webdevotion.be/blog/?p=254</guid>
		<description />
			<content:encoded><![CDATA[<p><span class="drop">W</span>ell, it&#8217;s very easy, using BitmapData and Bitmap.  This example makes things a bit more complex to show some principles.  Hope you learn something out of it off course.</p>
<pre>
// we'll scale the first ( background ) image by 50%
var s : Number = .5;

// create a matrix to make the scalilng of the bitmap possible
var scaleMatrix : Matrix = new Matrix();

// apply the scaling to the matrix
scaleMatrix.scale(s,s);

// create a bitmapdata object from an existing bitmap ( "bmp" in this case )
var scaledBitmap : BitmapData = new BitmapData(bmp.width*s,bmp.height*s,false,0);

// draw the content and scale it using the matrix
scaledBitmap.draw(bmp,scaleMatrix);

// we have an embedded asset called "flickr", a flickr logo in gif format
var icon : Bitmap = new flickr() as Bitmap;

// let's place it in the bottom right corner
var ix : Number = scaledBitmap.width-icon.width;
var ij : Number = scaledBitmap.height-icon.height;

// create a matrix for the position of the icon
// note the use of the ix and ij variables in the parameters
var positionMatrix : Matrix = new Matrix(1,0,0,1,ix,ij);

// draw the icon bmp to the bitmapdata
scaledBitmap.draw( icon, positionMatrix );

// add the new, merged, bitmap to your displaylist
var bmp : Bitmap = new Bitmap( scaledBitmap );
addChild( bmp );	

// that's it!
</pre>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webdevotion?a=9yqB2wCYaHY:MmYeEpAuugs:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webdevotion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=9yqB2wCYaHY:MmYeEpAuugs:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=9yqB2wCYaHY:MmYeEpAuugs:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=9yqB2wCYaHY:MmYeEpAuugs:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=9yqB2wCYaHY:MmYeEpAuugs:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webdevotion/~4/9yqB2wCYaHY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webdevotion.be/blog/2009/08/05/how-to-merge-two-images-into-one-in-actionscript/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://webdevotion.be/blog/2009/08/05/how-to-merge-two-images-into-one-in-actionscript/</feedburner:origLink></item>
		<item>
		<title>Binding between a DateField and a Button label at runtime</title>
		<link>http://feedproxy.google.com/~r/webdevotion/~3/WsW9M-YPs0Y/</link>
		<comments>http://webdevotion.be/blog/2009/04/20/binding-between-a-datefield-and-a-button-label-at-runtime/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 06:08:13 +0000</pubDate>
		<dc:creator>Webdevotion</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[binding]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://webdevotion.be/blog/?p=249</guid>
		<description />
			<content:encoded><![CDATA[<p><span class="drop">W</span>hen creating a runtime component to use as a popup I wanted to bind a DateField&#8217;s selectedDate property to a Button label.  Because I never used bindings ( and a labelFunction ) using pure Actionscript before I had to come up with a solution.<br />
<span id="more-249"></span><br />
This is what worked for me:</p>
<p>bt being a Button instance<br />
df being a DateField instance<br />
dateLabelFunction returns a formatted date as a string</p>
<p><code>BindingUtils.bindProperty( bt, "label", df, {name:"selectedDate",getter:function(df:DateField):String{return dateLabelFunction(df.selectedDate)}});</code></p>
<p>What we are doing here is:<br />
- Bind bt.label to df.selectedDate ( that&#8217;s the name:&#8221;selectedDate&#8221; part )<br />
- When retrieving the value of df.selectedDate use the &#8216;getter&#8217; function<br />
- The getter function returns a formatted date string</p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webdevotion?a=WsW9M-YPs0Y:mTMa3ek1Rew:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webdevotion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=WsW9M-YPs0Y:mTMa3ek1Rew:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=WsW9M-YPs0Y:mTMa3ek1Rew:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=WsW9M-YPs0Y:mTMa3ek1Rew:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=WsW9M-YPs0Y:mTMa3ek1Rew:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webdevotion/~4/WsW9M-YPs0Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webdevotion.be/blog/2009/04/20/binding-between-a-datefield-and-a-button-label-at-runtime/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webdevotion.be/blog/2009/04/20/binding-between-a-datefield-and-a-button-label-at-runtime/</feedburner:origLink></item>
		<item>
		<title>Snippet day: last comma becomes “and”</title>
		<link>http://feedproxy.google.com/~r/webdevotion/~3/izvS39Xjd8Y/</link>
		<comments>http://webdevotion.be/blog/2009/04/09/snippet-day-last-comma-becomes-and/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 08:25:40 +0000</pubDate>
		<dc:creator>Webdevotion</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[Air]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[snippet]]></category>

		<guid isPermaLink="false">http://webdevotion.be/blog/?p=243</guid>
		<description />
			<content:encoded><![CDATA[<p><span class="drop">T</span>his little snippet will replace the last comma in a string by the word &#8221; and &#8220;.  Making it more readable for the end user. </p>
<p>In other words: the string &#8220;Other examples are rats, mice,other rodents&#8221; will be converted into &#8220;Other examples are rats, mice and other rodents&#8221;.<br />
<span id="more-243"></span><br />
<code><br />
var a : Array = ["rats","mice","other rodents"];<br />
var s : String = a.toString(); // returns rats,mice,other rodents<br />
var r : RegExp = /,(?![^,]+,)/g; // the magical formula<br />
s = s.replace( r ," and "); // replace the last , with and<br />
trace( s ); // rats, mice and rodents<br />
</code></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webdevotion?a=izvS39Xjd8Y:ndk_eFJjIpE:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webdevotion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=izvS39Xjd8Y:ndk_eFJjIpE:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=izvS39Xjd8Y:ndk_eFJjIpE:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=izvS39Xjd8Y:ndk_eFJjIpE:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=izvS39Xjd8Y:ndk_eFJjIpE:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webdevotion/~4/izvS39Xjd8Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webdevotion.be/blog/2009/04/09/snippet-day-last-comma-becomes-and/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webdevotion.be/blog/2009/04/09/snippet-day-last-comma-becomes-and/</feedburner:origLink></item>
		<item>
		<title>Another job posting for www.mrhenry.be</title>
		<link>http://feedproxy.google.com/~r/webdevotion/~3/CH28iVThVG0/</link>
		<comments>http://webdevotion.be/blog/2009/03/05/web-html-developer-vacature-mrhenry-antwerpen/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 20:10:36 +0000</pubDate>
		<dc:creator>Webdevotion</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[antwerpen]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[mr henry]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[vacature]]></category>

		<guid isPermaLink="false">http://webdevotion.be/blog/?p=240</guid>
		<description />
			<content:encoded><![CDATA[<p><span class="drop">W</span>e have <a href="http://webdevotion.be/blog/2009/02/25/job-opening-at-mr-henry/">another position</a> available at Mr. Henry.<br />
This time we&#8217;re looking out for someone who&#8217;s good with HTML, CSS and JavaScript.</p>
<p>Added bonus points if your also proficient with PHP and / or Ruby on Rails.</p>
<p><a href="http://workingat.mrhenry.be">Go Go Go!</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webdevotion?a=CH28iVThVG0:n2MpZNWpPM4:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webdevotion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=CH28iVThVG0:n2MpZNWpPM4:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=CH28iVThVG0:n2MpZNWpPM4:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=CH28iVThVG0:n2MpZNWpPM4:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=CH28iVThVG0:n2MpZNWpPM4:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webdevotion/~4/CH28iVThVG0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webdevotion.be/blog/2009/03/05/web-html-developer-vacature-mrhenry-antwerpen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webdevotion.be/blog/2009/03/05/web-html-developer-vacature-mrhenry-antwerpen/</feedburner:origLink></item>
		<item>
		<title>Job opening at Mr. Henry</title>
		<link>http://feedproxy.google.com/~r/webdevotion/~3/9OAEQEgNxM4/</link>
		<comments>http://webdevotion.be/blog/2009/02/25/job-opening-at-mr-henry/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 11:01:06 +0000</pubDate>
		<dc:creator>Webdevotion</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[coder]]></category>
		<category><![CDATA[full time]]></category>
		<category><![CDATA[job]]></category>
		<category><![CDATA[on site]]></category>
		<category><![CDATA[position]]></category>
		<category><![CDATA[programmer]]></category>

		<guid isPermaLink="false">http://webdevotion.be/blog/?p=237</guid>
		<description />
			<content:encoded><![CDATA[<p><a href="http://www.mrhenry.be"><span class="drop">W</span>e</a> are looking for a developer for the Flash Platform.  It&#8217;s a full time, on site position for our office in Antwerp.</p>
<p>Get more info on our jobpage: <a href="http://workingat.mrhenry.be/">http://workingat.mrhenry.be/</a></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webdevotion?a=9OAEQEgNxM4:UVaHomWci74:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webdevotion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=9OAEQEgNxM4:UVaHomWci74:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=9OAEQEgNxM4:UVaHomWci74:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=9OAEQEgNxM4:UVaHomWci74:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=9OAEQEgNxM4:UVaHomWci74:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webdevotion/~4/9OAEQEgNxM4" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webdevotion.be/blog/2009/02/25/job-opening-at-mr-henry/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webdevotion.be/blog/2009/02/25/job-opening-at-mr-henry/</feedburner:origLink></item>
		<item>
		<title>How to PUT xml to a REST interface with Basic Authentication</title>
		<link>http://feedproxy.google.com/~r/webdevotion/~3/6NUaunxwuLo/</link>
		<comments>http://webdevotion.be/blog/2008/12/12/how-to-put-xml-to-a-rest-interface-with-basic-authentication/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 12:36:31 +0000</pubDate>
		<dc:creator>Webdevotion</dc:creator>
				<category><![CDATA[Air]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[actionscript 3]]></category>
		<category><![CDATA[assembla]]></category>
		<category><![CDATA[basic auth]]></category>
		<category><![CDATA[headers]]></category>
		<category><![CDATA[httprequest]]></category>
		<category><![CDATA[httpservice]]></category>
		<category><![CDATA[rest]]></category>
		<category><![CDATA[urlloader]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://webdevotion.be/blog/?p=220</guid>
		<description />
			<content:encoded><![CDATA[<p><span class="drop">W</span>ell, this thing got me going for a couple of hours before things worked out.  Using HTTPService did not seem to be the way to go.  Long story short: URLRequest to the rescue!</p>
<p><img src="http://webdevotion.be/blog/wp-content/xml-rest-api.jpg" alt="" title="xml-rest-api"  width="600" class="alignnone size-full wp-image-225" /></p>
<p><span id="more-220"></span><br />
<code><br />
// basic authentication<br />
var encoder : Base64Encoder = new Base64Encoder();<br />
encoder.encode(username + ":" password);<br />
// send xml<br />
var header1:URLRequestHeader = new URLRequestHeader("Content-Type", "application/xml");<br />
// authenticate<br />
var header2:URLRequestHeader = new URLRequestHeader("Authorization", "Basic " + encoder.toString());<br />
// accept xml as response<br />
var header3:URLRequestHeader = new URLRequestHeader("Accept","application/xml");</p>
<p>var request:URLRequest = new URLRequest( urlToRestAPI );<br />
// mmm, maybe not necessary = allready in the headers<br />
request.contentType = "application/xml";<br />
// push the headers in the request<br />
request.requestHeaders.push(header1);<br />
request.requestHeaders.push(header2);<br />
request.requestHeaders.push(header3);</p>
<p>// put your xml in a string: &quot;&lt;ticket&gt;&lt;summary&gt;my summary&lt;/summary&gt;&lt;/ticket&gt;&quot;<br />
// generate an XML instance from the string<br />
var xml : XML = new XML( s );<br />
// put the xml in the request instance<br />
request.data = xml;<br />
// use PUT ( could depend on the API you are using, check the docs )<br />
request.method = "PUT";<br />
// use the loader to send the request<br />
var loader : URLLoader = new URLLoader( null );<br />
// wait for the complete event to do other amazing things<br />
loader.addEventListener(Event.COMPLETE,onTicketUpdated,false,0,true);<br />
// fire in the hole!<br />
loader.load( request );<br />
// take a deep breath and wait a sec<br />
// for the complete event to be triggered<br />
</code></p>
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/webdevotion?a=6NUaunxwuLo:xDYXbTiPx1Y:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/webdevotion?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=6NUaunxwuLo:xDYXbTiPx1Y:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=6NUaunxwuLo:xDYXbTiPx1Y:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/webdevotion?a=6NUaunxwuLo:xDYXbTiPx1Y:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/webdevotion?i=6NUaunxwuLo:xDYXbTiPx1Y:F7zBnMyn0Lo" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/webdevotion/~4/6NUaunxwuLo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://webdevotion.be/blog/2008/12/12/how-to-put-xml-to-a-rest-interface-with-basic-authentication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://webdevotion.be/blog/2008/12/12/how-to-put-xml-to-a-rest-interface-with-basic-authentication/</feedburner:origLink></item>
	</channel>
</rss>
