morning four the in

解决使用yarn安装依赖出现“The engine "node" is incompatible with this module. Expected version "^14.18.0 || ^16.14.0 || >=18.0.0". Got "17.9.0"”的问题

# 1、问题描述 某天在使用`yarn`安装依赖的时候,突然出现如下错误导致安装依赖终止: **The engine "node" is incompatible with this module. Expected version "^14.18.0 || ^16.14.0 || >=18.0.0 ......
quot incompatible Expected version engine

US firm's official entry into segment to motivate more Chinese peers to join in

Apple Inc's augmented reality headset will help accelerate the development of the AR industrial chain in China, and push the product not only for ente ......
official motivate Chinese segment entry

Vue2项目开发时遇到:<template v-for> key should be placed on the <template> tag

问题缘由: Vue2和Vue3中,对待template中存在v-for行为的组件正好相反 Vue2中key必须写在子元素中,Vue3中key必须写在template中,不然会报错 使用volar插件,使用Vue3语法检测代码,导致错误 解决方案: 1、禁用volar 2、貌似可以修改配置项,但尚未尝 ......
template 项目开发 项目 should placed

上传文件异常:The temporary upload location [/tmp/tomcat.xxxxxxx/work/Tomcat/localhost/ROOT] is not valid

一个长久没更新过的spring boot项目突然间文件上传错误,异常信息如下,此原因主要问题是tomcat默认的临时目录没了,项目运行的服务器每隔一段时间会清除 /tmp 临时目录,项目每次启动都会创建临时目录,经常重启的项目不会有此问题。 解决方案: 1. 重启项目,每隔一段时间重启,可以跟 /t ......
temporary localhost location xxxxxxx 文件

算法 in Golang:Breadth-first search(BFS、广度优先搜索)

# 算法 in Golang:Breadth-first search # (BFS、广度优先搜索) ## 最短路径问题 Shortest-path problem - 从 A 到 F 点有多条路径 ## 解决问题的算法 Breadth-first Search(广度优先搜索) 1. 将问题建模为图 ......
广度 Breadth-first 算法 Breadth Golang

Apple Vision Pro All In One

Apple Vision Pro All In One 以下是内容全部是个人观点,仅供参考! 优点 一款具有跨时代技术革命的 VR/AR 眼镜; UI 交互体验一如既往丝滑、简洁、易用的 Apple 风格; 可以取代大屏显示器、大屏电视、电影院的巨幕等外部显示设备; ... 缺点 目前价格太贵,不... ......
Vision Apple All Pro One

算法 in Golang:Quicksort(快速排序)

# 算法 in Golang:Quicksort(快速排序) ## Quicksort(快速排序) - 快速排序 O(nlog2^n),比选择排序要快 O(n²) - 在日常生活中经常使用 - 使用了 D & C 策略(分而治之) ## 使用 Quicksort 排序数组 - 不需要排序的数组(也就 ......
算法 Quicksort Golang in

Codeforces 1566G - Four Vertices(线段树分治)

交了整整 2 页,本来想用随机化卡过去的,后来发现我的实现跑得太慢就写正常做法了。 首先发现最优答案对应的四个点只可能有以下两种可能: - $a,b$ 间有边,$c,d$ 间有边,此时答案是 $a,b$ 边权值加 $c,d$ 边权值。 - $a$ 与 $b,c,d$ 三个点间都有边,此时答案是三条边 ......
线段 Codeforces Vertices 1566G 1566

Codeforces 1801D The way home

看到 `shortest paths` 来做的。 首先有一个贪心的策略,对于当前点 $u$ 若不能直接往后走则肯定是选择经过的点中 $w_i$ 最大的加。 很好理解,证明就不需要了。 所以可以定义状态 $f_{u, mx}$ 为 $u$ 点最大能加的值为 $h_{mx}$ 的最优状态,$h$ 是 $ ......
Codeforces 1801D 1801 home The

算法 in Golang:Recursion(递归)

# 算法 in Golang:Recursion(递归) ## 递归算法 ### 场景:在套娃中找到宝石 ### 可以这样做 - while 没找到: - if 当前项 is 宝石: - return 宝石 - else if 当前项 is 套娃: - 打开这个套娃 - if 当前项 is 宝石: ......
算法 Recursion Golang in

Codeforces 1588F - Jumping Through the Array

显然无法用 polylog 的数据结构维护,序列分块也不行,考虑询问分块。每 $B$ 个询问处理一次。 将这个询问中 $2,3$ 操作涉及到的点设为“关键点”,那么容易发现,环上每一段以关键点结尾的链在这块操作的过程中始终保持不变,也就是说我们可以把它们缩在一起。 先预处理出每个块的增量对每组询问的 ......
Codeforces Jumping Through 1588F Array

API全场景零码测试机器人,华为云发布ATGen in CodeArts TestPlan

摘要:华为云ATGen现开放对外邀测,欢迎预约。 本文分享自华为云社区《API全场景零码测试机器人,华为云发布ATGen in CodeArts TestPlan》,作者:华为云头条 。 众所周知,软件服务及组件之间的交互主要依赖大量的API接口。 以华为云300多个商用云服务为例,平均每个服务含5 ......
机器人 CodeArts TestPlan 场景 机器

