<?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-6720144533922508345</id><updated>2026-09-23T08:59:07.021-07:00</updated><category term="angularjs"/><category term="java"/><category term="javascript"/><category term="Android"/><category term="Android Setup"/><category term="Android for beginners"/><category term="Configuring path"/><category term="Ejb"/><category term="FormData"/><category term="FormData is undefined ie"/><category term="Getting distance of coordinates"/><category term="Google Mobile development Setup"/><category term="How to remove java system property"/><category term="Internet Explorer cannot find FormData"/><category term="Java System.properties"/><category term="Jboss"/><category term="Removing System.properties()"/><category term="Removing java system property"/><category term="Removing system property"/><category term="Replace FormData"/><category term="Replace jquery FormData for file upload"/><category term="Run compiled IDE jar files in commandline java"/><category term="Weblogic"/><category term="avoid braces display on page load"/><category term="avoid expression display"/><category term="bbm"/><category term="black berry"/><category term="calculate distance"/><category term="calculating distance between (latitude and longitude)"/><category term="calculating distance of coordinates"/><category term="call controller more than once"/><category term="coordinate"/><category term="cordinate"/><category term="hide expression or braces"/><category term="how to remove java System.properties()"/><category term="how to run the compiled jar of netbean in commandline"/><category term="how to setup android devellopment"/><category term="jquery"/><category term="latitude"/><category term="log path"/><category term="longitude"/><category term="multiple controller calls"/><category term="notification"/><category term="programming"/><category term="push"/><category term="push notification"/><category term="run netbean jar in commandline java"/><category term="solved FormData error in internet explorer"/><category term="startWebLogic"/><category term="system.getproperty"/><title type='text'>A programmer&#39;s Dairy</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://onicodeline.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://onicodeline.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16192095490538194633</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>9</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6720144533922508345.post-8933496149949385772</id><published>2014-05-29T07:59:00.001-07:00</published><updated>2014-05-30T10:40:45.252-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="angularjs"/><category scheme="http://www.blogger.com/atom/ns#" term="avoid braces display on page load"/><category scheme="http://www.blogger.com/atom/ns#" term="avoid expression display"/><category scheme="http://www.blogger.com/atom/ns#" term="hide expression or braces"/><title type='text'>Avoid expressions/braces being shown on page load Angularjs</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/AVvXsEhiyKcoew6_f_Tk0uEda6LEUMGcPoNkMwxFKVuzsuIVROZWfzcTs8hYLwUHjF9_TO0VBG4MN4bKmS8dXTfh0GChLjZk5mgdWTgj9VwhT8uCg5IPHacrYGYXLi2TBeE_e0Baaera-tE9tX8/s1600/angularjs-logo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhiyKcoew6_f_Tk0uEda6LEUMGcPoNkMwxFKVuzsuIVROZWfzcTs8hYLwUHjF9_TO0VBG4MN4bKmS8dXTfh0GChLjZk5mgdWTgj9VwhT8uCg5IPHacrYGYXLi2TBeE_e0Baaera-tE9tX8/s1600/angularjs-logo.png&quot; height=&quot;200&quot; width=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span class=&quot;textx&quot;&gt;At first I try to ignore the famous curly  braces ‘{{}}’ of the angularjs for binding data to the view, this happens just few seconds before my application try’s to load but then I got fed up and decided to do something about, it turns out it could be resolved.

&lt;br /&gt;&lt;br /&gt;
Actually there multiple ways of resolving this, which will are listed below&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;span class=&quot;textx&quot;&gt;
&lt;li&gt; For most people who don’t like the look of braces in your html code, good news, you can make use of the ‘ng-bind’ of angular directive just like below.
&lt;br /&gt;
Eg.&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;div ng-bind=&quot;title&quot;&amp;gt;&lt;/code&gt;&lt;/pre&gt;
reference to ngBind could be found in &lt;a href=&quot;https://docs.angularjs.org/api/ng/directive/ngBind&quot;&gt;ngbind&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
And for those people who still want to stick with the braces, it isn’t bad news also for you, you can still resolve this issues by making use of the ‘ng-cloak’ which is also an angularjs built-in directive, to use this method to resolve the issue refer below.
&lt;br /&gt;
Eg.&lt;br /&gt;
Index.html

&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;lt;div ng-cloak=&quot;&quot;&amp;gt;{{ title }}&amp;lt;/div&amp;gt;&lt;/code&gt;&lt;/pre&gt;
style.css
&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { display: none!important;}&lt;/code&gt;&lt;/pre&gt;
and as well reference to ngCloak could be found in &lt;a href=&quot;https://docs.angularjs.org/api/ng/directive/ngBind&quot;&gt;ngCloak&lt;/a&gt;
&lt;br /&gt;

&lt;/li&gt;
&lt;li&gt;And lastly if it is much work and you have no pressure on you, you can just continue ignoring it until it starts getting annoying. Just kidding that all i have.&lt;/li&gt;
&lt;/span&gt;&lt;/ul&gt;
&lt;br /&gt;
I hope this can help someone out there.
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://onicodeline.blogspot.com/feeds/8933496149949385772/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://onicodeline.blogspot.com/2014/05/avoid-expressionsbraces-being-shown-on.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/8933496149949385772'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/8933496149949385772'/><link rel='alternate' type='text/html' href='http://onicodeline.blogspot.com/2014/05/avoid-expressionsbraces-being-shown-on.html' title='Avoid expressions/braces being shown on page load Angularjs'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16192095490538194633</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/AVvXsEhiyKcoew6_f_Tk0uEda6LEUMGcPoNkMwxFKVuzsuIVROZWfzcTs8hYLwUHjF9_TO0VBG4MN4bKmS8dXTfh0GChLjZk5mgdWTgj9VwhT8uCg5IPHacrYGYXLi2TBeE_e0Baaera-tE9tX8/s72-c/angularjs-logo.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6720144533922508345.post-7233022291816497181</id><published>2014-05-27T01:56:00.000-07:00</published><updated>2014-05-29T07:13:19.189-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="angularjs"/><category scheme="http://www.blogger.com/atom/ns#" term="call controller more than once"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="multiple controller calls"/><title type='text'>AngularJS executing controller twice</title><content type='html'>&lt;span class=&quot;textx&quot;&gt;During my angularJS adventure i noticed that my controller seems to be running twice, something like getting two alert when testing for result or double responses during HTTP post, like every nubie to a technology, i had asked myself same question i had asked myself as pass through previous hurdle, i had thought to myself have i made a great mistake in choosing this framework.

