Some Erlang code.To deal some misc in my work and  it depends on many other projects.