12 2012 档案
摘要:sometimes we may encounter the error info below when usingapt-get:Reading package lists... Error!E: Encountered a section with no Package: headerE: Problem with MergeList/var/lib/apt/lists/ ...E: The package lists or status file could not be parsed or opened.we can run two commands below in the term
阅读全文
摘要:有的时候,我们需要以16进制查看和修改一些文本, 有很多的工具都可以实现这个功能,比如EmEditor、UltraEdit等。在Linux下,我们可以使用VIM达到同样的效果。Linux下有个"xxd"转换程序,这个程序可以在VIM中帮我们将文本转成对应的16进制格式显示。我们首先用VIM命令打开一个文件,命令如下:vim -b filename在命令行模式下, 输入以下命令::%!xxd对应的文件左侧显示了16进制,右侧是对应的原文件现在我们就可以查看或者修改这些16进制格式的文件了,VIM把这些当做普通的字符串对待,所以,修改了左侧的16进制的字符后右侧的字符并不会跟着
阅读全文
摘要:easy_install是由PEAK(Python Enterprise Application Kit)开发的setuptools包里带的一个命令, 使用easy_install实际上是调用setuptools来完成模块的安装、更新等操作。比如数据库模块,json模块等。附上EasyInstall的官方文档地址http://peak.telecommunity.com/DevCenter/EasyInstall在Ubuntu下安装easy_install非常简单,只需使用以下命令:sudo apt-get install python-setuptools python-dev build-
阅读全文