「离开世界之前 一切都是过程」

Roche potential

Binary Stars

Roche potential \[\Phi_R(\vec{r})=-\frac{G M_1 M_{\odot}}{\left|\vec{r}-\vec{r}_1\right|}-\frac{G M_2 M_{\odot}}{\left|\vec{r}-\vec{r}_2\right|}-\frac{1}{2}(\vec{\omega} \times \vec{r})^2\] \[\ve...

Plot stream line using Paraview

txt file

Plot stream line using Paraview Load txt file 不勾选 “Have headers” Field Delimiter Characters 填入 " " Apply 添加 Filter:TableToPoints2 选择相应的 X,Y,Z 轴 这里选择二维数据,勾选上 2D Points Apply 添加 F...

Upgrade nextcloud and install onlyoffice


备份数据 至少备份 /var/www/html/data 和 /var/www/html/config 文件夹,其余文件可不备份 升级 nextcloud 修改 docker-compose.yml 中 nextcloud 版本,然后 docker-compose up,等待升级完成即可。 注意不能跨版本升级,不能 downgrade。 如果不小心跨版本升级,需要从官网 下载升...

Install AUR software


Install AUR software Using yay Using git and pacman reference:archlinux wiki 1 2 3 4 5 cd ~/build git clone https://aur.archlinux.org/package_name.git cd package_name makepkg pacman -U package_n...

docker large log file


remove useless log file 1 2 ls /var/lib/docker/containers/*/*-json.log -lh|awk '{print $9}' echo > *.log

Chinese input method in Gentoo OS


Compile ibus and dependencies 1 root #emerge --ask app-i18n/ibus ibus-libpinyin Add use flag to /etc/portage/package.use/ibus 1 2 dev-qt/qtgui ibus kde-plasma/plasma-desktop ibus 1 root #emerg...

rsync server


rsyncd configuration /etc/rsyncd.conf 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 # /etc/rsyncd.conf # Minimal configuration file for rsync daemon # See rsync(1) and rsyncd.conf(5) ...

ssh tunnel


transter data between two servers which are not directly connected. 1 ssh -f -L 1233:<target IP>:[ssh port] username@<transit server IP> sleep 10; rsync -auvzP -e 'ssh -p 1233' jxliu@1...

Rubygems: Temporary failure in name resolution


Problem A “Temporary failure in name resolution” error appeared when I upgrade Gentoo linux system. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 >>> Downloading 'https://rubygems.org/gems/psyc...

network problem due to mtu value

ssh problem

In the following, I divide the problem finding and problem solving into several stages. # stage 1. hanging on when accessing nfs nfs can be exported in the nfs server and can be mounted in the n...