From 867c3cbe9dde719a88628ba670ef4d732aa1af6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cboa=E2=80=9D?= Date: Fri, 9 Feb 2024 18:19:35 +0800 Subject: [PATCH] Site updated: 2024-02-09 18:19:34 --- 2023/10/09/Game-Porting-Toolkit/index.html | 20 +- 2023/10/09/Playcover/index.html | 17 +- 2023/10/09/homebrew/index.html | 14 +- 2023/10/10/Signals-and-Systems/index.html | 15 +- 2023/10/10/verilog/index.html | 14 +- 2024/02/09/Latex/index.html | 193 ++++++++++++++ 2024/02/09/Linux/index.html | 285 +++++++++++++++++++++ 2024/02/09/Markdown/index.html | 213 +++++++++++++++ 2024/02/09/Mathematica/index.html | 175 +++++++++++++ 2024/02/09/Matlab/index.html | 188 ++++++++++++++ 2024/02/09/docker/index.html | 223 ++++++++++++++++ 2024/02/09/hexo/index.html | 177 +++++++++++++ about/index.html | 12 +- archives/2023/10/index.html | 14 +- archives/2023/index.html | 14 +- archives/2024/02/index.html | 161 ++++++++++++ archives/2024/index.html | 161 ++++++++++++ archives/index.html | 14 +- archives/page/2/index.html | 161 ++++++++++++ categories/apple/index.html | 161 ------------ categories/code/index.html | 20 +- categories/index.html | 12 +- categories/memo/index.html | 161 ++++++++++++ categories/study/index.html | 14 +- css/index.css | 5 +- index.html | 160 +++++++++--- js/main.js | 35 ++- link/index.html | 12 +- page/2/index.html | 189 ++++++++++++++ tags/EE/index.html | 14 +- tags/Hexo/index.html | 161 ++++++++++++ tags/IC-design/index.html | 14 +- tags/LaTeX/index.html | 161 ++++++++++++ tags/Linux/index.html | 161 ++++++++++++ tags/Markdown/index.html | 161 ++++++++++++ tags/Math/index.html | 161 ++++++++++++ tags/Mathematica/index.html | 161 ++++++++++++ tags/Matlab/index.html | 161 ++++++++++++ tags/Playcover/index.html | 161 ++++++++++++ tags/Web/index.html | 161 ++++++++++++ tags/Writing/index.html | 161 ++++++++++++ tags/docker/index.html | 161 ++++++++++++ tags/gaming/index.html | 14 +- tags/iOS/index.html | 161 ++++++++++++ tags/index.html | 12 +- tags/macOS/index.html | 14 +- tags/study/index.html | 161 ------------ tags/verilog/index.html | 14 +- 48 files changed, 4498 insertions(+), 517 deletions(-) create mode 100644 2024/02/09/Latex/index.html create mode 100644 2024/02/09/Linux/index.html create mode 100644 2024/02/09/Markdown/index.html create mode 100644 2024/02/09/Mathematica/index.html create mode 100644 2024/02/09/Matlab/index.html create mode 100644 2024/02/09/docker/index.html create mode 100644 2024/02/09/hexo/index.html create mode 100644 archives/2024/02/index.html create mode 100644 archives/2024/index.html create mode 100644 archives/page/2/index.html delete mode 100644 categories/apple/index.html create mode 100644 categories/memo/index.html create mode 100644 page/2/index.html create mode 100644 tags/Hexo/index.html create mode 100644 tags/LaTeX/index.html create mode 100644 tags/Linux/index.html create mode 100644 tags/Markdown/index.html create mode 100644 tags/Math/index.html create mode 100644 tags/Mathematica/index.html create mode 100644 tags/Matlab/index.html create mode 100644 tags/Playcover/index.html create mode 100644 tags/Web/index.html create mode 100644 tags/Writing/index.html create mode 100644 tags/docker/index.html create mode 100644 tags/iOS/index.html delete mode 100644 tags/study/index.html diff --git a/2023/10/09/Game-Porting-Toolkit/index.html b/2023/10/09/Game-Porting-Toolkit/index.html index bfe8663..f5995a5 100644 --- a/2023/10/09/Game-Porting-Toolkit/index.html +++ b/2023/10/09/Game-Porting-Toolkit/index.html @@ -1,24 +1,24 @@ -Game_Porting_Toolkit | NMSL +Game Porting Toolkit | NMSL - + - + - + -

Game_Porting_Toolkit

基于 Game Porting Toolkit 和 Wine 实现在Mac上安装和运行Windows游戏。需要 macOS 14.0 或更高版本。

+ })(window)

Game Porting Toolkit

Author: boa
Link: http://boa-z.github.io/2023/10/09/Game-Porting-Toolkit/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
Recent Post
verilog
Playcover
homebrew
\ No newline at end of file +
Author: boa
Link: http://boa-z.github.io/2023/10/09/Game-Porting-Toolkit/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
Recent Post
Matlab
Mathematica
docker
hexo
Linux
\ No newline at end of file diff --git a/2023/10/09/Playcover/index.html b/2023/10/09/Playcover/index.html index 52cdd4b..c39b428 100644 --- a/2023/10/09/Playcover/index.html +++ b/2023/10/09/Playcover/index.html @@ -5,20 +5,21 @@ - + - + - + + -

Playcover

Playcover在Mac上运行ios软件。

+ })(window)

Playcover

Playcover在Mac上运行ios软件。

iOS IPA脱壳软件的来源 -> Decrypt IPA

keymapping可以去官方的discord里下载

可用性测试

@@ -170,4 +171,4 @@

对于playcover。

1
ln -s /Volumes/PC711/Applications/Containers/io.playcover.PlayCover /Users/boa/Library/Containers/io.playcover.PlayCover

现在的问题是,链接是构建了,但是playcover认不到(不显示)应用。

-
Author: boa
Link: http://boa-z.github.io/2023/10/09/Playcover/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
Recent Post
verilog
Playcover
homebrew
\ No newline at end of file +
Author: boa
Link: http://boa-z.github.io/2023/10/09/Playcover/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
Recent Post
Matlab
Mathematica
docker
hexo
Linux
\ No newline at end of file diff --git a/2023/10/09/homebrew/index.html b/2023/10/09/homebrew/index.html index 893114c..a2e2605 100644 --- a/2023/10/09/homebrew/index.html +++ b/2023/10/09/homebrew/index.html @@ -5,19 +5,19 @@ - + - + -

homebrew

Homebrew

+ })(window)

homebrew

Homebrew

homebrew 安装

因为game porting toolkit需要,所以先安装homebrew的x86_64版本。

which brew 查看是否安装

@@ -174,4 +174,4 @@

常用指令

brew outdated 查看过时软件

brew pin 锁定软件,防止更新

brew unpin 解锁软件,允许更新

-
Author: boa
Link: http://boa-z.github.io/2023/10/09/homebrew/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
\ No newline at end of file +
Author: boa
Link: http://boa-z.github.io/2023/10/09/homebrew/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
Recent Post
Matlab
Mathematica
docker
hexo
Linux
\ No newline at end of file diff --git a/2023/10/10/Signals-and-Systems/index.html b/2023/10/10/Signals-and-Systems/index.html index 97d700c..071ba54 100644 --- a/2023/10/10/Signals-and-Systems/index.html +++ b/2023/10/10/Signals-and-Systems/index.html @@ -5,20 +5,19 @@ - + - + - -

Signals and Systems

Signals and Systems

+ })(window)

