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
在文件开始追加一行 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
错误:configure: error: libevent >= 1.4.11 could not be found解决:yum -y install libevent libevent-devel错误:configure: error: Please reinstall the mysql dis ...
分类:
Web程序 时间:
2020-12-30 11:22:18
阅读次数:
0
Firecracker Firecracker is a new light KVM-based hypervisor written in Rust and announced during last AWS re:Invent in 2018. But unlike QEMU, Firecrac ...
分类:
其他好文 时间:
2020-12-30 11:12:12
阅读次数:
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
环境:wamp,redis 要求:安装WAMP,Redis,以及为PHP安装Redis扩展(怎么安装Redis可以看看我前面写的文章) 秒杀功能大致思路:获取缓存列表的长度,如果长度(llen)等于0,就停止秒杀,即秒杀失败,如果长度大于0,则继续运行,先从缓存中移除一个元素(lpop),再进行数据 ...
分类:
Web程序 时间:
2020-12-29 11:26:06
阅读次数:
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,创建统一的网络 docker network create --driver bridge --subnet=10.10.0.0/16 --gateway=10.10.0.1 mynet 2,创建 mongodb 容器 version: '3' services: mongodb: image: ...
先前為了一個期末專題花了一點時間研究怎麼在 Linux 作業系統上寫一個 PCI Driver。寫過 Linux 驅動程式之後,覺得 Linux 的架構真的很漂亮!為了怕以後忘記怎麼寫,所以就把他寫下來記錄成一篇文章。 ###建構編譯環境 首先我們必須要準備開發 Linux 驅動程式所需的環境,在 ...
分类:
系统相关 时间:
2020-12-28 11:32:37
阅读次数:
0