and folders windows access
pytorch分布式训练报错:Duplicate GPU detected : rank 1 and rank 0 both on CUDA device 35000
之前使用的比较老的torch 1.8.1,换到torch 2.0后报错 "rank 1 and rank 0 both on CUDA device 35000" 将main函数开头部分的初始化 ```python distributed.init_process_group(backend='nc ......
【题解】CF1852D Miriany and Matchstick
考虑 `dp`,设 $f_{i,0/1}$ 表示考虑到前 $i$ 位,且第 $i$ 位填入 A/B 可能的答案集合,显然地朴素转移时间复杂度 $O(n^2)$。 试分析 `dp` 性质,观察发现所有 `dp` 中得到的集合为区间内抠去至多一个点。 > > 证明 > 我们首先来观察转移过程是怎样的。第 ......
Codeforces Round 837 (Div. 2) A. Hossam and Combinatorics
给一个长为 $n$ 的数组 $a$ ,统计出所有二元组 $(a_i, a_j)$ 数量,满足以下条件: * $1 \leq j view ``` #include void solve() { int n; std::cin >> n; std::vector a(n); for (int i = ......
Codeforces Round 843 (Div. 2) A2. Gardener and the Capybaras (hard version)
有三个字符串 $s_1, s_2, s_3$ ,每个字符串只有 $a, b$ 组成。三个字符串顺序连接在了一起。满足以下条件之一: * $s1 \leq s_2, s_3\leq s_2$ * $s1 \geq s_2, s_3\geq s_2$ 以上为字典序比较。 给出连接的三个字符串,输出一组可 ......
Codeforces Round 845 (Div. 2) and ByteRace 2023 B. Emordnilap
给一个长为 $n$ 的排列,对于它的每一个排列 $p$ ,复制一份并 $reverse$ 拼到原排列的后面得到 $a = \left [p, p_{reverse} \right ]$ 。 求 $p$ 的所有排列对应的 $a$ 的逆序对数之和,结果对 $1E9+7$ 取模。 **逆序对贡献**: * ......
* Codeforces Round 885 (Div. 2) A. Vika and Her Friends
给一个 $n \times m$ 的网格,每个格子对应一个坐标 $(a, b)$ 。如果存在一个各自的坐标为 $(c, d)$ 且满足 $|a - c| + |b - d| = 1$ ,则称 $(a, b)$ 与 $(c, d)$ 相邻。 给出 $k + 1$ 个点,初始坐标分别为 $(x_0, y ......
1521A - Nastia and Nearly Good Numbers
## A. Nastia and Nearly Good Numbers https://codeforces.com/problemset/problem/1521/A ```python """ 思路: 1.就是普通的打印,NO的情况是只有b=1的时候才会出现,其他的都是YES,如果不想再继续分 ......
docker 打开报错 windows hypervisor is not present docker desktop is unable to detect a hypervisor. ..........
docker desktop - windows hypervisor is not present docker desktop is unable to detect a hypervisor. hardware assisted virtualization and data executio ......
SLAMesh论文及代码阅读与思考<五>Real-time LiDAR Simultaneous Localization and Meshing
# 前言 本节重点对filterMeshGlb()函数进行理解。该函数在可视化模块中重点对全局地图中的每个栅格进行mesh的生成。一开始我的疑惑是代码是如何实现相邻cell之间的mesh连接的,这个应该具有较大的挑战性。其实,代码只考虑栅格内部的mesh的生成,全局mesh地图也就是mesh的并集, ......
Access-Control-Allow-Origin跨域解决及详细介绍
【Access-Control-Allow-Origin跨域解决及详细介绍】 https://blog.csdn.net/MicroAnswer/article/details/102913571 【原因:CORS 头缺少 ‘Access-Control-Allow-Origin’ 解决办法】 ht ......
The Riordan Group and Applications 第1章 笔记
2022年的一本书,只有376页。证明直接去书里面找。 [TOC] # 1 介绍 ## 1.1 啥是RiordanArray ## 1.2 起源和研究动机 ## 1.3 基础的应用 $$ \mathfrak{B}_r=\sum_{n \geq 0} \frac{1}{(r-1) n+1}\left( ......
Windows 官方提供的触屏硬件延迟测量方法
本文记录微软 Windows 官方在 Windows Hardware Lab Kit 提供的触屏硬件延迟测量方法 [Overview of measuring Touch Down Hardware Latency - Microsoft Learn](https://learn.microsof ......
WinUI 3 修复非打包应用运行提示缺少 Windows App Runtime 环境
本文将告诉大家如何修复 WinUI 3 非打包的应用,在分发给到客户时,在客户的机器上运行提示缺少 Windows App Runtime 环境 在用户的机器上提示的 Windows App Runtime 环境缺失的提示内容大概如下 > This application requires the ......
WPF 项目文件不加 -windows 的引用 WPF 框架方式
默认情况下的 WPF 项目都是带 -windows 的 TargetFramework 方式,但有一些项目是不期望加上 -windows 做平台限制的,本文将介绍如何实现不添加 -windows 而引用 WPF 框架 先看一个标准的 WPF 项目的 csproj 项目文件内容 ```xml WinE ......
Windows 时钟同步
## 问题引入 很多程序涉及到时间对齐、时间有序,主机和主机之间的时间差变大(即累计误差)会导致程序中的数据无法正确获取。 📌 **查看时间差网页:`https://time.is/`** ![](https://img2023.cnblogs.com/blog/2823710/202309/28 ......
Windows MSVC 编译 libcurl 库,并导入到 QT 中
#### 前提 QT 已经配置好,编译器使用 MSVC2017 #### 编译 libcurl 库 ##### 1、下载 [curl官网下载](https://curl.se/download.html),windows 选择`.zip`后缀的文件 ![image](https://img2023. ......
windows 下 go 使用
https://www.codenong.com/16492121/ 关于go:在cgo中使用Windows库 https://www.cnblogs.com/Kingram/p/12088087.html Golang编写Windows动态链接库(DLL)及C调用范例 一、准备。 1、GoLang ......
Window命令笔记
#####查看系统信息Ctrl+R: `msinfo32` ![](https://img2023.cnblogs.com/blog/1151397/202309/1151397-20230905101134372-1733536107.png) #####关于Window `winver` ![] ......
Fixing Missing Windows App Runtime Environment Prompt for Unpackaged WinUI 3 Applications
This article will tell you how to fix the prompt for a missing Windows App Runtime environment when running non-packaged WinUI 3 applications on a cus ......
Proj CDeepFuzz Paper Reading: Differential Testing of Cross Deep Learning Framework APIs: Revealing Inconsistencies and Vulnerabilities
## Abstract 背景:目前对cross-framework conversion中的inconsistencies和security bugs的研究少有 本文:TensorScope Task: test cross-frame APIs in Machine Learning Librar ......
不关闭Tamper Protection(篡改保护)下强制卸载Windows Defender和安全中心所有组件
个人博客: [xzajyjs.cn](https://xzajyjs.cn/) # 背景介绍 由于微软不再更新arm版本的win10系统,因此只能通过安装insider preview的镜像来使用。而能找到的win10 on arm最新版镜像在安装之后由于内核版本过期,无法打开Windows安全中心 ......
windows设置环境变量-程序os.Getenv可以读取得到
one-api是将多个大模型统一转换成兼容openai接口的形式。 在搭建one-api项目时,需要通过环境变量设置MySQL数据库的连接信息 在 Golang 中,os.Getenv 函数用于获取环境变量的值。在 Windows 操作系统上设置环境变量,可以通过以下步骤进行: 通过编辑系统环境变量 ......
css: SVG and CSS
https://developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/SVG_and_CSS 两种方式的CSS SVGCSS: /*** SVG demonstration ***/ /* page */ svg { background-color: ......
SLAMesh论文及代码阅读与思考<四>Real-time LiDAR Simultaneous Localization and Meshing
# 前言 本节继续对update()函数进行理解。update是将当前点云对应的map_now对全局地图map_glb进行更新。 ## 获取重叠的区域 `OverlapCellsRelation overlap_ship = map_now.overlapCells(*this);` ```c++ ......
Redis-cluster windows搭建
一、Redis cluster 搭建步骤 1、Buby环境搭建以及Redis安装 zlib安装 i. 下载地址:http://zlib.net/ ii. tar xf zlib-1.2.11.tar.gz –C /usr/local/src iii. cd /usr/local/src/zlib-1 ......
ELK-windows搭建笔记
一、 介绍 Elasticsearch :开源分布式搜索引擎,它的特点有:分布式,零配置,自动发现,索引自动分片,索引副本机制,restful风格接口,多数据源,自动搜索负载等。 Logstash: 对你的日志进行收集、过滤,并将其存储供以后使用(如,搜索)。 Kibana: 以为 Logstash ......
windows驱动配置
(一)C/C++属性设置1. 添加包含文件 "$(WDK)\inc\crt";"$(WDK)\inc\api";"$(WDK)\inc\ddk" 2. 设置目标平台 Preprocessor: _X86_ 3. 修改调用约定为 __stdcall (/Gz) 4. 运行时库选择多线程调试(MTd)或 ......
B. Fedor and New Game
## B. Fedor and New Game https://codeforces.com/problemset/problem/467/B ```python """ 467B 思路: 1.暴力方法: 通过循环二进制之后的,逐个位与fedor进行判断,通过取余,如果最后不同的超过3个就计+1 ......
Nessus漏扫工具的安装与使用(Windows与Linux)
Nessus工具介绍 Nessus号称是世界上最流行的漏洞扫描程序,而且它开源,全世界有超过75000个组织在使用它。该工具提供完整的电脑漏洞扫描服务,并随时更新其漏洞数据库。Nessus不同于传统的漏洞扫描软件,Nessus可同时在本机或远端上遥控,进行系统的漏洞分析扫描。Nessus也是渗透测试 ......