Contrastive Learning for Representation Degeneration Problem in Sequential Recommendation

[TOC] > [Qiu R., Huang Z., Ying H. and Wang Z. Contrastive learning for representation degeneration problem in sequential recommendation. WSDM, 2022.] ......

How do you display code snippets in MS Word preserving format and syntax highlighting?

How do you display code snippets in MS Word preserving format and syntax highlighting? 回答1 Here is the best way, for me, to add code inside word: Go t ......

Unexpected character '"' (code 34) in DOCTYPE declaration; expected a space between public and system identifiers

1)错误信息 Caused by: javax.xml.ws.WebServiceException: org.apache.cxf.service.factory.ServiceConstructionException: Failed to create service. at org.apac ......

HTTP Basic Authentication>> 401>> Using the browser’s native login prompt

https://docs.oracle.com/cd/E27515_01/common/tutorials/authn_http_basic.html http://blog.stevensanderson.com/2008/08/25/using-the-browsers-native-login ......
gt Authentication browser native prompt

The Epsilon-Delta Definition of a Limit

by courtesy of the author: [APEX Calculus I/II/III ](http://www.apexcalculus.com/about) University of North Dakota Adapted from APEX Calculus by Grego ......
Epsilon-Delta Definition Epsilon Delta Limit

Fields in a "Serializable" class should either be transient or serializable

如果某个字段不能被序列化,则需要将其设置为`transient`, 确保泛型参数必须实现序列化,将其限定为T extends Serializable ......

【HarmonyOS】关于 Caused by java.lang.IllegalStateException The specified...

【问题描述】 线上收到大量手机的崩溃异常,以华为手机为主,崩溃如下 1.Caused by: java.lang.IllegalStateException: The specified message queue synchronization barrier token has not been ......

P2973 [USACO10HOL] Driving Out the Piggies G 臭气弹

[题目链接](https://www.luogu.com.cn/problem/P2973 "题目链接") 题目: 奶牛们建立了一个随机化的臭气炸弹来驱逐猪猡。猪猡的文明包含1到N (2 using namespace std; const int maxn=350; const int eps=1 ......
臭气 Driving Piggies P2973 USACO

Error系列-unexpected error occurred self signed certificate in certificate chain

## 执行yarn install 或者 其他命令遇到这个报错: error An unexpected error occurred: "https://XXX/XXX self signed certificate in certificate chain". ``` XXX cloud-ser ......
certificate unexpected occurred signed Error

算法 in Golang:Selection sort(选择排序)

# 算法 in Golang:Selection sort(选择排序) ## Selection Sort(选择排序) 假设有一个数组,它里面有6个元素,它的顺序是乱的,现在我们想对这个数组进行排序,就是从小到大进行排序。 选择排序是挨个遍历元素,把最小的放在最前面,再把剩余的遍历,把最小的放在后面 ......
算法 Selection Golang sort in

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. ......
speed write usual disk respectively

mybatis中使用where in

MyBatis支持使用标签来实现where in语句的写法。 下面是一个示例,假设我们有一个User实体类,其中包含一个List类型的属性roles``,表示用户拥有的角色列表。我们想要查询所有拥有admin或user`角色的用户: ```xml ``` 在上面的示例中,标签遍历roles列表中的每 ......
mybatis where in

算法 in Go:Binary Search(二分查找)

# 算法 in Go:Binary Search(二分查找) ## Binary Search(二分查找) ### Binary Search(二分查找) - 猜数 - 1、2、3、4、5、6、7、8 - 排好序一个集合,先从中间开始猜,根据提示就可以排除一半,在剩余的一半里,再从中间开始猜,依此类 ......
算法 Binary Search in

[ABC201D] Game in Momotetsu World 题解

[Game in Momotetsu World](https://www.luogu.com.cn/problem/AT_abc201_d) ### 题目大意 在一个 $n\times m$ 的网格中,存在红色和蓝色两种格子,红色格子用 `-` 表示,蓝色格子用 `+` 表示。 现在 Takaha ......
题解 Momotetsu World 201D Game

git add 时报错 warning: in the working copy of 'package-lock.json', LF will...

来源:https://blog.csdn.net/qq_43842093/article/details/128471953 问题: 执行 git add . 时报错: 原因: 换行符的问题, Windows下换行符和Unix下的换行符不一样,git会自动转换。 解决办法: 执行如下命令: git ......
package-lock 时报 warning package working

Achieving a Better Stability-Plasticity Trade-off via Auxiliary Networks in Continual Learning论文阅读笔记

## 摘要 连续学习过程中的稳定性-可塑性权衡是一个重要的问题。作者提出了Auxiliary Network Continual Learning (ANCL),通过auxiliary network提高了模型的可塑性。 ## 方法 ### The Formulation of Auxiliary ......

httpclient in .net _ 压缩

压缩 优势: 小带宽, 更快的响应 压缩格式 gzip, deflate(普遍 压缩 格式) how 获取 压缩文件? Accept-Encoding: 设置为 压缩格式 SocketsHttpHandler:启用 自动解压 how 发送 压缩文件? client:压缩 request body 内 ......
httpclient net in