discription Nick has some permutation consisting of p integers from 1 to n. A segment [l,?r] (l?≤?r) is a set of elements pi satisfying l?≤?i?≤?r. Nic ...
分类:
其他好文 时间:
2018-01-17 13:41:54
阅读次数:
257
文件上传进度反馈, 这个需求在当前是越来越普遍, 比如大附件邮件. 在PHP5.4以前, 我们可以通过APC提供的功能来实现. 或者使用PECL扩展uploadprogress来实现。 从PHP的角度来说, 最好的储存这些信息的地方应该是SESSION, 首先它是PHP原生支持的机制. 其次, 它可 ...
分类:
Web程序 时间:
2018-01-17 01:14:45
阅读次数:
172
sys模块 示例:进度条 1 import sys 2 import time 3 4 5 def progress_bar(num, total): 6 rate = float(num) / float(total) 7 rate_num = int(rate * 100) 8 r = '\r% ...
分类:
其他好文 时间:
2018-01-16 00:48:36
阅读次数:
172
git配置 源码安装 检测当前git版本是否是2.7.4以上 如果没有安装git直接源码安装即可,如果安装了先删除原来的git。 先安装编译git需要的包。 下载&安装 mkdir /tmp/git && cd /tmp/git curl --progress https://www.kernel. ...
分类:
系统相关 时间:
2018-01-06 23:21:17
阅读次数:
237
progress_bar.py#!/usr/bin/python3.6 #__*__uft8__*__ import sys import time def progress(percent,width=50): '''进度打印功能''' if percent >= 100: percent=100... ...
分类:
编程语言 时间:
2018-01-06 14:24:21
阅读次数:
169
一、服务器端配置1、rsyncd.conf文件说明uid = rsync #用户,用来控制用户访问模块目录的读写权限gid = rsync #组,用来控制组访问模块目录的读写权限use chroot = no #安全相关max connections = 50 #最大连接数timeout = 180 ...
分类:
系统相关 时间:
2018-01-04 18:15:19
阅读次数:
272
deferred对象是jQuery对Promises接口的实现。它是非同步操作的通用接口,可以被看作是一个等待完成的任务,开发者通过一些通过的接口对其进行设置。事实上,它扮演代理人(proxy)的角色,将那些非同步操作包装成具有某些统一特性的对象,典型例子就是Ajax操作、网页动画、web work ...
分类:
Web程序 时间:
2018-01-04 11:09:05
阅读次数:
195
初装oracle 12.2 rac数据库。 登录RAC数据库中第1节点 按 Ctrl+C 复制代码 尝试通过scan ip连接pdb(plug_test),有时候能登录数据库plug_test;但是有时候会无法登录,并报以下错误: 困惑从这里开始。不明白为何有时能登录,有时又不能登录。 登录第二节点 ...
分类:
数据库 时间:
2018-01-01 11:25:28
阅读次数:
215
centos 7 本地仓库*/30 * * * * rsync -avz --progress --delete --exclude="dotnet" --exclude="fasttrack" --exclude="isos" --exclude="opstools" --exclude="rt"
分类:
其他好文 时间:
2017-12-27 18:10:58
阅读次数:
130
问题 1. error: Failed to start an Appium session, err was: Error: Requested a new session but one was in progress 之前的会话没有关闭,然后你又运行了测试实例,也没有设置覆盖. 解决: 1. ...
分类:
移动开发 时间:
2017-12-26 14:34:04
阅读次数:
2466