Let spirit guide you

thinking in life.

常用链接

统计

API

Forum

Site

WiKi

最新评论

enter

enter

posted on 2012-08-24 12:53 cary 阅读(870) 评论(56)  编辑  收藏 所属分类: front

评论

# re: enter 2012-08-24 12:54 cary

1  回复  更多评论   

# re: enter[未登录] 2012-08-24 12:55 root

http://javag.iteye.com/blog/221595  回复  更多评论   

# re: enter[未登录] 2012-08-24 12:55 root

mina
http://javag.iteye.com/blog/221595  回复  更多评论   

# re: enter[未登录] 2012-09-02 13:58 root

svn online
http://svnbook.red-bean.com/en/1.1/svn-book.html#svn-ch-7-sect-1  回复  更多评论   

# re: enter[未登录] 2012-09-03 11:08 root


create repository

$ svnadmin create /usr/local/svn/repos
$svn import tmp/dirs file:///usr/local/svn/repos -m "initial import"  回复  更多评论   

# re: enter[未登录] 2012-09-04 15:03 root

svn add folder
svn ci folder -m "add new folder that needs to be ignore."

export SVN_EDITOR=vim

cd folder
svn propedit svn:ignore .

>open vim editor.
input * or *.class


save and close vim.

svn status
  回复  更多评论   

# re: enter[未登录] 2012-09-05 17:56 root

submit with given user name:
svn ci touch.txt --no-auth-cache --username jerry --password jerry -m ""  回复  更多评论   

# re: enter[未登录] 2012-09-13 15:23 root

ant buildxml

<?xml version="1.0" ?>
<project name="name" basedir="." default="usage" >

<target name="usage">
<echo message="Type ant -p for available targets"/>
</target>
</project>

  回复  更多评论   

# re: enter[未登录] 2012-09-13 15:27 root

# Select "Create New Remote Site" and enter "XFire" as the name and http://dist.codehaus.org/xfire/update/ as the eclipse update site.

http://xfire.codehaus.org/Eclipse+Plugin  回复  更多评论   

# re: enter[未登录] 2012-09-13 17:25 root

<target name="copy">
<delete dir="dest" />
<mkdir dir="dest" />
<copy todir="dest">
<fileset dir="src">
<exclude name="**/*.svn"/>
<exclude name="**/*.swp"/>
</fileset>
</copy>
</tar  回复  更多评论   

# re: enter[未登录] 2012-09-17 09:14 root

eclipse vim plugin
http://vrapper.sourceforge.net/update-site/stable  回复  更多评论   

# re: enter[未登录] 2012-10-30 16:06 root

oracle java sample.
https://wikis.oracle.com/display/code/Home  回复  更多评论   

# re: enter[未登录] 2012-11-16 11:01 root

sina blog open api

http://open.weibo.com/wiki/API%E6%96%87%E6%A1%A3_V2#.E7.94.A8.E6.88.B7  回复  更多评论   

# re: enter[未登录] 2012-11-16 11:01 root

sina blog open api
http://open.weibo.com/  回复  更多评论   

# re: enter[未登录] 2012-11-16 11:51 root



http://eclipsecolorthemes.org/  回复  更多评论   

# re: enter[未登录] 2012-11-23 14:35 root

http://blog.spec-india.com/install-mongodb-on-suse-linux  回复  更多评论   

# re: enter[未登录] 2012-11-30 15:27 root

html5
http://ghost-hack.com/post/jsexperiments/tunneler/tunneler.html  回复  更多评论   

# re: enter[未登录] 2012-11-30 17:10 root

<repositories>
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Maven 2 Repository</name>
<url>http://download.java.net/maven/2</url>
</repository>
<repository>
<id>maven-repository.dev.java.net</id>
<name>Java.net Maven 1 Repository (legacy)</name>
<url>http://download.java.net/maven/1</url>
<layout>legacy</layout>
</repository>
</repositories>
  回复  更多评论   

# re: enter[未登录] 2012-12-07 14:36 root

css
http://developer.51cto.com/art/201212/369649.htm  回复  更多评论   

