giovedì 29 settembre 2011

Wget all the links in a file

I find very useful to download SDO-HMI data from  Virtual Solar Observatory  retrieving all the links I need in a csv file for convenience. This is more easy than studying manuals on how to retrieve file using IDL SolarSoft (after installing that!!!) after making queries on the database and things like that.
Now that all the links are exported in a csv file, to easily download all the images required with a single command just run:

wget -i SDO_images_list.csv

the "-i" flag recursively download all the links inside the csv file.

Ubuntu 11.04 reversed colors in movies

In Ubuntu 10.04 when playing a movie, colors appear to be reversed. To fix this problem in Movie Player (Totem) go to Edit --> Preferences --> Display  and slide the cursor "Hue" to the centre or click on "Reset to Defaults" button.


giovedì 8 settembre 2011

How to remove a large number of files in a directory

If you want to remove a large number of files with the "rm" command you probably will encounter this error:

"too long argument list"


We can solve this problem by using the find command instead as follows:

find . -name '*' | xargs rm