ITeye博客

临时记录

lan13217 · 共 369 篇文章

[置顶] 常用链接

MS-DOS的清屏命令: cls 社保 https://e.szsi.gov.cn/siservice/ http://www.szzfgjj.com/ x2a0x3c5d5e1f7a3b9c2e7b 默认不设置代理: git config --global https.proxy https://127.0.0.1:1080 git config --global --unset http.proxy 函数索引 索引分类 分表 分区 设计模式 javascript to jsonString :JSON.stringify(jso); //@ sourceURL=tpl.js 谷歌了浏览器…

2010-03-09 10:42 · Java · 评论(0)

CAS REST Protocol 测试

获取TGT curl -k -i -X POST -d "username=casuser&password=Mellon&service=https://www.baidu.com" https://cas.example.org:8443/cas/v1/tickets --------------------------------------------------------------------- HTTP/1.1 201 X-Application-Context: cas:native:8443 Location: https://cas.example.org:8443/c…

2017-03-02 15:24 · CAS · 评论(0)

AS3根据编码类型解析文本

package { import flash.text.TextField; import flash.utils.ByteArray; import flash.events.MouseEvent; import flash.events.Event; import flash.net.FileReference; import flash.display.MovieClip; public class Test extends MovieClip { private var ref : FileReference; private var btn_browse : MovieClip; …

2016-09-21 15:18 · FLEX · Flash · 评论(0)

openmeetings

http://apache.fayea.com/openmeetings/3.1.2/bin/apache-openmeetings-3.1.2.zip http://apache.fayea.com/openmeetings/3.1.2/src/apache-openmeetings-3.1.2-src.zip centos7没有安装ifconfig命令的解决方法 http://www.centoscn.com/CentosBug/osbug/2014/0916/3750.html http://www.2cto.com/os/201303/199029.html virtualbox中,…

2016-08-23 17:25 · openmeetings · 评论(0)

sip

sip

2016-07-10 21:17 · sip · 评论(0)

javaweb 读取 classes 下的文件

http://www.cnblogs.com/hxling/archive/2010/09/06/1819260.html javaweb 读取 classes 下的文件 try { ClassLoader loader = Thread.currentThread().getContextClassLoader(); InputStream is=loader.getResourceAsStream("com/xxx/module/product/META-INF/config/action.xml"); BufferedReader br = new BufferedReader(new…

2016-05-20 11:26 · Java · 评论(0)

ResultToBean

package util; import java.lang.reflect.Field; import java.util.List; import org.apache.commons.lang3.StringUtils; import org.hibernate.transform.ResultTransformer; @SuppressWarnings("serial") public class ResultToBean implements ResultTransformer { private Class entityClaz; public List transformLis…

2016-05-16 16:56 · Hibernate · 评论(0)

js字段转列

function fieldToColumn(str) { if (!!str && typeof(str) === "string") { return str.replace(/[a-z]+[a-za-z0-9]+/g, function (match) { return match.replace(/[a-z]|\d+/g, function (match) { return "_" + match.toLowerCase(); }) }) } return str; } function getClassName(str) { return str.match(/class\s+[a…

2016-05-11 19:29 · JavaScript · 评论(0)

mysql 查看当前查询sql ,停止查询

show status show processlist; kill id; http://qq85609655.iteye.com/blog/2113960

2016-03-07 18:39 · mysql · 评论(0)

React Native 搭建

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew -v brew install nvm mkdir ~/.nvm vim ~/.bash_profile export NVM_DIR=~/.nvm source $(brew --prefix nvm)/nvm.sh nvm nvm -v brew info nvm nvm install node && nvm alias default node brew --cache nvm …

2016-02-21 13:50 · React Native · 评论(0)

Centos 6.4 iptables防火墙关闭启动详解

关闭虚拟机防火墙: 关闭命令: service iptables stop 永久关闭防火墙:chkconfig iptables off 两个命令同时运行,运行完成后查看防火墙关闭状态 service iptables status 1 关闭防火墙-----service iptables stop 2 启动防火墙-----service iptables start 3 重启防火墙-----service iptables restart 4 查看防火墙状态--service iptables status 5 永久关闭防火墙--chkconfig iptables off 6 永久关闭后…

2016-02-21 11:33 · Linux · 评论(0)

babel 使用记录

// $ echo '{ "presets": ["es2015","react"] }' > .babelrc # ES2015转码规则 $ npm install --save-dev babel-preset-es2015 # react转码规则 $ npm install --save-dev babel-preset-react # ES7不同阶段语法提案的转码规则(共有4个阶段),选装一个 $ npm install --save-dev babel-preset-stage-0 $ npm install --save-dev babel-preset-stage-1 $ np…

2016-02-18 16:43 · Babel · 评论(0)

easyui 只读

function disableForm(jqForm) { function jeTypeMatch(jeTypec) { var jet=jeTypec.match(/easyui-(combobox)/)||jeTypec.match(/[a-z-]+\s(textbox)/)||jeTypec.match(/easyui-(datebox)/); return jet&&jet[1]; } $('input[class^=easyui]',$(jqForm)).each(function () { var jetype = jeTypeMatch($(this).attr("clas…

2016-01-15 16:26 · Jquery · 评论(0)

nashron Arttemplate

load("http://aui.github.io/artTemplate/dist/template.js"); var source = "{{if isAdmin}}<h1>{{title}}</h1><ul>{{each list as value i}}<li>索引 {{i + 1}} :{{value}}</li>{{/each}}</ul>{{/if}}"; var data = {title: '基本例子',isAdmin: true,list: ['文艺', '博客', '摄影', '电影', '民谣', '旅行', '吉他']}; var render = templa…

2015-12-05 14:35 · JavaScript · nashron · 评论(0)

spring hibernate 获取当前线程connection

threadLocal实现参考TransactionSynchronizationManager try { System.out.println("222"+TransactionSynchronizationManager.hasResource(SessionFactoryUtils.getDataSource(getSessionFactory()))); ConnectionHolder ch=(ConnectionHolder)TransactionSynchronizationManager.getResource(SessionFactoryUtils.getDataSour…

2015-12-01 16:17 · Spring · Hibernate · 评论(0)