Wednesday 25 January 2012

Inverting screen colours in linux

xcalib -invert -alter

You can set this command to a keyboard shortcut.

Very useful for reading in the screen without bleeding eyes.

Monday 23 January 2012

How to install rWeka and rJava in fedora (15)

Once again a problem of dev libraries.

First install r-java and r-java-dev
$ yum -y install r-java r-java-dev

Procced to install RWeka

$ sudo R CMD javareconf
R$ install.packages('RWeka')

voilá

Note: Sometimes it happens that R is not able to load properly the java libraries. In order to avoid this yo need to re-run as root R CMD javareconf [ see: http://rwiki.sciviews.org/doku.php?id=packages:cran:rjava]