使用Dreamweaver的regular expression作搜尋與取代

範例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的通訊錄

最近因為專案需求,

需要從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/

藍色小舖站聚成功!

upload1

upload2_thumb

艾堤科技自與捨得資訊共同經營藍色小舖以來第一次舉辦站聚,

而這次站聚的目的地就是一年一度的資訊盛會Computex, 今年的展場包含了南港展覽館, 世貿一館, 世貿三館以及台北國際會議中心. 時間是早上10:30 至下午4:00.

由於是第一次舉辦站聚且籌備時間相當倉促, 因此過程中有些狀況發生, 如吃飯時間與活動時間掌握不佳.當然該檢討的還是得檢討, 不過整體上的成效是不錯的. 社群中各種領域的專家齊聚一堂, 而且都是資訊工程師, 因此話題都非常的投機, 可以說從開始到結束都聊個不停. 看來大家都有同樣的狀況-平時跟一般朋友聊這些都沒有人可以體會自己的辛苦, 現在總算找到知音了.

XDD. 工程師也有工程師的苦水要吐的啦~

資訊展結束後大家一起在咖啡店聊天直到天黑才散場。

希望下次還有機會跟大家見面,也請大家多多光顧藍色小舖喔。