原创 win7硬盤安裝ubuntu

第一種方案: 下載ubuntu10.10,解壓之後,有個wubi,直接運行既可以安裝。 缺點:不能進行分區 不推薦使用 第二種: 工具:easybcd 引用:http://www.cnblogs.com/allenjin/archive

原创 ubuntu 下裝pyqt4

ubuntu 下裝pyqt4   2012-03-31 10:13:12|  分類: COMPUTER |字號 訂閱 sudo apt-get install python-qt4-devsudo apt-get i

原创 龍芯筆試題

task_struct 是如何分配的,如何找到??? http://www.cnblogs.com/hanyan225/archive/2011/07/09/2101962.html

原创 redis sorted set source code analysis

 sorted set in t_zset.c file。 Insert operation: zaddCommand -----> zaddGenericCommand {  zzlFind {  zzlDelete {  zzlIn

原创 BUG python2.7 httplib message_body

ERROR: File "/usr/lib/python2.7/httplib.py", line 809, in _send_output msg += message_body UnicodeDecodeError: 'asc

原创 壓縮文件縮略圖 python 實現

可以支持zip,rar,7zip,tar.gz等等各式 輸入壓縮文件名稱,返回一個xml文件結構 #!usr/bin/python #coding=utf-8 import uuid import os import zipfile im

原创 algorithm to generate unique code of 64 bit

this is funning algorithm . if you have enough space,you can use the way just like 2^64 guy stand as a circle this alwa

原创 文件zip打包,流式下載python 代碼

使用方法: 輸入地址:例如http://0.0.0.0:8000?abc,def #!usr/bin/python #coding=utf-8 import uuid import os import zipfile import re

原创 解析python中的wsgiserver

just for fun server = wsgiserver.CherryPyWSGIServer(('0.0.0.0',8000),app) server.start() 是程序入口,其中app是你的應用程序 def app(env

原创 服務器端開發調試心得

遇到一個棘手的問題: 需要計算簽名 sign = base64.encodestring(hmac.new(secret_access_key, po, sha1).digest()).strip() 使用這種方式計算,沒有使用顯