1. 基本的使用方法 1.1 加入项目依赖 (1)在pro文件中加入QT += webkit 或在cmakeList.txt中加入(本人未试过): find_package(Qt4 COMPONENTS Widgets WebKit REQUIRED) target_link_libraries(w ...
分类:
Web程序 时间:
2021-01-01 12:30:45
阅读次数:
0
一、停止和删除容器、删除镜像 docker ps 查看运行中的容器 docker ps -a 查看所有容器 docker stop 容器ID docker rm 容器ID docker images 查看镜像 docker rmi 镜像ID 删除镜像 二、禁用和停止容器服务 systemctl di ...
分类:
其他好文 时间:
2021-01-01 12:20:47
阅读次数:
0
在文件开始追加一行 1 使用sed(会改变文件编码为utf-8) find -name "*.cpp" -exec sed -i '1s@^@added line\n@' {} \; #sed insert append #第一行行前插入一行 sed -i '1i added line' main. ...
分类:
其他好文 时间:
2020-12-31 11:53:11
阅读次数:
0
crontab命令与配置 防止忘记,这里记录一下定时任务crontab的一些命令 crontab基本操作 1.安装crontabs服务 yum install crontabs 2.设置开机自启 systemctl enable crond 3.运行服务 systemctl start crond ...
分类:
系统相关 时间:
2020-12-30 11:31:39
阅读次数:
0
计划任务crontab-e*/1****sudosh/root/redis/redis_cluster/7003-cron.sh脚本#!/bin/shredis=`netstat-an|grep":7003"|awk‘$1=="tcp"&&$NF=="LISTEN"{print$0}‘|wc-l`if[$redis-eq0];then#端口被占用执行如下sudo/root/redi
分类:
其他好文 时间:
2020-12-30 11:20:41
阅读次数:
0
实验七 文件(Last one) p.s最后一个实验居然是最坎坷的一个实验,怎么说呢,用的MacOS,一直在担心文件操作不能做,刚做的时候不断报错,上网查了半天,打开了路径开关,变成fail to find。心如死灰,选择到机房在Windows系统下做实验,结果结果,不知道是不习惯系统还是操作的问题 ...
分类:
其他好文 时间:
2020-12-30 11:10:04
阅读次数:
0
递归实现 template<typename T> int binary_search(T arr[], int len, int left, int right, int find) { // 必要参数检查 if (NULL == arr || nullptr == arr || 0 > left ...
分类:
编程语言 时间:
2020-12-29 11:31:49
阅读次数:
0
package LeetCode_562 /** * 562. Longest Line of Consecutive One in Matrix * (Prime) *Given a 01 matrix M, find the longest line of consecutive one in ...
分类:
其他好文 时间:
2020-12-28 11:58:19
阅读次数:
0
1、git rm -r --cached 要忽略的文件 (如: git rm -r --cahced build/*, 如修改列表中的内容全部是不需要的, 那么你可以使用最最简单的命令搞定git rm -r --cached .) 2、将要忽略的文件添加到.gitignore文件中去(如果是目录的话 ...
分类:
其他好文 时间:
2020-12-28 11:34:19
阅读次数:
0
B - Lucky Mask Petya loves lucky numbers very much. Everybody knows that lucky numbers are positive integers whose decimal record contains only the lu ...
分类:
其他好文 时间:
2020-12-25 12:22:13
阅读次数:
0