Problem 笔者基于已有的库部署了ChatGPT-Next-Web,希望添加Google Analytics用来查看用户使用情况。 Solution 参考官网的说明Next Script for Google Analytics | Next.js (nextjs.org)。 If you are using the gtag.js script to add analytics, u...
old version here Introduction of Coupled-Wave Theory Photonic crystal surface-emitting lasers (PCSELs) can realize one-chip, ultra-large-area, coherent semiconductor lasers. However, it is difficu...
What is conda Anaconda开发的Conda是一个优秀的python包管理器,可以快速解决包的版本依赖问题。同时,利用anaconda安装的python,预置了一系列对科研有用的python包如NumPy、SciPy等。 Install Anaconda can be Free Downloaded. When Install, it is ok to take all se...
Problem VSCode中集成的Jupyter Notebook使用非常方便,但是使用matplotlib默认绘制的图是直接呈现的PNG,失去了很多backend特性,不能交互,很不方便。 Solution 实际上Microsoft已经给出相关说明,见相关GitHub Wiki。 VS code should work with these two options (has been ...
Problem In some special application, the pattern load by machine must be .bmp type picture file. Solution KLayout is a layout viewer and editor wihich is open source. The interface of KLayout First...
Environment CPU GPU System Python R7 7800X3D RX 6650XT WSL2 3.8.16 Linux 5.15.90.1-microsoft-standard-WSL2 x86_64 conda 22.9.0 Ensure you have the latest GPU driver installed. Install...
One-dimension Problem ∂u∂t–∂v∂x=0,∂v∂t–∂u∂x=0.\frac{\partial u}{\partial t} – \frac{\partial v}{\partial x} =0, \quad \frac{\partial v}{\partial t} – \frac{\partial u}{\partial x} =0. ∂t∂u–∂x∂v=0...
A Metric A metric is a value that’s assigned to an IP route for a particular network interface. It identifies the cost that’s associated with using that route. For example, the metric can be value...
Three-layer Planar Slab Waveguide Three-layer planar slab waveguide To analyse planar slab optical waveguide using electromagnetic theory, the three-layer planar slab waveguide is simplified as th...
Problem It is convenient to use GitHub Actions to deploy GitHub Pages. As given by Hexo officially, Official script Create a repo named username.github.io, where usern...