Petya and Vasya are competing with each other in a new interesting game as they always do. At the beginning of the game Petya has to come up with an a ...
分类:
其他好文 时间:
2020-05-16 23:37:41
阅读次数:
129
RHEL平台升级Oracle 12C+ PSU补丁 1. 补丁和版本变化信息 Release Schedule of Current Database Releases (Doc ID 742060.1) 1.1 版本编号的变化 从2018年开始,版本号重新的模式,使用3个字段格式( Year.Up ...
分类:
数据库 时间:
2020-05-16 18:54:59
阅读次数:
380
将当前的代码快速复制到下一行/上一行 按 Ctrl + Alt + down/up 将当前行的数据声明为相应类型的变量 按 Ctrl + 2 快速生成多行注释 输入 /** 按 回车键 快速输入 System.out.println(); 输入 syso 按 Atl + / 快速引入 List类(在 ...
分类:
系统相关 时间:
2020-05-16 18:35:03
阅读次数:
83
如果之前能够正常使用,某次开机或解锁后网络突然不能用了,尝试重新启动网络服务 相关报错:Failed to start LSB: Bring up/down networking. 主机IP不可用 #如果没有执行权限可以直接进入su超级用户systemctl stop NetworkManager ...
分类:
其他好文 时间:
2020-05-16 10:43:19
阅读次数:
85
error: RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54 fatal: the remote end hung up unexpectedly fatal: early EOF fatal: index-pac ...
分类:
Web程序 时间:
2020-05-16 09:19:10
阅读次数:
158
1.Scalability 多加一台机器可多做一件事,这个就叫scalability,亦可为两台机器做一件事的时间减少为一半,叫 scalability speed up。 2.Parallelism 并行,跟concurrency不一样,这张图能很好说明区别: 3.Fault tolerance ...
分类:
其他好文 时间:
2020-05-16 00:51:44
阅读次数:
57
问题:点击软键盘,调用setOnKeyListener,每次都执行两次 原因:触发两次事件可能是ACTION_DOWN和ACTION_UP造成的。 解决办法一:加上keyEvent.getAction() == KeyEvent.ACTION_DOWN判断 解决方法二:调用setOnEditorAc ...
分类:
移动开发 时间:
2020-05-15 18:19:11
阅读次数:
89
首选拖几个控件,如图: 直接上代码: 1 public partial class Form3 : Form 2 { 3 public Form3() 4 { 5 InitializeComponent(); 6 } 7 8 9 //方法一开始 10 private async void butto ...
分类:
编程语言 时间:
2020-05-15 13:36:16
阅读次数:
84
1,模拟300秒内开启100个虚拟用户,每个用户循环访问服务器资源10次,要求平均响应时间在30ms内,且错误率为0 方法: 压测之一个区间时间用户多次访问 新建线程组,100个用户 使用线程数 300秒 使用Ramp-Up Period 每个用户循环访问服务器资源10次 循环次数 HTTP请求 结 ...
分类:
其他好文 时间:
2020-05-15 11:51:14
阅读次数:
84
终端进入目标文件夹,然后在终端输入: $ http-server -c-1 (??只输入http-server的话,更新了代码后,页面不会同步更新) Starting up http-server, serving ./ Available on: http://127.0.0.1:8080 htt ...
分类:
Web程序 时间:
2020-05-14 11:26:37
阅读次数:
124