UserWarning: module dap was already imported from None

I installed python-matploglib and python-mpltoolkits.basemap using apt, but when I tried to import Basemap using from mpltoolkits.basemap import Basemap, the following warning shows up:

usr/lib/pymodules/python2.7/mpl_toolkits/__init__.py:2: UserWarning: Module dap was already imported from None, but /usr/lib/python2.7/dist-packages is being added to sys.path
  __import__('pkg_resources').declare_namespace(__name__)
more ...


Why I Switched to Octopress

I used to blog on wordpress.com. After a year or so, I finally decided to abandoned it and switched to Octopress + Github Pages. Here are the reasons and how I migrated to Octopress. Maybe because I was using wordpress.com, and those who use a self-hosted wordpress have something different to say, the way I see it, wordpress, at least wordpress.com, sucks.

more ...


Use Ant Exec task for Linux Shell Commands

Suppose we use cscope and/or ctags for indexing source code of our Java project and we want to update the meta data files (e.g. cscope.out, tags) each time after we compile. We can use the --post-comile target to accomplish this. Create a custom_rules.xml in your project root directory with the following content. This file will be included to your main build.xml file.

more ...


Using Cscope INSIDE Vim

Date Category vim Tags cscope

The goal we want to accomplish here is, jumping to a function definition (maybe in another file,) finding out where a symbol is defined, finding out what function(s) call current function and what functions are called from this function, ALL WITHOUT LEAVING VIM.

more ...