# re: enter[未登录] 2013-02-26 17:47 root

mvn clean install -Dmaven.test.skip=true
  回复  更多评论   

# re: enter[未登录] 2013-02-26 17:52 root

vn clean source:jar install -Dmaven.test.skip=true  回复  更多评论   

# re: enter[未登录] 2013-02-27 11:00 root

mvn archetype:create -DgroupId=com.name -DartifactId=com.name -DpackageName=com.name -DarchetypeArtifactId=maven-archetype-webap  回复  更多评论   

# re: enter[未登录] 2013-03-16 11:28 root

linux下root密码找回方法

  ===

  linux的root享有至高无上的权力,一旦root密码忘记或者被盗,是一件非常头痛的事情,那么怎么样才能找回root的密码呢,本人把其总结如下:

  (一)Linux 系统密码破解

  1.在grub选项菜单按e进入编辑模式

  2.编辑kernel那行 /init 1 (或/single)

  3.按B重启

  4.进入后执行下列命令

  root@#passwd root (配置root的密码)

  Enter new unix password:输入新的密码

  root@#init 6

  ============================================================================

  (二)debian linux 系统密码破解

  1.在grub选项菜单’Debian GNU/Linux,...(recovery mode)’,按e进入编辑模式

  2.编辑kernel那行面的 ro single 改成 rw single init=/bin/bash,按b执行重启

  3.进入后执行下列命令

  root@(none)#mount -a

  root@(none)#passwd root

  root@(none)#reboot

  ============================================================================

  (三)Freebsd 系统密码破解

  1.开机进入引导菜单

  2.选择每项(按4)进入单用户模式

  3.进入之后输入一列命令

  root@#mount -a

  root@#fsck -y

  root@#passwd(修改密码命令)  回复  更多评论   

# re: enter[未登录] 2013-05-02 14:09 root

vim 解决中文乱码。

set encoding=utf-8
set termencoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
language messages zh_CN.utf-8  回复  更多评论   

# re: enter[未登录] 2013-05-03 17:42 root

set encoding=utf-8

set guifont=Consolas:h16:cANS


:set guifont?


http://www.vimer.cn/2009/11/vim%EF%BC%88gvim%EF%BC%89%E7%BC%96%E7%A8%8B%E5%AD%97%E4%BD%93%E6%8E%A8%E8%8D%90.html  回复  更多评论   

# re: enter[未登录] 2013-05-03 19:02 root

" tab setting.
"这样很方便,用alt+1就可以切换到第1tab页,用alt+2就可以切换到第2tab页,
"以此类推。当然缺点也很明显,就是没办法到第10个以上的tab页。
"用alt+F1就可以关闭当前标签页,用alt+F2可以打开一个新的标签页。
"alt+c
"alt+n
"

set guitablabel=%N/\ %t\ %

map <M-1> 1gt
map <M-2> 2gt
map <M-3> 3gt
map <M-4> 4gt
map <M-5> 5gt
map <M-6> 6gt
map <M-7> 7gt
map <M-8> 8gt
map <M-9> 9gt
map <M-c> :tabclose<CR>
map <M-n> :tabedit<CR>  回复  更多评论   

# re: enter[未登录] 2013-05-03 21:23 root

let Tlist_Ctags_Cmd="/usr/bin/ctags"
let Tlist_Inc_Winwidth=0
nnoremap <silent> <F8> :TlistToggle<CR>

let Tlist_Auto_Open = 0
let Tlist_Exit_OnlyWindow = 1 " exit if taglist is last window open
let Tlist_Show_One_File = 1 " Only show tags for current buffer
let Tlist_Use_Right_Window = 0 " Open on right side
let Tlist_Enable_Fold_Column = 0 " no fold column (only showing one file)
let tlist_sql_settings = 'sql;P:package;t:table'
let tlist_ant_settings = 'ant;p:Project;r:Property;t:Target'


let JavaBrowser_Ctags_Cmd="/usr/bin/ctags"
let JavaBrowser_Inc_Winwidth=0
  回复  更多评论   

