首页 > 其他
Codeforces Round #706 (Div. 2)A-D
#Codeforces Round #706 (Div. 2) 很奇怪的一场,速切完ABC遇到D题看了半天看不懂。D研究了半天看了会EF发现可做,结果wa了,又回来看D,还是把自己绕进去。今天补题的时候秒切D(((。 还是功力不够。 ###A. Split it! 给定n,k和字符串s,n为字符串s ...
分类:其他   时间:2021-03-11 22:20:12    收藏:0  评论:0  赞:0  阅读:17
git公钥的生成、git常用命令
一、Git公钥生成 请参考:https://zhuanlan.zhihu.com/p/81338250 二、Git 常用命令1. git add . 跟踪所有分支修改过的文件2. git add <文件名> 跟踪当前指定文件3. git mv <old> <new> 文件改名4. git rm <文 ...
分类:其他   时间:2021-03-11 22:19:36    收藏:0  评论:0  赞:0  阅读:30
E. Garden of the Sun 构造
E. Garden of the Sun 构造 题目大意: 给你一个 \(n*m\) 的矩阵,由 \(X\) 或者 \(.\) 构成,题目保证所有的 \(X\) 之间不共享边和点,意思是每一个 \(X\) 的附近八个方向这八个位置都没有 \(X\) ,问你是否可以将一部分的 \(.\) 换成 \(X ...
分类:其他   时间:2021-03-11 22:18:41    收藏:0  评论:0  赞:0  阅读:29
with关键字
1. 上下文管理器概念 Context Manager指的是python在执行一段代码前后,做的一些预处理和后处理,使得代码块运行处于一个小的环境(surrounding),出了这个小环境之后,资源释放,环境中的各种配置也失效。 例如在打开文件需要 2. with关键字 关闭,连接数据库后需要关闭连 ...
分类:其他   时间:2021-03-11 22:18:18    收藏:0  评论:0  赞:0  阅读:21
nvarchar(max) still being truncated
nvarchar(max) still being truncated The problem is with implicit conversion. If you have Unicode/nChar/nVarChar values you are concatenating, then SQL ...
分类:其他   时间:2021-03-11 19:14:45    收藏:0  评论:0  赞:0  阅读:39
const关键字
特性 const 关键字用来声明常量,const 声明有以下特点: 声明必须赋初始值; 标识符一般为大写(习惯); 不允许重复声明; 值不允许修改; 块儿级作用域(局部变量); const创建变量代码示例 <!DOCTYPE html> <html> <head> <meta charset="ut ...
分类:其他   时间:2021-03-11 19:14:31    收藏:0  评论:0  赞:0  阅读:26
K8S集群etcd备份与恢复
参考链接: K8S集群多master:Etcd v3备份与恢复 K8S集群单master:Kubernetes Etcd 数据备份与恢复 ETCD系列之一:简介:https://developer.aliyun.com/article/11035 集群节点详情 # kubectl get nodes ...
分类:其他   时间:2021-03-11 19:13:55    收藏:0  评论:0  赞:0  阅读:47
大规模稀疏矩阵对角化方法:Lanczos
#1. A的本征值即其Rayleigh商的极值 ##Rayleigh商定义: 对于nxn实对称阵A,任意非零n维矢量$\vec\neq 0$,定义Rayleigh商为 \(r_A( \vec{x} ) = \frac{ \vec{x}^\top A \vec{x} }{ \vec{x}^\top \ ...
分类:其他   时间:2021-03-11 19:13:43    收藏:0  评论:0  赞:0  阅读:119
简单git代码操作
一,代码获取 git clone https://gitee.com/***.git 二,代码修改提交 修改代码添加到本地 git add . 代码提交 git commit -m “修改描述” 推送到远程 git push 三,多人开发本地修改后更新到最新代码在进行提交 代码存储 git stas ...
分类:其他   时间:2021-03-11 19:12:51    收藏:0  评论:0  赞:0  阅读:26
Docker 更改默认网络
第一种方式 停止服务 systemctl stop docker 编辑配置文件:/etc/docker/daemon.json,增加如下配置: { "bip":"172.254.0.1/16" } 启动服务 systemctl start docker 如有必要,删除原网络路由 ip ro del ...
分类:其他   时间:2021-03-11 19:12:41    收藏:0  评论:0  赞:0  阅读:30
p命名标签和c命名标签
1、p标签 p代表属性properties (1)第一步在xml中添加约束xmlns:p="http://www.springframework.org/schema/p"(2) 注:写上User.class就不用强制类型转换了 2、c标签 c代表构造器construction 使用c的前提必须有有 ...
分类:其他   时间:2021-03-11 19:12:29    收藏:0  评论:0  赞:0  阅读:33
error C2143: 语法错误 : 缺少“)”(在“;”的前面)
今天我在写代码时意外遇到了一个很奇怪的错误提示(如下)代码如下看了很久所提示的那一行也没有错误,回过头检查是不是符号常量SUM定义时出了问题,果然,我在定义末尾加了“;”就很崩溃,把分号去掉就可以正常运行了。记录一下,引以为戒,别再犯这样的错了。
分类:其他   时间:2021-03-11 19:12:14    收藏:0  评论:0  赞:0  阅读:85
crnn 运行
##1.仓库地址 https://github.com/meijieru/crnn.pytorch 原版用lua实现的:https://github.com/bgshih/crnn 需要用到的warp_ctc_pytorch: https://github.com/SeanNaren/warp-ct ...
分类:其他   时间:2021-03-11 19:11:48    收藏:0  评论:0  赞:0  阅读:46
LeetCode654. 最大二叉树
题目 代码 1 class Solution { 2 public: 3 TreeNode* constructMaximumBinaryTree(vector<int>& nums) { 4 //数组长度是一直接返回 5 if(nums.size() == 1) {TreeNode *root = ...
分类:其他   时间:2021-03-11 19:11:10    收藏:0  评论:0  赞:0  阅读:21
1098 Insertion or Heap Sort (25 分) 堆
According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert ...
分类:其他   时间:2021-03-11 19:10:58    收藏:0  评论:0  赞:0  阅读:20
wordpress日志审计插件audit-trail安装
wordpress日志审计插件audit-trail安装下载audit-trail插件https://downloads.wordpress.org/plugin/audit-trail.zip上传到站点目录下的插件存放位置并解压cd/var/www/html/wordpress/wp-content/pluginsrz上传unzipaudit-trail.zip然后到web管理界面---插件--
分类:其他   时间:2021-03-11 19:10:33    收藏:0  评论:0  赞:0  阅读:19
为jenkins设置nginx作为反向代理
新版Jenkins不配置反向代理,直接用ip加端口访问会出现保存不了等错误。 新版增加了CSRF校验,需要在关闭nginx的忽略无效header。在nginx.conf 的http模块添加或修改: ignore_invalid_headers off; 在nginx的conf.d目录新增 jenki ...
分类:其他   时间:2021-03-11 19:10:06    收藏:0  评论:0  赞:0  阅读:34
es查询
1.三级部门分应用统计PXX逻辑 { "query": { "bool": { "must": [ { "term": { "child3DepartmentId": "00065308" } }, { "terms": { "serverUseType": [ "1", "3" ] } }, { ...
分类:其他   时间:2021-03-11 19:09:53    收藏:0  评论:0  赞:0  阅读:24
Markdown学习
##标题 ###二级标题 ####三级标题 ##字体 Hello,World Hello,World Hello,World Hello,World ##引用 坚持下去 ##分割线 ##图片 ##超链接 哔哩哔哩 ##列表 A B C A B C ##表格 姓名 性别 生日 张三 男 2000.1. ...
分类:其他   时间:2021-03-11 17:49:19    收藏:0  评论:0  赞:0  阅读:16
MyBatis的target/classes目录下没有,mybatis.xml
<resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> ...
分类:其他   时间:2021-03-11 17:49:10    收藏:0  评论:0  赞:0  阅读:115
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!