<?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-6119649979159515263</id><updated>2024-11-08T07:16:59.678-08:00</updated><category term="Java"/><category term="Ubuntu"/><category term="Android"/><category term="JavaScript"/><category term="Linux"/><category term="iOS"/><category term="nexus 4"/><category term="AngularJs"/><category term="BOTS"/><category term="Debian"/><category term="Drupal"/><category term="Drupal 7"/><category term="Drupal Services"/><category term="EDI"/><category term="EDIFACT"/><category term="Google"/><category term="Google Maps API"/><category term="Karaf"/><category term="Maven"/><category term="Phonegap"/><category term="Repository"/><category term="Rest"/><category term="Restart"/><category term="Servicemix"/><category term="Share"/><category term="SimpleDateFormatter"/><category term="Spring"/><category term="Spring Profiles"/><category term="Start"/><category term="Stop"/><category term="Tomcat"/><category term="Tomcat 6"/><category term="Ubuntu Server"/><category term="VirtualBox"/><category term="Windows"/><category term="X12"/><category term="XML"/><category term="ai"/><category term="bitbucket"/><category term="gist"/><category term="git"/><category term="github"/><category term="nexus 7"/><category term="objective-C"/><category term="sudo"/><title type='text'>ddelizia blog</title><subtitle type='html'>A programming diary to share knowledge on the network</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-8436331381731079531</id><published>2017-11-14T11:09:00.001-08:00</published><updated>2017-11-14T11:09:20.756-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ai"/><title type='text'>Genetic Algorithms: Cool Name &amp; Damn Simple</title><content type='html'>&lt;img src=&quot;http://ift.tt/eA8V8J&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
Genetic algorithms are a mysterious sounding technique in mysterious sounding field--artificial intelligence. This is the problem with naming things appropriately.&lt;br /&gt;
&lt;br /&gt;
from Pocket http://ift.tt/1poDGOs&lt;br /&gt;
via &lt;a href=&quot;http://ift.tt/16Xitlp&quot;&gt;IFTTT&lt;/a&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/8436331381731079531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/8436331381731079531?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/8436331381731079531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/8436331381731079531'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2017/11/genetic-algorithms-cool-name-damn-simple.html' title='Genetic Algorithms: Cool Name &amp; Damn Simple'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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-6119649979159515263.post-8370198423958566813</id><published>2014-05-03T13:59:00.000-07:00</published><updated>2014-05-03T14:03:41.986-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AngularJs"/><title type='text'>AngularJs form validation with Twitter Bootstrap</title><content type='html'>Hi there, it has been a long time that I dont write a post on this blog but I have been really busy in the last months. In those months I have been having a look at new technologies, and between these I was studying really hard AngularJs. It is a powerful MVC framework for spa (Single Page Application) you can find more documntation on the official website if you are new and interested in learning (http://angularjs.org).

I was writing with AngularJs a form validator that allows you to simply validate form. I just needed few lines of code to create a powerful validator that validates single field and the entire form.

Dependencies are:

&lt;ul&gt;
&lt;li&gt;Twitter Bootstrap css&lt;/li&gt;
&lt;li&gt;angular-growl&lt;/li&gt;
&lt;li&gt;angular-strap&lt;/li&gt;
&lt;/ul&gt;

&lt;script src=&quot;https://gist.github.com/ddelizia/11505507.js&quot;&gt;&lt;/script&gt;

&lt;script src=&quot;https://gist.github.com/ddelizia/11505495.js&quot;&gt;&lt;/script&gt;

&lt;script src=&quot;https://gist.github.com/ddelizia/11505485.js&quot;&gt;&lt;/script&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/8370198423958566813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/8370198423958566813?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/8370198423958566813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/8370198423958566813'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2014/05/angularjs-form-validation-with-twitter.html' title='AngularJs form validation with Twitter Bootstrap'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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-6119649979159515263.post-6029160785287540286</id><published>2013-08-08T03:36:00.001-07:00</published><updated>2013-08-08T03:36:23.234-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring"/><category scheme="http://www.blogger.com/atom/ns#" term="Spring Profiles"/><title type='text'>How to dynamically load file properties based on environments: Spring Profiles tutorial</title><content type='html'>If you are working with different environments which need different property file configurations, maybe the best way is to load a specific profile for each different environment wich load the specific properties for that environment. There are different ways to create profiles in Java, but in this post I will just talk about the way I used.&lt;br&gt;
My applications normally uses Spring framework and Maven for the build/deploy process. In Maven 3 is possible to create profiles but I find it not very usefull because if you want to create application properties dynamically then you need to use ant plugins, so I found another way: using Spring Profiles (avaliable from Spring 3.1).

