码迷,mamicode.com
首页 >  
搜索关键字:rate    ( 3875个结果
MySQL数据库报错pymysql.err.InterfaceError: (0, '')
今天入库的时候出现了报错pymysql.err.InterfaceError: (0, ''),经过排查,发现是由于把连接数据库的代码放到了插入函数的外部,导致多线程运行出错 也就是把2,3行代码放在了函数外面,而write_into_db函数是放在线程主函数中的,如果放在函数外面,就会导致无法连接 ...
分类:数据库   时间:2018-04-27 19:48:17    阅读次数:10186
python内置函数
abs 返回参数的绝对值 all 可迭代对象的每个元素是否都为真 any 可迭代对象是否有为真的元素 ascii 返回一个表示对象的字符串 bin 返回二进制表示法 bytearray bytes callable 是否能被调用(个人理解,加上()是否不报错) chr 传入的参数作为索引,返回ASC ...
分类:编程语言   时间:2018-04-27 19:48:01    阅读次数:144
Prometheus Querying Function rate() vs irate()
rate() rate(v range-vector) calculates the per-second average rate of increase of the time series in the range vector. rate()函数计算某个时间序列范围内的每秒平均增长率。 Br ...
分类:其他好文   时间:2018-04-27 19:37:59    阅读次数:1958
mybatis的@Options的使用
1、问题: 我采用的是mybatis的注解方式,打算插入一条数据之后返回主键,但是试了好几次都是返回的影响的记录数:1, 经过查资料,发现,主键的返回是直接返回到user这个model里面的,可以直接从user.getId()来获取。 2、问题: date入参,库里是timestamp类型, sel ...
分类:其他好文   时间:2018-04-27 02:22:17    阅读次数:148
springmvc登陆拦截
登陆拦截: 使用拦截器完成登录控制,具体为拦截用户的请求,判断用户是否已经登录,如果用户没有登录,则跳到login界面,如果用户已登录,则放行。 1.首先创建登录拦截器类LoginInterceptor 实现HandlerInterceptor接口,实现其三个方法,分别是preHandle,post ...
分类:编程语言   时间:2018-04-26 23:32:52    阅读次数:238
WEB中间件--tomcat爆破,burp和python脚本
1.tomcat 用burpsuit进行弱口令爆破 先抓包 发送到inturder payload type 选择custom iterater 第一个payload选用户名文件,第二个payload用 : 第三个选密码文件 设置base64加密,和去掉URL编码 开始攻击,得到用户名密码 2.用p ...
分类:编程语言   时间:2018-04-26 12:17:50    阅读次数:417
unity延时方法Invoke和InvokeRepeating
MonoBehaviour里面有两个内置的延时方法 MonoBehaviour里面有两个内置的延时方法 Invoke 1 2 3 Invoke(methodName: string, time: float): void; methodName:方法名 time:多少秒后执行 InvokeRepea ...
分类:编程语言   时间:2018-04-26 12:11:52    阅读次数:193
message显示rsyslog日志服务警告信息due to rate-limiting
/var/log/message日志大量这样的提示信息。应该rsyslog的配置记录超过最大值,修改syslog的配置文件来解决。Apr 23 16:11:53 kkmail rsyslogd-2177: imuxsock begins to drop messages from pid&
分类:其他好文   时间:2018-04-24 14:51:22    阅读次数:553
tensorflow API _ 3 (tf.train.polynomial_decay)
学习率的三种调整方式:固定的,指数的,多项式的def _configure_learning_rate(num_samples_per_epoch, global_step): """Configures the learning rate. Args: num_samples_per_epoch: ...
分类:Windows程序   时间:2018-04-24 11:17:42    阅读次数:1184
tensorflow API _ 4 (优化器配置)
"""Configures the optimizer used for training.Args: learning_rate: A scalar or `Tensor` learning rate.Returns: An instance of an optimizer.Raises: Val ...
分类:Windows程序   时间:2018-04-24 11:14:08    阅读次数:468
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!