2024年5月22日

摘要: 方法一、将github上demo的html文件链接复制到,打开下面网址后出现的输入栏中,点击按钮即可。 http://htmlpreview.github.io/ 方法二、在HTML文件的地址前面加上htmlpreview.github.io/? 比如 http://htmlpreview.gith 阅读全文
posted @ 2024-05-22 17:05 tycoon3 阅读(38) 评论(0) 推荐(0) 编辑

2024年5月20日

摘要: [ 55.732900] module: x86/modules: Skipping invalid relocation target, existing value is nonzero for type 1, loc 0000000095d22a08, val ffffffffc07aa525 阅读全文
posted @ 2024-05-20 11:09 tycoon3 阅读(31) 评论(0) 推荐(0) 编辑

2024年3月28日

摘要: 采用ie浏览器打开DownGit,不用google https://minhaskamal.github.io/DownGit/#/home 阅读全文
posted @ 2024-03-28 16:36 tycoon3 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 子模块的添加添加子模块非常简单,命令如下: git submodule add <url> <path> 其中,url为子模块的路径,path为该子模块存储的目录路径。 执行成功后,git status会看到项目中修改了.gitmodules,并增加了一个新文件(为刚刚添加的路径) git diff 阅读全文
posted @ 2024-03-28 15:28 tycoon3 阅读(90) 评论(0) 推荐(0) 编辑

2023年11月23日

摘要: 添加 if(setsockopt(sock_fd, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(int))<0) { perror("setsockopt() reuse"); goto err1; } 添加SO_REUSEADDR之后 connect(): Can 阅读全文
posted @ 2023-11-23 09:53 tycoon3 阅读(15) 评论(0) 推荐(0) 编辑

2023年11月15日

摘要: [root@centos7 dpdk-19.11]# ip n | grep 'fe80::4a57:2ff:fe64:e7ae' fe80::4a57:2ff:fe64:e7ae dev enp5s0 FAILED [root@centos7 dpdk-19.11]# ping6 fe80::4a 阅读全文
posted @ 2023-11-15 15:53 tycoon3 阅读(45) 评论(0) 推荐(0) 编辑

2023年11月14日

摘要: 1.unindent does not match any outer indentation level 原因是文件中包含了tab和空格的混合解决方法:全部使用空格。将 tabstop 和 shiftwidth 设置成相同的值,如 4,并设置 expandtab。这样新增的缩进会用空格,你按下 t 阅读全文
posted @ 2023-11-14 09:54 tycoon3 阅读(13) 评论(0) 推荐(0) 编辑
摘要: sysctl -a | grep ipv6 | grep disable net.ipv6.conf.enahisic2i0.disable_ipv6 = 0net.ipv6.conf.enahisic2i0.disable_policy = 0net.ipv6.conf.enahisic2i1.d 阅读全文
posted @ 2023-11-14 09:53 tycoon3 阅读(13) 评论(0) 推荐(0) 编辑

2023年10月14日

摘要: 可以使用gcc提供的内置函数__atomic_load_n()来原子地一次性读取多个变量的值。该函数使用了GCC内置的原子操作,可以保证在不被中断的情况下完成读取。 以下是一个示例代码,读取三个整数变量a、b和c的值: #include <stdio.h> #include <stdatomic.h 阅读全文
posted @ 2023-10-14 11:44 tycoon3 阅读(893) 评论(0) 推荐(0) 编辑

2023年10月9日

摘要: 解决 使用Git LFS 在官网 https://git-lfs.github.com/ 下载git-lfs-windows-v2.8.0.exe并安装。 新开一个bash命令行输入git lfs install安装 跟踪你要push的大文件git lfs track "*.h5",这时会生成一个. 阅读全文
posted @ 2023-10-09 11:53 tycoon3 阅读(448) 评论(0) 推荐(0) 编辑

导航