Monday, August 29, 2011

That #$%@ beep

1. xset b off
2. set b off
3. Turn off beep on Gmixer (or whatever audio controller you run)

These commands turn off the annoying beep that accompanies [tab], [auto-fill], and errors in the linux environment.


Thursday, August 18, 2011

png figures in a loop in R

This sample script creates 100 png figures with the iteration number included in the name.

for(i in 1:100) {
a<-rnorm(100)
name<-paste("test",i,".png",sep="")
png(name)
plot(a/max(a),type="l")
dev.off()
}