Visualizzazione post con etichetta Education. Mostra tutti i post
Visualizzazione post con etichetta Education. Mostra tutti i post

martedì 15 dicembre 2015

Guida all'uso di OSGeo-Live in macchina virtuale per utenti windows

OSGeo-Live e` un progetto basato su Lubuntu, che comprende un DVD, unita` USB o immagine disco virtuale, che permette di provare una grande varietà di software libero senza la necessita` di installarlo. Il progetto e` interamente basato su software libero, che permette di duplicarlo e ridistribuirlo liberamente.

In questa breve guida vediamo come e` possibile  utilizzare l'immagine disco in una virtual machine installata su windows.

Una chiarificazione sulla terminologia. Definiamo "host" il sistema operativo che ospita l'altro Nel nostro caso l'host è windows. Definiamo invece "guest" il sistema operativo che viene ospitato. In questo caso il guest è ubuntu (64 bit).


Ottenere l'immagine disco di OSGeo-live

L'immagine disco della OSGeo-Live si trova a questo URL, scegliere l'ultimo link - download virtual machine. 




Secondo la velocità della vostra connessione, il download potrebbe durare alcune ore. Alla fine, decomprimere il file usando l'utility 7zip.


Ottenere e installare la virtual machine

Installeremo la Virtual Box di Oracle, che e` disponibile a questo URL. L'ultima versione è:
  • VirtualBox 5.0.10 for Windows hosts o ultima versione disponibile, e
  • VirtualBox 5.0.10 Oracle VM VirtualBox Extension Pack > All supported platforms
Quest'ultimo pacchetto permette di estendere le funzionalita` della macchina virtuale, ad esempio ingrandire lo schermo, condividere una cartella, ecc.




Attenzione: l'ultima versione della macchina virtuale potrebbe avere qualche problema di compatibilità con Windows 10. In questo caso, scaricate la versione 4.2 (e il pacchetto Extension Pack relativo alla stessa versione)

Per installare, fare doppio click e seguire le istruzioni dell'installer, prima per la virtual box e poi l'estensione. Lasciare le impostazioni di default.


Creazione della macchina virtuale

Avviare VirtualBox. Cliccare su "Nuova" per creare una nuova macchina virtuale.



Dare un nome alla macchina virtuale che stiamo creando, ad es. OSGeo-Live. Scegliamo tipo: Linux, versione: Ubuntu (64 bit).

Clicchiamo "Avanti". Siamo chiamati a decidere quanta memoria vogliamo destinare alla macchina virtuale, deve essere almeno 1024, di più se il vostro computer ha più di 4 GB di RAM. Questa scelta dipende dalle caratteristiche del nostro computer. Un buon compromesso è assegnare non più della metà della memoria disponibile.

Nella prossima finestra ci viene chiesto se abbiamo già un'immagine disco o vogliamo crearne una. Noi l'abbiamo (OSGeo-Live) dunque scegliamo la terza opzione, "Usa un file virtuale di disco fisso esistente". Cliccando sulla cartellina gialla, andiamo a selezionare l'immagine disco nel nostro computer.





Una volta selezionato il file, clicchiamo "Crea".





 Abbiamo creato la macchina virtuale, ma non abbiamo finito. Clicchiamo su "Impostazioni".





 Andiamo su "Generale" > "Avanzate". Impostiamo "bidirezionale" in entrambe le caselle. Questo ci permette di copiare e incollare e trascinare oggetti tra la macchina guest e la macchina host e viceversa.




Nella sezione "Schermo", andiamo ad impostare la memoria video assegnata alla macchina virtuale a 64 MB.



Ora dobbiamo creare un canale di comunicazione fra guest e host, in cui si possano condividere i dati in maniera bidirezionale. Senza tale cartella, tutti i dati creati nella macchina guest, rimarrebbero all'interno del file immagine della macchina virtuale e non potrebbero uscire da questo ambiente "isolato". 
Per fare questo, sulla macchina host (Windows) creiamo una cartella ad hoc, per esempio la chiamo "Cartella_Condivisa". 
Dalle impostazioni della macchina virtuale mi sposto sul tab "Cartelle condivise", e clicco sull'icona col + verde, che aggiunge una nuova cartella condivisa.


Da "Percorso della cartella" andiamo a cercare la Cartella_condivisa appena creata nell'host. 




Spuntiamo "Montaggio automatico".




Ora avviamo la macchina virtuale cliccando sul bottone avvia.




Risoluzione di possibili problemi

Se a questo punto si verifica un errore come:
VT-x is disabled in the BIOS for both all CPU modes (VERR_VMX_MSR_ALL_VMX_DISABLED).
bisogna accedere al bios, per molti computer all'accensione premere F2, quindi andare in Configuration --> Intel Virtual Technology: [Enabled].


