<?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"
	>

<channel>
	<title>SAAS Business intelligence &#38; Data visualizations&#187; all about Rich Internet Applications. (Flex)</title>
	<atom:link href="http://businessintelligence.me/category/ria/feed" rel="self" type="application/rss+xml" />
	<link>http://businessintelligence.me</link>
	<description>Meet the next generation of data analysis solutions</description>
	<pubDate>Sat, 31 Oct 2009 05:10:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Slicing and dicing 3 millions of rows in a web browser&#8230;</title>
		<link>http://businessintelligence.me/blog_en/ria/slicing-dicing-3-millions-rows-web-browser/</link>
		<comments>http://businessintelligence.me/blog_en/ria/slicing-dicing-3-millions-rows-web-browser/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 06:54:33 +0000</pubDate>
		<dc:creator>wearecloud</dc:creator>
		
		<category><![CDATA[RIA]]></category>

		<category><![CDATA[bime]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[optimization]]></category>

		<guid isPermaLink="false">http://businessintelligence.me/?p=2034</guid>
		<description><![CDATA[
&#8230;well not precisely a web browser. The video below uses the desktop version of Bime, it is an Air Application and it runs the exact same code as the web version. So all you see in this video is possible in the browser. We only used the desktop version to be able to connect directly [...]]]></description>
			<content:encoded><![CDATA[
<p>&#8230;well not precisely a web browser. The video below uses the desktop version of Bime, it is an Air Application and it runs the exact same code as the web version. So all you see in this video is possible in the browser. We only used the desktop version to be able to connect directly to the relational database. With &#8220;déjà vu&#8221;, our distributed cache, deployed in the coming weeks, we&#8217;ll be able to do the exact same test within a true web browser environment.  The test was done on the following configuration:</p>

<ul>
	
<li>standard mac book pro 2Gb of Rams.</li>

	
<li>Database is Sql Server 2005 that runs in a virtual machine on the same machine.</li>

	
<li>3,5 millions of rows. The dataset has dimensions with a pretty low cardinality.</li>

	
<li>We skipped data retrieve time. We use standard JDBC here. However, we have a small performance impact above JDBC as we need to marshal data between Flex and Java.</li>

</ul>

<p>For Flex developers interested in what&#8217;s happening under the wood, we used heavily vectors to build the OLAP engine. It would be impossible to achieve this level of performance with standard Array. We used green thread to optimize the rendering. Merapi is used for the bridge between Java and Air&#8230; </p>

<div class="spacer"></div>

 <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="700" height="525" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="file=http%3A%2F%2Fvideos.bimeapp.com.s3.amazonaws.com%2F3Mrows.f4v&amp;autostart=false&amp;plugins=viral-1d" /><param name="src" value="http://d32p8igxdo0gkd.cloudfront.net/mediaplayer.swf?file=http://d32p8igxdo0gkd.cloudfront.net/3Mrows.f4v&amp;autostart=false" /><embed type="application/x-shockwave-flash" width="700" height="525" src="http://d32p8igxdo0gkd.cloudfront.net/mediaplayer.swf?file=http://d32p8igxdo0gkd.cloudfront.net/3Mrows.f4v&amp;autostart=false" flashvars="file=http%3A%2F%2Fvideos.bimeapp.com.s3.amazonaws.com%2F3Mrows.f4v&amp;autostart=false&amp;plugins=viral-1d"></embed></object>

<div class="sociable">

<ul>
	<li><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fslicing-dicing-3-millions-rows-web-browser%2F&amp;title=Slicing%20and%20dicing%203%20millions%20of%20rows%20in%20a%20web%20browser..." title="Digg"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fslicing-dicing-3-millions-rows-web-browser%2F&amp;title=Slicing%20and%20dicing%203%20millions%20of%20rows%20in%20a%20web%20browser..." title="del.icio.us"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fslicing-dicing-3-millions-rows-web-browser%2F&amp;title=Slicing%20and%20dicing%203%20millions%20of%20rows%20in%20a%20web%20browser..." title="StumbleUpon"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fslicing-dicing-3-millions-rows-web-browser%2F" title="Technorati"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fslicing-dicing-3-millions-rows-web-browser%2F" title="TwitThis"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://businessintelligence.me/blog_en/ria/slicing-dicing-3-millions-rows-web-browser/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Bime in action: French online video audience Dashboard</title>
		<link>http://businessintelligence.me/blog_en/ria/bime-action-french-online-video-audience-dashboard/</link>
		<comments>http://businessintelligence.me/blog_en/ria/bime-action-french-online-video-audience-dashboard/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 09:53:51 +0000</pubDate>
		<dc:creator>rachel</dc:creator>
		
		<category><![CDATA[RIA]]></category>

		<category><![CDATA[business intelligence]]></category>

		<category><![CDATA[data visualization]]></category>

		<category><![CDATA[dashboard]]></category>

		<category><![CDATA[reporting]]></category>

		<guid isPermaLink="false">http://businessintelligence.me/?p=1606</guid>
		<description><![CDATA[
Here is another example of what we can do with Bime to visualize information. This one is about french online video audience for january 2009. Figures have been released by Comscore last month.

French Online Video Audience Grows 16 Percent in the Past Year to 27 Million Viewers in January! See above.

Full screen is here







	
	
	
	
	


]]></description>
			<content:encoded><![CDATA[
<p>Here is another example of what we can do with Bime to visualize information. This one is about french online video audience for january 2009. Figures have been released by <a href="http://www.comscore.com/press/release.asp?press=2747">Comscore</a> last month.</p>

<p>French Online Video Audience Grows 16 Percent in the Past Year to 27 Million Viewers in January! See above.</p>

<p>Full screen is <a href="https://mybigfirm3.paperboyapp.com/players/dashboard/D368819170D528531B72405B9BE94807">here</a></p>

<embed src="https://mybigfirm3.paperboyapp.com/app/PaperboyPlayer.swf" flashvars="id=D368819170D528531B72405B9BE94807&#038;subdomain=mybigfirm3" width="700" height="600" allowFullScreen="true" type="application/x-shockwave-flash"></embed>


<div class="sociable">

<ul>
	<li><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fbime-action-french-online-video-audience-dashboard%2F&amp;title=Bime%20in%20action%3A%20French%20online%20video%20audience%20Dashboard" title="Digg"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fbime-action-french-online-video-audience-dashboard%2F&amp;title=Bime%20in%20action%3A%20French%20online%20video%20audience%20Dashboard" title="del.icio.us"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fbime-action-french-online-video-audience-dashboard%2F&amp;title=Bime%20in%20action%3A%20French%20online%20video%20audience%20Dashboard" title="StumbleUpon"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fbime-action-french-online-video-audience-dashboard%2F" title="Technorati"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fbime-action-french-online-video-audience-dashboard%2F" title="TwitThis"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://businessintelligence.me/blog_en/ria/bime-action-french-online-video-audience-dashboard/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to compile a Flex project with RSL using Ant</title>
		<link>http://businessintelligence.me/blog_en/ria/rsl-compile-flex-project-ant/</link>
		<comments>http://businessintelligence.me/blog_en/ria/rsl-compile-flex-project-ant/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 21:33:38 +0000</pubDate>
		<dc:creator>Yannick Chaze</dc:creator>
		
		<category><![CDATA[RIA]]></category>

		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://businessintelligence.me/?p=1397</guid>
		<description><![CDATA[
Recently, we had to write an Ant script to build our application and put it under continuous integration. At the beginning, we passed the minimum arguments to the compiler to build the SWF file and it compiled the project, including the framework classes, in the application SWF file.



So, how to use RSL winthin an ant [...]]]></description>
			<content:encoded><![CDATA[
<p>Recently, we had to write an Ant script to build our application and put it under continuous integration. At the beginning, we passed the minimum arguments to the compiler to build the SWF file and it compiled the project, including the framework classes, in the application SWF file.</p>

<div class="spacer"></div>

<p>So, how to use RSL winthin an ant script to reduce the size of the swf result file ?</p>

<div class="spacer"></div>

<p>Firs of all, you have to use a configuration file witch specifies a lots of information to the compiler about your application like the name, the player version, etc. So, you can create your own configuration file and specify all the informations needed. A sample of the file is in the flex sdk named &#8220;flex-config.xml&#8221;. Inside this file, you can write a tag <code>runtime-shared-library-path</code> witch specify the SWC file you want to use as an RSL.

<div class="spacer"></div>

An example of the config file may be:

<div class="spacer"></div>

&nbsp;<code>&lt;flex-config&gt;<br />
&nbsp;&nbsp;&nbsp; &lt;compiler&gt; <br />
&nbsp;&nbsp;&nbsp; &#8230; <br />
&nbsp;&nbsp;&nbsp; &lt;/compiler&gt;<br />
&nbsp;&nbsp;&nbsp;
&lt;runtime-shared-library-path&gt;
<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;path-element&gt;libs/framework.swc&lt;/path-element&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
&nbsp;&lt;rsl-url&gt;framework_3.2.0.3958.swz&lt;/rsl-url&gt;
<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;policy-file-url&gt;&lt;/policy-file-url&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
&nbsp;&lt;rsl-url&gt;framework_3.2.0.3958.swf&lt;/rsl-url&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;policy-file-url&gt;&lt;/policy-file-url&gt;<br />
&nbsp;&nbsp;&nbsp;
&lt;/runtime-shared-library-path&gt;<br />
&nbsp;&nbsp;&nbsp;&nbsp;&#8230;
<br />
&lt;/flex-config&gt;</code>

<div class="spacer"></div>

The <code>&lt;path-element&gt; </code>tag is the relative path to the library file, the <code>&lt;rsl-url&gt;</code> is the relative url of the RSL relatively to the root server path and the <code>&lt;policy-file-url&gt; </code> is the relative URL for the crossdomain.xml file. If not specify, flash will try to find it at the root of the server. 

<div class="spacer"></div>

Now we can use this file in our ant task as a config file for the compiler. Therefore, the compiler will create correct links to the RSL in the project SWF file.

<div class="spacer"></div>

This is a sample how to use the config file:

<div class="spacer"></div>

<code>&lt;mxmlc file="..." &gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#8230;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
&lt;load-config filename=&#8221;${basedir}/flex-config.xml&#8221;/&gt;<br />
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &#8230;<br />
&lt;/mxmlc&gt;</code>

<div class="spacer"></div>

<p>After the build, the SWF file of the project is smaller than before and you have just to put the framework.swz and framework.swf file at the correct location on the server to use them as Runtime Shared Libraries !</p>


<div class="sociable">

<ul>
	<li><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Frsl-compile-flex-project-ant%2F&amp;title=How%20to%20compile%20a%20Flex%20project%20with%20RSL%20using%20Ant" title="Digg"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Frsl-compile-flex-project-ant%2F&amp;title=How%20to%20compile%20a%20Flex%20project%20with%20RSL%20using%20Ant" title="del.icio.us"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Frsl-compile-flex-project-ant%2F&amp;title=How%20to%20compile%20a%20Flex%20project%20with%20RSL%20using%20Ant" title="StumbleUpon"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Frsl-compile-flex-project-ant%2F" title="Technorati"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Frsl-compile-flex-project-ant%2F" title="TwitThis"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://businessintelligence.me/blog_en/ria/rsl-compile-flex-project-ant/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Introducing a Flex Charting trend line component</title>
		<link>http://businessintelligence.me/blog_en/ria/draw-trend-lines-flex-charts/</link>
		<comments>http://businessintelligence.me/blog_en/ria/draw-trend-lines-flex-charts/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 07:56:28 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
		
		<category><![CDATA[RIA]]></category>

		<category><![CDATA[charting]]></category>

		<category><![CDATA[data visualization]]></category>

		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://businessintelligence.me/?p=1236</guid>
		<description><![CDATA[
How to draw trend lines on Flex Charts? Actually, you just have to add the trendline drawer component on the annotation section of your charts.




&#60;chartsExtention:ColoredAndSizedColumnChart id=&#34;chart&#34; width=&#34;100%&#34; height=&#34;100%&#34;&#62;
  &#60;chartsExtention:annotationElements&#62;
	&#60;DataCanvas:TrendCartesianDataCanvas id=&#34;trendCanvas&#34; includeInRanges=&#34;true&#34;/&#62;
   &#60;/chartsExtention:annotationElements&#62;
...


Now you can call method like drawLinearTrend() or drawPolynomialTrend(). It&#8217;s that easy and should work with all cartesian charts (column / [...]]]></description>
			<content:encoded><![CDATA[
<p>How to draw trend lines on Flex Charts? Actually, you just have to add the trendline drawer component</a> on the annotation section of your charts.</p>

<div class="spacer"></div>


<div class="wp_syntax"><div class="code"><pre class="ruby ruby" style="font-family:monospace;color: #ffffff;font-family: Monaco,"Andale Mono","Lucida Console","Bitstream Vera Sans Mono","Courier New",monospace;font-size: 14px;"><span style="color:#006600; font-weight:bold;color: #6BCFF7;">&lt;</span>chartsExtention:ColoredAndSizedColumnChart id=<span style="color:#996600;color: #99FF00;">&quot;chart&quot;</span> width=<span style="color:#996600;color: #99FF00;">&quot;100%&quot;</span> height=<span style="color:#996600;color: #99FF00;">&quot;100%&quot;</span><span style="color:#006600; font-weight:bold;color: #6BCFF7;">&gt;</span>
  <span style="color:#006600; font-weight:bold;color: #6BCFF7;">&lt;</span>chartsExtention:annotationElements<span style="color:#006600; font-weight:bold;color: #6BCFF7;">&gt;</span>
	<span style="color:#006600; font-weight:bold;color: #6BCFF7;">&lt;</span>DataCanvas:TrendCartesianDataCanvas id=<span style="color:#996600;color: #99FF00;">&quot;trendCanvas&quot;</span> includeInRanges=<span style="color:#996600;color: #99FF00;">&quot;true&quot;</span><span style="color:#006600; font-weight:bold;color: #6BCFF7;">/&gt;</span>
   <span style="color:#006600; font-weight:bold;color: #6BCFF7;">&lt;/</span>chartsExtention:annotationElements<span style="color:#006600; font-weight:bold;color: #6BCFF7;">&gt;</span>
...</pre></div></div>


<p>Now you can call method like drawLinearTrend() or drawPolynomialTrend(). It&#8217;s that easy and should work with all cartesian charts (column / bar / plot etc&#8230;) without extra work.</p>

 

<p>Have a look <a href="http://businessintelligence.me/projects/trendLineDrawer/TrendLineDrawer.html">here</a> for a demo. View source enabled. </p>

<p>Let us know for any trouble. Huge credits to the <a href="http://code.google.com/p/as3mathlib/">as3mathlib</a> for the maths. </p>

<p>We don&#8217;t stop to add features like this in Bime so if you are interested in, register above to the Beta. It should come very soon: jump on the bandwagon!</p>


<div class="sociable">

<ul>
	<li><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fdraw-trend-lines-flex-charts%2F&amp;title=Introducing%20a%20Flex%20Charting%20trend%20line%20component" title="Digg"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fdraw-trend-lines-flex-charts%2F&amp;title=Introducing%20a%20Flex%20Charting%20trend%20line%20component" title="del.icio.us"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fdraw-trend-lines-flex-charts%2F&amp;title=Introducing%20a%20Flex%20Charting%20trend%20line%20component" title="StumbleUpon"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fdraw-trend-lines-flex-charts%2F" title="Technorati"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fdraw-trend-lines-flex-charts%2F" title="TwitThis"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://businessintelligence.me/blog_en/ria/draw-trend-lines-flex-charts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A richer Flex Charting Framework</title>
		<link>http://businessintelligence.me/blog_en/ria/richer-flex-charting-framework/</link>
		<comments>http://businessintelligence.me/blog_en/ria/richer-flex-charting-framework/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 16:11:35 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
		
		<category><![CDATA[RIA]]></category>

		<category><![CDATA[data visualization]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[info visualization]]></category>

		<guid isPermaLink="false">http://businessintelligence.me/?p=1211</guid>
		<description><![CDATA[
I spent last week to extract and cleanup the extensions of the flex charting framework we did for Bime.

Design goals were to:

1) add more encoding variables to the standard charts: size, color and shape are used to convey more meaning to visualizations.

2) charts should be as easy to use as the flex ones and require [...]]]></description>
			<content:encoded><![CDATA[
<p>I spent last week to extract and cleanup the extensions of the flex charting framework we did for <a href="http://businessintelligence.me">Bime</a>.</p>

<p>Design goals were to:</p>

<p>1) add more encoding variables to the standard charts: size, color and shape are used to convey more meaning to visualizations.</p>

<p>2) charts should be as easy to use as the flex ones and require no extra work.</p>

<p> Click on the image below to see some sample (but be warned that it is just technical examples:  axis are not properly formated, titles are missing etc&#8230;)</p>

<div class="spacer"></div>

<a href="http://businessintelligence.me/projects/chart_extentions/app.html"><img class="alignnone size-full wp-image-1212" title="plot chart with a lot dimension encoded" src="http://businessintelligence.me/wp-content/uploads/2009/01/image-3.png" alt="A richer Flex Charting Framework" width="500" height="486" /></a>

<p>We used extensively <a href="http://degrafa.org">degrafa</a>. Almost all data renderers are rewritten using it. Thanks to the <a href="http://degrafa.org/about/">degrafa team</a> for the good work. We only scratched the surface and it opens already a lot of opportunities for innovations in the data visualization field. We also used examples written by <a href="http://www.quietlyscheming.com">Ely Greenfield</a>. Once again, I can&#8217;t imagine doing this kind of work without Flex being open source.</p>

<p><a href="http://businessintelligence.me">Bime</a> will help end users to create easily this type of visualization (+ treemap, sparkline etc&#8230;) on the fly. With a simple drag and drop user interface, they&#8217;ll be able to visually analyze their data from almost anywhere: web services, cloud databases, relational databases, spreadsheets&#8230;</p>

<p>If we see some interest, we plan to open source these extensions soon after the official launch of bime in March. So, if you are interested drop us a line in a comment below!</p>


<div class="sociable">

<ul>
	<li><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fricher-flex-charting-framework%2F&amp;title=A%20richer%20Flex%20Charting%20Framework" title="Digg"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fricher-flex-charting-framework%2F&amp;title=A%20richer%20Flex%20Charting%20Framework" title="del.icio.us"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fricher-flex-charting-framework%2F&amp;title=A%20richer%20Flex%20Charting%20Framework" title="StumbleUpon"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fricher-flex-charting-framework%2F" title="Technorati"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fricher-flex-charting-framework%2F" title="TwitThis"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://businessintelligence.me/blog_en/ria/richer-flex-charting-framework/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Stealing Gumbo&#8217;s templates: the fastest way to use SWFObject to embed all your flex 3 apps</title>
		<link>http://businessintelligence.me/blog_en/ria/swfobject-flex-app-stealing-gumbo-template/</link>
		<comments>http://businessintelligence.me/blog_en/ria/swfobject-flex-app-stealing-gumbo-template/#comments</comments>
		<pubDate>Fri, 19 Dec 2008 12:32:14 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
		
		<category><![CDATA[RIA]]></category>

		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://businessintelligence.me/?p=1045</guid>
		<description><![CDATA[
Do you want to know the fastest way to use SWFObject to embed all your flex 3 apps? We have a solution that takes 30 seconds. But before&#8230;



Why?

Try to validate your default flex 3 html wrapper against this validator. You should get a bunch of errors. For the full rational look at here and at [...]]]></description>
			<content:encoded><![CDATA[
<p>Do you want to know the fastest way to use <a href="http://code.google.com/p/swfobject/">SWFObject</a> to embed all your flex 3 apps? We have a solution that takes 30 seconds. But before&#8230;</p>

<div class="spacer"></div>

<h3>Why?</h3>

<p>Try to validate your default flex 3 html wrapper against <a href="http://validator.w3.org/">this validator</a>. You should get a bunch of errors. For the full rational look at <a href="http://blog.deconcept.com/swfobject/#whyitsbetter">here</a> and at <a href="http://www.onflex.org/ted/archive/2008_10_01_archive.php">Ted Patrick.</a></p>

<div class="spacer"></div>

<a href="http://www.amazon.com/Sly-Honor-Among-Thieves-Playstation-2/dp/B0009F3E1I/ref=pd_bbs_sr_2?ie=UTF8&#038;s=videogames&#038;qid=1229509568&#038;sr=8-2"><img src="http://businessintelligence.me/wp-content/uploads/2008/12/sly09-300x226.jpg" alt="Stealing Gumbos templates: the fastest way to use SWFObject to embed all your flex 3 apps" title="sly09" width="300" height="226" class="alignnone size-medium wp-image-1106" /></a>

<div class="spacer"></div>

<h3>How?</h3>

<p>Gumbo, Flex 4, will include templates based on SWFObject. Steal them and use them today!</p>

<p>1) Download Gumbo SDK <a href="http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4">here</a>. Choose the latest milestone release and the Open Source Flex SDK (the small one).</p>

<p>2) Look for a &#8220;templates&#8221; folder in the unziped directory. Copy it. 10 seconds&#8230;</p>

<p>3) Go to your SDK home. On Mac os: Applications > Adobe Flex Builder 3 (plug-in) > sdks > 3.x.x . Rename the &#8220;templates&#8221; directory as &#8220;templates bak&#8221;. Paste the new one. 20 seconds&#8230;</p>

<p>4) Open Flex Builder / Eclipse. Force the refresh by making a change on the project settings of the html wrapper. Build. 30 seconds: you are done.</p>

<p>By the way, validate your new page against <a href="http://validator.w3.org/">the validator</a>. Woow, no error. Thanks Gumbo.</p>

<p>Disclaimer: I didn&#8217;t test extensively with history enabled. But we use that for our main app and some projects for several weeks and so far it works great. Let me know if you face any trouble.</p>

<div class="super_spacer"></div>


<div class="sociable">

<ul>
	<li><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fswfobject-flex-app-stealing-gumbo-template%2F&amp;title=Stealing%20Gumbo%27s%20templates%3A%20the%20fastest%20way%20to%20use%20SWFObject%20to%20embed%20all%20your%20flex%203%20apps" title="Digg"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fswfobject-flex-app-stealing-gumbo-template%2F&amp;title=Stealing%20Gumbo%27s%20templates%3A%20the%20fastest%20way%20to%20use%20SWFObject%20to%20embed%20all%20your%20flex%203%20apps" title="del.icio.us"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fswfobject-flex-app-stealing-gumbo-template%2F&amp;title=Stealing%20Gumbo%27s%20templates%3A%20the%20fastest%20way%20to%20use%20SWFObject%20to%20embed%20all%20your%20flex%203%20apps" title="StumbleUpon"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fswfobject-flex-app-stealing-gumbo-template%2F" title="Technorati"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fswfobject-flex-app-stealing-gumbo-template%2F" title="TwitThis"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://businessintelligence.me/blog_en/ria/swfobject-flex-app-stealing-gumbo-template/feed/</wfw:commentRss>
		</item>
		<item>
		<title>AS3 performance tester weekly update</title>
		<link>http://businessintelligence.me/blog_en/ria/as3-performance-tester-weekly-update/</link>
		<comments>http://businessintelligence.me/blog_en/ria/as3-performance-tester-weekly-update/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 07:18:25 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
		
		<category><![CDATA[RIA]]></category>

		<guid isPermaLink="false">http://businessintelligence.me/?p=1069</guid>
		<description><![CDATA[
The pitch: don&#8217;t guess anymore. Finaly, discover the fastest way of doing things in ActionScript. This update contains performance tests for:

* flash player 10&#8217;s vectors (only indexing for now)

* instantiation of Array, Object, Vector and (very expensive) ArrayCollection 

* different type of loop

and more!







It&#8217;s important to remember to always take this benchmark with a grain [...]]]></description>
			<content:encoded><![CDATA[
<p>The pitch: don&#8217;t guess anymore. Finaly, discover the fastest way of doing things in ActionScript. This update contains performance tests for:</p>

<p>* flash player 10&#8217;s vectors (only indexing for now)</p>

<p>* instantiation of Array, Object, Vector and (very expensive) ArrayCollection </p>

<p>* different type of loop</p>

<p>and more!</p>

<div class="spacer"></div>

<a href="http://businessintelligence.me/projects/performance_tester/performanceTester.html"><img src="http://businessintelligence.me/wp-content/uploads/2008/12/performance_tester2.png" alt="we are cloud performance tester" title="performance_tester2" width="700" height="469" class="alignnone size-full wp-image-959" /></a>

<div class="spacer"></div>

<p>It&#8217;s important to remember to always take this benchmark with a grain of salt. That said, if you feel the benchmarks being tested are lame, feel free to contribute to code on <a href="http://github.com/nicolas/as3-performance--tester/tree/master">github</a>. Also, I used a lot of blog posts written by others to do this. Even if there are some comments in the source code, it lacks  some proper credits. Sorry about that guys but justice will be done in the next update.</p>

<div class="spacer"></div>

<p><a href="http://businessintelligence.me/projects/performance_tester/performanceTester.html">the application</a></p>

<p><a href="http://github.com/nicolas/as3-performance--tester/tree/master">the source</a></p>

<p><a href="http://wac.lighthouseapp.com/projects/21165-as3-performance-explorer/overview">the lighthouse project</a></p>


<div class="sociable">

<ul>
	<li><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fas3-performance-tester-weekly-update%2F&amp;title=AS3%20performance%20tester%20weekly%20update" title="Digg"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fas3-performance-tester-weekly-update%2F&amp;title=AS3%20performance%20tester%20weekly%20update" title="del.icio.us"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fas3-performance-tester-weekly-update%2F&amp;title=AS3%20performance%20tester%20weekly%20update" title="StumbleUpon"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fas3-performance-tester-weekly-update%2F" title="Technorati"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fas3-performance-tester-weekly-update%2F" title="TwitThis"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://businessintelligence.me/blog_en/ria/as3-performance-tester-weekly-update/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Optimize your Flex / Flash app with the AS3 performance explorer</title>
		<link>http://businessintelligence.me/blog_en/ria/optimize-flex-flash-app-as3-performance-explorer/</link>
		<comments>http://businessintelligence.me/blog_en/ria/optimize-flex-flash-app-as3-performance-explorer/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 18:35:37 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
		
		<category><![CDATA[RIA]]></category>

		<category><![CDATA[as3]]></category>

		<category><![CDATA[flex]]></category>

		<category><![CDATA[optimization]]></category>

		<guid isPermaLink="false">http://businessintelligence.me/?p=935</guid>
		<description><![CDATA[
For one week, Lucy and Martim are changing the algorithm used to calculate the OLAP cube in bime. In this task, performance is everything as the same line of code can be executed millions of times.



To help us, we build an application, open source (MIT), the &#8220;AS3 performance tester&#8221;, that takes some operations (such as [...]]]></description>
			<content:encoded><![CDATA[
<p>For one week, Lucy and Martim are changing the algorithm used to calculate the OLAP cube in <a href='http://businessintelligence.me'>bime</a>. In this task, performance is everything as the same line of code can be executed millions of times.</p>

<div class="spacer"></div>

<p>To help us, we build an application, open source (MIT), the &#8220;AS3 performance tester&#8221;, that takes some operations (such as incrementing a variable) and measure the time consumed by the different options you can use to achieve the operation.</p>

<div class="spacer"></div>

<a href="http://businessintelligence.me/projects/performance_tester/performanceTester.html"><img src="http://businessintelligence.me/wp-content/uploads/2008/12/performance_tester2.png" alt="we are cloud performance tester" title="performance_tester2" width="700" height="469" class="alignnone size-full wp-image-959" /></a>

<div class="spacer"></div>

<p>There are a lot of resources on the web about AS3 performance but none seem to embrace the whole problem. Enter the AS3 performance tester. With it, we are trying to build a comprehensive tool that demonstrates (with tests) which syntax for a particular task is the most performant in AS3.</p>

<div class="spacer"></div>

<p>But first things first with the usuals:</p>

<blockquote>More Computing sins are committed in the name of efficiency than any other reason including blind stupidity”–W.A. Wulf </blockquote>

<blockquote>“Premature Optimization is the root of all evil.”-Hoare and Knuth </blockquote>

<blockquote>“Bottlenecks occur in surprising places, so don’t try to second guess and 
put in a speed hack until you have proven that’s where the bottleneck is.”- 
Rob Pike</blockquote>

<p>Nevertheless, here we talk of the basic of the AS3 language. Things you do in your everyday programming. Do you know the faster way to loop over an array ? Do you know that division is slower than multiplication and slower than bitwise operations ?</p>

<div class="spacer"></div>

<p>Most of the time, to provide accurate metrics, we loop on the operation a number of times and we calculate the mean. This application will evolve to include more robust tests.</p>

<p>We also used the <a href="http://www.riaone.com/products/deval/index.html">D.eval</a> library to allow the user to enter 2 scripts and compare performance on the fly. It uses a kind of eval() function so the code is <strong>much slower</strong> than actual compiled code. Nevertheless, our tests, so far, show that the proportions are right: a script slower with the eval() will be slower when compiled. Nevertheless, we mark this feature as highly experimental as my understanding of what the D.eval do can give improper results.</p>

<div class="spacer"></div>

<p><a href="http://businessintelligence.me/projects/performance_tester/performanceTester.html">the application</a></p>

<p><a href="http://github.com/nicolas/as3-performance--tester/tree/master">the source</a></p>

<p><a href="http://wac.lighthouseapp.com/projects/21165-as3-performance-explorer/overview">the lighthouse project</a></p>


<div class="sociable">

<ul>
	<li><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Foptimize-flex-flash-app-as3-performance-explorer%2F&amp;title=Optimize%20your%20Flex%20%2F%20Flash%20app%20with%20the%20AS3%20performance%20explorer" title="Digg"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Foptimize-flex-flash-app-as3-performance-explorer%2F&amp;title=Optimize%20your%20Flex%20%2F%20Flash%20app%20with%20the%20AS3%20performance%20explorer" title="del.icio.us"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Foptimize-flex-flash-app-as3-performance-explorer%2F&amp;title=Optimize%20your%20Flex%20%2F%20Flash%20app%20with%20the%20AS3%20performance%20explorer" title="StumbleUpon"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Foptimize-flex-flash-app-as3-performance-explorer%2F" title="Technorati"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Foptimize-flex-flash-app-as3-performance-explorer%2F" title="TwitThis"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://businessintelligence.me/blog_en/ria/optimize-flex-flash-app-as3-performance-explorer/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Streaming video from Amazon S3 to a Flex application</title>
		<link>http://businessintelligence.me/blog_en/ria/streaming-video-amazon-s3-flex/</link>
		<comments>http://businessintelligence.me/blog_en/ria/streaming-video-amazon-s3-flex/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 18:35:46 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
		
		<category><![CDATA[RIA]]></category>

		<category><![CDATA[amazon s3]]></category>

		<category><![CDATA[cloud computing]]></category>

		<category><![CDATA[flex]]></category>

		<guid isPermaLink="false">http://businessintelligence.me/?p=471</guid>
		<description><![CDATA[
Let&#8217;s say, you want to stream videos into your RIA (Flex or Silverlight). Indeed, with that in your toolkit you can deliver crazy contextual video tutorials or build the latest youtube on steroid. Nevertheless, you should face many problems involving crossdomain security, more servers to manage, deployment issues etc&#8230; Hopefully, we have a simple solution [...]]]></description>
			<content:encoded><![CDATA[
<p>Let&#8217;s say, you want to stream videos into your RIA (Flex or Silverlight). Indeed, with that in your toolkit you can deliver crazy contextual video tutorials or build the latest youtube on steroid. Nevertheless, you should face many problems involving crossdomain security, more servers to manage, deployment issues etc&#8230; Hopefully, we have a simple solution for you.</p>

<div class="spacer"></div>

<h3>Solution 1: the wrong way</h3>

<p>You take care of hosting the videos file on a server behind the same domain you served your RIA application. This is important because you can&#8217;t stream videos (or anything for that it matters) from <a href="http://www.adobe.com/products/flashplayer/security/">another domain</a> unless it has a liberal crossdomain.xml file in the root or unless you proxy request (a pain). Forget YouTube, Vimeo and any major video delivering solution.
</p>

<p><strong>Problems</strong>: all rely in the solution= &#8220;you need to take care of the files&#8221;. Here come a bunch of problems: files are most of the time pretty big. You will need to back them up, you can&#8217;t check them in your source control or they slow down your deploy to a new server and explode your repository size, you can, of course, host them on a separate server but, hey, it&#8217;s a new server to manage etc&#8230;</p>

<div class="spacer"></div>

<h3>Solution 2: the easy way</h3>

<p>You can simply put your videos (and all your static files by the way) on Amazon S3. I hear your inner geek: &#8220;but Amazon S3 don&#8217;t have a a liberal crossdomain.xml file!&#8221;. Yes but they have <a href="http://docs.amazonwebservices.com/AmazonS3/2006-03-01/index.html?UsingBucket.html">virtual hosting of bucket</a>. It means you can have a cname that points to S3 in your domain.</p>

<p>For example: videos.wearecloud.com can point  to a S3 bucket available at videos.wearecloud.com.s3.amazonaws.com. For the Flashplayer it is exactly the same domain that served the RIA application, hence no security error. For you, it is a whole new world of easy video streaming in your RIA with nothing to worry about.</p>

<div class="spacer"></div>

<h3>The steps</h3>

<p>1) Create a bucket that matches the hostname you want. Let&#8217;s say &#8220;videos.wearecloud.com&#8221;</p>

<p>2) Create a CNAME on your domain like that:</p>

<p>videos.wearecloud.com CNAME videos.wearecloud.com.s3.amazonaws.com
<p>nota: the exact process depends of your DNS hosting but it should be pretty easy and, in general, involves a DNS zone file.</p>

<p>That&#8217;s it. In your Flex app you can:</p>


<div class="wp_syntax"><div class="code"><pre class="ruby ruby" style="font-family:monospace;color: #ffffff;font-family: Monaco,"Andale Mono","Lucida Console","Bitstream Vera Sans Mono","Courier New",monospace;font-size: 14px;"><span style="color:#006600; font-weight:bold;color: #6BCFF7;">&lt;</span>mx:VideoDisplay autoPlay=<span style="color:#996600;color: #99FF00;">&quot;true&quot;</span>  source=<span style="color:#996600;color: #99FF00;">&quot;http://videos.wearecloud.com/yourvideo.flv&quot;</span> <span style="color:#006600; font-weight:bold;color: #6BCFF7;">/&gt;</span></pre></div></div>


<h3>Going further</h3>

<p>On the performance side, we are so far pretty happy with this solution. But let&#8217;s face it: it is not yet as fast as with a <a href="http://en.wikipedia.org/wiki/Adobe_Flash_Media_Server">FMS</a> in the basement. Nevertheless, amazon annouced a few weeks ago <a href=https://aws.amazon.com/cloudfront/">CloudFront</a>, that is basically a <a href="http://en.wikipedia.org/wiki/Content_Delivery_Network">Content Delivery Network (CDN)</a> on top of S3. An simple API call make your bucket redundant across the globe for faster delivery.</p>

 
<p>We didn&#8217;t test this yet, but it should be an effective way to speed up the solution. Let us know if you test this out or if you have any trouble with the steps above.</p>


<div class="sociable">

<ul>
	<li><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fstreaming-video-amazon-s3-flex%2F&amp;title=Streaming%20video%20from%20Amazon%20S3%20to%20a%20Flex%20application" title="Digg"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fstreaming-video-amazon-s3-flex%2F&amp;title=Streaming%20video%20from%20Amazon%20S3%20to%20a%20Flex%20application" title="del.icio.us"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fstreaming-video-amazon-s3-flex%2F&amp;title=Streaming%20video%20from%20Amazon%20S3%20to%20a%20Flex%20application" title="StumbleUpon"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fstreaming-video-amazon-s3-flex%2F" title="Technorati"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fstreaming-video-amazon-s3-flex%2F" title="TwitThis"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://businessintelligence.me/blog_en/ria/streaming-video-amazon-s3-flex/feed/</wfw:commentRss>
		</item>
		<item>
		<title>DataTube: how to broadcast data with a RIA</title>
		<link>http://businessintelligence.me/blog_en/ria/datatube/</link>
		<comments>http://businessintelligence.me/blog_en/ria/datatube/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 13:49:15 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
		
		<category><![CDATA[RIA]]></category>

		<guid isPermaLink="false">http://businessintelligence.me/?p=792</guid>
		<description><![CDATA[This is the first Paperboy bime&#8217;s dashboard ever published on the Internet:



Some benefits (except it is _very_ easy to produce):

* it is dynamic, if data is updated in the source, the dashboard will reflect the changes.

* it is dynamic, if you click on a window&#8217;s header, it will zoom on a part of the dashboard. [...]]]></description>
			<content:encoded><![CDATA[This is the first <del datetime="2008-12-07T08:24:16+00:00">Paperboy</del> bime&#8217;s dashboard ever published on the Internet:

<div><embed type="application/x-shockwave-flash" width="750" height="600" src="https://toto9.paperboyapp.com/app/PaperboyPlayer.swf" flashvars="id=E932416D0A6E645C0CCB3C6A3E324030&amp;subdomain=toto9" allowfullscreen="true"></embed>

<p>Some benefits (except it is _very_ easy to produce):</p>

<p>* it is dynamic, if data is updated in the source, the dashboard will reflect the changes.</p>

<p>* it is dynamic, if you click on a window&#8217;s header, it will zoom on a part of the dashboard. You can play with data series, too. You can leave comments in visualizations, highlight legends&#8230;</p>

<p>* know what ? it is dynamic if you modify this dashboard in Paperboy, you will see changes in each place where it is published.</p>

<p>I can&#8217;t wait to see those dashboards everywhere on the web!
</div>


<div class="sociable">

<ul>
	<li><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fdatatube%2F&amp;title=DataTube%3A%20how%20to%20broadcast%20data%20with%20a%20RIA" title="Digg"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://del.icio.us/post?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fdatatube%2F&amp;title=DataTube%3A%20how%20to%20broadcast%20data%20with%20a%20RIA" title="del.icio.us"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fdatatube%2F&amp;title=DataTube%3A%20how%20to%20broadcast%20data%20with%20a%20RIA" title="StumbleUpon"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fdatatube%2F" title="Technorati"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://twitter.com/home?status=http%3A%2F%2Fbusinessintelligence.me%2Fblog_en%2Fria%2Fdatatube%2F" title="TwitThis"><img src="http://businessintelligence.me/wp-content/plugins/sociable/images/twitter.gif" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://businessintelligence.me/blog_en/ria/datatube/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 2.415 seconds -->
<!-- Cached page generated by WP-Super-Cache on 2009-11-14 11:13:13 -->
