One for all,all for one.

2014年8月31日 星期日

python read json file

›
import json f = open('addressbook.json') for addressbook in json.load(f):     print addressbook['name']     print add...
2014年8月30日 星期六

configure: error: Unknown MySQL directory - unable to find mysql.h

›
# apt-get install libmysqlclient-dev

configure: error: Unable to find working zlib library

›
# apt-get install zlib1g-dev

使用 GitHub OpenID 登入網站

›
1. 建立一個新的 application,可得到 Client ID、Client Secret https://github.com/settings/applications 2. 在 Authorization callback URL 填入授權成功後要返回的網址 ...

使用 Facebook OpenID 登入網站

›
1. 建立一個 Facebook APP, 可得到 Client ID、Client Secret https://developers.facebook.com/apps/ 2. Settings -> Advanced -> Valid OAuth red...
2014年8月29日 星期五

使用 Google OpenID 登入網站

›
Google Developers Console https://console.developers.google.com/ google = OAuth2Service(name='google',                         ...

Decoder failed to handle access_token with data as returned by provider

›
service.get_auth_session(data=data, decoder=json.loads) References : Google oauth2 authentication throws an exception in rauth · Issu...
‹
›
首頁
查看網路版
技術提供:Blogger.