發表文章

191029 Firebase Task continueWith

這幾天在看 Firebase 的 Call functions from your app https://firebase.google.com/docs/functions/callable 範例中,有一段程式碼如下 return functions .getHttpsCallable( "addNumbers" ) .call(data) .continueWith { task -> // This continuation runs on either success or failure, but if the task // has failed then task.result will throw an Exception which will be // propagated down. val result = task. result ?. data as Map<String, Any> result[ "operationResult" ] as Int }   functions com.google.firebase.functions.FirebaseFunctions https://firebase.google.com/docs/reference/android/com/google/firebase/functions/FirebaseFunctions  .getHttpsCallable( "addNumbers" )   "addNumbers" 為 Cloud Function 的名稱 getHttpsCallable 回傳的是 HttpsCallableReference https://firebase.google.com/docs/reference/android/com/google/firebase/functions/HttpsCallableReference.html .call(data) 傳入的是 addNumbers 可接受的...

190904 文件目錄與 iCloud

如果你在 Finder 中看不到 "文件" 目錄,那應該是你開啟了 iCloud 的同步功能。 如習慣把檔案放在 "文件" 資料夾中,那就至 iCloud 把該功能關掉。 [系統編好設定] > [iCloud] > iCloud 雲碟 - [選項...] 將 [桌面與文件檔案夾] 取消勾選 這樣在 Finder 中就可以看到 "文件" 目錄了

190823 ISO 27001 A.17

A.17.1 永續資訊安全 Information security continuity 目標:永續資訊安全應嵌入進組織的永續經營管理系統中。   Objective: Information security continuity shall be embedded in the organization’s business continuity management systems. A.17.1.1 永續資訊安全之計劃   Planning information security continuity 組織應決定在不利的情況下,例如危機或災難期間,資訊安全與永續資訊安全管理之需求。   The organization shall determine its requirements for information security and the continuity of information security management in adverse situations, e.g. during a crisis or disaster.

190823 ISO 27001 A.16

A.16.1 資訊安全事故與改進之管理   Management of information security incidents and improvements 目標:確保資訊安全事故的管理採用一致且有效的方法,包括安全事件與弱點之傳遞。   Objective: To ensure a consistent and effective approach to the management of information security incidents, including communication on security events and weaknesses. A.16.1.1 責任與程序 Responsibilities and procedures 管理責任與程序應加以建立,以確保對資訊安全事故做出迅速、有效且有條理的回應。   Management responsibilities and procedures shall be established to ensure a quick, effective and orderly response to information security incidents. A.16.1.2 資訊安全事件之通報 Reporting information security events 資訊安全事件應儘速地透過適當的管理管道通報。   Information security events shall be reported through appropriate management channels as quickly as possible. A.16.1.3 資訊安全弱點之通報   Reporting information security weaknesses 應要求使用組織的資訊系統與服務之員工與承包商,在系統或服務中觀察到或有可疑的資訊系統弱點時,必須記錄並回報。   Employees and contractors using the organization’s information systems and services shall be require...

190821 ISO 27001 A.15

A.15.1 供應商關係之資訊安全 Information security in supplier relationships 目標:確保對供應商可存取之組織資產的保護。 Objective: To ensure protection of the organization’s assets that is accessible by suppliers. A.15.1.1 供應商關係之資訊安全政策 Information security policy for supplier relationships 減少與供應商存取組織資產之風險的資訊安全需求應與供應商協議並文件化。   Information security requirements for mitigating the risks associated with supplier’s access to the organization’s assets shall be agreed with the supplier and documented. A.15.1.2 供應商協議內闡明安全措施   Addressing security within supplier agreements 應與每個可能存取、處理、儲存、傳遞或為組織之資訊提供資訊基礎設施元件的供應商建立並協議所有相關的資訊安全需求。   All relevant information security requirements shall be established and agreed with each supplier that may access, process, store, communicate, or provide IT infrastructure components for, the organization’s information. A.15.1.3 資訊與通信技術供應鏈 Information and communications technology supply chain 與供應商之協議應包含解決資訊與通信技術服務以及產品供應鏈相關的資訊安全風險之需求。 Agreements with suppliers s...

190821 ISO 27001 A.14

A.14.1 資訊系統之安全需求   Security requirements of information systems 目標:確保資訊安全是整個資訊系統生命週期整體的一部份。此亦包含在公共網路上提供服務之資訊系統的需求。 Objective: To ensure that information security is an integral part of information systems across the entire lifecycle. This also includes the requirements for information systems which provide services over public networks. A.14.1.1 資訊安全需求分析與規格 Information security requirements analysis and specification 新資訊系統或對現存資訊系統的改善之需求,應將資訊安全相關需求包含在內。 The information security related requirements shall be included in the requirements for new information systems or enhancements to existing information systems. A.14.1.2 保護公共網路上之應用服務   Securing application services on public networks 新資訊系統或對現存資訊系統的改善之需求,應將資訊安全相關需求包含在內。   The information security related requirements shall be included in the requirements for new information systems or enhancements to existing information systems. A.14.1.3 保護應用服務交易   Protecting application services transactions 涉及...

190818 uniCenta oPOS 筆記

1. Java 12.0.2 2. MySQL 5.7.27 install https://unicenta.com/pages/install-unicenta-opos/ configuration https://unicenta.com/pages/configure-unicenta-opos/