Enable latex-export-logging in org-mode

Read more →

Using virtualenv in Jupyter Notebook

OS: macOS High Sierra 10.13.4 Default Python version: 3.6.5 Prerequisites Have your Jupyter Notebook and virtualenv installed with your default python version Have one virtual env created which you want to use Walkthrough Activate your virtualenv source <envpath>/bin/activate Install ipykernel inside your env $(yourenv)> pip install ipykernel Create kernel using your env $(yourenv)> python -m ipykernel install –user –name myenv –display-name "Python (myenv)" Go ahead and enjoy Now open your jupyter notebook and you’ll notice your kernel just created appears along with your default kernel.
Read more →

在 Ubuntu 18.04 LTS 上安装并运行 KBEngine

本文用到的组件和系统版本: OS: Ubuntu 18.04 LTS MySQL: 5.7.22 gcc: 7.3.0 g++: 7.3.0 Python: 3.6.5 首先安装各种依赖: sudo apt-get update sudo apt-get install libssl-dev mysql-server libmysqld-dev mysql-client libmysqlclient-dev gcc g++ python3 编译引擎 下面从官方仓库下载引擎源码,本人下载的是当时最新版本1.1.8: wget https://github.com/kbengine/kbengine/archive/v1.1.8.tar.gz tar -xzvf v1.1.8.tar.gz 接着就可以对代码进行编译了: cd kbengine-1.1.8/kbe/src chmod -R 755 . make 我在编译过程中出现了以下错误: /usr/lib/gcc/x86_64-linux-gnu/7/include/mm_malloc.h:34:16: error: declaration of ‘int posix_memalign(void**, size_t, size_t) throw ()’ has a different exception specifier extern "C" int posix_memalign (void **, size_t, size_t) throw (); ^~~~~~~~~~~~~~ In file included from /home/dyz/kbengine-1.
Read more →

Set Up Flarum From Scratch

Befor you continue 1. Get a VPS from Linode/Vultr/whatever 2. Pick a linux distribution and make it running(I use CentOS 7). 3. Install Apache/MySQL/PHP 7.1 Get yourself a non-root sudo user adduser USERNAME passwd USERNAME usermod -aG wheel USERNAME su USERNAME Install and configure Apache Check this out First install it. sudo yum update sudo yum -y install httpd sudo systemctl enable httpd.service Then create directory structure.
Read more →

2017 - 2018

Read more →