Avvio

Se tutto è andato a buon fine, dovremmo avere la seguente schermata. Andiamo nel menu "Dispositivi" e clicchiamo l'ultima opzione "Installa guest addition".



Montare la cartella condivisa 

Nel guest, creiamo una cartella condivisa, e montiamo la cartella condivisa dell'host. Apriamo un terminale e scriviamo:

mkdir /home/user/cartella_condivisa 
sudo mount -t vboxsf Cartella_condivisa \
/home/user/cartella_condivisa

La password per user è user.  





venerdì 19 settembre 2014

More MOOC offers for data scientists

As promised in the previous post, I continue listing the numerous MOOC offers about Data Science, also on the basis of the feedback received.

It is worthwhile to mention that Data Analysis and Statistical Inference offers its labs through another valuable platform: DataCamp. Using this platform is like having an instructor at your side, explaining the exercise and giving you feedback. Alternatively, you can complete the exercises just using Rstudio and submitting your scripts.

On the other hand, the Data Science Specialization team has developed an innovative tool for learning R interactively: the swirl package. The idea is learning by doing, and it's fairly simple to get started with R using it. From Rstudio, all you need to do is to install the package, typing:

install.packages("swirl")

then, start swirl:

library("swirl")
swirl

And you will be in the learning environment. You have to select a course that you want to follow and the rest is really self explanatory. The learning sessions are conveniently not too long.

The University of Washington also offers a course: Introduction to Data Science, that includes the basic techniques of data science as well as databases, MapReduce, Hadoop, SQL and NoSQL. It also covers elements of statistical modelling and machine learning, as well as communication of results, and Graph analysis. The recommended (but not compulsory) textbook is "Mining of Massive Datasets". The programming assignments entail Python and SQL besides the usual R. According to the opinion of a colleague that has reviewed it, the word "Introduction" in the title is misleading, since it covers a whole lot more than an introduction.

Stanford University offers a course called Machine Learning, that is also in my watching list as I plan to review it in detail when I'll be more advanced in my studies.

Another course on Machine Learning is Learning From Data, offered by Caltech through edX. This course is currently closed but the material of the 2014 course can be consulted and studied at your own pace. It covers from the basic theory to algorithms and applications. The video lectures are also on YouTube.

Finally, a couple of more courses, both offered by Stanford, that can surely be complementary to those already mentioned, are: Statistical Learning and Introduction to Databases.

I think that with this outstanding offer, I have no excuses left for procrastination, even when I'm not at home - did you know? Coursera has an App for Android!

giovedì 18 settembre 2014

In the loop of the mooc!

Education is changing and the change is affecting our lives and the way we spend our time. I hardly believe that anyone has never heard about MOOCs, which stands for Massive Open Online Courses. Browsing among the huge offer of courses available online for free is something like discovering a new world.. or several new worlds actually.

In the variety of the courses offered by Coursera I have found utterly interesting the Data Science Specialization offered by the Johns Hopkins University, that entails 9 courses and a final Capstone Project. I appreciate this offer especially because they concentrated several essential information that if you wanted to collect otherwise you should be reading tons of books, web pages, software documentation, probably without finding immediately the connection among them.

With the recent advances in technology, trans-disciplinary concepts such as exploratory data analysis, reproducible research, regression models, machine learning, are progressively gaining importance in several fields and are shaping the "profession" of a "data scientist", a professional with a strong background in statistics as well as cutting edge expertise in technology.

So far I have successfully completed the first two courses, namely The Data Scientist's Toolbox and R programming. Since I'm a lazy person, I need to be motivated, otherwise I'll use the excuse that "I don't have time, I'll do it later". That's mainly why I enrolled in the Signature Track, in order to have deadlines, and eventually I got certificates, and shareable permanent links to course record pages, that look like this and this.

I paused in August and first week of September, and missed the beginning of the other courses, thus I'm starting again in October.

Meanwhile I've found another relevant course, partly overlapping some of the concepts of the specialization, namely Data Analysis and Statistical Inference, offered by Duke University. I'm currently enrolled in this latter, and I found several advantages: it is a lot oriented towards applied statistics and offers tons of practical examples. It also offers an excellent book (free for download, but I bought it due to the ridiculous price - and because I love paper books).

A bonus is that it doesn't require previous knowledge of statistics, which allowed me to brush up my statistics, proceeding quickly through the first weeks of course (I did the first week in one afternoon - OK, I admit it, it took me until 1.30 am).

I'm also watching another course, that is starting at the end of September: it's Mining Massive Datasets, offered by Stanford University. Yes, Big Data. I know it is probably too much in my schedule, but hey, better than mindlessly surfing Facebook in my spare time..

Next time I'll talk about more MOOC platforms and their offers..