Jul 09 2009

Are Microsoft’s Promises For Ever?

Posted by Francesco in Come funziona, GNU/Linux

This sounds good:

I have some good news to announce: Microsoft will be applying the Community Promise to the ECMA 334 and ECMA 335 specs.

ECMA 334 specifies the form and establishes the interpretation of programs written in the C# programming language, while the ECMA 335 standard defines the Common Language Infrastructure (CLI) in which applications written in multiple high-level languages can be executed in different system environments without the need to rewrite those applications to take into consideration the unique characteristics of those environments.

“The Community Promise is an excellent vehicle and, in this situation, ensures the best balance of interoperability and flexibility for developers,” Scott Guthrie, the Corporate Vice President for the .Net Developer Platform, told me July 6.

It is important to note that, under the Community Promise, anyone can freely implement these specifications with their technology, code, and solutions.

You do not need to sign a license agreement, or otherwise communicate to Microsoft how you will implement the specifications.

The Promise applies to developers, distributors, and users of Covered Implementations without regard to the development model that created the implementations, the type of copyright licenses under which it is distributed, or the associated business model.

Under the Community Promise, Microsoft provides assurance that it will not assert its Necessary Claims against anyone who makes, uses, sells, offers for sale, imports, or distributes any Covered Implementation under any type of development or distribution model, including open-source licensing models such as the LGPL or GPL.

But boring old sceptic that I am, I have memories of this:

The Software Freedom Law Center (SFLC), provider of pro-bono legal services to protect and advance free and open source software, today published a paper that considers the legal implications of Microsoft’s Open Specification Promise (OSP) and explains why it should not be relied upon by developers concerned about patent risk.

SFLC published the paper in response to questions from its clients and the community about the OSP and its compatibility with the GNU General Public License (GPL). The paper says that the promise should not be relied upon because of Microsoft’s ability to revoke the promise for future versions of specifications, the promise’s limited scope, and its incompatibility with free software licenses, including the GPL.

That was then, of course, what about now? Well, here’s what the FAQ says on the subject:

Q: Does this CP apply to all versions of the specification, including future revisions?

A: The Community Promise applies to all existing versions of the specifications designated on the public list posted at /interop/cp/, unless otherwise noted with respect to a particular specification.

Now, is it just me, or does Microsoft conspicuously fail to answer its own question? The question was: does it apply to all versions *including* future revision? And Microsoft’s answer is about *existing* versions: so doesn’t that mean it could simply not apply the promise to a future version? Isn’t this the same problem as with the Open Specification Promise? Just asking.

Original Suorce: http://opendotdotdot.blogspot.com/2009/07/are-microsofts-promises-for-ever.html

Jul 09 2009

Mono: credere alle promesse di M$?

Posted by Francesco in GNU/Linux, Questione di libertà

Mi piace l’entusiasmo della comunità: Microsoft ha promesso  (contratto vincolante) che non farà causa a chi usa MONO.

In un comunicato, tutto a riguado di C# e CLI (ECMA 334 e 355) si è chiarito.

Resta qualcosina di incerto (Winforms, ad esempio non è presente nelle specifiche), ma fin qui notizia straordinaria.

Ci possiamo fidare?

Leggete qua:

Q: Does this CP apply to all versions of the specification, including future revisions?

In breve
A: The Community Promise applies to all existing versions of the specifications designated on the public list posted at /interop/cp/, unless otherwise noted with respect to a particular specification.

In breve: “l’accordo varra anche per le versioni future?” “L’accordo è applicabile a tutte le versioni esistenti

Ha detto “esistenti”, non “future”.   Solo un problema di comunicazione? Io non mi fido molto.

Usate MONO, se volete, ma mi raccomando occhi aperti!

Timeo Danaos et dona ferentes

Jun 28 2009

Perché il software libero non dovrebbe dipendere da Mono o C#?Why free software shouldn’t depend on Mono or C#?

Posted by Francesco in GNU/Linux, Questione di libertà

