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

Why physics students and physicists need python?

Posted on 2014-10-13 in Science • Tagged with python, physics, scipy, numerical

Nowadays, the Python language has become a widely used tool for scientists and engineers, which is fully stacked with powerful support packages, such as numpy and scipy. However, I came across Python due to the need of an easy-to-use web framework until last summer. After several days of trails, I ...


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