Thu, 22 May 2014 11:00:00 +0000 Paolo Donadeo — LifeLOG/English Paolo Donadeo's personal Internet site and blog https://www.donadeo.net/ p.donadeo@gmail.com (Paolo Donadeo) Installing OPAM 1.1.1 on a CentOS 6.5 https://www.donadeo.net/post/2014/installing-opam-1-1-1-on-a-cenos-6-5 https://www.donadeo.net/post/2014/installing-opam-1-1-1-on-a-cenos-6-5 p.donadeo@gmail.com (Paolo Donadeo) Wed, 21 May 2014 23:00:00 +0000 2014-05-22T11:00:00.000Z English 4Sigma Computer programming Objective Caml Article <div> <p class="noindent">I'm in this situation: I need to compile an OCaml program on a CentOS 6.5 server. This is actually quite problematic, because CentOS 6.5 provide out of the box a very old OCaml 3.11.2, released by INRIA in January 2010, more than four years ago.</p> <p class="noindent">No problem, <a href="https://opam.ocaml.org/" title="OPAM - Home">OPAM</a> come to the rescue! No. The OPAM team doesn't provide a binary executable compatible with the (actually very old) system libraries present in CentOS. </p> <p class="noindent">Ok, step back: OPAM can be compiled from sources (<a href="https://opam.ocaml.org/doc/Advanced_Install.html" title="OPAM - Advanced Install">instructions here</a>) so it's just a matter of minutes. Again: nope. To compile OPAM you need at least OCaml 3.12.1, while in CentOS we have only 3.11.2.</p> <p class="noindent">Step back: first compile and install OCaml from sources. This time I say no, because the whole point of OPAM is to get an up and running OCaml environment in a few minutes, which is <strong>actually true</strong> in most cases.</p> <p class="noindent">I decide to install OCaml using <a href="https://godi.camlcity.org/godi/get_godi.html" title="Get GODI">GODI</a>, the “old” OCaml source distribution, the one everybody used before OPAM was born. So the fastest steps to have an OPAM and OCaml environment on a CentOS server are:</p> <ul> <li>download and install GODI;</li> <li>clone the <a href="https://github.com/ocaml/opam" title="GITHUB - ocaml/opam">OPAM repository</a>, compile and install it; it will find a “system” compiler provided by GODI;</li> <li><code>$ opam switch 4.01.0</code> will recompile a new environment;</li> <li><code>$ opam switch remove system</code> to delete the “system” environment;</li> <li><code>$ rm -Rf ~/godi</code>.</li> </ul> <p class="noindent">No root access is required in this process, I usually install OPAM in <code>~/opam</code>, and GODI in <code>~/godi</code>.</p> <p class="noindent">There is an irony in all this story: GODI has been <strong>the</strong> OCaml source distribution for years, and the coming of OPAM, which is actually newer and has some important features missing in GODI, has produced many frictions in the OCaml community, that in the end caused the <a href="https://blog.camlcity.org/blog/godi_shutdown.html" title="GODI is shutting down">shut down of GODI</a>.</p> <p class="noindent">The moral part here is: embrace the new things, but don't be too impatient in throwing out the window the precious work that, in the end, still works.</p> <p class="noindent">In any case, I want to thank both Gerd Stolpmann (author of GODI) and the OPAM team: they gave to the OCaml community a mature, industrial grade, set of tools to use OCaml.</p> </div> https://www.donadeo.net/post/2014/installing-opam-1-1-1-on-a-cenos-6-5#commentary https://www.donadeo.net/post/2014/installing-opam-1-1-1-on-a-cenos-6-5/feed 5 First release of OCaml binding of Lua library https://www.donadeo.net/post/2012/first-release-of-ocaml-lua https://www.donadeo.net/post/2012/first-release-of-ocaml-lua p.donadeo@gmail.com (Paolo Donadeo) Sat, 01 Sep 2012 14:06:00 +0000 2012-09-01T14:06:00.000Z English Spare time Computer programming Objective Caml Lua News <div> <p class="noindent">I'm happy to announce the first release of ocaml-lua, the OCaml binding of the Lua library. With ocaml-lua you can embed a Lua interpreter in an OCaml program in a few lines of code, and use Lua for configuration or customization purposes.</p> <p class="noindent">Here are some references:</p> <ul> <li>The homepage of the project is hosted on <a href="https://ocaml-lua.forge.ocamlcore.org/">OCaml Forge</a>;</li> <li>The complete library reference (ocamldoc generated) is <a href=" https://ocaml-lua.forge.ocamlcore.org/api-lua/">here</a>;</li> <li>Source tarballs are on the download page on <a href="https://forge.ocamlcore.org/frs/?group_id=167">OCaml Forge</a>;</li> <li>The official GIT repository is <a href="https://forge.ocamlcore.org/scm/browser.php?group_id=167">here</a>;</li> <li>Bug reports and feature requests are on my page on <a href="https://github.com/pdonadeo/ocaml-lua/issues">GitHub</a>.</li> </ul> <p class="noindent">I hope it could be useful.</p> </div> Online backup with Crashplan: my experience https://www.donadeo.net/post/2012/online-backup-with-crashplan--my-experience https://www.donadeo.net/post/2012/online-backup-with-crashplan--my-experience p.donadeo@gmail.com (Paolo Donadeo) Sun, 25 Mar 2012 13:06:02 +0000 2012-03-25T13:41:59.000Z English Digital life Internet Review <div> <a title="Crashplan ETA for the first backup" class="zoom-box-image" href="https://www.donadeo.net/static/2012/03/crashplan_client.png"><img class="little left" src="https://www.donadeo.net/static/2012/03/crashplan_client_small.png" alt="Crashplan ETA for the first backup" /></a> <p class="noindent">Following <a href="https://lifehacker.com/5787572/set-up-an-automated-bulletproof-file-back-up-solution">this article of Lifehacker</a> I decided to give a try to <a href="https://www.crashplan.com/">Crashplan</a>, an online "cloud" backup service that seemed very promising to me because it supports many platforms (Linux and Android included) and offers an unlimited space plan for one computer for only <a href="https://www.crashplan.com/consumer/store.vtl">$36 a year</a>. </p> <p>Installing the client for Linux is very easy, and presents all the typical backup options (timing, include/exclude paths, and so on).</p> <p>I decided to include <em>all</em> the directory I already backup with a script of mine on a USB external hard drive.</p> <p>The problem here is visible in the screenshot I saved: the estimated time for completing the first backup was 52 days!</p> <p>It's not Crashplan fault, of course, but the fact is that here in Italy we are still very far from using a remote service like that.</p> <p>Maybe I'll retry again in a a few… years.</p> </div> https://www.donadeo.net/post/2012/online-backup-with-crashplan--my-experience#commentary https://www.donadeo.net/post/2012/online-backup-with-crashplan--my-experience/feed 1 Debugging memory in OCaml: any advice? https://www.donadeo.net/post/2012/debugging-memory-in-ocaml-any-advice https://www.donadeo.net/post/2012/debugging-memory-in-ocaml-any-advice p.donadeo@gmail.com (Paolo Donadeo) Mon, 27 Feb 2012 23:37:00 +0000 2012-02-27T23:37:00.000Z English 4Sigma Computer programming Objective Caml Article <div> <a title="Memory consumption chart" class="zoom-box-image" href="https://www.donadeo.net/static/2012/02/server_rss.png"><img class="little left" src="https://www.donadeo.net/static/2012/02/server_rss_small.png" alt="Memory consumption chart" /></a> <p class="noindent">A server I just deployed (written in OCaml, of course) seems to eat RAM at breakfast. This is the chart of the RSS field of "ps" in the past 24h (click to enlarge). The program starts with almost 6 Mb and is now reaching 40 Mb, in a linear trend that has nothing good to say.</p> <p class="noindent">Any advice on how to debug the memory consumption?</p> </div> https://www.donadeo.net/post/2012/debugging-memory-in-ocaml-any-advice#commentary https://www.donadeo.net/post/2012/debugging-memory-in-ocaml-any-advice/feed 1 Sōchin (壯鎭) https://www.donadeo.net/post/2011/sochin https://www.donadeo.net/post/2011/sochin p.donadeo@gmail.com (Paolo Donadeo) Tue, 18 Oct 2011 22:20:00 +0000 2011-10-18T22:20:00.000Z English Life Karate Random thoughts <div> <p class="noindent">I'm learning Sōchin (壯鎭). What the heck is Sōchin? It's a kata. It's a Karate-do thing. Never mind what a kata is or what Karate-do is, watch <a href="https://www.youtube.com/watch?v=1pdwgB7qOe0" title="Kata SOCHIN + Bunkai by Italian National Kata team - YouTube">this video</a>. <strong><kbd>:-)</kbd></strong></p> <p class="noindent">And not, I don't even remotely resemble Valdesi.</p> </div> Thanks Mr. Ritchie https://www.donadeo.net/post/2011/thanks-mr-ritchie https://www.donadeo.net/post/2011/thanks-mr-ritchie p.donadeo@gmail.com (Paolo Donadeo) Thu, 13 Oct 2011 21:46:52 +0000 2011-10-13T21:51:51.000Z English Digital life Computer programming Linux Article <div><p class="noindent">Today Unix, or some other operating system deeply inspired by Unix, is pervasive: servers, embedded devices (notably Android, but it's only one) and the “revolutionary” Mac OSX is itself an incarnation of the ideas and works of Dennis Ritchie.</p> <p class="noindent"><a title="Google Search for “Dennis Ritchie”" href="https://donadeo.net/u/4x">Dennis Ritchie</a> worked on Unix more than 40 years ago, and my questions is: what will we use in forty years? Probably something Dennis Ritchie was working some months ago.</p> <p class="noindent">Thanks Mr. Ritchie.</p></div> Words of wisdom… https://www.donadeo.net/post/2011/words-of-wisdom https://www.donadeo.net/post/2011/words-of-wisdom p.donadeo@gmail.com (Paolo Donadeo) Tue, 27 Sep 2011 17:00:00 +0000 2011-09-27T17:00:00.000Z English Job Computer programming Random thoughts <div><p class="noindent">…from <a href="https://en.wikipedia.org/wiki/Edsger_W._Dijkstra" title="Edsger W. Dijkstra - Wikipedia, the free encyclopedia">Edsger Dijkstra</a>: “Program testing can be used to show the presence of bugs, but never to show their absence!”</p></div> Google+ and your privacy https://www.donadeo.net/post/2011/google-and-your-privacy https://www.donadeo.net/post/2011/google-and-your-privacy p.donadeo@gmail.com (Paolo Donadeo) Thu, 07 Jul 2011 22:02:02 +0000 2011-07-07T22:02:02.000Z English Digital life Random thoughts <div> <a title="Google+ privacy warning" class="zoom-box-image" href="https://www.donadeo.net/static/2011/07/google_plus_privacy.png"><img class="little left" src="https://www.donadeo.net/static/2011/07/google_plus_privacy_small.png" alt="Google+ privacy warning" /></a> <p class="noindent">Yesterday I was impressed by a privacy warning of Google+. While I was resharing a friend's post, Google+ remembered me that the original post had a limited visibility, and to take account of this fact. Click the image on the left to read the original message.</p> <p>So <a title="Google+ home page" href="https://plus.google.com/">Google+</a> starts it's journey with a strong accent to your privacy concern: you are invited not to tell everyone your business, because it's a valuable information, only Google wants to know... <kbd>;-)</kbd></p> </div> Afterthought (about Unity) https://www.donadeo.net/post/2011/afterthought-about-unity https://www.donadeo.net/post/2011/afterthought-about-unity p.donadeo@gmail.com (Paolo Donadeo) Wed, 11 May 2011 23:18:00 +0000 2011-05-11T23:18:00.000Z English Digital life Linux Random thoughts <div> <a title="Unity on my Dell netbook" class="zoom-box-image" href="https://www.donadeo.net/static/2011/05/unity_on_my_dell_netbook.png"><img class="little left" src="https://www.donadeo.net/static/2011/05/unity_on_my_dell_netbook_small.png" alt="Unity on my Dell netbook" /></a> <p class="noindent">In my <a href="https://www.donadeo.net/post/2011/unity">previous post</a> I expressed a strong opinion about <a href="https://unity.ubuntu.com/">Unity</a>, the new graphic shell included in the latest release of <a href="https://www.ubuntu.com">Ubuntu</a>, branding it as <em>unusable</em>.</p> <p class="noindent">Actually, I was wrong. My bad feeling was due to the novelty of ideas developed in Unity, and my the superficiality in testing it.</p> <p class="noindent">I don't know how <a href="https://live.gnome.org/GnomeShell">Gnome Shell 3</a> compares with Unity, simply because I didn't tested the new Gnome Shell yet, but for sure Unity is a good project and represents a very interesting approach.</p> </div> https://www.donadeo.net/post/2011/afterthought-about-unity#commentary https://www.donadeo.net/post/2011/afterthought-about-unity/feed 2 Unity https://www.donadeo.net/post/2011/unity https://www.donadeo.net/post/2011/unity p.donadeo@gmail.com (Paolo Donadeo) Sat, 30 Apr 2011 15:05:00 +0000 2011-04-30T15:05:00.000Z English Digital life Linux Random thoughts <div> <p class="noindent">My checklist for today:</p> <ol> <li>try the new Ubuntu shell, <a href="https://unity.ubuntu.com/">Unity</a>: done. Verdict: unusable.</li> <li>try <a href="https://live.gnome.org/GnomeShell">Gnome Shell 3</a>: done. Verdict: unstable.</li> </ol> <p class="noindent">This time I pass, let's see the next Ubuntu release if it will be more stable and usable.</p></div> https://www.donadeo.net/post/2011/unity#commentary https://www.donadeo.net/post/2011/unity/feed 2