- 博客(733)
- 资源 (27)
- 收藏
- 关注
原创 Matrix Arithmetic, Matrix Inverse
【代码】Matrix Arithmetic。矩阵乘法 Taking a product of two matrices is only possible if the number of columns of theleft matrix is the same as the number of rows of the right matrix.
2024-01-09 16:53:36 372
原创 configure: error: Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
下载依赖包 gmp, mpfr, mpc, isl。这下可以了,生成Makefile。
2023-12-13 16:45:13 589
原创 vim + ctags 跳转, 查看函数定义
如果要切换项目,;set tags=/home/mzh/pptp-master/tags 注释掉,再加一行用其他项目的tags。要查找get_ip_address的定义,光标移动过去。按Ctrl + ] 跳转。创建 /home/mzh/pptp-master/tags.sh。./tags.sh # 生成tags文件。再编辑 ~/.vimrc。Ctrl + t调回来。
2023-12-08 14:48:33 591
原创 tcp/ip协议 error=10022 Winsock.reg Winsock2.reg
路径:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock。按下windows键+R键,输入regedit,打开注册表,在文件目录里找到如下两个文件夹,删除这两个文件夹。这2个注册表选项千万不能删除,否则上不了网。只能从其他电脑上复制过来。
2023-11-29 21:18:57 660
原创 nasm安装 Assembler messages Error: invalid instruction suffix for `pushf‘
8 09/05 p@q.Eu 汇编语言是人类可:/ 读的最低层次的编程语言。今天,它被...;^^2oYTLdtdxH8^^打👐ÐŌÙýĨŃ搜索
2023-11-21 09:39:49 113
原创 https下载图片
封装socket fd为SSL *, 操作SSL *取代 int fd。SSL_read替换recv, SSL_write替换send。close(fd)关闭socket fd。用完SSL_free(ssl), 释放https链接。销毁SSL_CTX *ctx对象。先准备ssl需要的库, SSL_Libary_init(), 创建SSL_CTX *ctx对象。查看下载 E:\CLionProjects\arp\fap30\print\sale.jpg。bcl_xxd函数hexdump调试用。
2023-10-25 22:15:21 742
原创 dirname - return directory part of PATH.
用Visual Studio 2022开发Linux程序, 用ssh连接。函数单元测试dirname 2个test case没有跑通过。
2023-09-24 20:56:38 132
原创 Linux 链表示例 LIST_INIT LIST_INSERT_HEAD
LIST_EMPTY, LIST_ENTRY, LIST_FIRST, LIST_FOREACH, LIST_HEAD, LIST_HEAD_INITIALIZER, LIST_INIT, LIST_INSERT_AFTER, LIST_INSERT_BEFORE, LIST_INSERT_HEAD, LIST_NEXT, LIST_REMOVE - implementation of a doubly linked list
2023-09-23 14:24:18 672
原创 pthread线程同步 pthread_cond_wait, pthread_cond_signal
【代码】pthread线程同步 pthread_cond_wait, pthread_cond_signal。
2023-09-20 16:57:17 106
原创 windows Visual Studio 2022 opengl开发环境配置
动态库glew32d.dll放到bin目录下,并把E:\library\OpenGLtemplate\bin追加到path环境变量。编译完了创建目录 OpenGLtemplate/{include,lib,bin}或者把依赖的动态库放到项目编译完了.exe文件同级目录,方便发布。1. 安装glew(GL), GLFW, glm, soil2。直接修改.vcxproj文件,等效于Makefile文件。指定-I, include目录,-L库的路径。等效进入Properties配置。
2023-09-20 08:45:04 320
原创 tcpdump常用命令, wireshark打开xxx.cap
网卡eth0 经过221.231.92.240:80的流量写入到http.cap。把xxx.cap文件用sz或者winscp下载下来,用wireshark打开。抓包端口33000-33999的流量,写入33xxx.cap文件。ifconfig找到网卡名称 eth0, ens192...网卡eth0端口号33543的报文写入到33543.cap。ssh登录到主机查看渠道ssh 22端口的报文。tcpdump需要root权限。
2023-09-19 14:27:00 334
原创 根据域名找到IP地址 getipbyhostname.c, DNS Queries Answer
【代码】根据域名找到IP地址 getipbyhostname.c。
2023-09-17 18:00:06 561
原创 fatal error: linux/compiler-gcc9.h: No such file or directory
因为当前gcc版本是9.x, 找不到 compiler-gcc9.h, 复制compiler-gcc5.h成compiler-gcc9.h。
2023-09-13 18:42:18 574 1
转载 SYSTEM V Semaphores in C using semget, semctl, semop system V system calls in Linux
【代码】SYSTEM V Semaphores in C using semget, semctl, semop system V system calls in Linux。
2023-05-12 11:29:50 764
原创 Unix C调试信息输出, #define debug_error(fmt, ...)
对于daemon守护进程,不能直接printf。更新vim ctags,切换到项目代码所在目录。~/.bash_profile 配置。/* 查看调试 */
2023-03-22 09:51:43 789
原创 测试机器字节序是大端小端 little endian
用WSL连接,或者在子系统上安装net-tools, openssh, 通过ssh连接。little-endian 小端。
2023-03-11 10:47:27 776
libevent库, http-server静态文件服务器示例
2023-12-14
nasm-10.09.tar.gz
2023-11-21
windows, which命令找到.exe文件路径
2023-09-30
xxd用16进制打印文件内容,调试代码用
2023-08-23
windows Visual Studio dll动态库模板
2022-09-26
windows环境Visual studio创建静态库,项目框架
2022-09-26
PHP-TreeMap.zip
2021-08-13
DesignPatterns.zip
2020-06-22
composer.phar
2020-05-19
phalcon-stub-3.4.12.zip
2020-04-27
XhUser.vue
2020-01-15
urlGen-master.zip
2019-09-02
C++boost库 boost.zip
2019-08-21
jstat js正态分布函数库
2018-11-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人