# re: enter[未登录] 2013-05-04 00:32 root

maven for eclipse - http://download.eclipse.org/technology/m2e/releases


Update Sites
Latest m2e release (recommended)
http://download.eclipse.org/technology/m2e/releases
m2e milestone builds towards version 1.4
http://download.eclipse.org/technology/m2e/milestones/1.4
Latest m2e 1.4 SNAPSHOT build (not tested, not hosted at eclipse.org)
http://nexus.tesla.io:8081/nexus/content/sites/m2e.extras/m2e/1.4.0/N/LATEST/

http://eclipse.org/m2e/download/  回复  更多评论   

# re: enter[未登录] 2013-05-06 10:09 root

eclipse subversion
Eclipse update site URL: http://subclipse.tigris.org/update_1.8.x  回复  更多评论   

# re: enter[未登录] 2013-05-06 10:23 root

for windows gvim


set encoding=utf-8

set guifont=Consolas:h16:cANSI

" tab setting.
"这样很方便,用alt+1就可以切换到第1tab页,用alt+2就可以切换到第2tab页,
"以此类推。当然缺点也很明显,就是没办法到第10个以上的tab页。
"用alt+F1就可以关闭当前标签页,用alt+F2可以打开一个新的标签页。
"alt+c
"alt+n
"

set guitablabel=%N/\ %t\ %

map <M-1> 1gt
map <M-2> 2gt
map <M-3> 3gt
map <M-4> 4gt
map <M-5> 5gt
map <M-6> 6gt
map <M-7> 7gt
map <M-8> 8gt
map <M-9> 9gt
map <M-c> :tabclose<CR>
map <M-n> :tabedit<CR>

let Tlist_Ctags_Cmd='F:\vim\gvimPortable\gVimrtable\gVimrtable'



"ctags
"F:\vim\gvimPortable\gVimrtable\gVimrtable\ctags.exe
"3. If the exuberant ctags utility is not present in your PATH, then set the
" Tlist_Ctags_Cmd variable to point to the location of the exuberant ctags
" utility (not to the directory) in the .vimrc file.
"4. If you are running a terminal/console version of Vim and the terminal
" doesn't support changing the window width then set the
" 'Tlist_Inc_Winwidth' variable to 0 in the .vimrc file.
"5. Restart Vim.
"6. You can now use the ":TlistToggle" command to open/close the taglist
" window. You can use the ":help taglist" command to get more information
" about using the taglist plugin.   回复  更多评论   

# re: enter[未登录] 2013-05-06 13:33 root

mac svn tool


http://code.google.com/p/svnx/downloads/detail?name=svnX%201.3.4.dmg&can=2&q=  回复  更多评论   

# re: enter[未登录] 2013-05-07 14:08 root

public static <T> T getBean(Class<T> clz) {
return TheCtx.getBean(clz);
}

// public static Object getBean(Class clz) {
// return TheCtx.getBean(clz);
// }  回复  更多评论   

# re: enter[未登录] 2013-05-07 15:32 root

http://www.vim.org/scripts/script.php?script_id=2809

description
===============================================================================
Introduction *fontsize-intro*

This plugin provides convenient mappings for changing the font size in Gvim.

<Leader>== Begin "font size" mode
<Leader>++ Increment font size
<Leader>-- Decrement font size
<Leader>00 Revert to default font size   回复  更多评论   

# re: enter[未登录] 2013-05-09 13:00 root


json


http://code.alibabatech.com/wiki/pages/viewpage.action?pageId=2424946

https://code.google.com/p/google-gson/  回复  更多评论   

# re: enter[未登录] 2013-05-09 16:02 root

http://www.codeproject.com/Articles/159450/fastJSON  回复  更多评论   

# re: enter[未登录] 2013-05-13 16:33 root

http://code.google.com/p/dwz/  回复  更多评论   

# re: enter[未登录] 2013-05-21 00:07 root

替换;

