economist from the to
Rails ActionDispatch::Http::UploadedFile to File
RailsでFileをActionDispatch::Http::UploadedFileに変換する方法 require 'mime/types' File.open(path) do |file| filename = File.basename(file.path), ActionDispatc ......
CF1861C-Queries-for-the-Array-题解
title: CF1861C Queries for the Array 题解 date: 2023-09-06 07:53:53 categories: - 题解 因为插入和删除操作都在队尾,所以对序列前缀分析一下: 若一个序列的答案为 YES,那么它前缀的答案也为 YES。(对于没检查过的序列) ......
Nacos启动:[NACOS HTTP-POST] The maximum number of tolerable server reconnection errors has been reached
一、表象 二、分析 源码: public HttpRestResult<String> httpPost(String path, Map<String, String> headers, Map<String, String> paramValues, String encode, long re ......
The fourth day learning summary
一、for 循环循环就是重复做某件事,for循环是python提供第二种循环机制(第一种是while循环),理论上for循环能做的事情,while循环都可以做。目的:之所以要有for循环,是因为for循环在循环取值(遍历取值)比while循环更简洁。代码示例:for i in range(1, 11 ......
MVN 安装报错 java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
mvn pom 安装报错 java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty 方法一 主要是带有 https 仓库认证不通过 忽略ssl证书检验即可 mvn cl ......
CF757G Can Bash Save the Day?
牛子题 先观察询问怎么处理,因为是棵树,直接拆 \(dis\) ,有 \(dis(p_i,x)=dis[p_i]+dis[x]-2\times dis[lca]\) ,前两项很好处理,但是对于 \(dis[lca(p_i,x)],i \in [l,r]\) 比较难处理,但是可以转化成经过这条边的次数 ......
配置内核的时候提示Your display is too small to run Menuconfig! It must be at least 19 lines by 80 columns.
按照按照 (https://rocketboards.org/foswiki/Documentation/EmbeddedLinuxBeginnerSGuide)制作了一个image当想打开内核kernel的配置界面make ARCH=arm menuconfig的时候提示: scripts/kco ......
.Net6 Unable to configure HTTPS endpoint. No server certificate was spec 开发者证书过期或无效
1.删除无效的证书 右键都删除 2.cmd窗口输入以下命令 dotnet dev-certs https dotnet dev certs https--trust 3.附其他 dotnet dev-certs https --clean 清理开发人员证书命令 ......
mysql table to proto message
用 Python 从 MySQL 信息模式生成 Protobuf 结构 在许多软件项目中,特别是使用 MySQL 数据库的项目中,通常使用 Protocol Buffers(Protobuf)进行高效的数据序列化。如果你发现自己需要将 MySQL 数据库架构信息转换为 Protobuf 消息,这个 ......
Queries for the Array 题解
前言 这场 CF 是我赛后打的,vp 赛时没做出来,后来发现是有个地方理解错了,有一些细节没有考虑到。现在换了一种思路来写,感觉更清晰了。 做法 首先需要动态维护三个变量,\(cnt\) 和 \(finishsort\) 和 \(unfinishsort\)。这三个变量分别表示当前数字的个数,已经排 ......
think\db\Raw could not be converted to string 错误的处理方式
我使用的是thinkphp 8.0.2 版本,在分页查询使用fileld出现提示think\db\Raw could not be converted to string的问题。 解决方案为,在文件vendor\topthink\think-orm\src\db\Raw中重写tostring即可。 ......
To do list
计划按周来计,算法和补题是长期。 计划(一) AT & CF 近几场补题 主页杂题 思维题 算法(二) 网络流 线性基 主席树 莫队 平衡树 树套树 根号分治 启发式合并 ODT 分块 补题(三) \(\text{NOIp}\) 改错,11.22 模拟赛 CD 题,11.27 模拟赛 D 题,12. ......
GitHub 如何修改 Fork from
如果你的仓库上面是 Fork from 的话,我们有什么办法能够取消掉这个 Fork from? 解决办法 GitHub 上面没有让你取消掉 Fork 的办法。 如果进入设置,在可见设置中也没有办法修改仓库的可见设置选项。 唯一的解决办法就是对你需要修改的仓库先全部克隆到你的本地计算机上,然后在危险 ......
树的层次遍历 Trees on the level uva122
原题链接 这道题可以说基本涵盖了树的大部分知识点——树的创建,树的生成,树的删除,树的BFS(宽度优先搜索)。个人认为是学习树时很具有价值的一道题目。 题目意思很好理解,讨论区的题解写的也比本人优秀太多了,这里就不具体分析了。 ......
Nacos启动:[NACOS HTTP-POST] The maximum number of tolerable server reconnection errors has been reached
一、表象 二、分析 源码: public HttpRestResult<String> httpPost(String path, Map<String, String> headers, Map<String, String> paramValues, String encode, long re ......
Access denied for user 'root'@'%' to database 'information_schema'
原因 information_schema是一个虚拟的数据库,里面的表其实都是视图。应切换数据库为“真正的数据库” 解决 USE `THE-REAL-DATABASE`; ......
BIgdataAIML-IBM-A neural networks deep dive - An introduction to neural networks and their programming
https://developer.ibm.com/articles/cc-cognitive-neural-networks-deep-dive/ By M. Tim Jones, Published July 23, 2017 Neural networks have been around f ......
BigdataAIML-ML-Models for machine learning Explore the ideas behind machine learning models and some key algorithms used for each
最好的机器学习教程系列:https://developer.ibm.com/articles/cc-models-machine-learning/ By M. Tim Jones, Published December 4, 2017 Models for machine learning Alg ......
【Keil】解决Error: C9555E: Failed to check out a license. & 添加新的编译器
添加新的编译器 工具栏 Options for target 右边的 File Extensions, Books and Environment... 按钮 Folders/Extensions 选项卡 Setup Default ARM Compiler Version 上面的 ... 按钮 A ......
Learning to Rank — xgboost 2.0.2
* [Learning to Rank — xgboost 2.0.2 documentation](https://xgboost.readthedocs.io/en/stable/tutorials/learning_to_rank.html)* [XGBoost的原理、公式推导、Python实 ......
unity报错 Saving Prefab to immutable folder is not allowed
问题 原因在于,使用了从别的模块中下载的预制体prefab,然后在本地项目scene中修改并保存,难以保存,因此报错。 解决 1. 最方便的办法,右键那个预制体,并选择unpack,这样就不是预制体,而是scene中的object了。 2. 另一种方法,如果这个prefab还用用好多次,就干脆在sc ......
A Guide to Image and Video based Small Object Detection using Deep Learning : Case Study of Maritime Surveillance
A Guide to Image and Video based Small Object Detection using Deep Learning : Case Study of Maritime Surveillance 基于图像和视频的小对象指南使用深度学习进行检测:的案例研究海上监视 1 ......
"the tx doesn't have the correct nonce":使用hardhat调用ganache上部署的合约遇到的一个错误
完整的报错 >查询存证请求 存证请求内容, datahash:0xaad2171441bd73b773e9a9e062753909360bdfcabbddbe93c6c58b13c5c0feaa, 创建人:0xF7A1938Fecc594aaF126d46fd173cE74A659ad9A, 附加信 ......
2023 China Collegiate Programming Contest (CCPC) Guilin Onsite (The 2nd Universal Cup. Stage 8: Guilin)
题解: https://files.cnblogs.com/files/clrs97/2023Guilin_Tutorial.pdf Code: A. Easy Diameter Problem #include<bits/stdc++.h> using namespace std; const i ......
初中英语优秀范文100篇-030My Life in the Future-我未来的生活
PDF格式公众号回复关键字:SHCZFW030 记忆树 1 I think my life will be colorful and meaningful in the future. 翻译 我认为我未来的生活将会丰富多彩并且有意义。 简化记忆 生活 句子结构 主语(I):这句话的主语是“I”,表示 ......
AWS - Sample Go code to use secrets
// Use this code snippet in your app. // If you need more information about configurations or implementing the sample code, visit the AWS docs: // htt ......
Could not get a resource from the pool 异常定位和解决
最近在服务中经常看到以下错误,进行下定位和问题解决分析: 2023-12-08 00:10:58.248 WARN [terra-sr-server,a9006fd27ccb81d0,a9006fd27ccb81d0,false] 52 [o-14009-exec-38] o.s.b.a.redis ......
Mysql访问问题,远程连接提示:Host 'xxx' is not allowed to connect to this MySQL server。是mysql未开启mysql远程访问权限导致
1、MySql服务器共享问题 对于在车间工作者,如果远程Mysql,我们这里假定网线连接 GRANT ALL PRIVILEGES ON *.* TO 'root'@'192.168.1.3' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 允许对应的主机 ......
The prefix operator (*) asterisk in Python. Python中的星号操作符
今天看Python 3 object-oriented programming一书中看到作者用了这样一个例子: import math class Point: def __init__(self,x,y): self.x = x self.y = y def distance(self,p2): ......