上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: Calculate the distance from a point[x,y] to a triangle [[x1, y1], [x2, y2], [x3, y3]], points are ordered in the counter-clockwise direction. example: 阅读全文
posted @ 2021-07-03 23:06 风影旋新月 阅读(559) 评论(2) 推荐(0) 编辑
摘要: 裂开,dns解析后ping的居然不是自己的ip ipconfig /flushdns 刷新dns缓存 阅读全文
posted @ 2021-06-29 16:39 风影旋新月 阅读(139) 评论(0) 推荐(0) 编辑
摘要: ubuntu设置新用户默认使用的是sh,我们希望将默认的shell修改成bash 可以sudo vim /etc/passwd 修改用户的shell 阅读全文
posted @ 2021-06-05 10:10 风影旋新月 阅读(907) 评论(0) 推荐(0) 编辑
摘要: 1. 安装yasm wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz tar zxvf yasm-1.3.0.tar.gz #解压 cd yasm-1.3.0 #进入目录 ./configure #配置 make 阅读全文
posted @ 2021-05-29 19:33 风影旋新月 阅读(503) 评论(0) 推荐(0) 编辑
摘要: 安装mxnet-gpu版,解决在import时报错“OSError: libnccl.so.2“的问题 https://developer.nvidia.com/nccl/nccl-download 下载deb文件 安装存储库对于本地NCCL存储库:sudo dpkg -i nccl-repo-<v 阅读全文
posted @ 2021-04-26 18:43 风影旋新月 阅读(588) 评论(0) 推荐(0) 编辑
摘要: pip install opencv_python==3.4.2.16 阅读全文
posted @ 2021-04-22 15:17 风影旋新月 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 1. 常用选项 监视指定网络接口的数据包 tcpdump -i eth1 如果不指定网卡,默认tcpdump只会监视第一个网络接口,一般是eth0 -n 不显示主机名,显示ip,常用 监视指定主机的数据包 监听目的主机的数据包 tcpdump -n src host 192.168.1.2 监听源主 阅读全文
posted @ 2021-04-09 23:19 风影旋新月 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 1.获取当前时间 a. 获取系统当前的秒数和毫秒数 struct timeval tv; gettimeofday(&tv, NULL); b. 获取系统当前时间的秒数 time_t now = time(NULL) 2. 获取日历时间 a. gmtime函数返回一个struct tm time_t 阅读全文
posted @ 2021-04-07 16:14 风影旋新月 阅读(990) 评论(0) 推荐(0) 编辑
摘要: gdb安装 gdb的layout功能依赖于curses,安装curses包 https://ftp.gnu.org/pub/gnu/ncurses/ 下载gdb包,安装 http://ftp.gnu.org/gnu/gdb/gdb-10.1.tar.gz 1. G++调试相关编译选项 G++在编译时 阅读全文
posted @ 2021-04-06 22:20 风影旋新月 阅读(414) 评论(0) 推荐(0) 编辑
摘要: 1.显式转换 命名的强制类型转换:一个命名的强制类型转换具有以下形式: cast-name<type>(expression) 其中type是转换的目标类型,expression是要转换的值,如果type是引用类型,则结果是左值,cast-name是static_cast,dynamic_cast, 阅读全文
posted @ 2020-11-04 21:46 风影旋新月 阅读(642) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页