04 2012 档案
摘要:慎用pydev的refactor阿,因为python是动态语言,所以pydev没有办法很好的理解你的意图,很可能refactor坏掉!!!
阅读全文
摘要:Greasemonkey是firefox 的一个插件,通过使用少量的JavaScript脚本,自定义网页显示方式或表现方式。其实就是通过编写js来修改任意页面,执行任意的js逻辑。哇塞,碉堡了。https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/http://www.greasespot.net/p/welcome.html?0.9.18通过他来管理和编写脚本都十分容易,另外可以到https://userscripts.org/(国外)下载别人写好的代码!o(∩∩)o
阅读全文
摘要:def start_response(status, response_headers, exc_info=None): status_code[0] = status.split()[0] if exc_info: try: if headers_sent: # Re-raise original exception if headers sent raise exc_inf...
阅读全文
摘要:发现此问题,这是ubuntu 的一个bug,参考: https://bugs.launchpad.net/ubuntu/+bug/566205,https://bugs.launchpad.net/ubuntu/+source/linux/+bug/254825解决方案如下:echo 'SUSPEND_MODULES="uvcvideo"' | sudo tee /etc/pm/config.d/modules_unload,就是在/etc/pm/config.d/modules_unload中加一行:SUSPEND_MODULES="uvcvid
阅读全文
摘要:认证和认证处理分开。认证是用户申明他是谁,认证处理是系统验证用户申明的身份是否真实。swift推荐使用前缀来区分不同的认真方式,例如tempauth中用户名都为AUTH_name
阅读全文
摘要:amazon s3的用户验证方式是一种对称加密方式,下面介绍此加密方式。请求的构造 请求元素: AWS Access Key Id:其实就是常见的用户名,用来区分用户的。 Signature:签名,使用私钥计算后得出。 Timestamp:时间戳 Date:时间,为每一个请求设置一个过期时间。验证过程 客户端:经过下面3个步骤1 构建http请求。2 使用请求内容(request_str) 和 secret-key计算签名(signature)。3 发送请求到aws服务器。 aws服务器:经过下面三个步骤4 Amazon S3 根据发送的access-key得到对应的secret...
阅读全文
摘要:;move line up down(defun move-text-internal (arg) (cond ((and mark-active transient-mark-mode) (if (> (point) (mark)) (exchange-point-and-mark)) (let ((column (current-column)) (text (delete-and-extract-region (point) (mark)))) (forward-line arg) (move-to-column co...
阅读全文

浙公网安备 33010602011771号