<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6221754080009704664</id><updated>2024-09-06T19:15:27.727-07:00</updated><category term="Adobe Flex"/><category term="AIR"/><category term="Flex"/><category term="Varun Rathore"/><category term="Flash"/><category term="java"/><category term="Spring"/><category term="apache SOLR"/><category term="AS3"/><category term="Actionscript"/><category term="Adobe Flex Apllication Framework"/><category term="messages"/><category term="sqllite Adobe AIR Flex Offline"/><category term="vrathore"/><category term="ADL AIR"/><category term="ADL Flex"/><category term="AIR inactivity"/><category term="AIR look and feel"/><category term="AS3 GET POST Methods"/><category term="Action script Inactivity"/><category term="Afreechart Nadriod"/><category term="AlwaysToFront"/><category term="Andriod"/><category term="Andriod Interactive Chart"/><category term="Arthropod"/><category term="As3 signals"/><category term="Attribute Value"/><category term="Base64 String"/><category term="Batch File"/><category term="BlazeDS"/><category term="Cache"/><category term="Cairngorm"/><category term="Calendar"/><category term="Challenge"/><category term="Changing Password Mysql"/><category term="Command Prompt"/><category term="Compiler Aurgument"/><category term="Compression"/><category term="Configuration"/><category term="Cool Utility"/><category term="Cross Hair Andriod Chart"/><category term="Cross domain javascript calls"/><category term="Custom Component"/><category term="Custom Event  Flex AIR"/><category term="Database"/><category term="Date"/><category term="Date Suffix"/><category term="Distinct"/><category term="Dock"/><category term="Encoding Responses in Tomcat"/><category term="Encoding and Decoding"/><category term="Escaping Characters"/><category term="Escaping Special Characters"/><category term="Events"/><category term="Faster Website"/><category term="Flex 3.0"/><category term="Flex 4 release Gumbo"/><category term="Flex Inactivity"/><category term="Flex Resizable  Custom Component"/><category term="Flex Skinning"/><category term="Gzip"/><category term="Insert"/><category term="Insert Ignore"/><category term="Invoking AIR"/><category term="Jave Flex"/><category term="JfreeChart Andriod"/><category term="Ksoap2"/><category term="Lazy Loading"/><category term="Loading Screen"/><category term="Localising"/><category term="Map"/><category term="Maximise"/><category term="Mercator cool maps"/><category term="Methods from External SWF"/><category term="Minimise"/><category term="Mvc Interceptors"/><category term="Mysql"/><category term="No Cache"/><category term="Object Comparison In Flex  AIR Action Script Java"/><category term="Open Source"/><category term="Performance"/><category term="Pjson"/><category term="Property Value"/><category term="RIA training"/><category term="Reading and Writing  Browser Cookie in Flex"/><category term="Reflection in Flex"/><category term="Replace"/><category term="Request Headers"/><category term="Resource Bundle"/><category term="Resources"/><category term="Resourcr Manager"/><category term="Response Headers"/><category term="Run AIR"/><category term="Security Error 2060:Security sandbox violation"/><category term="ShareThis"/><category term="SoapObject in Andriod"/><category term="Software Review"/><category term="Solr Query"/><category term="Solr White Spaces"/><category term="Stack"/><category term="String"/><category term="Swf Size"/><category term="Text Layout FrameWork"/><category term="Tomcat"/><category term="Tool Tip Andriod Chart"/><category term="TuneUp"/><category term="Typography"/><category term="WebContentGenerator"/><category term="WebContentInterceptor"/><category term="Window 7"/><category term="Xms"/><category term="Xmx"/><category term="achartengine Andriod"/><category term="ammaps"/><category term="background color"/><category term="cool maps"/><category term="debug"/><category term="delete"/><category term="education"/><category term="embed fonts"/><category term="flex remote object with java"/><category term="free Flex/AIR training course"/><category term="fullscreen AIR FLEX Flash"/><category term="hashmap"/><category term="heap size"/><category term="indexing"/><category term="key value component"/><category term="pixel fonts"/><category term="remove"/><category term="ribbit"/><category term="sharp fonts"/><category term="sqllite Adobe"/><category term="uninstalling AIR Flex application"/><category term="voice"/><category term="voip"/><category term="vrathore84"/><category term="web 2.0"/><category term="world maps"/><title type='text'>VRathore&#39;s Idea on Java and Flex</title><subtitle type='html'>Aroma of flex with java</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>64</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-788336606485519706</id><published>2012-07-12T03:29:00.000-07:00</published><updated>2012-07-12T03:30:57.574-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="achartengine Andriod"/><category scheme="http://www.blogger.com/atom/ns#" term="Afreechart Nadriod"/><category scheme="http://www.blogger.com/atom/ns#" term="Andriod Interactive Chart"/><category scheme="http://www.blogger.com/atom/ns#" term="Cross Hair Andriod Chart"/><category scheme="http://www.blogger.com/atom/ns#" term="JfreeChart Andriod"/><category scheme="http://www.blogger.com/atom/ns#" term="Tool Tip Andriod Chart"/><title type='text'>Interactive Charts in Andriod with Crosshairs and Data ToolTip</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Interactive Charts in Andriod with Crosshairs and Data ToolTip&lt;br /&gt;&lt;br /&gt;Making interactive chart on andriod is a tricky buisness , i had to face a lots of issues in one of my recent project to show interactive charts with crosshairs and data on crosshairs.&lt;br /&gt;When i started with the project i used achartengine library which had lots of inbuilt charts , but it lacked crosshairs and user interactivity.&lt;br /&gt;Then i started looking a afreechart, its a andriod version of jfreechart which had crosshairs in it, but it do not have developer guide as that is paid but it supported what i needed.&lt;br /&gt;&lt;br /&gt;Here are the screenshots of data interactive charts in my application.&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrqOdzAaGZa_1xulcF2K6kuciLNabyZmS1-y4Tx-HrsR7_Dckohn5jnvxS2PYosQzg-lS9NMSyWH1bL9DFafzokUJsNKE3DTBPTZV9gSFTFljSSdiyPzvPVc8f9c5B3b2xxCkHCVi47wjj/s1600/SC20120330-113002.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;192&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrqOdzAaGZa_1xulcF2K6kuciLNabyZmS1-y4Tx-HrsR7_Dckohn5jnvxS2PYosQzg-lS9NMSyWH1bL9DFafzokUJsNKE3DTBPTZV9gSFTFljSSdiyPzvPVc8f9c5B3b2xxCkHCVi47wjj/s320/SC20120330-113002.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;I would love to help if some body get struck on the same like i did as its very annoying.&lt;br /&gt;Cheers&lt;br /&gt;&lt;br /&gt;Varun Rathore&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/788336606485519706/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/788336606485519706' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/788336606485519706'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/788336606485519706'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2012/07/interactive-charts-in-andriod-with.html' title='Interactive Charts in Andriod with Crosshairs and Data ToolTip'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhrqOdzAaGZa_1xulcF2K6kuciLNabyZmS1-y4Tx-HrsR7_Dckohn5jnvxS2PYosQzg-lS9NMSyWH1bL9DFafzokUJsNKE3DTBPTZV9gSFTFljSSdiyPzvPVc8f9c5B3b2xxCkHCVi47wjj/s72-c/SC20120330-113002.png" height="72" width="72"/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-9182435224082885020</id><published>2012-07-06T04:35:00.000-07:00</published><updated>2012-07-06T04:35:10.662-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Andriod"/><category scheme="http://www.blogger.com/atom/ns#" term="Attribute Value"/><category scheme="http://www.blogger.com/atom/ns#" term="Ksoap2"/><category scheme="http://www.blogger.com/atom/ns#" term="Property Value"/><category scheme="http://www.blogger.com/atom/ns#" term="SoapObject in Andriod"/><title type='text'>Ksoap2 Getting Values of Property or Attribute in Andriod</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi All,&lt;br /&gt;
&lt;br /&gt;
You can get the values and names of Attibutes and Properties in Ksoap2 SoapObject&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSSyo_EHSQyFvqBwCyCSxHruOphp4r2P5Ys5Pj4y0gPgDvmcIuHRf7lBimE_8SynvWPsb4RyRcNyFWBR1APKG6DRXN4PQnu4PjpOc3vD3EWrTFAck4X9H0cMeQAkeqdpleq95Z-oota_5W/s1600/soap.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSSyo_EHSQyFvqBwCyCSxHruOphp4r2P5Ys5Pj4y0gPgDvmcIuHRf7lBimE_8SynvWPsb4RyRcNyFWBR1APKG6DRXN4PQnu4PjpOc3vD3EWrTFAck4X9H0cMeQAkeqdpleq95Z-oota_5W/s320/soap.jpg&quot; width=&quot;316&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
// GETTING ATTIRIBUTE NAME AND VALUES IN KSOAP2 &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt; yourSoapObject.getAttributeCount(); i++) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; AttributeInfo attInfo = new AttributeInfo();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; yourSoapObject.getAttributeInfo(i, attInfo);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String attributeName = attInfo.name;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String attributeValue = yourSoapObject.getAttribute(i).toString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;// GETTING PROPERTY NAME AND VALUES IN KSOAP2 &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for (int i = 0; i &amp;lt; yourSoapObject.getPropertyCount(); i++) &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; PropertyInfo attInfo = new PropertyInfo();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; yourSoapObject.getPropertyInfo(i, attInfo);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String propertyName = attInfo.name;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; String propertyValue = yourSoapObject.getProperty(i).toString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
Cheers&lt;br /&gt;