按ESC键进入命令模式;
:s /SEARCH/REPLACE/g 注:把当前光标所处的行中的SEARCH单词,替换成REPLACE,并把所有SEARCH高亮显示;
:%s /SEARCH/REPLACE 注:把文档中所有SEARCH替换成REPLACE;
:#,# s /SEARCH/REPLACE/g 注:#号表示数字,表示从多少行到多少行,把SEARCH替换成REPLACE;
注:在这之中,g表示全局查找;我们注意到,就是没有替换的地方,也会把SEARCH高亮显示;
举例说明:
比如我们有一篇文档要修改;
我们把光标所在的行,把所有单词the,替换成THE,应该是:
:s /the/THE/g
我们把整篇文档的所有的the都替换成THE,应该是:
:%s /the/THE
我们仅仅是把第1行到第10行中的the,替换成THE,应该是;
:1,10 s /the/THE/g  回复  更多评论   

# re: enter[未登录] 2013-05-22 10:11 root

:g/str1/,/str2/d 删除所有第一个含str1到第一个含str2之间的行
:%s/r//g


xxyyaa

VALUES (178, 1, 9);

VALUES (184, 1, 9);
aayyxx
VALUES (185, 1, 9)

:%s/xxyyaa/,/aayyxx/g
  回复  更多评论   

# re: enter[未登录] 2013-05-23 09:57 root

常见问题及应用技巧
1) 在一个新文件中读/etc/passwd中的内容,取出用户名部分
vi file
:r /etc/passwd 在打开的文件file中光标所在处读入/etc/passwd
:%s/:.*//g 删除/etc/passwd中用户名后面的从冒号开始直到行尾的所有部分
:3r /etc/passwd 这是在指定的行号后面读入文件内容
另外一种方法删掉文件中所有的空行及以#开始的注释行
#cat squid.conf.default | grep -v ‘^$’ | grep -v ‘^#’

2) 在打开一个文件编辑后才知道登录的用户对该文件没有写权,不能存盘
vi file
:w /tmp/1 既然没法存盘,不想放弃所做的所有修改,先临时存到/tmp/1
:20,59w /tmp/1 或者仅仅把第20到59行之间的内容存盘成文件/tmp/1

A
3) 用VI编辑一个文件,但需要删除大段大段的内容
vi file
Ctrl+G 把光标移到需要删除的行的处按ctrl+G显示行号,再到结尾处再按Ctrl+G.
:23,1045d 假定两次行号为23和1045,则把这几间的内容全删除

也可以在开始和结束两行中用ma,mb命令标记后用:’a,’bd删除.
4) 在整个文件或某几行中在行首或行尾加一些字符串
vi file
:3,$s/^/some string / 在文件的第三行至最后一行的行首前插入some string
:%s/$/ some string/g 在整个文件每一行的行尾添加 some string

:%s/string1/string2/g 在整个文件中替换string1成string2
:3,7s/string1/string2/ 仅替换文件中的第三到七行中的string1成string2

Note: s为substitute,%表示所有行,g表示global


5) 同时编辑两个文件,在两个文件中拷贝剪贴文本
vi file1 file2
yy 同时打开两个文件,在文件1的光标所在处拷贝所在行
:n 切换到文件2 (n=next)
p 在文件2的光标所在处粘贴所拷贝的行
:N 切换回文件1

6) 替换文件中的路径

:%s#/usr/bin#/bin#g 把文件中所有路径/usr/bin换成/bin
或者用
:%s//usr/bin//bin/g 在’/'前用符号指出’/'是真的单个字符’/’

7) 用 vi 多行注释
如果要给多行程序作注释,一个笨办法就是 插入 # ,然后用 j 跳到下一行用 .
命令,重复上个命令。如果要注释几百行,这样的方法恐怕太愚蠢了。一个聪明的办法是:
:.,+499 s/^/#/g
若需全文的行首插入可用以下命令
:%s/^/#/g

  回复  更多评论   

# re: enter[未登录] 2013-05-24 11:29 root

如何在vim中删除空行

:g/^$/d  回复  更多评论   

# re: enter[未登录] 2013-05-24 14:02 root


