上一页 1 2 3 4 5 6 7 8 ··· 17 下一页

2014年3月18日

摘要: Mina的TextLineCodecFactory将字符串编码为字节流,将字节流解码为字符串,下面是使用中遇到的两个问题。 TextLineCodecFactory改变了message的类型 acceptor上挂了textCodec后handler的messageReceived方法中的session是String型(用"message.getClass().getName()"查看), [INF... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(1696) 评论(0) 推荐(0) 编辑
摘要: 安装平台:Windows Server 2003 R2 Enterprise x64 Edition软件:EasyPHP-5.3.6.1mantisbt-1.2.6 安装过程:首先安装EasyPHP,一路next即可,安装到默认位置即可,路径中可以有空格;将 mantisbt-1.2.6解压到 EasyPHP的www目录下,具体过程可参考 EasyPHP 3 + Mantis 1.2 快速搭建安装... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(172) 评论(0) 推荐(0) 编辑
摘要: Python做图形用户界面(GUI)开发时经常要在界面上显示中文,需要做如下处理(详见[1]和[2]2.3节):在py文件的首行写上:# -- coding:utf-8 --保存py文件时要存为utf-8格式文件。[1] Python2.6 Documentation: The Python Language Reference: 2.1.4 Encoding declarations[2] 孙广... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(206) 评论(0) 推荐(0) 编辑
摘要: Java的字符串处理方法trim是如何改变字符串的?下面是一个例子:@Testpublic void testTrim() { String test = "origin"; String ori = "origin\r\n"; assertFalse(ori.equals(test)); String trimmed = ori.trim(); assertTrue(trim... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 安装过程 命令行安装 下载和安装JDK5、Eclipse3.5、Ant 1.8、Ivy 2.2; 安装JDK:成功标志:在命令行下运行java命令,得到java命令行帮助; 安装Ant:解压Ant,在系统环境变量中设置JAVA_HOME(例如c:\Program Files\Java\jdk1.5.0_22)、ANT_HOME,将${ANT_HOME}/bin加入到path中;成功标志:在命令行... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(398) 评论(0) 推荐(0) 编辑
摘要: 下面的两个pattern(p1和p2)分别代表了(A or B) and (C or D)和(A and B) or (C and D)的跨行匹配结果,当然还可以用正则表达式构建更复杂的pattern,但这个实例证明了Groovy具备跨行匹配复杂逻辑表达式的能力。 值得注意的是,多行匹配文本时需要在匹配字符串前加“(?ms)”。 该实例同时演示了Groovy闭包的使用方法。 源代码 msg1 =... 阅读全文
posted @ 2014-03-18 08:15 leechau 阅读(1757) 评论(0) 推荐(0) 编辑
摘要: Download bitnami installer: bitnami-redmine-2.4.1-1-linux-installer.run$ chmod 755 bitnami...installer.run (run as a common user)$ ./bitnami...install.runyou choose a installation destination (as $RED... 阅读全文
posted @ 2014-03-18 08:14 leechau 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 安装libevent;安装greenlet: sudo easy_install gevent (need net access)bingo!-> python-dev -> libpython2.7deb包下载网站 ;sudo dpkg -i libpython2.7_2.7.2-5ubuntu1_i386.deb2013-02-16:Ubuntu Server 12.04上自带python 2... 阅读全文
posted @ 2014-03-18 08:14 leechau 阅读(965) 评论(0) 推荐(0) 编辑
摘要: Download xampp for linux on Apache Friends, file name: xampp-linux-1.8.3-2-installer.run;Intallation guide: Linux FAQs on Apache Friends$ chmod 755 xampp-linux-1.8.3-2-installer.run$ sudo ./xampp-linu... 阅读全文
posted @ 2014-03-18 08:14 leechau 阅读(248) 评论(0) 推荐(0) 编辑
摘要: The following script auto login to server 49, send 2 commands and exit from the server.Create a automation script named "auto.sh":echo "open 10.0.2.49 -l gcp" sleep 2 echo "gcp" sleep 1 echo "ls" ... 阅读全文
posted @ 2014-03-18 08:14 leechau 阅读(137) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 17 下一页

导航