2015年12月16日

摘要: Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, wh... 阅读全文

posted @ 2015-12-16 01:20 Kanone 阅读(267) 评论(0) 推荐(0) 编辑

2015年4月1日

摘要: Python 3.3.5Debian 3.12One thing I found weird is using the following code is that the input I entered isn't displayed, even after I terminate the scr... 阅读全文

posted @ 2015-04-01 13:39 Kanone 阅读(799) 评论(0) 推荐(0) 编辑

2014年2月1日

摘要: 下载颜色主题包并解压之:$ wget http://download.savannah.gnu.org/releases/color-theme/color-theme-6.6.0.tar.gz$ tar zxf ./color-theme-6.6.0.tar.gz复制文件color-theme.el和目录themes/到~/.emacs.d/下面编辑(没有则创建)~/.emacs文件,内容如下:(add-to-list 'load-path "~/.emacs.d/")(require 'color-theme)(color-theme-initializ 阅读全文

posted @ 2014-02-01 03:32 Kanone 阅读(290) 评论(0) 推荐(0) 编辑

摘要: hehe 阅读全文

posted @ 2014-02-01 02:38 Kanone 阅读(1315) 评论(0) 推荐(0) 编辑

2013年11月24日

摘要: is 操作符检验对象的同一性,测试两个对象名是否指向同一个对象任意参数: *, **函数调用中,所有的非关键字参数(name)必须首先出现,其后跟随所有的关键字参数(name=value),后白你跟着*name的形式,需要的话,最后跟着**name的形式在函数头部,参数必须以相同的顺序出现:一般参数(name),默认参数(name=value),*name, **name 阅读全文

posted @ 2013-11-24 06:43 Kanone 阅读(213) 评论(0) 推荐(0) 编辑

2013年11月23日

摘要: DebugActiveProcesswouldfailif a 32bit debugger tried to attach to a64bittarget 阅读全文

posted @ 2013-11-23 00:20 Kanone 阅读(388) 评论(0) 推荐(0) 编辑

2013年7月23日

摘要: JavaScript 作用域和作用域链 阅读全文

posted @ 2013-07-23 22:18 Kanone 阅读(517) 评论(0) 推荐(1) 编辑

2013年6月8日

摘要: 参考链接:http://docs.python.org/2/howto/urllib2.html?highlight=urlopen%20timeoutThe Python support for fetching resources from the web is layered. urllib2 uses the httplib library, which in turn uses the socket library.As of Python 2.3 you can specify how long a socket should wait for a response before 阅读全文

posted @ 2013-06-08 19:32 Kanone 阅读(739) 评论(0) 推荐(0) 编辑

2013年5月3日

该文被密码保护。 阅读全文

posted @ 2013-05-03 23:57 Kanone 阅读(5) 评论(0) 推荐(0) 编辑

2013年4月24日

摘要: EVA Q已经流出了,看了下BDMV的大小,40G+,十分汗颜。决定还是先下载了OST吧。下好之后才发现里面的Booklets居然是JP2格式,这是一种比较新的图片格式,用的是JPEG2000算法,看了下文件头信息,看来放源的是用Jasper压缩的,本打算用Jasper直接生成普通的JPEG文件,但是在导入库时遇到了不少麻烦。于是换了另一种方法,用一个软件包:ImageMagick 。里面集成了很多有用的图像处理工具,而且对图像转换支持很好。里面的converter.exe就是负责转换的咯~,但是它默认不支持对某个目录下的图像进行转换。遂写了个Python脚本实现:# -*- coding: 阅读全文

posted @ 2013-04-24 04:44 Kanone 阅读(969) 评论(0) 推荐(0) 编辑