Saturday, September 20, 2008

installing virtualbox2.0 on Ubuntu 7.10

installation warning:
Users of VirtualBox must be member of that group in order to have write permissions to /dev/vboxdrv. Otherwise starting of VMs will not be possible.

add myself to list of user for virtualbox
sudo usermod -G vboxuser -aquan

ready to install new machine now

how to fix java plugin in firefox for Ubuntu 7.10

happen to find it on the web, but loose the link
here are the steps:

1/ install jre 6 plugin:
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

2/ check installation:
java -version

3/ create link to plugin in plugin folder for mozilla
ln -s /usr/lib/jvm/java-6-sun/jre/plugin/i386/ns7/libjavaplugin_oji.so

end

Thursday, September 11, 2008

My Matlab Tutorial

matrix operation:
-rand(7) = 7x7 random matrix
-rand(2,5)
-magic(5) = magic square

-eye(6) = identity matrix
-zeros(4,7) = zero matrix
-ones(1,2) = one matrix

x= [1 2 3; 4 5 6; 7 8 9]
x' => inverse matrix

Variables:
built-in: pi, eps
who -> list all envir/usr var

x = 5 => display ans
x = 5; => do NOT display ans on screen

clear x; -> delete var x

func: sin(d), exp(d),log(d),abs(d)
rounding func: round, fix, ceil, floor