不同的投影环境下,笔画粗细相同的字体才能保证效果差异不会太大。丛书中得到几个推荐的字体
适合于正文(Main Body)的字体
适用于标题(Title)的字体
2010-08-30 at 10:27 (笔记(Note))
2009-08-05 at 10:44 (笔记(Note))
2. Enable spell checking only for text files. Add below line into _vimrc
au BufRead,BufNewFile,BufWrite *.{txt,em} setlocal spell spelllang=en_us
2009-08-04 at 16:17 (笔记(Note))
Recently, I am so interested in Vim. Actually, UltraEdit and Notepad++ are enough to fulfil my daily works already, and I rarely have additional requirements. Even though, because of below reasons, I am going to have a try
1. High performance. When UltraEdit is opening a large file (e.g. larger than 100MB), its painful to operate in the window
2. "Grep" function which I was looking for for a long time
3. Easy spell checking function
4. All keyboard operations. Its cool
5. Free for license
6. Simplest interface and pretty color schemes
But the first thing, is to find the most easy way to comply with my current habits, though there are many other approaches.
1. Copy, Cut and Paste like in Microsoft Windows
Copy: Ctrl + Insert
Cut: Shift + Delete
Paste: Shift + Insert
2. Indent a block instead of line by line
In VISUAL mode (v), Shift + >>
3. Switch buffer window
Ctrl + W
Others are being study and cannot be listed all. Its NOT a piece of cake to remember the commands. Fortunately I found the documentation in Chinese.
Append the settings I am using below
" Start – Basel’s settings
colo evening
set guifont=Consolas:h12
set spell spelllang=en_gb
set laststatus=2
set statusline=%<%f\ %h%m%r%=%{\"[\".(&fenc==\"\"?&enc:&fenc).((exists(\"+bomb\")\ &&\ &bomb)?\",B\":\"\").\"]\ \"}%k\ %-14.(%l,%c%V%)\ %P
set encoding=utf-8
set fileencoding=utf-8
set wrap
set go=a
" Use CTRL-S for saving, also in Insert mode
noremap <C-S> :update<CR>
vnoremap <C-S> <C-C>:update<CR>
inoremap <C-S> <C-O>:update<CR>
" End – Basel’s settings
2009-08-03 at 15:42 (笔记(Note))
2009-07-23 at 20:27 (笔记(Note))
2009-07-23 at 15:09 (笔记(Note))
In JSP. Same mechanism in Java
<%@ page import="com.ibm.portal.navigation.NavigationNode"%>
<%@ page import="com.ibm.portal.ModelException"%>
<%@ page import="com.ibm.wps.model.ModelUtil"%>
<%
try {
ModelUtil util = ModelUtil.from(request);
NavigationNode node = (NavigationNode)
util.getNavigationSelectionModel().getSelectedNode();
String pageID = node.getContentNode().getObjectID().getUniqueName();
} catch (ModelException e) {
System.out.println("Error: " + e.getMessage());
}
%>
2009-07-23 at 14:22 (笔记(Note))
1. Make Spring use the log4j as the underlying logging system.
Option 1:
Add a file named "org.apache.commons.logging.LogFactory" in META-INF/services directory of the war file. The file content is as below
org.apache.commons.logging.impl.Log4jFactory
Option 2:
Set the application class loader mode to PARENT_LAST.
Add a file named "commons-logging.properties" to the classpath and specify the implementation of commons logging. The file content is as below
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4Jlogger
2. Config spring log level in logging.xml
<category name="org.springframework" additivity="false">
<priority value="WARN"/>
<appender-ref ref="Warn"/>
</category>
2009-07-23 at 14:12 (笔记(Note))
The following steps show you how to successfully uninstall the WebSphere Portal Toolkit version 5.x
where xxxx is c:\Program Files\IBM\WebSphere Studio.
2009-07-23 at 14:08 (笔记(Note))
Solution
Add encoding option to project.properties
#compiling for Java 1.4
maven.compile.source=1.4
maven.compile.target=1.4
maven.compile.encoding=UTF-8