自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(738)
  • 资源 (27)
  • 收藏
  • 关注

原创 Combined GCC/Nasm programs

asm调用C fgets, scanf函数。没有debuginfo。

2024-04-21 16:15:59 107

原创 shell 封装wget,避免重复下载

【代码】shell 封装wget,避免重复下载。

2024-04-17 14:21:16 95

原创 CentOS7 firewall-cmd 防火墙 加入端口允许

能ping通,但是telnet ip port 提示。检查DNS服务器服务开启(53端口)服务端lsof -i:端口号,有输出。

2024-04-07 14:21:49 863

原创 Java PID 取得java进程编号

how can a java program get its own process id

2024-04-07 10:37:09 215

原创 Boyer Moore Algorithm, indexOf, strstr

【代码】Boyer Moore Algorithm, indexOf, strstr。

2024-04-02 08:56:54 164

原创 rbtree C语言TreeMap

所以根据"Sazid Ahmed" 找到值为200。TreeMap中放入了键值对。

2024-03-16 20:59:01 694 6

原创 Java读取XML

【代码】Java读取XML。

2024-03-05 10:47:31 1080

原创 findstr KMP grep 在文件中搜索字符串

【代码】findstr KMP grep 在文件中搜索字符串。

2024-02-25 21:51:29 367

原创 TCP发报文

【代码】TCP发报文。

2024-02-08 15:13:32 430 2

原创 dos2unix

【代码】dos2unix。

2024-01-31 14:33:08 365

原创 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 378

原创 Cramer‘s Rule, Laplace Expansion

【代码】Cramers Rule。克拉默法则

2023-12-31 14:24:02 566

原创 2D triangle area

【代码】2D triangle area。

2023-12-18 11:12:11 467

原创 libevent http-server示例

在sample目录下创建htdocs目录。http-server服务,基于libevent

2023-12-14 09:56:26 649 1

原创 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 666

原创 dijkstra 最短路径

【代码】dijkstra 最短路径。

2023-12-13 10:08:12 150

原创 计算2个向量的夹角 dot product, cross product

【代码】计算2个向量的夹角 dot product。

2023-12-11 10:46:36 398

原创 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 623

转载 derivative-of-log-x

Proof logx logarithm

2023-12-08 10:41:47 52

原创 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 692

