伊苏
伊苏 · 共 85 篇文章
java jconsole 远程监控
jconsole 远程监控 一. windows 环境下的tomcat采用start.bat启动 二. windows 环境下的tomcat采用服务启动 三. linux 环境下tomcat采用catalina.sh启动 四. linux 环境下非tomcat的远程监控 不带密码验证的 一. windows 环境下的tomcat采用start.bat启动 window 环境 采用start.bat启动 在doStart里添加 set CATALINA_OPTS=-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port…
tomcat 连接池
tomcat连接池, 被坑得很惨, 记录下来 主要是apache common dbcp和tomcat-jdbc之间的混乱 这是tomcat7,8的tomcat-jdbc [code="java"] [/code] 这是tomcat 6,7的dbcp [code="java"] [/code] 这是tomcat 8版本的dbcp [code="java"] [/code] 这是dbcp的属性 maxActive->maxTotal, maxWait->maxWaitMillis, 而jdbc的属性又跟dbcp的差不多, 有时候你都不知道你用的到底是dbcp还是tomcat-jdbc 我的惨痛…
2014-12-06 15:18 · tomcat · 评论(0)
tomcat web.xml常用配置
通过tomcat设置URL访问权限 有basic方式和login方式 basic使用tomcat-user.xml上面的用户和权限 login需要编写login.jsp和error.jsp 以下是basic的示例 [code="java"] helloworld SimpleHello helloworld /hello 1 Protected Area /debug/* GET POST tomcat BASIC My Test tomcat [/code]
2014-11-29 22:41 · tomcat · 评论(0) · Tomcat
代码规范
代码规范 这个词困扰了我多年 要统一代码规范, 我目前还没见过成功的例子, 各个公司, 各种语言, 甚至每个人都有自己的风格, 没有形成网格的也有习惯, 用别人的总是不那么顺手 常见的代码规范: 类的命名首字母大写, 然后驼峰命名 函数取名, 第一个词小写, 动词开头之类的 这2点还算厚道 然后 内部变量来了 以前学习C语言的喜欢 _a _i, lcName, lcCount, 之类 {} C#的 if() { } java的 if(){ } 运算符前后加个空格 i=1; i = 1; for(int i=0;i listener=new LinkedList(); public void …
2014-11-22 09:44 · java · 评论(0) · Java
双网卡内外网设置
双网卡设置 为了工作需要访问局域网, 为了发打时间, 需要上公网寻欢 场景 内网 ip 192.168.9.102 mask 255.255.255.0 gateway 192.168.9.253 外网 ip 60.11.61.201 mask 255.255.255.0 gateway 60.11.61.129 原来(见图1) dest netmask gateway interface 0.0.0.0 0.0.0.0 60.11.61.129 60.11.61.201 0.0.0.0 0.0.0.0 192.168.9.253 192.168.9.102 第一步 route delete…
2014-06-30 20:48 · 评论(0)
矢量图 web前端 后端
SVG矢量图格式 http://zh.wikipedia.org/wiki/可缩放矢量图形 能够设计SVG图形作品的软件工具包括Adobe Illustrator、Visio以及CorelDRAW等。 而开放源代码的软件有Scribus、Karbon14、Inkscape以及Sodipodi等。 另外也有开放源码、功能简单但容易操作、免安装的在线SVG设计工具,例如svg-edit。 svg-edit https://code.google.com/p/svg-edit/ Raphaël—JavaScript Library web前端矢量图开源框架 非html5的矢量图web前端解决方案 …
2014-05-15 01:19 · web vector · 评论(0)
java jar getResource() null exception
1. Adding resource folder to classpath: When you Clean-&-Build a NetBeans Ant Based Project it creates a manifest.mf file in the root directory of the project. This file gets included in the JAR file also. Modify this file and add entry like follows: Manifest-Version: 1.0 X-COMMENT: Main-Class will…
2013-09-23 20:59 · java · 评论(0)
mysql 常用命令
注册服务(windows2003) mysqld --install mysql5 --defaults-file="d:\mysql\my.ini" 登陆 mysql -hlocalhost -P3306 -u root -proot 注意, -p后面如果跟密码的话, 一定不能有空格, 带空格的话会解析成指定数据库 mysql -hlocalhost -P3306 -uroot -proot mysql -hlocalhost -P3306 -uroot -p 换行输入密码, *号显示 典型错误 mysql -h127.0.0.1 -P3306 -uroot -p 123 root 这情况…
2013-08-23 14:28 · mysql · 评论(0) · MySQL
picture toggler
it's easy to get a picture toggle with html, css, js. without any 3rd party plug or lib suah as jquery. virtual the final effect. do a model to achieve static html what we want adjust css to patch the position of cover layout, banner, digital block coding js to achieve dynamic picture toggle effect…
2011-12-11 11:25 · 评论(0) · html picture toggler
高血压速降法, 一天内145->126, 珍惜生命, 注意身体
一天内, 血压 145->133->126 昨晚下班回到家,吃饭前无聊测了一下血压,左手148, 右手135,吓出一身汗,赶紧打人打网球, 给XX堡前台mm电话订场,准备8:30-10:30,什么,只有9点前,看着145的数字,别无选择,硬着头皮调敲钟 第二早上6:50起床空肚再测, 145..., 心里有点毛毛的 到了网球场, 纯自虐2小时, 同伴非常诧异说: 今天你怎么打得这么拼命, 我心里想着, 再不拼命可能以后没机会拼命了 回家洗澡完再测, 133, 哇哈哈哈哈, 效果显著, 并决定下午又去网球场自虐, 睡一常见吃个午饭, 喝杯茶上下网, 出发, 3-6, 然后回家洗澡吃饭, 半小时…
2011-10-22 20:30 · 评论(0) · 生活
full screen layout with standard mode
in quirk, take full screen with table is convenience, but it's not work in FF. and I wanta try to stand my code close w3c stand more: with standared mode. so, I use div + css, with position fixed implement in FF first. and hack css for IE6. [code="java"] full screen layout with standard mode [/code…
2011-09-20 22:13 · 评论(0) · HTML · CSS · JS
select virtual implement
simple implement. option: support input as text not support scroll. [code="java"] select demo select : JAVA HTML JAVASCRIPT CSS PHOTOSHOP ILLUSTRATOR 1 a b 2 [/code] result [img]http://dl.iteye.com/upload/attachment/551896/3d300373-350a-324e-8bec-2c9afdbbe634.jpg[/img] to be continue...
2011-09-09 06:34 · 评论(0) · HTML · CSS · JavaScript
sort html table by js
it's efficient to sort a table in HTML with Javascript. to solve it. the focus is keep the event itself. I do it for non-IE and IE with respective js code first, let's build up the test html environment [code="java"] demo table sort title1title2title3title4 1aa12 2bb22 3cc23 4da4 05eb8 6fc6 17ga16 …
2011-09-08 21:57 · 评论(0) · HTML · JavaScript