2024年4月5日

Running the installer as administrator is disabled by default, see https://github.com/ScoopInstaller/Install#for-admin for details.

摘要: 在windows安装scoops提示 网上找到解决办法 安装失败 - 安装 scoop 失败:“默认情况下,以管理员身份运行安装程序处于禁用状态,请参阅 https://github.com/ScoopInstaller/Install#for-admin” - 堆栈溢出 failed instal 阅读全文

posted @ 2024-04-05 09:44 风中狂笑 阅读(416) 评论(0) 推荐(0) 编辑

2024年3月8日

latex的基本用法

摘要: \documentclass[fontset=windows]{article} \usepackage[margin=1in]{geometry}%设置边距,符合Word设定 \usepackage{ctex} \usepackage{setspace} \usepackage{lipsum} \ 阅读全文

posted @ 2024-03-08 11:04 风中狂笑 阅读(25) 评论(0) 推荐(0) 编辑

matlab如何调用python

摘要: 从 MATLAB 访问 Python 模块 - 快速入门 - MATLAB & Simulink - MathWorks 中国 我的是matlab r2023b python3.11 已经安装了python的engine 然后在matlab中输入命令>pyenv 阅读全文

posted @ 2024-03-08 09:12 风中狂笑 阅读(8) 评论(0) 推荐(0) 编辑

2024年3月7日

vscode 的sync的问题RequestFailed (UserDataSyncError) syncResource:unknown operationId:unknown: Connection refused for the request

摘要: 024-03-07 08:58:24.361 [error] RequestFailed (UserDataSyncError) syncResource:unknown operationId:unknown: Connection refused for the request 'https:/ 阅读全文

posted @ 2024-03-07 09:32 风中狂笑 阅读(100) 评论(0) 推荐(0) 编辑

2024年3月6日

gitee使用

摘要: 可以在本地建一个目录 在gitee建立一个仓库,建立完仓库之后gitee很温馨地给了如何使用git绑定仓库的命令,别忘了看 然后本地使用git 命令 1、>git init 2、>git remote add origin git@gitee.com:your_name/your_repo.git 阅读全文

posted @ 2024-03-06 10:17 风中狂笑 阅读(6) 评论(0) 推荐(0) 编辑

2024年3月5日

comsol安装

摘要: 1. Mount COMSOL DVD into virtual DVD drive and start installation with setup.exe 可以解压缩或者mount iso文件 2. Select "_SolidSQUAD_\LMCOMSOL_Multiphysics_SSQ. 阅读全文

posted @ 2024-03-05 09:33 风中狂笑 阅读(38) 评论(0) 推荐(0) 编辑

2024年3月4日

vscode+matlab+python

摘要: 用官方的就行,因为官方这个v1.2.0就可以在vscode里调用matlab了,效果如下 似乎还要装一个这个,也许官方一个插件就搞定了,但这边还有点小问题 以下插件都没屌用 如何在vscode中编写matlab代码 Versions of Python Compatible with MATLAB 阅读全文

posted @ 2024-03-04 07:24 风中狂笑 阅读(94) 评论(0) 推荐(0) 编辑

2024年2月20日

windows安装jupyter

摘要: 从零开始!Jupyter Notebook的安装教程(附带pip和Python的安装教程)_jupyter notebook pip install-CSDN博客 以及环境变量的设置 如果提示jupyter command not found则需要搜索jupyter.exe的文件夹所在路径,将其添加 阅读全文

posted @ 2024-02-20 09:14 风中狂笑 阅读(3) 评论(0) 推荐(0) 编辑

2024年1月25日

overleaf 的vim模式开启

摘要: cn.overleaf.com 在左上角的“菜单”选项卡>组合键>vim enjoy 阅读全文

posted @ 2024-01-25 08:46 风中狂笑 阅读(49) 评论(1) 推荐(0) 编辑

2024年1月24日

win11 alt+tab显示图标或缩略图

摘要: ### 在win11版本中调出老版本(Win7)ALT+TAB的方法 1、win+r调出运行窗口; 2、输入regedit,回车进入注册表编辑器; 3、转到HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Explore 阅读全文