原创 nasm安装 Assembler messages Error: invalid instruction suffix for `pushf‘

8 09/05 [email protected] 汇编语言是人类可:/ 读的最低层次的编程语言。今天,它被...;^^2oYTLdtdxH8^^打👐ÐŌÙýĨŃ搜索

2023-11-21 09:39:49 122

原创 C thread pool 线程池, C StringBuilder

【代码】C thread pool 线程池。

2023-10-30 10:02:46 169

原创 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 756

原创 广度优先遍历一个目录下的所有文件BFS

【代码】广度优先遍历一个目录下的所有文件BFS。

2023-10-09 09:08:33 432

原创 dirname - return directory part of PATH.

用Visual Studio 2022开发Linux程序, 用ssh连接。函数单元测试dirname 2个test case没有跑通过。

2023-09-24 20:56:38 135

原创 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 696

原创 pthread线程同步 pthread_cond_wait, pthread_cond_signal

【代码】pthread线程同步 pthread_cond_wait, pthread_cond_signal。

2023-09-20 16:57:17 110

原创 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 349

原创 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 353

原创 根据域名找到IP地址 getipbyhostname.c, DNS Queries Answer

【代码】根据域名找到IP地址 getipbyhostname.c。

2023-09-17 18:00:06 572

原创 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 626 1

原创 C float Memory Representation

用union验证一下。

2023-09-11 22:53:13 245

原创 xxd(hexdump),16进制打印

xxd

2023-08-24 17:02:06 123

原创 UTF-8转换为宽字符mbtowc

【代码】UTF-8转换为宽字符。

2023-07-26 15:41:24 343

原创 房贷计算器js版本

【代码】房贷计算器js版本。

2023-06-30 14:59:36 798

原创 日期格式化输出 C

【代码】日期格式化输出。

2023-05-24 09:23:21 903

转载 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 765

原创 EBCDIC ASCII 转码

【代码】EBCDIC ASCII 转码。

2023-05-08 15:39:37 974

原创 base64.c

【代码】base64.c。

2023-03-30 17:13:01 778

原创 Unix C调试信息输出, #define debug_error(fmt, ...)

对于daemon守护进程,不能直接printf。更新vim ctags,切换到项目代码所在目录。~/.bash_profile 配置。/* 查看调试 */

2023-03-22 09:51:43 791

Combined GCC/Nasm programs

编译asm汇编

2024-04-22

Assembly Language Step-By-Step - (Wiley, 2009, 0470497025).pdf

linux nasm, 汇编语言教程。Assembly Language Step-By-Step - Programming with Linux, 3rd edition (Wiley, 2009, 0470497025).pdf

2024-04-21

线性代数小抄,公式定理手册

线性代数小抄,公式定理手册

2024-04-16

C语言运算符优先级, 位运算容易搞错运算符优先级

C语言运算符优先级

2024-04-16

libevent库, http-server静态文件服务器示例

cd sample mkdir htdocs vim htdocs/index.html ./http-server -p 18080 -v htdocs curl -i http://127.0.0.1:18080/index.html

2023-12-14

nasm-10.09.tar.gz

This is the project webpage for the Netwide Assembler (NASM), an asssembler for the x86 CPU architecture portable to nearly every modern platform, and with code generation for many platforms old and new.

2023-11-21

DNS协议格式文档 DNS-primer.pdf

DNS协议格式文档 DNS-primer.pdf

2023-10-17

windows, which命令找到.exe文件路径

windows, which命令找到.exe文件路径,依赖boost库。目录迭代参考博客 https://www.cppstories.com/2019/04/dir-iterate/

2023-09-30

xxd用16进制打印文件内容,调试代码用

例如输出.png文件的内容 00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452 .PNG........IHDR 00000010: 0000 0096 0000 0096 0806 0000 003c 0171 .............<.q 00000020: e200 0000 0173 5247 4200 aece 1ce9 0000 .....sRGB....... 00000030: 0004 6741 4d41 0000 b18f 0bfc 6105 0000 ..gAMA......a... 00000040: 0009 7048 5973 0000 1274 0000 1274 01de ..pHYs...t...t.. 00000050: 661f 7800 002c 0149 4441 5478 5eed 9d07 f.x..,.IDATx^... 00000060: 5814 57db 86bf 96e4 fbf2 a718 134b d4d8 X.W..........K..

2023-08-23

错误日志库实现打印错误堆栈

错误日志库实现打印错误堆栈,解决apue中if error, 错误处理

2023-08-23

Linux C/C++发起http请求示例

Linux C/C++发起http请求, 多线程示例

2023-03-14

windows Visual Studio dll动态库模板

windows Visual Studio dll动态库模板 https://learn.microsoft.com/en-us/cpp/build/walkthrough-creating-and-using-a-dynamic-link-library-cpp?source=recommendations&view=msvc-170

2022-09-26

windows环境Visual studio创建静态库,项目框架

Walkthrough: Create and use a static library C++ windows环境创建静态库,根据教程,以后创建其他的静态库可以直接用这个项目作为框架代码,改配置。 https://learn.microsoft.com/en-US/cpp/build/walkthrough-creating-and-using-a-static-library-cpp?source=recommendations&view=msvc-170

2022-09-26

PHP分布式事务 YiMQ库

yilu-tech/yimq-laravel-sdk/src/YiMqManager.php

2022-07-13

php base64字符串图片jpeg文本文件转换为jpeg图片

php base64字符串图片jpeg文本文件转换为jpeg图片

2022-04-05

xdebug-3.1.0beta2.tgz

参照安装教程 https://xdebug.org/docs/install

2021-09-14

platform-tools_r31.0.3-linux.zip

android adb调试工具

2021-08-15

platform-tools_r31.0.3-darwin.zip

adb安卓调试命令行工具 Mac版本

2021-08-15

platform-tools_r31.0.3-windows.zip

adb 安卓调试工具

2021-08-15

PHP-TreeMap.zip

用PHP写的红黑树,带测试用例, TreeSet https://blog.csdn.net/fareast_mzh/article/details/119495318 这篇博文的完整代码

2021-08-13

PhpSearchTree.zip

https://blog.csdn.net/fareast_mzh/article/details/109709882 这篇博客的附件代码

2021-05-10

windows环境 gcc/g++ mingw64.zip

解压,把bin目录添加到path环境变量即可。这样就能找到gcc.exe, g++.exe

2021-04-01

axure chrome插件 axure_chrome_extension_V0.6.3.zip

chrome://extensions/ Load unpacked

2021-01-04

DesignPatterns.zip

抽象工厂模式,适配器模式,模板模式,策略模式。先写这几种,对接第3方api可能用到的。http://www.imooc.com/wenda/detail/418385

2020-06-22

composer.phar

安装composer每次需要从外国网站下载,速度慢。直接保存一份,下载快。创建文件composer.bat 内容如下 @php "%~dp0composer.phar" %* 把这2个文件放到跟php.exe一样的目录下,然后把这个目录加入到path环境变量,就可以用composer命令了。

2020-05-19

ThinkPHP电商微信小程序.zip

PHP写的电商小程序,前端小程序,后台接口用的thinkphp。注册微信小程序账号按照文档配置即可使用。可以用来二次开发电商。

2020-04-28

layui_admin_template.zip

layui admin 后台管理模板, 从网站抓取下来的。

2020-04-28

phalcon-stub-3.4.12.zip

phpstorm识别Phalcon语法及提示,需要的包。下载phalcon/phalcon-devtools包,php执行build之后的。phalcon是个C写的扩展,默认phpstorm没有语法提示支持。

2020-04-27

XhUser.vue

下拉选择用户 https://gitee.com/wukongcrm/72crm/blob/master/ux/src/components/CreateCom/XhUser.vue

2020-01-15

梦网短信API V5.5 接口说明.doc

梦网短信API V5.5 接口说明。接口调用代码示例,错误码说明。

2019-12-11

http接口开发文档(国内接口,含接口提交模板).doc

curl socket 调用接口发送短信的文档, 短信模板说明。

2019-11-21

phpqrcode.zip

php根据url链接生成二维码 一个通用的php库 可以把url转为二维码

2019-10-15

urlGen-master.zip

php调用接口实现短链接, 检查链接是否被微信屏蔽 http://api.ft12.com/api.php。存在安全风险,为了保障您的安全,已帮你拦截。

2019-09-02

C++boost库 boost.zip

bitcoin程序安装需要依赖的库boost 核心问题,也是比较常见的问题,原因是系统中没有安装boot库,解决方法如下: 下载 boost (http://www.boost.org/users/history/version_1_66_0.html) cd boost_1_66_0/ ./bootstrap.sh --prefix=/usr/local/ ./bjam install 注意bootstrap中的prefix参数很重要,这个直接决定后面运行的时候如果出现libboost.xxx.so找不到的解决方法

2019-08-21

district.json 中国省市县3级联动需要的数据

地区三级联动需要的数据文件 https://mp.csdn.net/postedit/89083909

2019-08-01

engine.zip

php 修改存储引擎 修改字段 验证MyISAM不支持事务回滚, 博客示例代码

2019-07-31

Redis php API

Redis php API redis.so扩展提供的phpAPI 可以参考这个手册使用PHP连接redis操作

2019-07-25

redis小抄

redis小抄 redis_cheat_sheet.pdf

2018-12-18

jstat js正态分布函数库

jstat js正态分布函数库 var NormalDistribution = require('./jstat').NormalDistribution;

2018-11-15

php 7.2 manual

php 7.2 manual php7.2手册 从官网上下载的 带有函数示例

2018-09-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除