Scritto da Richard Stallman Tradotto da Francesco Laruina La decisione di Debian di includere Mono nell’installazione di default, per il bene di Tomboy che è una applicazione scritta in C#, porta la comunità verso una direzione rischiosa. È pericoloso dipendere da C#, perciò bisogna scoraggiarne l’uso. Il problema non è solo di Mono; ogni implementazione libera di C# pone lo stesso problema. Il pericolo è che Microsoft stia probabilmente progettando di costringere tutte le implementazioni libere di C# usando i brevetti software.(Vedi http://swpat.org e http://progfree.org) Questo è un reale pericolo, e solo folli potrebbero ignorarlo fino al giorno in cui realmente accadrà. Ciò non è dire che programmare C# sia una pessima cosa. Le implementazioni libere di C# permettono all’utente di utilizzare i loro programmi in C# si piattaforme libere, che è bene. (Anche The Gnu Project ha una implementazione di C#, chiamata Portable.NET.)Idealmente vogliamo offrire implementazioni libere per tutti i linguaggi che i programmatori abbiano usato. Il problema non è nelle implementazioni in C#, ma piuttosto in Tomboy ed altre applicazioni scritte in C#.Se perdiamo l’uso di C#, perderemo anche loro. Questo non è definirle non etiche, ma significa che scriverle ed usarle è prendere un rischio gratuito. Dovremmo organizzarci sistematicamente per dipendere il meno possibile dalle libere implementazioni di C#. In altre parole, dovremmo scoraggiare le persone dallo scrivere programmi in C#. Dunque, non dovremmo includere implementazioni C# nell’installazione di default di distribuzioni GNU/Linux, e dovremmo distribuire e raccomandare l’uso di applicazioni non in C# invece di applicazioni in C# ogniqualvolta possibile.Written by Richard Stallman

Debian’s decision to include Mono in the default installation, for the sake of Tomboy which is an application written in C#, leads the community in a risky direction. It is dangerous to depend on C#, so we need to discourage its use.

The problem is not unique to Mono; any free implementation of C# would raise the same issue. The danger is that Microsoft is probably planning to force all free C# implementations underground some day using software patents. (See http://swpat.org and http://progfree.org.) This is a serious danger, and only fools would ignore it until the day it actually happens. We need to take precautions now to protect ourselves from this future danger.

This is not to say that implementing C# is a bad thing. Free C# implementations permit users to run their C# programs on free platforms, which is good. (The GNU Project has an implementation of C# also, called Portable.NET.) Ideally we want to provide free implementations for all languages that programmers have used.

The problem is not in the C# implementations, but rather in Tomboy and other applications written in C#. If we lose the use of C#, we will lose them too. That doesn’t make them unethical, but it means that writing them and using them is taking a gratuitous risk.

We should systematically arrange to depend on the free C# implementations as little as possible. In other words, we should discourage people from writing programs in C#. Therefore, we should not include C# implementations in the default installation of GNU/Linux distributions, and we should distribute and recommend non-C# applications rather than comparable C# applications whenever possible.

Verbatim copying and distribution of this entire article are permitted worldwide, without royalty, in any medium, provided this notice is preserved.

Jun 24 2009

UNetBootin: creare pendrive bootabili

Posted by Francesco in GNU/Linux, Howto

Le pendrive oggi sono molte diffuse, se ne trovano in tutte le salse e dimensioni, il loro successo è stato decretato da praticità e velocità. Allora perché non usarle per installare(o anche utilizzare) Linux?

Creare una penneta bootabile con la distro preferita è semplicissimo con UNetBootin!

  1. Scarichiamo il software ed avviamolo, si presenterà la seguente schermata:
    screenshot unetbootin
  2. Da qui scegliamo distro e versione dalle tendine alla voce Distribution.
  3. Clicchiamo su Ok ed attendiamo la fine delle operazioni

La tua pendrive è pronta: per avviarla è necessario settare l’avvio da USB nel bios (supportato solo da bios recenti).