posted @ 2024-01-24 16:16 风中狂笑 阅读(297) 评论(0) 推荐(0) 编辑

2024年1月17日

numpy读dat文件

摘要: # def read_nodes_from_dat(file_path): # nodes={} # with open(file_path, 'r') as file: # for line in file: # # 假设每行的数据都是以空格分隔的 # data = line.split() # 阅读全文

posted @ 2024-01-17 14:19 风中狂笑 阅读(44) 评论(0) 推荐(0) 编辑

2023年12月27日

windows+nasm+vscode

摘要: Step 2: Install a Compiler and Assembler — BilimEdtech Labs documentation 阅读全文

posted @ 2023-12-27 16:50 风中狂笑 阅读(43) 评论(0) 推荐(0) 编辑

2023年12月22日

mfc-消息映射-菜单和工具栏Menu and Toolbar

摘要: 注意:menu和toolbar的某一项可以使用相同的ID,这样绑定的是同一个函数 首先是建立一个mfc,选择 注意使用next,而不是直接finish,在advanced features中advanced frame panes应该都取消勾选,现在这里是默认没有勾选,如果没有的话,就要手动取消一下 阅读全文

posted @ 2023-12-22 16:20 风中狂笑 阅读(29) 评论(0) 推荐(0) 编辑

2023年12月21日

mfc中tabsheet

摘要: // TabSheet.cpp : implementation file // #include "stdafx.h" #include "pch.h" //#include "Property5.h" #include "TabSheet.h" #ifdef _DEBUG #define new 阅读全文

posted @ 2023-12-21 11:36 风中狂笑 阅读(13) 评论(0) 推荐(0) 编辑

2023年12月15日

腾讯轻量级服务器+xshell+docker+trilium

