middle meet the in
OGG报错 INS-85054 in oggca.sh createing a new Service Manager after removing a previous installation (Doc ID 2301523.1)
这个报错主要是ogg的自启动和目录问题 Delete the following files at the OS level: Linux 7 /etc/systemd/system/OracleGoldenGate.service /etc/oggInst.loc Linux 6 /etc/ini ......
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column
MySQL有any_value(field)函数,他主要的作用就是抑制ONLY_FULL_GROUP_BY值被拒绝 官方有介绍,地址:https://dev.mysql.com/doc/refman/5.7/en/miscellaneous-functions.html#function_any-v ......
String vs &str in Rust
Most likely, soon after you’ve started your Rust journey, you ran into this scenario where you tried to work with string types (or should I say, you t ......
CF1801D The way home
原题 翻译 非常好的一个题,有两种做法 方法1:flody+dp 首先我们确定一个最优行走方案:从 \(1\) 号节点赚到足够钱后通过最短路到达 \(x_1\) ,在 \(x_1\) 赚够足够钱后到达 \(x_2\) ,在 \(x_2\) 赚够足够钱后到达 \(x_3\) ,如此往复后到达终点 现在 ......
Can't locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl
001、问题 Can't locate Env.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl 002、解决方法 (base) [root@pc1 MaSuRCA-4.1.0]# yum -y insta ......
python pip Fatal error in launcher:
执行 pip 命令, 提示 Fatal error in launcher 原因: 是不是修改过python.exe 的名字。因为 pip 在生成的时候,就把 Pythone.exed绝对路径写到了文件里,而pip执行又依赖python ,所以执行报错。 系统里是否装了多个版本的python,同上一 ......
Tesla Bot All In One
Tesla Bot All In One
特斯拉机器人
创建一个通用、双足、自主人形机器人,能够执行不安全、重复或无聊的任务。
......
Exception in thread "main" org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
我报错的原因很简单mapper的interface和xml文件名字不相同导致 我的问题以及对应的解决 1.查看mapper的接口和xml文件名字是否相同 更多解决办法: 【报错解决】org.apache.ibatis.binding.BindingException: Invalid bound s ......
CodeForces 715E Complete the Permutations
洛谷传送门 CF 传送门 最小交换次数等于 \(n - \text{环数}\)。所以题目要我们统计把 \(p, q\) 补全成排列,连边 \(p_i \to q_i\),环数 \(= i\) 的方案数。 考虑把边根据 \(p_i, q_i\) 的是否已知状态分成四类: \(p \to q\) \(p ......
CF1710D Recover the Tree
题目链接 一个比较显然的思路就是:我们按照右端点从小到大的顺序(右端点相同按左端点从大到小)去考虑每个好的区间。 由于是连通性问题,不难想到用并查集去实时维护连通性。 根据定义,一个好的区间必定对应了一个连通块;我们考虑的是好的区间,所以当前并查集中的每个连通块必定都是一个区间。而在加入某个点前,这 ......
git pull代码时提示:Your local changes to the following files would be overwritten by merge
内容来自对 chatgpt 的咨询 这个错误提示意味着你在执行git pull命令时,Git发现你当前工作目录中的一些文件与远程仓库的变更产生了冲突。这可能是因为你在本地修改了一些文件,而远程仓库也有更新。Git不允许在有未提交的本地修改时直接执行git pull,以防止可能的冲突。 要解决这个问题 ......
UserWarning: The parameter 'pretrained' is deprecated since 0.13 and may be removed in the future, please use 'weights' instead.解决办法
87iuiu由于ii from torchvision import models # 旧版本的写法,将在未来的torchvision 0.15版本中被Deprecated model_old = models.resnet50(pretrained=True) # deprecated model ......
CF1862G The Great Equalizer
题目链接 先不考虑修改操作。 直接模拟题目意思,可以发现最后留下的一定是最小的数字(因为相同的数每次会保留第一个)。我当时是顺着这个思路做的题目,现在想想反过来想好像会让问题变得更简单,即认为每次保留最后一个相同的数字。 那么现在每次留下的就是最后一个数字,显然每次操作会让这个数字加一,只需要考虑一 ......
Towards Accurate Alignment in Real-time 3D Hand-Mesh Reconstruction论文解读
Towards Accurate Alignment in Real-time 3D Hand-Mesh Reconstruction论文解读 这是发表在ICCV2021的一篇文章,主要的工作内容是RGB图片中的人手重建。 Introduction 单目下的3D人手重建是计算机视觉中一个非常具有挑战 ......
Linux $PS1 and zsh All In One
Linux $PS1 and zsh All In One
macOS 自定义命令行提示符
......
MongoDB and mongoose All In One
MongoDB and mongoose All In One
Node.js
......
Docker - ERROR: failed to solve: golang:latest: error getting credentials - err: exec: "docker-credential-desktop": executable file not found in $PATH, out: ``
Dockerfile: FROM golang:latest WORKDIR /app ADD . . RUN go get RUN go build -o app . CMD ["/app/app"] zzh@ZZHPC:/zdata/MyPrograms/Go/aaa$ docker build ......
All-in-One(二):硬件直通
# 简介 硬件直通简单来说就是让虚拟机直接使用物理机的硬件资源,例如网卡、显卡等。 # 配置 ## 手动启用 IOMMU 打开 PVE 的 shell 执行以下命令: ```shell # 编辑grub文件 nano /etc/default/grub # 修改GRUB_CMDLINE_LINUX_ ......
All-in-One(三):Openwrt
# 简介 **OpenWrt **是适用于嵌入式设备的一个 Linux 发行版。相对原厂固件而言,OpenWr t不是一个单一、静态的固件,而是提供了一个可添加软件包的可写的文件系统。这使用户可以自由的选择应用程序和配置,而不必受设备提供商的限制,并且可以使用一些适合某方面应用的软件包来定制你的设备 ......
All-in-One(一):PVE
# 简介 **Proxmox Virtual Environment**(简称:**Proxmox VE**、**PVE**),是一个开源的服务器虚拟化环境 Linux 发行版。Proxmox VE 基于 Debian,使用基于 Ubuntu 的定制内核,包含安装程序、网页控制台和命令行工具,并且向 ......
All-in-One(五):Ipv6暴露公网
# 简介 **网际协议第6版**(英语:**I**nternet **P**rotocol **v**ersion **6**,缩写:**IPv6**)是网际协议的最新版本,用作互联网的协议。用它来取代 IPv4 主要是为了解决IPv4地址枯竭问题,同时它也在其他方面对于 IPv4 有许多改进。 # ......
How to install a command once for all login users in Linux All In One
How to install a command once for all login users in Linux All In One
/etc/profile & /etc/profile.d/
......
GBLUP-RR in BGLR
来自Paulino Pérez-Rodríguez和José Crossa两位GS领域大佬的报告。 从GBLUP到RRBLUP,再到BRR理论 使用经典数据集CIMMYT wheat 599 BGLR示例 ......
String Rearrangement in Phantom
先考虑一个 \(O(nq)\) 的暴力,令 \(s_{1}=S[l_{1},r_{1}],s_{2}=S[l_{2},r_{2}]\),令 \(t=\operatorname{rev}(s_{2})\),则我们仅需求 \(s_{1}=A+B+C,t=\operatorname{rev}(A)+B+\ ......
'main' attribute cannot be used in a module that contains top-level code 问题解决
核心是@main 注解在main.swift 文件中,可以重新命名下 参考资料 https://stackoverflow.com/questions/73431031/swift-cli-app-main-attribute-cannot-be-used-in-a-module-that-cont ......
Fallible point in C/C++
Operator[] The performance of [] in C and C++ is different. e.g., when you excute A[index] If A is a object, it will call the operator[] If A is a poi ......
Ubuntu20.04 ping Temporary failure in name resolution问题
解决步骤 vi /etc/systemd/resolved.conf 将DNS的注释取消掉并改成8.8.8.8即可 参考:https://blog.csdn.net/weixin_43354181/article/details/105352203 ......
CF842A Kirill And The Game
如果考虑 \([x,y]\) 中什么位置能乘到 \([l,r]\) 就比较麻烦,简单的做法是考虑 \(l\) 和 \(r\) 对应到 \([x,y]\) 中的位置。左边界至少是 \(\frac{l-1}{k}+1\),右边界至多是 \(\frac{r}{k}\),判断一下与 \([x,y]\) 是否 ......
执行docker compose up -d报错 unknown shorthand flag: 'd' in -d
执行docker compose up -d报错 unknown shorthand flag: 'd' in -d /usr/libexec/docker/cli-plugins/目录下没有docker-compose或者有docker-compose但执行docker help显示 Invali ......
Top 6 BMW Diagnostic Tools to Master in 2023
In the ever-evolving automotive industry, the importance of diagnostic software cannot be overstated. Specifically, for BMW vehicles, diagnostic tools ......