&lt;br&gt;
&lt;a href=&quot;http://ddelizia.blogspot.com/2013/08/how-to-dynamically-load-file-properties.html#more&quot;&gt;Read more »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/6029160785287540286/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/6029160785287540286?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/6029160785287540286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/6029160785287540286'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2013/08/how-to-dynamically-load-file-properties.html' title='How to dynamically load file properties based on environments: Spring Profiles tutorial'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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-6119649979159515263.post-3622559418716655729</id><published>2013-08-08T03:05:00.002-07:00</published><updated>2013-08-08T03:06:43.751-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="nexus 4"/><category scheme="http://www.blogger.com/atom/ns#" term="nexus 7"/><title type='text'>How to enable USB debugging mode on Nexus 4/Nexus 7</title><content type='html'>Starting in Android 4.2 Jelly Bean, Google has hidden the ability to enable USB debugging mode.&lt;br /&gt;
To see the option for USB debugging mode in Android 4.2 or higher, do the following:
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Open up your device’s “Settings”. This can be done by pressing the Menu button while on your home screen and tapping “System settings”&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Press “About phone/About tablet”.
    At the “About” screen, scroll to the bottom and press on “Build number” seven times.
        Make sure you tap seven times. You will see a message thats says “You are now a developer!”. &lt;/li&gt;