摘要: ubuntu22.04开放22端口 - CSDN文库 主要目的是在ubuntu远程服务器上安装一个trilium的服务端 通过 Docker 配置服务器端 Trilium - 知乎 (zhihu.com) Server installation · zadam/trilium Wiki (githu 阅读全文

posted @ 2023-12-15 09:36 风中狂笑 阅读(31) 评论(0) 推荐(0) 编辑

2023年12月14日

vs2022 vim配置

摘要: " Add your own customizations in ~/.vim_runtime/my_configs.vim" set runtimepath+=~/.vim_runtime" source ~/.vim_runtime/vimrcs/basic.vim" source ~/.vim 阅读全文

posted @ 2023-12-14 10:03 风中狂笑 阅读(299) 评论(0) 推荐(0) 编辑

[good]visual studio 2022 创建空的win32程序

摘要: 05_MFC窗口的创建_哔哩哔哩_bilibili 参考这个 VS创建空的Win32程序 - fenggwsx - 博客园 (cnblogs.com) 修改subsystem项 编译运行 测试代码 #include <windows.h> int winapi winmain(hinstance h 阅读全文

posted @ 2023-12-14 09:50 风中狂笑 阅读(118) 评论(0) 推荐(0) 编辑

2023年12月11日

[good]vscode中qt环境配置包括qt和cmake安装

摘要: 具体参考这篇帖子VsCode+QT5.14.2安装部署详细教程_vscode配置qt-CSDN博客 以下是自己按照这贴的安装步骤及细节,qt和cmake的具体安装过程见文末,后面有问题再修改,但基本上问题不大 安装完qt之后需要配置三个环境变量,和关于cmake的环境变量,注意是系统变量中的Path 阅读全文

posted @ 2023-12-11 15:07 风中狂笑 阅读(620) 评论(0) 推荐(0) 编辑

2023年12月6日

[good]vscode编译多个c源文件

摘要: windows上实现vscode编译多个c源文件 - 知乎 (zhihu.com) 1、建立bin/doc/inc/app/src等目录 2、bin目录用来存放生成的exe文件,doc用来存放帮助文档,inc用来存放*.h文件,app用来存放主程序main.c,src用来存放*.c文件 3、修改la 阅读全文

posted @ 2023-12-06 18:04 风中狂笑 阅读(45) 评论(0) 推荐(0) 编辑

libmodbus使用-windows

摘要: 如何在mingw环境下使用libmodbus库_哔哩哔哩_bilibili 1、打开mysw 运行 >pacman -S autoconf-wrapper 2、进入libmodubus目录 运行 >./configure 阅读全文

posted @ 2023-12-06 13:57 风中狂笑 阅读(151) 评论(0) 推荐(0) 编辑

2023年12月5日

[good]串口读取

摘要: #include <stdio.h> #include <stdlib.h> #include <math.h> #include <limits.h> #include <string.h> #include <windows.h> #include "serialport.h" int main 阅读全文

posted @ 2023-12-05 10:16 风中狂笑 阅读(9) 评论(0) 推荐(0) 编辑

2023年12月1日

[good]c语言中各种类型

摘要: #include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdarg.h> #include <assert.h> #include <math.h> #include <time.h> #include <limit 阅读全文

posted @ 2023-12-01 09:06 风中狂笑 阅读(4) 评论(0) 推荐(0) 编辑

2023年11月30日

虚拟串口工具vspd

摘要: 『实用教程』VSPD虚拟串口工具——从此告别硬件串口调试_虚拟串口vspd-CSDN博客 笔记本上没串口,利用虚拟串口软件VSPD和串口调试助手,目的是通过C++程序完成串口通信,但是只能实现Write操作,不能实现Read操作,附上源代码求大佬指点-CSDN社区 这里注意,我使用17和18无法打开 阅读全文

posted @ 2023-11-30 15:33 风中狂笑 阅读(200) 评论(0) 推荐(0) 编辑

[good]enum

摘要: typedef enum{ Reg_Set_Speed = 100, // 100 Reg_Set_Enable_VSP, // 101 Reg_Set_Dir, // 102 Reg_Force_Stop} Modbus_Holding_Registors; 这是一个C语言中的`enum`(枚举) 阅读全文

posted @ 2023-11-30 14:40 风中狂笑 阅读(4) 评论(0) 推荐(0) 编辑

[good]数据类型

摘要: `uint`是一种无符号整数类型,它的全称是"unsigned int"。这种类型可以表示从0到某个正数的值。具体能表示的最大值取决于实现,但在大多数现代系统上,`uint`通常是32位的,可以表示的最大值是4294967295。 与此相比,`uint8_t`和`uint32_t`是固定宽度的整数类 阅读全文

posted @ 2023-11-30 14:36 风中狂笑 阅读(15) 评论(0) 推荐(0) 编辑

[good]union

摘要: typedef union { uint16_t word; struct { uint8_t low; uint8_t high; } byte; struct { uint8_t bit0 : 1; uint8_t bit1 : 1; uint8_t bit2 : 1; uint8_t bit3 阅读全文

posted @ 2023-11-30 14:33 风中狂笑 阅读(2) 评论(0) 推荐(0) 编辑

staic使用

摘要: 在C语言中,使用`static`关键字修饰的函数或变量只能在定义它们的源文件中使用。这种限制被称为“文件作用域”或“静态作用域”。 当你在一个源文件中定义一个`static`函数,这个函数只能在这个源文件中被调用,不能在其他源文件中被调用。这可以帮助你隐藏实现细节,防止其他源文件误用你的函数。 同样 阅读全文

posted @ 2023-11-30 11:21 风中狂笑 阅读(7) 评论(0) 推荐(0) 编辑

2023年11月29日

[good]c语言函数指针的运用

摘要: #include <stdio.h> #define MAX 10 void swap(int *x, int *y) { int temp; temp = *x; *x = *y; *y = temp; } void fun(int *height, int *age) { int n = 10; 阅读全文

posted @ 2023-11-29 09:55 风中狂笑 阅读(3) 评论(0) 推荐(0) 编辑

[good]c语言数组的运算

摘要: #include <stdio.h> #include <stdlib.h> #include <time.h> #define MAX 10 int **createRandom2DArray(int rows, int cols) { srand(time(NULL)); // 初始化随机数生成 阅读全文

posted @ 2023-11-29 09:53 风中狂笑 阅读(5) 评论(0) 推荐(0) 编辑

2023年11月28日

c语言中函数指针用法

摘要: #include <stdio.h> #define MAX 10 void swap(int *x, int *y) { int temp; temp = *x; *x = *y; *y = temp; } void fun(int *height, int *age) { int n = 10; 阅读全文

posted @ 2023-11-28 09:36 风中狂笑 阅读(1) 评论(0) 推荐(0) 编辑

使用动态方式创建1D和2D矩阵

摘要: int *create1DArray(int size) { int i; int *arr = (int *)(malloc(sizeof(int) * size)); for (i = 0; i < size; i++) { arr[i] = i * i; } return arr; } int 阅读全文

posted @ 2023-11-28 09:33 风中狂笑 阅读(14) 评论(0) 推荐(0) 编辑

2023年11月27日

c语言中向函数传递二维矩阵的方法

摘要: 在C语言中,向函数传递二维数组有几种方式,这主要取决于二维数组的大小是否已知。下面是几种常见的方式: 1)如果二维数组的大小已知,那么你可以在函数参数中直接指定数组的大小。例如: void func(int arr[10][10]) { ... } 在这个例子中,func函数接受一个10x10的二维 阅读全文

posted @ 2023-11-27 14:05 风中狂笑 阅读(264) 评论(0) 推荐(0) 编辑

c语言

摘要: /* * @Author: huanjiang-lab vibration@zju.edu.cn * @Date: 2023-11-10 13:51:34 * @LastEditors: huanjiang-lab vibration@zju.edu.cn * @LastEditTime: 2023 阅读全文

posted @ 2023-11-27 09:56 风中狂笑 阅读(1) 评论(0) 推荐(0) 编辑

2023年11月24日

c语言中的指针用法

摘要: 1、指向函数的指针 在C语言中,函数名实际上是一个指向函数的指针,所以你可以直接使用函数名add来初始化函数指针,而不需要使用&add。在这种情况下,add和&add是等价的。 这是因为在C语言中,函数名是函数的入口地址的别名。当你使用函数名时,你实际上获取的是函数的入口地址。这就是为什么你可以直接 阅读全文

posted @ 2023-11-24 16:43 风中狂笑 阅读(7) 评论(0) 推荐(0) 编辑

2023年11月22日

[good]c语言读取文件中的数据到结构体和数组

摘要: #include <stdio.h> #include <string.h> #include <stdlib.h> #define BUF_SIZE 100 #define MAX_SIZE 100 // #define ROWS(arr) (sizeof(arr) / sizeof((arr)[ 阅读全文

posted @ 2023-11-22 16:36 风中狂笑 阅读(183) 评论(0) 推荐(0) 编辑

2023年10月28日

PROTEUS7.8INSTALL

摘要: 阅读全文

posted @ 2023-10-28 20:42 风中狂笑 阅读(10) 评论(0) 推荐(0) 编辑

2023年10月27日

51单片机-定时器-proteus仿真

摘要: 这是代码 #include "reg51.h" #define u16 unsigned int #define u8 unsigned char #define FOSC 11059200L #define BAUD 9600 #define T0MS (65536 - 1 * FOSC / 12 阅读全文

posted @ 2023-10-27 10:23 风中狂笑 阅读(156) 评论(0) 推荐(0) 编辑

2023年10月19日

kei5安装

摘要: 安装视频【避坑】Keil 5下载安装激活到2032年(含MDK、C51、STM32单片机)_哔哩哔哩_bilibili 1、mdk514安装 2、pack安装 3、然后重新打开keil5,用c51激活 阅读全文

posted @ 2023-10-19 16:21 风中狂笑 阅读(18) 评论(0) 推荐(0) 编辑

kei4安装

摘要: 安装比较简单,安装完成之后,打开软件 复制这个 激活成功,有效期到2032年 阅读全文

posted @ 2023-10-19 10:33 风中狂笑 阅读(9) 评论(0) 推荐(0) 编辑

2023年10月18日

虚拟串口VSPD

摘要: 虚拟串口软件VSPD下载安装及使用 包含XCOM串口调试软件_vspd.exe-CSDN博客 下载地址阿里云盘分享 (aliyundrive.com) 阅读全文

posted @ 2023-10-18 10:40 风中狂笑 阅读(13) 评论(0) 推荐(0) 编辑

导航