objectives you for and
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. ......
逍遥自在学C语言 | for循环详解
## 前言 C语言中的循环结构时,`for`循环是最常用的一种。它允许重复执行一段代码,直到满足特定条件为止。 本文将详细介绍`for`循环的用法,并提供相关的可编译运行的C代码示例。 ## 一、人物简介 - 第一位闪亮登场,有请今后会一直教我们C语言的老师 —— 自在。 ![img](https: ......
SystemVerilog for Design Edition 2 Chapter 7
## SystemVerilog for Design Edition 2 Chapter 7 SystemVerilog adds several new operators and procedural statements to the Verilog language that allow ......
5 - Debugging Tools for Memory Issues - 内存问题调试工具
# Debugging Tools for Memory Issues - 内存问题调试工具 [我的博客](https://www.cnblogs.com/arvin-blog/) [程序源码](https://github.com/packtpublishing/hands-on-system-p ......
variable-sized object may not be initialized
``` #include int main(void){ int N; scanf("%d",&N); int a[N] = {0};//错误在这,可以用变量定义数组,但不能初始化 for(int i=0;i int main(void){ int N = 0; scanf("%d",&N); in ......
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
这个异常在springboot,是一个常见的异常,我们引入了mybatis依赖,确没有在.yml文件中配置数据源,这次我配置了数据源,但是因为有二个application.yml和application-dev.yml,没有指定yml的环境,在application.yml中添加指定dev即可 ......
bullets for speaking
describe a person enthusiastic energetic persistent motivated a good team player likes to challenge himself kind generous supportive down-to-earth eas ......
Java开发手册中为什么不建议在for循环中使用"+"进行字符串操作
场景 java开发手册中对于循环体中进行字符串的拼接要求如下: 【推荐】循环体内,字符串的连接方式,使用 StringBuilder 的 append 方法进行扩展。 说明:下例中,反编译出的字节码文件显示每次循环都会 new 出一个 StringBuilder 对象,然后进行 append操作, ......
[重读经典论文] RetinaNet——Focal Loss for Dense Object Detection
1. 前言这篇论文也是何凯明的团队在2017年的论文《Focal Loss for Dense Object Detection》中提出的,网络架构魔改了FPN,因此这篇论文的重点是提出了新的分类Loss——Focal Loss,用一个合适的函数,去度量难分类和易分类样本对总的损失函数的贡献。解决了 ......
Ubuntu使用apt时报错:dpkg: warning: files list file for package 'x' missing
解决 dpkg: warning: files list file for package 'x' missing 问题 一、问题: 在Ubuntu下经过apt-get安装软件或者更新时,出现大量的dpkg: warning日志: dpkg: warning: files list file for ......
[ABC205F] Grid and Tokens 题解
[Grid and Tokens](https://www.luogu.com.cn/problem/AT_abc205_f) ### 题目大意 给定 $n$ 个点和一个 $H\times W$ 的网格,每个点可以放置在 $(A_i,B_i)$ 到 $(C_i,D_i)$ 的矩形中或不放,每一行或一 ......
[ABC205E] White and Black Balls 题解
[White and Black Balls](https://www.luogu.com.cn/problem/AT_abc205_e) ### 题目大意 将 $n$ 个白球,$m$ 个黑球排成一列,要求满足 $\forall i\in[1,n+m],w_i\le b_i+k$,问存在多少种排法。 ......
thymeleaf for循环第一次后中断循环
thymeleaf for循环第一次后中断循环 <div th:each="processList, iterStat : ${dict.processList}" > <th:block th:if="${iterStat.index == 0}"> <span style="width:80%; ......
[LeetCode] 1346. Check If N and Its Double Exist 检查整数及其两倍数是否存在
Given an array `arr` of integers, check if there exist two indices `i` and `j` such that : - `i != j` - `0 这道题给了一个整型数组,让检测是否有一个数字和其倍数同时存在的情况。一看到这道题博主就 ......
Windows debug and troubleshoot
windows debug and troubleshoot # 一。 使用windbg 调试应用的三种方式: 1. 附件到已经运行的进程; 2. 从windbg运行新的程序; 3. 从windbg分析程序的dump 文件; # 二。 计算机架构(x86,x64 ) # 三。 虚拟内存 1. 通过分 ......
3. Liouville's Theorem and Ergodicity
## 为什么会涉及到刘维尔定理和遍历性 在前面的关于微正则系综的平衡态的博客里面,我们对于微正则系综做了一些假设,其中最重要的两个假设是: 1. 微正则系综中各个系统出现的概率都是一样大的,没有哪一个处于某个状态的系统备受青睐 2. 在微正则系综里面,我们在计算平衡态的某些宏观性质时,认为对于相空间 ......
Some details for the Shell which I think is important
拼接字符串, 在定义好变量之后, 输出时候的拼接, 注意无意输出一些空格 。 比如: #!/bin/bash a1="China" a2="${a1}, Japan and Korean are the three important countries in east asia. \n" a3=" ......
application deployment by jenkinsfile and docker compose
Using Jenkins CI/CD for your NodeJS app https://blog.harveydelaney.com/jenkins-build-test-deploy-node-app/ Jenkinsfile https://github.com/internetarch ......
Flask中url_for的使用传参,及多个参数
flask.url_for(endpoint, **values) 参数: endpoint - URL的端点(函数名称) values - URL规则的变量参数 _external - 如果设置为True,则生成绝对URL。服务器地址可以通过SERVER_NAME配置变量更改,默认为localho ......
You must choose a longer password. Kali Linux
使用kali官方提供的针对virtual box使用的img文件,默认账号和密码是kali/kali。 如果尝试使用passwd命令来修改密码,密码过于简单会提示 You must choose a longer password. 如果你不想设置长密码,那该如何解决呢? 很简单,直接使用 sudo ......
w task2 - problem and solution
Read and understand the question -highlight / underline key parts causes ... solutions your opinion I believe ... Introduction: variety of reasons, st ......
Apr 2021-Lucid Dreaming for Experience Replay: Refreshing Past States with the Current Policy
本文提出了用于经验回放的清醒梦(LiDER),一个概念上的新框架,允许通过利用智能体的当前策略来刷新回放体验。 ......
nohup execute command,both write info to file and print on console
nohup ./h1 >>write.log |tail -f write.log ......
Incrementer:Transformer for Class-Incremental Semantic Segmentation with Knowledge Distillation Focusing on Old Class论文阅读笔记
## 摘要 目前已有的连续语义分割方法通常基于卷积神经网络,需要添加额外的卷积层来分辨新类别,且在蒸馏特征时没有对属于旧类别/新类别的区域加以区分。为此,作者提出了基于Transformer的网络incrementer,在学习新类别时只需要往decoder中加入对应的token。同时,作者还提出了对 ......
2023-06-03 Couldn't find a tree builder with the features you requested: lxml. Do you need to install a parser library?
运行一个py文件,问题定位到: html=self.get_html(url) soup=BeautifulSoup(html,'lxml') 解决方案:打开cmd,运行下面代码: pip install lxml 等待安装成功,再次运行py文件就不会报这个错了。 ......
thymeleaf 双层for循环指定循环次数。
<div style="border:1px solid #ccc;margin-bottom: 10px;padding:12px;float:left;width:49%;margin-left:1%;" th:each="dict:${dics}"> <span style="width:80 ......
《Just For Fun》:学习即游戏
# 《Just For Fun》:学习即游戏 最近读完了 Linus 的自传《Just For Fun》,一直想写点东西,但始终苦于工作繁忙,无暇思考该从何写起。技术上自然不用废话,Linux 的存在对于业界的贡献天下皆知,写什么都是画蛇添足。仔细回想读这本书的过程,我始终在意的是作者的思想,他对于 ......
mpi4py.MPI.COMM_WORLD.Get_size失败——mpiexec and python mpi4py gives rank 0 and size 1
参考: https://stackoverflow.com/questions/29264640/mpiexec-and-python-mpi4py-gives-rank-0-and-size-1 运行代码: import mpi4py.MPI as MPI comm = MPI.COMM_WORL ......
How to fix the for...in loop errors in Python All In One
How to fix the for...in loop errors in Python All In One
Python 3
TypeError: string indices must be integers
......