原创 windows下OpenCV 2.3.1 + Python 2.6 / 2.7配置

新博客地址:http://gorthon.sinaapp.com/ vs2010的請參考文章http://hi.baidu.com/mvp_xuan/blog/item/eab5ecd2f6f1fbc5a8ec9a02.html,我照着做

原创 windows下一個簡單的輸入法模塊[Python]

新博客地址:http://gorthon.sinaapp.com/# coding:cp936 # by 書記: bh2#qq.com # do what you want to do with this script # pywin3

原创 mvfast 自適應搜索

新博客地址:http://gorthon.sinaapp.com/ 要裝opencv庫 //main.cpp #include"mvfast.h" void main() { IplImage *prev = NULL, *curr

原创 【projecteuler.net】題目 5

新博客地址:http://gorthon.sinaapp.com/ Problem 5 2520 is the smallest number that can be divided by each of the numbers f

原创 django + apache + windows server 2003 + sql server 2005 + mod_wsgi 配置

新博客地址:http://gorthon.sinaapp.com/ 客戶的變態要求我想不是我一個人遇到這樣的吧……這種搭配除了折磨人還能幹啥? 1. 先配置django與apache: 【1】 安裝python2.6.5(默認安裝)(添

原创 在Code::Blocks中編輯並運行python程序

新博客地址:http://gorthon.sinaapp.com/ 先新建一個空的c或者cpp的工程,然後把那個main.cpp改成main.py就可以在這個.py文件裏面寫python代碼了。 寫好之後配置如下: 編寫好代碼之後,

原创 C++模擬Python功能【二】

新博客地址:http://gorthon.sinaapp.com/ 新博客地址:http://gorthon.sinaapp.com/ // file:function.h // author: shuji // bh2#qq.com

原创 windows下python QR code識別

之前自己寫了一個識別的,但是寫的亂七八糟還有各種問題,後來看到有個zbar就拿來用了,一直是在linux下面的,直接到zbar官網下載源碼安裝就可以了,這是地址:http://zbar.sourceforge.net/download.h

原创 【轉載】C++ STL輕鬆導學

新博客地址:http://gorthon.sinaapp.com/ 名稱 C++ STL輕鬆導學 作者 晨光(Morning) 簡介 本教程介紹有關學習C++ STL的預備知識和STL的相關背景知識,適合想對STL做大致瞭解的初學者。

原创 eclipse vim插件viPlugin 2.0.0的安裝與破解 * vs2008中vim插件ViEmu2.5.4的安裝與破解

新博客地址:http://gorthon.sinaapp.com/ 首先是viPlugin for eclipse: http://ref.so/dcuyk ViEmu2.5.4的安裝與破解文件打包下載(內附破解說明): http:

原创 MySQL has gone away sae 30秒超時sqlalchemy解決辦法

新博客地址:http://gorthon.sinaapp.com/ SAE手冊上面是這樣說的: MySQL連接超時時間爲30s,所以你需要在代碼中檢查是否超時,是否需要重連。 【bug?】我用tornado db連接 出現了mysq

原创 SQLAlchemy Session Store webpy DBStore

新博客地址:http://gorthon.sinaapp.com/ 使用SQLAlchemy+webpy的時候出現了一些問題,記錄以備後用。 環境: >>> web.__version__ '0.36' >>> sqlalchemy._

原创 360雲盤自動登錄、獲取免費空間、上傳並分享文件得積分[二]

新博客地址:http://gorthon.sinaapp.com/ # _*_ encoding:utf-8 _*_ # author: 書記 # email: bh2[at]qq[dot]com i

原创 matplotlib顯示中文問題

新博客地址:http://gorthon.sinaapp.com/ 如果界面顯示的中文出現方框的情況,要更改一下字體: 如下: 1. 複製微軟雅黑字體MSYH.TTF到C:\Python26\Lib\site-packages\matp

原创 安裝MySQL時配置到第4步出錯的解決辦法

新博客地址:http://gorthon.sinaapp.com/ 我的環境:xp sp3, mysql5.5.22 安裝後能正常啓動mysqld服務,但是不能連接上(無論是用command line還是用gui都顯示連接失敗),按照網上