Ben Chuanlong Du's Blog

And let it direct your passion with reason.

Cygwin Portable

** Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement! **

Cygwin Portable

  1. The portable versions has some problems

    • Vim, edit mode, backspace doesn't work sometimes (identation related)
  2. Cygwin portable scroll doesn't work after Vim is opened and then closed. but if …

Scientific References

  1. JabRef is an open-source cross-plotform software for managing scientific references. Mendeley is a good cost-free cross-platform software for managing scientific references. It introduces the concept of social research.

  2. If you use bibtex in your LaTeX code, you have to compile your code using pdflatex/latex, bibtex, pdflatex/latex and pdflatex …

Convert LaTeX to Word

pandoc is a general purpose tool for converting between different type of documents, however, it is not good at converting LaTeX code to word. tex4ht is a better tool for converting LaTeX code to word. The following are instructions to use tex4ht to convert LaTeX to word.

  1. Compile your LaTeX …

Interact with System Clipboard in Vim

The following are ways for a Vim session to interact (copy/cut, paste) with other Vim sessions or other applications.

Use X Windows Clipboard Directly

If you prefer to use X windows clipboard as the default buffer for Vim, put set clipboard=unnamedplus in your .vimrc file. This obviously makes …

Fix Microphone Problem of Skype in Debian

Install Pulseaudio if you only have ALSA. ALSA alone does NOT work with skype whatever people on the #Debian channel might think and tell you.

sudo apt-get install pulseaudio

Install pulseaudio volume control

sudo apt-get install pavucontrol

Run Skype.

Go to the Sound devices sections. Click on the Open PulseAudio …

Make Eclipse Support C++11

  1. Make a new C++ project

  2. Default options for everything

  3. Once created, right-click the project and go to "Properties"

  4. C/C++ Build -> Settings -> Tool Settings -> GCC C++ Compiler -> Miscellaneous -> Other Flags. Put -std=c++0x at the end.

  5. C++ General -> Paths and Symbols -> Symbols -> GNU C++. Click "Add..." and paste __GXX_EXPERIMENTAL_CXX0X__ …