<?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-4976381965604883427</id><updated>2024-09-27T06:44:13.438-07:00</updated><category term="AJAX"/><category term="JDK 7"/><category term="MAC OS"/><category term="jQuery"/><category term="API POST Request"/><category term="InetAddress.getLocalHost"/><category term="JFileChooser"/><category term="JarBundler"/><category term="Max buffer size"/><category term="NetBeans"/><category term="No Transport"/><category term="UnknownHostException"/><category term="cross site scripting"/><category term="files appear gray"/><category term="installation issue"/><category term="smartPLS"/><title type='text'>My Experience...</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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>12</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4976381965604883427.post-1675620948045143124</id><published>2014-10-04T23:26:00.000-07:00</published><updated>2014-10-04T23:26:03.085-07:00</updated><title type='text'>RStudio Error:  package ‘forecast’ is not available (for R version 3.0.1)</title><content type='html'>When I tried to install &#39;forecast&#39; package in RStudio, I got this error:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;Warning in install.packages :&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&amp;nbsp; package ‘forecast’ is not available (for R version 3.0.1)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Based on the search results, I need to install the latest version of R and restart RStudio for the changes to take effect.&lt;br /&gt;
&lt;br /&gt;
Update R version using RGui (You can do this even in RStudio, but I felt it is slow) using this code:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;if(!require(installr)) {&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;+ install.packages(&quot;installr&quot;); require(installr)}&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;updateR()&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;i&gt;(&lt;/i&gt;Referene:&amp;nbsp;&lt;a href=&quot;http://www.r-statistics.com/2013/03/updating-r-from-r-on-windows-using-the-installr-package/&quot;&gt;http://www.r-statistics.com/2013/03/updating-r-from-r-on-windows-using-the-installr-package/&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
R installer will be opened and you need go through the installation wizard. Then the packages will be installed in the new R version and will be updated.&lt;br /&gt;
&lt;br /&gt;
No I can install forecast package in RStudio.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;install.packages(&quot;forecast&quot;)&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;library(forecast)&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/1675620948045143124/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2014/10/rstudio-error-package-forecast-is-not.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/1675620948045143124'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/1675620948045143124'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2014/10/rstudio-error-package-forecast-is-not.html' title='RStudio Error:  package ‘forecast’ is not available (for R version 3.0.1)'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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-4976381965604883427.post-6730310214293480055</id><published>2014-09-29T20:16:00.000-07:00</published><updated>2014-09-29T20:19:15.182-07:00</updated><title type='text'> MAC OS X- installing package &#39;gdata&#39; in RStudio (ERROR: tar: failed to set default locale)</title><content type='html'>These days I am working on R using RStudio and came with an interesting problem when I start to install &#39;gdata&#39; package.&lt;br /&gt;
&lt;br /&gt;
Error:&amp;nbsp;&lt;span style=&quot;background-color: white; color: #555555; font-family: &#39;Source Sans Pro&#39;, &#39;Lucida Grande&#39;, Verdana, Arial, sans-serif; font-size: 13px; line-height: 19.5px;&quot;&gt;tar: failed to set default locale&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
The &#39;gdata&#39; package is required to use when you want to import excel files to your RStudio workspace.&lt;br /&gt;
&lt;br /&gt;
I found that this is a problem with MAC OS. And you will face this issue if you try to install a new package (not only gdata).&lt;br /&gt;
&lt;br /&gt;
So the solution is to change the settings. In the terminal, type:&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;example&quot;&gt; defaults write org.R-project.R force.LANG en_US.UTF-8&lt;/pre&gt;
&lt;pre class=&quot;example&quot;&gt;&lt;/pre&gt;
This happens because of the internationalization of the R.app and you are using a non standard setup like different language. Thus, you will override the auto detection and set default setting.&lt;br /&gt;
&lt;br /&gt;
Then you need to quit RStudio, for the changes to take effect and then open it. Restarting RStudio using RStudio commands won&#39;t work.&lt;br /&gt;
&lt;br /&gt;
Type:&lt;br /&gt;
&amp;gt; install.packages(&quot;gdata&quot;)&lt;br /&gt;
&amp;gt; library(&quot;gdata&quot;, lib.loc=&quot;/Library/Frameworks/R.framework/Versions/3.0/Resources/library&quot;)&lt;br /&gt;
&lt;br /&gt;
You can do this through the GUI as well.&lt;br /&gt;
&lt;br /&gt;
Tool&amp;gt;Install Packages&lt;br /&gt;
Then from right bottom panel under libraries select gdata library.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference:&amp;nbsp;http://cran.r-project.org/bin/macosx/RMacOSX-FAQ.html</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/6730310214293480055/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2014/09/mac-os-installing-package-gdata-in.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/6730310214293480055'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/6730310214293480055'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2014/09/mac-os-installing-package-gdata-in.html' title=' MAC OS X- installing package &#39;gdata&#39; in RStudio (ERROR: tar: failed to set default locale)'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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-4976381965604883427.post-8303358684827792510</id><published>2013-08-30T00:40:00.000-07:00</published><updated>2013-08-30T00:40:59.702-07:00</updated><title type='text'>No more need a router, use Virtual Router - Mac or Windows</title><content type='html'>With Mac, using virtual router is so easy. No software is required.&lt;br /&gt;
&lt;br /&gt;
Check this video:&lt;br /&gt;
&lt;a href=&quot;http://www.youtube.com/watch?v=nzmVPC3VfLk&quot;&gt;http://www.youtube.com/watch?v=nzmVPC3VfLk&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also with Windows 7 and lower Windows OSs using&amp;nbsp;&lt;b&gt;Virtual router plus&lt;/b&gt; you are able to create a hotspot. When installing in windows 7 you may face some issues.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.youtube.com/watch?v=HMks0UFrF-w&quot;&gt;http://www.youtube.com/watch?v=HMks0UFrF-w&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Some common issues:&lt;br /&gt;
1.&amp;nbsp;Virtual Router Could Not Be Started&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;Close Virtual router&lt;/li&gt;
&lt;li&gt;&amp;nbsp;Go to command prompt.&amp;nbsp;&lt;/li&gt;
&lt;/ul&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;Go to START, enter &quot;cmd&quot;, then press &quot;ctrl + shift + enter&quot; to open command prompt as administrator. If not right click and select open as administrator.&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Copy paste following two commands into&amp;nbsp;command prompt, one by one.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;netsh wlan set hostednetwork mode=allow ssid=myNetwork key=password&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;netsh wlan start hostednetwork&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
2.&amp;nbsp;The group or resource is not in the correct state to perform the requested operation&lt;br /&gt;
&lt;br /&gt;
In cmd try the following command:&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;netsh wlan set hostednetwork mode=allow&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
However, I could not get this to work in Windows 8.</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/8303358684827792510/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2013/08/no-more-need-router-use-virtual-router.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/8303358684827792510'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/8303358684827792510'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2013/08/no-more-need-router-use-virtual-router.html' title='No more need a router, use Virtual Router - Mac or Windows'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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-4976381965604883427.post-3729019987530998797</id><published>2013-08-30T00:19:00.003-07:00</published><updated>2013-08-30T00:19:23.224-07:00</updated><title type='text'>Mobiscroll - Change the default date-format in the output date shown in the text box</title><content type='html'>Theses days I&#39;m trying out HTML5 to develop mobile applications. I find HTML5 rather useful compared to native coding in iPhone and Android. If not for HTML5, I will need to develop two separate applications for 2 platforms. HTML5 makes my life easier.&lt;br /&gt;
&lt;br /&gt;
I am using mobiscroll plugin 2.3. In the date picker, what ever I do, I was not able to get the output date in the format I need. Always I am getting:&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/AVvXsEiuefLutKciU1P9ZVbNTd79Dpl_VDlwydSeoJ_wRA8iZFus5hUAC1yaUnh9HKu2zREjehnl88QUoxpUiuW0m6ojTqkt2Zvx6CoeeIm3FM2UEmOkwN2IX0QpuwpAMpCCLI57Nbz_UBvFFQC4/s1600/date.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;74&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuefLutKciU1P9ZVbNTd79Dpl_VDlwydSeoJ_wRA8iZFus5hUAC1yaUnh9HKu2zREjehnl88QUoxpUiuW0m6ojTqkt2Zvx6CoeeIm3FM2UEmOkwN2IX0QpuwpAMpCCLI57Nbz_UBvFFQC4/s320/date.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&amp;nbsp;After trying out different options and after going through various forums, I managed to find how to handle it.&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; $(&quot;#toDate&quot;).mobiscroll().datetime({&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; preset: &#39;date&#39;,&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dateFormat: &#39;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;dd/mm/yyy&#39;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&#39;,&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dateOrder: &#39;ddmmy&#39;,&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;b&gt;&amp;nbsp; onSelect&lt;/b&gt;: function() {&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; $(this).val($.scroller.formatDate(&#39;dd-mm-yy HH:ii A&#39;, $(this).scroller(&#39;getDate&#39;)));&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; parseValue: function(val) {&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; var d = new Date(),&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; &amp;nbsp; result = [];&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; try {&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; &amp;nbsp; d = $.scroller.parseDate(&#39;dd-mm-yy HH:ii A&#39;, val);&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; }&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; catch (e) {&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; }&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; // Set wheels&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; result[0] = d.getDate();&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; result[1] = d.getMonth();&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; result[2] = d.getFullYear();&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&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; return result;&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;});&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
So the output will be something like&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/AVvXsEgvGKQMBMftAqvlzBC2tqkqhgVKo5yOY-MId-QjT89i3g3C7Tlj9Qt-kXaOIL6uR76_zylViZbRoMGH83CqSxJoph0PDwL1xG3KmZ5cBIoZcWIpnqGGAP4xl8OracDgbJz4b7mWyry1oXV9/s1600/date.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;70&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvGKQMBMftAqvlzBC2tqkqhgVKo5yOY-MId-QjT89i3g3C7Tlj9Qt-kXaOIL6uR76_zylViZbRoMGH83CqSxJoph0PDwL1xG3KmZ5cBIoZcWIpnqGGAP4xl8OracDgbJz4b7mWyry1oXV9/s320/date.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
If you need a format like &#39;Thursday 31 Aug 2013&#39;, then try &quot;DD d M yy&quot;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
However, if you are using a previous version, try the solution at:&lt;br /&gt;
&lt;a href=&quot;https://groups.google.com/forum/#!topic/mobiscroll/XbvCMpD1Zds&quot;&gt;https://groups.google.com/forum/#!topic/mobiscroll/XbvCMpD1Zds&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
For date formats refer:&lt;br /&gt;
&lt;a href=&quot;http://docs.mobiscroll.com/datetime&quot;&gt;http://docs.mobiscroll.com/datetime&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
My html part is:&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&amp;lt;li data-role=&quot;fieldcontain&quot;&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&amp;lt;label for=&quot;toDate&quot;&amp;gt;To:&amp;lt;/label&amp;gt; &amp;lt;input type=&quot;datetime&quot; id=&quot;toDate&quot; /&amp;gt;&amp;lt;/li&amp;gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/3729019987530998797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2013/08/mobiscroll-change-default-date-format.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/3729019987530998797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/3729019987530998797'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2013/08/mobiscroll-change-default-date-format.html' title='Mobiscroll - Change the default date-format in the output date shown in the text box'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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/AVvXsEiuefLutKciU1P9ZVbNTd79Dpl_VDlwydSeoJ_wRA8iZFus5hUAC1yaUnh9HKu2zREjehnl88QUoxpUiuW0m6ojTqkt2Zvx6CoeeIm3FM2UEmOkwN2IX0QpuwpAMpCCLI57Nbz_UBvFFQC4/s72-c/date.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4976381965604883427.post-5270759644489051722</id><published>2013-05-23T22:20:00.000-07:00</published><updated>2013-05-23T22:20:54.993-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AJAX"/><category scheme="http://www.blogger.com/atom/ns#" term="API POST Request"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><title type='text'>Simple html page with JQuery to call an API</title><content type='html'>I had been developing an API using EJB and some of the interns (they are supposed to develop the client application) had a problem in understanding how to communicate with the API. When I asked them to&amp;nbsp;initiate&amp;nbsp;POST request to an API using javascript only, they looked puzzled.&lt;br /&gt;
&lt;br /&gt;
Thus, I thought to share a sample code with you.&lt;br /&gt;
&lt;br /&gt;
Important code segments to take note.&lt;br /&gt;
&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;jQuery.support.cors = true:&amp;nbsp;&lt;/span&gt;&lt;/i&gt;Force cross site scripting (XSS). Importantly, to work in internet explorer&lt;br /&gt;
jQuery.parseJSON(result): A well-formed JSON string is turned to a javascript object.&lt;br /&gt;
&lt;br /&gt;
index.html page is as follows:&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;html&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;title&amp;gt;Sample jQuery Web Page&amp;lt;/title&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;head&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot; src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;Login = function() {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;var resultDiv = $(&quot;#resultDiv&quot;);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;jQuery.support.cors = true;&lt;/span&gt;&lt;/i&gt;&amp;nbsp; &amp;nbsp; //force cross site scripting - XSS&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;$.ajax({&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url: &quot;http://xyz.abc.com/user/login&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; type: &quot;POST&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; data: { username: $(&quot;#username&quot;).val(), password: $(&quot;#password&quot;).val(), callback: &quot;?&quot; },&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; dataType: &quot;text&quot;,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; success: function (result) {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(result);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var res = jQuery.parseJSON(result);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var status= res.status;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(status);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch (status) {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 0:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alert(&quot;sessionId: &quot; + res.sessionId);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;alert(&quot;My profileId: &quot;+ res.profileId);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt;&lt;/span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;resultDiv.html(result);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; default: //e.g. at invalide username, status=2&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; resultDiv.html(result);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; error: function (xhr, ajaxOptions, thrownError) {&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(xhr.status);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(thrownError);&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; });&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;};&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;/head&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;body&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;h1&amp;gt;Sample jQuery Web Page - Login&amp;lt;/h1&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;form&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;label&amp;gt;Username&amp;lt;/label&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;input name=&quot;Username&quot; type=&quot;text&quot; id=&quot;username&quot;&amp;nbsp; /&amp;gt; &amp;lt;br/&amp;gt;&amp;lt;br/&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;label&amp;gt;Password&amp;lt;/label&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;input name=&quot;Password&quot; type=&quot;password&quot; id = &quot;password&quot; /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;input name=&quot;Submit&quot; type=&quot;button&quot; id=&quot;submit&quot; onclick=&quot;Login()&quot; value=&quot;Submit&quot; /&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;div id=&quot;resultDiv&quot;&amp;gt;&amp;lt;/div&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;/body&amp;gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&amp;lt;/html&lt;/span&gt;&amp;gt;&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/5270759644489051722/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2013/05/simple-html-page-with-jquery-to-call-api.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/5270759644489051722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/5270759644489051722'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2013/05/simple-html-page-with-jquery-to-call-api.html' title='Simple html page with JQuery to call an API'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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-4976381965604883427.post-1086674756383744290</id><published>2013-05-23T21:53:00.001-07:00</published><updated>2013-05-23T21:54:51.845-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AJAX"/><category scheme="http://www.blogger.com/atom/ns#" term="cross site scripting"/><category scheme="http://www.blogger.com/atom/ns#" term="jQuery"/><category scheme="http://www.blogger.com/atom/ns#" term="No Transport"/><title type='text'>Error &quot;No Transport&quot; - with AJAX/jQuery</title><content type='html'>Back to my blog after sometime..&lt;br /&gt;
&lt;br /&gt;
I developed a web application to call a remote API (done using EJB) using javascript. Using javascript the data will be requested from the server and the returned data will be displayed in the html page in my local browser. I was ready to deploy as the code worked fine in firefox, chrome and safari.. but found it is not working in Internet Explorer.. :(&lt;br /&gt;
&lt;br /&gt;
I am getting the error AJAX error message mentioned above. AJAX code is not working.. :(&lt;br /&gt;
How to handle this..???&lt;br /&gt;
&lt;br /&gt;
Add &amp;nbsp;&amp;nbsp;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;jQuery.support.cors = true;&lt;/span&gt; &amp;nbsp; &amp;nbsp;&lt;/i&gt;before &lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;jQuery.ajax&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
It is working now even in IE.. :)&lt;br /&gt;
&lt;br /&gt;
This is due to an IE cross domain issue. &amp;nbsp;JQuery checks whether cross site scripting (XSS) is allowed, and IE under normal browser context blocks cross site scripting. Since it is partially controlled by&amp;nbsp;&lt;i&gt;&lt;span style=&quot;color: blue;&quot;&gt;jQuery.support.cors&lt;/span&gt;&lt;/i&gt;, with the above&amp;nbsp;tweak&amp;nbsp;we can fix the issue. Thus, XSS is enabled for jQuery.&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
http://mike-ward.net/blog/post/00660/force-jquery-1-5-to-always-allow-cross-site-scripting&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/1086674756383744290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2013/05/error-no-transport-with-ajaxjson.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/1086674756383744290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/1086674756383744290'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2013/05/error-no-transport-with-ajaxjson.html' title='Error &quot;No Transport&quot; - with AJAX/jQuery'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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-4976381965604883427.post-2012927772105826658</id><published>2012-10-21T08:27:00.000-07:00</published><updated>2012-11-06T15:53:41.754-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JarBundler"/><category scheme="http://www.blogger.com/atom/ns#" term="JDK 7"/><title type='text'>Jar Bundler - MAC OS X</title><content type='html'>I used to bundle all the jar files using JarBundler we get with Xcode. However, this is not working with JDK 7. Previously, I used it with JDK 1.6 (Apple Java 6) and then made a package file with Package Maker. Since JDK 7 is from Oracle, it cannot be used with Apple&#39;s tools like Xcode. Oracle cannot support or use, tools like Xcode or JarBundler as they use non-public APIs.&lt;br /&gt;
&lt;br /&gt;
Therefore, apps using JDK 7 must be bundled with appbundler or javafxpacker. But according to Oracle &quot;JavaFX applications can only be packaged on Mac as desktop applications and cannot be deployed on Mac, because there is no standalone JRE or JavaFX Runtime&quot;. Similarly, Launch4j version for Mac could only be used to create .exe files and cannot be deployed on Mac.&lt;br /&gt;
&lt;br /&gt;
So how to do it? It seems the only option is appbundler (http://java.net/projects/appbundler).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In the terminal with the appbundler, you may get the following error (&lt;b&gt;$ant bundle-button&lt;/b&gt;):&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;BUILD FAILED&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;/Users/me/Downloads/components-ButtonDemoProject/build.xml:16: java.nio.file.NoSuchFileException: /Users/nus/Downloads/components-ButtonDemoProject/Info.plist&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at sun.nio.fs.UnixCopyFile.copy(UnixCopyFile.java:520)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at sun.nio.fs.UnixFileSystemProvider.copy(UnixFileSystemProvider.java:252)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at java.nio.file.Files.copy(Files.java:1225)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at com.oracle.appbundler.AppBundlerTask.copy(AppBundlerTask.java:566)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at com.oracle.appbundler.AppBundlerTask.copyRuntime(AppBundlerTask.java:357)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at com.oracle.appbundler.AppBundlerTask.execute(AppBundlerTask.java:290)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at java.lang.reflect.Method.invoke(Method.java:601)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.Task.perform(Task.java:348)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.Target.execute(Target.java:390)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.Target.performTasks(Target.java:411)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.Project.executeTarget(Project.java:1368)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.Project.executeTargets(Project.java:1251)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.Main.runBuild(Main.java:809)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.Main.startAnt(Main.java:217)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #3d85c6;&quot;&gt;&lt;i&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
It happens because JAVA_HOME is not set properly. Therefore, it can be set by in the terminal:&lt;br /&gt;
&lt;b&gt;export JAVA_HOME=`/usr/libexec/java_home --version 1.7.0_10`&lt;/b&gt;&lt;br /&gt;
or&lt;br /&gt;
&lt;b&gt;export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
1.7.0_10 is the JDK version I am using.&lt;br /&gt;
&lt;br /&gt;
Thus, now I am getting BUILD SUCCESSFUL when run&amp;nbsp;&lt;b&gt;$ant bundle-button&lt;/b&gt;&lt;br /&gt;
You will get .app now.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference:&lt;br /&gt;
http://docs.oracle.com/javafx/2/installation_2-1/javafx-installation-mac.htm&lt;br /&gt;
http://docs.oracle.com/javase/7/docs/technotes/guides/jweb/packagingAppsForMac.html</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/2012927772105826658/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/10/jar-bundler-mac-os-x.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/2012927772105826658'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/2012927772105826658'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/10/jar-bundler-mac-os-x.html' title='Jar Bundler - MAC OS X'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4976381965604883427.post-5415311390451856740</id><published>2012-10-14T09:32:00.000-07:00</published><updated>2012-10-14T16:51:23.375-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="files appear gray"/><category scheme="http://www.blogger.com/atom/ns#" term="JFileChooser"/><category scheme="http://www.blogger.com/atom/ns#" term="MAC OS"/><title type='text'>Issue - JFileChooser on Mac OS X</title><content type='html'>These days I am converting a java code written in a Windows system to MAC OS X Lion(10.7.X). Though we know java is platform&amp;nbsp;independent, with MAC OS I am getting various issues.&amp;nbsp;I am having JDK 1.7.&lt;br /&gt;
&lt;br /&gt;
The current problem I am having is with JFileChooser. According to Oracle,&amp;nbsp;&lt;span style=&quot;font-family: inherit;&quot;&gt;file chooser GUI is used for navigating the file system, and then either choosing a file or directory from a list, or entering the name of a file or directory. To display a file chooser, you usually use the&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;JFileChooser&lt;/code&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;API to show a modal dialog&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;containing the file chooser.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
So what is the problem I am facing. I am unable to select files with&amp;nbsp;JFileChooser, even if I had set the selection mode as&amp;nbsp;FILES_AND_DIRECTORIES.&amp;nbsp;Even if the files are shown, in file chooser window the file names appear in gray. Thus, even if a file is selected and clicked save, actually a file is not selected. The sample code segment is shown below.&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
Code...&lt;/div&gt;
&lt;i&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;JFileChooser&lt;span class=&quot;s1&quot;&gt; chooser = &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;new&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &lt;/span&gt;JFileChooser&lt;span class=&quot;s1&quot;&gt;()&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;i&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;chooser.setFileSelectionMode(&lt;span class=&quot;s1&quot;&gt;JFileChooser&lt;/span&gt;.FILES_AND_DIRECTORIES );&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
I tried various options to solve it, but could not get it to work. :(&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Found the solution!! You need to change the default Look and Feel (LAF or L&amp;amp;F) for MAC.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
At the beginning you have to set to JAVA LAF.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;try {&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;      &lt;b&gt;UIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());&lt;/b&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;    } catch(Exception e) {&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;      System.out.println(&quot;Error setting Java LAF: &quot; + e);&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;    }&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;It is working now. :) You can try to change into other LAFs and see how it appears.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/5415311390451856740/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/10/issue-jfilechooser-on-mac-os-x.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/5415311390451856740'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/5415311390451856740'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/10/issue-jfilechooser-on-mac-os-x.html' title='Issue - JFileChooser on Mac OS X'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4976381965604883427.post-6644057665277517648</id><published>2012-10-14T09:18:00.003-07:00</published><updated>2012-11-07T07:08:59.385-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Max buffer size"/><category scheme="http://www.blogger.com/atom/ns#" term="NetBeans"/><title type='text'>receive buffer of socket java.net.DatagramSocket@49cfbdab was set to 20MB, but the OS only allocated 3.36MB</title><content type='html'>Have you seen this warning in NetBeans??? You need to increase the size of&amp;nbsp;receive&amp;nbsp;buffer.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;WARNING: &lt;b&gt;receive buffer of socket java.net.DatagramSocket@&lt;wbr&gt;&lt;/wbr&gt;49cfbdab was set to 20MB, but the OS only allocated 3.36MB&lt;/b&gt;. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;Oct 10, 2012 2:36:08 PM org.jgroups.logging.JDKLogImpl warn&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;i&gt;&lt;span style=&quot;color: #3d85c6;&quot;&gt;WARNING: receive buffer of socket java.net.MulticastSocket@&lt;wbr&gt;&lt;/wbr&gt;65ad4b68 was set to 25MB, but the OS only allocated 3.36MB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)&lt;/span&gt;&lt;/i&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white;&quot;&gt;
&lt;div style=&quot;color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
Even though, you can ignore this warning, as suggested by NetBeans it is better to handle it. I am using a MAC OS X. So the changes to max buffer will be done via the Terminal.&lt;br /&gt;
&lt;br /&gt;
The Steps are shown below.&lt;br /&gt;
&lt;br /&gt;
Open Terminal.&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-size: 13px;&quot;&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;supz:~# sudo nvram boot-args=&quot;ncl=131072&quot;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;supz:~# sudo shutdown -r now&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;color: black; font-size: small; font-weight: normal;&quot;&gt;After the restart, enter the following lines shown below.&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;supz:~# sudo sysctl -w kern.ipc.maxsockbuf=33554432&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; font-weight: normal;&quot;&gt;kern.ipc.maxsockbuf: 8388608 -&amp;gt; 33554432&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;supz:~# sudo sysctl -w net.inet.udp.recvspace=16777216&lt;/span&gt;&lt;/h4&gt;
&lt;h4&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-weight: normal;&quot;&gt;net.inet.udp.recvspace: 42080 -&amp;gt; 16777216&lt;/span&gt;&lt;/h4&gt;
&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;
For more information, refer:&amp;nbsp;&lt;a href=&quot;http://lists.apple.com/archives/darwin-kernel/2012/Apr/msg00042.html&quot;&gt;http://lists.apple.com/archives/darwin-kernel/2012/Apr/msg00042.html&lt;/a&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/6644057665277517648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/10/receive-buffer-of-socket.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/6644057665277517648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/6644057665277517648'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/10/receive-buffer-of-socket.html' title='receive buffer of socket java.net.DatagramSocket@49cfbdab was set to 20MB, but the OS only allocated 3.36MB'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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-4976381965604883427.post-283968493856193376</id><published>2012-10-14T09:05:00.000-07:00</published><updated>2012-10-14T17:40:15.816-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="InetAddress.getLocalHost"/><category scheme="http://www.blogger.com/atom/ns#" term="JDK 7"/><category scheme="http://www.blogger.com/atom/ns#" term="MAC OS"/><category scheme="http://www.blogger.com/atom/ns#" term="UnknownHostException"/><title type='text'>MAC OS X - InetAddress.getLocalHost() throws UnknownHostException</title><content type='html'>I am currently looking at some socket programming code which works in windows, but not in MAC OS X 10.7. I am using JDK 1.7. Previously this worked well in JDK 1.6.&lt;br /&gt;
&lt;br /&gt;
The issue is with&amp;nbsp;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;InetAddress.getLocalHost()&lt;/span&gt;&lt;br /&gt;
it throws &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;java.net.UnknownHostException&amp;nbsp;&lt;/span&gt;when I used with &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;getHostAddress&lt;/span&gt; or &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;getHostName&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;The workaround is,&lt;/b&gt;&amp;nbsp;edit host files&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Open Terminal and type the line shown below to&amp;nbsp;&lt;/span&gt;edit in etc/hosts.&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;sudo nano /private/etc/hosts&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;Enter password.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;In etc/hosts, (use arrow keys to move around)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;add a new line with &amp;nbsp;&lt;/span&gt;&lt;i style=&quot;color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;IP address &amp;lt;space&amp;gt; and hostname&lt;/i&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;Here, you can get the hostname by typing &#39;hostname&#39; in terminal&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;To save control+o, then enter and to exit control+x&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;Now back in terminal, flush the cache by&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;dscacheutil -flushcache&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now, there should not be any error.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Sometimes you get both hostname and IP with getLocalHost().&amp;nbsp;&lt;/b&gt;Therefore, from getLocalhost() extract only the substring with the IP.&lt;br /&gt;
&lt;br /&gt;
Steps are:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;First convert the inetAddress you get with getLocalHost to String.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Then get the substring with the IP (Original String will be in the form of &amp;lt;host_name&amp;gt;/&amp;lt;IP&amp;gt;) e.g. &lt;span style=&quot;font-family: Courier New, Courier, monospace;&quot;&gt;String&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;ip_addr&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Convert back the IP substring to inetAddress to be used in Socket.&amp;nbsp;&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;InetAddress.getName(ip_addr)&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
More information @ &lt;a href=&quot;http://java.net/jira/browse/MACOSX_PORT-564&quot;&gt;http://java.net/jira/browse/MACOSX_PORT-564&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/283968493856193376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/10/mac-os-x-inetaddressgetlocalhost-throws.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/283968493856193376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/283968493856193376'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/10/mac-os-x-inetaddressgetlocalhost-throws.html' title='MAC OS X - InetAddress.getLocalHost() throws UnknownHostException'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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-4976381965604883427.post-5917935721204601456</id><published>2012-04-21T21:27:00.001-07:00</published><updated>2013-08-29T23:54:44.362-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="installation issue"/><category scheme="http://www.blogger.com/atom/ns#" term="smartPLS"/><title type='text'>smartPLS Installation Error - &quot;An error has occurred. See the log file &quot;</title><content type='html'>I am having a module on Statistics and I am supposed to use smartPLS 2. 1 year ago I was able to install and work smartPLS quite easily without any issue in installation.&amp;nbsp;But this time I had an installation issue with smartPLS. And during the class I got to know lot of my friends could not install either. So I thought to share the issue and solution to overcome it.&lt;br /&gt;
&lt;br /&gt;
After installing for the first time, when I tried to open I get the error message:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;An error has&amp;nbsp;occurred. See the log file&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;C:\Program Files(x86) \SmartPLS2\Configuration\1329991694250.log&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
When checked in the log file it says:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;eclipse.buildId=unknown&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;java.version=1.7.0_02&amp;nbsp;&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;java.vendor=Oracle Corporation ...........&lt;/i&gt;&lt;br /&gt;
&lt;i&gt;&lt;br /&gt;&lt;/i&gt;
&lt;b&gt;So how to solve it?&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
This is due to having JRE 7 in your machine. When you try to install smartPLS 2 with JRE 7, you get an incompatibility issue. With JRE 6, there is no such issue.&lt;br /&gt;
&lt;br /&gt;
Step 1: If you do not have JRE 6 installed, install it. Do not uninstall JRE 7.&lt;br /&gt;
Step 2: Copy the path to JRE 6 installation (e.g., c:\Program Files (x86)\Java\jre6\bin\javaw.exe)&lt;br /&gt;
Step 3: Open Notepad and copy the below 2 lines to Notepad.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-vm&lt;br /&gt;
c:\Program Files (x86)\Java\jre6\bin\javaw.exe&lt;br /&gt;
&lt;br /&gt;
(Note: Last line is the path to JRE 6 installation, it will vary based on your&amp;nbsp;installation. Replace your path of JRE 6 )&lt;br /&gt;
&lt;br /&gt;
Step 4: Save the file as&lt;br /&gt;
&lt;br /&gt;
smartpls.ini&lt;br /&gt;
in your SmartPLS 2 program folder (e.g., c:\Program Files (x86)\SmartPLS)&lt;br /&gt;
&lt;br /&gt;
(Note: extension of the file is .ini)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thus, JRE6 will be automatically used by smartPLS.&lt;br /&gt;
&lt;br /&gt;
There are some other methods in :&amp;nbsp;&lt;a href=&quot;http://www.smartpls.de/forum/viewtopic.php?t=1882&quot;&gt;http://www.smartpls.de/forum/viewtopic.php?t=1882&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/5917935721204601456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/04/smartpls-installation-error-error-has.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/5917935721204601456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/5917935721204601456'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/04/smartpls-installation-error-error-has.html' title='smartPLS Installation Error - &quot;An error has occurred. See the log file &quot;'/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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-4976381965604883427.post-8524480601951586397</id><published>2012-04-19T04:14:00.001-07:00</published><updated>2012-04-19T04:14:37.428-07:00</updated><title type='text'></title><content type='html'>Hi.. I am totally new to blogging and I am interested in Android development. So would like to share my experience with you all.. :)&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://supunmali-myexperience.blogspot.com/feeds/8524480601951586397/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/04/hi.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/8524480601951586397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4976381965604883427/posts/default/8524480601951586397'/><link rel='alternate' type='text/html' href='http://supunmali-myexperience.blogspot.com/2012/04/hi.html' title=''/><author><name>SupZ</name><uri>http://www.blogger.com/profile/05996623494969071528</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>