morning four the in
How to get a variable data type in Python 3 All In One
How to get a variable data type in Python 3 All In One
typeof in js
type(var) & isinstance(var, type)
......
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
......
Road To Reality(The roots of science)
Road To Reality(The roots of science) The Good, the True, and the Beautiful ......
ScannerException: while scanning for the next token found character ‘@‘ 问题
1.今天运行程序,突然报错,显示 ScannerException: while scanning for the next token found character ‘@‘ 问题,上网搜索,有好多原因,最简单的解决方法是刷新maven,后来就好使了。其他原因可参考博客:ScannerExcept ......
Roads in the North POJ - 2631 - 树的直径/树形dp
题意:给出一棵无向树,求树的直径,即树上两点之间的最长距离 分析:两种解法 解法1:先任取一个点,找到距离该点最远的点u,再找到距离u最远的点v,那么u和v之间的路径就是一条直径。 证明:只要找到了树的直径的一个端点,再从该点找到最远点就一定是直径的另一个端点。所以只需要证明第一次找到的最远点u就是 ......
解决 ‘gbk‘ codec can‘t encode character ‘Ixa9‘ in position 111819: illegal multibyte
问题: execjs 执行 JS 报错 解决: 1 找到 external_runtime.py 包,可以通过右键debug按F7找 2. 找到后添加 encoding='utf8' 就可以了 ......
Learn Git in 30 days——第 20 天:修正 commit 过的版本历史记录 Part 2
写的非常好的一个Git系列文章,强烈推荐 原文链接:https://github.com/doggy8088/Learn-Git-in-30-days/tree/master/zh-cn 在版本控制过程中,还有个常见的状況,那就是当执行了多个版本之后,才发现前面有几个版本改错了,例如你不小心把测试中 ......
Node.js ORM Sequelize All In One
Node.js ORM Sequelize All In One Sequelize is an easy-to-use and promise-based Node.js ORM tool for Postgres, MySQL, MariaDB, SQLite, DB2, Microsoft S ......
How to use ESM & TypeScript in Node.js All In One
How to use ESM & TypeScript in Node.js All In One { "compilerOptions": { "module": "NodeNext", // "module": "Node16", } } { "name": "esm-ts-package", ......
《The 13th Shandong ICPC Provincial Collegiate Programming Contest》 vp
简介 挂个 Link 先。 队伍配置:ddl,beiwen 和我 先%%%主力 ddl+关键先生 beiwen,我属于小躺一把。 赛时 放个结果 ......
【NIPS2021】Focal Self-attention for Local-Global Interactions in Vision Transformers
来自微软(*^____^*) 论文地址:[2107.00641] Focal Self-attention for Local-Global Interactions in Vision Transformers (arxiv.org) 代码地址:microsoft/Focal-Transforme ......
The 2023 ICPC Asia Regionals Online Contest (1) ADI
The 2023 ICPC Asia Regionals Online Contest (1) A Qualifiers Ranking Rules 思路:按位次为第一关键字,场次为第二关键字排序即可。 // AC one more times // nndbk #include <bits/std ......
Learn Git in 30 days——第 19 天:设定 .gitignore 忽略清单
写的非常好的一个Git系列文章,强烈推荐 原文链接:https://github.com/doggy8088/Learn-Git-in-30-days/tree/master/zh-cn 在开发项目时,工作目录下可能经常会有新的文件产生 (可能是通过 Visual Studio 工具产生的那些暂存文 ......
Request body too large. The max request body size is 30000000 bytes.
调用 .Net Core 6.0 Web API 报错:Request body too large. The max request body size is 30000000 bytes. Startup.cs增加如下内容: services.Configure<KestrelServerOpt ......
【错误异常】The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*|sql*|insert*|update*|delete*|select*)+".
The content of element type "mapper" must match "(cache-ref|cache|resultMap*|parameterMap*|sql*|insert*|update*|delete*|select*)+". 服务启动异常 排查mapper.xm ......
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、此时会 ......
「游记」The 2023 ICPC Asia Regionals Online Contest (1)
N/A 考试一开始在找签到题(脑子有病吧 最后还是跟着榜做的题。 队友看了 \(L,D\),我看了 \(A\),写完 \(D\) 机房断网了,看别人知道了必须要重启电脑(此时距断网已经过了二十分钟左右了),重启电脑后交了 \(D\) 此时还是校内三题队第一,校内排名也还不错。 继续跟榜做,写 \(D ......
在MySQL的PREPARE中绑定WHERE IN子句参数
1. PREPARE简介 在 MySQL 中,PREPARE 是一种用于准备执行动态 SQL 语句的机制。通过 PREPARE,你可以将一个 SQL 查询或操作的查询计划(执行计划)准备好,然后在稍后的时间点执行它,而不是立即执行。这带来了以下好处: SQL 注入防护: 使用 PREPARE 可以在 ......
you-get run in docker
未知原因, windows 上装不了 you-get. solution 如下: docker run -it --rm python:3.7 bash > pip install --upgrade pip anohter termial: docker ps, get the contatine ......
【Vue】关于 The template root requires exactly one element 报错的解决方案
在<template>内添加<div>总括起来: ......
ubuntu vscode cannot open source file "stddef.h" (dependency of "chrono"). Please run the 'Select IntelliSense Configuration...' command to locate your system headers.C/C++(1696)
cannot open source file "stddef.h" (dependency of "chrono"). Please run the 'Select IntelliSense Configuration...' command to locate your system heade ......
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 ......
Programming abstractions in C阅读笔记:p161-p165
《Programming Abstractions In C》学习第57天,开始第4章“Introduction to Recursion”的学习,p161-p165,总结如下。 一、技术总结 1.recursion vs stepwise refinement 答:p164, The strate ......
The 2nd Universal Cup. Stage 2: SPb
链接:https://contest.ucup.ac/contest/1356 A. Mixed Messages #include "bits/stdc++.h" using namespace std; using i64 = long long; int main() { ios::sync_ ......
CF1017H The Films
Da 1y3。 今天因为初赛实在是没时间(懒得)写题了www,就放一道之前模拟赛场切的题吧。还有这个 CF 评分是假的,难点在于看懂题。 考虑令 \(c_i\) 表示序列中 \(i\) 元素的出现次数,对于一次询问 \(l,r\),令 \(d_i\) 表示 \(a_l,a_{l+1},\cdots, ......
The POM for com.xubo:service_base:jar:0.0.1-SNAPSHOT is missing, no dependency information available
报错信息 [INFO] Scanning for projects... [INFO] [INFO] < com.xubo:service_edu > [INFO] Building service_edu 0.0.1-SNAPSHOT [INFO] [ jar ] [WARNING] The PO ......
GYM104090A Modulo Ruins the Legend - exgcd -
题目链接:https://codeforces.com/gym/104090/problem/A 题解: 转化一下发现只需要求满足下式的解: \[ns+\dfrac{n\times (n+1)}{2}d \equiv C(\bmod m) \]设 \(a=n,b=\dfrac{n(n+1)}{2}, ......
[LeetCode] 1222. Queens That Can Attack the King
On a 0-indexed 8 x 8 chessboard, there can be multiple black queens ad one white king. You are given a 2D integer array queens where queens[i] = [xQue ......
如何使用树莓派搭建一个流媒体服务器 All In One
如何使用树莓派搭建一个流媒体服务器 All In One Raspberry Pi Stream Meidia Server Raspberry Pi Meidia Player OS Emby Media Server https://emby.media/ https://github.com/ ......
MySQL中exists和in的区别
https://blog.csdn.net/m0_50370837/article/details/124239171?ops_request_misc=&request_id=&biz_id=102&utm_term=mysql%20IN%20%E5%92%8CEXISTS%20%E7%9A%84 ......