08 2020 档案
摘要:官方示例 /* For sockaddr_in */ #include <netinet/in.h> /* For socket functions */ #include <sys/socket.h> /* For fcntl */ #include <fcntl.h> #include <eve
阅读全文
摘要:官方示例 /* For sockaddr_in */ #include <netinet/in.h> /* For socket functions */ #include <sys/socket.h> /* For fcntl */ #include <fcntl.h> #include <eve
阅读全文
摘要:在linux下开发的时候,需要对服务端监听的socket在bind之前设置SO_REUSEADDR。 int optval = 0; setsockopt(listensockfd, SOL_SOCKET, SO_REUSEADDR, (const void*)&optval, sizeof(opt
阅读全文
摘要:起因是需要做图像匹配,但是由于是手机截屏,模板图可能与截图之后的分辨率不一样,所以不能使用opencv的模板匹配,在使用feature(特征)匹配的时候,用到了"opencv2/xfeatures2d.hpp",而这个模块是opencv扩展里面的,如果想获得需要自己编译,官方提供的安装程序只有标准版
阅读全文
摘要:git commit --amend 重新提交,更改提交日志
阅读全文
摘要:有时候在clone比较大的工程时,因为一些配置限制,可能会导致报错,如下 warning: inexact rename detection was skipped due to too many files. warning: you may want to set your diff.renam
阅读全文
摘要:比如我们重装系统了,该系统是原来的管理员,那么就需要重新创建公钥私钥,并且需要替换服务器上的gitolite的密钥。做法就是: 在当前系统生成密钥 ssh-keygen -t rsa 把公钥放到服务器 scp .ssh/id_rsa.pub root@192.168.1.123:~/new.pub
阅读全文