Archive for the ‘Software’ Category.

UnFREEz an open source animation GIF maker

Free, single executable with source code. http://www.whitsoftdev.com/unfreez/

Python and pizza.py


Pizza.py is a post-processing tool package for lammps – a MD package. I downloaded it and unpacked in a local directory. Each time I have to start it with a command like “python -f abs_path/pizza.py” where the abs_path is the absolute path to pizza.py source directory. However this directory is very long on my computer and it’s not a directory recognized by python. I found a convenient way to make the call easier. Just add the abs_path to a system environment variable named “PYTHONPATH” (if you have no such env variable, create it), then to use pizza.py we can start python as usual by typing “python” and then type in “import pizza” (no .py suffix!), then we have all the module defined in pizza at the interactive command line no matter what is your current working directory. PYTHONPATH will be add to the search path for modules if it’s not empty. I also add the abs_path to the PATH system environment variable, which makes I could type “pizza.py -f ***.py” directly in any working directory. Continue reading ‘Python and pizza.py’ »

Hard disk clone using dd command

A neat description of the several ways to use ‘dd’ command — see here

Keywords highlight and auto-completion for lammps input file in Notepad++

Lammps is a powerful multi-purpose  simulation software. To run a simulation with lammps, one needs to prepare an input script file in which commands are issued to control the work flow. There are MANY commands  and lots of keywords supported by lammps. I found it’s good if there is a text editor capable of highlighting the keywords and keyword auto-completion. Notepad++ is one of the best free text editor. To add support of highlighting and auto-completion is pretty easy in Notepad++ cause it has a user-friendly interface (a dialog) to allow user to define new keywords, symbols, comments, operators for a new language. I just made the support  for lammps commands. Continue reading ‘Keywords highlight and auto-completion for lammps input file in Notepad++’ »

ReCAPTCHA技术

不得不说这是一个很好很有用的创意!

CAPTCHAs是一种恼人的技术,据资料统计,全球用户每天要完成1亿次 CAPTCHA 测试。ReCAPTCHA是 Carnegie Mellon 大学启动的一个项目,目的是借助 CATPTCHA 技术将那些残旧图书数字化,据估计,该技术每天可以完成160本书。

该项目目前已经在40000家网站上部署了 ReCAPTCHA 技术,ReCAPTCHA 的基本原理是,对光学字符识别(OCR)软件来说,它们的辨识能力是有限的,尤其是那些印刷不清晰的旧书或残书,而人类可以凭借自己的阅读经验,轻松识别 那些 OCR 无法识别的文字。对这样的文字,人类的识别成功率可以达到99%,而OCR软件只能达到80%。
Continue reading ‘ReCAPTCHA技术’ »

zip files from stdin

Zip command in bash can read file list from stdin or from pipe.
e.g.

1
tar *.txt|zip file.zip -

Continue reading ‘zip files from stdin’ »

联用VisualSVN server和Tortoisesvn客户端

如果使用Windows系统,在Tigris.org上有三个Subversion的二进制版本供下载。以前一直用Collabnet的版本,这次重装机器想试试其他本版,毕竟都是官方网站推荐的。VisualSVN看起来不错,属于傻瓜式安装,我喜欢。因为我是要用软件而已,没有兴趣研究它。不过这个软件的特色是可以和Visual Studio很好地集成,因此它的客户端是收费的也属正常。好在它的服务器端是免费的。

安装果然很方便,点击几下就装好了。安装过程中可以指定安装目录,服务器端口,https链接等。安装完毕后,最新的subversion和apache也都安装并配置好了。在控制台界面,可以直接创建repository,甚至可以替我们建好常用的branches, tags, trunk等文件夹,省去一些操作。建好repo后可以点击右键,通过浏览器浏览数据库。有一点比较方便,这个控制台程序有一个按钮可以直接启动一个dos控制台,方便用命令行方式操作Subversion。

Continue reading ‘联用VisualSVN server和Tortoisesvn客户端’ »

Compile and install Pygsl on Windos XP

Pygsl is a Python wrapper for GNU scientific library. Because of the advantages of Python, I want to install it on my Windows PC. However, I met lots of trouble to make it installed. The official download should be fine when it is used on Linux. But I guess those Lunix fans ignore the pain of a Win user may have;)

First I downloaded the Win32 version of gsl from http://gnuwin32.sourceforge.net/packages/gsl.htm, because there is only source available on gnu official site. This precompiled gsl includes some *.a libs. I supposed they should work with pygsl if I use MinGW compiler. But it was wrong! The problem was gslwin32 (version 1.8 at that time) did not new enough to include all the functions implemented in pygsl (ver 0.9.1). I could not compile pygsl by “setyp.py build -c mingw32″. “undefined reference” was reported by the MinGW compiler.

Continue reading ‘Compile and install Pygsl on Windos XP’ »

The lightest weight email client

sendEmail is one of the light weight email client on Linux. It’s a command line tool. But it’s not just a toy. All the functions as a full-featured email client are available, such as file attachment, specific SMTP server on the fly, SMTP authentication… It’s very handy if you get used to work under a shell. I othen use it to send emails and attach some files to my Gmail as working notes. Don’t bother yourself with any other GUI email client.

Continue reading ‘The lightest weight email client’ »

一个可以随意改变avi动画文件帧速的小工具 AVI Frame Rate Changer

AVI Frame Rate Changer v1.10 by [Blight].
——————————————-

This program will allow you to alter the
frame rate of a previously created
AVI file.

Continue reading ‘一个可以随意改变avi动画文件帧速的小工具 AVI Frame Rate Changer’ »