jason | 张小凯

The third anniversary of the blog, let’s take a look at interesting data and talk about design

Original link: https://jasonkayzk.github.io/2022/09/02/%E5%8D%9A%E5%AE%A2%E4%B8%89%E5%91%A8%E5%B9%B4% EF%BC%8C%E6%9D%A5%E7%9C%8B%E7%9C%8B%E6%9C%89%E6%84%8F%E6%80%9D%E7%9A%84%E6% 95%B0%E6%8D%AE%E5%86%8D%E8%81%8A%E8%81%8A%E8%AE%BE%E8%AE%A1/ It has been three full years since September 1, 2019. In the three years of maintaining this blog, I have not done any SEO, nor have I done any promotion, and the UV has reached 20w+; I have accumulated some data for three years to show it here, and I […]

The third anniversary of the blog, let’s take a look at interesting data and talk about design Read More »

Solve the problem that Cargo downloads too slowly

Original link: https://jasonkayzk.github.io/2022/08/14/%E8%A7%A3%E5%86%B3Cargo%E4%B8%8B%E8%BD%BD%E8%BF%87% E6%85%A2%E7%9A%84%E9%97%AE%E9%A2%98/ Change the source of cargo to speed up; Solve the problem that Cargo downloads too slowly Open the cargo directory, which is under ~/.cargo by default: cd ~/.cargo Create the config file: vim config Add the following code: # 放到`$HOME/.cargo/config` 文件中[source.crates-io]registry = “https://github.com/rust-lang/crates.io-index”# 替换成你偏好的镜像源replace-with = ‘sjtu’#replace-with = ‘ustc’# 清华大学[source.tuna]registry = “https://mirrors.tuna.tsinghua.edu.cn/git/crates.io-index.git”#

Solve the problem that Cargo downloads too slowly Read More »

Use yum to install docker error solution in centos7

Original link: https://jasonkayzk.github.io/2022/08/14/centos7%E4%B8%AD%E4%BD%BF%E7%94%A8yum%E5%AE%89%E8%A3%85docker %E6%8A%A5%E9%94%99%E8%A7%A3%E5%86%B3%E6%96%B9%E6%B3%95/ The Docker on the server is a bit old with version 1.13, so I plan to upgrade it; It turned out that after adding the Docker source, the installation using yum reported an error…, here is a summary; Use yum to install docker error solution in centos7 Install Docker First uninstall

Use yum to install docker error solution in centos7 Read More »

Troubleshoot the problem of increasing tcp connections

Original link: https://jasonkayzk.github.io/2022/08/08/%E6%8E%92%E6%9F%A5tcp%E8%BF%9E%E6%8E%A5%E6%95%B0% E4%B8%8D%E6%96%AD%E5%8D%87%E9%AB%98%E7%9A%84%E9%97%AE%E9%A2%98/ A “weird thing” happened recently. The number of TCP connections on my server is increasing at a rate every day. It must be irrelevant where long connections have been made; I have been quite busy recently, I took the time to look at it tonight and solved it; Troubleshoot the problem

Troubleshoot the problem of increasing tcp connections Read More »

Some new thoughts

Original link:https://jasonkayzk.github.io/2022/08/07/some-new-thoughts/ Long time no see. Some new thoughts Haven’t wrote blog for a very long time. It’s not that i got nothing to write, but i didn’t know how to summarize the thing that i’ve done recently. Actually, i’ve been working on LearningOS for a bunch of time, and did make progress (and to

Some new thoughts Read More »

Configure the code style in Clion

Original link: https://jasonkayzk.github.io/2022/07/05/%E9%85%8D%E7%BD%AEClion%E4%B8%AD%E7%9A%84%E4%BB%A3% E7%A0%81%E9%A3%8E%E6%A0%BC/ Generally, when writing C++, we will use Google’s code style; It can be directly configured in Clion; Configure the code style in Clion The configuration is as follows: Editor => Code Style => C/C++ => Set From… Choose Google to save it! Specific official documents: https://www.jetbrains.com/help/clion/predefined-code-styles.html This article is reprinted from:

Configure the code style in Clion Read More »

ELK set password

Original link: https://jasonkayzk.github.io/2022/07/01/ELK%E8%AE%BE%E7%BD%AE%E5%AF%86%E7%A0%81/ ES7.7 and later versions will open the security authentication function for free, and integrate the X-pack plug-in into the open source ElasticSearch version; This article describes how to use X-pack to set a username and password for ElasticSearch; ELK set password Environmental description This article continues to use the ES 7.14.1 version;

ELK set password Read More »

ES modifies the index structure

Original link: https://jasonkayzk.github.io/2022/06/22/ES%E4%BF%AE%E6%94%B9%E7%B4%A2%E5%BC%95%E7%BB%93 %E6%9E%84/ Sometimes we need to modify the index information when using ES; This article summarizes how to modify index information; ES modifies the index structure Indexing in ElasticSearch is similar to the concept of Table in relational databases; If you want to modify some key information of the index, rebuild the index;

ES modifies the index structure Read More »

Share an online compiler

Original link: https://jasonkayzk.github.io/2022/05/28/%E5%88%86%E4%BA%AB%E4%B8%80%E4%B8%AA%E5%9C%A8% E7%BA%BF%E7%BC%96%E8%AF%91%E5%99%A8/ Sometimes we need to view the code corresponding to the assembly requirements, at this time, we can use the Compiler Explorer to view it online in real time; URL: https://godbolt.org/ Github open source repository address: https://github.com/compiler-explorer/compiler-explorer Share an online compiler Foreword – broken thoughts The content of the blog has not

Share an online compiler Read More »

Unit testing with GoogleTest in C++

GoogleTest is a test framework open sourced by Google. Using this framework, we can easily test our projects; This article describes the basic use of GoogleTest; Source code: https://github.com/JasonkayZK/cpp-learn/tree/lib/gtest https://github.com/google/googletest Unit testing with GoogleTest in C++ Install and configure GoogleTest Thanks to vcpkg, we can install and configure the GoogleTest library very easily; vcpkg install

Unit testing with GoogleTest in C++ Read More »