Skip to main content

Posts

Showing posts from 2009

Window OS

Here is a list of tools I have used in the Window OS Window Environment Window Command Line Window gflags.exe EmacsW32 TortoiseSVN Microsoft Visual Studio 2008 Incredibuild WinMerge Notepad++ Miktex(Protext) Jabref Bibtex4Word - to use bibTeX in Microsoft Word Cygwin TODO: Opening a huge text file in window Splitting a huge text file into multiple small files Window Environment My Computer > Properties > Advanced > Environment Variables > PATH To maximize a window, use the Alt-Space-x Window-E --> To lunch explorer Window-L --> To lock the screen Window-R --> To open up the run window Window-D --> To minimize all the window Window Command Lines proxycfg --> To find out the proxy server xcopy Tortoise SVN TSVNcache.exe is used by Tortoise SVN to continously check the status of sandboxes. This process requires a lot of resources. To disable the TSVNcache.exe, go to > All Program > Tortoise SVN > Settings > Icon Overlays > Status Cache > None E...

firefox 3.0 full screen mode

In my ubuntu 8.10 system, I don't like the new feature of firefox 3.0 that always starts in a full screen mode. To disable the feature, go to the user's profile folder which is located in ~/.mozilla/firefox/ folder, and find the file "localstore.rdf". Rename the file to something else, such as "localstore_rdf_bak", and it should fix the problem.

mounting fat32 partition in Ubuntu 8.10

I like to use a fat32 partition as a shared partition, and want to be able to read and write in that partition. Thus, I modify my /etc/fstab to include the following command, i.e. /dev/sda2 /media/sda2 vfat defaults,utf8,umask=077,gid=1000,uid=1000 0 0 the key is to specify 1. umask=077; it means only the user has the right to read-write-execute. 2. uid=1000,gid=1000 are the user id and the group id of the owner. well, it is not perfect but it suits my need.

Installing latex-beamer on local directory

First, let the latex aware of the new local directory: Check out the current configuration file by:kpsewhich texmf.cnf Copy the texmf.cnf into /home/userName/texmf Modify the texmf.cnf by add the new directory into the variable TEXMF into texmf.cnf set up the environment variable TEXMFCNF=/home/userName/texmf either in bashrc or cshrc Notice that kpsewhich texmf.cnf will return the new local directory after that By doing so, from now on, latex is going to check the local directory for any style file. Now, assume the local installation directory is going to be /home/userName/texmf/ Download latex-beamer-versionNumber.tar.gz Create directories /home/userName/texmf/tex/latex/ ln -s /path/to/latex-beamer-versionNumber.tar.gz /home/userName/texmf/tex/latex/ Extract the latex beamer over ther, i.e. tar -xzvf latex-beamer-versionNumber.tar.gz sudo update-texmf sudo texhash

using kdevelop to setup moses machine translation decoder

To setup ~/tl/dbgC/D0901aMoses/ver11 Make sure language model SRILM is compiled in ~/tl/binC/B0901aSRILM157/ver01. Specifically we need the include and lib directories. Create a new subproject, and name it as Amoses, copy *.cpp and *.h files into the subproject, and remove LanguageModelIRSTLM.cpp. Link the include file of srilm project into this folder. Create a new subproject, and name it as AmosesCmd. Include the library from srilm, i.e. liboolm.a, libmisc.a, and libdstruct.a. Moreover, we need /usr/lib64/libz.a or -lz. In LINK LIBRARY OUTSIDE PROJECT add/edit the link to external library path and static library, e.g. -L/storage/sda9/tl09/binC/B0901aSRILM157/ver01/lib/i686-m64,-L/storage/sda9/tl09/dbgC/D0901aMoses/ver11/debug/src/Amoses/, -lmosesA, -lmisc, -loolm, -ldstruct, -lz. Set CXXFLAGS in SUBPROJECT Option using the following compiler setting: -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -DHAVE_CONFIG_H -DHAVE_SRILM

compiling HTK 3.4 under Ubuntu 64 bit machine

Make sure you have install Install sudo apt-get install libc6-dev-i386 download getlibs from http://ubuntuforums.org/showthread.php?t=474790 sudo dpkg -i --force-all package_name.deb install 32-bit version of x11 using the command sudo getlibs -p libx11-dev Configure ./configure CC=gcc-3.4 --prefix=installation/location --disable-hlmtools

fancyvrb

I like to type source code in latex. Here is the latex code to include source code in a latex file. \begin{Verbatim}[frame=single, label=Title is here, commentchar=!, rulecolor=\color{red}] Verbatim line. \end{Verbatim} See Also: http://gentoo.chem.wisc.edu/tex-archive/macros/latex/contrib/fancyvrb/fancyvrb.pdf

Open pdf in pagewidth mode

I like to open a pdf file in fit width mode and without the taskbar, etc. One may use the following latex cod \usepackage{hyperref} % link from toc \hypersetup{ pdfstartview=FitH, % Fit, FitH, FitV, FitR, FitB, FitBH, FitBV pdfpagemode=None, % None FullScreen UseThumbs UseOutlines colorlinks=true, % false: boxed links; true: colored links linkcolor=blue, % color of internal links } See Also: http://www.andy-roberts.net/misc/latex/pdftutorial.html

Kdevelop failed to build even a simple "hello world" program (kdevelop and libtool)

Kdevelop failed to build even a simple "hello world" program, the reason is due to libtool: Create a new project using the "C++/Hello World Program" template Replace the project's ltmain.sh by /usr/share/libtool/ltmain.sh build the project For more explanation, please visit http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=351358 N.B. In Ubuntu 8.10, the file is located in /usr/share/libtool/config/ltmain.sh