Thursday, August 23, 2012

Inkscape doesn't open on ubuntu 12.04


inkscape keeps crashing while loading, and the error message doesn't give any hint.

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.

The problem is that I substituted its icon in .icons. Then a conflict took place... Now, I've just undo that and inkscape return to work.

Tuesday, August 21, 2012

How to do Research At the MIT AI Lab

English version (html): http://www.cs.indiana.edu/mit.research.how.to.html

English version (pdf): www.cs.umass.edu/~emery/misc/how-to.pdf

Chinese version (pdf): https://www.box.com/s/633b3828e96427de4c9b

Tuesday, July 10, 2012

Penn Treebank Format Parsing Grammar

start with tree_list

tree_list := tree
           | tree_list tree
tree      := ( node )
node      := leaf
           | TOKEN node_list
leaf      := TOKEN TOKEN
           | leaf TOKEN
node_list := ( node )
           | node_list ( node )
TOKEN     := ([^\)\(\r\n \t]+)


Dowload: JLex codeJCup code

Sunday, July 8, 2012

jEdit, one instance only on Ubuntu

Whenever I open an additional file once jEdit is already running on Ubuntu, jEdit opens an additional window into which it loads the file. How to solve it?

1. find the file "/usr/share/jedit/jedit.sh"
2. add "-background -reuseview" between ~.jEdit and "$@"

Tuesday, July 3, 2012

Friday, June 29, 2012

Compile SRILM


1. mkdir %SRILM%
2. mv srilm.tgz %SRILM%
3. cd %SRILM%
4. chmod -R 777 .
5. modify Makefile
    5.1 $ sbin/machine-type, suppose it returns i686
    5.2 in common/Makefile.machine.i686
          GCC_FLAGS = -m64 -mtune=i686 -Wreturn-type -Wimplicit
          insert NO_TCL = X
          delete TCL_INCLUDE, TCL_LIBRARY
6. make MACHINE_TYPE=i686-m64 World