上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页

2014年3月18日

摘要: 尝试从java源文件中解析出类、方法、属性等信息,但下面的代码没有完全实现。 Sub parseJava() Dim package_name as String 'read a file Documents.Open FileName:="f:\CommandCm.java", ConfirmConversions:=False, ReadOnly:=True paraNo = ... 阅读全文
posted @ 2014-03-18 08:10 leechau 阅读(405) 评论(0) 推荐(0) 编辑
摘要: The following is frequently used ant script, compile some java source codes with a libary path, then copy all non-java files to compiled folder: ... 阅读全文
posted @ 2014-03-18 08:10 leechau 阅读(232) 评论(0) 推荐(0) 编辑
摘要: 现在使用的Eclipse SDK 3.7.2里没有XML编辑器,无法进行语法高亮,也没有格式化(按层次控制缩进量)和设计视图,很不方便。对于ant文件,可以用Ant Editor来打开,ivy文件在装了IvyDE后也有自己的编辑器,但对于其他格式的XML文件(例如logback使用的配置文件),如果使用Ant editor打开,有语法高亮和格式化(Ctrl+shift+f),但会报语法错误(因为a... 阅读全文
posted @ 2014-03-18 08:10 leechau 阅读(1986) 评论(0) 推荐(0) 编辑
摘要: 在Win7上用Visual Studio编译putty源代码。安装vs2005,只安装c++和.net framework sdk即可; 将putty-src.zip解压到e:\MyDoc\VSProjects\Putty下;用vs2005打开e:\MyDoc\VSProjects\Putty\WINDOWS\MSVC\PUTTY.DSW;打开C:\Program Files\Microsoft ... 阅读全文
posted @ 2014-03-18 08:09 leechau 阅读(939) 评论(0) 推荐(0) 编辑
摘要: 下面的脚本演示了在Ubuntu上安装expect,写一个切换用户的expect脚本,并运行脚本看到效果的过程。root@guserver:~# apt-get install expect godu@guserver:~$ cat su.exp #!/usr/bin/expect set timeout 20 set user [lindex $argv 0] set password ... 阅读全文
posted @ 2014-03-18 08:09 leechau 阅读(221) 评论(0) 推荐(0) 编辑
摘要: user=> (doc repeatedly)clojure.core/repeatedly ([f] [n f]) Takes a function of no args, presumably with side effects, and returns an infinite (or length n if supplied) lazy sequence of calls to it ... 阅读全文
posted @ 2014-03-18 08:09 leechau 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 控制反转(Inversion of Control, IoC)的主要作用是为软件模块解耦,增加可测性,提高模块内部聚合性,依赖注入(Dependency Injection, DI)是IoC的一种特殊形式,Benjamin J Evans: The Well-Grounded Java Developer, Chapter 3: Dependency Injection 很好地解释了什么是依赖注入... 阅读全文
posted @ 2014-03-18 08:09 leechau 阅读(118) 评论(0) 推荐(0) 编辑
摘要: According to "Pro Puppet" 2nd edition, Chapter 2, "Creating a Module to Manage SSH". 阅读全文
posted @ 2014-03-18 08:09 leechau 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 装好Ubuntu Server 12.04后,用apt-get安装telnetd报"E: Unable to locate package telnetd",解决方法如下:虚拟机采用NAT方式与主机连接;sudo apt-get update(更新apt-get的软件源)sudo apt-get install telnetdsudo /etc/init.d/openbsd-inetd resta... 阅读全文
posted @ 2014-03-18 08:09 leechau 阅读(1639) 评论(0) 推荐(0) 编辑
摘要: Install$ sudo aptitude install awesomeBuild from source$ aria2c -s 5 http://awesome.naquadah.org/download/awesome-3.5.2.tar.bz2$ tar jxf awesome-3.5.2.tar.bz2$ cd awesome-3.5.2$ sudo aptitude install ... 阅读全文
posted @ 2014-03-18 08:09 leechau 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 17 下一页

导航