Software

Solving the problem of clangd not finding system headers of MSVC

Clangd is a language server that can work with many editors via a plugin, such as the clangd plugin in VSCode. Generally, the plugin is used in couple with cmake or other tools which can generate a compile-commands.json file. It is a very good plugin, maybe better than the Microsoft's C/C++ plugin. However, there are still some annoying issues, especially on Windows. One of them is that clangd can't find the system headers, such as iostream, fstream. To solve this, one way is to manually specify the include directories of system headers in the clangd configure file.

2024-04-24 / 2 min read

Content Uniformity Tests Implementation Based on Monte-Carlo simulation in C++ and Python

Content uniformity tests process Implemention in C++ and Python codes. Using C++ to speed codes for 100 times.

2022-05-16 / 35 min read

Openblas vs Intel MKL for Numpy and AMD CPUs

Choose the faster library, OpenBLAS or MKL for AMD CPUs.

2022-02-25 / 4 min read

L2 regularization vs Weight decay

2021-09-14 / 2 min read

From Keras to PyTorch

This post is to record the issues I encounted during the implementation from Keras to PyTorch. At first the structure of the CNN modes is introduced. Then, the codes in Keras are shown. Next, The partial implementation in pure Pytorch is given and at last, the implementation in Pytorch Lightning is also presented.

2021-08-22 / 12 min read

如何搭建github pages以及提高访问速度

这个博客已经荒废了很久。由于定位上是一个偏向技术型的博客,记录学习中遇到的一些问题,所以我一般不会把学术研究内容或浅显的问题写在博客里。此外由于不想花钱和时间搭服务器,也不想花时间学习更多的建站知识,所以选择了 github pages 这一平台。本文就如何搭建 github pages 以及提高大陆地区的访问速度做一个简单介绍。

2021-01-26 / 3 min read