npm workflow automatically deprecate and publish
Automatically publish new version & deprecate the former npm package version
Written in front, if you have the following troubles like me, you need to modify the version in package.json or manually execute npm patch&npm publish every time you publish a new npm package version. And because there are too many release versions when managing your npm packages, and because of some obsessive-compulsive reasons, you want to make the package list more concise, then this article will solve your ...
Some notes from Hexo
Hexo
write on top
Some advice:
Make a backup! Make a backup! Make a backup!
It is recommended to copy a copy of the hexo directory source folder for some magic changes and experimental functions to be added for experimentation.
You can use git backup, you can also take the simplest zip backup
The initial backup is recommended to be established based on basic availability
Create a modify.md file to record your modification records
Install env
ENV:Node.js
Git
Install command:npm install ...
1^2+2^2+···+n^2 Calculation and deduction of stepped area
1^2+2^2+···+n^2阶梯型面积计算推演
The main purpose is to test the work condition of katex rendering.
(n+1)3=(n2+2n+1)⋅(n+1)=n3+2n2+n+n2+2n+1=n3+3n2+3n+1\begin{aligned}
(n+1)^3 &= (n^2+2n+1) \cdot (n+1)\\ &=n^3+2n^2+n+n^2+2n+1\\
&=n^3+3n^2+3n+1
\end{aligned}
(n+1)3=(n2+2n+1)⋅(n+1)=n3+2n2+n+n2+2n+1=n3+3n2+3n+1
(n+1)3−n3=3n3+3n+1(2)(n+1)^3-n^3=3n^3+3n+1
\tag{2}
(n+1)3−n3=3n3+3n+1(2)
n3−(n−1)3=n3−[(n−1)2(n−1)]=n3−[(n2−2n+1)(n−1)]=n3−[n3−2n2+n−(n2−2n+1)]=n3−[n3−2n2+n−n2+2n−1]=n3−[n3−3n2+3n ...
Wordpress Triumph Tips
WordPress deployment using docker
Ref:NAS以docker搭建WordPress,修改 Docker 中的 WordPress 上传限制_docker_
First you have to install docker.
Conditionally install the desktop version.
Docker docs
# 以Ubuntu为例# 卸载旧版本sudo apt-get remove docker docker-engine docker.io containerd runc# 设置安装源sudo apt-get updatesudo apt-get install \ ca-certificates \ curl \ gnupg \ lsb-release# 添加官方源的GPG keysudo mkdir -m 0755 -p /etc/apt/keyringscurl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg - ...
Sever Trash Log
Server
nps reverse proxy
Project here.
Official Doc
There are also NginxProxyManager, NginxWebUI, etc. that have the same effect. Take time to test in the future
nps also has some awesome operations, friends who are interested, we can communicate individually
If there is any problem, welcome to leave a message and give feedback, we will make progress together.
Install
Go to releases of the project address to check the release version of corresponding system, for example, my server is ubuntu ...
云计算practice
阿里云E-HPC
E-HPC(Elastic High Performance Computing)弹性拓展高性能计算。
将计算能力积聚
用并行计算方式解决更大规模的科学、工程和商业问题
E-HPC可以给政府、高校和超算中心提供超算服务,用于研究过程中的数值模拟、仿真验证等工作。让教育专家和科学研究者专注于本学科的基础研究,省去了学习和掌握处理器和超算知识的时间。
优势:
产品规格丰富,根据使用场景灵活选择适用规格。
无需排期,即买即用,快速得到计算结果。
数据保存在云端,高可靠存储
按需自动扩容缩容资源,在保证服务可靠可用的前提下,有效降低成本。
个人使用场景:使用OpenFoam软件进行流体力学仿真计算
OpenFOAM(Open Source Field Operation and Manipulation)是对连续介质力学问题进行数值计算的软件。可进行数据预处理、后处理和自定义求解器,常用于计算流体力学领域。
运行于Linux-cli
操作步骤:
创建E-HPC集群, 软硬件参数配置: 硬件参数-部署方式为标准,包含2个管控节点,1个计算节点和1个登 ...
Finite Element Method
Finte Element Method
Finite Element Method, FEM
It is a ==numerical technique for solving partial differential equations approximate solutions of boundary value problems.==
Developed based on the rapid development of modern computers
Core Idea: “Discretization”/“Numerical Approximation”
Fundamentals of Modern Computational Mechanics