简述 核心的指令释义 pid 将nginx进程的pid写入文件nginx.pid pid file; pid logs/nginx.pid Context main error_log 配置日志文件,及级别 Syntax: error_log file [level]; Default: error ...
分类:
其他好文 时间:
2020-07-29 14:34:18
阅读次数:
66
代码:https://github.com/z-x-yang/GCT 这是一个百度和悉尼科技大学合作的工作,作者指出,SENet modulate feature maps on the channel-wise level. 但是,SE 模块使用了个全连接层(FC层)处理 channel-wise ...
分类:
其他好文 时间:
2020-07-29 00:39:40
阅读次数:
110
如果不需要确定当前遍历到了哪一层,BFS模板如下。 while queue 不空: cur = queue.pop() for 节点 in cur的所有相邻节点: if 该节点有效且未访问过: queue.push(该节点) 如果要确定当前遍历到了哪一层,BFS模板如下。 这里增加了level表示当 ...
分类:
其他好文 时间:
2020-07-28 22:38:05
阅读次数:
77
grep text file 在文件中搜索文件 -i 忽略大小写 -n 显示所在行号 -v颠倒(所有不包含的) -r递归(此时file为目录名) grep -i text filename rgrep 等效 grep -r grep -E text file 使用正则表达式搜索 -E egrep 等 ...
分类:
系统相关 时间:
2020-07-28 13:52:47
阅读次数:
92
本题的high level的思想是二分搜索这样的substring最多能有多长。对于一个固定的len,如果能在S里找到两处相同的子串滑窗,那么我们就可以对len的搜索往上调整;反之,我们就必须将len的搜索往下调。 于是本题转化为,如果快速在S里找到两处相同的、长度都是len的滑窗。比较直观的想法是 ...
分类:
其他好文 时间:
2020-07-27 09:41:50
阅读次数:
90
一、理解BFC 1.BFC(Box Formatting Context) Box是css布局的对象和基本单位,直观讲就是一个页面多个Box组成。 元素的类型和display属性决定了这个Box的类型;不同类型的Box,参与不同的Formatting Context(一个决定如何渲染文档的容器),因 ...
分类:
其他好文 时间:
2020-07-26 19:36:32
阅读次数:
70
1.主库 [oracle@xag1124a ~]$ sqlplus / as sysdba SQL> select protection_mode,protection_level,log_mode,open_mode,flashback_on from v$database; PROTECTION ...
分类:
数据库 时间:
2020-07-25 23:57:18
阅读次数:
177
我的错误代码: 1 #include<iostream> 2 #include <iomanip> 3 4 using namespace std; 5 6 int main() 7 { 8 int N; 9 cin>>N; 10 11 int n; 12 int j=1; 13 int sum0= ...
分类:
其他好文 时间:
2020-07-24 15:33:40
阅读次数:
68
一 8个Process Function (1) ProcessFunction 在没有开窗和keyby的情况下使用 (2) KeyedProcessFunction 在keyby之后使用 (3) CoProcessFunction (4) ProcessJoinFunction (5) Broad ...
二分查找 #include<bits/stdc++.h> using namespace std; const int maxn = 2e5+5; long long a[maxn], b[maxn]; long long getKth(int k, int lo1, int hi1, int lo ...
分类:
其他好文 时间:
2020-07-23 23:22:49
阅读次数:
76