Redis入门实践

Posted on 2016-11-03 in Coding • Tagged with redis, python

Redis(REmote DIctionaray Server)是key-value型内存数据库,值(value)可以是 符串(String), 哈希(Map), 列表(list), 集合(sets) 和有序集合(sorted sets)等类型,常用于热数据的缓存服务。常用的Python client是redis-py

相比于python直接对内存操作,redis可以多进程和分布式使用,所以有便利性。我初次使用的诉求是将需要频繁IO的数据放入redis中,便于python调用。


Continue reading

Data Preview v0.1 released

Posted on 2015-08-24 in Coding • Tagged with python, GUI

Data Preview is a simple Python GUI program (using tkinter at present, maybe PyQt in the next version) to automatically convert the experimental data (just tsv format in this version) to graph by clicking the filename. A set of data files can also be simply merged together into a single ...


Continue reading

Markdown语法和LaTeX数学记号速查手册

Posted on 2014-10-08 in Coding • Tagged with markdown, laTeX, physics

这篇文章是Markdown和LaTex的速查手册,阅读人群为科学工作者,尤其是物理领域的同行。常用的Markdown语法和数学符号、公式的LaTex的记号都列举在文中。本手册的用例如,Ipython Notebook或者支持Markdownd的博客。如果读者需要用到高级的技巧或完整的LaTex语法,请直接参与其官方文档。简而言之,我写本手册时权衡了完整和快查两个需求,力求简明而不简单。


Continue reading

Pelican静态博客架设

Posted on 2014-10-04 in Coding • Tagged with pelican, python

虽然是更新,但这篇文章是完全重写,之前的版本是英文写的。

从新浪等博客平台到Wordpress,我折腾过不少次的博客。两年前我开始使用Pelican+Markdown来书写,托管在Github Pages上,坚持使用了一年多时间。之前我使用基于pure的定制版主题,后来Pelican升级导致API有些变动,正好我忙于其他事情,博客就没法更新了,最大的问题是当时木有使用virtualenv来隔离运行环境。吃一堑,长一智,端午节有些时间,于是我升级了博客,主题基于官方默认的notmyidea,稍微变动了一点点成为littleidea。


Continue reading