Se la tua distro non è presente in elenco o se hai già scaricato l’immagino da masterizzare (la ISO) puoi sceglere quella come Disk Image!

Jun 23 2009

GRUB sull’altro hdGRUB on the other hd

Posted by Francesco in GNU/Linux, Howto, Tips&Tricks

Oggi ho riorganizzato un po’ il mio PC.

Il mio hp ha due hard disk da 160 gb, ho scelto di dedicarne uno a Vista+XP (purtroppo ogni tanto sono costretto ad usare windows) ed uno a GNU/Linux.

Da utonto ho optato per Ubuntu: la uso da tempo e l’ultima versione funziona egregiamente out-of-the-box.

Installata in una manciata di minuti (installazione da pendrive, ne parlerò nel prossimo articolo), procedo al riavvio.

Sgradevole sorpresa: grub non c’é! L’installer l’ha messo sull’mbr dell’hd secondario, come spostarlo?

Per foruna, l’operazione è semplicissima!

  1. Avviamo la distro in modalità live
  2. da terminale:
    sudo grub-install --root-directory=/media/disk/boot /dev/sda
    dove /media/disk è la mia partizione di sistema (quella da avviare, che contiene la sottodirectory boot)

    /dev/sda è invece il disco rigido primario.

  3. Riavviamo ed ecco il nostro GRUB!

Today I reinstalled Ubuntu on my computer.

I have a laptop with two hard-disks, so I decided to install Windows on the primary hd and GNU/Linux on the second one.

About 25 minutes and “installation completed”, but grub isn’t there! Why?

The installer puts GRUB on the mbr of the disk in which you’re installing Ubuntu (the second one in my case)

To boot GNU/Linux I need to put GRUB on the primary hd: let’s see how!

  1. Boot your live distro from its cd or pendrive
  2. Open the terminal and write this command sudo grub-install --root-directory=/media/disk /dev/sda
    where /media/disk is the system partition (the folder with the “boot” subdirectory) and /dev/sda is the primary disk.
  3. Now reboot the system, our beloved GRUB is here!

Jun 19 2009

Ridimensionare foto al volo: ecco comeHow to resize a lot of photos automatically

Posted by Francesco in GNU/Linux, Howto, Tips&Tricks

Dovevo ridimensionare 38 foto. Farlo manualmente una per una o cercare qualche tool che le ridimensionasse tutte automaticamente?
Beh, la seconda mi è parsa più intelligente!
Cercando in rete, ho trovato il pacchetto imagemagick: editing di foto da terminale!
Suona strano, vero?
Ho installato il software, già presente nei repository di Ubuntu, con un semplice:
sudo apt-get install imagemagick

  1. Andiamo nella cartella con le immagini (da terminale col comando cd /percorso/nomecartella), attenzione però a crearsi una copia delle immagini poichè il programma cancellerà quelle presenti nella cartella.
  2. lanciamo il comando mogrify -resize 1024x1024 *.* (nota che le dimensioni possono essere variate in base alle esigenze)
  3. Attendiamo qualche istante (potrebbe volerci un po’) e avremo le immagini ridimensionate: avranno tutte il lato più lungo di 1024px.

In pratica il software colloca l’immagine in un quadrato di 1024×1024 (in questo caso), in tal modo, mantendo le proporzioni, compie egregiamente il suo lavoro sia con immagini orizzontali che con verticali.
Ah dimenticavo è disponibile anche per Windows.
Cosa aspettate a provarlo!

Yesterday I had to resize 38 photos. But what to do?
I aked me “Is there an automatically way to resize all the photos?”
Google helped me to find imagemagick.
I installed it with a simple:
sudo apt-get install imagemagick
How-to use it:

  1. Open (via terminal) the directory in which the images are saved. (you’d better backup them because they will be replaced by the resized images, so the original ones will be deleted)
  2. Type this command mogrify -resize *.*
  3. Wait for a few minutes and take a look on your photos: they’ve just been resized. Automatically.

