<?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>PRAVINRANJAN&#039;s Blog</title>
	<atom:link href="http://pranjan.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://pranjan.com</link>
	<description>About flash</description>
	<lastBuildDate>Tue, 15 Jun 2010 10:17:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>AIR2 with NativeProcess and ImageMagick</title>
		<link>http://pranjan.com/?p=95</link>
		<comments>http://pranjan.com/?p=95#comments</comments>
		<pubDate>Tue, 15 Jun 2010 10:04:39 +0000</pubDate>
		<dc:creator>flas3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Adobe AIR]]></category>
		<category><![CDATA[AIR2]]></category>
		<category><![CDATA[extendedDesktop]]></category>
		<category><![CDATA[NativeProcess]]></category>
		<category><![CDATA[NativeProcessStartupInfo]]></category>
		<category><![CDATA[supportedProfiles]]></category>

		<guid isPermaLink="false">http://pranjan.com/?p=95</guid>
		<description><![CDATA[Hi all again. AIR 2.0 is launched. A much awaited version that I was waiting for last 2 years. Lots of good things but what I like most is NativeProcess (run executables within as native process). I had done lots of tricks to execute commandline executables. But now its much easier. I bet&#8230;this feature alone, [...]


Related posts:<ol><li><a href='http://pranjan.com/?p=87' rel='bookmark' title='Permanent Link: Flex repeater control part 2'>Flex repeater control part 2</a> <small>Return back again. In this section we&#8217;ll see how to...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Hi all again. AIR 2.0 is launched. A much awaited version that I was waiting for last 2 years. Lots of good things but what I like most is NativeProcess (run executables within as native process). I had done lots of tricks to execute commandline executables. But now its much easier. I bet&#8230;this feature alone, will give Adobe AIR a new height.</p>
<p>I have done some work with ImageMagick.</p>
<p>Here is the MagickUtils class.</p>
<pre>package pravin.magick
{
 import flash.desktop.NativeProcess;
 import flash.desktop.NativeProcessStartupInfo;
 import flash.events.Event;
 import flash.events.ProgressEvent;
 import flash.events.IOErrorEvent;
 import flash.events.NativeProcessExitEvent;
 import flash.filesystem.File;
 /**
 * Image magick utility to use in Adobe AIR applications using NativeProcess.
 *  @author Pravin Ranjan
 *  @Date 16 June, 2010.
 */
 public class MagickUtils
 {
 private var objWorkingFolder:File;
 private var objOutFolder:File;
 private var process:NativeProcess;
 private var objConvertExe:File;
 /*Explicitely declared constructor.*/
 public function MagickUtils(objWorkingFolder:File,
 objOutFolder:File, onOutputData:Function,
 onErrorData:Function, onExit:Function, onIOError:Function)
 {
 this.objWorkingFolder = objWorkingFolder;
 this.objOutFolder = objOutFolder;

 objConvertExe = File.applicationDirectory.resolvePath("imagemagik/win/convert.exe");

 process = new NativeProcess();
 process.addEventListener(ProgressEvent.STANDARD_OUTPUT_DATA, onOutputData);
 process.addEventListener(ProgressEvent.STANDARD_ERROR_DATA, onErrorData);
 process.addEventListener(NativeProcessExitEvent.EXIT, onExit);
 process.addEventListener(IOErrorEvent.STANDARD_OUTPUT_IO_ERROR, onIOError);
 process.addEventListener(IOErrorEvent.STANDARD_ERROR_IO_ERROR, onIOError);
 }

 public function convertTo(strFromImage:String, strToImage:String):void
 {
 var objFile:File = objWorkingFolder.resolvePath(strFromImage);
 strFromImage = objFile.nativePath;
 strToImage = objOutFolder.nativePath + File.separator + strToImage;
 trace("strFromImage: " + strFromImage);
 trace("strToImage: " + strToImage);

 var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
 nativeProcessStartupInfo.executable = objConvertExe;
 var processArgs:Vector.&lt;String&gt; = new Vector.&lt;String&gt;();
 processArgs.push(strFromImage);
 processArgs.push(strToImage);
 nativeProcessStartupInfo.arguments = processArgs;
 process.start(nativeProcessStartupInfo);
 }
 }
}
</pre>
<p>AND here is main class&#8230;</p>
<pre>package
{
 import flash.display.Sprite;
 import flash.desktop.NativeProcess;
 import flash.desktop.NativeProcessStartupInfo;
 import flash.events.Event;
 import flash.events.ProgressEvent;
 import flash.events.IOErrorEvent;
 import flash.events.NativeProcessExitEvent;
 import flash.filesystem.File;
 import pravin.magick.MagickUtils;

 public class NativeProcessExample extends Sprite
 {
 public var process:NativeProcess;

 public function NativeProcessExample()
 {
 if(NativeProcess.isSupported)
 {
 setupAndLaunch();
 }
 else
 {
 trace("NativeProcess not supported.");
 }
 }

 public function setupAndLaunch():void
 {     
 var magik:MagickUtils = new MagickUtils(File.applicationDirectory, File.applicationDirectory, onOutputData, onErrorData, onExit, onIOError);
 magik.convertTo("MyImage.jpg", "OutImage.png");
 }

 public function onOutputData(event:ProgressEvent):void
 {
 trace("Got: ", process.standardOutput.readUTFBytes(process.standardOutput.bytesAvailable));
 }

 public function onErrorData(event:ProgressEvent):void
 {
 trace("ERROR -", process.standardError.readUTFBytes(process.standardError.bytesAvailable));
 }

 public function onExit(event:NativeProcessExitEvent):void
 {
 trace("Process exited with ", event.exitCode);
 }

 public function onIOError(event:IOErrorEvent):void
 {
 trace(event.toString());
 }
 }
}
</pre>
<p>ImageMagick path need to be changed and wow. It works perfectly. My app executes convert.exe and my desired output is generated.</p>
<p>Wait a minute&#8230;</p>
<p>Now what you need. AIR 2.0 SDK, AIR 2.0 runtime, ImageMagick and flash CS4 (latest one).</p>
<p>Your app xml would look like this&#8230;</p>
<address>&lt;?xml version =&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243; ?&gt;<strong>&lt;application xmlns=&#8221;http://ns.adobe.com/air/application/2.0&#8243;&gt;</strong>&lt;id&gt;com.adobe.example.nativeprocess&lt;/id&gt;<strong>&lt;supportedProfiles&gt;extendedDesktop&lt;/supportedProfiles&gt;</strong>&lt;version&gt;1.0&lt;/version&gt;&lt;filename&gt;nativeprocess&lt;/filename&gt;&lt;description&gt;&lt;/description&gt;&lt;!&#8211; To localize the description, use the following format for the description element.&lt;description&gt;&lt;text xml:lang=&#8221;en&#8221;&gt;English App description goes here&lt;/text&gt;&lt;text xml:lang=&#8221;fr&#8221;&gt;French App description goes here&lt;/text&gt;&lt;text xml:lang=&#8221;ja&#8221;&gt;Japanese App description goes here&lt;/text&gt;&lt;/description&gt;&#8211;&gt;&lt;name&gt;nativeprocess&lt;/name&gt;&lt;!&#8211; To localize the name, use the following format for the name element.&lt;name&gt;&lt;text xml:lang=&#8221;en&#8221;&gt;English App name goes here&lt;/text&gt;&lt;text xml:lang=&#8221;fr&#8221;&gt;French App name goes here&lt;/text&gt;&lt;text xml:lang=&#8221;ja&#8221;&gt;Japanese App name goes here&lt;/text&gt;&lt;/name&gt;&#8211;&gt;&lt;copyright&gt;&lt;/copyright&gt;&lt;initialWindow&gt;&lt;content&gt;nativeprocess.swf&lt;/content&gt;&lt;systemChrome&gt;standard&lt;/systemChrome&gt;&lt;transparent&gt;false&lt;/transparent&gt;&lt;visible&gt;true&lt;/visible&gt;&lt;/initialWindow&gt;&lt;icon&gt;&lt;/icon&gt;&lt;customUpdateUI&gt;false&lt;/customUpdateUI&gt;&lt;allowBrowserInvocation&gt;false&lt;/allowBrowserInvocation&gt;&lt;/application&gt;</address>
<address> </address>
<p>Now compile. If all well, you&#8217;ll get a converted image. You can also create preformatted commands in actionscript to perform actions.</p>
<p>Thats it for now. See you soon.</p>


<p>Related posts:<ol><li><a href='http://pranjan.com/?p=87' rel='bookmark' title='Permanent Link: Flex repeater control part 2'>Flex repeater control part 2</a> <small>Return back again. In this section we&#8217;ll see how to...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pranjan.com/?feed=rss2&amp;p=95</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fisix engine vector class not working with flex.</title>
		<link>http://pranjan.com/?p=92</link>
		<comments>http://pranjan.com/?p=92#comments</comments>
		<pubDate>Thu, 03 Jun 2010 08:10:56 +0000</pubDate>
		<dc:creator>flas3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pranjan.com/?p=92</guid>
		<description><![CDATA[While working with fisix engine with flex, I stucked in a situation&#8230; 1067: Implicit coercion of a value of type __AS3__.vec:Vector to an unrelated type com.fileitup.fisixengine.core:Vector. I checked http://blog.maxkunz.de/?p=170 for the solution. Yeah, good solution but not worked on my problem. There is another solution. Go to compiler option and add &#8220;-target-player=9.0.0&#8243; as shown below. [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>While working with fisix engine with flex, I stucked in a situation&#8230;</p>
<p>1067: Implicit coercion of a value of type __AS3__.vec:Vector to an unrelated type com.fileitup.fisixengine.core:Vector.</p>
<p>I checked http://blog.maxkunz.de/?p=170 for the solution. Yeah, good solution but not worked on my problem.</p>
<p>There is another solution. Go to compiler option and add &#8220;-target-player=9.0.0&#8243; as shown below.</p>
<div id="attachment_93" class="wp-caption alignnone" style="width: 457px"><a href="http://pranjan.com/wp-content/uploads/2010/06/bg1.jpg"><img class="size-full wp-image-93" title="bg1" src="http://pranjan.com/wp-content/uploads/2010/06/bg1.jpg" alt="Compiler option" width="447" height="310" /></a><p class="wp-caption-text">Compiler option</p></div>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pranjan.com/?feed=rss2&amp;p=92</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex repeater control part 2</title>
		<link>http://pranjan.com/?p=87</link>
		<comments>http://pranjan.com/?p=87#comments</comments>
		<pubDate>Thu, 15 Apr 2010 05:25:09 +0000</pubDate>
		<dc:creator>flas3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dataProvider]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[LinkButton]]></category>
		<category><![CDATA[mx]]></category>
		<category><![CDATA[repeater]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://pranjan.com/?p=87</guid>
		<description><![CDATA[Return back again. In this section we&#8217;ll see how to retrieve repeater item and its data. Lets have our example&#8230; &#60;mx:VBox id="box" height="100%" width="100%"&#62;      &#60;mx:Spacer height="10"/&#62;      &#60;mx:Repeater id="r" dataProvider="{xmlColMenu}" startingIndex="0" recycleChildren="true"&#62;          &#60;mx:LinkButton id="idx" label="{r.currentItem.name}" click="{clbClick(event);}" styleName="RightLink"/&#62;          &#60;mx:Repeater id="s" dataProvider="{r.currentItem.link}"              startingIndex="0" recycleChildren="true"&#62;             &#60;mx:LinkButton id="idy" label="{s.currentItem.name}"                 click="{clbClick(event);}" fontFamily="Verdana"                 fontSize="9" [...]


Related posts:<ol><li><a href='http://pranjan.com/?p=82' rel='bookmark' title='Permanent Link: Flex repeater control part1'>Flex repeater control part1</a> <small>Repeater control is very useful but little bit complex to...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Return back again.</p>
<p>In this section we&#8217;ll see how to retrieve repeater item and its data.</p>
<p>Lets have our example&#8230;</p>
<pre><span style="color: #800000;">&lt;mx:VBox id="box" height="100%" width="100%"&gt;
     &lt;mx:Spacer height="10"/&gt;
     <strong>&lt;mx:Repeater id="r" dataProvider="{xmlColMenu}" startingIndex="0" recycleChildren="true"&gt;</strong>
         &lt;mx:LinkButton id="idx" label="{r.currentItem.name}" click="{clbClick(event);}" styleName="RightLink"/&gt;
         <strong>&lt;mx:Repeater id="s" dataProvider="{r.currentItem.link}" </strong>
             startingIndex="0" recycleChildren="true"&gt;
            &lt;mx:LinkButton id="idy" label="{s.currentItem.name}"
                click="{clbClick(event);}" fontFamily="Verdana"
                fontSize="9" fontStyle="normal" fontWeight="normal"
                textSelectedColor="#03598B" textRollOverColor="#47A318" disabledColor="#47A318" height="15"
                color="#666666" themeColor="#FFFFFF"/&gt;
         <strong>&lt;/mx:Repeater&gt;</strong>
     <strong>&lt;/mx:Repeater&gt;</strong>
 &lt;/mx:VBox&gt;

</span></pre>
<p>Now we will write <strong>clbClick</strong> event for the repeater item. Indeed, your event handler will be written in <strong>&lt;mx:Script&gt; </strong>block.</p>
<pre><span style="color: #800000;">/**
 * Navigation item click event.
 * @param event of type MouseEvent.
 */
 private function clbClick(event:MouseEvent):void
 {
     trace(event.target.getRepeaterItem().id);
 }
</span></pre>
<p>If you use <strong>getRepeaterItem()</strong>, it gives you access to the data item that you&#8217;d set earlier while repeating the item.</p>
<pre><span style="color: #800000;">&lt;mx:LinkButton id="idx" label="{<strong>r.currentItem</strong>.name}" click="{clbClick(event);}" styleName="RightLink"/&gt;
</span></pre>
<p>In my case, I need to access <strong>id</strong>. You may have different data.</p>
<p>In next section we&#8217;ll check how to update repeater control dynamically. Till then c. y.</p>


<p>Related posts:<ol><li><a href='http://pranjan.com/?p=82' rel='bookmark' title='Permanent Link: Flex repeater control part1'>Flex repeater control part1</a> <small>Repeater control is very useful but little bit complex to...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pranjan.com/?feed=rss2&amp;p=87</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex repeater control part1</title>
		<link>http://pranjan.com/?p=82</link>
		<comments>http://pranjan.com/?p=82#comments</comments>
		<pubDate>Sat, 10 Apr 2010 08:35:26 +0000</pubDate>
		<dc:creator>flas3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[repeater]]></category>

		<guid isPermaLink="false">http://pranjan.com/?p=82</guid>
		<description><![CDATA[Repeater control is very useful but little bit complex to understand. Why flex introduced this repeater control. Very simple. To avoid unnecessary looping and to reduce complexity of component/s or control/s repeatation. In simple way, we can do the same repeatation by using for loop or while or do-while loop. Repeater control saves our time. [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Repeater control is very useful but little bit complex to understand.</p>
<p>Why flex introduced this repeater control. Very simple. To avoid unnecessary looping and to reduce complexity of component/s or control/s repeatation.</p>
<p>In simple way, we can do the same repeatation by using <strong>for loop </strong>or <strong>while </strong>or<strong> do-while loop</strong>. Repeater control saves our time.</p>
<pre><span style="color: #800000;">&lt;?xml version="1.0"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"&gt;

  &lt;mx:Script&gt;
    &lt;![CDATA[
      [Bindable]
      public var myArray:Array=[1,2,3,4];
    ]]&gt;
  &lt;/mx:Script&gt;

  &lt;mx:ArrayCollection id="myAC" source="{myArray}"/&gt;
  <strong>&lt;mx:Repeater id="myrep" dataProvider="{myAC}"&gt;
    &lt;mx:Label id="Label1" text="This is loop #{myrep.currentItem}"/&gt;
  &lt;/mx:Repeater&gt;</strong>
&lt;/mx:Application&gt;</span>
</pre>
<p>This is a simple example how the repeater component is used. <strong>Please note here that the repeater control is itself a loop so don&#8217;t need to use another loop to support the control.</strong><br />
We can also use nested repeater controls. Just like example below.</p>
<pre><span style="color: #800000;">&lt;?xml version="1.0"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*"&gt;

  &lt;mx:Script&gt;
    &lt;![CDATA[
      [Bindable]
      public var myArray:Array=[1,2,3,4];
    ]]&gt;
  &lt;/mx:Script&gt;

  &lt;mx:ArrayCollection id="myAC" source="{myArray}"/&gt;
  <strong>&lt;mx:Repeater id="myrep" dataProvider="{myAC}"&gt;
    &lt;mx:Label id="Label1" text="This is loop #{myrep.currentItem}"/&gt;</strong></span>
    <span style="color: #800000;"><strong>&lt;mx:Repeater id="nestedrep" dataProvider="{myrep.currentItem.secondaryXMLList}"&gt;
        &lt;mx:Label id="Label2" text="This is loop #{nestedrep.currentItem}"/&gt;<strong><strong>
     &lt;/mx:Repeater&gt;</strong></strong></strong></span><span style="color: #800000;"><strong><span style="color: #800000;">  </span>
   &lt;/mx:Repeater&gt;</strong>
&lt;/mx:Application&gt;

</span></pre>
<p>In next series, we&#8217;ll see how to retrieve data from repeated controls or components. We&#8217;ll also see controlling and refreshing the repeater component.</p>
<p>ciao.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pranjan.com/?feed=rss2&amp;p=82</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The site name is now very simple</title>
		<link>http://pranjan.com/?p=81</link>
		<comments>http://pranjan.com/?p=81#comments</comments>
		<pubDate>Wed, 14 Oct 2009 09:32:54 +0000</pubDate>
		<dc:creator>flas3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[name]]></category>
		<category><![CDATA[pranjan]]></category>
		<category><![CDATA[pravinranjan]]></category>
		<category><![CDATA[simple]]></category>

		<guid isPermaLink="false">http://pranjan.com/?p=81</guid>
		<description><![CDATA[The site name is changed from pravinranjan.com to pranjan.com. Its simple to say now pranjan [p r a n j a n]. Related posts:The site name is now very simple The site name is changed from pravinranjan.com to pranjan.com. Its... Related posts brought to you by Yet Another Related Posts Plugin.


Related posts:<ol><li><a href='http://pranjan.com/?p=80' rel='bookmark' title='Permanent Link: The site name is now very simple'>The site name is now very simple</a> <small>The site name is changed from pravinranjan.com to pranjan.com. Its...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The site name is changed from pravinranjan.com to pranjan.com.</p>
<p>Its simple to say now pranjan [p r a n j a n].<br />
 <img src='http://pranjan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://pranjan.com/?p=80' rel='bookmark' title='Permanent Link: The site name is now very simple'>The site name is now very simple</a> <small>The site name is changed from pravinranjan.com to pranjan.com. Its...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pranjan.com/?feed=rss2&amp;p=81</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The site name is now very simple</title>
		<link>http://pranjan.com/?p=80</link>
		<comments>http://pranjan.com/?p=80#comments</comments>
		<pubDate>Wed, 14 Oct 2009 09:32:54 +0000</pubDate>
		<dc:creator>flas3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[changed]]></category>
		<category><![CDATA[name]]></category>
		<category><![CDATA[pranjan]]></category>
		<category><![CDATA[pravinranjan]]></category>
		<category><![CDATA[simple]]></category>

		<guid isPermaLink="false">http://pranjan.com/?p=80</guid>
		<description><![CDATA[The site name is changed from pravinranjan.com to pranjan.com. Its simple to say now pranjan [p r a n j a n]. Related posts:The site name is now very simple The site name is changed from pravinranjan.com to pranjan.com. Its... Related posts brought to you by Yet Another Related Posts Plugin.


Related posts:<ol><li><a href='http://pranjan.com/?p=81' rel='bookmark' title='Permanent Link: The site name is now very simple'>The site name is now very simple</a> <small>The site name is changed from pravinranjan.com to pranjan.com. Its...</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>The site name is changed from pravinranjan.com to pranjan.com.</p>
<p>Its simple to say now pranjan [p r a n j a n].<br />
 <img src='http://pranjan.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>


<p>Related posts:<ol><li><a href='http://pranjan.com/?p=81' rel='bookmark' title='Permanent Link: The site name is now very simple'>The site name is now very simple</a> <small>The site name is changed from pravinranjan.com to pranjan.com. Its...</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pranjan.com/?feed=rss2&amp;p=80</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Concept of float datatype in j2me</title>
		<link>http://pranjan.com/?p=78</link>
		<comments>http://pranjan.com/?p=78#comments</comments>
		<pubDate>Tue, 22 Sep 2009 10:38:44 +0000</pubDate>
		<dc:creator>flas3</dc:creator>
				<category><![CDATA[j2me]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[datatype]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[int]]></category>
		<category><![CDATA[long]]></category>
		<category><![CDATA[short]]></category>
		<category><![CDATA[simulate]]></category>

		<guid isPermaLink="false">http://pravinranjan.com/blog/?p=78</guid>
		<description><![CDATA[Nearly everyone would feel pains for float datatype in j2me. This article will give you a broad concept to implement or more precisely simulate float in j2me. First of all, how a float data look like? 78.98, 34.98885, 3.141759 &#8230;. and like this. If you look closer, you will find every float has very small [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Nearly everyone would feel pains for float datatype in j2me. This article will give you a broad concept to implement or more precisely simulate float in j2me.</p>
<p>First of all, how a float data look like?</p>
<p>78.98, 34.98885, 3.141759 &#8230;. and like this.</p>
<p>If you look closer, you will find every float has very small variable unit.</p>
<p>Say 78.98. Its unit is 0.01.  Similarly 3.141759. Its unit is 0.000001.</p>
<p>To implement in j2me, we will have smallest unit is 1 and also this is fixed. So what to do?</p>
<p>First of all for every data we will need to pre-assume maximum length. This is so because it will help to choose appropriate type like short, int or long.</p>
<p>int speed = 0;</p>
<p>//Say we need speed similar to 0.5.</p>
<p>Next is enlarge our data as per necessity.</p>
<p>Now,</p>
<p>speed = speed+1;</p>
<p>To get simulated speed of 0.5, we need <strong>speed</strong> to divide by 2. So the next step will be&#8230;</p>
<p>speed = speed / 2;</p>
<p>Actually this will give you 2 consecutive same values like 1,1,2,2,3,3,4,4,&#8230;.</p>
<p>The same concept will work for larger values.</p>
<p>That&#8217;s it for now.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pranjan.com/?feed=rss2&amp;p=78</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Future of flash?</title>
		<link>http://pranjan.com/?p=71</link>
		<comments>http://pranjan.com/?p=71#comments</comments>
		<pubDate>Tue, 22 Sep 2009 09:54:09 +0000</pubDate>
		<dc:creator>flas3</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flex]]></category>
		<category><![CDATA[future]]></category>
		<category><![CDATA[legend]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://pravinranjan.com/blog/?p=71</guid>
		<description><![CDATA[Adobe is going to release next version of Flex with the name of Flash. Question is where is our old Flash? Current versions has already lost its legend characteristics of Flash. I am okay with flex. Good for business based applications. Lots of graphs, easy to use services, components and libraries, rapid development and many [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Adobe is going to release next version of Flex with the name of Flash.</p>
<p>Question is where is our old Flash?</p>
<p>Current versions has already lost its legend characteristics of Flash.</p>
<p>I am okay with flex. Good for business based applications. Lots of graphs, easy to use services, components and libraries, rapid development and many revolutionary things. Flash is separate thing to do things differently. Adobe is try to make it dot net kind of environment but I recall this to adobe that people have already things similar to flex but what they do not have is FLASH.</p>
<p>Another problem is Adobe is not keeping its promise to make <strong>flash platform</strong> independent. I am specifically targeting towards linux. More than a decade and flash or flex is still a dream for linux users.</p>
<p>Therefore, I request Adobe to not to loose legend core of flash.</p>
<p>[The article is not targeting flash environment but that Flash language and IDE]</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pranjan.com/?feed=rss2&amp;p=71</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Download MathFP jar file</title>
		<link>http://pranjan.com/?p=67</link>
		<comments>http://pranjan.com/?p=67#comments</comments>
		<pubDate>Mon, 07 Sep 2009 07:16:33 +0000</pubDate>
		<dc:creator>flas3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jar]]></category>
		<category><![CDATA[MathFP]]></category>

		<guid isPermaLink="false">http://pravinranjan.com/blog/?p=67</guid>
		<description><![CDATA[You can download MathFP jar file from here. For more information visit its parent website http://home.comcast.net/~ohommes/MathFP/ Related posts:How to use MathFP for j2me So here we are&#8230;. 1. Download MathFP for CLDC. 2.... Related posts brought to you by Yet Another Related Posts Plugin.


Related posts:<ol><li><a href='http://pranjan.com/?p=62' rel='bookmark' title='Permanent Link: How to use MathFP for j2me'>How to use MathFP for j2me</a> <small>So here we are&#8230;. 1. Download MathFP for CLDC. 2....</small></li>
</ol>

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-66" href="http://pravinranjan.com/blog/?attachment_id=66">You can download MathFP jar file from here.</a> For more information visit its parent website <a href="http://home.comcast.net/~ohommes/MathFP/">http://home.comcast.net/~ohommes/MathFP/</a></p>


<p>Related posts:<ol><li><a href='http://pranjan.com/?p=62' rel='bookmark' title='Permanent Link: How to use MathFP for j2me'>How to use MathFP for j2me</a> <small>So here we are&#8230;. 1. Download MathFP for CLDC. 2....</small></li>
</ol></p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pranjan.com/?feed=rss2&amp;p=67</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to use MathFP for j2me</title>
		<link>http://pranjan.com/?p=62</link>
		<comments>http://pranjan.com/?p=62#comments</comments>
		<pubDate>Wed, 19 Aug 2009 09:15:35 +0000</pubDate>
		<dc:creator>flas3</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://pravinranjan.com/blog/?p=62</guid>
		<description><![CDATA[So here we are&#8230;. 1. Download MathFP for CLDC. 2. Extract MathFP class. 3. Create net/jscience/util directory and then paste your extracted MathFP class file. 4. Right click the net directory and create a zip file. Mac and linux users should take care that archive top folder must be net. [You can rename the zip [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>So here we are&#8230;.</p>
<p>1. Download MathFP for CLDC.<br />
2. Extract MathFP class.<br />
3. Create net/jscience/util directory and then paste your extracted MathFP class file.<br />
4. Right click the <strong>net</strong> directory and create a zip file. Mac and linux users should take care that archive top folder must be <strong>net.<br />
</strong>[You can rename the zip file into jar and it will work.]</p>
<p>5. Copy and paste your newely created file to use it. Thats it.</p>
<p>Another way is to create a jar file but also you will need to use points 1, 2 and 3.</p>
<p>Please do write me if you&#8217;ll need. Have a nice time.</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://pranjan.com/?feed=rss2&amp;p=62</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