Varun Rathore &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/9182435224082885020/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/9182435224082885020' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/9182435224082885020'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/9182435224082885020'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2012/07/ksoap2-getting-values-of-property-or.html' title='Ksoap2 Getting Values of Property or Attribute in Andriod'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSSyo_EHSQyFvqBwCyCSxHruOphp4r2P5Ys5Pj4y0gPgDvmcIuHRf7lBimE_8SynvWPsb4RyRcNyFWBR1APKG6DRXN4PQnu4PjpOc3vD3EWrTFAck4X9H0cMeQAkeqdpleq95Z-oota_5W/s72-c/soap.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-6174494307127167127</id><published>2012-05-08T01:02:00.000-07:00</published><updated>2012-05-08T01:02:00.239-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Distinct"/><category scheme="http://www.blogger.com/atom/ns#" term="Insert"/><category scheme="http://www.blogger.com/atom/ns#" term="Insert Ignore"/><category scheme="http://www.blogger.com/atom/ns#" term="Mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="Replace"/><category scheme="http://www.blogger.com/atom/ns#" term="Varun Rathore"/><category scheme="http://www.blogger.com/atom/ns#" term="vrathore"/><title type='text'>MySql Inserting Distinct Values in Table</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_uoZ6otbZLuMJQWJABM_VR2U_D5tUqtzUX1tEDGFwDr0yeNpINUg7woS2lMoz3kf-IcaYLUYeUM3guSwyhvY4KAkD4CXFrxsbAwkddyvZaZ2wsISM2yKOPjJ8G5zudlan9VO-lKXyE1A4/s1600/distinct-webpage-index.gif&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;256&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_uoZ6otbZLuMJQWJABM_VR2U_D5tUqtzUX1tEDGFwDr0yeNpINUg7woS2lMoz3kf-IcaYLUYeUM3guSwyhvY4KAkD4CXFrxsbAwkddyvZaZ2wsISM2yKOPjJ8G5zudlan9VO-lKXyE1A4/s320/distinct-webpage-index.gif&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Way 1 -&amp;nbsp; using &lt;b&gt;REPLACE &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;REPLACE INTO `candidates`&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET `candidate_id` = &#39;000000146&#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `candidate_name` = 12345,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `candidate_rollnumber` = 12678;&lt;br /&gt;
If the record exists, it will be overwritten; if it does not yet exist, it will be created.&lt;br /&gt;
&lt;br /&gt;
Way 2 -&amp;nbsp; using &lt;b&gt;INSERT IGNORE&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/b&gt; INSERT IGNORE INTO `candidates`&lt;br /&gt;&amp;nbsp;&amp;nbsp; SET `candidate_id` = &#39;000000146&#39;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `candidate_name` = 12345,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; `candidate_rollnumber` = 12678;&lt;b&gt; &lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;
Here, if the &#39;candidate_id&#39; is already present in the database, it will be silently skipped (ignored).&lt;br /&gt;
&lt;br /&gt;

- Varun Rathore &lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/6174494307127167127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/6174494307127167127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6174494307127167127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6174494307127167127'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2012/05/mysql-inserting-distinct-values-in.html' title='MySql Inserting Distinct Values in Table'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_uoZ6otbZLuMJQWJABM_VR2U_D5tUqtzUX1tEDGFwDr0yeNpINUg7woS2lMoz3kf-IcaYLUYeUM3guSwyhvY4KAkD4CXFrxsbAwkddyvZaZ2wsISM2yKOPjJ8G5zudlan9VO-lKXyE1A4/s72-c/distinct-webpage-index.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-9067656078539846552</id><published>2012-04-29T22:38:00.000-07:00</published><updated>2012-04-29T22:38:21.560-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Calendar"/><category scheme="http://www.blogger.com/atom/ns#" term="Date"/><category scheme="http://www.blogger.com/atom/ns#" term="Date Suffix"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Varun Rathore"/><category scheme="http://www.blogger.com/atom/ns#" term="vrathore"/><category scheme="http://www.blogger.com/atom/ns#" term="vrathore84"/><title type='text'>Day of Month Suffix - st nd rd th</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here is a simple way to put suffix for day&lt;br /&gt;
&lt;br /&gt;
String getDayOfMonthSuffix(final int n)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;checkArgument(n &amp;gt;= 1 &amp;amp;&amp;amp; n &amp;lt;= 31), &quot;illegal day of month: &quot; + n);&lt;br /&gt;
&amp;nbsp;if (n &amp;gt;= 11 &amp;amp;&amp;amp; n &amp;lt;= 13)&lt;br /&gt;
{&lt;br /&gt;
return &quot;th&quot;;&lt;br /&gt;
}&lt;br /&gt;
&amp;nbsp;switch (n % 10)&lt;br /&gt;
{&lt;br /&gt;
&amp;nbsp;case 1:  return &quot;st&quot;;&lt;br /&gt;
case 2:  return &quot;nd&quot;;&lt;br /&gt;
&amp;nbsp;case 3:  return &quot;rd&quot;;&lt;br /&gt;
default: return &quot;th&quot;;&lt;br /&gt;
&amp;nbsp;}&lt;br /&gt;
}

