morning four the in

Installing the NVIDIA Container Toolkit 容器配置GPU

网上的帖子都比较旧了,这是最新官方地址: https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html 注意:除了安装,还有配置,不是说安装上就完事 都弄好之后,就可以docke ......
容器 Installing Container Toolkit NVIDIA

Go - two bcrypt hashes of the same password are NOT equal

package main import ( "fmt" "golang.org/x/crypto/bcrypt" ) func main() { password := "abcdef" hashedPassword1, _ := bcrypt.GenerateFromPassword([]byte ......
password bcrypt hashes equal same

centos 8 Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs in mirrorlist

查询后发现问题的原因是Centos8于2021年年底停止了服务,我们在使用yum源安装时候,出现下面错误“错误:Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs ......

2023 最新绿源 D-S70 电动自行车评测 All In One

2023 最新绿源 D-S70 电动自行车评测 All In One 绿源 D-S70 电动自行车踩坑经历 上海 ......
自行车 2023 D-S All One

Scope api1 not found in store. IdentityServer4.Validation.TokenRequestValidator: Error: Invalid scopes requested

看明白了这个报错,说是scope api在授权服务器没有定义,但是一直不知道哪出错,我寻思也定义了这个资源来着 但其实并没有,说的是scope不是说的resource,所以需要再定义一个Scope ......

Detecting Unknown Encrypted Malicious Traffic in Real Time via Flow Interaction Graph Analysis

1 前言 1.1 标题 Detecting Unknown Encrypted Malicious Traffic in Real Time via Flow Interaction Graph Analysis 1.2 摘要 为了保护网络的机密性和隐私性,目前互联网上的流量被广泛地加密。然而,流量 ......

uva101The Blocks Problem

原题链接The Blocks Problem - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 一道模拟题。(水题) 但模拟过程很有意思,怎么样才能用最短的代码完成所有操作,使代码更简洁是很考验技术的。 #include<bits/stdc++.h> using namespace ......
Problem Blocks uva 101 The

uva12096集合栈计算机 The SetStack Computer

洛谷链接集合栈计算机 The SetStack Computer - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 一道典型的以栈为背景的数据结构题。题目简单但是程序却并不简单(个人观点)。普及组的难度有点低了感觉。 个人认为这道题目可以帮助自己熟悉或者说更好的掌握STL的使用以及妙 ......
SetStack Computer 计算机 12096 uva

ansible 报错 "changed": false, "msg": "Failed to connect to the host

报错: "changed": false, "msg": "Failed to connect to the host via ssh: root@node1: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)." ......
quot ansible changed connect Failed

Run sql server in docker

Pull docker image Pull the latest image of SQL Server 2022 docker pull mcr.microsoft.com/mssql/server:2022-latest Run in container docker run -e "ACCE ......
server docker Run sql in

[LeetCode] 2264. Largest 3-Same-Digit Number in String

You are given a string num representing a large integer. An integer is good if it meets the following conditions: It is a substring of num with length ......
Same-Digit LeetCode Largest Number String

The 2023 ICPC Asia Hong Kong Regional Programming Contest (AEFHKL)

在考试周打比赛就像在刀尖上跳舞,在赌桌上下筹码 我只希望专业课它别挂 不然搞钱吃饭就麻烦了 A.TreeScript 学弟写的,阅读理解题,读对了就是简单树dp #include<bits/stdc++.h> using namespace std; const int N=2e5; int n,f ......
Programming Regional Contest AEFHKL 2023

The 13th Shandong ICPC Provincial Collegiate Programming Contest

A. Orders 按照订单的结束时间排序,然后遍历一遍即可 #include<bits/stdc++.h> using namespace std; #define int long long using pii = pair<int, int>; using i32 = int32_t; voi ......

2023ICCV_FSI Frequency and Spatial Interactive Learning for Image Restoration in Under-Display Cameras

三. Network 1. 2. FLB: 没看懂是怎么分离的水平和竖直方向 3. SLB:每一层保留一半的通道特征用于细化,其余的在特征重构后输出(没看懂)。 Multi-distillation Network 超分辨网络的Multi-distillation Network(2019ACMMM ......

电动车以旧换新,如何计算旧电瓶的折价 All In One

电动车以旧换新,如何计算旧电瓶的折价 All In One 电动车更换电瓶,旧电瓶到底值多少钱? ......
电瓶 电动车 All One In

Mysql: [HY000][1093] You can't specify target table 'dupes' for update in FROM clause

错误原因 在同一语句中。不能先SELECT出同一表的某些值,在Update这个表 实例 错误实例 DELETE FROM dupes WHERE id NOT IN (SELECT MIN(id) FROM dupes GROUP BY name) 正确实例 DELETE FROM dupes WH ......
39 specify clause target update

Disconnected from the target VM, address: '127.0.0.1:5954', transport: 'sock

一直能正常运行的本地项目,在IDEA中突然跑不起来 解决步骤: 给application启动类的run方法加上try-catch 打印日志为Failed to determine a suitable driver class,说是数据源有问题 实则是IDEA抽风了 1.尝试删除idea缓存重启In ......
Disconnected transport 39 address target

The file “/xx/xxx/xxxx.dita”is outside the scope of the input dita/map directory.

如果路径没错的话,就是引用的内容不在这个ditamap之内,也就是引用的内容不能在被引用时单独生成。 还有个错误:编辑器里面可以正常加载路径,但dita-ot始终说找不到的某个dita文件的错误,我以为是缓存的问题,其实可能是之前引用的地方不止一处,文件加或者文件改名之后没有将其他地方改完,可以用f ......
dita directory the outside input

The importance of learning basic skills

参考范文1 The Importance of Reading Literature Literature is acknowledged as the most precious product of human civilization and wisdom, especially by our ......
importance learning skills basic The

依赖 is already defined in a single-type import

代码:import org.apache.commons.lang3.StringUtils; 不加依赖显示:Cannot resolve symbol 'lang3',加了依赖又显示:'com.sun.deploy.util.StringUtils' is already defined in a ......
single-type already defined import single

The 13th Shandong ICPC Provincial Collegiate Programming Contest

Preface 昨天VP的那场没有字符串还没有原形毕露,今天遇到一个后期字符串直接和祁神大眼瞪小眼了 最后一个半小时祁神狂冲F成功写出两个version的假算法,而我已经滚去补之前欠下的题目了 赛后被徐神狠狠拷打了,评价为徐神是我们的红太阳,没有他我们都不能活 A. Orders 签到,按截止时间处 ......

The 2023 ICPC Asia Hefei Regional Contest Test D. Balanced Array

Preface 这题赛场上出了个关键点基本都想到的做法,但因为一个地方卡住了没过去导致不得不选择弃掉这道题 赛后补了下发现\(O(n\log n)\)的做法是只差临门一脚了,但\(O(n)\)的做法还是trick性挺强的 Solution 首先考虑枚举\(k\),不难发现此时合法的前缀一定是个连续的 ......
Balanced Regional Contest Array Hefei

ICPC2022Hangzhou A Modulo Ruins the Legend 题解

Link ICPC2022Hangzhou A Modulo Ruins the Legend Question 求 $$\sum\limits_{i=1}^n a_i+n\times s+\frac{n(n+1)}{2}\times d \mod m$$ 的最小值 Solution 我们把这个式子 ......
题解 Hangzhou Modulo Legend Ruins

hive启动出现Cannot create directory /tmp/hive. Name node is in safe mode.

原因:进入了安全模式,hdfs在启动开始时会进入安全模式,这时文件系统中的内容不允许修改也不允许删除,直到安全模式结束。 执行命令: hadoop dfsadmin -safemode leave 退出安全模式即可 出现 Safe mode is OFF 表示成功退出 ......
hive directory Cannot create Name

hive升级元数据报错The reference to entity "useSSL" must end with the ';' delimiter.

使用Hive自带的schematool工具升级元数据,也就是把最新的元数据重新写入MySQL数据库中。 执行以下命令 cd /usr/local/hive ./bin/schematool -initSchema -dbType mysql 出现The reference to entity "us ......
quot delimiter reference 数据 entity

内核文档翻译 —— Overview of the Linux Virtual File System

原文:https://www.kernel.org/doc/html/latest/filesystems/vfs.html#overview-of-the-linux-virtual-file-system Introduction The Virtual File System (also kn ......
内核 Overview Virtual 文档 System

New Type Functions/Utilities for Dealing with Ranges in C++20

Generic Types of Ranges 类型萃取从字面意思上来说其实就是帮助我们挑选某个对象的类型,筛选特定的对象来做特定的事。可以先来回顾一下以前的写法。 #include <vector> #include <iterator> int main() { std::vector v{1, ......
Functions Utilities Dealing Ranges Type

The 2023 ICPC Asia Hefei Regional Contest Test I. Linguistics Puzzle

Preface 这题yysy真不难,但比赛的时候想出做法后没时间写了,只能遗憾地看着倒计时结束 Solution 直接上爆搜复杂度肯定会爆,考虑有哪些数是可以不用搜直接推出来的 首先样例启发我们\(0,1\)这两个数很好确定,因为\(0\)对应的字母单独出现的次数肯定最多,而\(1\)作为两位的开头 ......
Linguistics Regional Contest Puzzle Hefei

The 2021 Sichuan Provincial Collegiate Programming Contest

Preface 下下周还要去打重庆市赛,最近就找些省赛来练练手 不得不说省赛的签到题是真的多,人均10+的过题看起来还是很恐怖的 这场虽然因为徐神缺席,而且前面的题目都让祁神来写导致罚时略高,但无所谓反正最后也摸到了11题(主要是没有字符串) A. Chuanpai 某不知题意的签到 #includ ......