Parallel DAG in Python

Directed acyclic graph (DAG) is commonly used as a dependency graph. It could be used to describe the dependencies of tasks. The order of…


FreeBSD 配置

最近在尝试将一些服务部署在 FreeBSD 上,这里记录一些配置过程,主要是和 Linux 不同的地方。 添加用户 软件安装 Locale 设置 编辑 : 时间设置 时区设置 需要重新登录才能看到生效。 时间同步 服务安装 rc.d 脚本编写 https://www…


自己创建 Git 服务

当我们想使用远程 Git 服务的时候,GitHub 当然是一个很好地选择。不过 GitHub 只对公开开源项目才是免费使用的,如果想拥有私人仓库,还是需要付费的。 我们可以考虑自己搭建 Git…


Comparison of Web Frameworks

This is not finished because I found this project: https://github.com/the-benchmarker/web-frameworks. The followings are only the plan which…


QCOW2 格式兼容性

最近需要在一台 CentOS 6 的机器上通过 libvirtd 创建一台 KVM 虚拟机。因为之前在另一台 CentOS 7 的服务器上生成过基础镜像,所以想直接复制过来使用,以节省安装时间。本以为一切都是顺理成章的,然而因为 QCOW…


Python 程序打包发布

Python 程序可以发布到 PyPI 上,以便能够方便共享。 以下是基本步骤,详细可参看 https://packaging.python.org/guides/distributing-packages-using-setuptools/。 相关文件 setup.py…


Create Alias for Python Class

Sometimes we need to create alias for an existing Python class without copying every detailed code. The following sections will discuss…


Test Tcp Port Connection

While we are checking the status of a web site or web service, at first we need to test the status of TCP connection. The common connection…


Libvirt Forwarding

The KVM virtual machine could be managed by libvirt. If the virtual network is set to NAT, the virtual machine could not be accessed from…