Recent Posts

Change the Background Color in PDF Reader

以 Adobe Reader 为例,从主菜单选择:编辑 ∕ 首选项 ∕ 辅助工具 ∕ 自定义颜色 ∕ 页面背景 ∕ 其它颜色,比如色调 45、饱和度 35、亮度 165。

参考:

Git-P4 Submit Error

提交代码时遇到了这样的错误:

  $ git p4 submit
  Error: Cannot locate perforce checkout of //XXX/YYY/ZZZ/ in client view

一下子还真没想明白是哪里不对。

后来想明白了,需要 …

Setup Comments with Disqus in Pelican

Disqus 是一个外挂的评论系统,对于像 GitHub Pages 这种静态网页来说,非常实用。

找到一个文档 http://querbalken.net/howto-setup-comments-with-disqus-in-pelican-en.html,把Disqus的使用步骤写得很清 …

Limit CPU Usage

这里有一些网页,描述了如何限制 CPU 的使用:

What is the Linux CPU Load

The load average represents the average system load over a period of time. It conventionally appears in the form of three numbers which represent the system load during the last one-, five-, and fifteen-minute periods. https://en.wikipedia.org/wiki/Load_(computing)

按照网上看到的一 …

Using Git-P4

平时一直使用 git,习惯了各种离线操作和强大的分支功能,所以总觉得要比 Perforce / p4 好用太多。

对于目前项目里用到的 p4 仓库 …

Sysfs

在 linux 里,sysfsprocfs 都是没有存储介质的虚拟文件系统,用于内核与用户态的交互。以下是摘自《Professional Linux Kernel Architecture》的一段话,对两者在概 …

More Use of Pelican

经常会去 LinuxTOY, 看看有哪些新的 Linux 相关的信息。

好吧,最近它也已经 从 WordPress 迁移到 Pelican,现在访问速度快了不是一点点。

Upgrade to Pelican 3.6

Pelican 3.6 发布了。

可以使用万能的 easy_install 来更新:

$ easy_install --upgrade pelican
Searching for pelican
Reading http://pypi.python.org/simple/pelican/
Best match: pelican 3.6.0
Processing pelican-3.6.0-py2.7.egg
...

$ pelican --version
3.6.0

浏览了 …

Use subprocess.Popen class in Python

subprocess.Popen 是 Python 标准库提供的一个类,用于进程的创建、管理以及数据交互。在实现上,它尽可能地屏蔽了操作系统之间相关语义 …