This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Classname : MD5Util | |
* Create Date : Aug 15, 2006 | |
*/ | |
import java.security.MessageDigest; | |
/** | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<link href="../css/style.css" type="text/css" rel="stylesheet" /> | |
<script src="../css/jquery.js" type="text/javascript"></script> | |
<script src="../css/jquery.cookie.js" type="text/javascript"></script> | |
<script src="../css/jquery.treeview.js" type="text/javascript"></script> | |
<script type="text/javascript"> | |
$(function(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//得到整个页面,用于列表页面读取 | |
function getPage(url,param,div){ | |
//对中文进行编码 | |
param = encodeURI(param); | |
document.getElementById(div).innerHTML = "<div style=\"text-align:center; line-height:30px; padding-top:50px;\"><img src=\"/2011/images/down/loading.gif\" width=\"66\" height=\"66\" /><br />数据正在加载中,请稍等……</div>"; | |
jQuery.ajax({ | |
type:"GET", | |
url:url+"?div="+div+param, | |
async: true, | |
dataType: "html", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 获取对象属性值,支持嵌套属性(like el表达式) | |
* @param obj | |
* @param property p1.p2 | |
* @return | |
*/ | |
public static Object getProperty(Object obj, String property) { | |
if (obj == null || StringUtil.isBlank(property)) | |
return null; | |
String[] propertyArray = property.split("\\."); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Python Web Server Gateway Interface v1.0.1 | |
http://www.python.org/dev/peps/pep-3333/ | |
Jinja2 python模板 | |
http://jinja.pocoo.org/docs/intro/#installation | |
Installing easy_install and pip for Python | |
http://blog.troygrosfield.com/2010/12/18/installing-easy_install-and-pip-for-python/ | |
pip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install virtualenv | |
pip install virtualenvwrapper | |
virtualenv dev_env --no-site-package |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#window下安装MySQL-python(1.2.4) 遇到问题汇总 | |
*. 1 UNABLE TO FIND VCVARSALL.BAT | |
安装gcc编译环境,下载mingw32,在线安装需要翻墙(全局代理)。 | |
gcc版本在4之后不支持-mno-cygwin选项。需要修改C:\python\Python27\Lib\distutils\cygwinccompiler.py文件,把-mno-cygwin的地方干掉。 | |
感谢 http://blog.csdn.net/zeng_jiang/article/details/7571706 | |
*. 2 pip install配置compiler | |
在C:\python\Python27\Lib\distutils\distutils.cfg文件加入下面两行(没有该文件就新建一个) | |
[build] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MyInterface | |
| | |
_______|_______ | |
| | | |
Myclass Decorator | |
____|_____ | |
| | | |
DecoratorA DecoratorB | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.blogjava.net/baoyaer/articles/84080.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://www.cnblogs.com/houleixx/archive/2008/03/04/1090214.html |