Wednesday, September 19, 2012

Adding data points to boxplots with stripchart

pre<-55+rnorm(20)
post<-pre+0.7+rnorm(20)
 
s<-seq(length(pre))
 
par(bty="l")
 
boxplot(pre,post,main="Rawdata",xlab="Time",ylab="Measure",names=c("pre","post"), 
          col=c("lightblue","lightgreen"))
 
stripchart(list(pre,post),vertical=T,pch=16,method="jitter",cex=0.5,add=T)
 
for more see
 
surefoss page

Thursday, July 26, 2012

Thursday, June 14, 2012

Perl DBD::mysql on OS X Lion

I ran into a problem this week when the perl libraries for accessing MySQL databases refused to work on Mac OS X Lion.

The solution is

export DYLD_LIBRARY_PATH="/usr/local/mysql/lib:$DYLD_LIBRARY_PATH"

in your .bashrc 

Installing WGET for MAC OS X Lion (and others)


First, use curl to download the latest wget source:
curl -O http://ftp.gnu.org/gnu/wget/wget-1.13.4.tar.gz
Next we use tar to uncompress the files you just downloaded:
tar -xzf wget-1.13.4.tar.gz
Use cd to change to the directory:
cd wget-1.13.4
Configure with the appropriate –with-ssl flag to prevent a “GNUTLS not available” error:
./configure --with-ssl=openssl
Build the source:
make
Install wget, it ends up in /usr/local/bin/:
sudo make install
Confirm everything worked by running wget:
wget --help
Clean up by removing wget source files when finished:
cd .. && rm -rf wget*
You’re all set, enjoy wget in Mac OS X.