ergodicity liouville theorem and
Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
https://tools.ietf.org/html/rfc7231 Table of Contents 1. Introduction ....................................................6 1.1. Conformance and Error ......
[LeetCode] 2352. Equal Row and Column Pairs
Given a 0-indexed n x n integer matrix grid, return the number of pairs (ri, cj) such that row ri and column cj are equal. A row and column pair is co ......
cpp test write content speed to ssd and usual disk respectively 1M,10M,100M rows data,the fact has illustrated the write speed of ssd is 4-5 times faster than usual disk
#include <chrono> #include <ctime> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> #include <thread> #include <uuid/uuid. ......
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
这个异常在springboot,是一个常见的异常,我们引入了mybatis依赖,确没有在.yml文件中配置数据源,这次我配置了数据源,但是因为有二个application.yml和application-dev.yml,没有指定yml的环境,在application.yml中添加指定dev即可 ......
[ABC205F] Grid and Tokens 题解
[Grid and Tokens](https://www.luogu.com.cn/problem/AT_abc205_f) ### 题目大意 给定 $n$ 个点和一个 $H\times W$ 的网格,每个点可以放置在 $(A_i,B_i)$ 到 $(C_i,D_i)$ 的矩形中或不放,每一行或一 ......
[ABC205E] White and Black Balls 题解
[White and Black Balls](https://www.luogu.com.cn/problem/AT_abc205_e) ### 题目大意 将 $n$ 个白球,$m$ 个黑球排成一列,要求满足 $\forall i\in[1,n+m],w_i\le b_i+k$,问存在多少种排法。 ......
[LeetCode] 1346. Check If N and Its Double Exist 检查整数及其两倍数是否存在
Given an array `arr` of integers, check if there exist two indices `i` and `j` such that : - `i != j` - `0 这道题给了一个整型数组,让检测是否有一个数字和其倍数同时存在的情况。一看到这道题博主就 ......
Windows debug and troubleshoot
windows debug and troubleshoot # 一。 使用windbg 调试应用的三种方式: 1. 附件到已经运行的进程; 2. 从windbg运行新的程序; 3. 从windbg分析程序的dump 文件; # 二。 计算机架构(x86,x64 ) # 三。 虚拟内存 1. 通过分 ......
3. Liouville's Theorem and Ergodicity
## 为什么会涉及到刘维尔定理和遍历性 在前面的关于微正则系综的平衡态的博客里面,我们对于微正则系综做了一些假设,其中最重要的两个假设是: 1. 微正则系综中各个系统出现的概率都是一样大的,没有哪一个处于某个状态的系统备受青睐 2. 在微正则系综里面,我们在计算平衡态的某些宏观性质时,认为对于相空间 ......
application deployment by jenkinsfile and docker compose
Using Jenkins CI/CD for your NodeJS app https://blog.harveydelaney.com/jenkins-build-test-deploy-node-app/ Jenkinsfile https://github.com/internetarch ......
w task2 - problem and solution
Read and understand the question -highlight / underline key parts causes ... solutions your opinion I believe ... Introduction: variety of reasons, st ......
nohup execute command,both write info to file and print on console
nohup ./h1 >>write.log |tail -f write.log ......
mpi4py.MPI.COMM_WORLD.Get_size失败——mpiexec and python mpi4py gives rank 0 and size 1
参考: https://stackoverflow.com/questions/29264640/mpiexec-and-python-mpi4py-gives-rank-0-and-size-1 运行代码: import mpi4py.MPI as MPI comm = MPI.COMM_WORL ......
CF321E - Ciel and Gondolas
考虑 $dp_{i,j}$ 表示用 $i$ 条船载走前 $j$ 个人的最小贡献,$w_{i,j}$ 表示区间 $[i,j]$ 里的人同乘一条船的代价。则 $dp_{i,j}=\min_{1\le k\lt j}(dp_{i-1,k}+w_{k+1,j})$。 我们发现,$w_{i,j}$ 可以通过 ......
读书笔记: Psychological Power between knowledge and practice; Inverted Totalitarianism;
John Dewey once remarked that equality becomes dangerous when it is widely praised but empty in practice. Perhaps the most crucial element in the stru ......
[Debug] Debug and inspect event listeners with Devtools
You can use getEventListeners(button)directly inside chrome devtool, but not inside application code. You can use monitorEvents(button, 'keydown'), no ......
URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs)
问题描述: 如下图,在.xml配置文件中配置报错:URI is not registered (Settings | Languages & Frameworks | Schemas and DTDs) 解决办法: 工具栏:file-->settings :找到Schemas and DTDs 中加 ......
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl exec [POD] -- [COMMAND] instead.
问题现象为通过kubectl进入pods时提示在未来版本中将移除这种进入这种方式,需要使用新的命令格式进入 ```sh [root@master ~]# kubectl exec myweb-c5xq6 -it /bin/bash kubectl exec [POD] [COMMAND] is DE ......
Codeforces 1515I - Phoenix and Diamonds(值域倍增+线段树)
首先 $c$ 很大,因此复杂度跟 $c$ 有关的项肯定只能是 $\log c$ 之类的。 类比 IOI2021 dungeons 的套路,我们**对值域进行分层**,假设 $c\in[2^{\omega-1},2^{\omega})$,考虑令重量在 $\ge 2^{\omega-1}$ 的物品为“重 ......
How to use Vim copy line and paste line All In One
How to use Vim copy line and paste line All In One
如何使用 Vim 复制行和粘贴行
......
HDU1028 Ignatius and the Princess III
## Description ![](https://s1.ax1x.com/2023/06/01/p9ztpdJ.png) 题意:给出 $n(1\le n\le 120)$,求出 $n$ 的整数划分方案数。 ## Solution 先考虑一个简单的问题:从 $1\sim n$ 的数字取出若干个数字 ......
CF101234A Hacker Cups and Balls【二分+线段树】
## Description 给一个长度为 n 的排列,对它做 m 次操作,每次对 [l, r] 区间内进行升序/降序排序。 问最后的序列处于最中心的数是多少(n为奇数)。 ## Solution 是一类没有写过的题,[参考题解](https://www.cnblogs.com/ShinaCloud ......
Difference Between Session and Entity Beans
https://docs.oracle.com/cd/E17802_01/j2ee/j2ee/1.4/docs/tutorial-update6/doc/EJBConcepts4.html You should probably use an entity bean under the follow ......
Me-and-My-Girlfriend-1
1.查看kaliIP地址 ifconfig 2.nmap命令扫描所在网络断的ip即开放端口 nmap 192.168.137.0/24 发现目标主机192.168.137.149 开放了22和80端口 3.直接访问主机地址192.168.137.149 4.只能本地访问,设置xff代理尝试登录 X- ......
pip安装解决报错:WARNING: Running pip as the ‘root‘ user can result in broken permissions and conflicting
一、问题描述今天使用pip安装库的时候和一些模块的时候,出现了一下报错信息: 大概意思就是:提示以“root”用户身份运行 pip 可能会导致权限损坏和冲突,因此我们需要创造一个虚拟的环境区执行它 二、解决方法1、创建一个虚拟环境 (superset) [root@bigdata111 ~]# py ......
If you use STDIN or specify a URL pointing to a plain text file, the system places the contents into a file called Dockerfile, and any -f, --file option is ignored.
docker build | Docker Documentation https://docs.docker.com/engine/reference/commandline/build/ In most cases, it’s best to put each Dockerfile in an ......
Windows 配置 Hadoop and Spark
一 JDK环境配置 由于项目用的JDK17,所以单独给Hadoop配了JDK11,建议直接配置JAVA_HOME环境变量为JDK11,因为后面Spark需要用到JAVA_HOME 下载JDK11 链接:https://www.oracle.com/java/technologies/javase/j ......
翻译-Automatic detection of Long Method and God Class code smells through neural source code embeddings
# Automatic detection of Long Method and God Class code smells through neural source code embeddings 通过神经源代码嵌入自动检测 Long Method 和 God Class 代码异味 Aleksa ......
How to modify the username and password of Raspberry Pi All In One
How to modify the username and password of Raspberry Pi All In One
如何修改树莓派的用户名和密码
......
GPT-Introduction about BlueZ and it's relationship with Android
In this blog post, I will introduce you to BlueZ, a Bluetooth stack for Linux-based systems. I will also show you how to detect whether an Android dev ......