Signals and Systems

Author: boa
Link: http://boa-z.github.io/2023/10/10/Signals-and-Systems/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
Contents
  1. 1. 0 哲哲不能小知识
    1. 1.1. 0.1 欧拉公式
    2. 1.2. 0.2 鼠专里的
    3. 1.3. 0.3 中学里的
  2. 2. 1 绪论
    1. 2.1. 1.1 信号与系统
    2. 2.2. 1.2 信号的描述和分类
    3. 2.3. 1.3 信号的运算
    4. 2.4. 1.4 阶跃信号和冲激信号
    5. 2.5. 1.5 信号的分解
    6. 2.6. 1.6 系统模型及其分类
    7. 2.7. 1.7 线性时不变系统
    8. 2.8. 1.8 LTI系统的分析方法
  3. 3. 2 连续时间系统的时域分析
    1. 3.1. 2.2 微分方程的建立与求解
    2. 3.2. 2.3 起始点的跳变
    3. 3.3. 2.4 零输入响应和零状态响应
    4. 3.4. 2.5 冲激响应和阶跃响应
    5. 3.5. 2.6 卷积
    6. 3.6. 2.7 卷积的性质
  4. 4. 3 傅里叶变换
    1. 4.1. 3.2 周期信号的傅里叶级数
    2. 4.2. 3.3 典型周期信号的傅里叶级数
    3. 4.3. 3.4 Fourier transform
    4. 4.4. 3.5 典型非周期信号的傅立叶变换
    5. 4.5. 3.6 冲激函数和阶跃函数的傅里叶变换
    6. 4.6. 3.7 傅里叶变换的基本性质
    7. 4.7. 3.8 卷积特性(卷积定理)
    8. 4.8. 3.9 Fourier transform of a periodic signal
    9. 4.9. 3.10 Fourier Transform of Sampled Signals
    10. 4.10. 3.11 抽样定理
  5. 5. 4 Laplace 变换、s域分析
    1. 5.1. 4.2 Laplace 变换
    2. 5.2. 4.3 拉氏变换的基本性质
    3. 5.3. 4.4 Laplace 逆变换
    4. 5.4. 4.5 用 Laplace 变换法分析电路、s域元件模型
      1. 5.4.1. 4.5.1 利用拉氏变换求解微分方程
      2. 5.4.2. 4.5.2 用拉氏变换分析系统框图
    5. 5.5. 4.6 系统函数 H(s)
    6. 5.6. 4.7 由系统函数零、极点分布决定时域特性
    7. 5.7. 4.8 由系统函数零、极点分布决定频响特性
    8. 5.8. 4.10 全通函数与最小相移函数的零、极点分布
    9. 5.9. 4.11 线性系统的因果性和稳定性
    10. 5.10. 4.12 双边拉氏变换
  6. 6. 5 傅里叶变换应用
  7. 7. 7 离散时间系统的时域分析
    1. 7.1. 7.2 离散时间信号 – 序列
    2. 7.2. 7.3 离散时间系统的数学 模型-差分方程
    3. 7.3. 7.4 常系数线性差分方程的求解
    4. 7.4. 7.5 离散时间系统的单位样值 (单位冲激) 响应
    5. 7.5. 7.6 卷积(卷积和)
  8. 8. 8 z变换与离散时间系统的z域分析
    1. 8.1. 8.2 z变换的定义、典型序列的z变换
    2. 8.2. 8.3 z变换的收敛域
    3. 8.3. 8.4 逆z变换
    4. 8.4. 8.5 z变换的基本性质
    5. 8.5. 8.6 z变换与 Laplace 变换的关系
    6. 8.6. 8.7 用z变换求解差分方程
    7. 8.7. 8.8 离散系统的系统函数
  9. 9. 11 反馈系统
    1. 9.1. 11.6 信号流图
  10. 10. 12 系统的状态变量分析
    1. 10.1. 12.2 连续时间系统状态方程的建立
    2. 10.2. 12.5 离散时间系统状态方程的建立
  11. 11. 参考资料
Recent Post
verilog
Playcover
homebrew
\ No newline at end of file +
Author: boa
Link: http://boa-z.github.io/2023/10/10/Signals-and-Systems/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
Contents
  1. 1. 0 哲哲不能小知识
    1. 1.1. 0.1 欧拉公式
    2. 1.2. 0.2 鼠专里的
    3. 1.3. 0.3 中学里的
  2. 2. 1 绪论
    1. 2.1. 1.1 信号与系统
    2. 2.2. 1.2 信号的描述和分类
    3. 2.3. 1.3 信号的运算
    4. 2.4. 1.4 阶跃信号和冲激信号
    5. 2.5. 1.5 信号的分解
    6. 2.6. 1.6 系统模型及其分类
    7. 2.7. 1.7 线性时不变系统
    8. 2.8. 1.8 LTI系统的分析方法
  3. 3. 2 连续时间系统的时域分析
    1. 3.1. 2.2 微分方程的建立与求解
    2. 3.2. 2.3 起始点的跳变
    3. 3.3. 2.4 零输入响应和零状态响应
    4. 3.4. 2.5 冲激响应和阶跃响应
    5. 3.5. 2.6 卷积
    6. 3.6. 2.7 卷积的性质
  4. 4. 3 傅里叶变换
    1. 4.1. 3.2 周期信号的傅里叶级数
    2. 4.2. 3.3 典型周期信号的傅里叶级数
    3. 4.3. 3.4 Fourier transform
    4. 4.4. 3.5 典型非周期信号的傅立叶变换
    5. 4.5. 3.6 冲激函数和阶跃函数的傅里叶变换
    6. 4.6. 3.7 傅里叶变换的基本性质
    7. 4.7. 3.8 卷积特性(卷积定理)
    8. 4.8. 3.9 Fourier transform of a periodic signal
    9. 4.9. 3.10 Fourier Transform of Sampled Signals
    10. 4.10. 3.11 抽样定理
  5. 5. 4 Laplace 变换、s域分析
    1. 5.1. 4.2 Laplace 变换
    2. 5.2. 4.3 拉氏变换的基本性质
    3. 5.3. 4.4 Laplace 逆变换
    4. 5.4. 4.5 用 Laplace 变换法分析电路、s域元件模型
      1. 5.4.1. 4.5.1 利用拉氏变换求解微分方程
      2. 5.4.2. 4.5.2 用拉氏变换分析系统框图
    5. 5.5. 4.6 系统函数 H(s)
    6. 5.6. 4.7 由系统函数零、极点分布决定时域特性
    7. 5.7. 4.8 由系统函数零、极点分布决定频响特性
    8. 5.8. 4.10 全通函数与最小相移函数的零、极点分布
    9. 5.9. 4.11 线性系统的因果性和稳定性
    10. 5.10. 4.12 双边拉氏变换
  6. 6. 5 傅里叶变换应用
  7. 7. 7 离散时间系统的时域分析
    1. 7.1. 7.2 离散时间信号 – 序列
    2. 7.2. 7.3 离散时间系统的数学 模型-差分方程
    3. 7.3. 7.4 常系数线性差分方程的求解
    4. 7.4. 7.5 离散时间系统的单位样值 (单位冲激) 响应
    5. 7.5. 7.6 卷积(卷积和)
  8. 8. 8 z变换与离散时间系统的z域分析
    1. 8.1. 8.2 z变换的定义、典型序列的z变换
    2. 8.2. 8.3 z变换的收敛域
    3. 8.3. 8.4 逆z变换
    4. 8.4. 8.5 z变换的基本性质
    5. 8.5. 8.6 z变换与 Laplace 变换的关系
    6. 8.6. 8.7 用z变换求解差分方程
    7. 8.7. 8.8 离散系统的系统函数
  9. 9. 11 反馈系统
    1. 9.1. 11.6 信号流图
  10. 10. 12 系统的状态变量分析
    1. 10.1. 12.2 连续时间系统状态方程的建立
    2. 10.2. 12.5 离散时间系统状态方程的建立
  11. 11. 参考资料
