问题: How to find that a number is float or integer ? 如何找到数字为float或integer ? 1.25 --> float 1 --> integer 0 --> integer 0.25 --> float 解决方案: 参考一: https: ...
分类:
其他好文 时间:
2020-05-02 09:19:00
阅读次数:
56
原文 https://stackoverflow.com/questions/1853243/do you really write exception safe code https://en.cppreference.com/w/cpp/language/exceptions Exception ...
分类:
其他好文 时间:
2020-05-01 20:13:26
阅读次数:
58
crontab(crond)是什么? crond是linux系统中用来 定期执行命令 或者 指定程序任务 的一种服务或者软件 秒级任务: 1.crond自身无能为力 2.但是自己可以 写守护进程shell循环(while true;do),来实现秒级任务 backup 备份 为什么需要定时任务: 服 ...
分类:
其他好文 时间:
2020-05-01 18:42:13
阅读次数:
63
I used to sovle questions by spilt it into very basic parts. But sometimes it is hard to rebuild the "wheel" or just not convenient to do so. Not only ...
分类:
其他好文 时间:
2020-05-01 16:37:11
阅读次数:
63
31.1、监控磁盘: #!/bin/sh diskspace="`df -hT`" IFS="\n" disk_value="80" echo "文件系统 类型 容量 已用 可用 已用% 挂载点" for line in $diskspace;do disk=`echo $line | awk -v ...
分类:
其他好文 时间:
2020-05-01 15:07:26
阅读次数:
69
http://www.tzcoder.cn/acmhome/problemdetail.do?method=showdetail&id=4038 用bfs找出最短路,同时更新到该点的路径条数ans 用ans[i][j][f]表示i,j点f方向 f用0,1,2,3表示4个方向 同时和dx,dy数组联系 ...
分类:
其他好文 时间:
2020-05-01 15:05:30
阅读次数:
55
#!/bin/bash Filelist=$(ls -l /data/backup/|egrep "^d"|awk '{print $9}') for i in $Filelist; do count=$(ls -l /data/backup/$i|grep -v total|wc -l) whil ...
分类:
其他好文 时间:
2020-04-30 19:00:59
阅读次数:
69
解析分析线上30分中26G的binlog,排查阿里云RDS主库插入ROWS和监控数据不匹配问题。解析binlog汇总到一起:foriinls/mnt/bi/;do/opt/software/mysql-8.0.19-linux-glibc2.12-x86_64/bin/mysqlbinlog-v--base64-output=decode-rows$i>>all_decoded.sql
分类:
其他好文 时间:
2020-04-30 15:23:31
阅读次数:
69
The complete explanation is that 1.0.x and 1.1.x do not have the same naming conventions for the generated libraries. OpenSSL 1.1.x has moved into wha ...
分类:
其他好文 时间:
2020-04-30 11:23:13
阅读次数:
98
src/net/http/client.go func (c *Client) do(req *Request) (retres *Response, reterr error) src/net/http/client.go func (c *Client) send(req *Request, d ...
分类:
Web程序 时间:
2020-04-29 20:06:30
阅读次数:
184