hong kong programming the

使用EventBus 3.0 报 Subscriber class com.example.test.MainActivity and its super classes have no public methods with the @Subscribe annotation

代码如下: public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanc ......

CF1824B2 LuoTianyi and the Floating Islands (Hard Version) - 概率期望 - 树的重心 -

题目链接:https://codeforces.com/contest/1824/problem/B2 题解: 考虑一棵 $n$ 个点的树,假如已经选定了 $k$ 个特殊点,如何判断某一个点是否为好点? 显然将这个点提到根没有影响,那么好点的充要条件是对于所有子树的 $S_u$ 值都 $\leq k ......
概率 重心 LuoTianyi Floating Islands

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '?' 问题的解决

问题描述 显示在条件查询的sql语句那里报错 问题解决 本来我是习惯了使用servlet写数据库操作的,然后就直接忽略掉了,或者说,直接忘记了在jsp里面的sql语句怎么正确书写了; 经过查阅资料发现,查询语句是这样写的: String sql="select * from book where i ......
syntax your corresponds the version

java.lang.IllegalStateException: Failed to check the status of the service 的解决办法

参考资料 java.lang.IllegalStateException: Failed to check the status of the service 的解决办法_Hello_World_QWP的博客-CSDN博客 环境条件 spring cloud,注册中心用的是zookeeper; 报错 ......

CF1824B2 LuoTianyi and the Floating Islands题解

是 Div2 的 D1 和 D2。 题意 给定一棵 $n$ 个结点的树,现在有 $k(k\leq n)$ 个结点上有人。 一个结点是好的当且仅当这个点到所有人的距离之和最小。 求在这 $n$ 个点中随机取 $k$ 个点时,好的结点的期望个数,对 $10^9+7$ 取模。 Easy: $k\leq 3 ......
题解 LuoTianyi Floating Islands 1824B

CF1825C LuoTianyi and the Show

传送门(luogu) 传送门(CF) 前言 ~~我来水题解力~~ 简化题意 $n$ 个人,$m$ 个座位,每个人落座的方法有三种: 坐最左边的人的左边,没人的话就做 $m$ 号座位,若最左边的为 $1$ 号,就离开; 坐最右边的人的右边,没人的话就做 $1$ 号座位,若最右边的为 $m$ 号,就离开 ......
LuoTianyi 1825C 1825 Show and

WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager......

pip install -r requirements.txt 报错"WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system ......

解决git错误: error: The following untracked working tree files would be overwritten by merge

在我本地上进行git pull的时候,出现这个错误: error: The following untracked working tree files would be overwritten by merge: config/config.php 这是因为,本地上有一个文件,没有被git管理,但 ......

The 16th Harbin Engineering University Collegiate Programming Contest

The 16th Harbin Engineering University Collegiate Programming Contest A. stral Reflection 用右界覆盖左界为下标的数组 构成一个以i为左界,a[i]为右界的数组 以此表示区间 对于每一个陨石都尽可能找左界<=自己 ......

How to use Linux command to find out the background process All In One

How to use Linux command to find out the background process All In One ......
background command process Linux to

The connection to the server localhost:8080 was refused - did you specify the right host or port?

遇到如下问题: [root@k8s-node1 ~]# kubectl get podThe connection to the server localhost:8080 was refused - did you specify the right host or port? 解决方式: cd ......
connection the localhost refused specify

Exploring the Use of Humanized Mouse Models in Drug Safety Evaluation

However, there are differences between animals and humans, safety studies cannot be conducted on animal models alone, and normal animals do not respon... ......
Evaluation Exploring Humanized Models Safety

[ERROR] [MY-012263] [InnoDB] The Auto-extending innodb_system data file './ibdata1' is of a different sizethan specified in the .cnf file: initial 65536 pages, max 0 (relevant if non-zero) pages!

实际my.cnf发现里面的innodb_data_file_path = ibdata1:1G:autoextend 设置得太大,我这机器容量小,所以调到12M , innodb_data_file_path = ibdata1:12M:autoextend ......

Mixed Content: xxx This request has been blocked; the content must be served over HTTPS

1.情景展示 这是教师资格证,准考证的下载界面。 当我们去点击“下载准考证”的时候,你将发现点击该按钮并没有反应。 按F12,打开开发者工具。 该网站,会自动进入断点调试模式,目的是为了:禁止前端开发者查看网页代码之类的吧。 我们要想看看,为什么无法下载准考证,就不能够被它拦住。 解决办法: 第一步 ......
Content request blocked content served

安装SQL Server累积版本更新包,提示“Not Clustered or the Cluster service is up and online”和 There are no SQL Server Instances or shared features that can be updated on this computer