Recent Post
Matlab
Mathematica
docker
hexo
Linux
\ No newline at end of file diff --git a/2023/10/10/verilog/index.html b/2023/10/10/verilog/index.html index 17345ab..d8dd3f6 100644 --- a/2023/10/10/verilog/index.html +++ b/2023/10/10/verilog/index.html @@ -5,21 +5,21 @@ - + - + -

verilog

macOS开发verilog环境配置

+ })(window)

verilog

Author: boa
Link: http://boa-z.github.io/2023/10/10/verilog/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
\ No newline at end of file +
Author: boa
Link: http://boa-z.github.io/2023/10/10/verilog/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
\ No newline at end of file diff --git a/2024/02/09/Latex/index.html b/2024/02/09/Latex/index.html new file mode 100644 index 0000000..df6cd47 --- /dev/null +++ b/2024/02/09/Latex/index.html @@ -0,0 +1,193 @@ +Latex | NMSL + + + + + + + + + + + + + +

Latex

Overleaf升级Premium的白嫖计划

+

LaTeX Cofiguration

+

CTAN 镜像使用帮助

+
+

在一次package update之后,编译出现了错误 ! LaTeX Error: File `fvextra.sty' not found.
+一度以为是模版被改坏了,换成原来的模版拨弄半天,鉴定为更新导致的问题。

+

解决方案: sudo tlmgr update --reinstall-forcibly-removed --all (怀疑和镜像站有关,之前用https://mirrors.hit.edu.cn/CTAN/systems/texlive/tlnet/ 搞半天不行,后来tlmgr自己换了https://mirrors.rit.edu/CTAN/systems/texlive/tlnet,就成功了。)

+
+

关于 tlmgr 使用方法的简介

+

LaTeX Command

+

导出为PDF

+

方法1

+
1
xelatex --shell-escape main.tex
+

方法2

+
1
latexmk
+

把不编号章节加进目录和 PDF 书签

+
1
2
\usepackage{hyperref}
\usepackage{bookmark}
+

模版设置字体

+

请解释下面的代码

+
1
2
3
4
5
6
7
8
9
% 字体汉化设置
\xeCJKsetup{EmboldenFactor=2.5} % 伪粗体等级
% 字体设置
\renewcommand{\songti}{\CJKfontspec[Path=fonts/,FallBack=simsunb.ttf,AutoFakeBold]{simsun.ttc}}
\setCJKmainfont[Path=fonts/,FallBack=simsunb.ttf,AutoFakeBold]{simsun.ttc} % 中文默认为宋体,小四在\documentclass处设置
% \newcommand{\宋体}{\songti}
% 黑体
\renewcommand{\heiti}{\CJKfontspec[Path=fonts/,AutoFakeBold]{simhei.ttf}}
\setCJKsansfont[Path=fonts/]{simhei.ttf}
+

如何直接选择系统中安装的字体?

+

现在在macOS中安装了simsunb、simhei、simsun三个字体,请为我修改代码

+
1
2
3
4
5
6
7
% 字体汉化设置
\xeCJKsetup{EmboldenFactor=2.5} % 伪粗体等级
% 字体设置
\renewcommand{\songti}{\CJKfontspec[AutoFakeBold]{Songti SC}}
\setCJKmainfont[AutoFakeBold]{Songti SC} % 中文默认为宋体,小四在\documentclass处设置
% 黑体
\renewcommand{\heiti}{\CJKfontspec[AutoFakeBold]{Heiti SC}} \setCJKsansfont{Heiti SC}
+

LaTeX 模版

+

武汉大学毕业论文 LaTeX 模版 2022

+

上海电力大学数学系数值计算方法训练课程报告LaTeX模板

+

上海电力大学数学系学位论文模板

+

参考文献管理

+
1
2
3
4
5
6
7
8
9
10
11
12
13
\usepackage[backref]{hyperref} 
\hypersetup{hidelinks}

\begin{document}

CONTENT \cite{ref1, ref2, ref3, ...}

% 参考文献

\bibliographystyle{unsrt}
\bibliography{reference.bib}

\end{document}
+

编译顺序

+
1
2
3
4
xelatex --shell-escape main.tex
bibtex main
xelatex --shell-escape main.tex
xelatex --shell-escape main.tex
+

Reference

+

KaTeX supported functions/symbols

+

TEX Live 指南—2020

+

MacOS 安装 LaTeX

+

Latex排版巨坑——行间距

+
Author: boa
Link: http://boa-z.github.io/2024/02/09/Latex/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
\ No newline at end of file diff --git a/2024/02/09/Linux/index.html b/2024/02/09/Linux/index.html new file mode 100644 index 0000000..e7d2c3a --- /dev/null +++ b/2024/02/09/Linux/index.html @@ -0,0 +1,285 @@ +Linux | NMSL + + + + + + + + + + + + +

Linux

GNU/Linux distribution

+

Debian

+

Index of /debian-cd/current/arm64
+Index of /debian-cd/current/amd64

+

Debian 升级

+
1
2
3
4
5
6
sudo apt update
sudo apt upgrade
sudo apt full-upgrade
sudo apt autoremove
###
sudo reboot
+

Ubuntu

+ +

TrueNAS

+

TrueNAS CORE

+

推荐使用 TrueNAS SCALE

+

Driver

+

NVIDIA drivers installation

+
+

Nvidia driver 390 broken dependencies install preventing uninstall or new install

+

dpkg: error processing package nvidia-driver-390

+

NVIDIA-SMI has failed because it couldn’t communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

+

How to exit the X server to install the NVIDIA driver?

+

Linux Command

+

Linux 命令大全 | 菜鸟教程

+

linux 输出文件夹下所有文件名

+
1
ls | sed "s:^:`pwd`/:"
+

查看硬件信息

+

查看系统版本: cat /etc/debian_version
+查看内核版本: uname -a

+

查看本机ip: ip a or ipconfig

+

查看PCI设备: lspci

+

查看CPU信息: cat /proc/cpuinfo
+查看CPU型号: cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c
+查看CPU频率: cat /sys/devices/system/cpu/cpu*/cpufreq/cpuinfo_cur_freq

+

查看GPU信息: lspci | grep -i vga or lspci | grep -i nvidia

+

查看网卡型号: lspci | grep -i net

+

Linux 查看系统硬件信息(实例详解)

+

Ubuntu18-22.04安装和干净卸载nvidia显卡驱动——超详细、最简单

+

rm

+

删除文件 rm your_file_name
+删除文件夹及其内容 rm -r your_dir_name

+

wifi: sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

+

cat

+

cat命令是显示或连接文件

+
1
2
3
4
# 将文件testfile1、testfile2连接起来,放到文件testfile3中去
cat testfile1 testfile2 > testfile3
# 将文件testfile1、testfile2连接起来,附加到文件testfile3的尾部
cat testfile1 testfile2 >> testfile3
+

unzip

+

unzip命令是Linux中用于解压缩zip文件的指令之一。下面是unzip命令的一些常用操作:

+
    +
  • 解压缩文件:unzip filename.zip
  • +
  • 解压缩到指定目录:unzip filename.zip -d /path/to/dir
  • +
+
+

除了unzip外,解压文件还可以使用targzip等工具。

+
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# 将当前目录下的所有文件打包
tar -cvf  file.tar ./*
# 将打包过的文件解包
tar -xvf file.tar
``` 

