十倍勝領導力
狂熱的紀律Kenneth 發表在 痞客邦 留言(0) 人氣(24)
用Javascript實現 上傳前閱覽圖片,但是這個方法只能支持IE10之後的版本,其他瀏覽器都可以用,IE9和之前的版本都無法使用。
Input FileUpload files Property 不支持IE9和之前的版本。
http://www.w3schools.com/jsref/prop_fileupload_files.asp
Kenneth 發表在 痞客邦 留言(0) 人氣(496)
IE出於安全性的考慮,上傳檔時必須要點擊<input type=’file’>控制項本身才能上傳成功。而因為<input type=’file’>長的實在太醜,很少能滿足我們的審美,我們通常都是會隱藏它,然後用其他的button去觸發它。而這麼做在IE9下是不被允許的。
Kenneth 發表在 痞客邦 留言(0) 人氣(319)
Yesterday I was updating an HTA (HTML Application) and needed to figure out how to convert an image into a base64 code that could be used in a stylesheet. I needed this to be able to embed an image in the source code instead of referencing an actual image. For this reason I wrote the following function (with the help of this post):
function convertImageToBase64(filePath) {
var inputStream = new ActiveXObject('ADODB.Stream');
inputStream.Open();
inputStream.Type = 1;
inputStream.LoadFromFile(filePath);
var bytes = inputStream.Read();
var dom = new ActiveXObject('Microsoft.XMLDOM');
var elem = dom.createElement('tmp');
elem.dataType = 'bin.base64';
elem.nodeTypedValue = bytes;
var ret = 'data:image/png;base64,' + elem.text.replace(/[^A-Z\d+=\/]/gi, '');
}
But it cannot work in IE9. I get an error saying Access is denied, IE doesn't allow manipulation of the type="file" input element from javascript due to security reasons. Setting the filename or invoking a click event to show the browser dialog will result in an "Access is denied" error on the form submit - Internet Explorer is clever about remembering what methods have been invoked.
Kenneth 發表在 痞客邦 留言(0) 人氣(45)
Sharepoint 開發主要分三種
1. Power user : 主要管理sharepoint site ,使用者管理,新增刪除webpart
2. Designer : 負責sharepoint的使用者介面(UI)的設計與規劃
3. Website developer : 負責後端商業邏輯,也是真的軟體工程師負責寫code
開發工作主要是 Designer 和 Website developer.
在開發工作之前,要先了解sharepoint開發方案
Sharepoint開發方案 :Kenneth 發表在 痞客邦 留言(0) 人氣(391)
The problem is that when it comes to w3wp.exe processes for the diagram above, there are three of them and just by looking in the task manager there is no easy way to tell them apart. Each instance of a w3wp.exe process has a PID (short for process identifier), but the question is which PID belongs to which application pool.

Kenneth 發表在 痞客邦 留言(0) 人氣(5,495)
每天二十分鐘的家庭聚餐,可以改變家庭的未來
The MIACLE of family dinners
Kenneth 發表在 痞客邦 留言(0) 人氣(268)
一直以來都聽到日本經濟不景氣,讀過此書後發現經濟不景氣下,但是有錢人也一直增加中,這也是為什麼作者要賺有錢人的錢。
Kenneth 發表在 痞客邦 留言(0) 人氣(540)
1. Karma的介紹
Karma是Testacular的新名字,在2012年google開源了Testacular,2013年Testacular改名為Karma。Karma是一個讓人感到非常神秘的名字,表示佛教中的緣分,因果報應,比Cassandra這種名字更讓人猜不透!
Karma是一個基於Node.js的JavaScript測試執行過程管理工具(Test Runner)。該工具可用於測試所有主流Web流覽器,也可集成到CI(Continuous integration)工具,也可和其他代碼編輯器一起使用。這個測試工具的一個強大特性就是,它可以監控(Watch)檔的變化,然後自行執行,通 過console.log顯示測試結果。Kenneth 發表在 痞客邦 留言(0) 人氣(2,494)
什麼是支付卡產業 (PCI) 資料安全標準 (DSS)?PCI 資料安全標準是一套可提高付款帳戶資料安全的完善規定,由 American Express、Discover Financial Services、JCB International、MasterCard Worldwide 及 Visa Inc. International 共同訂制。制訂這套標準是為了協助全球採用一致的安全標準。所有為 American Express、Discover、JCB、MasterCard及 Visa 處理、儲存或進行付款卡資料的商店都需遵守 PCI 資料安全標準。主要有六大項,具體包含12項控制目標,67要求來保護持卡人
數據資訊不遭受洩露。這
6個控制域具體如下:Kenneth 發表在 痞客邦 留言(0) 人氣(275)