Alfred Wrokflow
Lyx 入门配置
Posted on
Edited on
Lyx 入门配置
Lyx 快捷键(Mac)
Posted on
Edited on
Lyx 快捷键(Mac)
带编号公式
ctrl + shift + M
toggle numbered equation shortcut command:
1 | command-sequence math-mode on; math-mutate equation;math-number-toggle |
居中浮动体图片
command + option + F
1 | command-sequence float-insert figure; char-left;up;ert-insert; self-insert \centering; inset-toggle; char-right;dialog-show-new-inset graphics |
Django 项目打包可执行文件
Posted on
Edited on
Django 项目打包可执行文件
坑 1:Django 依赖项
pyinstaller
- https://www.jianshu.com/p/0f57423619c4
- https://blog.csdn.net/qq_34809033/article/details/81873896
- https://www.jianshu.com/p/986bc1f89a15
还有用
py2app
的,放弃了https://github.com/kevinlondon/django-py2app-demo
坑 2:pandas 依赖项
- https://stackoverflow.com/questions/43886822/pyinstaller-with-pandas-creates-over-500-mb-exe/48846546#48846546
- https://github.com/pyinstaller/pyinstaller/issues/2270
- https://github.com/conda-forge/numpy-feedstock/issues/84
- https://stackoverflow.com/questions/29109324/pyinstaller-and-pandas
并且解决了引用了肥大无用的 mkl 动态库。
总结如下
1 | conda create -n exe python=3 |
1 | # -*- mode: python ; coding: utf-8 -*- |
附注:执行 migrate 后可以删除libblas.3.dylib
, libcblas.3.dylib
, liblapack.3.dylib
。大概率不影响正常使用。
咦?命令行里的点.是什么意思鸭
Posted on
Edited on
咦?命令行里的点.是什么意思鸭
命令行入门基本功ls
、cd
。相当于在命令行世界里拥有了眼镜和双腿。
可能有好奇宝宝会碰到命令行里的.
,有点好奇是啥意思
一个点.
一个点.
代表当前路径,来些例子🌰
- 这叫原地踏步
1 | cd . |
- 打开当前路径下文件
1 | vim ./hello.txt |
- 调用当前文件夹下命令
1 | ./pip install numpy |
两个点..
两个点..
代表上级目录,这个学cd
的时候应该很熟练了。
- 返回上级目录
1 | cd .. |
- 返回很上面的目录
1 | cd ../../../.. |
- 打开文件之类的和上面一个点的方法一样,不赘述了
文件夹名前面带个点
已知ls
显示目录下文件,加个-a
参数就会显示所有文件,包括隐藏文件,如
1 | $ ls -a |
显然,分别是上级目录,当前目录,以及一个隐藏文件夹。
所以前面带个点的文件夹是隐藏文件夹,比如在 finder 默认情况下是看不到的
三个点...
emmmmm,三个点...
代表无语。