Thursday, August 6, 2009

Mounting USB drive in Ubuntu Server

To mount a drive in Ubuntu Server (which doesn't mount them automatically):

  1. Plug in USB disk
  2. type "tail /var/log/messages"
  3. Look for where the server recognized the USB Disk at the end of the log (ie sdb:sdb1 would mean sdb1)
  4. type "sudo mount /dev/sdb1 /mnt" if it was sdb1 to mount the drive to /mnt

Thursday, April 9, 2009

nohup to file other than nohup.out

This seems to work:

nohup command > output_file &

Friday, March 13, 2009

Proving a Kernel

Got this from the paper "Graph Kernels for Chemical Classification", by Ralaivola et. al, published in Neural Networks 2005.

It looks like, to prove a kernel, you need to show that the function is symmetric (ie, k(u,v) = k(v,u) ), that it's continuous, and that it is "a positive definite kernel" (ie, that the square n x n matrix K = (k(ui, uj))1 <= i, j <= n is positive semi-definite...ie, all its eigenvalues are non-negative).

This would make it a Mercer Kernel.

Wednesday, March 4, 2009

Including jar file in command line

How to compile and run a java class file when it includes a jar file, from the command line

javac -cp JarFile.jar Class.java

java -classpath JarFile.jar:. Class