vectors-dot-product /https://www.mathsisfun.com/algebra/vectors-dot-product.html/ functionVector3(x,y,z){ this.x=x; this.y=y; this.z=z; } Vector3.prototype.magnitude=function(){ returnMath.sqrt(this.xthis.x+this.ythis.y+this.zthis.z); }; Vector3.dotProduct=function(/Vector3/a,/Vector3/b){ ...

  YdBLJug1piQU   2023年12月22日   29   0   0 Math数学建模数学建模Mathhtmlhtml

tcp/ip协议error=10022 这2个注册表选项千万不能删除,否则上不了网。 按下windows键+R键,输入regedit,打开注册表,在文件目录里找到如下两个文件夹,删除这两个文件夹。 路径:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Winsock2 只能从其他电脑上复制过来    Winsock.reg WindowsRegistryEditorVersion5.00 ...

yuminstallctags Packagectags-5.8-13.el7.x86_64alreadyinstalledandlatestversion 创建/home/mzh/pptp-master/tags.sh !/usr/bin/sh WORKDIR=/home/mzh/pptp-master find${WORKDIR}-name".[c|h]"|xargsctags-f${WORKDIR}/tags find/usr/include-name".h"|xargsctags-a${WORKDIR}/tags cd /home/mzh/pptp-master/ ...

  YdBLJug1piQU   2023年12月10日   17   0   0 linux编辑器vimvimlinux编辑器

derivative-of-log-x DerivativeoflogxProofbyFirstPrincipleWewillprovethatd/dx(logₐx)=1/(xlna)usingthefirstprinciple(definitionofthederivative). Proof: Letusassumethatf(x)=logₐx. Byfirstprinciple,thederivativeofafunctionf(x)(whichisdenotedbyf'(x))isgivenbythelimit, f'(x)=limₕ→₀[f(x+h)f(x)]/hSincef(x...

  YdBLJug1piQU   2023年12月10日   13   0   0 ideci算法算法ciide

 tpool.h //https://nachtimwald.com/2019/04/12/thread-pool-in-c/ ifndefARP_TEST_TPOOL_H defineARP_TEST_TPOOL_H ifndefsize_t typedefunsignedlongsize_t; endif ifndefbool typedefintbool; endif structtpool; typedefstructtpooltpool_t; typedefvoid(thread_func_t)(voidarg); tpool_ttpool_create(s...

SIMPLEQ_INSERT_TAIL breadth-first-search main.c include<stdio.h> include<string.h> include"dir_tree.h" voidfn_path(charpath,voidparam){ printf("%s\n",path); } intmain(){ charpath[256]; strncpy(path,"/mnt/e/CLionProjects/tree",256); /@ref:https://www.geeksforgeeks.org/breadth-first-...

xxd.h ifndefANALYZER_XXD_H defineANALYZER_XXD_H ifdef__cplusplus extern"C"{ endif include<stdlib.h>/getenv/ typedefunsignedcharbyte; typedefunsignedcharuint8_t; typedefunsignedshortuint16_t; typedefvoid(sFn_t)(bytes,uint8_tlen,voidpn); /log文件大于1M之后改名为debug.log-bak,重新写入debug.log/ definebc...

用VisualStudio2022开发Linux程序,用ssh连接 函数单元测试  下载glibc解压到E:\library\GNU\glibc-2.38 mzh@DESKTOP-GITL67P:$sudo/etc/init.d/sshstart StartingOpenBSDSecureShellserversshd                     ...

  YdBLJug1piQU   2023年11月02日   17   0   0 服务器运维#includelinuxbc

1.安装glew(GL),GLFW,glm, soil2-debug 还需要premake生成visualstudiosolution cmake forwindows也要安装一个,但是不用安装MinGW64,bug多 下载源码,找到xxx.sln文件用visualstidio打开solution编译代码,找到xxx.lib,xxx.dll文件 include头文件结构:    编译完了创建目录 OpenGLtemplate/{include,lib,bin} 动态库glew32d.dll放到bin目录下,并把E:\librar...

  YdBLJug1piQU   2023年11月02日   37   0   0 ico2dwindowsWin32

需要安装 tcpdump wireshark ifconfig找到网卡名称eth0,ens192...  tcpdump需要root权限 网卡eth0经过221.231.92.240:80的流量写入到http.cap tcpdump-ieth0host221.231.92.240andport80-vvv-whttp.cap ssh登录到主机查看排除ssh22端口的报文 tcpdump-iens192portnot22 抓包端口33000-33999的流量,写入33xxx.cap文件  tcpdump-iens192portrange33000-33999-v...

  YdBLJug1piQU   2023年11月02日   29   0   0 linuxroot权限抓包网络tcpdump

 getipbyhostname.c include<netdb.h>/gethostbyname/ include<time.h>/time_t,localtime/ include<errno.h>/errno/ include<netinet/in.h>/structin_addr/ include<arpa/inet.h>/inet_ntoa/ include<string.h>/strncpy/ include<stdarg.h>/va_start,va_end/ include<...

  YdBLJug1piQU   2023年11月02日   23   0   0 tcp/ip#include#define网络协议c语言

2个线程,1个打印字母A-Z,另一个打印1-26要求交替打印A1B2C3...Z26 代码结构: main.c // //2个线程,1个打印字母A-Z,另一个打印1-26要求交替打印A1B2C3...Z26 // include<stdio.h> include<pthread.h> ifndefNULL defineNULL(void)0 endif ifndefbool typedefintbool; endif ifndeftrue definetrue1 endif ifndeffalse definefalse0 endif typedefvoid...

  YdBLJug1piQU   2023年11月02日   16   0   0 CL#includethread线程同步c语言

list(3)—Linuxmanualpage 用VisualStudio2022创建CMake项目 CmakeLists.txt CMakeList.txt:Top-levelCMakeprojectfile,doglobalconfiguration andincludesub-projectshere. cmake_minimum_required(VERSION3.12) project("llist") Includesub-projects. add_subdirectory("llist") llist/CMakeLists.txt CMakeList.txt:C...

  YdBLJug1piQU   2023年11月02日   25   0   0 服务器linux#include#define运维
关注 更多

空空如也 ~ ~

粉丝 更多

空空如也 ~ ~