&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;textx&quot;&gt;&lt;p&gt;So After pulling up my pants and sucking it up, i started googling and found out i had made a mistake but not of the choice of framework but that of my code.When i start my first app with angularjs, i started buy writing :&lt;/p&gt;&lt;/span&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;div data-ng-controller=&quot;MyCrtl&quot;&amp;gt;&lt;/code&gt;&lt;/pre&gt;
&lt;span class=&quot;textx&quot;&gt;but then i got to the ease of routing then i switch with :&lt;/span&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;$routeProvider.when(&#39;/&#39;,{ templateUrl:&#39;patials/sample.html&#39;, controller:&#39;MyCrtl&#39;});&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;but then i left the previous in my &#39;sample.html&#39; code which was apparently wrong the meaning of this as i gathered is that i am now instructing AngularJS, to digest my controller twice.&amp;nbsp;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution:&lt;/b&gt;
&lt;p&gt;
Remove the &lt;code&gt;data-ng-controller=&quot;&#39;MyCrtl&quot;&#39;&lt;/code&gt; from your html code if you have specified &lt;code&gt;controller:&#39;MyCrtl&#39; &lt;/code&gt;
I hope this can help someone out there.&lt;/p&gt;
&lt;/span&gt;


</content><link rel='replies' type='application/atom+xml' href='http://onicodeline.blogspot.com/feeds/7233022291816497181/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://onicodeline.blogspot.com/2014/05/angularjs-executing-controller-twice.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/7233022291816497181'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/7233022291816497181'/><link rel='alternate' type='text/html' href='http://onicodeline.blogspot.com/2014/05/angularjs-executing-controller-twice.html' title='AngularJS executing controller twice'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16192095490538194633</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-6720144533922508345.post-7136296349636153220</id><published>2014-01-21T21:48:00.003-08:00</published><updated>2014-02-12T18:11:34.356-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="how to run the compiled jar of netbean in commandline"/><category scheme="http://www.blogger.com/atom/ns#" term="Run compiled IDE jar files in commandline java"/><category scheme="http://www.blogger.com/atom/ns#" term="run netbean jar in commandline java"/><title type='text'>Run a java project written in eclipse or netbean from the command line</title><content type='html'>&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;You know when the whole aspect of having so many IDEs to help you do things like compile and running of your code, yeah&amp;nbsp;i was biten&amp;nbsp;in the a** of late and was expect to provide a&amp;nbsp;jar file needed to be executed by someone else but i needed to test the jar which&lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt; has other jar dependence &lt;/span&gt;&lt;span style=&quot;font-size: small;&quot;&gt;through a commandline. I knew I had to add the jar dependencies as parameters to the java
 binary, but I was unsure how to do that. After a bit of googling 
around , I found out how to achieve this. Here’s a skeleton :&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;/span&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background: url(&amp;quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3k74qBIVgZElJ4_9BXjLSCZ_RaHhMUyaWXrm2k1fsoHRVdXeexybX4tiNYZqV9gfrmsWWYuQA40oyRRKpfc5BqiAQI9mGzLewJGCUNhTefj0H5HpL6eLjjWq3Tvz_0kAdE4F5vl98f6P1/s320/codebg.gif&amp;quot;) repeat-x rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99.38%;&quot;&gt;&lt;code style=&quot;color: black; text-align: left;&quot;&gt;&lt;code&gt;java -classpath lib1.jar;lib2.jar package.otherpackage.classname argv1 argv2 ... argvn&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;br /&gt;
If you have your .class files in a folder, let’s say the name of the folder is classes, 
then you need to add that folder to the classpath, so the skeleton 
becomes :&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background: url(&amp;quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3k74qBIVgZElJ4_9BXjLSCZ_RaHhMUyaWXrm2k1fsoHRVdXeexybX4tiNYZqV9gfrmsWWYuQA40oyRRKpfc5BqiAQI9mGzLewJGCUNhTefj0H5HpL6eLjjWq3Tvz_0kAdE4F5vl98f6P1/s320/codebg.gif&amp;quot;) repeat-x rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99.38%;&quot;&gt;&lt;code style=&quot;color: black; text-align: left;&quot;&gt;&lt;code&gt;java -classpath classes;lib1.jar ...&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;br /&gt;
I hope you get the picture. If you don’t know what jars to include, but your project works in eclipse, you can open the &lt;b&gt;.classpath&lt;/b&gt; file and extract the entries with &lt;b&gt;kind=”lib”&lt;/b&gt;. Here is a sample &lt;b&gt;.classpath&lt;/b&gt; file from a project :&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;pre style=&quot;background: url(&amp;quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3k74qBIVgZElJ4_9BXjLSCZ_RaHhMUyaWXrm2k1fsoHRVdXeexybX4tiNYZqV9gfrmsWWYuQA40oyRRKpfc5BqiAQI9mGzLewJGCUNhTefj0H5HpL6eLjjWq3Tvz_0kAdE4F5vl98f6P1/s320/codebg.gif&amp;quot;) repeat scroll 0% 0% rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: 210px; overflow: auto; padding: 0px; text-align: left; width: 99.38%;&quot;&gt;&lt;code style=&quot;color: black; text-align: left;&quot;&gt;&lt;code&gt;&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;
&amp;lt;classpath&amp;gt;
 &amp;lt;classpathentry kind=&quot;src&quot; path=&quot;src&quot;/&amp;gt;
 &amp;lt;classpathentry kind=&quot;con&quot; path=&quot;org.eclipse.jdt.launching.JRE_CONTAINER&quot;/&amp;gt;
 &amp;lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/commons-codec-1.3.jar&quot;/&amp;gt;
 &amp;lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/commons-collections-3.2.1.jar&quot;/&amp;gt;
 &amp;lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/commons-httpclient-3.1.jar&quot;/&amp;gt;
 &amp;lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/commons-io-1.4.jar&quot;/&amp;gt;
 &amp;lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/commons-lang-2.4.jar&quot;/&amp;gt;
 &amp;lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/commons-logging-1.1.1.jar&quot;/&amp;gt;
 &amp;lt;classpathentry kind=&quot;lib&quot; path=&quot;lib/xml-apis-1.3.04.jar&quot;/&amp;gt;
 &amp;lt;classpathentry kind=&quot;output&quot; path=&quot;bin&quot;/&amp;gt;
&amp;lt;/classpath&amp;gt;
&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;
&lt;br /&gt;
You can easily parse this file and extract them. This was how i got through the task.&lt;br /&gt;

&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;Hope this helps someone.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://onicodeline.blogspot.com/feeds/7136296349636153220/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://onicodeline.blogspot.com/2014/01/run-java-project-written-in-eclipse.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/7136296349636153220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/7136296349636153220'/><link rel='alternate' type='text/html' href='http://onicodeline.blogspot.com/2014/01/run-java-project-written-in-eclipse.html' title='Run a java project written in eclipse or netbean from the command line'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16192095490538194633</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-6720144533922508345.post-4910670735447698198</id><published>2014-01-21T21:24:00.002-08:00</published><updated>2014-02-03T18:23:32.431-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to remove java system property"/><category scheme="http://www.blogger.com/atom/ns#" term="how to remove java System.properties()"/><category scheme="http://www.blogger.com/atom/ns#" term="Java System.properties"/><category scheme="http://www.blogger.com/atom/ns#" term="Removing java system property"/><category scheme="http://www.blogger.com/atom/ns#" term="Removing system property"/><category scheme="http://www.blogger.com/atom/ns#" term="Removing System.properties()"/><title type='text'>Removing system property</title><content type='html'>&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;Hi guys its being awhile I guess its because of so much i most be involved in well but this was short and prompting. Recently i was faced with removing a key from&lt;/span&gt; &lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;System.properties()&lt;/span&gt;&lt;/span&gt;, &lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;what i found out is that some developer, might try to approach this by setting the value to&lt;/span&gt; &lt;code&gt;null&lt;/code&gt;, &lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;but then&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;code&gt;System.setProperty(key, val)&lt;/code&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt; will throw &lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;NullPointerException &lt;/span&gt;&lt;/span&gt;when either key or value is null. Here are 2 ways to remove or clear a system property:&lt;/span&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;pre style=&quot;background: url(&amp;quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3k74qBIVgZElJ4_9BXjLSCZ_RaHhMUyaWXrm2k1fsoHRVdXeexybX4tiNYZqV9gfrmsWWYuQA40oyRRKpfc5BqiAQI9mGzLewJGCUNhTefj0H5HpL6eLjjWq3Tvz_0kAdE4F5vl98f6P1/s320/codebg.gif&amp;quot;) repeat-x rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99.38%;&quot;&gt;&lt;code style=&quot;color: black; text-align: left;&quot;&gt;&lt;code&gt;clearProperty(String key)&lt;/code&gt; introduced in JDK 1.5.&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;div class=&quot;container&quot;&gt;
&lt;div class=&quot;line number1 index0 alt2&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li&gt;&lt;pre style=&quot;background: url(&amp;quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3k74qBIVgZElJ4_9BXjLSCZ_RaHhMUyaWXrm2k1fsoHRVdXeexybX4tiNYZqV9gfrmsWWYuQA40oyRRKpfc5BqiAQI9mGzLewJGCUNhTefj0H5HpL6eLjjWq3Tvz_0kAdE4F5vl98f6P1/s320/codebg.gif&amp;quot;) repeat-x rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99.38%;&quot;&gt;&lt;code style=&quot;color: black; text-align: left;&quot;&gt;&lt;/code&gt;&lt;code class=&quot;java plain&quot;&gt;System.getProperties().remove(&lt;code class=&quot;java string&quot;&gt;&quot;key&quot;&lt;/code&gt;);&lt;/code&gt;
&lt;code style=&quot;color: black; text-align: left;&quot;&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/li&gt;
&lt;br /&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/ol&gt;
&lt;ol&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-family: Times,&amp;quot;Times New Roman&amp;quot;,serif;&quot;&gt;When java security manager is enabled, Both methods need specific permissions to succeed.  Approach 1 requires&lt;/span&gt; &lt;code&gt;PropertyPermission &quot;key&quot;, &quot;read,write&quot;&lt;/code&gt;.  Approach 2 requires a much wider permission: &lt;code&gt;PropertyPermission &quot;*&quot;, &quot;read,write&quot;&lt;/code&gt;, because you are free to modify/remove all system properties with the returned object from &lt;code&gt;System.getProperties()&lt;/code&gt; 
</content><link rel='replies' type='application/atom+xml' href='http://onicodeline.blogspot.com/feeds/4910670735447698198/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://onicodeline.blogspot.com/2014/01/removing-system-property.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/4910670735447698198'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/4910670735447698198'/><link rel='alternate' type='text/html' href='http://onicodeline.blogspot.com/2014/01/removing-system-property.html' title='Removing system property'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16192095490538194633</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-6720144533922508345.post-5202517499288455402</id><published>2013-06-09T20:54:00.001-07:00</published><updated>2015-06-17T22:15:39.449-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="FormData"/><category scheme="http://www.blogger.com/atom/ns#" term="FormData is undefined ie"/><category scheme="http://www.blogger.com/atom/ns#" term="Internet Explorer cannot find FormData"/><category scheme="http://www.blogger.com/atom/ns#" term="javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="jquery"/><category scheme="http://www.blogger.com/atom/ns#" term="Replace FormData"/><category scheme="http://www.blogger.com/atom/ns#" term="Replace jquery FormData for file upload"/><category scheme="http://www.blogger.com/atom/ns#" term="solved FormData error in internet explorer"/><title type='text'>Replace jquery FormData for file upload javascript</title><content type='html'>&lt;h2&gt;
Replacing FormData&lt;/h2&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
Recently&amp;nbsp;there was the requirement to upload file using jquery but for some reasons i found out that the uploading thing is working in properly in Firefox, chrome and safari but not functioning in IE(Internet Explorer).After long search, i had to manage the upload with an iframes for IE,below is the function that did magic :) enjoy&lt;/div&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: url(&amp;quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3k74qBIVgZElJ4_9BXjLSCZ_RaHhMUyaWXrm2k1fsoHRVdXeexybX4tiNYZqV9gfrmsWWYuQA40oyRRKpfc5BqiAQI9mGzLewJGCUNhTefj0H5HpL6eLjjWq3Tvz_0kAdE4F5vl98f6P1/s320/codebg.gif&amp;quot;) rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: 285px; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99.38%;&quot;&gt;&lt;code style=&quot;color: black; text-align: left; word-wrap: normal;&quot;&gt;      
function fileUpload(form, action_url, div_id) {
    // Create the iframe...
    var iframe = document.createElement(&quot;iframe&quot;);
    iframe.setAttribute(&quot;id&quot;, &quot;upload_iframe&quot;);
    iframe.setAttribute(&quot;name&quot;, &quot;upload_iframe&quot;);
    iframe.setAttribute(&quot;style&quot;, &quot;border: none;display: none;&quot;);
 
 
    // Add to document...
    form.append(iframe);
    window.frames[&#39;upload_iframe&#39;].name = &quot;upload_iframe&quot;;
 
    iframeId = document.getElementById(&quot;upload_iframe&quot;);
 
    // Add event...
    var eventHandler = function () {
 
            if (iframeId.detachEvent) iframeId.detachEvent(&quot;onload&quot;, eventHandler);
            else iframeId.removeEventListener(&quot;load&quot;, eventHandler, false);

            // Message from server...
            if (iframeId.contentDocument) {
                content = iframeId.contentDocument.body.innerHTML;
            } else if (iframeId.contentWindow) {
                content = iframeId.contentWindow.document.body.innerHTML;
            } else if (iframeId.document) {
                content = iframeId.document.body.innerHTML;
            }
 
            //getting the response from server 
           content = content.replace(&quot;&lt;/code&gt;&quot;,&quot;&quot;).replace(&quot;&quot;,&quot;&quot;);
          alert(content);
        }
 
    if (iframeId.addEventListener) iframeId.addEventListener(&quot;load&quot;,eventHandler,true);
    if (iframeId.attachEvent) iframeId.attachEvent(&quot;onload&quot;, eventHandler);
 
    // Set properties of form...
    form.attr(&quot;target&quot;, &quot;upload_iframe&quot;);
    form.attr(&quot;action&quot;, action_url);
    form.attr(&quot;method&quot;, &quot;post&quot;);
    form.attr(&quot;enctype&quot;, &quot;multipart/form-data&quot;);
    form.attr(&quot;encoding&quot;, &quot;multipart/form-data&quot;);
 
    
    form.submit();// Submit the form...
 
}
&lt;/pre&gt;
and that&#39;s is all, i hope this could help someone.&lt;br /&gt;&lt;br /&gt;find the full source here : &lt;br /&gt;https://github.com/oniadebowale/FormDataWorkAround</content><link rel='replies' type='application/atom+xml' href='http://onicodeline.blogspot.com/feeds/5202517499288455402/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://onicodeline.blogspot.com/2013/06/replace-jquery-formdata-for-file-upload.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/5202517499288455402'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/5202517499288455402'/><link rel='alternate' type='text/html' href='http://onicodeline.blogspot.com/2013/06/replace-jquery-formdata-for-file-upload.html' title='Replace jquery FormData for file upload javascript'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16192095490538194633</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>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6720144533922508345.post-4357878033839632146</id><published>2012-09-02T00:24:00.004-07:00</published><updated>2012-09-02T00:26:27.956-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="Android for beginners"/><category scheme="http://www.blogger.com/atom/ns#" term="Android Setup"/><category scheme="http://www.blogger.com/atom/ns#" term="Google Mobile development Setup"/><category scheme="http://www.blogger.com/atom/ns#" term="how to setup android devellopment"/><title type='text'>Setup Android on Eclipse</title><content type='html'>&lt;span style=&quot;color: #0066cc; font-family: Verdana, sans-serif; font-size: x-large;&quot;&gt;&lt;strong&gt;Setup Android on Eclipse&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;This tutorial is intended for newbies developers that want to start developing Android applications using Eclipse IDE. To start,&amp;nbsp;One most install Java&amp;nbsp;SDK (JDK) (am using jdk 6)&amp;nbsp;and then  install the Eclipse,  Android SDK and the  Android Development Tool (ADT) plugin for Eclipse. &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Setting up android is quite easy steps to follow&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;http://developer.android.com/sdk/index.html&quot; target=&quot;_blank&quot; title=&quot;Android SDK&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Android SDK&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt; provides the tools and APIs necessary to begin developing applications on the &lt;strong&gt;Android&lt;/strong&gt; platform using the&amp;nbsp;Java&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;programming language. Android offers custom plugin for &lt;/span&gt;&lt;a href=&quot;http://eclipse.org/&quot; target=&quot;_blank&quot; title=&quot;Eclipse IDE&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Eclipse IDE&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;, called &lt;/span&gt;&lt;a href=&quot;http://developer.android.com/sdk/adt-notes.html&quot; target=&quot;_blank&quot; title=&quot;ADT Android Development Tools&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Android Development Tools (ADT),&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt; that is designed to give you a powerful, integrated environment for building Android applications as at this time of blogging the latest is v19.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Download and Install JDK&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Download and install the latest JDK (JDK 1.6 or a later version) from &lt;/span&gt;&lt;a href=&quot;http://java.sun.com/javase/downloads/index.jsp&quot; target=&quot;_blank&quot; title=&quot;Download JDK&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;JDK download page&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Download and Install Eclipse IDE&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Download and install Eclipse (Juno) from &lt;/span&gt;&lt;a href=&quot;http://www.eclipse.org/downloads/&quot; target=&quot;_blank&quot; title=&quot;Download Eclipse&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Eclipse download page&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;. You can also use the  Java or RCP version of Eclipse.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Download and Install Android SDK Starter Package&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;You should know that there are two method of getting the starter pack on your computer system.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;By downloading the zip file&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;The other is using the windowS installer&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_AmzX7su7NdCcKteQtzqLyJt81pLxZQXz6LR1-J_oirB-vyx2EweRY8rQ6LoyBbtfDUNvMcuzC99Bs9-x9zcmIAHHCmw1yCAICttVIirDY7-y6BKtPEyHQzhymNAN1WMC1fXG25uUTss/s1600/image002.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;wp-caption alignnone&quot; style=&quot;height: 332px; width: 484px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_AmzX7su7NdCcKteQtzqLyJt81pLxZQXz6LR1-J_oirB-vyx2EweRY8rQ6LoyBbtfDUNvMcuzC99Bs9-x9zcmIAHHCmw1yCAICttVIirDY7-y6BKtPEyHQzhymNAN1WMC1fXG25uUTss/s1600/image002.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj_AmzX7su7NdCcKteQtzqLyJt81pLxZQXz6LR1-J_oirB-vyx2EweRY8rQ6LoyBbtfDUNvMcuzC99Bs9-x9zcmIAHHCmw1yCAICttVIirDY7-y6BKtPEyHQzhymNAN1WMC1fXG25uUTss/s1600/image002.jpg&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;wp-caption-text&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Page to download Android SDK&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;Dont be alarm though, as there is no visible differences in both,as both have to create an&amp;nbsp;android sdk folder at a specified directory,&amp;nbsp;which pretty much contain same content. that said,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;The Android SDK starter package includes the latest version of the SDK Tools. Included in that component are some tools, called&amp;nbsp;&lt;span style=&quot;color: green;&quot;&gt;Android SDK and AVD Manager&lt;/span&gt; that you can use to download other components from the SDK repository site.&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;
&amp;nbsp;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;Download the latest Android SDK  starter package  from the &lt;/span&gt;&lt;a href=&quot;http://developer.android.com/sdk/index.html&quot; target=&quot;_blank&quot; title=&quot;Download Android SDK Starter Package&quot;&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;SDK download page&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;.&lt;/span&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Unpack the archive to a suitable location on your machine,if you are using the zip file download . By default, the SDK files are unpacked into a directory named  &lt;span style=&quot;color: green;&quot;&gt;android-sdk-&amp;lt;machine-platform&amp;gt;&lt;/span&gt; . For example, on Windows platform the directory will be &lt;span style=&quot;color: green;&quot;&gt;android-sdk-windows.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&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/AVvXsEhDmgG7orFwMaoaPLPL8bEry-UErDJB4SAY3Mjyx7UHpCDKVji5qinzfvlqcc4q8f_kAhEXfp7Y7pps_8EDY4u8eaXyzDUXV0QVJCCHrVBwONWn89G_utC7AyWuuOYEuvZIrUknetbved8/s1600/image010.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;wp-caption alignnone&quot; style=&quot;height: 285px; width: 452px;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;wp-caption-text&quot; style=&quot;text-align: center;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDmgG7orFwMaoaPLPL8bEry-UErDJB4SAY3Mjyx7UHpCDKVji5qinzfvlqcc4q8f_kAhEXfp7Y7pps_8EDY4u8eaXyzDUXV0QVJCCHrVBwONWn89G_utC7AyWuuOYEuvZIrUknetbved8/s1600/image010.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;230&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhDmgG7orFwMaoaPLPL8bEry-UErDJB4SAY3Mjyx7UHpCDKVji5qinzfvlqcc4q8f_kAhEXfp7Y7pps_8EDY4u8eaXyzDUXV0QVJCCHrVBwONWn89G_utC7AyWuuOYEuvZIrUknetbved8/s320/image010.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Android SDK installation directory&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Adding Android Platforms to Your SDK&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;To add one or more Android platforms (for example, Android 1.6 or Android 2.1) to your SDK, use the &lt;span style=&quot;color: green;&quot;&gt;Android SDK and AVD Manager&lt;/span&gt;, included in the SDK starter package. It is recommended  to download multiple platforms, so that you can build your application on the lowest version you want to support, but test against higher versions that you intend the application to run on.&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Launch the &lt;span style=&quot;color: green;&quot;&gt;Android SDK and AVD Manager &lt;/span&gt;on Windows by executing &lt;span style=&quot;color: green;&quot;&gt;SDK Manager.exe&lt;/span&gt; at the root of the SDK directory. &lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;On&lt;span style=&quot;color: green;&quot;&gt; Available Packages &lt;/span&gt;menu, select the platforms to download (1.1 to 2.1).&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;div style=&quot;text-align: justify;&quot;&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/AVvXsEgZmF4VGObQnvK9-QkH6BQle0yTsZeTSwcabb0HQTMpwc447TFPVxIciuboH8ar0-O_ohyphenhyphen8KUPpcQv-FPPsOMUUzJtlrp7hUJYo7USvSZNl-uxuVNwHSz0Zfx_HM6tKZfggBXI53HrRtGw/s1600/image011.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;281&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZmF4VGObQnvK9-QkH6BQle0yTsZeTSwcabb0HQTMpwc447TFPVxIciuboH8ar0-O_ohyphenhyphen8KUPpcQv-FPPsOMUUzJtlrp7hUJYo7USvSZNl-uxuVNwHSz0Zfx_HM6tKZfggBXI53HrRtGw/s320/image011.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Click&lt;strong&gt; &lt;/strong&gt;&lt;span style=&quot;color: green;&quot;&gt;Install Selected &lt;/span&gt; and then select Accept All to accept selected packages.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Click &lt;span style=&quot;color: green;&quot;&gt;Install Accepted&lt;/span&gt; button to start download and install the selected packages.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAalvDT_g8GbyLDHwvId5WuO4ws714WiTa7EZ_bHudxz6lGFc5flmYobMhvFyurS1vj4l1dZb4UXep4qK9dIrKcC-4mIsstoMbGnNxi05-v0DY7p-5U_SOeBUORlSGmXeDUUNYGRvzRjo/s1600/image012.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiAalvDT_g8GbyLDHwvId5WuO4ws714WiTa7EZ_bHudxz6lGFc5flmYobMhvFyurS1vj4l1dZb4UXep4qK9dIrKcC-4mIsstoMbGnNxi05-v0DY7p-5U_SOeBUORlSGmXeDUUNYGRvzRjo/s320/image012.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Download and Install ADT Plugin&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;To install  the ADT Plugin, you can take advantage of the Eclipse remote update feature. By setting up a remote update site, you can easily download, install, and check for ADT updates. Alternatively, you can download the latest ADT to your development computer as a local site archive.&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Launch Eclipse, then select &lt;span style=&quot;color: green;&quot;&gt;Help –&amp;gt; Install New Software&lt;/span&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone&quot; height=&quot;254&quot; src=&quot;http://londatiga.net/images/android/help.jpg&quot; title=&quot;Eclipse Help Menu&quot; width=&quot;232&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;In &lt;span style=&quot;color: green;&quot;&gt;Available Software&lt;/span&gt; dialog, click &lt;span style=&quot;color: green;&quot;&gt;Add &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Enter a name for the remote site (ex: Android Plugin) in the &lt;span style=&quot;color: green;&quot;&gt;Name&lt;/span&gt; field and in the &lt;span style=&quot;color: green;&quot;&gt;Location&lt;/span&gt; field, enter this URL:&lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt; https://dl-ssl.google.com/android/eclipse/&lt;/span&gt;&lt;br /&gt;and then click OK. If you have trouble acquiring the plugin, you can try using ‘http’  instead of  ’https’  in the URL.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;div style=&quot;text-align: justify;&quot;&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/AVvXsEguY6cTjrTpq156XiCIcyhIOQx8B3vT0tsFQPeMz6LBP6I2kcGRKC2SoFHl6tp_ED-aK114nLramUL3O6416xMpiTbszqGy39pA8YuAo9RpbOWf14Sj6ABYZg79cuuJaaoSNTNvvAsO27k/s1600/image013.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;/span&gt;&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/AVvXsEiPKRG4OBrJu-WXfzQa_f3eti_vaOxzB1UC4StifsAKCICjbDGZVjT25ebIICQPFWobcQh0BSz4x9e4G2LbUZl55taJHQpQtYGtfhyphenhyphenW6Evox17Rv_liiPr5Lv-UVwEwsRmCGwvR9sFQjsI/s1600/image014.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;123&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPKRG4OBrJu-WXfzQa_f3eti_vaOxzB1UC4StifsAKCICjbDGZVjT25ebIICQPFWobcQh0BSz4x9e4G2LbUZl55taJHQpQtYGtfhyphenhyphenW6Evox17Rv_liiPr5Lv-UVwEwsRmCGwvR9sFQjsI/s320/image014.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&amp;nbsp;&lt;/div&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Select the checkbox next to &lt;span style=&quot;color: green;&quot;&gt;Developer Tools&lt;/span&gt;, which will automatically select the nested tools &lt;span style=&quot;color: green;&quot;&gt;Android &lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;DDMS&lt;/span&gt; and &lt;span style=&quot;color: green;&quot;&gt;Android Development Tools &lt;/span&gt;and then click &lt;span style=&quot;color: green;&quot;&gt;Next&lt;/span&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;&lt;span style=&quot;font-family: Courier New;&quot;&gt;&lt;/span&gt;&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/AVvXsEhNHUj5rGUXsw5r1gZncqLA1tKl2f-OnbDh98qsLLNm6ISj61CTNIM7DOtAboijBYCGBOmwKsy0lklO-ruckWb4Dj0aPE_NNf3Ih-KYYaHeJ1NaP3LLYzD7lnSfK-PkLomFfD-l5ubwxb8/s1600/image015.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNHUj5rGUXsw5r1gZncqLA1tKl2f-OnbDh98qsLLNm6ISj61CTNIM7DOtAboijBYCGBOmwKsy0lklO-ruckWb4Dj0aPE_NNf3Ih-KYYaHeJ1NaP3LLYzD7lnSfK-PkLomFfD-l5ubwxb8/s320/image015.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;On the next dialog, click &lt;span style=&quot;color: green;&quot;&gt;Next&lt;/span&gt; to read and accept the license agreement and install any dependencies, then click &lt;span style=&quot;color: green;&quot;&gt;Finish&lt;/span&gt;.&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Restart Eclipse&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;To check whether the ADT has been installed correctly, try to create a new project by select &lt;span style=&quot;color: green;&quot;&gt;File &amp;gt; New &amp;gt; Proje&lt;span style=&quot;color: green;&quot;&gt;c&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: green;&quot;&gt;t&lt;/span&gt;, you shoud find Android Project listed on project wizard.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&lt;img alt=&quot;&quot; class=&quot;alignnone&quot; height=&quot;446&quot; src=&quot;http://londatiga.net/images/android/newproject.jpg&quot; title=&quot;New Project&quot; width=&quot;450&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;Update&amp;nbsp;2012:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;July 2012, Android team has released Android 4.1 (Jelly Bean) software development kit (SDK) has been released in full to developers, which is based on the Linux kernel 3.1.10,&amp;nbsp;it is an incremental update with&amp;nbsp;an aim of improving the user interface both in performance and funtionality.&lt;/span&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://onicodeline.blogspot.com/feeds/4357878033839632146/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://onicodeline.blogspot.com/2012/09/setup-android-on-eclipse.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/4357878033839632146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/4357878033839632146'/><link rel='alternate' type='text/html' href='http://onicodeline.blogspot.com/2012/09/setup-android-on-eclipse.html' title='Setup Android on Eclipse'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16192095490538194633</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/AVvXsEj_AmzX7su7NdCcKteQtzqLyJt81pLxZQXz6LR1-J_oirB-vyx2EweRY8rQ6LoyBbtfDUNvMcuzC99Bs9-x9zcmIAHHCmw1yCAICttVIirDY7-y6BKtPEyHQzhymNAN1WMC1fXG25uUTss/s72-c/image002.jpg" height="72" width="72"/><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6720144533922508345.post-3473439986230693715</id><published>2012-08-16T20:22:00.001-07:00</published><updated>2012-08-16T23:41:18.227-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="calculate distance"/><category scheme="http://www.blogger.com/atom/ns#" term="calculating distance between (latitude and longitude)"/><category scheme="http://www.blogger.com/atom/ns#" term="calculating distance of coordinates"/><category scheme="http://www.blogger.com/atom/ns#" term="coordinate"/><category scheme="http://www.blogger.com/atom/ns#" term="cordinate"/><category scheme="http://www.blogger.com/atom/ns#" term="Getting distance of coordinates"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="latitude"/><category scheme="http://www.blogger.com/atom/ns#" term="longitude"/><title type='text'>Getting distance of coordinates using java</title><content type='html'>&lt;span style=&quot;color: #0066cc; font-family: Verdana, sans-serif; font-size: x-large;&quot;&gt;&lt;strong&gt;Getting distance&amp;nbsp;of coordinates&amp;nbsp;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;Yesterday came across way of calculating the distance between coordinates(latitude &amp;amp; longitude)&amp;nbsp;and as usual the application is to be written in java, so after my search i got&amp;nbsp;this snippet i would like to share below which can be used as desired.&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;pre style=&quot;background: url(&amp;quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3k74qBIVgZElJ4_9BXjLSCZ_RaHhMUyaWXrm2k1fsoHRVdXeexybX4tiNYZqV9gfrmsWWYuQA40oyRRKpfc5BqiAQI9mGzLewJGCUNhTefj0H5HpL6eLjjWq3Tvz_0kAdE4F5vl98f6P1/s320/codebg.gif&amp;quot;) rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: 285px; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99.38%;&quot;&gt;&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;   
  public static double distFrom2(double p_dbllatitude1, double p_dbllongitude1, double p_dbllatitude2, double p_dbllongitude2) 
  {
   double radianLat1  = p_dbllatitude1 * Math.PI / 180 ;
   double radianLat2  = p_dbllatitude2 * Math.PI / 180 ;
   double radiandiff1 = radianLat1 - radianLat2 ;
   double radiandiff2 = p_dbllongitude1 * Math.PI / 180 - p_dbllongitude2 * Math.PI / 180 ;
   double s = 2 * Math.asin ( Math.sqrt ( Math.pow ( Math.sin ( radiandiff1 / 2 ) , 2 ) + Math.cos (radianLat1) * Math.cos (radianLat2) * Math.pow (Math.sin (radiandiff2 / 2 ),2)));
   s = s * 6378137.0 ;
   s = Math.round ( s * 100000 ) / 100000 ;
   return s ;

  }   
&lt;/code&gt;&lt;/div&gt;
&lt;/pre&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New;&quot;&gt;the result is in meters and to convert to kilometers just divide by 1000. that all for now.a programmer&#39;s dairy..&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://onicodeline.blogspot.com/feeds/3473439986230693715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://onicodeline.blogspot.com/2012/08/getting-distance-of-coordinates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/3473439986230693715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/3473439986230693715'/><link rel='alternate' type='text/html' href='http://onicodeline.blogspot.com/2012/08/getting-distance-of-coordinates.html' title='Getting distance of coordinates using java'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16192095490538194633</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-6720144533922508345.post-2048682541393671809</id><published>2012-07-29T03:40:00.000-07:00</published><updated>2012-08-17T16:45:11.775-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bbm"/><category scheme="http://www.blogger.com/atom/ns#" term="black berry"/><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="notification"/><category scheme="http://www.blogger.com/atom/ns#" term="programming"/><category scheme="http://www.blogger.com/atom/ns#" term="push"/><category scheme="http://www.blogger.com/atom/ns#" term="push notification"/><title type='text'>Simple Black Berry Push Service implementation</title><content type='html'>&lt;h3 style=&quot;text-align: justify;&quot;&gt;







Simple Black Berry Push Service (initiator) implementation&lt;/h3&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
I guess one way or the other we most have heard about push notification. which now exist in&amp;nbsp;most mobile OS out there, such as&amp;nbsp;the Black berry, the Android, Iphone and Windows phone mobile. This blogging is about the Black berry server side push notification.&lt;br /&gt;
Below is the architectural design of the black berry push notification&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh205dY5FD9ptJIBLpWiKb-Wpvfp2HVKr9PxLoiW5mfQY1U8pPx8c5eMwUgRK39Aor8sxluJEEUzFw2Hb2O11saxNiWvKweI3WoO83045OadT5VRea7bA3JONvwOwNxeURJ7MMaOFlTpzU/s1600/Black+Berry+Push+Service+Architect.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;80&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh205dY5FD9ptJIBLpWiKb-Wpvfp2HVKr9PxLoiW5mfQY1U8pPx8c5eMwUgRK39Aor8sxluJEEUzFw2Hb2O11saxNiWvKweI3WoO83045OadT5VRea7bA3JONvwOwNxeURJ7MMaOFlTpzU/s400/Black+Berry+Push+Service+Architect.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;The Architecture Framework&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
and for more understanding and detail behind the architecture go &lt;a href=&quot;http://docs.blackberry.com/en/developers/subcategories/?userType=21&amp;amp;category=Push+Service&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&lt;br /&gt;
Below is a sample simple server-side&amp;nbsp;java push application to push messages. RIM provide API to help simplify the development of push message to the RIM server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background: rgb(240, 240, 240); border: 1px dashed rgb(204, 204, 204); color: black; font-family: arial; font-size: 12px; height: 950px; line-height: 20px; overflow: auto; padding: 0px; text-align: left; width: 99%;&quot;&gt;&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt; public static void pushMsg()  
    {     
       IdGenerator l_idGenerator = new IdGeneratorImpl();  
         
       List&amp;lt;String&amp;gt; l_Lstaddresses = new ArrayList&amp;lt;String&amp;gt;();  
   
       l_Lstaddresses.add(&quot;&amp;lt;BB Pin&amp;gt;&quot;);     
     &lt;span style=&quot;color: lime;&quot;&gt;//l_Lstaddresses.add(&quot;push_all&quot;);//To push to all BB pin registered on your server.&lt;/span&gt;     
         
      
       PushMessageControl l_pushMessageControl = new PushMessageControl(l_idGenerator,APP_ID, l_Lstaddresses);  
         
       l_pushMessageControl.getPushId();  
         
        
         
       Content l_content = new TextContent(&quot;This is my push message Test pushid&quot;);        
   
       PapService l_papService = new PapServiceImpl();     
   
       PushSDKProperties properties = getProperties();     
   
       HttpClientImpl client = new HttpClientImpl();  
   
       client.setPushSDKProperties(properties);  
   
       l_papService.setHttpClient(client);  
   
       l_papService.setPushSDKProperties(properties);  
               
       try   
       {  
          PushResponse response = l_papService.push(APP_ID, password, APP_ID, l_pushMessageControl, l_content);  
            
          l_Strpushid = response.getPushId();           
            
          System.out.println(&quot;#PushId : &quot; + l_Strpushid);  
            
          System.out.println(response.getResult());              
            
       }   
       catch (PushSDKException e)   
       {           
          e.printStackTrace();  
       }   
       catch (BadMessageException e)  
       {           
          e.printStackTrace();  
       }   
       catch (UnauthorizedException e)   
       {           
          e.printStackTrace();  
       }  
&lt;/code&gt;

&lt;code style=&quot;color: black; word-wrap: normal;&quot;&gt;  }  
      
    private static PushSDKProperties getProperties()   
    {  
       PushSDKProperties p = new PushSDKPropertiesImpl();  
         
       p.setPpgAddress(targetURL);  
   
       p.setUsingPublicPush(true);  
   
       p.setHttpIsPersistent(false);  
   
       p.setHttpConnectionTimeout(60000);  
   
       p.setHttpReadTimeout(120000);  
   
       p.setUsingXmlParserDtdValidation(true);  
   
       return p;  
    }  
&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://onicodeline.blogspot.com/feeds/2048682541393671809/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://onicodeline.blogspot.com/2012/07/simple-black-berry-push-service.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/2048682541393671809'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/2048682541393671809'/><link rel='alternate' type='text/html' href='http://onicodeline.blogspot.com/2012/07/simple-black-berry-push-service.html' title='Simple Black Berry Push Service implementation'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16192095490538194633</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/AVvXsEh205dY5FD9ptJIBLpWiKb-Wpvfp2HVKr9PxLoiW5mfQY1U8pPx8c5eMwUgRK39Aor8sxluJEEUzFw2Hb2O11saxNiWvKweI3WoO83045OadT5VRea7bA3JONvwOwNxeURJ7MMaOFlTpzU/s72-c/Black+Berry+Push+Service+Architect.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6720144533922508345.post-101702848444692621</id><published>2012-06-25T01:36:00.000-07:00</published><updated>2013-08-15T15:58:48.535-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Configuring path"/><category scheme="http://www.blogger.com/atom/ns#" term="Ejb"/><category scheme="http://www.blogger.com/atom/ns#" term="Jboss"/><category scheme="http://www.blogger.com/atom/ns#" term="log path"/><category scheme="http://www.blogger.com/atom/ns#" term="startWebLogic"/><category scheme="http://www.blogger.com/atom/ns#" term="system.getproperty"/><category scheme="http://www.blogger.com/atom/ns#" term="Weblogic"/><title type='text'>Using System.property in Weblogic</title><content type='html'>&lt;h2&gt;


Using System.property in Weblogic&lt;/h2&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Recently&amp;nbsp;there was a&amp;nbsp;need for changing&amp;nbsp;application server base on customer request,&amp;nbsp;deployment of our Jboss&amp;nbsp;base&amp;nbsp;Ejb application was to be transfered to Weblogic. one of my thorn issues was that i had to find a solution to setting weblogic configuration path so that my application can request it from the application Server as will.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;What needed to&amp;nbsp;be done&amp;nbsp;are as follow:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li style=&quot;text-align: justify;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Locate this file &lt;b&gt;&#39;startWebLogic.cmd&#39;&lt;/b&gt; in &amp;lt;Weblogic&amp;gt;Middleware\user_projects\domains\base_domain\bin\&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;


&lt;/span&gt;&lt;/span&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Then Open with notepad&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;


&lt;/span&gt;&lt;/span&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;Then locate or search for &lt;b&gt;&#39;set JAVA_OPTIONS&#39;&lt;/b&gt; then paste or type configuration you want weblogic to config for you&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;code&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS% -DMY_CONFIG_PATH=C:\Config&lt;/span&gt;
&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;Trebuchet MS&amp;quot;,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;then at your java code u can have something like the below.
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;code&gt;
&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;String myConfig = System.getProperty(&quot;MY_CONFIG_PATH&quot;);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;System.out.println(myConfig); &lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;code&gt;Output:&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: justify;&quot;&gt;
&lt;code&gt;
&amp;nbsp; &lt;span style=&quot;color: red;&quot;&gt;C:\Config&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://onicodeline.blogspot.com/feeds/101702848444692621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://onicodeline.blogspot.com/2012/06/using-systemproperty-in-weblogic.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/101702848444692621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6720144533922508345/posts/default/101702848444692621'/><link rel='alternate' type='text/html' href='http://onicodeline.blogspot.com/2012/06/using-systemproperty-in-weblogic.html' title='Using System.property in Weblogic'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/16192095490538194633</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></feed>