1 sudo apt-get update 更新源 2 sudo apt-get install package 安装包 3 sudo apt-get remove package 删除包 4 sudo apt-cache search package 搜索软件包 5 sudo apt-cache ...
分类:
其他好文 时间:
2021-05-24 06:42:21
阅读次数:
0
操作BOM对象 BOM:浏览器对象模型 window对象不但充当全局作用域,而且表示浏览器窗口。 //window 对象有 innerWidth 和 innerHeight 属性,可以获取浏览器窗口的内部宽度和高度 console.log('window inner size: ' + window ...
分类:
其他好文 时间:
2021-05-24 06:35:40
阅读次数:
0
1 #include<iostream> 2 #include<cstdlib> 3 using namespace std; 4 #include<set> 5 6 7 /* 8 3.8.3 set容器大小和交换 9 10 size(); //返回容器中元素的数目 11 empty(); //判断 ...
分类:
其他好文 时间:
2021-05-24 06:33:00
阅读次数:
0
如图 为 where中 加max筛选 执行时间大约29504ms速度极慢 如图是 把max筛选提前计算后 时间只需要27ms!!!!!! 是前一种的1092倍!! 不知道 是不是什么bug 记录一下。。。。。 ...
1.bind() 函数.bind(this指向,函数参数...)1 函数调用bind会返回一个新的函数2 新函数中的this指向bind的第一个参数例: function show() { console.log('show'); console.log(this); } show();// thi ...
分类:
Web程序 时间:
2021-05-24 06:04:46
阅读次数:
0
问题概述 使用MySQL数据库,有个用户上网记录表6个月的数据量近2000万,保留最近一年的数据量达到4000万,查询速度极慢,日常卡死。严重影响业务。 问题前提:老系统,当时设计系统的人大概是大学没毕业,表设计和sql语句写的不仅仅是垃圾,简直无法直视。原开发人员都已离职,到我来维护,这就是传说中 ...
分类:
数据库 时间:
2021-05-24 06:01:31
阅读次数:
0
存个链式hash表的板子 比较好清空 const int MAXM=1e7+7; struct{ int next[MAXM],head[MAXM],ans[MAXM],size; ll state[MAXM]; void init(){ size=0; memset(head,0,sizeof(h ...
分类:
其他好文 时间:
2021-05-24 06:00:13
阅读次数:
0
网卡配置文件 将ens32修改为eth0网卡方法 编辑 grub 配置文件 vim /etc/sysconfig/grub # 其实是/etc/default/grub的软连接 # 为GRUB_CMDLINE_LINUX变量增加2个参数,添加的内容为加粗的两个参数: GRUB_CMDLINE_LIN ...
分类:
系统相关 时间:
2021-05-24 05:22:42
阅读次数:
0
在新版的 Kafka Producer 中,设计了一个消息缓冲池,在创建 Producer 时会默认创建一个大小为 32M 的缓冲池,也可以通过 buffer.memory 参数指定缓冲池的大小,同时缓冲池被切分成多个内存块,内存块的大小就是我们创建 Producer 时传的 batch.size ...
分类:
其他好文 时间:
2021-05-24 05:22:26
阅读次数:
0
浮点数二分 模板 假如求平方根 #include<bits/stdc++.h> //万能头文件 using namespace std; int main() { double x; cin>>x; double l = 0, r = max(1, x); while (r - l > 1e-8) ...
分类:
其他好文 时间:
2021-05-24 04:47:23
阅读次数:
0