&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/9067656078539846552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/9067656078539846552' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/9067656078539846552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/9067656078539846552'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2012/04/day-of-month-suffix-st-nd-rd-th.html' title='Day of Month Suffix - st nd rd th'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-2762408282798452063</id><published>2011-09-29T08:07:00.000-07:00</published><updated>2011-09-29T08:11:33.198-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache SOLR"/><category scheme="http://www.blogger.com/atom/ns#" term="Escaping Special Characters"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Solr Query"/><category scheme="http://www.blogger.com/atom/ns#" term="Solr White Spaces"/><category scheme="http://www.blogger.com/atom/ns#" term="Varun Rathore"/><title type='text'>Escaping Special Characters And White Space in SOLR in java</title><content type='html'>Escape Special characters in SOLR before Query &lt;br /&gt;here is the function to  escape the culprits&lt;br /&gt;&lt;br /&gt; public static String escapeQueryCulprits(String s)&lt;br /&gt; {&lt;br /&gt;           StringBuilder sb = new StringBuilder();&lt;br /&gt;           for (int i = 0; i &lt; s.length(); i++)&lt;br /&gt;           {&lt;br /&gt;             char c = s.charAt(i);&lt;br /&gt;             // These characters are part of the query syntax and must be escaped&lt;br /&gt;             if (c == &#39;\\&#39; || c == &#39;+&#39; || c == &#39;-&#39; || c == &#39;!&#39;  || c == &#39;(&#39; || c == &#39;)&#39; || c == &#39;:&#39;&lt;br /&gt;               || c == &#39;^&#39; || c == &#39;[&#39; || c == &#39;]&#39; || c == &#39;\&quot;&#39; || c == &#39;{&#39; || c == &#39;}&#39; || c == &#39;~&#39;&lt;br /&gt;               || c == &#39;*&#39; || c == &#39;?&#39; || c == &#39;|&#39; || c == &#39;&amp;&#39;  || c == &#39;;&#39;&lt;br /&gt;               )&lt;br /&gt;             {&lt;br /&gt;               sb.append(&#39;\\&#39;);&lt;br /&gt;             }&lt;br /&gt;             if(Character.isWhitespace(c))&lt;br /&gt;             {&lt;br /&gt;              sb.append(&quot; \\ &quot;);&lt;br /&gt;             }&lt;br /&gt;             sb.append(c);&lt;br /&gt;           }&lt;br /&gt;           return sb.toString();&lt;br /&gt;         }</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/2762408282798452063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/2762408282798452063' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/2762408282798452063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/2762408282798452063'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2011/09/escaping-special-characters-and-white.html' title='Escaping Special Characters And White Space in SOLR in java'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-3485742283431354622</id><published>2011-09-21T00:24:00.000-07:00</published><updated>2011-09-21T00:31:20.549-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Adobe Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="Base64 String"/><category scheme="http://www.blogger.com/atom/ns#" term="Encoding and Decoding"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Varun Rathore"/><title type='text'>A partial block (3 of 4 bytes) was dropped in Base64 String</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWK2atUVFNynOIPyewu2UOcsZ-9xjBVpZWdCtPgTd4iMFoyHeaw6KSyXdhd0rowJ4UVkYS7hNo4fOv0QAc3tOdBlFiwtCVkkEuBss0CPZzlSEyth3yi8WUUu2XcyRoecM_x_sPj2k_unDM/s1600/encode.jpg&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 250px; height: 257px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWK2atUVFNynOIPyewu2UOcsZ-9xjBVpZWdCtPgTd4iMFoyHeaw6KSyXdhd0rowJ4UVkYS7hNo4fOv0QAc3tOdBlFiwtCVkkEuBss0CPZzlSEyth3yi8WUUu2XcyRoecM_x_sPj2k_unDM/s400/encode.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5654712153692692706&quot; /&gt;&lt;/a&gt;&lt;br /&gt;When you face such a issue just use&lt;br /&gt;&lt;br /&gt;Flex :&lt;br /&gt;encodeURIComponent(String) in flex &lt;br /&gt;&lt;br /&gt;Java :  &lt;br /&gt;URIUtil.encodeQuery(String)&lt;br /&gt;&lt;br /&gt;Before posting the string in Browser as &quot;=&quot; and &quot;&amp;&quot; in the String create issue while decoding String.</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/3485742283431354622/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/3485742283431354622' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/3485742283431354622'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/3485742283431354622'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2011/09/partial-block-3-of-4-bytes-was-dropped.html' title='A partial block (3 of 4 bytes) was dropped in Base64 String'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWK2atUVFNynOIPyewu2UOcsZ-9xjBVpZWdCtPgTd4iMFoyHeaw6KSyXdhd0rowJ4UVkYS7hNo4fOv0QAc3tOdBlFiwtCVkkEuBss0CPZzlSEyth3yi8WUUu2XcyRoecM_x_sPj2k_unDM/s72-c/encode.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-7106015893458250056</id><published>2011-06-30T21:37:00.000-07:00</published><updated>2011-06-30T22:29:10.563-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cache"/><category scheme="http://www.blogger.com/atom/ns#" term="Mvc Interceptors"/><category scheme="http://www.blogger.com/atom/ns#" term="No Cache"/><category scheme="http://www.blogger.com/atom/ns#" term="Response Headers"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring"/><category scheme="http://www.blogger.com/atom/ns#" term="Varun Rathore"/><category scheme="http://www.blogger.com/atom/ns#" term="WebContentGenerator"/><category scheme="http://www.blogger.com/atom/ns#" term="WebContentInterceptor"/><title type='text'>Response Header with MVC interceptors in Spring</title><content type='html'>Response Header&#39;s in Spring can be easily set using org.springframework.web.servlet.support.WebContentGenerator as this is a abstract class so we use a direct known sub class for the same which is org.springframework.web.servlet.mvc.WebContentInterceptor , this Interceptor checks and prepares request and response. Checks for supported methods and a required session, and applies the specified number of cache seconds. &lt;br /&gt;&lt;br /&gt;Here is the Example, this should be under beans tag in your server-config.xml file&lt;br /&gt;&lt;br /&gt;&amp;lt;mvc:annotation-driven  /&amp;gt;  &lt;br /&gt;  &amp;lt;mvc:interceptors&gt;         &lt;br /&gt;  &amp;lt;bean id=&quot;webContentInterceptor&quot;  class=&quot;org.springframework.web.servlet.mvc.WebContentInterceptor&quot;&amp;gt;&lt;br /&gt;   &amp;lt;property name=&quot;cacheSeconds&quot; value=&quot;120&quot;/&amp;gt;&lt;br /&gt;   &amp;lt;property name=&quot;useExpiresHeader&quot; value=&quot;true&quot;/&amp;gt;&lt;br /&gt;   &amp;lt;property name=&quot;useCacheControlHeader&quot; value=&quot;true&quot;/&amp;gt;&lt;br /&gt;   &amp;lt;property name=&quot;requireSession&quot; value=&quot;false&quot;/&amp;gt;&lt;br /&gt;   &amp;lt;property name=&quot;useCacheControlNoStore&quot; value=&quot;true&quot; /&amp;gt;&lt;br /&gt;   &amp;lt;property name=&quot;cacheMappings&quot;&amp;gt;&lt;br /&gt;    &amp;lt;props&amp;gt;&lt;br /&gt;     &amp;lt;prop key=&quot;/**/*.html&quot;&gt;2000&amp;lt;/prop&amp;gt;&lt;br /&gt;                                        &amp;lt;prop key=&quot;/**/*.css&quot;&gt;500000&amp;lt;/prop&amp;gt;&lt;br /&gt;                                        &amp;lt;prop key=&quot;/**/*.js&quot;&gt;2592000&amp;lt;/prop&amp;gt;&lt;br /&gt;    &amp;lt;/props&amp;gt;&lt;br /&gt;   &amp;lt;/property&amp;gt;&lt;br /&gt;  &amp;lt;/bean&amp;gt;    &lt;br /&gt; &amp;lt;/mvc:interceptors&amp;gt;&lt;br /&gt;&lt;br /&gt;In CacheMapping attribute we can specify the cache time for different file types, as this increases the preformance of application.</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/7106015893458250056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/7106015893458250056' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/7106015893458250056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/7106015893458250056'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2011/06/response-header-with-mvc-interceptors.html' title='Response Header with MVC interceptors in Spring'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-1007440914412734337</id><published>2011-06-30T02:24:00.000-07:00</published><updated>2011-06-30T02:40:30.995-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Compression"/><category scheme="http://www.blogger.com/atom/ns#" term="Encoding Responses in Tomcat"/><category scheme="http://www.blogger.com/atom/ns#" term="Faster Website"/><category scheme="http://www.blogger.com/atom/ns#" term="Gzip"/><category scheme="http://www.blogger.com/atom/ns#" term="Performance"/><category scheme="http://www.blogger.com/atom/ns#" term="Tomcat"/><category scheme="http://www.blogger.com/atom/ns#" term="Varun Rathore"/><title type='text'>Gzip in Apache Tomcat - Faster Responses with Compression</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGxlIlrt7a-YMxc8PRxPZQepKfyGmHWN_gA1cq5WczhsC59vGvkdmz7BFYGQ7WHlROQsquwlMeS6paE7hBc74txihPqsF1A4bFGHyGOT9z4wSJ73aPi1TprkZ_SQib3Chcxyu_9nU6Tm9b/s1600/compression.jpg&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 400px; height: 300px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGxlIlrt7a-YMxc8PRxPZQepKfyGmHWN_gA1cq5WczhsC59vGvkdmz7BFYGQ7WHlROQsquwlMeS6paE7hBc74txihPqsF1A4bFGHyGOT9z4wSJ73aPi1TprkZ_SQib3Chcxyu_9nU6Tm9b/s400/compression.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5623945338932336162&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Today&#39;s Browser have capability to support gzip content and uncompressed the content to plain text. The data comes from server to client in a compressed form with increases the performance many times as less data get transfered on network.&lt;br /&gt;&lt;br /&gt;Just go to Tomcat/conf/Server.xml file and replace the default node &lt;br /&gt;&lt;br /&gt;   &amp;lt;Connector port=&quot;8080&quot; protocol=&quot;HTTP/1.1&quot; &lt;br /&gt;               connectionTimeout=&quot;20000&quot; &lt;br /&gt;               redirectPort=&quot;8443&quot; &amp;gt;&lt;br /&gt;&lt;br /&gt;with follwing&lt;br /&gt;&lt;br /&gt;&amp;lt;Connector port=&quot;8080&quot; maxHttpHeaderSize=&quot;8192&quot;&lt;br /&gt;        maxThreads=&quot;150&quot; minSpareThreads=&quot;25&quot; maxSpareThreads=&quot;75&quot;&lt;br /&gt;        enableLookups=&quot;false&quot; redirectPort=&quot;8443&quot; acceptCount=&quot;100&quot;&lt;br /&gt;        connectionTimeout=&quot;20000&quot; disableUploadTimeout=&quot;true&quot;&lt;br /&gt;        compression=&quot;on&quot;&lt;br /&gt;  compressionMinSize=&quot;2048&quot;&lt;br /&gt;  noCompressionUserAgents=&quot;gozilla, traviata&quot;&lt;br /&gt;  compressableMimeType=&quot;text/html,text/xml,application/json&quot;&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Make sure you add the MIME Type which you want to add compression as follows &lt;br /&gt;compressableMimeType=&quot;text/html,text/xml,application/json&quot;&lt;br /&gt;&lt;br /&gt;# Tomcat handles the compression for the supporting brorwers and do not compress response in case the browser is from monolithic age :)&lt;br /&gt;&lt;br /&gt;- Varun Rathore</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/1007440914412734337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/1007440914412734337' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/1007440914412734337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/1007440914412734337'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2011/06/gzip-in-apache-tomcat-faster-responses.html' title='Gzip in Apache Tomcat - Faster Responses with Compression'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGxlIlrt7a-YMxc8PRxPZQepKfyGmHWN_gA1cq5WczhsC59vGvkdmz7BFYGQ7WHlROQsquwlMeS6paE7hBc74txihPqsF1A4bFGHyGOT9z4wSJ73aPi1TprkZ_SQib3Chcxyu_9nU6Tm9b/s72-c/compression.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-6898674071676318291</id><published>2011-06-21T02:05:00.001-07:00</published><updated>2011-06-21T02:23:29.316-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cross domain javascript calls"/><category scheme="http://www.blogger.com/atom/ns#" term="Pjson"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring"/><title type='text'>PJson in Spring using JacksonJson (Cross Domain Issues)</title><content type='html'>We can create pjson (json with padding) to achieve cross domain java-script call which is very important if data is coming from other domain.&lt;br /&gt;&lt;br /&gt;Here is what i did to get pjson from object.&lt;br /&gt;I created a class MappingJacksonJsonpView extended it by AbstractView, now here is the trick&lt;br /&gt;I overrided a method renderMergedOutputModel as follows:&lt;br /&gt;&lt;br /&gt; @Override&lt;br /&gt; protected void renderMergedOutputModel(Map&lt;String, Object&gt; model, HttpServletRequest request, HttpServletResponse response) throws Exception&lt;br /&gt; {&lt;br /&gt;  Object value = filterModel(model);&lt;br /&gt;  JsonGenerator generator = objectMapper.getJsonFactory().createJsonGenerator(response.getOutputStream(), encoding);&lt;br /&gt;  String callback = request.getParameter(&quot;jsoncallback&quot;);&lt;br /&gt;  prefixJson = false;&lt;br /&gt;  if (callback!=null)&lt;br /&gt;  {&lt;br /&gt;   prefixJson = true;&lt;br /&gt;  }&lt;br /&gt;  if (prefixJson)&lt;br /&gt;  {&lt;br /&gt;   generator.writeRaw(callback + &quot;(&quot;);&lt;br /&gt;  }&lt;br /&gt;  objectMapper.writeValue(generator, value);&lt;br /&gt;  generator.flush();&lt;br /&gt;&lt;br /&gt;  if (prefixJson)&lt;br /&gt;  {&lt;br /&gt;   generator.writeRaw(&quot;);&quot;);&lt;br /&gt;   generator.flush();&lt;br /&gt;  }&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;and make sure you put entry in your servlet.xml file&lt;br /&gt;&amp;lt;property name=&quot;defaultViews&quot;&amp;gt;&lt;br /&gt;&amp;lt;list&amp;gt;&lt;br /&gt;&amp;lt;bean class=&quot;com.views.utility.MappingJacksonJsonpView&quot; /&amp;gt;</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/6898674071676318291/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/6898674071676318291' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6898674071676318291'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6898674071676318291'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2011/06/pjson-in-spring-using-jacksonjson-cross.html' title='PJson in Spring using JacksonJson (Cross Domain Issues)'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-5910570375641832303</id><published>2011-05-26T01:38:00.000-07:00</published><updated>2011-05-26T01:41:33.021-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIR"/><category scheme="http://www.blogger.com/atom/ns#" term="AS3"/><category scheme="http://www.blogger.com/atom/ns#" term="As3 signals"/><category scheme="http://www.blogger.com/atom/ns#" term="Events"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="messages"/><title type='text'>AS3 Signals - Faster Messages in AS3</title><content type='html'>AS3 signals are free , very fast and relaible messaging tool, i have been using them from last 6 months , below are some features of Signals which are more superior than Events&lt;br /&gt;&lt;br /&gt;Dowload it from &lt;a href=&quot;https://github.com/robertpenner/as3-signals/wiki&quot;&gt;https://github.com/robertpenner/as3-signals/wiki&lt;/a&gt;/&lt;br /&gt;&lt;br /&gt;Signal&#39;s Salient Features&lt;br /&gt;&lt;br /&gt;    Remove all event listeners : signal.removeAll();&lt;br /&gt;&lt;br /&gt;    Retrieve the number of listeners : signal.numListeners&lt;br /&gt;&lt;br /&gt;   Listeners can be added for a one-time call and removed automatically on dispatch:&lt;br /&gt;&lt;br /&gt;    signal.addOnce(theListener); // result: signal has one listener&lt;br /&gt;    signal.dispatch(theEvent);   // result: theListener is called, signal now has no listeners&lt;br /&gt;&lt;br /&gt;    A Signal can be initialized with value classes that will validate value objects on dispatch (optional):&lt;br /&gt;&lt;br /&gt;    // A Signal that will dispatch a String and an integer:&lt;br /&gt;    progress = new Signal(String, int);&lt;br /&gt;    //later:&lt;br /&gt;    progress.dispatch(); // will throw ArgumentError &lt;br /&gt;    progress.dispatch(&#39;The Answer&#39;); // will throw ArgumentError &lt;br /&gt;    progress.dispatch(&#39;The Answer&#39;, 42.5); // will throw ArgumentError &lt;br /&gt;    progress.dispatch(&#39;The Answer&#39;, 42); // will succeed&lt;br /&gt;&lt;br /&gt;   &lt;br /&gt;Varun Rathore</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/5910570375641832303/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/5910570375641832303' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/5910570375641832303'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/5910570375641832303'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2011/05/as3-signals-faster-messages-in-as3.html' title='AS3 Signals - Faster Messages in AS3'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-5970711900292250196</id><published>2011-05-25T23:58:00.000-07:00</published><updated>2011-05-26T00:03:33.886-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AlwaysToFront"/><category scheme="http://www.blogger.com/atom/ns#" term="Dock"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="Maximise"/><category scheme="http://www.blogger.com/atom/ns#" term="Minimise"/><category scheme="http://www.blogger.com/atom/ns#" term="sqllite Adobe AIR Flex Offline"/><title type='text'>Adobe AIR - Opening Main Appllication from Child Window</title><content type='html'>Hi, I was trying to make the Main Application open and dock from a child window, here is the simple code to do this, it check if the Main application is not docked, if not if put that to front.&lt;br /&gt;&lt;br /&gt;    if(FlexGlobals.topLevelApplication.stage.nativeWindow.visible == false)&lt;br /&gt;{&lt;br /&gt;     FlexGlobals.topLevelApplication.stage.nativeWindow.visible = true;&lt;br /&gt;     FlexGlobals.topLevelApplication.stage.nativeWindow.orderToFront();&lt;br /&gt;     &lt;br /&gt;}&lt;br /&gt;    FlexGlobals.topLevelApplication.stage.nativeWindow.orderToFront();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-Varun Rathore</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/5970711900292250196/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/5970711900292250196' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/5970711900292250196'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/5970711900292250196'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2011/05/adobe-air-opening-main-appllication.html' title='Adobe AIR - Opening Main Appllication from Child Window'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-4568917031815224248</id><published>2011-05-17T23:07:00.000-07:00</published><updated>2011-05-17T23:23:16.599-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache SOLR"/><category scheme="http://www.blogger.com/atom/ns#" term="heap size"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="Xms"/><category scheme="http://www.blogger.com/atom/ns#" term="Xmx"/><title type='text'>Increasing Java Heap Size - Posting Bigger Files in Apache SOLR</title><content type='html'>In some cases we need to post bigger xml file in SOLR server for indexing, if you post the file directly you get OutOfMemoryExceptions to avoid such failure, we need to change the max memory size that the heap can reach for the JVM&lt;br /&gt;&lt;br /&gt;Here is the Command by which we can increase the heap size&lt;br /&gt;java -Xms128m -Xmx8192m - jar &lt;br /&gt;&lt;br /&gt;So in order to post bigger files now we use &lt;br /&gt;java -Xms128m -Xmx8192m - jar post.jar &amp;lt;*.xml&amp;gt&lt;br /&gt;&lt;br /&gt;The -Xmx argument defines the max memory size that the heap can reach for JVM.&lt;br /&gt;The -Xms argument sets the initial heap memory size for the JVM.&lt;br /&gt;&lt;br /&gt;-Varun Rathore</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/4568917031815224248/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/4568917031815224248' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/4568917031815224248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/4568917031815224248'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2011/05/increasing-java-heap-size-posting.html' title='Increasing Java Heap Size - Posting Bigger Files in Apache SOLR'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-1405206449073369858</id><published>2011-05-17T22:33:00.000-07:00</published><updated>2011-05-17T22:40:19.842-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="apache SOLR"/><category scheme="http://www.blogger.com/atom/ns#" term="delete"/><category scheme="http://www.blogger.com/atom/ns#" term="indexing"/><category scheme="http://www.blogger.com/atom/ns#" term="remove"/><title type='text'>Apache SOLR , Deleting-Removing all data at one Go</title><content type='html'>If we need to remove/delete the indexed data from SOLR server here is a simple one line command which does the magic for you.&lt;br /&gt;&lt;br /&gt;java -Ddata=args -jar post.jar &quot;&amp;lt;delete&amp;gt&amp;lt;query&amp;gt*:*&amp;lt;/query&amp;gt&amp;lt;/delete&amp;gt&quot; &lt;br /&gt;&lt;br /&gt;-Varun Rathore</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/1405206449073369858/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/1405206449073369858' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/1405206449073369858'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/1405206449073369858'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2011/05/apache-solr-deleting-removing-all-data.html' title='Apache SOLR , Deleting-Removing all data at one Go'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-6858884740818601827</id><published>2009-11-30T22:32:00.000-08:00</published><updated>2009-11-30T22:38:18.989-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="education"/><category scheme="http://www.blogger.com/atom/ns#" term="free Flex/AIR training course"/><category scheme="http://www.blogger.com/atom/ns#" term="RIA training"/><title type='text'>Free Education To Freshers and Project Training</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF0-nSekC7quqy1-qCZxxIAnY8Bb77pSL36knlVFA9t0mBC4b1KO2M7aPukKnEUJerX0ls-Ndclxs0aET2JGniTi18X8_8FIBcqgDowqvAJfAo3BdVqE3u1oXpa9gjZ_A1V0VOXDBrX-YY/s1600/pistol.jpg&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 250px; height: 200px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF0-nSekC7quqy1-qCZxxIAnY8Bb77pSL36knlVFA9t0mBC4b1KO2M7aPukKnEUJerX0ls-Ndclxs0aET2JGniTi18X8_8FIBcqgDowqvAJfAo3BdVqE3u1oXpa9gjZ_A1V0VOXDBrX-YY/s400/pistol.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5410153230681548610&quot; /&gt;&lt;/a&gt;&lt;br /&gt;As the RIA worker i am starting on providing free education to college students and freshers on Flex/AIR and java development to prepare them for Interview and to open there mind on a rich development practices .. This will be a experimental step to educate newbies , I will be covering the basic application development methodologies and will help them create applications for their projects.&lt;br /&gt;Please feel free to contact me at &lt;br /&gt;&lt;br /&gt;Varun Rathore&lt;br /&gt;+919988178054&lt;br /&gt;vrathore84@gmail.com</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/6858884740818601827/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/6858884740818601827' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6858884740818601827'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6858884740818601827'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/11/free-education-to-freshers-and-project.html' title='Free Education To Freshers and Project Training'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjF0-nSekC7quqy1-qCZxxIAnY8Bb77pSL36knlVFA9t0mBC4b1KO2M7aPukKnEUJerX0ls-Ndclxs0aET2JGniTi18X8_8FIBcqgDowqvAJfAo3BdVqE3u1oXpa9gjZ_A1V0VOXDBrX-YY/s72-c/pistol.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-5702535719374073368</id><published>2009-11-29T21:15:00.000-08:00</published><updated>2009-11-29T21:21:13.474-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIR look and feel"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex Skinning"/><category scheme="http://www.blogger.com/atom/ns#" term="Resources"/><title type='text'>Some Useful Flex AIR Skinning Resources</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYKy0MTQKarYjvWOqynbg8XbbxLAnQfIZWVUJHhN64l-ucZSD-GeCIbUeUVDwQSWYLhG9jD0e4tXqoN4cVs2pazDyhgJcWwxbh0jo0YAFw0yb6DexeNZI2_qEcx1GhjOyVCCcf9ZkpwXH5/s1600/30039.jpg&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 350px; height: 350px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYKy0MTQKarYjvWOqynbg8XbbxLAnQfIZWVUJHhN64l-ucZSD-GeCIbUeUVDwQSWYLhG9jD0e4tXqoN4cVs2pazDyhgJcWwxbh0jo0YAFw0yb6DexeNZI2_qEcx1GhjOyVCCcf9ZkpwXH5/s400/30039.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5409762178131054514&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Check out some wonderful flex skinning resources at &lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://sites.google.com/a/flexets.com/usefull-infor/resources/flex-skinning&quot;&gt;Cool Links to make cool looking Apps&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/5702535719374073368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/5702535719374073368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/5702535719374073368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/5702535719374073368'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/11/some-useful-flex-air-skinning-resources.html' title='Some Useful Flex AIR Skinning Resources'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYKy0MTQKarYjvWOqynbg8XbbxLAnQfIZWVUJHhN64l-ucZSD-GeCIbUeUVDwQSWYLhG9jD0e4tXqoN4cVs2pazDyhgJcWwxbh0jo0YAFw0yb6DexeNZI2_qEcx1GhjOyVCCcf9ZkpwXH5/s72-c/30039.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-6325022577116203589</id><published>2009-11-29T20:38:00.000-08:00</published><updated>2009-11-29T21:04:21.646-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cool Utility"/><category scheme="http://www.blogger.com/atom/ns#" term="Software Review"/><category scheme="http://www.blogger.com/atom/ns#" term="TuneUp"/><category scheme="http://www.blogger.com/atom/ns#" term="Window 7"/><title type='text'>A Great Window Utility - Windows 7 TuneUp</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjohh39bambg7o558KNXrXecvnxAqYCcNTh4NJyPsGy2O1gQAEMvbHC2qTGTirunVabXxKCETzLOE7OhH2LCQP852jWSqnFmtcWK4jsi23JHl9fIEJr3gSkdGMIyuX8mZAaaG2xB78Huv-e/s1600/small_screen.png&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 228px; height: 162px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjohh39bambg7o558KNXrXecvnxAqYCcNTh4NJyPsGy2O1gQAEMvbHC2qTGTirunVabXxKCETzLOE7OhH2LCQP852jWSqnFmtcWK4jsi23JHl9fIEJr3gSkdGMIyuX8mZAaaG2xB78Huv-e/s400/small_screen.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5409756928765185138&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Windows 7 TuneUp is a great Window utility which makes you forget about PC maintenance and security, Loaded with many tools such as Registry Cleaner,Registry Defragmenter,Junk Files Cleaner, Duplicate Files Finder,Smart Uninstaller,Service Manager,Startup Manager and many more which help you get rid of all the maintenance problems for the system. I recomend this personally as it saved my sysytem from getting crashed and help me save my formatting time. &lt;br /&gt;One of the coolest thing is its very easy installation and free support and service.&lt;br /&gt;Check out this amazing software at &lt;a href=&quot;http://www.windsty.com/products/windows_7_tuneupsuite/windows-7-tuneup.html&quot;&gt;WINDOW 7 TuneUp&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/6325022577116203589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/6325022577116203589' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6325022577116203589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6325022577116203589'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/11/great-window-utility-windows-7-tuneup.html' title='A Great Window Utility - Windows 7 TuneUp'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjohh39bambg7o558KNXrXecvnxAqYCcNTh4NJyPsGy2O1gQAEMvbHC2qTGTirunVabXxKCETzLOE7OhH2LCQP852jWSqnFmtcWK4jsi23JHl9fIEJr3gSkdGMIyuX8mZAaaG2xB78Huv-e/s72-c/small_screen.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-7398682598638261846</id><published>2009-10-27T02:23:00.000-07:00</published><updated>2009-10-27T02:49:57.659-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADL AIR"/><category scheme="http://www.blogger.com/atom/ns#" term="ADL Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="Batch File"/><category scheme="http://www.blogger.com/atom/ns#" term="Command Prompt"/><category scheme="http://www.blogger.com/atom/ns#" term="Invoking AIR"/><category scheme="http://www.blogger.com/atom/ns#" term="Run AIR"/><title type='text'>Invoking AIR Application using Batch File</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5vpQ6BS07dXL2kWcQiqrIoyvyckSZwzQMayezH4Es9OLa8q7GlitApHYzyVvbIBHkVePjRmLUPSBJ5EwApPzRtnnHiDq-3VjaEOLUFo422XqqgEh9kM8SobREPJgnMfoKB8xvo7CPyJO8/s1600-h/cardboard-box-open-lg.jpg&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 400px; height: 313px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5vpQ6BS07dXL2kWcQiqrIoyvyckSZwzQMayezH4Es9OLa8q7GlitApHYzyVvbIBHkVePjRmLUPSBJ5EwApPzRtnnHiDq-3VjaEOLUFo422XqqgEh9kM8SobREPJgnMfoKB8xvo7CPyJO8/s400/cardboard-box-open-lg.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5397214273000785218&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I am pretty sure if we are using a application which interacts with other application we need to invoke it using command propmt . Here is a simple way to invoke the application ..Also while invoking sometime we need to pass variables to the application as we do in flash vars.. &lt;br /&gt;&lt;br /&gt;First of all we need to set the environment variable for accessing the flex sdk in the system.. Add the following path to the sysytem path variable in your environment variable&lt;br /&gt;C:\Program Files\Adobe\Flex Builder 3\sdks\3.0.0\bin&lt;br /&gt;&lt;br /&gt;Note : It should point to the sdk&#39;s bin location in mycase it resided in C:/ Drive .&lt;br /&gt;&lt;br /&gt;To Run the application we will use ADL(AIR Debug Launcher) using the following syntax:-&lt;br /&gt;adl [-runtime runtime-directory] [-pubid publisher-id] [-nodebug] application.xml [root-directory] [-- arguments]&lt;br /&gt; &lt;br /&gt;In my case i used the following line on my command prompt&lt;br /&gt;F:\PROJECTS\Printing\bin&gt;adl Printing-app.xml -- 321 0 active&lt;br /&gt;&lt;br /&gt;First i reach to the point where my application bin folder reside(having compiled swf and application descriptor file) then using adl to invoke my application-app.xml &lt;br /&gt;&lt;br /&gt;Note:-&lt;br /&gt;After the application-app.xml i added -- and then i gave three arguments separated my space.&lt;br /&gt;&lt;br /&gt;In the application i can get the aruments as follows :-&lt;br /&gt; We listen the following function in the application invoke=&quot;onInvoke(event)&quot;&lt;br /&gt;&lt;br /&gt;private function onInvoke(e:InvokeEvent):void &lt;br /&gt;{&lt;br /&gt; var arguments : ArrayCollection = new ArrayCollection( e.arguments );&lt;br /&gt;}   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here i get all the arguments in a arraycollection.</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/7398682598638261846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/7398682598638261846' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/7398682598638261846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/7398682598638261846'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/10/invoking-air-application-using-batch.html' title='Invoking AIR Application using Batch File'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5vpQ6BS07dXL2kWcQiqrIoyvyckSZwzQMayezH4Es9OLa8q7GlitApHYzyVvbIBHkVePjRmLUPSBJ5EwApPzRtnnHiDq-3VjaEOLUFo422XqqgEh9kM8SobREPJgnMfoKB8xvo7CPyJO8/s72-c/cardboard-box-open-lg.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-6596809612357558922</id><published>2009-10-11T22:20:00.000-07:00</published><updated>2009-10-11T22:23:32.530-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Reading and Writing  Browser Cookie in Flex"/><title type='text'>Reading and Writing  Browser Cookie in Flex</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbbpeZJJi4RgtDIVqHy29FRKbB2p0XeRI1yGPFcWd62oBR9wMtvbN80vA3E02ep3ShF1gJ1AaJ0IBzxnUug11_SRwtUVXVvKuDRCabCaPiLOSIeEfUtGGsO_cssNdb52xvTr-04eP0PVKf/s1600-h/cookie-bite-web.jpg&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 300px; height: 364px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbbpeZJJi4RgtDIVqHy29FRKbB2p0XeRI1yGPFcWd62oBR9wMtvbN80vA3E02ep3ShF1gJ1AaJ0IBzxnUug11_SRwtUVXVvKuDRCabCaPiLOSIeEfUtGGsO_cssNdb52xvTr-04eP0PVKf/s400/cookie-bite-web.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5391579812336931458&quot; /&gt;&lt;/a&gt;&lt;br /&gt;A browser cookie is a small piece of information sent by a web server to a web browser to be stored for future use. The data in the browser cookie will be sent back to the web server whenever the browser reconnects to the web site.&lt;br /&gt;&lt;br /&gt;Cookies are commonly used to store user preference information, such as web site options. Cookies are also used to store shopping cart contents. The most security-relevant use of browser cookies is when they are used to store authentication data, such as user names and passwords. &lt;br /&gt;&lt;br /&gt;To Read and write Cookie from a flex application we will use Javascript &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; //Following function will set the cookie in the user browser&lt;br /&gt;function setCookie(c_name,value,expiredays)&lt;br /&gt;   {&lt;br /&gt;&lt;br /&gt;   value = document.getElementById(&#39;user&#39;).value;&lt;br /&gt;   var exdate=new Date();&lt;br /&gt;   exdate.setDate(exdate.getDate()+expiredays);&lt;br /&gt;   document.cookie=c_name+ &quot;=&quot; +escape(value)+((expiredays==null) ? &quot;&quot; : &quot;; expires=&quot;+exdate.toGMTString());&lt;br /&gt;   }&lt;br /&gt;   &lt;br /&gt;   &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; //Following function will return Cookie&lt;br /&gt;     function getCookie(c_name){&lt;br /&gt;     &lt;br /&gt;   if (document.cookie.length&gt;0)&lt;br /&gt;     {&lt;br /&gt;     c_start=document.cookie.indexOf(c_name + &quot;=&quot;);&lt;br /&gt;     if (c_start!=-1)&lt;br /&gt;       { &lt;br /&gt;       c_start=c_start + c_name.length+1 ;&lt;br /&gt;       c_end=document.cookie.indexOf(&quot;;&quot;,c_start);&lt;br /&gt;       if (c_end==-1) c_end=document.cookie.length       &lt;br /&gt;       return unescape(document.cookie.substring(c_start,c_end));&lt;br /&gt;       } &lt;br /&gt;     }&lt;br /&gt;    &lt;br /&gt;   return &quot;&quot;;&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;For reading a cookie Visitor we will use the following line in Flex code:-&lt;br /&gt;var visitorId : String = ExternalInterface.call(&quot;getCookie&quot;,&quot;Visitor&quot;);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;Varun</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/6596809612357558922/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/6596809612357558922' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6596809612357558922'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6596809612357558922'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/10/reading-and-writing-browser-cookie-in.html' title='Reading and Writing  Browser Cookie in Flex'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbbpeZJJi4RgtDIVqHy29FRKbB2p0XeRI1yGPFcWd62oBR9wMtvbN80vA3E02ep3ShF1gJ1AaJ0IBzxnUug11_SRwtUVXVvKuDRCabCaPiLOSIeEfUtGGsO_cssNdb52xvTr-04eP0PVKf/s72-c/cookie-bite-web.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-3537457534143951847</id><published>2009-08-26T22:00:00.000-07:00</published><updated>2009-08-26T22:11:37.551-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AIR"/><category scheme="http://www.blogger.com/atom/ns#" term="Challenge"/><category scheme="http://www.blogger.com/atom/ns#" term="Flex"/><title type='text'>Flex Challenge to know your acquisitions</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsiD9x2xdRNDfSV7iYrJ6afozbTEjTWJKNU1Jn4oxDel23LifIRqf5b8GlQx4zmWffSTMKCQVNhE6gqi51YYO9UcEWBgQhjAOWtUeaD1lQOD60v0TnK1UmXxfqJ65iJ9lbcA5QwkgijSwF/s1600-h/AppIcon.png&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 191px; height: 59px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsiD9x2xdRNDfSV7iYrJ6afozbTEjTWJKNU1Jn4oxDel23LifIRqf5b8GlQx4zmWffSTMKCQVNhE6gqi51YYO9UcEWBgQhjAOWtUeaD1lQOD60v0TnK1UmXxfqJ65iJ9lbcA5QwkgijSwF/s400/AppIcon.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5374504558969472786&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Here is a good go-ahead step by Adobe india for flex developer to know their skills&lt;br /&gt;&lt;br /&gt;Check out the great application with a great challenge at&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://flashahead.adobe.com/challenges/&quot;&gt;http://flashahead.adobe.com/challenges/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I finised the challange in less than 20 minutes. :)&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;&lt;br /&gt;Varun Rathore&lt;br /&gt;&lt;br /&gt;http://www.vrathore.blogspot.com</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/3537457534143951847/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/3537457534143951847' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/3537457534143951847'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/3537457534143951847'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/08/flex-challenge-to-know-your.html' title='Flex Challenge to know your acquisitions'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsiD9x2xdRNDfSV7iYrJ6afozbTEjTWJKNU1Jn4oxDel23LifIRqf5b8GlQx4zmWffSTMKCQVNhE6gqi51YYO9UcEWBgQhjAOWtUeaD1lQOD60v0TnK1UmXxfqJ65iJ9lbcA5QwkgijSwF/s72-c/AppIcon.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-3743515825697689646</id><published>2009-08-26T02:04:00.000-07:00</published><updated>2009-08-26T02:16:09.457-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript"/><category scheme="http://www.blogger.com/atom/ns#" term="Adobe Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="ShareThis"/><title type='text'>Using ShareThis in Flex-Flash</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigSARD3VvCtraD4AYokVjv1oqTe2mcbW7lE1s-Opty5jLGQbXmSMWKfRj0b3DONWLF8DyXWfqaYd2YgJxjPvi7u8YOEXK3TlHD-PMkTADPOJ9GLQKCg2rEKoJVgZZWXoTcrWjTweLzDw76/s1600-h/sharethis_logo_new.gif&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 151px; height: 38px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigSARD3VvCtraD4AYokVjv1oqTe2mcbW7lE1s-Opty5jLGQbXmSMWKfRj0b3DONWLF8DyXWfqaYd2YgJxjPvi7u8YOEXK3TlHD-PMkTADPOJ9GLQKCg2rEKoJVgZZWXoTcrWjTweLzDw76/s400/sharethis_logo_new.gif&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5374198623799150850&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Wondering when ShareThis would actually provide a .swf file to be loaded in the fash file in stead of calling a JavaScript function to open the ShareThispop in the new window.&lt;br /&gt;First of all we need to go to sharethis.com publisher section and customize your widget, you will get a javascript code by registering your email address. Here is javascript code what i got :-&lt;br /&gt;&lt;br /&gt;script type=&quot;text/javascript&quot; src=&quot;http://w.sharethis.com/button/sharethis.js#publisher=9f363e20-dc32-444d-a8c9-afd21615fd57&amp;amp;type=website&amp;amp;popup=true&amp;amp;embeds=true&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;// ACTIONSCRIPT CODE&lt;br /&gt;     private function shareThis():void&lt;br /&gt;     {&lt;br /&gt;   var url:String = &quot;http://www.vrathore.blogspot.com&quot;;&lt;br /&gt;   var title:String = &quot;VARUN-RATHORE&quot;;&lt;br /&gt;      ExternalInterface.call(&quot;ShareThis&quot;, url, title);&lt;br /&gt;     }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Using a javascript code in the html file for opening the pop window&lt;br /&gt;// JAVASCRIPT CODE&lt;br /&gt; function ShareThis(url, title)&lt;br /&gt; {&lt;br /&gt;  url = window.location;&lt;br /&gt;    var s = SHARETHIS.addEntry({&lt;br /&gt;      url: url,&lt;br /&gt;      title: title&lt;br /&gt;    }, {button:false,popup:true});&lt;br /&gt;    s.popup()&lt;br /&gt;    return false;&lt;br /&gt; }&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;&lt;br /&gt;Varun Rathore</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/3743515825697689646/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/3743515825697689646' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/3743515825697689646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/3743515825697689646'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/08/using-sharethis-in-flex-flash.html' title='Using ShareThis in Flex-Flash'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEigSARD3VvCtraD4AYokVjv1oqTe2mcbW7lE1s-Opty5jLGQbXmSMWKfRj0b3DONWLF8DyXWfqaYd2YgJxjPvi7u8YOEXK3TlHD-PMkTADPOJ9GLQKCg2rEKoJVgZZWXoTcrWjTweLzDw76/s72-c/sharethis_logo_new.gif" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-8352224704595674824</id><published>2009-07-13T23:53:00.000-07:00</published><updated>2009-07-14T00:00:08.523-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Actionscript"/><category scheme="http://www.blogger.com/atom/ns#" term="Adobe Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="Configuration"/><category scheme="http://www.blogger.com/atom/ns#" term="Flash"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring"/><title type='text'>Spring ActionScript Configuration in Flash/Flex/AIR application</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuEKC1Z8OXVBW6s1GqYXUoN1CGKEfLFUVFz_abL529lyR8zBh_hGjM1xVTVKVYDh7_Xf4M8eTWNit8C19hlOdGr516qFrRuvhDW-1cnEvUAlgd8ERpQBCaMYy9ybg8OEfrriKDlw0OS67x/s1600-h/Configuration.png&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 400px; height: 394px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuEKC1Z8OXVBW6s1GqYXUoN1CGKEfLFUVFz_abL529lyR8zBh_hGjM1xVTVKVYDh7_Xf4M8eTWNit8C19hlOdGr516qFrRuvhDW-1cnEvUAlgd8ERpQBCaMYy9ybg8OEfrriKDlw0OS67x/s400/Configuration.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5358207041057110050&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Just as we use the applicationContext.xml in java application where we map the classes to the objecys in the context file and mapping the variables in the class files to the properties in the configuration file, we can use a simialr methodolgy in our flex application and get the changes to the variable by just changing in the configuration file , without building or refreshing the application.&lt;br /&gt;&lt;br /&gt;Here is the code sniplet which is used to achive the following :-&lt;br /&gt;            // spring actionscript config&lt;br /&gt;           var applicationContext : FlexXMLApplicationContext =new FlexXMLApplicationContext(&quot;config.xml&quot;);&lt;br /&gt;           applicationContext .addEventListener(Event.COMPLETE, onApplicationContextComplete);&lt;br /&gt;           applicationContext.load(); &lt;br /&gt;&lt;br /&gt;        protected function onApplicationContextComplete(event:Event):void&lt;br /&gt;        {&lt;br /&gt;            var appConfig  : AppConfig = applicationContext.getObject(&quot;appConfig&quot;); &lt;br /&gt;            model.appConfig = appConfig;&lt;br /&gt;            resourceManager.localeChain = [appConfig.locale];  &lt;br /&gt;         &lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;  // HERE model.appConfig is the actionscript class which i have mapped to the object in my configuration file.&lt;br /&gt;AppConfig.as file is as follows :-&lt;br /&gt;package com.infoswell.model.global&lt;br /&gt;{&lt;br /&gt; [Bindable]&lt;br /&gt; public class AppConfig&lt;br /&gt; {&lt;br /&gt;  // src path used as root to locate images, etc.&lt;br /&gt;        public var srcPath:String = &quot;&quot;;&lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;        // locale for menu config path &lt;br /&gt;        // note: curently resource bundle properties locale from project compile options&lt;br /&gt;        public var locale:String = &quot;en_US&quot;;     &lt;br /&gt;&lt;br /&gt;  public function AppConfig()&lt;br /&gt;  {&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The config.xml is as follows:-&lt;br /&gt;&lt;?xml version=&quot;1.0&quot;?&gt;&lt;br /&gt;&lt;objects xmlns=&quot;http://www.pranaframework.org/objects&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;&lt;br /&gt;         xsi:schemaLocation=&quot;http://www.pranaframework.org/objects&lt;br /&gt;                             http://www.pranaframework.org/schema/objects/prana-objects-0.6.xsd&quot;&gt;&lt;br /&gt;    &lt;object id=&quot;appConfig&quot; class=&quot;com.model.global.AppConfig&quot;&gt;&lt;br /&gt;        &lt;!-- default locale --&gt;  &lt;br /&gt;        &lt;property name=&quot;locale&quot; value=&quot;en_US&quot;/&gt;  &lt;br /&gt;  &lt;property name=&quot;srcPath&quot; value=&quot;testing&quot; /&gt;&lt;br /&gt;    &lt;/object&gt;&lt;br /&gt;&lt;/objects&gt;&lt;br /&gt;                                       &lt;br /&gt;The swc file which is used in the application can be created as follows :-&lt;br /&gt;First download the source using a subversion client from the following url:&lt;br /&gt;&lt;br /&gt;https://src.springframework.org/svn/se-springactionscript-as/&lt;br /&gt;&lt;br /&gt;Step into the ant folder and execute “ant” to see the options. You can create a debug enabled version, a release, documentation. I created the debug enabled version with the following command. Of course you do have to have ant on your path. Do not forget to change the build.properties. You need to change the FLEX_HOME parameter as described in the readme file that comes with the sources.&lt;br /&gt;&lt;br /&gt;ant compile-main-debug&lt;br /&gt;&lt;br /&gt;The swc file is created in the antbuild/compile/main/swc folder.&lt;br /&gt;&lt;br /&gt;Use the swc created in the project libs folder and use this extra ordinary feture to load configuration from outside.&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;Varun</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/8352224704595674824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/8352224704595674824' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/8352224704595674824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/8352224704595674824'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/07/spring-actionscript-configuration-to.html' title='Spring ActionScript Configuration in Flash/Flex/AIR application'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuEKC1Z8OXVBW6s1GqYXUoN1CGKEfLFUVFz_abL529lyR8zBh_hGjM1xVTVKVYDh7_Xf4M8eTWNit8C19hlOdGr516qFrRuvhDW-1cnEvUAlgd8ERpQBCaMYy9ybg8OEfrriKDlw0OS67x/s72-c/Configuration.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-2324059809619839900</id><published>2009-07-13T10:24:00.000-07:00</published><updated>2009-07-13T10:43:51.700-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Adobe Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="ammaps"/><category scheme="http://www.blogger.com/atom/ns#" term="cool maps"/><category scheme="http://www.blogger.com/atom/ns#" term="world maps"/><title type='text'>Ammaps in Flex</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwi4_WeP-YyObiIcDf0Jk3jvDqBm5SpPz8EuO0mqXPtnlZ8DZxTtcqqpE___0Eu9ZTQZIQV4t2nuuFXoUB_5ls7OZJCRdNOZlyh7M-p7JWs-Vw9L0czWMaKkvtFkPxNmPNQWlLr5s613j9/s1600-h/layout.png&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 400px; height: 198px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwi4_WeP-YyObiIcDf0Jk3jvDqBm5SpPz8EuO0mqXPtnlZ8DZxTtcqqpE___0Eu9ZTQZIQV4t2nuuFXoUB_5ls7OZJCRdNOZlyh7M-p7JWs-Vw9L0czWMaKkvtFkPxNmPNQWlLr5s613j9/s400/layout.png&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5358001776247965570&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here is way to implement ammaps in flex , i used swfloader to add the ammaps in my application as follows &lt;br /&gt;&lt;br /&gt;var str : String = &quot;assets/ammap.swf?settings_file=assets/ammap_settings.xml&amp;data_file=assets/ammap_data.xml&quot;&lt;br /&gt;&lt;br /&gt;swLoader.load(str);&lt;br /&gt;&lt;br /&gt;&lt;mx:SWFLoader id=&quot;swLoader&quot; height=&quot;400&quot; width=&quot;80%&quot; /&gt;&lt;br /&gt;&lt;br /&gt;where i kept all the required files(swf/xml) in assets folders of my application.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Varun</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/2324059809619839900/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/2324059809619839900' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/2324059809619839900'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/2324059809619839900'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/07/ammaps-in-flex.html' title='Ammaps in Flex'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwi4_WeP-YyObiIcDf0Jk3jvDqBm5SpPz8EuO0mqXPtnlZ8DZxTtcqqpE___0Eu9ZTQZIQV4t2nuuFXoUB_5ls7OZJCRdNOZlyh7M-p7JWs-Vw9L0czWMaKkvtFkPxNmPNQWlLr5s613j9/s72-c/layout.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-6148135979525922388</id><published>2009-07-07T00:01:00.000-07:00</published><updated>2009-07-07T00:10:19.072-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Adobe Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="embed fonts"/><category scheme="http://www.blogger.com/atom/ns#" term="pixel fonts"/><category scheme="http://www.blogger.com/atom/ns#" term="sharp fonts"/><title type='text'>Making Sharper Flex Application with Sharper Fonts</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgha-FEs4cu1UyDhhushwsNdrxoTaC8Wfw1sdmojkXG7tmJ9iKOAWEJPzeCJRTgyndu4pyJwuPm-MS28_2suss1IOlureZmfq5pnH9KDeGg15YryE7vTqgBNpCCULDEiBdWuiuawI_ef5wG/s1600-h/font.jpg&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 330px; height: 49px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgha-FEs4cu1UyDhhushwsNdrxoTaC8Wfw1sdmojkXG7tmJ9iKOAWEJPzeCJRTgyndu4pyJwuPm-MS28_2suss1IOlureZmfq5pnH9KDeGg15YryE7vTqgBNpCCULDEiBdWuiuawI_ef5wG/s400/font.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5355612034516634994&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I am not a multi fan of using fonts in Flex , i had to put a very smaller font which was to be very sharp , Here is a example to add it , i tried it in my css but it can be done with setStyle Attribute too, here is the code sniplet and the result&lt;br /&gt;Just define following in your css&lt;br /&gt;@font-face&lt;br /&gt;{&lt;br /&gt;    src: url(&quot;../font/kroe0555.ttf&quot;);&lt;br /&gt;    fontFamily: StandardFont;&lt;br /&gt;    flashType: true;&lt;br /&gt;}&lt;br /&gt;Application&lt;br /&gt;{&lt;br /&gt; color            : #CCCCCC;&lt;br /&gt; focus-thickness  : 0.4;&lt;br /&gt; font-size        : 8;&lt;br /&gt; font-grid-fit-type :subpixel;&lt;br /&gt; font-sharpness   : 1;&lt;br /&gt; font-anti-alias-type: normal;&lt;br /&gt; font-weight      : normal;&lt;br /&gt;}&lt;br /&gt; &lt;br /&gt;Cheers&lt;br /&gt;Varun</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/6148135979525922388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/6148135979525922388' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6148135979525922388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/6148135979525922388'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/07/making-sharper-flex-application-with.html' title='Making Sharper Flex Application with Sharper Fonts'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgha-FEs4cu1UyDhhushwsNdrxoTaC8Wfw1sdmojkXG7tmJ9iKOAWEJPzeCJRTgyndu4pyJwuPm-MS28_2suss1IOlureZmfq5pnH9KDeGg15YryE7vTqgBNpCCULDEiBdWuiuawI_ef5wG/s72-c/font.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-3158005730447259139</id><published>2009-07-04T00:54:00.000-07:00</published><updated>2009-07-04T00:58:01.366-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Adobe Flex"/><category scheme="http://www.blogger.com/atom/ns#" term="Map"/><category scheme="http://www.blogger.com/atom/ns#" term="Mercator cool maps"/><title type='text'>A great Flex Map Component Mercator.swc</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6DN4OzKKMv7RFLzxh5VDoTrpPP7Jcg8S8kWctb_uiocT_fnYO5qo-fL4Ku-myMJfuZxBvddcgPYfMKV1oO309xbyh9P8_WdjhnXz-XCBxfx6tvCXwk12rtvzqLRl1_eyWm2wbxg7h3KVL/s1600-h/World.jpg&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 400px; height: 261px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6DN4OzKKMv7RFLzxh5VDoTrpPP7Jcg8S8kWctb_uiocT_fnYO5qo-fL4Ku-myMJfuZxBvddcgPYfMKV1oO309xbyh9P8_WdjhnXz-XCBxfx6tvCXwk12rtvzqLRl1_eyWm2wbxg7h3KVL/s400/World.jpg&quot; border=&quot;0&quot; alt=&quot;&quot;id=&quot;BLOGGER_PHOTO_ID_5354511028162022850&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Mercator Flash/Flex Component from Manfred Weber is the coolest map componet i have seen with such a cool features, to zoom, get center, lattitude,longitude with additional markers and distance lines , i tried to create the map and within minutes i created a realy cool map with color and populating the map from a xml.The component contains all countries of the world and additional 8000 cities + the corresponding latitude and longitude&lt;br /&gt;&lt;br /&gt;Just I think he has not updated the SWC file for the markers...... i think he will do it soon check out the demo at &lt;a href=&quot;http://dev.dschini.org/mercator-swc/demos.php&quot;&gt;http://dev.dschini.org/mercator-swc/demos.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;Varun</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/3158005730447259139/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/3158005730447259139' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/3158005730447259139'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/3158005730447259139'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/07/great-flex-map-component-mercatorswc.html' title='A great Flex Map Component Mercator.swc'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi6DN4OzKKMv7RFLzxh5VDoTrpPP7Jcg8S8kWctb_uiocT_fnYO5qo-fL4Ku-myMJfuZxBvddcgPYfMKV1oO309xbyh9P8_WdjhnXz-XCBxfx6tvCXwk12rtvzqLRl1_eyWm2wbxg7h3KVL/s72-c/World.jpg" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6221754080009704664.post-7401188637898504955</id><published>2009-05-19T21:50:00.000-07:00</published><updated>2009-05-19T21:56:28.232-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Security Error 2060:Security sandbox violation"/><title type='text'>Security Error 2060:Security sandbox violation: ExternalInterface caller</title><content type='html'>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://www.iconarchive.com/icons/tpdkdesign.net/refresh-cl/System-Security-Warning-256x256.png&quot;&gt;&lt;img style=&quot;float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 256px; height: 256px;&quot; src=&quot;http://www.iconarchive.com/icons/tpdkdesign.net/refresh-cl/System-Security-Warning-256x256.png&quot; border=&quot;0&quot; alt=&quot;&quot; /&gt;&lt;/a&gt;&lt;br /&gt;Many a times we see such issues that we are not able to launch the application from html file and see the following error--- &lt;br /&gt;&lt;br /&gt;Security Error 2060: Security sandbox violation: ExternalInterface caller&lt;br /&gt;file:///C:/Varun/myproject.swf&lt;br /&gt;cannot access&lt;br /&gt;file:///C:/Varun/myproject.html&lt;br /&gt;&lt;br /&gt;So to avoid such a error you need to make some changes in html template html&lt;br /&gt;In the HTML template make sure that the parameter &#39;allowscriptaccess&#39; is set to &#39;always&#39; &lt;br /&gt;&lt;br /&gt;&#39;allowScriptAccess&#39;,&#39;always&#39;,&lt;br /&gt;param name=&quot;allowScriptAccess&quot; value=“always&quot; &lt;br /&gt;if you are making a Object of swf from a flex application you can add the following parameter to the Object&lt;br /&gt;swfObject.addParam(&#39;allowscriptaccess&#39;, &#39;always&#39;);&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;&lt;br /&gt;Varun Rathore</content><link rel='replies' type='application/atom+xml' href='http://vrathore.blogspot.com/feeds/7401188637898504955/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6221754080009704664/7401188637898504955' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/7401188637898504955'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6221754080009704664/posts/default/7401188637898504955'/><link rel='alternate' type='text/html' href='http://vrathore.blogspot.com/2009/05/security-error-2060security-sandbox.html' title='Security Error 2060:Security sandbox violation: ExternalInterface caller'/><author><name>vrathore</name><uri>http://www.blogger.com/profile/10898551813890109092</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>