### mount

挂载 new disk

```sh
# 查看分区, use lsblk or fdisk
sudo lsblk -f
sudo fdisk -l
# for example, the new disk is /dev/sdb
sudo mkfs.ext4 /dev/sdb
sudo fdisk /dev/sdb
# than input: n, p, default, default, w
sudo mkfs -t ext4 /dev/sdb1
sudo mount /dev/sdb1 /mnt/disk2/
+

如果发现新挂载的硬盘莫得权限,可以试试以下指令: sudo chmod 777 /mnt/disk2

+

sudo mount /dev/sda1 /home/usb/

+

screen

+

screen 是一个可以在多个进程之间多路复用一个物理终端的窗口管理器。Screen 中有会话的概念,用户可以在一个 screen 会话中创建多个 screen 窗口,在每一个 screen 窗口中就像操作一个真实的终端一样。Screen 可以在同一终端中同时运行多个命令行界面,而且可以在网络连接中断后重新连接,恢复会话。

+

Screen 的使用方法如下:

+
    +
  • 新建 screen 会话:screen -S session_name
  • +
  • 恢复 screen 会话:screen -r session_name
  • +
  • 列出所有 screen 会话:screen -ls
  • +
  • 删除 screen 会话:screen -X -S session_name quit
  • +
+

| > >>

+

> 重定向到文件,会覆盖原有内容

+

>> 重定向到文件,会追加到原有内容后面

+

| 管道,将前一个命令的输出作为后一个命令的输入

+

sudo

+

sudo命令是Linux中用于以其他用户的身份来执行命令的指令之一。下面是sudo命令的一些常用操作:

+
    +
  • 以root身份执行命令:sudo command
  • +
  • 以其他用户身份执行命令:sudo -u username command
  • +
+

boa is not in the sudoers file.

+
1
2
chmod u+w /etc/sudoers
nano /etc/sudoers
+

root ALL=(ALL) ALL, 在他下面添加 xxx ALL=(ALL) ALL (这里的xxx是你的用户名)

+

env

+

env命令是Linux中用于显示系统环境变量的指令之一。下面是env命令的一些常用操作:

+
    +
  • 显示所有环境变量:env
  • +
  • 显示指定环境变量:env varname
  • +
  • 设置环境变量:env varname=value
  • +
  • 删除环境变量:env -u varname
  • +
  • 以指定环境变量执行命令:env varname=value command
  • +
+

chmod

+

chmod命令的功能是改变文件或目录的存取权限,因为文件的存取权限的表示方式有符号形式和数字形式两种,故命令形式也有两种.

+

第一位表示修改那一类存取权限

+

u: 为所有者权限
+g: 为组权限
+o: 为其他用户权限
+a: 为所有三类权限

+

第二位表示进行什么操作

+

+: 增加权限
+-: 减少权限
+=: 赋予权限

+

第三位表示权限

+
1
2
3
4
# 7代表111,即可读可写可执行
chmod 754 testfile1
 
chmod g+w testfile1
+

chown

+

chown boa xxfolder 修改文件所有者。

+

bash

+

bashzsh 的区别

+

who

+

linux 远程注销用户,linux踢出远程登录用户命令

+
1
2
3
w # 查看当前登录用户
who am i # 查看当前登录用户
pkill -kill -t pts/0 # 踢出用户
+

其它的一些

+

pwd 显示当前工作目录。

+

grep 在文件中查找指定字符串。

+

cmp 比较两个文件是否有差异。

+

find 在文件系统中查找文件。

+

wc 统计文件中的字节数、字数、行数。 wc -l 统计行数。wc -w 统计字数。wc -c 统计字节数。

+

linux_负载分析之LoadAverage

+

Linux Configuration

+

笔记本Ubuntu 设置合盖不自动休眠

+

修改/etc/systemd/logind.conf,将其中的#HandleLidSwitch=suspend修改为HandleLidSwitch=ignore,然后用service systemd-logind restart重启服务,使配置生效

+
+

Ubuntu设置静态IP地址的几种方法

+

编辑/etc/netplan/01-network-manager-all.yaml

+
1
2
3
4
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
+

将其修改为

+
1
2
3
4
5
6
7
8
9
10
11
# Let NetworkManager manage all devices on this system
network:
ethernets:
enp3s0:
addresses: [192.168.71.5/24] # 设置静态IP地址和掩码
gateway4: 192.168.71.1 # 设置网关地址
dhcp4: false
nameservers:
addresses: [114.114.114.114, 8.8.8.8] #设置主、备DNS
version: 2
renderer: networkd
+

输入命令netplan apply使改动生效,然后reboot重启系统.

+

在22.04,会出现如下报错。Ubuntu 报错 WARNING:gateway4 has been deprecated, use default routes instead… 解决方案

+

将其修改为

+
1
2
3
4
5
6
7
8
9
10
11
12
13
# Let NetworkManager manage all devices on this system
network:
ethernets:
enp3s0:
addresses: [192.168.71.5/24] # 设置静态IP地址和掩码
routes:
- to: default
via: 192.168.71.1
dhcp4: false
nameservers:
addresses: [114.114.114.114, 8.8.8.8] #设置主、备DNS
version: 2
renderer: networkd
+

Conmi的正确答案——NetworkManager配置网络后报错“Cannot call openvswitch: ovsdb-server.service is not running.”

+
1
apt install openvswitch-switch -y
+
Author: boa
Link: http://boa-z.github.io/2024/02/09/Linux/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
\ No newline at end of file diff --git a/2024/02/09/Markdown/index.html b/2024/02/09/Markdown/index.html new file mode 100644 index 0000000..5501113 --- /dev/null +++ b/2024/02/09/Markdown/index.html @@ -0,0 +1,213 @@ +Markdown | NMSL + + + + + + + + + + + + +

Markdown

关于Markdown的种种。

+

图床

+

试一试SM.MS,其后台管理页面
+这玩意注册需要邮箱,现用屑126凑合一下。
+注册完了以后发现,还需要一个管理工具,就先试试PicGo

+

mermaid

+

About Mermaid

+

MarkDown绘图mermaid流程graph

+

Foam

+

在vscode中建立双向链接

+
+

Command

+

首先Ctrl + shift + P打开命令窗口,然后输入下面的命令

+ + + + + + + + + + + + + +
功能命令
打开图谱Foam : Show graph
+

使用 Foam: Show Graph 来查看联系

+

foam

+

foam入门与教程

+

Math

+

markdown中的数学公式,如 f(x)=sinxf(x) = \sin x

+

在vscode中,需要配合插件Markdown Preview Enhanced使用。
+在默认配置的taio中不能正常显示。

+

插入音乐

+

试了试在markdown中插入音乐,发现可以用<audio>标签。如果要插入网易云音乐的链接,src的格式是https://music.163.com/song/media/outer/url?id=歌曲id.mp3,其中歌曲id可以在网页版的网易云音乐中找到。不过网易自己给的iframe代码显示不了,b站的iframe代码也不行。

+

Marp

+

看到一个用markdown制作ppt的工具,可以考虑一下。

+

Marp

+

又一款VSCode神级插件Marp,用Markdown来做PPT

+

我开发了一套 Marp 主题,Markdown 直接转换的 PPT 也可以很好看:Awesome Marp

+

Marp的模版

+ +

OCR

+

尝试让claude将pdf转为markdown,但是公式识别都错的,只能手动了。

+

关于ocr公式,可以试试nougat

+
1
2
nougat /Users/boa/Downloads/数字信号处理主观题习题集.pdf -o /Users/boa/Downloads/
nougat "D:\test1.pdf" -o "D:\test"
+

运行后,又

+

指出要comet.ml的api,只能火速注册一个,api 见官网 -> comet.ml (非必需)

+
1
2
export COMET_API_KEY='YOUR_LONG_API_TOKEN'
export PYTORCH_MPS_DISABLE=1
+

寄,b Mac跑torch问题多多,内存也寄。 op上轻松秒杀了,但是不支持中文。找了点原版的英语教材,看公式都秒杀了。输出的mmd文件需要安装vscode插件 -> mathpix-markdown-it

+

mdBook

+

mdBook

+

mdBook 中文文档

+
Author: boa
Link: http://boa-z.github.io/2024/02/09/Markdown/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
Recent Post
Matlab
Mathematica
docker
hexo
Linux
\ No newline at end of file diff --git a/2024/02/09/Mathematica/index.html b/2024/02/09/Mathematica/index.html new file mode 100644 index 0000000..ccb472e --- /dev/null +++ b/2024/02/09/Mathematica/index.html @@ -0,0 +1,175 @@ +Mathematica | NMSL + + + + + + + + + + + + + +

Mathematica

download and crack

+

Mathematica – appstorrent

+

在 VS Code 中使用 Wolfram 笔记本

+

使用

+

下面的板块参考官方文档建立:Wolfram 语言与系统 参考资料中心

+

FourierTransform

+

FourierTransform

+

{a,b} 的某些通用表示形式:{0,1} (缺省:现代物理),{1,-1} (纯数学;系统工程), {-1,1} (传统物理), 以及 {0,-2Pi} (信号处理).

+

f(t)=sin5tf(t) = sin5t +

+
1
FourierTransform[Exp[-t^2] Sin[t], t, \[Omega]]
+

FourierParameters

+

Fourier[{1, 2, 3, 4, 5, 6}, FourierParameters -> {1, 1}]

+

Limit

+

Limit

+

limx[(1+1x)xe]x\lim_{x \to \infty} \left[\frac{(1+\frac{1}{x})^x}{e}\right]^{x} +

+
1
Limit[(((1 + 1/x)^x)/E)^x, {x -> Infinity}]
+
Author: boa
Link: http://boa-z.github.io/2024/02/09/Mathematica/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
Recent Post
Matlab
Mathematica
docker
hexo
Linux
\ No newline at end of file diff --git a/2024/02/09/Matlab/index.html b/2024/02/09/Matlab/index.html new file mode 100644 index 0000000..5278853 --- /dev/null +++ b/2024/02/09/Matlab/index.html @@ -0,0 +1,188 @@ +Matlab | NMSL + + + + + + + + + + + + + +

Matlab

Matlab Install

+

Matlab Install on macOS

+

macOS crack -> Matlab R2023b

+

截止 2024-01-01,matlab 2023b 在 macOS 14 上会崩溃,属实难蚌。经过测试,最早也要 2021b 可以在 macOS 14.2.1 上正常运行。

+

Matlab Crash on Sonoma(macOS 14.0)

+
+

Hello, the issue is not with the JAVA JDK, it’s with the XCode version 15.0 with macOS Sonoma.
+You can find in apple silicon requirements MATLAB is supported with XCode 14.0 with macOS Ventura. https://www.mathworks.com/support/requirements/apple-silicon.html
+From the call stack the system is calling dylib files from /usr/lib/system “libsystem_platform, and libsystem_pthread”. which are not comaptiable with the requirements for MATLAB.
+Nothing can be done for now, either MATLAB get an update for XCode 15, and macOS Sonoma. Or you can downgrade your macOS version.

+
+

Is MATLAB compatible with macOS Sonoma?

+

Why does MATLAB R2023b crash on my Apple Silicon Mac after installing a Java 8 JRE? – 鉴定为还是不行。

+
1
2
cd /Applications/MATLAB_R2023b.app/bin/
./matlab_jenv /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre
+

Output:

+
1
2
3
4
5
6
7
JavaEnvironment with properties 
Version : openjdk version "1.8.0_392"
OpenJDK Runtime Environment Corretto-8.392.08.1 (build 1.8.0_392-b08)
OpenJDK 64-Bit Server VM Corretto-8.392.08.1 (build 25.392-b08, mixed mode)
Home : /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre
Library : /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre/lib/server/libjvm.dylib
Configuration : /Library/Java/JavaVirtualMachines/amazon-corretto-8.jdk/Contents/Home/jre
+

关于macOS java -> Amazon Corretto 8

+
1
/usr/libexec/java_home --verbose
+

Matlab Install on Windows

+

MATLAB R2023b安装教程

+

Matlab Uninstall

+

卸载 MathWorks 产品

+

常用指令

+

计算卷积: conv(x, y)

+

线性规划: linprog(f, A, b, Aeq, beq, lb, ub)

+ +

Simulink 快速入门

+

Reference

+

Matlab安装教程-全程演示最新版Matlab 2023a 安装、下载全部细节!!

+

0零基础入门matlab教程基础版,听懂人话就能学会!毕业设计/研究生/神经网络工具箱/机器学习/数学建模matlab

+

数学建模编程 | Matlab基础入门与算法实战课【基础知识、绘图技巧、函数脚本、算法案例等

+
Author: boa
Link: http://boa-z.github.io/2024/02/09/Matlab/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
\ No newline at end of file diff --git a/2024/02/09/docker/index.html b/2024/02/09/docker/index.html new file mode 100644 index 0000000..eb028f7 --- /dev/null +++ b/2024/02/09/docker/index.html @@ -0,0 +1,223 @@ +docker | NMSL + + + + + + + + + + + + + +

docker

docker的一个教程

+

docker install

+

Install docker on macOS

+

macOS配置docker

+

macOS docker desktop换源

+
1
2
3
4
5
6
{
"registry-mirrors": [
"https://hub-mirror.c.163.com",
"https://mirror.baidubce.com"
]
}
+

Install docker on Debian

+

Install Docker Engine on Ubuntu

+

Install Docker Engine on Debian

+

Set up Docker’s apt repository.

+
1
2
3
4
5
6
7
8
9
10
11
12
13
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg

# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
+

Install the Docker packages.

+
1
apt install docker-ce docker-ce-cli containerd.io
+

docker Cofiguration

+

换源

+

docker command

+

列出所有容器:docker ps -a
+列出所有镜像:docker images -a
+删除容器:docker rm container_id
+删除镜像:docker rmi image_id

+

查看容器日志:docker logs container_id

+

docker 常用容器

+

qbittorrent

+

(orengepi)

+
1
2
3
4
5
6
7
8
9
10
11
12
13
docker run -d \
--name=qbittorrent \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Etc/UTC \
-e WEBUI_PORT=8080 \
-p 8080:8080 \
-p 6881:6881 \
-p 6881:6881/udp \
-v /home/usb:/config \
-v /home/usb:/downloads \
--restart unless-stopped \
linuxserver/qbittorrent:latest
+

(ThinkPad-T420i)

+
1
2
3
4
5
6
7
8
9
10
11
12
13
docker run -d \
--name=qbittorrent \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Etc/UTC \
-e WEBUI_PORT=8080 \
-p 8080:8080 \
-p 6881:6881 \
-p 6881:6881/udp \
-v /home/boa/Downloads:/config \
-v /home/boa/Downloads:/downloads \
--restart unless-stopped \
linuxserver/qbittorrent:latest
+

homeassistant

+

http://192.168.71.5:8123

+
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 创建一些目录
mkdir /home/homeassistant/www
mkdir /home/homeassistant/custom_components
mkdir /home/homeassistant/custom_components/hacs

mkdir /boa/Downloads/homeassistant/www
mkdir /boa/Downloads/homeassistant/custom_components
mkdir /boa/Downloads/homeassistant/custom_components/hacs
# 启动
docker run -d \
--name homeassistant \
--privileged \
--restart=unless-stopped \
-e TZ=Asia/Shanghai \
-v /boa/Downloads/homeassistant:/config \
--network=host \
homeassistant/home-assistant
+

Docker+HomeAssistant+HACS+设备接入教程

+

hacs/integration

+

User Documentation

+

openspeedtest

+

openspeedtest

+

http://192.168.71.5:3000

+

可以使用 docker ,还算蛮方便的 openspeedtest/latest

+
1
sudo docker run --restart=unless-stopped --name openspeedtest -d -p 3000:3000 -p 3001:3001 openspeedtest/latest
+

docker-easyconnect

+

macOS docker install easy connect

+

https://vpn.shiep.edu.cn/

+

访问 https://vpn.shiep.edu.cn/por/ec_pkg.csp?platform=linux 查看需要安装的版本

+

例如:linux_01 7.6.3.0 0 linux_01 7.6.3.0 0 linux_01 7.6.3.0 0 linux_01 7.6.3.0 0

+

127.0.0.1:8080

+

docker-easyconnect
+docker-easyconnect/doc/usage.md
+EasyConnect 版本问题在此反馈

+

纯命令行版 EasyConnect(amd64 架构)

+
1
2
3
4
5
6
docker run --name easyconnect --device /dev/net/tun --cap-add NET_ADMIN -ti \
-p 127.0.0.1:10800:1080 \
-p 127.0.0.1:18888:8888 \
-e EC_VER=7.6.7 \
-e CLI_OPTS="-d 210.35.90.35 -u 20211991 -p SUEP_nmsl2022" \
hagb/docker-easyconnect:cli
+

运行图形界面版 EasyConnect(x86、amd64、arm64、mips64el 架构)

+
1
2
3
4
5
6
7
8
9
docker run --rm --device /dev/net/tun --cap-add NET_ADMIN -ti \
-e PASSWORD=114514 \
-e URLWIN=1 \
-e DISABLE_PKG_VERSION_XML=1 \
-v $HOME/.ecdata:/root \
-p 127.0.0.1:5901:5901 \
-p 127.0.0.1:10800:1080 \
-p 127.0.0.1:18888:8888 \
hagb/docker-easyconnect:7.6.3
+

连接

+

查看端口占用 lsof -i tcp:8888

+

https://vpn.shiep.edu.cn/por/shortcut.csp?type=cs&destUrl=service.csp&autoOpen=1&language=en_US&is_reminded=1&ea_port=54530&id=cd00d2204324f825

+

https://jw.shiep.edu.cn/eams/index.action

+
1
2
3
4
5
6
7
8
curl --proxy socks5://127.0.0.1:1080 https://jw.shiep.edu.cn/eams/index.action
curl --proxy socks5h://127.0.0.1:1080 https://jw.shiep.edu.cn/eams/index.action

curl --socks5 localhost:1080 -v ipinfo.io

curl --socks5 127.0.0.1:1080 -v https://jw.shiep.edu.cn/eams/

telnet 127.0.0.1:8888
+

output

+
1
2
3
4
5
(base) boa@HX-2 myNotes % telnet socks5://127.0.0.1:8888
Trying 198.18.0.87...
Connected to socks5://127.0.0.1:8888.
Escape character is '^]'.
Connection closed by foreign host.
+

配置 Clash 代理规则

+
1
2
3
4
5
6
7
8
9
10
11
port: 7890
socks-port: 7891
allow-lan: false
mode: Rule
log-level: info
external-controller: 127.0.0.1:9090

proxies:
- {"name": "vpn", "type": "socks5", "server": "127.0.0.1", "port": "1080"}
rules:
- IP-CIDR,222.192.6.0/24,vpn
+

遇到的问题

+

svpn stop!与user “xxx” has already logged in!反复出现 #216

+
1
2
3
4
user "20211991" auto login successfully
user "20211991" has already logged in!
svpn stop!
Terminated
+

Portainer

+

docker 管理面板

+

Install Portainer CE with Docker on Linux

+
Author: boa
Link: http://boa-z.github.io/2024/02/09/docker/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
\ No newline at end of file diff --git a/2024/02/09/hexo/index.html b/2024/02/09/hexo/index.html new file mode 100644 index 0000000..46bdfe0 --- /dev/null +++ b/2024/02/09/hexo/index.html @@ -0,0 +1,177 @@ +hexo | NMSL + + + + + + + + + + + + + +

hexo

使用 Hexo 搭建个人网站

+

Install and Setup

+

hexo

+

GitHub+Hexo 搭建个人网站详细教程

+

Command:

+
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
npm install hexo -g # 安装Hexo
npm update hexo -g # 升级
hexo init # 初始化博客

命令简写
hexo n "我的博客" # == hexo new "我的博客" 新建文章
hexo g # == hexo generate 生成
hexo s # == hexo server 启动服务预览
hexo d # == hexo deploy 部署

hexo server # Hexo会监视文件变动并自动更新,无须重启服务器
hexo server -s # 静态模式
hexo server -p 5000 # 更改端口
hexo server -i 192.168.1.1 # 自定义 IP
hexo clean # 清除缓存,若是网页正常情况下可以忽略这条命令
+

Theme

+

hexo-theme-shokaX

+

shokaX-docs

+

Butterfly 安裝文檔(一) 快速開始

+

鉴定为要运行是非常简单,之前难蚌半天原因在于theme的配置文件藏在npm_modules里面,后面按教程来就行。
+目前遇到的两个问题是:

+
    +
  • katex / mathjax 不能渲染
  • +
  • categories 的用法还不太清楚
  • +
+

现在上传了几份之前写的文档,可以看看效果。

+

Usage

+

现在整了个Github Pages,有空可以把本项目的部分内容丢进去。

+
1
2
3
4
5
Title: Hexo
date: 2024-02-08 22:00:00
description: 使用 Hexo 搭建个人网站
tags: [Web, Hexo]
categories: [Code]
+
Author: boa
Link: http://boa-z.github.io/2024/02/09/hexo/
Copyright Notice: All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Announcement
This is my Blog
Recent Post
Matlab
Mathematica
docker
hexo
Linux
\ No newline at end of file diff --git a/about/index.html b/about/index.html index 45c339c..47c885e 100644 --- a/about/index.html +++ b/about/index.html @@ -5,19 +5,19 @@ - + -
Announcement
This is my Blog
Recent Post
verilog
Playcover
homebrew
+ })(window)
Announcement
This is my Blog
Recent Post
Matlab
Mathematica
docker
hexo
Linux
Categories
Info
Article :
5
UV :
PV :
Last Update :
\ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/archives/2023/10/index.html b/archives/2023/10/index.html index bacfdae..58431d8 100644 --- a/archives/2023/10/index.html +++ b/archives/2023/10/index.html @@ -5,17 +5,17 @@ - + -
    Articles - 5
    2023
    Signals and Systems
    verilog
    Playcover
    homebrew
    Game_Porting_Toolkit
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Articles - 5
    2023
    Signals and Systems
    verilog
    Playcover
    homebrew
    Game Porting Toolkit
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/archives/2023/index.html b/archives/2023/index.html index 27a4e99..696c65e 100644 --- a/archives/2023/index.html +++ b/archives/2023/index.html @@ -5,17 +5,17 @@ - + -
    Articles - 5
    2023
    Signals and Systems
    verilog
    Playcover
    homebrew
    Game_Porting_Toolkit
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Articles - 5
    2023
    Signals and Systems
    verilog
    Playcover
    homebrew
    Game Porting Toolkit
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/archives/2024/02/index.html b/archives/2024/02/index.html new file mode 100644 index 0000000..68ed12c --- /dev/null +++ b/archives/2024/02/index.html @@ -0,0 +1,161 @@ +February 2024 | NMSL + + + + + + + + + + +
    Articles - 7
    2024
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Markdown
    Latex
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/archives/2024/index.html b/archives/2024/index.html new file mode 100644 index 0000000..ebdf52e --- /dev/null +++ b/archives/2024/index.html @@ -0,0 +1,161 @@ +2024 | NMSL + + + + + + + + + + +
    Articles - 7
    2024
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Markdown
    Latex
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/archives/index.html b/archives/index.html index 3ac3a9c..b50f71e 100644 --- a/archives/index.html +++ b/archives/index.html @@ -5,17 +5,17 @@ - + -
    Articles - 5
    2023
    Signals and Systems
    verilog
    Playcover
    homebrew
    Game_Porting_Toolkit
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Articles - 12
    2024
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Markdown
    Latex
    2023
    Signals and Systems
    verilog
    Playcover
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/archives/page/2/index.html b/archives/page/2/index.html new file mode 100644 index 0000000..812c76a --- /dev/null +++ b/archives/page/2/index.html @@ -0,0 +1,161 @@ +Archives | NMSL + + + + + + + + + + +
    Articles - 12
    2023
    homebrew
    Game Porting Toolkit
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/categories/apple/index.html b/categories/apple/index.html deleted file mode 100644 index 1a5cb6b..0000000 --- a/categories/apple/index.html +++ /dev/null @@ -1,161 +0,0 @@ -Category: apple | NMSL - - - - - - - - - - -
    Category - apple
    2023
    Playcover
    Game_Porting_Toolkit
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    - - Categories - -
    -
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/categories/code/index.html b/categories/code/index.html index abbc016..e8c4ddf 100644 --- a/categories/code/index.html +++ b/categories/code/index.html @@ -1,21 +1,21 @@ -Category: code | NMSL +Category: Code | NMSL - + - + -
    Category - code
    2023
    verilog
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Category - Code
    2024
    Matlab
    Mathematica
    docker
    hexo
    Markdown
    Latex
    2023
    verilog
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/categories/index.html b/categories/index.html index d297d34..d7ced9f 100644 --- a/categories/index.html +++ b/categories/index.html @@ -5,19 +5,19 @@ - + -
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/categories/memo/index.html b/categories/memo/index.html new file mode 100644 index 0000000..b5f6c35 --- /dev/null +++ b/categories/memo/index.html @@ -0,0 +1,161 @@ +Category: memo | NMSL + + + + + + + + + + +
    Category - memo
    2024
    Linux
    2023
    Playcover
    homebrew
    Game Porting Toolkit
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/categories/study/index.html b/categories/study/index.html index d7607e5..d61fdc3 100644 --- a/categories/study/index.html +++ b/categories/study/index.html @@ -5,17 +5,17 @@ - + -
    Category - study
    2023
    Signals and Systems
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Category - study
    2023
    Signals and Systems
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/css/index.css b/css/index.css index 6176ab1..433c7fd 100644 --- a/css/index.css +++ b/css/index.css @@ -4290,14 +4290,15 @@ h1.page-title + .tag-cloud-list { margin: 20px auto; } #sidebar #sidebar-menus .menus_items { - padding: 0 5px; + padding: 0 10px; } #sidebar #sidebar-menus .menus_items .site-page { position: relative; display: block; - padding: 6px 30px 6px 22px; + padding: 3px 28px 3px 20px; color: var(--font-color); font-size: 1.15em; + border-radius: 6px; } #sidebar #sidebar-menus .menus_items .site-page:hover { background: var(--text-bg-hover); diff --git a/index.html b/index.html index 719aa1e..53ea601 100644 --- a/index.html +++ b/index.html @@ -5,17 +5,17 @@ - + -
    \ No newline at end of file diff --git a/js/main.js b/js/main.js index a22b57f..2929801 100644 --- a/js/main.js +++ b/js/main.js @@ -66,7 +66,7 @@ document.addEventListener('DOMContentLoaded', function () { const { highlightCopy, highlightLang, highlightHeightLimit, plugin } = highLight const isHighlightShrink = GLOBAL_CONFIG_SITE.isHighlightShrink const isShowTool = highlightCopy || highlightLang || isHighlightShrink !== undefined - const $figureHighlight = plugin === 'highlighjs' ? document.querySelectorAll('figure.highlight') : document.querySelectorAll('pre[class*="language-"]') + const $figureHighlight = plugin === 'highlight.js' ? document.querySelectorAll('figure.highlight') : document.querySelectorAll('pre[class*="language-"]') if (!((isShowTool || highlightHeightLimit) && $figureHighlight.length)) return @@ -75,23 +75,23 @@ document.addEventListener('DOMContentLoaded', function () { const highlightShrinkEle = isHighlightShrink !== undefined ? '' : '' const highlightCopyEle = highlightCopy ? '
    ' : '' - const copy = (text, ctx) => { + const alertInfo = (ele, text) => { + if (GLOBAL_CONFIG.Snackbar !== undefined) { + btf.snackbarShow(text) + } else { + const prevEle = ele.previousElementSibling + prevEle.textContent = text + prevEle.style.opacity = 1 + setTimeout(() => { prevEle.style.opacity = 0 }, 800) + } + } + + const copy = ctx => { if (document.queryCommandSupported && document.queryCommandSupported('copy')) { document.execCommand('copy') - if (GLOBAL_CONFIG.Snackbar !== undefined) { - btf.snackbarShow(GLOBAL_CONFIG.copy.success) - } else { - const prevEle = ctx.previousElementSibling - prevEle.textContent = GLOBAL_CONFIG.copy.success - prevEle.style.opacity = 1 - setTimeout(() => { prevEle.style.opacity = 0 }, 700) - } + alertInfo(ctx, GLOBAL_CONFIG.copy.success) } else { - if (GLOBAL_CONFIG.Snackbar !== undefined) { - btf.snackbarShow(GLOBAL_CONFIG.copy.noSupport) - } else { - ctx.previousElementSibling.textContent = GLOBAL_CONFIG.copy.noSupport - } + alertInfo(ctx, GLOBAL_CONFIG.copy.noSupport) } } @@ -105,8 +105,7 @@ document.addEventListener('DOMContentLoaded', function () { range.selectNodeContents($buttonParent.querySelectorAll(`${preCodeSelector}`)[0]) selection.removeAllRanges() selection.addRange(range) - const text = selection.toString() - copy(text, ele.lastChild) + copy(ele.lastChild) selection.removeAllRanges() $buttonParent.classList.remove('copy-true') } @@ -783,7 +782,7 @@ document.addEventListener('DOMContentLoaded', function () { const commentContainer = document.getElementById('post-comment') const handleSwitchBtn = () => { commentContainer.classList.toggle('move') - if (!switchDone) { + if (!switchDone && typeof loadOtherComment === 'function') { switchDone = true loadOtherComment() } diff --git a/link/index.html b/link/index.html index 4eb1154..7e580f2 100644 --- a/link/index.html +++ b/link/index.html @@ -5,19 +5,19 @@ - + -
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/page/2/index.html b/page/2/index.html new file mode 100644 index 0000000..98a0a58 --- /dev/null +++ b/page/2/index.html @@ -0,0 +1,189 @@ +NMSL - NMSL + + + + + + + + + + +
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/EE/index.html b/tags/EE/index.html index 4f65240..d7fcc00 100644 --- a/tags/EE/index.html +++ b/tags/EE/index.html @@ -5,17 +5,17 @@ - + -
    Tag - EE
    2023
    Signals and Systems
    verilog
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Tag - EE
    2023
    Signals and Systems
    verilog
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/Hexo/index.html b/tags/Hexo/index.html new file mode 100644 index 0000000..4af93f1 --- /dev/null +++ b/tags/Hexo/index.html @@ -0,0 +1,161 @@ +Tag: Hexo | NMSL + + + + + + + + + + +
    Tag - Hexo
    2024
    hexo
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/IC-design/index.html b/tags/IC-design/index.html index ea64c59..7eb2d8f 100644 --- a/tags/IC-design/index.html +++ b/tags/IC-design/index.html @@ -5,17 +5,17 @@ - + -
    Tag - IC design
    2023
    verilog
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Tag - IC design
    2023
    verilog
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/LaTeX/index.html b/tags/LaTeX/index.html new file mode 100644 index 0000000..db1aadb --- /dev/null +++ b/tags/LaTeX/index.html @@ -0,0 +1,161 @@ +Tag: LaTeX | NMSL + + + + + + + + + + +
    Tag - LaTeX
    2024
    Latex
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/Linux/index.html b/tags/Linux/index.html new file mode 100644 index 0000000..caaa3e9 --- /dev/null +++ b/tags/Linux/index.html @@ -0,0 +1,161 @@ +Tag: Linux | NMSL + + + + + + + + + + +
    Tag - Linux
    2024
    docker
    Linux
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/Markdown/index.html b/tags/Markdown/index.html new file mode 100644 index 0000000..627e523 --- /dev/null +++ b/tags/Markdown/index.html @@ -0,0 +1,161 @@ +Tag: Markdown | NMSL + + + + + + + + + + +
    Tag - Markdown
    2024
    Markdown
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/Math/index.html b/tags/Math/index.html new file mode 100644 index 0000000..0d7a9cf --- /dev/null +++ b/tags/Math/index.html @@ -0,0 +1,161 @@ +Tag: Math | NMSL + + + + + + + + + + +
    Tag - Math
    2024
    Matlab
    Mathematica
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/Mathematica/index.html b/tags/Mathematica/index.html new file mode 100644 index 0000000..caac8c8 --- /dev/null +++ b/tags/Mathematica/index.html @@ -0,0 +1,161 @@ +Tag: Mathematica | NMSL + + + + + + + + + + +
    Tag - Mathematica
    2024
    Mathematica
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/Matlab/index.html b/tags/Matlab/index.html new file mode 100644 index 0000000..0ac9377 --- /dev/null +++ b/tags/Matlab/index.html @@ -0,0 +1,161 @@ +Tag: Matlab | NMSL + + + + + + + + + + +
    Tag - Matlab
    2024
    Matlab
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/Playcover/index.html b/tags/Playcover/index.html new file mode 100644 index 0000000..90b95c3 --- /dev/null +++ b/tags/Playcover/index.html @@ -0,0 +1,161 @@ +Tag: Playcover | NMSL + + + + + + + + + + +
    Tag - Playcover
    2023
    Playcover
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/Web/index.html b/tags/Web/index.html new file mode 100644 index 0000000..20e4102 --- /dev/null +++ b/tags/Web/index.html @@ -0,0 +1,161 @@ +Tag: Web | NMSL + + + + + + + + + + +
    Tag - Web
    2024
    hexo
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/Writing/index.html b/tags/Writing/index.html new file mode 100644 index 0000000..a55eaa3 --- /dev/null +++ b/tags/Writing/index.html @@ -0,0 +1,161 @@ +Tag: Writing | NMSL + + + + + + + + + + +
    Tag - Writing
    2024
    Latex
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/docker/index.html b/tags/docker/index.html new file mode 100644 index 0000000..fa053f9 --- /dev/null +++ b/tags/docker/index.html @@ -0,0 +1,161 @@ +Tag: docker | NMSL + + + + + + + + + + +
    Tag - docker
    2024
    docker
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/gaming/index.html b/tags/gaming/index.html index a139850..23e879f 100644 --- a/tags/gaming/index.html +++ b/tags/gaming/index.html @@ -5,17 +5,17 @@ - + -
    Tag - gaming
    2023
    Playcover
    Game_Porting_Toolkit
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Tag - gaming
    2023
    Game Porting Toolkit
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/iOS/index.html b/tags/iOS/index.html new file mode 100644 index 0000000..f3c5464 --- /dev/null +++ b/tags/iOS/index.html @@ -0,0 +1,161 @@ +Tag: iOS | NMSL + + + + + + + + + + +
    Tag - iOS
    2023
    Playcover
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    + + Categories + +
    +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/index.html b/tags/index.html index 39b2e3f..3a22b38 100644 --- a/tags/index.html +++ b/tags/index.html @@ -5,19 +5,19 @@ - + -
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/macOS/index.html b/tags/macOS/index.html index 5ce472e..c7dd098 100644 --- a/tags/macOS/index.html +++ b/tags/macOS/index.html @@ -5,17 +5,17 @@ - + -
    Tag - macOS
    2023
    Playcover
    homebrew
    Game_Porting_Toolkit
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Tag - macOS
    2023
    Playcover
    homebrew
    Game Porting Toolkit
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/study/index.html b/tags/study/index.html deleted file mode 100644 index 68f66d8..0000000 --- a/tags/study/index.html +++ /dev/null @@ -1,161 +0,0 @@ -Tag: study | NMSL - - - - - - - - - - -
    Tag - study
    2023
    Signals and Systems
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    - - Categories - -
    -
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file diff --git a/tags/verilog/index.html b/tags/verilog/index.html index 6ea865a..210932c 100644 --- a/tags/verilog/index.html +++ b/tags/verilog/index.html @@ -5,17 +5,17 @@ - + -
    Tag - verilog
    2023
    verilog
    Announcement
    This is my Blog
    Recent Post
    verilog
    Playcover
    homebrew
    + })(window)
    Tag - verilog
    2023
    verilog
    Announcement
    This is my Blog
    Recent Post
    Matlab
    Mathematica
    docker
    hexo
    Linux
    Categories
    Info
    Article :
    5
    UV :
    PV :
    Last Update :
    \ No newline at end of file +
  • Code7
  • memo4
  • study1
  • +
    Info
    Article :
    12
    UV :
    PV :
    Last Update :
    \ No newline at end of file