ON
CF1808E1 Minibuses on Venus (easy version)
原题 翻译 一道数位\(dp\)题 记\(S = \sum_{i=1}^{n}{a_i}\),原题即要求是否存在\(i\)满足 \(S - a_i \equiv a_i (\mod K)\) 移项得\(S \equiv 2a_i (\mod K)\) 因此我们考虑枚举\(2a_i\)的值记作\(sm ......
How to enable HTTPS on a localhost Node.js Server All In One
How to enable HTTPS on a localhost Node.js Server All In One
Let's Encrypt - Free SSL/TLS Certificates
......
left join 后用 on 还是 where
一、背景 前天写SQL时本想通过 A left B join on and 后面的条件来使查出的两条记录变成一条,奈何发现还是有两条。 后来发现 join on and 不会过滤结果记录条数,只会根据and后的条件是否显示 B表的记录,A表的记录一定会显示。 不管and 后面的是A.id=1还是B. ......
win7系统 安装python3.6.5版本遇到“user installations are disabled via policy on the machine” 和“0x80070643 ”错误情况
一、遇到提示“user installations are disabled via policy on the machine”是 系统策略禁止这个安装 解决方案: 方法一: 1、打开【开始】菜单,选择【运行】。 2、在运行窗口中【打开】一栏输入【gpedit.msc】,点击【确定】。 3、此时会 ......
MySQL关联查询ON条件和查询结果不一致
CREATE TABLE `a` ( `name` varchar(255) COLLATE utf8_unicode_ci NOT NULL, `supply_id` bigint(20) NOT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE= ......
document install LibreOffice_7.6.1.2 on Debian12
目录Download PackageOpen the programinstall Languare PackageUninstall LibreOffice from Debian Linux Libreoffice official website Package download addres ......
How to Set the Default Gateway on Ubuntus
ip route list ip r | grep default sudo ip route add default via 10.10.1.1 sudo ip route add default via 10.10.1.1 dev enp0s3 sudo ip route delete defa ......
abc253F - Operations on a Matrix
F - Operations on a Matrix 初看起来感觉不是很好搞,主要是有赋值操作,我们需要知道的是最近一次在这个行上的赋值操作以及之间的贡献 那么我们离线处理,每个3操作都往前找一个最近的同行2操作,然后两个做差就能得到中间的和。 #include<algorithm> #includ ......
v-on.v-bind 用法
 \),其中r是跟节点标 ......
Oracle 引发No space left on device+扩容Inode
Oracle 引发No space left on device+扩容Inode 背景 很久没遇到数据库存储和文件系统相关的问题,碰到了就复习一下。现象是: 某个小应用跑在很老的服务器上【准备淘汰废弃待定中】,突然应用报错,检查发现是数据库查询插入都异常了【自建oracle数据库】,这时候登上数据库 ......
mysql的ON DUPLICATE KEY的用法
1. 直接更改字段值 Insert into table(code,name) values('a','aa') ON DUPLICATE KEY update updateTime=now() 2. 根据原值修改当前值 传入参数 #{step} INSERT INTO table(code,ver ......
ElasticSearch+Kibana on K8s 讲解与实战操作(版本7.17.3)
目录一、概述二、ElasticSearch 节点类型与作用三、K8s 集群部署四、ElasticSearch on K8s 开始部署1)下载安装包2)构建镜像3)修改yaml编排4)开始部署5)测试6)elasticsearch-head5)卸载五、Kibana 编排部署1)下载安装包2)构建镜像3 ......
[题解] CF29D Ant on the Tree
CF29D Ant on the Tree 题目知识点:LCA。 题目传送门 题意 给定一棵以 \(1\) 为节点的树,再给定树的所有叶子节点的一个序列。 现在执行一个操作:从 \(1\) 开始遍历每个节点,并返回根,要求每条边经过的次数一定为 \(2\) 。 问是否能够使得访问节点序列中叶子节点的 ......
AnnotationTransactionAttributeSource is only available on Java 1.5 and higher和windows同时安装jdk7和jdk8
AnnotationTransactionAttributeSource is only available on Java 1.5 and higher和windows同时安装jdk7和jdk8 出错原因: 因为spring core org.springframework.core.JdkVer ......
P2633 Count on a tree 题解(外加DFS序求LCA)
`2023-07-22 09:53:59 顶置3` # P2633 Count on a tree ## 前置小知识 # 冷门小科技:DFS-RMQ 求LCA 最近跟着洛谷榜一的博客学了一个冷门科技:DFS序求LCA,这道题刚好要求LCA,所以就刚好适用一下。 [$\color{Red}{原博客地址 ......
v-bind="$attrs"、v-on="$listeners"用法
v-bind="$attrs" 主要用于组件之间的隔代传值。例如有 父组件A,子组件B,孙组件C 三个组件。 A组件中的值需要直接传给C,那么就需要在B中设置v-bind="$attrs",然后在C组件中用prop接收,此时就直接把值传给了C组件。 父组件A <template> <B_zujian ......
Linux中出现“No space left on device”错误的排查与解决方法
转载:https://www.yingsoo.com/news/servers/68385.html 最近这两天登陆服务器,发现用 wget 下载文件的时候提示“No space left on device”,而且连使用 tab 键进行补全时也会提示该错误。 之前遇到过一次这种问题,是由于磁盘空间 ......
mysql insert into on duplicate key update
新增如果遇到主键冲突,则更新 新建一张表,除了主键`id`,还有唯一健`mobile` ```sql create table example_user ( id int(4) not null auto_increment, name varchar(20) , mobile varchar(20 ......
OperationError: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local offer sdp: Called in wrong state: have-remote-offer
webRTC报“OperationError: Failed to execute 'setLocalDescription' on 'RTCPeerConnection': Failed to set local offer sdp: Called in wrong state: have-rem ......
论文解读(MTEM)《Meta-Tsallis-Entropy Minimization: A New Self-Training Approach for Domain Adaptation on Text Classification》
Note:[ wechat:Y466551 | 可加勿骚扰,付费咨询 ] 论文信息 论文标题:Meta-Tsallis-Entropy Minimization: A New Self-Training Approach for Domain Adaptation on Text Classific ......
[ARC105F] Lights Out on Connected Graph
前置芝士:[[ABC213G] Connectivity 2](https://www.cnblogs.com/adam01/p/17681390.html) #### 题目大意 给你一张 $n$ 个点 $m$ 条边的图,求有多少种删边方法使得删完后的图是一张联通二分图。 $n\le 17,m\le ......
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 ......
[VLDBJ 2019]Distributed Subgraph Matching on Timely Dataflow
# [VLDBJ 2019]Distributed Subgraph Matching on Timely Dataflow **只关注这篇中的subgraph matching的内容** ## 定义 $g = (V_g, E_g, L_g)$分别表示点、边,以及把任意点或边映射成label的函数。 ......
$('.panel-collapse').on('show.bs.collapse', function () {})详解
`$('.panel-collapse').on('show.bs.collapse', function () {});` 这段代码是在使用 jQuery来绑定事件。 - `$('.panel-collapse')`部分是一个选择器,它选择了当前页面上所有有`panel-collapse`这个类的 ......
解决命令行提示“cannot create temp file for here-document: No space left on device”但磁盘使用率并未满的问题
问题如题,出现“cannot create temp file for here-document: No space left on device”,且部分应用出现故障,比如重启后Docker容器无法启动 先使用 df -h 检查磁盘使用率,显示使用率50%还不到 继续排查,使用 lsof | g ......
SSH连接远程CENTENOS服务器报如下错误:Bad owner or permissions on。。。。
由于使用git的缘故,导致WIN10 .ssh下面有了config文件,使得连接外部CENTENOS服务器报如下错误:Bad owner or permissions on。。。。 最后的解决办法是找到.ssh文件夹,进行权限修改。 可以参考这篇博文:Bad owner or permissions ......
[AIGC] experience on new code LLM(WizardCoder-Python-34B-V1.0) by Wizard
Today I have a try on new large model designed by code generating named WizardCoder-Python-34B-V1.0. It's quite astonishing. You can have a try throug ......