<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Michenux</title>
	<atom:link href="http://www.michenux.net/feed" rel="self" type="application/rss+xml" />
	<link>http://www.michenux.net</link>
	<description></description>
	<lastBuildDate>Mon, 14 May 2012 21:16:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Splash screen for your android application using fragment activity, rotation working</title>
		<link>http://www.michenux.net/splashscreen-android-221.html</link>
		<comments>http://www.michenux.net/splashscreen-android-221.html#comments</comments>
		<pubDate>Mon, 14 May 2012 20:56:35 +0000</pubDate>
		<dc:creator>Michenux</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[rotate]]></category>
		<category><![CDATA[rotation]]></category>
		<category><![CDATA[splash screen]]></category>

		<guid isPermaLink="false">http://www.michenux.net/?p=221</guid>
		<description><![CDATA[Hi, here the way i found to make a splashscreen for my android application. First thing to note is that rotation works. I use a FragmentActivitiy so you need the android support compatibility jar. I didnot used a dialog : the splashScreen is an activity that launches the main activity after application initialization which is [...]]]></description>
			<content:encoded><![CDATA[<p><strong>
<a href="http://www.michenux.net/wp-content/gallery/android/android-256.png" title="" class="shutterset_singlepic12" >
	<img class="ngg-singlepic ngg-left" src="http://www.michenux.net/wp-content/gallery/cache/12__85x85_android-256.png" alt="android-256" title="android-256" />
</a>
</strong>Hi, here the way i found to make a splashscreen for my android application. First thing to note is that rotation works. I use a FragmentActivitiy so you need the android support compatibility jar. I didnot used a dialog : the splashScreen is an activity that launches the main activity after application initialization which is done in a handler. Last thing about my code: i use the library RoboGuice for IOC.</p>
<p style="text-align: left;">Here the result:</p>
<p style="text-align: center;">
<a href="http://www.michenux.net/wp-content/gallery/android/splashscreen.png" title="" class="shutterset_singlepic13" >
	<img class="ngg-singlepic" src="http://www.michenux.net/wp-content/gallery/cache/13__2113x350_splashscreen.png" alt="splashscreen" title="splashscreen" />
</a>
</p>
<p>Let&#8217;s start: the two activities in the AndroidManifest.xml :</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;activity</span></span><br />
<span style="color: #009900;"> &nbsp;<span style="color: #000066;">android:name</span>=<span style="color: #ff0000;">&quot;.activity.SplashScreenActivity&quot;</span></span><br />
<span style="color: #009900;"> &nbsp;<span style="color: #000066;">android:label</span>=<span style="color: #ff0000;">&quot;@string/app_name&quot;</span></span><br />
<span style="color: #009900;"> &nbsp;<span style="color: #000066;">android:theme</span>=<span style="color: #ff0000;">&quot;@style/Theme.Splash&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;intent-filter<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;action</span> <span style="color: #000066;">android:name</span>=<span style="color: #ff0000;">&quot;android.intent.action.MAIN&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;category</span> <span style="color: #000066;">android:name</span>=<span style="color: #ff0000;">&quot;android.intent.category.LAUNCHER&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/intent-filter<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/activity<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;activity</span></span><br />
<span style="color: #009900;"> &nbsp;<span style="color: #000066;">android:name</span>=<span style="color: #ff0000;">&quot;.activity.DemoProjectActivity&quot;</span></span><br />
<span style="color: #009900;"> &nbsp;<span style="color: #000066;">android:label</span>=<span style="color: #ff0000;">&quot;@string/app_name&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/activity<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>Then, the splash screen activity:</p>
<div class="codecolorer-container java default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="java codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">@ContentView<span style="color: #009900;">&#40;</span>R.<span style="color: #006633;">layout</span>.<span style="color: #006633;">splashscreen</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000000; font-weight: bold;">class</span> SplashScreenActivity <span style="color: #000000; font-weight: bold;">extends</span> RoboFragmentActivity <span style="color: #009900;">&#123;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">protected</span> MyStateSaver data<span style="color: #339933;">;</span><br />
<br />
@Override<br />
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> onCreate<span style="color: #009900;">&#40;</span>Bundle savedInstanceState<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">super</span>.<span style="color: #006633;">onCreate</span><span style="color: #009900;">&#40;</span>savedInstanceState<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">data</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>MyStateSaver<span style="color: #009900;">&#41;</span> getLastCustomNonConfigurationInstance<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">data</span> <span style="color: #339933;">==</span> <span style="color: #000066; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">data</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> MyStateSaver<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">data</span>.<span style="color: #006633;">doInit</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
doInit<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
@Override<br />
<span style="color: #000000; font-weight: bold;">public</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Aobject+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Object</span></a> onRetainCustomNonConfigurationInstance<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">return</span> <span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">data</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> startNextActivity<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
Intent intent <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Intent<span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">this</span>, DemoProjectActivity.<span style="color: #000000; font-weight: bold;">class</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">startActivity</span><span style="color: #009900;">&#40;</span>intent<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">this</span>.<span style="color: #006633;">finish</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000066; font-weight: bold;">void</span> doInit<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
data.<span style="color: #006633;">doInit</span> <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">false</span><span style="color: #339933;">;</span><br />
<span style="color: #000000; font-weight: bold;">final</span> Handler handler <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> Handler<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
handler.<span style="color: #006633;">postDelayed</span><span style="color: #009900;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> <a href="http://www.google.com/search?hl=en&amp;q=allinurl%3Arunnable+java.sun.com&amp;btnI=I%27m%20Feeling%20Lucky"><span style="color: #003399;">Runnable</span></a><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">void</span> run<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #666666; font-style: italic;">// your application init must be done here.</span><br />
startNextActivity<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span>, <span style="color: #cc66cc;">3000</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000000; font-weight: bold;">private</span> <span style="color: #000000; font-weight: bold;">class</span> MyStateSaver <span style="color: #009900;">&#123;</span><br />
<span style="color: #000000; font-weight: bold;">public</span> <span style="color: #000066; font-weight: bold;">boolean</span> doInit <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">true</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<span style="color: #009900;">&#125;</span></div></div>
<p>Finally, the styles for splashscreen, i use fullscreen mode.</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;style</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Theme.Splash&quot;</span> <span style="color: #000066;">parent</span>=<span style="color: #ff0000;">&quot;android:Theme.NoTitleBar.Fullscreen&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;item</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;android:windowAnimationStyle&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>@style/Animations.SplashScreen<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/item<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;item</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;android:windowBackground&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>@android:color/white<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/item<span style="color: #000000; font-weight: bold;">&gt;</span></span></span> <br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/style<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;style</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Animations&quot;</span> <span style="color: #000066;">parent</span>=<span style="color: #ff0000;">&quot;@android:Animation&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span><br />
<br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;style</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;Animations.SplashScreen&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
&nbsp; <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;item</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;android:windowEnterAnimation&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>@anim/appear<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/item<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
  <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;item</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;android:windowExitAnimation&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>@anim/disappear<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/item<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/style<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>I don&#8217;t post the splashscreen layout. It&#8217;s quite simple and it&#8217;s up to you to think about what you want to display in it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michenux.net/splashscreen-android-221.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Swiz ChannelSetHelper using flashvars</title>
		<link>http://www.michenux.net/configure-swiz-channelsethelper-using-flashvar-200.html</link>
		<comments>http://www.michenux.net/configure-swiz-channelsethelper-using-flashvar-200.html#comments</comments>
		<pubDate>Mon, 09 Apr 2012 11:51:51 +0000</pubDate>
		<dc:creator>Michenux</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.michenux.net/?p=200</guid>
		<description><![CDATA[When you want to connect a remote service using flex and the swiz framework, you have to use the class ChannelSetHelper. Most of time, you will find in the documentation, articles that kind of example : &#60;swiz:ChannelSetHelper channelId=&#34;myAmfChannel&#34; contextRoot=&#34;/project&#34; serverName=&#34;localhost&#34; serverPort=&#34;8080&#34; &#62; &#60;/swiz:ChannelSetHelper&#62; &#60;mx:RemoteObject id=&#34;myService&#34; destination=&#34;myService&#34; channelSet=&#34;{myAmfChannel}&#34;/&#62; The problem is that the parameters (server,port,context) are [...]]]></description>
			<content:encoded><![CDATA[<p><strong>
<a href="http://www.michenux.net/wp-content/gallery/flex/flex.png" title="" class="shutterset_singlepic11" >
	<img class="ngg-singlepic ngg-left" src="http://www.michenux.net/wp-content/gallery/cache/11__85x85_flex.png" alt="flex" title="flex" />
</a>
</strong>When you want to connect a remote service using flex and the swiz framework, you have to use the class ChannelSetHelper. Most of time, you will find in the documentation, articles that kind of example :</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;swiz:ChannelSetHelper</span> <span style="color: #000066;">channelId</span>=<span style="color: #ff0000;">&quot;myAmfChannel&quot;</span> </span><br />
<span style="color: #009900;"><span style="color: #000066;">contextRoot</span>=<span style="color: #ff0000;">&quot;/project&quot;</span> </span><br />
<span style="color: #009900;"><span style="color: #000066;">serverName</span>=<span style="color: #ff0000;">&quot;localhost&quot;</span></span><br />
<span style="color: #009900;"><span style="color: #000066;">serverPort</span>=<span style="color: #ff0000;">&quot;8080&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;</span></span> <br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/swiz:ChannelSetHelper<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mx:RemoteObject</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;myService&quot;</span> <span style="color: #000066;">destination</span>=<span style="color: #ff0000;">&quot;myService&quot;</span> </span><br />
<span style="color: #009900;"><span style="color: #000066;">channelSet</span>=<span style="color: #ff0000;">&quot;{myAmfChannel}&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span></div></div>
<p>The problem is that the parameters (server,port,context) are hard coded and you have to compile a swf for each of yours environnements (dev, testing, production). These parameters need to be externalized. </p>
<p><strong>Here is the solution using flashvars :</strong></p>
<p>First, don&#8217;t use anymore &#8216;contextRoot&#8217;, &#8216;serverName&#8217; and &#8216;serverPort&#8217; attributes but &#8216;parameterSource&#8217; and &#8216;parameterName&#8217;. &#8216;ParameterName&#8217; has to be valued with the name of the flashvars parameter that will contains the url of your remote server.</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;swiz:ChannelSetHelper</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;myAmfChannel&quot;</span> </span><br />
<span style="color: #009900;"> &nbsp;<span style="color: #000066;">channelId</span>=<span style="color: #ff0000;">&quot;myAmfChannel&quot;</span> </span><br />
<span style="color: #009900;"> &nbsp;<span style="color: #000066;">parameterSource</span>=<span style="color: #ff0000;">&quot;{mx.core.FlexGlobals.topLevelApplication}&quot;</span></span><br />
<span style="color: #009900;"> &nbsp;<span style="color: #000066;">parameterName</span>=<span style="color: #ff0000;">&quot;channelUrl&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/swiz:ChannelSetHelper<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>Then, add your flashvars parameter in the html page :</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">var</span> flashvars <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
flashvars.<span style="color: #660066;">channelUrl</span><span style="color: #339933;">=</span><br />
&nbsp; <span style="color: #3366CC;">&quot;http://localhost:8080/project/messagebroker/amf&quot;</span><span style="color: #339933;">;</span><br />
<br />
&nbsp;swfobject.<span style="color: #660066;">embedSWF</span><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp;<span style="color: #3366CC;">&quot;project.swf&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;flashContent&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp;<span style="color: #3366CC;">&quot;100%&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;100%&quot;</span><span style="color: #339933;">,</span> <br />
&nbsp; &nbsp;swfVersionStr<span style="color: #339933;">,</span> xiSwfUrlStr<span style="color: #339933;">,</span> <br />
&nbsp; &nbsp;flashvars<span style="color: #339933;">,</span> params<span style="color: #339933;">,</span> attributes<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>Notes that the url must be the full url including the amf endpoint path.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michenux.net/configure-swiz-channelsethelper-using-flashvar-200.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dstat graph using Vmstax</title>
		<link>http://www.michenux.net/dstat-graph-using-vmstax-154.html</link>
		<comments>http://www.michenux.net/dstat-graph-using-vmstax-154.html#comments</comments>
		<pubDate>Sun, 20 Mar 2011 11:28:46 +0000</pubDate>
		<dc:creator>Michenux</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.michenux.net/?p=154</guid>
		<description><![CDATA[Generating graphs from dstat log files is now possible using Vmstax. At the origin, Vmstax was created to build graphics from vmstat log files. It is very convenient to monitor the server load during a load test. All you had to do is to capture the log with a command like &#8220;vmstat -n 5 > [...]]]></description>
			<content:encoded><![CDATA[<p>
<a href="http://www.michenux.net/wp-content/gallery/vmstax/182744_173346436044663_173344652711508_375137_1780982_n.jpg" title="" class="shutterset_singlepic10" >
	<img class="ngg-singlepic ngg-left" src="http://www.michenux.net/wp-content/gallery/cache/10__150x150_182744_173346436044663_173344652711508_375137_1780982_n.jpg" alt="182744_173346436044663_173344652711508_375137_1780982_n" title="182744_173346436044663_173344652711508_375137_1780982_n" />
</a>
 Generating graphs from dstat log files is now possible using Vmstax. At the origin, Vmstax was created to build graphics from vmstat log files. It is very convenient to monitor the server load during a load test. All you had to do is to capture the log with a command like &#8220;<em>vmstat -n 5 > output.log</em>&#8220;, then upload the log file into vmstax and finally, export the graphs as images to include them into reports.<br />
Actually, it is not a so good solution to analyze your servers : a lot of things is missing like network traffics, load per cpu, io per disk and others. Mpstat, iostat, ifstat can be used together but this is inconvenient because you have to manage several log ouputs.</p>
<p>Dstat is a versatile replacement for vmstat, iostat, netstat and ifstat. You can configure it with a bunch of options and you can even developp your own plugins for your specific needs. So, you have only one command to monitor what ever you want.</p>
<p>Here is an example of dstat output :<br />

<a href="http://www.michenux.net/wp-content/gallery/vmstax/dstatoutput.jpg" title="" class="shutterset_singlepic5" >
	<img class="ngg-singlepic" src="http://www.michenux.net/wp-content/gallery/cache/5__450x_dstatoutput.jpg" alt="dstatoutput" title="dstatoutput" />
</a>
</p>
<p><strong>To draw charts from dstat output with Vmstax : </strong></p>
<p>1) First, capture the dstat output : you have to use the <strong>output </strong>option. It will produce a csv log file that can be uploaded inside Vmstax. Here is an example :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dstat <span style="color: #660033;">-c</span> <span style="color: #660033;">-n</span> <span style="color: #660033;">-N</span> eth0,lo <span style="color: #660033;">-m</span> <span style="color: #660033;">-s</span> <span style="color: #660033;">-d</span> <span style="color: #660033;">--output</span> dstat.csv</div></div>
<p>2) Then, start Vmstax, upload the dstat.csv file and export the graphs as png. Pay attention to choose the &#8216;dstat&#8217; format inside the upload combo box.</p>
<p><strong><a title="Start Vmstax now !" href="http://www.michenux.net/vmstax/" target="_blank">Start Vmstax now !</a></strong></p>
<p>Here is some example graphs :</p>
<p>
<a href="http://www.michenux.net/wp-content/gallery/vmstax/test-01-cpuchart.png" title="" class="shutterset_singlepic6" >
	<img class="ngg-singlepic" src="http://www.michenux.net/wp-content/gallery/cache/6__450x_test-01-cpuchart.png" alt="test-01-cpuchart" title="test-01-cpuchart" />
</a>
<br />

<a href="http://www.michenux.net/wp-content/gallery/vmstax/test-02-netchart.png" title="" class="shutterset_singlepic7" >
	<img class="ngg-singlepic" src="http://www.michenux.net/wp-content/gallery/cache/7__450x_test-02-netchart.png" alt="test-02-netchart" title="test-02-netchart" />
</a>
<br />

<a href="http://www.michenux.net/wp-content/gallery/vmstax/test-06-diskchart.png" title="" class="shutterset_singlepic8" >
	<img class="ngg-singlepic" src="http://www.michenux.net/wp-content/gallery/cache/8__450x_test-06-diskchart.png" alt="test-06-diskchart" title="test-06-diskchart" />
</a>
<br />

<a href="http://www.michenux.net/wp-content/gallery/vmstax/test-00-allcharts.png" title="" class="shutterset_singlepic9" >
	<img class="ngg-singlepic" src="http://www.michenux.net/wp-content/gallery/cache/9__450x_test-00-allcharts.png" alt="test-00-allcharts" title="test-00-allcharts" />
</a>
</p>
<p><strong>Limitations</strong> : Vmstax is not able to graph all the available options of dstat. If you think one is missing, contact the author and talk about it.</p>
<p><strong>Links :</strong><br />
<a href="http://dag.wieers.com/home-made/dstat/" target="_blank">DStat home page</a><br />
<a href="http://www.michenux.net/vmstax/" target="_blank">Vmstax</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michenux.net/dstat-graph-using-vmstax-154.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Survey about vmstax</title>
		<link>http://www.michenux.net/survey-about-vmstax-130.html</link>
		<comments>http://www.michenux.net/survey-about-vmstax-130.html#comments</comments>
		<pubDate>Wed, 16 Feb 2011 12:56:15 +0000</pubDate>
		<dc:creator>Michenux</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.michenux.net/?p=130</guid>
		<description><![CDATA[Please take time to answer this little survey about your use of vmstax.]]></description>
			<content:encoded><![CDATA[<p>Please take time to answer this little survey about your use of vmstax.</p>
<link type="text/css" rel="stylesheet" href="http://www.michenux.net/wp-content/plugins/surveys/style.css" />
<script type="text/javascript" src="http://www.michenux.net/wp-includes/js/jquery/jquery.js"></script>
<script type="text/javascript" src="http://www.michenux.net/wp-content/plugins/surveys/script.js"></script>

<div class="survey-area ">
<form action="" method="post" class="survey-form" id="survey-1">
<div class='survey-question' id='question-1'>Where do you use vmstax ?
<input type='hidden' name='question_id[]' value='1' />
<br /><input type='radio' name='answer-1[]' id='answer-id-1' class='answer' value='1' />
<label for='answer-id-1'>at home</label><br />
<input type='radio' name='answer-1[]' id='answer-id-2' class='answer' value='2' />
<label for='answer-id-2'>at work</label><br />
<input type='radio' name='answer-1[]' id='answer-id-2' class='answer' value='user-answer' />
<input type='text' name='user-answer-1' class='user-answer' value='' /><br />
</div>

<div class='survey-question' id='question-2'>If company, what is your company name ?
<input type='hidden' name='question_id[]' value='2' />
<input type='hidden' name='answer-2[]' id='answer-id-2' class='answer' value='user-answer' />
<input type='text' name='user-answer-2' class='user-answer' value='' /><br />
</div>

<div class='survey-question' id='question-3'>How often do you use Vmstax ?
<input type='hidden' name='question_id[]' value='3' />
<br /><input type='radio' name='answer-3[]' id='answer-id-3' class='answer' value='3' />
<label for='answer-id-3'>Every day</label><br />
<input type='radio' name='answer-3[]' id='answer-id-4' class='answer' value='4' />
<label for='answer-id-4'>Once a week</label><br />
<input type='radio' name='answer-3[]' id='answer-id-5' class='answer' value='5' />
<label for='answer-id-5'>Once a month</label><br />
<input type='radio' name='answer-3[]' id='answer-id-6' class='answer' value='6' />
<label for='answer-id-6'>[1-6] times a year</label><br />
<input type='radio' name='answer-3[]' id='answer-id-7' class='answer' value='7' />
<label for='answer-id-7'>Never</label><br />
</div>

<div class='survey-question' id='question-4'>What functionnalities would like to see in vmstax ?
<input type='hidden' name='question_id[]' value='4' />
<br /><input type='hidden' name='answer-4[]' id='answer-id-7' class='answer' value='user-answer' />
<textarea name='user-answer-4' rows='5' cols='30' class='user-answer'></textarea><br />
</div>

<br />
<input type="button" id="survey-next-question" value="Next &gt;"  /><br />

<input type="submit" name="action" id="survey-action-button" value="Submit Survey"  />
<input type="hidden" name="survey_id" value="1" />
</form>

<script type="text/javascript">survey_questions_per_page = 1;</script>
</div>


<p> <strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michenux.net/survey-about-vmstax-130.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vmstax &#8211; Build charts/graphs from vmstat log</title>
		<link>http://www.michenux.net/vmstax-build-vmstat-charts-1.html</link>
		<comments>http://www.michenux.net/vmstax-build-vmstat-charts-1.html#comments</comments>
		<pubDate>Tue, 10 Feb 2009 10:16:58 +0000</pubDate>
		<dc:creator>Michenux</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[chart]]></category>
		<category><![CDATA[courbe]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[graph]]></category>
		<category><![CDATA[graphique]]></category>
		<category><![CDATA[log]]></category>
		<category><![CDATA[vmstat]]></category>

		<guid isPermaLink="false">http://zarba.hd.free.fr/wordpress/?p=1</guid>
		<description><![CDATA[Hi, Learning Flex 3, i wanted to test the chart functionnalities. As a case study, i took the problematic of drawing charts from a vmstat log. At the end of your load tests, you have to build the charts. It may take  some times to do that with Word or OpenOffice and it is not [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p><strong>
<a href="http://www.michenux.net/wp-content/gallery/vmstax/bonexemple.png" title="" class="shutterset_singlepic1" >
	<img class="ngg-singlepic ngg-left" src="http://www.michenux.net/wp-content/gallery/cache/1__85x85_bonexemple.png" alt="vmstax.png" title="vmstax.png" />
</a>
</strong><strong> </strong>Learning Flex 3, i wanted to test the chart functionnalities. As a case study, i took the problematic of drawing charts from a vmstat log. At the end of your load tests, you have to build the charts. It may take  some times to do that with Word or OpenOffice and it is not one of my favorite task. So, i decided to make a littleapplication in Flex : you upload your vmstat log, the chars appears and you can export them as images.</p>
<p>Click here to test: <a title="Click here to test Vmstax" href="http://www.michenux.net/vmstax/" target="_blank">vmstax</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michenux.net/vmstax-build-vmstat-charts-1.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Maven Blame Plugin &#8211; Add developper info in checkstyle/pmd/findbugs reports</title>
		<link>http://www.michenux.net/maven-blame-plugin-add-developper-info-in-checkstyle-pmd-findbugs-reports-57.html</link>
		<comments>http://www.michenux.net/maven-blame-plugin-add-developper-info-in-checkstyle-pmd-findbugs-reports-57.html#comments</comments>
		<pubDate>Mon, 05 Jan 2009 14:31:42 +0000</pubDate>
		<dc:creator>Michenux</dc:creator>
				<category><![CDATA[JEE]]></category>

		<guid isPermaLink="false">http://www.michenux.net/?p=57</guid>
		<description><![CDATA[Checkstyle/Pmd/Findbugs are good tools to test quality of your java code but you don&#8217;t know in your team who respects code standing rules and who does not. Maven Blame Plugin allows you to have that kind of informations. For each code rule violation, it queries your subversion repository to have the last commiter of the [...]]]></description>
			<content:encoded><![CDATA[<p>Checkstyle/Pmd/Findbugs are good tools to test quality of your java code but you don&#8217;t know in your team who respects code standing rules and who does not. Maven Blame Plugin allows you to have that kind of informations. For each code rule violation, it queries your subversion repository to have the last commiter of the corresponding line code.<br />
Maven Blame Plugin does 2 things :</p>
<ul>
<li>It updates the checkstyle/pmd/findbugs xml reports : it adds an attribute @author on each code vilolations. External tools can use this new attribute to improve their reports.</li>
<li>It generates a blame report with some global statistics about developpers.</li>
</ul>
<p>To use the maven blame plugin, you have to change the pom.xml of your project.<br />
First, declare the codehaus snapshot repository :</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pluginRepositories<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;pluginRepository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>codehaus-snapshot<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/id<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Snapshot codehaus repository<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/name<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>http://snapshots.repository.codehaus.org<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/url<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;releases<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/releases<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enabled<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/snapshots<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/pluginRepository<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/pluginRepositories<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>Then, add the different reports(checkstyle,pmd,findbugs) with at the end, the blame one :</p>
<div class="codecolorer-container xml default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="xml codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;reporting<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugins<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.apache.maven.plugins<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>maven-checkstyle-plugin<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>org.codehaus.maven-blame-plugin<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/groupId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>maven-blame-plugin<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artifactId<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>1.0-SNAPSHOT<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/version<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enableCheckstyle<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enableCheckstyle<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enablePmd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enablePmd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;enableFindBugs<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>false<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/enableFindBugs<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fullBlame<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>true<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fullBlame<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/configuration<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugin<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/plugins<span style="color: #000000; font-weight: bold;">&gt;</span></span></span><br />
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/reporting<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></div></div>
<p>Endly, launch the site generation :</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mvn site</div></div>
<p>Maven Blame connects to your svn repository and it may need to authenticate. Authentication information can be indicated via maven properties : <strong>maven.scm.username</strong> and <strong>maven.scm.password</strong>.</p>
<p>For more informations :</p>
<p><a href="http://maven-blame-plugin.codehaus.org">Maven Blame Plugin Web Site</a><br />
<a href="http://maven-blame-plugin.codehaus.org/examples/blame-report.html">Example of blame report</a><br />
<a href="http://maven-blame-plugin.codehaus.org/examples/checkstyle-result.xml">Example of checkstyle report xml file</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michenux.net/maven-blame-plugin-add-developper-info-in-checkstyle-pmd-findbugs-reports-57.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

