範例1:
把所有在Request.QueryString(“這裡不管”) 取代成 Anti_injection(Request.QueryString(“這裡不管”))

尋找:

Request\.QueryString\(\"(.*)\"\)

取代:

Anti_injection(Request.QueryString("$1"))

範例2:
把所有在Request.QueryString(“只處理變數名稱”) 取代成 Anti_injection(Request.QueryString(“只處理變數名稱”))

尋找:

Request\.QueryString\(\"([A-Za-z0-9_]+)\"\)

取代:

Anti_injection(Request.QueryString("$1"))

參考資料:
http://www.adobe.com/devnet/dreamweaver/articles/regular_expressions.html

最近因為專案需求,

需要從GMAIL中存取通訊錄 (contacts),

覺得這份教學寫的還不錯:

http://code.google.com/intl/zh-TW/apis/contacts/docs/3.0/developers_guide_protocol.html

與ATOM的溝通可以使用PHPCLASS中的ATOM builder:

http://www.phpclasses.org/package/2745-PHP-Generate-Atom-1-0-XML-feeds.html

溝通的方式可以用PHP 的Socket Programming方式去與https連接埠溝通:

認證:

https://www.google.com/accounts/ClientLogin
The POST body should contain a set of query parameters that look like parameters passed by an HTML form, using the application/x-www-form-urlencodedcontent type. These parameters are:
Parameter Description
accountType Type of account to be authenticated. The default is GOOGLE; if you want to support Google Apps users, use HOSTED_OR_GOOGLE.
Email The user's email address.
Passwd The user's password.
service The service name for contacts feeds is cp. (For other service names, see the service name list.)
source Identifies your client application. Should take the form companyName-applicationName-versionID. The examples use the name exampleCo-exampleApp-1.
For more information about the parameters, see the Authentication for Installed Applications document.

最近對機器學習開始有了興趣, 在網路上找到一些適合初學者的教材, 連結如下:

適合機器學習的討論版:
http://machine-learning.eggsprout.com/

Stanford的機器學習課程:
http://www.youtube.com/view_play_list?p=A89DCFA6ADACE599

搭配機器學習的教材:
http://www.stanford.edu/class/cs229/materials.html

UW Part-time Masters Lectures (Pedro Domingos)
http://www.cs.washington.edu/education/courses/csep573/01sp/lectures/

進階教學:
http://videolectures.net/Top/Computer_Science/Machine_Learning/

RESEARCH CHANNEL:
http://www.researchchannel.org/prog/subject.aspx?fID=569

RUBY extensions:
http://web.media.mit.edu/~dustin/rubyai.html

文章參考:
http://ianma.wordpress.com/2009/07/19/machine-learning-for-beginners/