Imagemagick is also available for Windows.
Let’s use it.

Mar 07 2009

GRUB: come ti ripristino

Posted by Francesco in GNU/Linux, Howto

Qualche giorno fa,  mi sono ritrovato ad installare Windows XP sul mio portatile e come al solito mi sono ritrovato senza GRUB.

Allora, mi spiego, GRUB è un boot-manager molto diffuso ed è utilizzato dalla maggior parte delle distribuzioni GNU/Linux: se manca non è possibile avviare la nostra distro.

Perche si è cancellato? I sistemi Microsoft hanno il brutto vizio di appropriarsi dell’ MBR (( L’MBR(master boot record) è costituito dai primi 512 byte dell’Hard Disk, contiene le istruzione per l’avvio del sistema operativo)) : cancellano ciò che trovano per installare il proprio boot-loader.

Per fortuna è possibile ripristinare GRUB, ecco come ho fatto io.

  1. Ho avviato da LiveCD (attenzione se avete un sistema a 64bit dovrete utilizzare una Live a 64bit non una a 32bit)
  2. Da terminale, ho montato la partizione GNU/Linux (nel mio caso /dev/sdb1) dando:
  3. mount /dev/sdb1/ /home

  4. Poi, ho montato /dev in /home/ (ho scelto /home per comodità, qualunque cartella andrebbe bene):
  5. mount -o bind /dev /home/dev

  6. A questo punto, ho scoperto la potenza di chroot (trasforma la partizione nella nostra root):
  7. chroot /home

  8. Per reinstallare grub è necessario dare:
  9. grub-install

E dopo il riavvio, ecco il mio GRUB bello e resuscitato!

Jan 02 2009

Ma p***a RAM!

Posted by Francesco in GNU/Linux, Tips&Tricks, Windows

Scusate, ma avevo bisogno di sfogarmi.

Immaginate di avere un bel PC che si spegne e si accende quando gli pare;

immaginate ancora di aver formattato, reinstallato il Sistema Operativo, cambiato scheda grafica …e che questo pc non funzioni ancora: beh, non vi viene un po’ di rabbia?

Se dovesse capitarvi un caso simile al succitato, fate con Memtest86+ un test della RAM: potrebbe essere proprio lei la causa di tutto. Read entire article.

Sep 06 2008

Lo GNU compie gli anni

Posted by Francesco in GNU/Linux, Questione di libertà

La FSF (Free Software Foundation) sta festeggiando 25 anni di GNU.

Per i non adepti, GNU è l’acronimo di GNU’s Not Unix (GNU non è UNIX) ed è il sistema nato dalla mente di Richard Stallman ed altri programmatori LISP del laboratorio di intelligenza artificiale.

Il progetto rimase a lungo inutilizzabile per via della mancanza di un kernel (il cuore di un sistema operativo); questo arrivo solo nel 1992 dalla fervida mente di uno studente di Helsinki, Linus Torvalds con il suo Linux.

Da allora si parla di GNU/Linux. Read entire article.

Aug 29 2008

I podcast

Posted by Francesco in Come funziona, GNU/Linux, Internet

Pod che? Non ne hai mai sentito parlare? Fa niente.

Il podcasting, da Ipod e broadcasting, è un sistema che consente il download automatico di contenuti dalla rete, in genere viene utilizzato da emittenti radiotelevisive o da semplici appassionati per diffondere dati audio e video.

Per ricevere un podcast è necessario un client detto podcast receiver, una connessione Internet ed un abbonamento (solitamente gratuito).

Il funzionamento di questa “tecnologia” è molto semplice:

  1. Ci si abbona al servizio mediante feed RSS
  2. Si inserisce il link nel client che legge l’ elenco delle pubblicazioni
  3. A questo punto il programma provvede al download dei contenuti

Appena saranno disponibili nuovi contenuti, questi verranno scaricati dal programma. Read entire article.