maven repository
http://mvnrepository.com/artifact/junit/junit/4.11  回复  更多评论   

# re: enter[未登录] 2013-05-27 12:34 root

http://rejetto.com/hfs/
HFS ~ Http File Server  回复  更多评论   

# re: enter[未登录] 2013-05-28 22:55 root

http://learnvimscriptthehardway.stevelosh.com  回复  更多评论   

# re: enter[未登录] 2013-06-01 17:31 root

http://eclipse.org/m2e/download/

maven eclipse plugin update site  回复  更多评论   

# re: enter[未登录] 2013-06-18 14:51 root


set nobackup
set noswapfile
set hlsearch
set incsearch
set autoindent
set cindent


set encoding=utf-8

set guifont=Consolas:h16:cANSI

set guitablabel=%N/\ %t\ %
  回复  更多评论   

# re: enter[未登录] 2013-06-18 15:20 root

mvn install:install-file
-DgroupId=<your_group_name>
-DartifactId=<your_artifact_name>
-Dversion=<snapshot>
-Dfile=<path_to_your_jar_file>
-Dpackaging=jar
-DgeneratePom=true   回复  更多评论   

# re: enter[未登录] 2013-06-18 15:20 root

maven for eclipse -
http://download.eclipse.org/technology/m2e/releases/1.0/1.0.200.20111228-1245


hotdeploy -
http://www.imixs.org/manik.updatesite/
  回复  更多评论   

# re: enter[未登录] 2013-06-25 10:25 root

set nobackup
set noswapfile
set hlsearch
set incsearch
set autoindent
set cindent

syntax enable
syntax on

" 光标移动到buffer的顶部和底部时保持3行距离
set scrolloff=3


set guifont=Consolas:h14:cANSI

set guitablabel=%N/\ %t\ %  回复  更多评论   

# re: enter[未登录] 2013-06-25 11:49 root


mvn archetype:generate -DarchetypeGroupId=com.taobao.webx.archetypes -DarchetypeArtifactId=webx-quickstart -DarchetypeVersion=1.0.1 -DgroupId=my.groupid -DartifactId=my-artifactId  回复  更多评论   

# re: enter[未登录] 2013-06-26 14:09 root

set vb t_vb=

$ cd
$ vi .xession
#添加,关闭xwindows的报警
xset b off
$ vi .inputrc
#添加,关闭shell里的报警
set bell-style none
$ vi .vimrc
#添加,设置vi里的报警为闪屏,如果闪屏也不要那就加入set vb t_vb=
set vb
$ vi .emacs
#添加,关闭Emacs里的报警
setq visible-bell t  回复  更多评论   

# re: enter[未登录] 2014-01-08 18:01 root

Git服务器Gitosis安装设置

http://wiki.ubuntu.org.cn/Git%E6%9C%8D%E5%8A%A1%E5%99%A8Gitosis%E5%AE%89%E8%A3%85%E8%AE%BE%E7%BD%AE  回复  更多评论   

# m2eclipse[未登录] 2014-01-27 11:46 root

Update Sites
Latest m2e release (recommended)
http://download.eclipse.org/technology/m2e/releases
m2e milestone builds towards version 1.5
http://download.eclipse.org/technology/m2e/milestones/1.5
Latest m2e 1.5 SNAPSHOT build (not tested, not hosted at eclipse.org)
http://repository.tesla.io:8081/nexus/content/sites/m2e.extras/m2e/1.5.0/N/LATEST/   回复  更多评论   

# E-Git for eclipse[未登录] 2014-01-27 11:58 root

E-git - http://download.eclipse.org/egit/updates  回复  更多评论   

# re: enter[未登录] 2015-06-26 19:32 root

http://www.forbeschina.com/review/201506/0043197_7.shtml  回复  更多评论   

# re: enter[未登录] 2015-06-26 19:43 root

http://www.forbeschina.com/review/201503/0041213_3.shtml  回复  更多评论   

# re: enter[未登录] 2016-05-24 16:56 root


php中文文档
https://secure.php.net/manual/zh/reserved.variables.php  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: