ITeye博客

脉兜

lym6520 · 共 165 篇文章

解决EXT3 GridPanel 无法选中复制问题

通过实践,删除gridPanel上指定class="x-grid-panel"即可。 以下使用jquery方式删除(生成GridPanel后执行): //fix EXT GRID 选中复制 $(".x-grid-panel").removeClass("x-grid-panel");

2016-05-07 09:11 · JS · EXT · 评论(0)

apexUpload flash上传控件

简单易用的flash附件上传,使用jquery封装调用。 /* * apexUpload * version: 1.0.0 (24/05/2015) * @ jQuery v1.3.* * usage as: * * html: <div style="position:relative;"><a id="uploadBtn" href="javascript:void(0);">上传图片</a></div> <br/> <span id="result"></span> init javascript: $('#uploadBtn').apexUpload({ path: 'res/plu…

2015-05-24 16:56 · Flex · JS · 评论(3)

snaker工作流: java.lang.NoClassDefFoundError: de/odysseus/el/util/SimpleContext

java.lang.NoClassDefFoundError: de/odysseus/el/util/SimpleContext 由于引用snaker工作流,部署的时候需要将 juel-2.1.2.jar 放到 tomcat/lib 目录下,同时需要删除el-api.jar重复包。

2015-02-09 22:30 · 资料 · 评论(0)

强制关闭tomcat sh脚本

shutdown-force.sh解决tomcat无法正常关闭需要手动kill问题。 把shutdown-force.sh放到tomcat/bin目录下,强制关闭tomcat: cd tomcat/bin ./shutdown-force.sh sh脚本内容: set fileformat=unix #!/bin/bash #by lym6520 2014-11-08 #force shutdown tomcat,copy this sh file to tomcat/bin dir path=${PWD} ps -ef|grep $path|grep java|awk '{print $2…

2014-11-18 17:14 · linux · 评论(1)

Mysql安装及主从备份配置方案操作说明

Mysql安装及主从备份配置方案操作说明 MySQL支持单向、异步复制,复制过程中一个服务器充当主服务器,而一个或多个其它服务器充当从服务器。主服务器将更新写入二进制日志文件,并维护日志文件的一个索引以跟踪日志循环。当一个从服务器连接到主服务器时,它通知主服务器从服务器在日志中读取的最后一次成功更新的位置。从服务器接收从那时起发生的任何更新,然后封锁并等待主服务器通知下一次更新。 为什么使用主从复制? 1、主服务器/从服务器设置增加了健壮性。主服务器出现问题时,你可以切换到从服务器作为备份。 2、通过在主服务器和从服务器之间切分处理客户查询的负荷,可以得到更好的客户响应时间。但是不要同时在主…

2014-07-04 16:49 · linux · 资料 · 评论(0)

CAS 客户端验证成功获取更多用户信息

cas客户端需要获取更多的用户信息,需要对cas server做下修改,以支持返回更多属性信息 1.修改WEB-INF/deployerConfigContext.xml配置文件 找到id="authenticationManager" 的bean,为属性credentialsToPrincipalResolvers增加自定义bean,该bean需实现org.jasig.cas.authentication.principal.CredentialsToPrincipalResolver接口: ... </list> public class UserAttributeRepository …

2014-06-10 16:20 · sso · CAS 返回更多用户信息 · 评论(0)

win8 无法显示桌面,运行explorer.exe 提示 0xc0000018 错误 解决方法

改注册表.这个就是DB03.EXE引起的. cmd打开注册表:regedit 找到注册表"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\Explorer.exe"项,把它删除,重启就可以了!!!! 参见:http://chenguogen.blog.163.com/blog/static/74439462008818101154509/

2014-05-08 10:03 · 资料 · 评论(0)

linux 定时任务检查服务器是否正常

通过curl命令判断url返回状态,以此来确定服务是否正常: #!/bin/bash STATE=`curl --head lym6520.iteye.com | awk 'NR==1' | awk '{print $2}'`; if [ "$state" -eq "502" ] ;then echo "echo "报警" "http error 502" ${date+"%y-%m-%d %H:%M:%S"}"; java -jar /test/m-tools-sendMail.jar lym6520@qq.com lym6520.iteye.com 502 elif [ "$state"…

2014-02-28 22:21 · JAVA · linux · 资料 · 评论(0)

tomcat server.xml设置Context指定webapp访问路径引起的context.xml无效

通过tomcat的server.xml设置来部署webapp,即在Host下增加Context节点,会引起webapp应用的META-INF/context.xml文件无效,如果context配置了数据源则可能会出现如下错误: Cannot create JDBC driver of class '' for connect URL 'null' 所以如果是通过server.xml设置来部署webapp的,应当把context.xml配置也转移到server.xml中,这样就可以避免此类问题。 另外Context节点的属性 antiResourceLocking="true" antiJAR…

2014-02-12 10:57 · 资料 · 评论(1)

linux 安装nginx服务器

下载nginx: http://nginx.org/en/download.html 将下载的安装包放到linux服务器上 解压安装包,{version}为版本号: tar -zxvf nginx-{version}.tar.gz cd nginx-{version} 编译,--prefix指定安装的目录: ./configure --prefix=/lym/server/nginx --with-http_stub_status_module --without-http-cache --with-http_ssl_module make make install 设置目录权限 chmod…

2014-02-11 17:33 · linux · nginx · 评论(0)

poi导出excel文件工具类

package m.utils.excel; import org.apache.poi.hssf.usermodel.*; import java.io.FileOutputStream; import java.io.IOException; import java.util.Calendar; import java.util.List; import java.util.Map; /** * poi 导出excel 工具类 */ public class POIUtil { /** * 1.创建 workbook * @return */ public HSSFWorkbook ge…

2014-01-20 21:54 · JAVA · 评论(3)

linux iptables 设置仅22、80端口可访问

【设置仅22、80端口可访问】 通过命令 netstat -tnl 可以查看当前服务器打开了哪些端口 netstat -tnl 查看防火墙设置 iptables -L -n 开放22、80端口 iptables -A INPUT -p tcp --dport 22 -j ACCEPT iptables -A OUTPUT -p tcp --sport 22 -j ACCEPT iptables -A INPUT -p tcp --dport 80 -m state --state NEW,ESTABLISHED -j ACCEPT iptables -A OUTPUT -p tcp --sp…

2013-08-26 21:35 · linux · 评论(0)

关于weblogic中调用webservice报找不到AddressingExtensionRegistry类(纠正)

错误如下: weblogic.wsee.jaxws.framework.policy.advertisementimpl.AdvertisementHelperImpl registerExtension 警告: Registering oracle.j2ee.ws.wsdl.extensions.addressing.AddressingExtensionRegistry extension failed; java.lang.ClassNotFoundException: oracle.j2ee.ws.wsdl.extensions.addressing.AddressingExtens…

2013-06-25 10:22 · web service · 评论(1)

linux mount挂载共享目录

挂载windows共享目录或FTP: 方式一:包含密码 sudo mount //192.168.10.22/FTPServer /windows -o username=user,password=abcdefg -t cifs 方式二:密码单独输入 sudo mount //192.168.10.22/FTPServer /windows -o username=user -t cifs password:abcdefg 卸载: umount /FTPServer 挂载linux共享目录: 【修改server端】 修改/etc/export文件,加入: /home/user/source…

2013-04-22 15:49 · linux · 评论(0)

如何避免超链接在点选时产生的“虚线外框”呢?

如何避免超链接在点选时产生的“虚线外框”呢? 有很多办法实现。可以用hideFocus。比如一个超链接,要使其点选之后不出现焦点虚线框: XX hideFocus即隐藏聚焦,具有使对象聚焦失效的功能,其功能相当于用JS实现:onFocus=”this.blur()”。它的值是一个布尔值,如hideFocus=1。也可省略赋值直接写hideFocus。 但遗憾的是,hideFocus只在IE下有效; Firefox中可以用CSS写: outline:none。

2012-12-22 22:53 · 资料 · 评论(0)