摘要: http://harveyzeng.iteye.com/blog/1849720 阅读全文
posted @ 2014-03-13 16:44 Macaque 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 参数详解:第一项(WAR/EAR files):是war包的相对路径(相对于工作区路径,即在工作区中war包的相对路径.)如我的maven执行完成之后会在工作区的target目录下生成项目.war,所以这里我的路径就写target\项目.war.第二项:(content path):tomcat的发布路径,即使用localhost/(content path设置的名字)来访问项目.最后一项是deploy on failure是发生错误的时候是否发布到tomcat.tomcat用户权限配置: 阅读全文
posted @ 2014-03-05 14:55 Macaque 阅读(6364) 评论(0) 推荐(0) 编辑
摘要: import java.util.Arrays;/** * 排序算法 * */public class SortDemo { public static void main(String[] args) { int[] ary = {3,1,4,9,2,5,6}; selectionSort(ary); System.out.println(Arrays.toString(ary)); bubbleSort(ary); System.out.println(Arrays.toString(ary)); insertionSort(ary); ... 阅读全文
posted @ 2014-02-26 14:17 Macaque 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 一:对于listview: $(‘ul’).listview(‘refresh’);二:对于div或其他: $(‘allAddContent’).trigger( “create” ); 阅读全文
posted @ 2013-11-16 00:23 Macaque 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 删除文件rm -rf切换用户su移动文件mv 文件 目的sshssh trace@10.1.1.3sftpsftp trace@10.1.1.3get file (不可get目录)查看文件tail -200f filename 从后往前看200行 动态刷新查看进程top杀进程kill -9权限chmodmysql导出数据mysqldump -uuser -ppwd dbname > db.sql 导出整个库mysqldump -uuser -ppwd -d dbname tablename>db.sql 导出某张表的表结构mysqldump -uuser -ppwd dbname 阅读全文
posted @ 2013-11-13 20:11 Macaque 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 错误:org.apache.axis2.AxisFault: Transport error: 411 Error: Length Required可能会导致这个问题的原因:1、访问地址经过端口映射2、http协议版本不同造成的,在HTTP1.0中,服务器就会省略response头中的Content-Length而持续写数据出去,当服务器挂了的话,它简单地断开连接。而经典的HTTP客户端会一直读数据直到碰到-1(传输结束的标识符)。为了处理这个问题,HTTP1.1中增加了一个特殊的header:Transfer-Encoding:chunked,允许响应response被分块chunked。每 阅读全文
posted @ 2013-10-07 19:23 Macaque 阅读(1379) 评论(0) 推荐(0) 编辑
摘要: 1、 CSS选择器优先级 行内样式(通过Style=""定义) 1000; ID选择器 100; Class类选择器 10; 类型选择器 1 数值越大优先级越高 例如: Style="" 优先级为1000;#wrapper #content {}优先级为 100*2=200; #content.datePosted {}优先级为 100+10=110;div#content {}优先级为 1+100=1012、页脚居底 1 html, body { 2 margin:0; /* 必要,否则纵向滚动条不会消失 */ 3 height:100%; /* 必要 阅读全文
posted @ 2013-09-30 14:54 Macaque 阅读(155) 评论(0) 推荐(0) 编辑
摘要: exp或是expdp命令在导出数据的时候会把表记录数为0的表过滤掉,无法导出。通过如下方法可以导出记录数0的表。1、先查询一下哪些表是空的: select table_name from user_tables where NUM_ROWS=0;2、下面我们通过select 来生成修改语句: select 'alter table '||table_name||' allocate extent;' from user_tables where num_rows=03、然后就在结果窗口里面生成了下面那些东西: alter table E2USER_STATE a 阅读全文
posted @ 2013-09-30 14:00 Macaque 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 1、小图标在线查找 https://www.iconfinder.com/2、在线做图,Flowchart流程图,BPMN图,Org组织结构图等 http://www.processon.com/3、前端开发Emmet API http://docs.emmet.io/cheat-sheet/3、LayoutIt是一个Twitter Bootstrap 界面生成器,能够帮助你快速制作出网站和界面模型,同时能够下载生成的网站代码。 http://www.layoutit.com/4、在线API http://tool.oschina.net/apidocs 阅读全文
posted @ 2013-09-30 13:50 Macaque 阅读(207) 评论(0) 推荐(0) 编辑
摘要: webservice axis2客户端设置代理方法(公司网络通过代理访问时)UploadProcessInServiceStubstub=newUploadProcessInServiceStub(endPoint);stub._getServiceClient().getOptions().setProperty(HTTPConstants.HTTP_PROTOCOL_VERSION,HTTPConstants.HEADER_PROTOCOL_10);ProxyPropertiesproxyProperties=newProxyProperties();proxyProperties.set 阅读全文
posted @ 2013-09-29 15:24 Macaque 阅读(1338) 评论(0) 推荐(0) 编辑