配置在maven的setting.xml文件中 ...
分类:
其他好文 时间:
2017-04-12 18:40:44
阅读次数:
125
1.创建一个shell脚本文件 cd usr mkdir dabackup vim backup.sh 更改backup.sh文件权限 chmod 755 /usr/dabackup/backup.sh 2.添加到定时任务 每天凌晨3点半备份一次 crontab -e ...
分类:
数据库 时间:
2017-04-12 18:38:46
阅读次数:
210
hasattr(object, name)判断一个对象里面是否有name属性或者name方法,返回BOOL值,有name特性返回True, 否则返回False。需要注意的是name要用括号括起来 getattr(object, name[,default])获取对象object的属性或者方法,如果存 ...
分类:
编程语言 时间:
2017-04-12 16:08:56
阅读次数:
196
Struts2拦截器 Interceptor接口 每个拦截器都必须实现com.opensymphony.xwork2.interceptor.Interceptor接口 用法示例: ...
分类:
其他好文 时间:
2017-04-12 16:08:11
阅读次数:
199
#使用root账号 vim /etc/yum.repos.d/epel.repo [epel] name=epel baseurl=http://mirrors.sohu.com/fedora-epel/6/$basearch enabled=1 gpgcheck=0 用yum安装nodejs和np ...
分类:
其他好文 时间:
2017-04-12 14:23:46
阅读次数:
326
--相关信息修改上传头像local upload = require "resty.upload"local cjson = require "cjson.safe"local new_mysql = require("new_mysql")--local uuid = require "resty ...
分类:
数据库 时间:
2017-04-12 11:41:28
阅读次数:
603
sys.c 代码分析 setregid /* * This is done BSD-style, with no consideration of the saved gid, except * that if you set the effective gid, it sets the saved ...
分类:
系统相关 时间:
2017-04-12 09:25:33
阅读次数:
356
jsp代码中包含两类:jsp元素和template data。 template模板 data:jsp引擎不处理的部分,就是<%....%>之外的部分,直接给浏览器显示。 jsp指令元素: 1.page:11个属性 language, extends, import, session, buffer ...
分类:
Web程序 时间:
2017-04-12 04:38:33
阅读次数:
215
错误信息: 原因: 没有安装gmp和mpfr包,R的gmp和rmpfr缺乏依赖 解决方案: 安装gmp:sudo apt-get install libgmp-dev 安装mpfr:sudo apt-get install libmpfr-dev 安装完毕即可回到R中安装HH ...
分类:
系统相关 时间:
2017-04-12 01:46:29
阅读次数:
264
先插一句。Google出的volley框架本身是支持https请求的,可是仅仅是针对有第三方机构认证过的。 假设自己随便在网上搞的一个证书,那volley是不支持请求的。 本文讲下怎样让volley支持自己搞的https证书。 改动volley源代码:com.android.myvolley.too ...
分类:
Web程序 时间:
2017-04-11 17:15:13
阅读次数:
279