&lt;li&gt;Now you have unlocked USB debugging mode. You can now enable/disable it whenever you desire by going to “Settings” -&amp;gt; “Developer Options” -&amp;gt; “Debugging” -&amp;gt;” USB debugging”.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
The best part is you only have to do the tap-build-number-seven-times once. After you do it once, USB debugging has been unlocked and you can enable or disable at your leisure.&lt;br /&gt;
&lt;ul&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/3622559418716655729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/3622559418716655729?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/3622559418716655729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/3622559418716655729'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2013/08/how-to-enable-usb-debugging-mode-on.html' title='How to enable USB debugging mode on Nexus 4/Nexus 7'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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-6119649979159515263.post-6111819748190053324</id><published>2013-05-08T04:19:00.001-07:00</published><updated>2013-05-08T04:23:01.287-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Debian"/><category scheme="http://www.blogger.com/atom/ns#" term="Karaf"/><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="Servicemix"/><title type='text'>Install Servicemix 4.4.2 as Linux Service</title><content type='html'>&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr6fcOpI5zABiaXgm1bbGAWT6d21UXKPFYXdCvMm2nJj6zKgS2gzSKw28Jg8XJkTxiydxsG7KVgbbFVYOzcr6pnVQH4-zCWe1gu9Lyy0K6NA_t77Cmlp2FWPun0OJlbcAtybWRFAdlhmc/s1600/ServiceMix+logo.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhr6fcOpI5zABiaXgm1bbGAWT6d21UXKPFYXdCvMm2nJj6zKgS2gzSKw28Jg8XJkTxiydxsG7KVgbbFVYOzcr6pnVQH4-zCWe1gu9Lyy0K6NA_t77Cmlp2FWPun0OJlbcAtybWRFAdlhmc/s320/ServiceMix+logo.png&quot;&gt;&lt;/a&gt; &lt;/div&gt;
First of all you need to download Servicemix (you can do it from this link &lt;a href=&quot;http://repository.apache.org/service/local/artifact/maven/redirect?r=snapshots&amp;amp;g=org.apache.servicemix&amp;amp;a=apache-servicemix&amp;amp;v=4.4.3-SNAPSHOT&amp;amp;p=tar.gz&quot;&gt;http://repository.apache.org/service/local/artifact/maven/redirect?r=snapshots&amp;amp;g=org.apache.servicemix&amp;amp;a=apache-servicemix&amp;amp;v=4.4.3-SNAPSHOT&amp;amp;p=tar.gz&lt;/a&gt;) once you have it on you linux station unzip the tar in your /opt folder. Then follow the steps below:

&lt;br&gt;
&lt;a href=&quot;http://ddelizia.blogspot.com/2013/05/install-servicemix-442-as-linux-service.html#more&quot;&gt;Read more »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/6111819748190053324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/6111819748190053324?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/6111819748190053324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/6111819748190053324'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2013/05/install-servicemix-442-as-linux-service.html' title='Install Servicemix 4.4.2 as Linux Service'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEhr6fcOpI5zABiaXgm1bbGAWT6d21UXKPFYXdCvMm2nJj6zKgS2gzSKw28Jg8XJkTxiydxsG7KVgbbFVYOzcr6pnVQH4-zCWe1gu9Lyy0K6NA_t77Cmlp2FWPun0OJlbcAtybWRFAdlhmc/s72-c/ServiceMix+logo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-8327681446931449392</id><published>2013-02-05T13:38:00.001-08:00</published><updated>2013-02-05T13:38:42.307-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="nexus 4"/><title type='text'>Got the new nexus 4! ...finally</title><content type='html'>&lt;p dir=&quot;ltr&quot;&gt;It lasted just 10 minutes in the Spanish play store... At the 2nd minute I got it and after almost a week has arrived. This is my first post with it, and soon some photo to evaluate it. &lt;/p&gt;
&lt;p dir=&quot;ltr&quot;&gt;Stay tuned!&lt;/p&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/8327681446931449392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/8327681446931449392?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/8327681446931449392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/8327681446931449392'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2013/02/got-new-nexus-4-finally.html' title='Got the new nexus 4! ...finally'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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-6119649979159515263.post-2094656436532667376</id><published>2012-12-06T13:35:00.000-08:00</published><updated>2012-12-06T13:35:18.799-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bitbucket"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><title type='text'>My new-FREE project repository</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://bitbucket.org/ddelizia&quot; target=&quot;_blank&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;92&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiB1n6k_geTLBrcZqPt6Hlt8nt_h1qZazDmFTOCpybUekjSFnptMBFd_1Q-UobzXAE0EvCZD1WcjEOrhCt__i_5UxwIbAeGE6pso7LRlVTfo_HfZBLny3k-hN4M1pSf0tZXK4tcH4F1SSI/s320/logoBitBucketPNG.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
After some reserch and some experiment finally I fund the correct hosting. My requirements were:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Hosting public and private projects&lt;/li&gt;
&lt;li&gt;Issue tracker&lt;/li&gt;
&lt;li&gt;Wiki&lt;/li&gt;
&lt;li&gt;Easy to use&lt;/li&gt;
&lt;li&gt;No space limits&lt;/li&gt;
&lt;li&gt;And FREE&lt;/li&gt;
&lt;/ul&gt;
At the beginning I thought that was impossible to find something with this features, but the I discovered &lt;a href=&quot;https://bitbucket.org/&quot; target=&quot;_blank&quot;&gt;Bitbucket&lt;/a&gt; developed by Atlassian.&lt;br /&gt;
It&#39;s based on Git (and also Mercurial) and really similar to GitHub but the pricing plan in my opinion is much better.&lt;br /&gt;
If you know some other Hosting with this features please let me now commenting this post. &lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/2094656436532667376/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/2094656436532667376?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/2094656436532667376'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/2094656436532667376'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2012/12/my-new-free-project-repository.html' title='My new-FREE project repository'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEiB1n6k_geTLBrcZqPt6Hlt8nt_h1qZazDmFTOCpybUekjSFnptMBFd_1Q-UobzXAE0EvCZD1WcjEOrhCt__i_5UxwIbAeGE6pso7LRlVTfo_HfZBLny3k-hN4M1pSf0tZXK4tcH4F1SSI/s72-c/logoBitBucketPNG.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-852587162065396662</id><published>2012-09-13T06:56:00.005-07:00</published><updated>2012-09-13T06:56:52.020-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="Maven"/><category scheme="http://www.blogger.com/atom/ns#" term="Repository"/><title type='text'>Maven Error - Could not find artifact  in central (http://repo1.maven.org/maven2)</title><content type='html'>If you get an error like the following:

&lt;script src=&quot;https://gist.github.com/3714403.js?file=gistfile1.txt&quot;&gt;&lt;/script&gt;

&lt;a href=&quot;http://ddelizia.blogspot.com/2012/09/maven-error-could-not-find-artifact-in.html#more&quot;&gt;Read more »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/852587162065396662/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/852587162065396662?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/852587162065396662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/852587162065396662'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2012/09/maven-error-could-not-find-artifact-in.html' title='Maven Error - Could not find artifact &lt;artifact&gt; in central (http://repo1.maven.org/maven2)'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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-6119649979159515263.post-4931551231611547561</id><published>2012-03-08T08:16:00.001-08:00</published><updated>2012-03-08T08:26:13.464-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Android"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><category scheme="http://www.blogger.com/atom/ns#" term="Phonegap"/><title type='text'>PhoneGap - Download and open a file (pdf, zip, image...)</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/AVvXsEhMY5z1lNmNxADE7hKyMj4tYmNL0qKaZSJbP7If7YavwcUGF-JzP7SRMZPkjucMea4gsAkUCd-nUOB4jmjvg84_ZsjXOV0mQ10GC2nsoP2MsUb2kfsoVoeWp-fno1Nx8AKZmiMP_9ZJtn4/s1600/PhoneGapLogo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left:1em; margin-right:1em&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; width=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMY5z1lNmNxADE7hKyMj4tYmNL0qKaZSJbP7If7YavwcUGF-JzP7SRMZPkjucMea4gsAkUCd-nUOB4jmjvg84_ZsjXOV0mQ10GC2nsoP2MsUb2kfsoVoeWp-fno1Nx8AKZmiMP_9ZJtn4/s320/PhoneGapLogo.png&quot;&gt;&lt;/a&gt;&lt;/div&gt;

In the last week I was looking for a solution to show a pdf using phonegap on android and iPhone. Searching on internet I figured out that a possible solution would be the &lt;a href=&quot;https://github.com/purplecabbage/phonegap-plugins/tree/master/iPhone/ChildBrowser&quot;&gt;Phonegap ChildBrowser plugin&lt;/a&gt;.
This plugin basically open the WebView native component and show the address. After some modification (because i needed to use POST request and https protocol) of this plugin I managed to make it work on iPhone.
So I did the same modification to the Android code but this time I was not so lucky. I started to find in the network and I came across the &lt;a href=&quot;http://giovesoft.blogspot.com/2011/08/download-and-open-pdf-with-phonegap.html&quot;&gt;Giovesoft Blog post&lt;/a&gt;.
&lt;br&gt;
&lt;a href=&quot;http://ddelizia.blogspot.com/2012/03/phonegap-download-and-open-file-pdf-zip.html#more&quot;&gt;Read more »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/4931551231611547561/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/4931551231611547561?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/4931551231611547561'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/4931551231611547561'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2012/03/phonegap-download-and-open-file-pdf-zip.html' title='PhoneGap - Download and open a file (pdf, zip, image...)'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEhMY5z1lNmNxADE7hKyMj4tYmNL0qKaZSJbP7If7YavwcUGF-JzP7SRMZPkjucMea4gsAkUCd-nUOB4jmjvg84_ZsjXOV0mQ10GC2nsoP2MsUb2kfsoVoeWp-fno1Nx8AKZmiMP_9ZJtn4/s72-c/PhoneGapLogo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-5786364755057739029</id><published>2012-03-07T01:17:00.000-08:00</published><updated>2012-03-08T01:49:15.742-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="objective-C"/><title type='text'>iOS dev - Post parameters to an URL with objective-C</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&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/AVvXsEi4RneXwD0m9vg7UCUXr6eXzo-5Yy7Oullpvzi1BTznm1toxaHG7na4glZizcSSbXTZDjj8MULdtRRUy2YlIohNnGPEb04XJ3FK08q-308Ii5iCdxnstq8E_Du8PJTdPvwWd1QV9TRVh5Y/s1600/iPhone_SDK.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/AVvXsEi4RneXwD0m9vg7UCUXr6eXzo-5Yy7Oullpvzi1BTznm1toxaHG7na4glZizcSSbXTZDjj8MULdtRRUy2YlIohNnGPEb04XJ3FK08q-308Ii5iCdxnstq8E_Du8PJTdPvwWd1QV9TRVh5Y/s1600/iPhone_SDK.png&quot;&gt;&lt;/a&gt;&lt;/div&gt;
In the last months I started to learn objective-C. I was working mostly modifying an existent project. I needed to open a webview wher the parameters are sent by POST method and they has to be passed with content-type &amp;quot;application/x-www-form-urlencoded&amp;quot;. So this is the code I used:&lt;br&gt;
&lt;a href=&quot;http://ddelizia.blogspot.com/2012/03/ios-dev-post-parameters-to-url-with.html#more&quot;&gt;Read more »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/5786364755057739029/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/5786364755057739029?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/5786364755057739029'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/5786364755057739029'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2012/03/ios-dev-post-parameters-to-url-with.html' title='iOS dev - Post parameters to an URL with objective-C'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEi4RneXwD0m9vg7UCUXr6eXzo-5Yy7Oullpvzi1BTznm1toxaHG7na4glZizcSSbXTZDjj8MULdtRRUy2YlIohNnGPEb04XJ3FK08q-308Ii5iCdxnstq8E_Du8PJTdPvwWd1QV9TRVh5Y/s72-c/iPhone_SDK.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-7570797147049442835</id><published>2012-03-05T03:30:00.000-08:00</published><updated>2012-03-07T01:30:30.569-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="JavaScript"/><title type='text'>How to round up a number in Javascript</title><content type='html'>Here a small code to round up a number in javascript:
&lt;a href=&quot;http://ddelizia.blogspot.com/2012/03/how-to-round-up-number-in-javascript.html#more&quot;&gt;Read more »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/7570797147049442835/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/7570797147049442835?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/7570797147049442835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/7570797147049442835'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2012/03/how-to-round-up-number-in-javascript.html' title='How to round up a number in Javascript'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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-6119649979159515263.post-7550321548362705565</id><published>2011-12-11T13:31:00.001-08:00</published><updated>2012-03-08T01:47:56.482-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><category scheme="http://www.blogger.com/atom/ns#" term="SimpleDateFormatter"/><title type='text'>Java SimpleDateFormatter string formats</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&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/AVvXsEgb5xqcPmJqOJQkthQynyChu2st37XDsau9JOGX-ZwwgwiiyC7r7H_YT90wqVjWbkigeaRVuuAVUHbr-DNd0S8vsxLrFYNw46x6-MgevucL5iyhvcpbJ8fiBQrxiByC_l_TIlvsSWlx5po/s1600/Java.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;242&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb5xqcPmJqOJQkthQynyChu2st37XDsau9JOGX-ZwwgwiiyC7r7H_YT90wqVjWbkigeaRVuuAVUHbr-DNd0S8vsxLrFYNw46x6-MgevucL5iyhvcpbJ8fiBQrxiByC_l_TIlvsSWlx5po/s320/Java.jpg&quot; width=&quot;320&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;b&gt;SimpleDateFormat &lt;/b&gt;is a concrete class for formatting and parsing dates in a locale-sensitive manner. It allows for formatting (date -&amp;gt; text), parsing (text -&amp;gt; date), and normalization.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
Date and time formats are specified by date and time pattern strings. Within date and time pattern strings, unquoted letters from &amp;#39;A&amp;#39; to &amp;#39;Z&amp;#39; and from &amp;#39;a&amp;#39; to &amp;#39;z&amp;#39; are interpreted as pattern letters representing the components of a date or time string. Text can be quoted using single quotes (&amp;#39;) to avoid interpretation. &amp;quot;&amp;#39;&amp;#39;&amp;quot; represents a single quote. All other characters are not interpreted; they&amp;#39;re simply copied into the output string during formatting or matched against the input string during parsing.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;br&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;a href=&quot;http://ddelizia.blogspot.com/2011/12/java-simpledataformatter.html#more&quot;&gt;Read more »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/7550321548362705565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/7550321548362705565?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/7550321548362705565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/7550321548362705565'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2011/12/java-simpledataformatter.html' title='Java SimpleDateFormatter string formats'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEgb5xqcPmJqOJQkthQynyChu2st37XDsau9JOGX-ZwwgwiiyC7r7H_YT90wqVjWbkigeaRVuuAVUHbr-DNd0S8vsxLrFYNw46x6-MgevucL5iyhvcpbJ8fiBQrxiByC_l_TIlvsSWlx5po/s72-c/Java.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-1305352286645864648</id><published>2011-12-03T09:25:00.001-08:00</published><updated>2012-03-12T01:56:40.031-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Drupal"/><category scheme="http://www.blogger.com/atom/ns#" term="Drupal 7"/><category scheme="http://www.blogger.com/atom/ns#" term="Drupal Services"/><category scheme="http://www.blogger.com/atom/ns#" term="Rest"/><title type='text'>Rest services guide for Drupal 7</title><content type='html'>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&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/AVvXsEjCTzoX_SBRdyxdq8WPS9uRHBU-9QqokehjVG3fKIR52svMesZi1j0A48wb_FswmnnpSgO8WBP1HHLO0GOTMffCgikdjDz92ushz4T4oO-IFo1Rc7rPXL2jPHn8GwUovbAid7JnZ4wVtus/s1600/drupal1.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjCTzoX_SBRdyxdq8WPS9uRHBU-9QqokehjVG3fKIR52svMesZi1j0A48wb_FswmnnpSgO8WBP1HHLO0GOTMffCgikdjDz92ushz4T4oO-IFo1Rc7rPXL2jPHn8GwUovbAid7JnZ4wVtus/s200/drupal1.png&quot; width=&quot;174&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
You will need to download the latest version of SYPC and Mimeparse:&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;wget http://spyc.googlecode.com/svn/trunk/spyc.php -O &amp;nbsp;servers/rest_server/lib/spyc.php&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Once downloaded you need to add spyc.php to the &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;rest_server/lib&lt;/span&gt; folder which exists under&lt;br /&gt;
the location you have installed services in.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;LogIn&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;POST&amp;nbsp;http://&amp;lt;My drupal website&amp;gt;/&amp;lt;Path to endpoint&amp;gt;/user/login&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;Request Payload:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;username&quot;: &quot;&amp;lt;username&amp;gt;&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;password&quot;: &quot;&amp;lt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;password&amp;gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;LogOut&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;POST&amp;nbsp;http://&amp;lt;My drupal website&amp;gt;/&amp;lt;Path to endpoint&amp;gt;/user/logout&lt;/span&gt;&lt;br /&gt;
&lt;i&gt;Request Payload:&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;username&quot;: &quot;&amp;lt;username&amp;gt;&quot;,&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&amp;nbsp; &amp;nbsp; &quot;password&quot;: &quot;&amp;lt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;password&amp;gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/1305352286645864648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/1305352286645864648?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/1305352286645864648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/1305352286645864648'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2011/12/rest-services-guide-for-drupal-7.html' title='Rest services guide for Drupal 7'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEjCTzoX_SBRdyxdq8WPS9uRHBU-9QqokehjVG3fKIR52svMesZi1j0A48wb_FswmnnpSgO8WBP1HHLO0GOTMffCgikdjDz92ushz4T4oO-IFo1Rc7rPXL2jPHn8GwUovbAid7JnZ4wVtus/s72-c/drupal1.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-4953111245686146284</id><published>2011-07-12T03:24:00.000-07:00</published><updated>2011-12-03T09:22:01.610-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gist"/><category scheme="http://www.blogger.com/atom/ns#" term="github"/><title type='text'>Syntax Highlighting on Blogger</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/AVvXsEhNSYcSZ475T49SMAA29oR4zPyviJ1iZ9yHMpdXOUehusiMwhRz_iuq6xNkA_P3K7j8gV63H8pxaoXME6EeEhms6O9KWGh-B7hV946er5HKbcLFRbEOrO0El7F3UW_KIFHGQXMKU_7mvMk/s1600/logo_gist+%25281%2529.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;86&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNSYcSZ475T49SMAA29oR4zPyviJ1iZ9yHMpdXOUehusiMwhRz_iuq6xNkA_P3K7j8gV63H8pxaoXME6EeEhms6O9KWGh-B7hV946er5HKbcLFRbEOrO0El7F3UW_KIFHGQXMKU_7mvMk/s320/logo_gist+%25281%2529.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
The easiest way to paste code into blogger with nice syntax highlighting:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;Go to &lt;a href=&quot;http://gist.github.com/&quot;&gt;http://gist.github.com&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Past the code you want to post&lt;/li&gt;
&lt;li&gt;Copy the embed tag&lt;/li&gt;
&lt;li&gt;Go back to blogger, and select &quot;Edit Html&quot;&lt;/li&gt;
&lt;li&gt;Paste the embed tag into your post&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
In this post you can see some example of code highlighting: &lt;a href=&quot;http://ddelizia.blogspot.com/2011/07/geocoding-address-with-google-maps-api.html&quot;&gt;http://ddelizia.blogspot.com/2011/07/geocoding-address-with-google-maps-api.html&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/4953111245686146284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/4953111245686146284?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/4953111245686146284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/4953111245686146284'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2011/07/syntax-highlighting-on-blogger.html' title='Syntax Highlighting on Blogger'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEhNSYcSZ475T49SMAA29oR4zPyviJ1iZ9yHMpdXOUehusiMwhRz_iuq6xNkA_P3K7j8gV63H8pxaoXME6EeEhms6O9KWGh-B7hV946er5HKbcLFRbEOrO0El7F3UW_KIFHGQXMKU_7mvMk/s72-c/logo_gist+%25281%2529.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-4435132130303074414</id><published>2011-07-12T01:07:00.000-07:00</published><updated>2012-03-07T01:32:06.814-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Google"/><category scheme="http://www.blogger.com/atom/ns#" term="Google Maps API"/><category scheme="http://www.blogger.com/atom/ns#" term="Java"/><title type='text'>Geocoding an address with Google Maps API in Java</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdkkyfufyZXDW8yrUR-056-55dFs51nQBYy6DFHuPVbS2OvNAAqbIJZdDOJTecxSt0TFMbCzIcouYdns5HUlXXRX95OXgS12BU9yqnlpA8uv4tms5u4PNKSmqc5Q6xi1ZtLs6mTguF2WQ/s1600/Maps-icon-150x150.png&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; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhdkkyfufyZXDW8yrUR-056-55dFs51nQBYy6DFHuPVbS2OvNAAqbIJZdDOJTecxSt0TFMbCzIcouYdns5HUlXXRX95OXgS12BU9yqnlpA8uv4tms5u4PNKSmqc5Q6xi1ZtLs6mTguF2WQ/s1600/Maps-icon-150x150.png&quot;&gt;&lt;/a&gt;Geocoding is the process of finding associated geographic coordinates (often expressed as latitude and longitude) from other geographic data, such as street addresses, or zip codes (postal codes). With geographic coordinates the features can be mapped and entered into Geographic Information Systems, or the coordinates can be embedded into media such as digital photographs via geotagging.&lt;br&gt;
I made a simple method that giving an address it returns a list of with the corresponding formatted address, latitue, longitide, separated by &amp;quot;;&amp;quot;.&lt;br&gt;
&lt;a href=&quot;http://ddelizia.blogspot.com/2011/07/geocoding-address-with-google-maps-api.html#more&quot;&gt;Read more »&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/4435132130303074414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/4435132130303074414?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/4435132130303074414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/4435132130303074414'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2011/07/geocoding-address-with-google-maps-api.html' title='Geocoding an address with Google Maps API in Java'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEhdkkyfufyZXDW8yrUR-056-55dFs51nQBYy6DFHuPVbS2OvNAAqbIJZdDOJTecxSt0TFMbCzIcouYdns5HUlXXRX95OXgS12BU9yqnlpA8uv4tms5u4PNKSmqc5Q6xi1ZtLs6mTguF2WQ/s72-c/Maps-icon-150x150.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-6904165727756030460</id><published>2011-02-24T04:26:00.000-08:00</published><updated>2011-12-03T09:21:24.744-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Linux"/><category scheme="http://www.blogger.com/atom/ns#" term="sudo"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><title type='text'>How to enable/disable root account on Ubuntu</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/AVvXsEjViNP74VZvI5VWuI8Z-iOe7lAEMbZvw5S5ATc2xNmOv0jIIFjljAMzgUq0xasI5BhMJ03P7vJFCHFj8EBECFxDJ-6wmv4hCkr7c8oFoM0giNhPJcFQpKpF0rQChU6IbWNoxl9pEpMCznM/s1600/ubuntu_logo.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjViNP74VZvI5VWuI8Z-iOe7lAEMbZvw5S5ATc2xNmOv0jIIFjljAMzgUq0xasI5BhMJ03P7vJFCHFj8EBECFxDJ-6wmv4hCkr7c8oFoM0giNhPJcFQpKpF0rQChU6IbWNoxl9pEpMCznM/s1600/ubuntu_logo.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
If you want to enable root account (which is not recommended) enter the following command:&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo passwd root&lt;/span&gt;&lt;br /&gt;
This will prompt for a new root password and once you confirm it, you can start using the root account to login.&lt;br /&gt;
If you want to disable root account in ubuntu you need to lock the root account by using the following command&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo passwd -l root&lt;/span&gt;&lt;br /&gt;
If you want to work on a root console you’d better use the following command&lt;br /&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;sudo -i&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/6904165727756030460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/6904165727756030460?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/6904165727756030460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/6904165727756030460'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2011/02/how-to-enabledisable-root-account-on.html' title='How to enable/disable root account on Ubuntu'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEjViNP74VZvI5VWuI8Z-iOe7lAEMbZvw5S5ATc2xNmOv0jIIFjljAMzgUq0xasI5BhMJ03P7vJFCHFj8EBECFxDJ-6wmv4hCkr7c8oFoM0giNhPJcFQpKpF0rQChU6IbWNoxl9pEpMCznM/s72-c/ubuntu_logo.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-877781952740923731</id><published>2011-02-23T01:20:00.000-08:00</published><updated>2011-02-23T01:30:08.316-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Restart"/><category scheme="http://www.blogger.com/atom/ns#" term="Start"/><category scheme="http://www.blogger.com/atom/ns#" term="Stop"/><category scheme="http://www.blogger.com/atom/ns#" term="Tomcat"/><category scheme="http://www.blogger.com/atom/ns#" term="Tomcat 6"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu Server"/><title type='text'>Hot to Start/Stop/Restart Tomcat on Ubuntu Server (10.10)</title><content type='html'>&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYE-h4yTBWUvP1sTCAnprgkpgRidSWW67rRhJNveAPJ4DWm4X-OwtqgYviv22dC-UKRqOzoYGouzkygqa2JxKxTPBFXcAA1fIgkjRcn3E69uD2_wDi71CDFaGEZWSpRuHrj-sIYr_r2kA/s1600/tomcat.gif&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYE-h4yTBWUvP1sTCAnprgkpgRidSWW67rRhJNveAPJ4DWm4X-OwtqgYviv22dC-UKRqOzoYGouzkygqa2JxKxTPBFXcAA1fIgkjRcn3E69uD2_wDi71CDFaGEZWSpRuHrj-sIYr_r2kA/s1600/tomcat.gif&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
During the installation of Ubuntu you can choose to install and configure automaticaly Tomcat 6. Here are the commands to start/stop/restart the server:&lt;br /&gt;
&lt;br /&gt;
Start:&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sudo /etc/init.d/tomcat6 start&lt;/div&gt;&lt;br /&gt;
Stop:&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sudo /etc/init.d/tomcat6 stop&lt;/div&gt;&lt;br /&gt;
Restart:&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sudo /etc/init.d/tomcat6 restart&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/877781952740923731/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/877781952740923731?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/877781952740923731'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/877781952740923731'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2011/02/hot-to-startstoprestart-tomcat-on.html' title='Hot to Start/Stop/Restart Tomcat on Ubuntu Server (10.10)'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEhYE-h4yTBWUvP1sTCAnprgkpgRidSWW67rRhJNveAPJ4DWm4X-OwtqgYviv22dC-UKRqOzoYGouzkygqa2JxKxTPBFXcAA1fIgkjRcn3E69uD2_wDi71CDFaGEZWSpRuHrj-sIYr_r2kA/s72-c/tomcat.gif" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-3263389784868208691</id><published>2011-02-22T07:31:00.000-08:00</published><updated>2011-02-23T06:38:13.210-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="BOTS"/><category scheme="http://www.blogger.com/atom/ns#" term="EDI"/><category scheme="http://www.blogger.com/atom/ns#" term="EDIFACT"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="X12"/><category scheme="http://www.blogger.com/atom/ns#" term="XML"/><title type='text'>How to install BOTS EDI on Ubuntu Server 10.10 with MySQL Database</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/AVvXsEjxR_ItQON_U5fNafjAq0Y_dfR1VA76ax-Km1ameOllIU7aLp8wvcyy2hpQ42BUcYBW-MQw8E_y_ze5Rgdfzsw93J5zJZ1KcVVq0OEAM2mglD-HOv9GxSBN-xtZLCCKw0pHLv2HlIuH1vY/s1600/botslogo.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;31&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxR_ItQON_U5fNafjAq0Y_dfR1VA76ax-Km1ameOllIU7aLp8wvcyy2hpQ42BUcYBW-MQw8E_y_ze5Rgdfzsw93J5zJZ1KcVVq0OEAM2mglD-HOv9GxSBN-xtZLCCKw0pHLv2HlIuH1vY/s400/botslogo.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;Bots is complete software for EDI (Electronic Data Interchange): translate and communicate.&lt;br /&gt;
All major edi data formats are supported: edifact, x12, tradacoms, xml.&lt;br /&gt;
Here some tips for the installation process on ubuntu server using mysql instead of sqlite as database &lt;br /&gt;
Fisrst of all we need to install the following packages:&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sudo apt-get install python-cherrypy3 python-django python-mysqldb python-sqlalchemy&lt;/div&gt;Let&#39;s create a new user and db schema for BOTS:&lt;br /&gt;
mysql -h localhost -u root -p &lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;CREATE DATABASE botsdb CHARACTER SET &#39;utf8&#39;;&lt;/div&gt;&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;CREATE USER &#39;bots&#39;@&#39;localhost&#39; IDENTIFIED BY &#39;botsbots&#39;;&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;GRANT ALL PRIVILEGES ON botsdb.* TO &#39;bots&#39;@&#39;localhost&#39;; &lt;/span&gt;&lt;br /&gt;
Download the program and uncompress it, then check if you have      installed python (normally should be already installed), if not go      to synaptic and search python select it and install it (the      dependencis will be installed automatcatly)&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;tar -xzvf bots-2.0.2.tar.gz&lt;/div&gt;&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;django-admin syncdb --pythonpath=&#39;/home/danilo/bots-2.0.2/bots&#39; --settings=&#39;bots.config.settings&lt;/span&gt;&#39;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sudo python setup.py install&lt;/div&gt;defde</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/3263389784868208691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/3263389784868208691?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/3263389784868208691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/3263389784868208691'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2011/02/how-to-install-bots-edi-on-ubuntu.html' title='How to install BOTS EDI on Ubuntu Server 10.10 with MySQL Database'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEjxR_ItQON_U5fNafjAq0Y_dfR1VA76ax-Km1ameOllIU7aLp8wvcyy2hpQ42BUcYBW-MQw8E_y_ze5Rgdfzsw93J5zJZ1KcVVq0OEAM2mglD-HOv9GxSBN-xtZLCCKw0pHLv2HlIuH1vY/s72-c/botslogo.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6119649979159515263.post-4122955050109998796</id><published>2011-02-21T10:54:00.000-08:00</published><updated>2011-02-21T13:00:59.579-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Share"/><category scheme="http://www.blogger.com/atom/ns#" term="Ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="VirtualBox"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows"/><title type='text'>How to share a folder on virtual box with Windows Host and Ubuntu Guest</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/AVvXsEjFyDpjUjxVtNbwnlznH96vFq8ypA-juxMdP_uec8t6hlM4eujuN0rJDw9iZhNIWItcxBpEZCgDA44xpOuqSklO6PBjxHFf0Js7-VpJnYOkKikhFhQOtrkosr8JmxBLTuLD2sWH5lAj1rU/s1600/vbox-ubun.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: right; float: right; margin-bottom: 1em; margin-left: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFyDpjUjxVtNbwnlznH96vFq8ypA-juxMdP_uec8t6hlM4eujuN0rJDw9iZhNIWItcxBpEZCgDA44xpOuqSklO6PBjxHFf0Js7-VpJnYOkKikhFhQOtrkosr8JmxBLTuLD2sWH5lAj1rU/s1600/vbox-ubun.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;Start Ubuntu on Virtual Box then follow these steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;On the virtual box menu go to &lt;i&gt;Device &amp;gt; Shared Folder&lt;/i&gt;.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;Add a new shared folder&lt;/i&gt;.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Select the windows path to the folder you  want to share and then give a name to the folder (f.i. MY_WINDOWS). &lt;/li&gt;
&lt;li&gt;Select &quot;&lt;i&gt;Permanent&lt;/i&gt;&quot; to permanently share this folder. &lt;/li&gt;
&lt;li&gt;Now is the time to mount this shared windows folder on a ubuntu folder.  So lets create a folder in our home directory and lets name it WINDOWS_FOLDER &lt;/li&gt;
&lt;li&gt;from the command line:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sudo mkdir /home/danilo/WINDOWS_FOLDER &lt;/span&gt;&lt;/li&gt;
&lt;li&gt;So now that we created the folder on Ubuntu lets mount on it the windows folder:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sudo mount.vboxsf MY_WINDOWS /home/danilo/WINDOWS_FOLDER&lt;/span&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Done! &lt;/li&gt;
&lt;/ol&gt;Now you can write/read to/from this folder &lt;br /&gt;
&lt;br /&gt;
If you want to mount this folder when ubuntu start open a terminal and  write: &lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;sudo nano -w /etc/rc.local&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Add &lt;/span&gt;this line to the file:&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;mount.vboxsf MY_WINDOWS /home/danilo/WINDOWS_FOLDER &lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;press ctrl-x to save&amp;gt; &lt;br /&gt;
&lt;br /&gt;
Ciao</content><link rel='replies' type='application/atom+xml' href='http://ddelizia.blogspot.com/feeds/4122955050109998796/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/6119649979159515263/4122955050109998796?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/4122955050109998796'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6119649979159515263/posts/default/4122955050109998796'/><link rel='alternate' type='text/html' href='http://ddelizia.blogspot.com/2011/02/how-to-share-folder-on-virtual-box-with.html' title='How to share a folder on virtual box with Windows Host and Ubuntu Guest'/><author><name>Danilo Delizia</name><uri>http://www.blogger.com/profile/18092698036171199257</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/AVvXsEjFyDpjUjxVtNbwnlznH96vFq8ypA-juxMdP_uec8t6hlM4eujuN0rJDw9iZhNIWItcxBpEZCgDA44xpOuqSklO6PBjxHFf0Js7-VpJnYOkKikhFhQOtrkosr8JmxBLTuLD2sWH5lAj1rU/s72-c/vbox-ubun.png" height="72" width="72"/><thr:total>0</thr:total></entry></feed>