Thursday, January 27, 2011

ubuntu : installing ubuntugis and R

Add the following lines in /etc/apt/sources.list :

sudo vi /etc/apt/sources.list
deb http://cran.skazkaforyou.com/bin/linux/ubuntu maverick/
deb http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu maverick main
deb-src http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu maverick main

Then add the "canonical partners" software repository from "ubuntu software center-sofware sources" (for sun java jdk/jre)

Get the keys
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com D67FC6EAE2A11821
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable


sudo apt-get update
sudo apt-get install r-base-core libgdal1-dev libproj-dev libgdal1-1.7.0-grass qgis grass saga sun-java6-jdk

Saturday, January 1, 2011

qmail problem in plesk

Cannot send mail with qmail :

qmail-queue-handlers[xxxxxx]: cannot create temporary file - (13) Permission denied

I searched the web and there seems to be a solution. But it does not work :
http://forum.parallels.com/showthread.php?t=87344
http://forum.parallels.com/showthread.php?t=94593

Sunday, December 19, 2010

Reading copy/pasted data into an array in R

If you copy data from somewhere and paste it into R, you can easilyt import it as a data.frame using the textConnection function

dat <- textConnection("1 0 7 0 0 1 0 0 0 5 0 0 0 0 2 0 0 0 0 1 0 0 0 1
1 0 0 1 0 0 0 3 0 0 0 0 1 0 0 0 1
0 0 0 1 0 0 0 2 0 0 0 0 1 0 0 0 1 0 1 0 0 1
1 0 0 1 0 3 0 0 0 0 1 0 0 0 1
0 0 0 1 0 0 0 2 0 0 0 0 1 0 0 0 1 0 1 0 0 1 1 2 1 0 1 0 1")
df <- data.frame(scan(dat, fill = TRUE, what = as.list(rep(1, 29))))

Thursday, December 16, 2010

Ubuntu login problem

gdm says:" error initiating conversation with authentication system - general failure"

The problem was solved after commenting out the following row in /etc/pam.d/gdm

@include common-pamkeyring

Hacking Linux rescue mode

http://www.linuxtopia.org/online_books/system_administration_books/ubuntu_starter_guide/ch08.html#gainrootinstallcd

Monday, December 13, 2010

R commander plugin

install.packages("RcmdrPlugin.HH")
library(RcmdrPlugin.HH)

Quick-R

http://www.statmethods.net
http://graphpad.com/quickcalcs/posttestintro.cfm