Leaving Ubuntu for Manjaro

Manjaro is a very attractive distro.

Read More

Write a Zotero Translator for kanyanbao.com

最近一般用 Mendeley 做文献管理, 对于主要的学术期刊网站支持比较好,而且多终端云同步, 缺点是不支持自定义扩展,所以没办法用来记录整理卖方的研究报告。

相比之下zotero是一个更具扩展性的平台, 可以通过自定义插件来支持特定网站格式。 2016年的时候,为 看研报写过一个扩展,但当时是基于 framework 实现的, 在2017年底,zotero开始逐渐放弃对framework的支持。 因为内容比较简单,最近移除了framework的依赖,重新实现了一下。 安装好zotero的浏览器插件后,在看研报的网站上浏览研报时, 无论是摘要页面还是pdf浏览页面,zotero都可以识别出 机构,作者,报告标题,时间等,并将pdf下载下来。

然而在浏览pdf的页面使用插件,会造成摘要无法正常获取。

How to Use

gist 下载最新的版本,存储到 zotero 数据文件夹 下的 translators 文件夹即可。 如果无法访问gist, 可以复制文末的代码,另存为 kanyanbao …

Read More

Building a Blog: Deploy

Finally the last step: deploy! In the final step, we will setup a server with a custom domain, SSL support, and automatically updates on a git push.

We'll use uWSGI to run the flask application, use systemd to manage uWSGI services, use nginx for reverse proxy and SSL, and finally …

Read More

Building a Blog: Authentation

There's a pelican-encrypt-content plugin for encrypting single post, but static pages does not support sessions. Whenever I tried to open a encrypted page, I need to enter a password, that can be annoying.

I have to add a dynamic layer ontop of these static pages. This task itself is infact …

Read More

Building a Blog: Generating Static Files

Before anyting, the core task is generating blog posts with your prefered input format, like markdown, reST, AsciiDoc, etc. Personally I prefer wrting using markdown format. Because python is my major programming language, I write reST too, mainly to write documenation using sphinx. Also, I need the generating tool to …

Read More

Building a Blog: Overview

Why host a blog myself at all? The simple answer is, I need simplicity for writing(markdown) and customization.

Medium is was my choice for writing, it's simple, elegant, and there's a log of goood posts on it. But still something is not that ideal, for example it does not …

Read More

Demo

A introduction and template for writing posts.

Read More

Slide Demo Using mds Format

Demo showing how to write slides with markdown

Read More

Slide Demo Using htmls Format

Read More

诺贝尔奖与星座 Signs and Nobel Prize

posts.

Read More

Speedup Python

Python is not known as a very fast language, but you have some options to speed up your programs.

Read More

R-GZ

Read More

Speedup Python with Cython, compared with Python C API and Julia and Dlang

Read More

Renv: environement/version management for R

Renv lets you be able to install multiple R versions and choose which to use globally or per-project.

Read More

《平如美棠:我俩的故事》摘录

Read More

Language and Style Definition of Stata for listings Package

stata language style definition for latex listings package

Read More