1. Not Clustered or the Cluster service is up and online 起因是服务器SQL Server之前有开启SQL Server AlwaysOn High availability feature and installed Failover Clu ......
Server SQL Clustered Instances features

解决Could not find a version that satisfies the requirement思路

安装python第三方库的时候会提示报错缺少依赖库,报错如下: ERROR: Could not find a version that satisfies the requirement 模块名 (from automat) (from versions: none)ERROR: No match ......
requirement satisfies 思路 version Could

2023ccpc湖北省赛/2023 Hubei Provincial Collegiate Programming Contest个人题解

2023 Hubei Provincial Collegiate Programming Contest A Prime Magic Walk Alone has a sequence $a_1,a_2,...,a_n$, and he can use a magic on it: Choose a ......

git文件时出现gnutls_handshake() failed: The TLS connection was non-properly terminated.

使用 git config --global --unset https.https://github.com.proxy git config --global --unset http.https://github.com.proxy 重置github代理 ......

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts

报错原因: ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the f ......
dependency the currently behaviour conflicts

Monoxer Programming Contest 2022(AtCoder Beginner Contest 238)(E,F)

Monoxer Programming Contest 2022(AtCoder Beginner Contest 238)(E,F) E(图) E 这个题大意就是给你一段区间和,问你可以根据这个区间和得到从$1$到$n$的和 这个题都说是一个很明显的图论题,但是我一开始真的没看出来,看来是练习不够 ......
Contest Programming Beginner Monoxer AtCoder

typora:The beta version of typora is expired, please download and install a newer version

该解决方案摘录自:摘录 问题描述 typora安装后提示 The beta version of typora is expired, please download and install a newer version 解决方案 按Windows+R打开运行窗口,输入regedit,点确定,打开 ......
version typora download expired install

关于Kubernetes-v1.23.6-初始化时报错[kubelet-check] It seems like the kubelet isn't running or healthy

笔者今天在对k8s,v1.23.6版本的的master节点使用如下命令进行初始化时 [root@k8s-master qq-5201351]# kubeadm init \ > --apiserver-advertise-address 192.18.106.87 \ > --image-repos ......

1 - Hand on system programming with Linux - 虚拟内存

虚拟内存 我的博客 虚拟内存 现代操作系统基于称作虚拟内存的内存模型。这些操作系统包括 Linux、UNIX、MS Windows 以及 macOS。要想真正理解现代操作系统,必须深入理解虚拟内存以及内存管理。 没有虚拟内存会有什么问题 现在,让我们考虑一个只具有 64 MB RAM 物理内存的情况 ......
programming 内存 system Linux Hand

ocidll forced to load library,initialization error could not initialize make sure you have the 64 bits oracle client installed

是因为你使用pl/sql是64位的,但是软件只找到了32位的oracle 客户端 多次尝试,我的pl/sql是64位,但是这里需要对应的使用64位,我的方案是下载 https://www.allroundautomations.com/registered-plsqldev/ 这个版本的软件 这样配 ......

安装msi软件报错:The installer has encountered an unexpected error installing this package.The error code is 2503

因为安装权限不足 以管理员身份运行cmd 运行安装命令 msiexec /package "E:\xxx\charles-proxy-4.6.4-win64.msi" ......
error encountered installing unexpected The

使用nacos配置,启动服务时一直报 Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. APPLICATION FAILED TO START

报错日志如下: Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.-2023-05-05 09:46:02.328 [TID ......

ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none)

现象 导入cv2时,报如下的错误 ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none) 解决方案 win+R打开命令行,输入 pip install opencv-python ......
requirement satisfies versions version ERROR

The plugin distribution bundles IDE packages 'com.intellij.uiDesigner.core',

错误描述: The plugin distribution bundles IDE packages 'com.intellij.uiDesigner.core', 'com.intellij.uiDesigner'. Bundling IDE packages is considered bad ......

Jenkins 执行Docker build错误Got permission denied while trying to connect to the Docker daemon socket...

问题: 解决方法: 这个报错为权限问题 1.把jenkins用户,加到docker用户组 #如果没有docker用户组,先创建用户组: groupadd docker #添加jenkins用户到用户组: sudo usermod -a -G docker jenkins -a<追加> 必须与-G选项 ......
Docker permission 错误 Jenkins connect

CI3报错The URI you submitted has disallowed characters

报错: An Error Was Encountered The URI you submitted has disallowed characters. 遇到错误 您提交的URI包含不允许的字符。 解决方法: 1、打开application/config/config.php 2、找到$confi ......
disallowed characters submitted CI3 The