Skip to content

Home

如何修復 iOS 10 權限崩潰錯誤

我一直在開發一款需要訪問用戶麥克風的應用程序。

該應用在 iOS 9 上運行正常,但在升級到 iOS 10 之後,它開始崩潰。終端顯示的錯誤消息如下:

> 此應用程序已崩潰,因為它試圖訪問隱私敏感數據而未提供使用說明。應用程序的 Info.plist 必須包含一個 NSMicrophoneUsageDescription 鍵,並提供一個字符串值解釋應用程序如何使用這些數據。
> (lldb)

要解決此問題,按源碼編輯 Info.plist 文件並添加以下行:

    <key>NSMicrophoneUsageDescription</key>
    <string>提供一個說明,解釋您的應用為何需要訪問麥克風。</string>

此外,如果您的應用需要訪問用戶的相機,請添加以下內容:

    <key>NSCameraUsageDescription</key>
    <string>提供一個說明,解釋您的應用為何需要訪問相機。</string>

如果您的應用需要訪問用戶的聯繫人,請添加以下內容:

    <key>NSContactsUsageDescription</key>
    <string>此應用需要訪問您的聯繫人。</string>

祝你編碼愉快!

The Future of FinTech in Hong Kong

I was often told by my teachers that Hong Kong is an international financial center. Indeed, in our highly competitive corporate environment, we enjoy economic success daily. However, Hong Kong currently lags in the FinTech revolution. Singapore has seized this opportunity and has aggressively moved ahead. The Singaporean government has played a crucial role in attracting FinTech companies by providing incentives and clear regulations. Moreover, the extensive client base available to mainland China's FinTech firms has enabled them to thrive in ways that Hong Kong companies haven't.

The challenge is clear: Hong Kong's risk-averse mentality is slowing the progress of the FinTech industry. As an IT consultant, I've heard numerous individuals in the banking sector express concerns about innovations like blockchain, Bitcoin, and mobile payments. They fear these technologies could disrupt their businesses, jeopardize jobs, and result in big companies failing to adapt.

However, there's a silver lining: Hong Kong is home to a large number of innovative and creative individuals. Our community boasts a diverse group of thinkers, builders, and leaders. We have the potential to assemble outstanding teams that can inspire and contribute to the creation of the world's best FinTech ecosystem. Now is the time to elevate our awareness and reimagine what is possible when financial technology serves as a catalyst for positive industry transformation.

In my opinion, this is the desired outcome: we are guiding global financial technology to become more human-centered. Our current legal sandbox policy allows companies to test their innovative ideas in the marketplace. These financial technologies have the potential to positively impact people's lives around the globe. Together, let's utilize the language and tools of FinTech to reestablish Hong Kong as the regional hub for FinTech commerce.

The Future of FinTech in Hong Kong

Welcome, everyone, to another episode of "Continuous Improvement." I'm your host, Victor. Today, we're diving into a topic that hits close to home for us here in Hong Kong - the FinTech revolution. Now, it's no secret that Hong Kong is an international financial center, but it's time to take a hard look at where we stand in the world of FinTech.

You see, while we enjoy economic success in our highly competitive corporate environment, our neighbors in Singapore have seized the opportunity and aggressively moved ahead in the FinTech race. The Singaporean government has played a crucial role in attracting FinTech companies by providing incentives and clear regulations. Furthermore, mainland China's FinTech firms have thrived on the extensive client base available to them.

The challenge is clear - Hong Kong's risk-averse mentality is slowing the progress of our own FinTech industry. Many individuals in the banking sector express concerns about disruptive technologies like blockchain, Bitcoin, and mobile payments. They fear that these innovations could jeopardize their businesses and result in failure to adapt.

But here's where the silver lining comes in. Hong Kong is home to a diverse group of innovative and creative individuals. We have the potential to assemble outstanding teams that can inspire and contribute to the creation of the world's best FinTech ecosystem. It's time to elevate our awareness and reimagine what is possible for our city when financial technology serves as a catalyst for positive industry transformation.

In my opinion, this is the desired outcome - guiding global financial technology to become more human-centered. We're fortunate to have a legal sandbox policy that allows companies to test their innovative ideas in the marketplace. These financial technologies have the potential to positively impact lives around the globe. Together, let's utilize the language and tools of FinTech to reestablish Hong Kong as the regional hub for FinTech commerce.

Before we wrap up for today, I encourage you all to join the conversation. What steps do you think Hong Kong needs to take to catch up in the FinTech revolution? Share your thoughts and ideas with us via our website or social media channels.

That's all for today's episode of "Continuous Improvement." Thank you for tuning in, and remember, growth comes through continuous improvement. Until next time!

香港金融科技的未來

我經常被我的老師告知,香港是一個國際金融中心。確實,在我們競爭激烈的企業環境中,我們每天都享受著經濟的成功。然而,香港目前在金融科技的革命中落後了。新加坡已經抓住了這個機會,並積極地前進。新加坡政府在吸引金融科技公司方面起著至關重要的作用,他們提供了激勵措施和明確的規章制度。此外,中國內地金融科技公司可用的廣大客戶基礎使得他們能夠以香港公司無法實現的方式蓬勃發展。

挑戰十分明顯:香港過於保守的心態正在減緩金融科技行業的進步。作為一名 IT 顧問,我聽到許多銀行業的人對像區塊鏈、比特幣和移動支付等創新科技表示擔憂。他們擔心這些技術可能會破壞他們的業務,威脅工作,並導致大公司無法適應。

然而,這裡有一線希望:香港擁有大量的創新和創造力的個體。我們的社區擁有多樣化的思考者,建設者,和領導者。我們有可能組建優秀的團隊來啟發並為創造世界上最好的金融科技生態系統做出貢獻。現在是提高我們的意識,重新想象當金融科技作為正向產業轉型的助推器時,可能會發生什麼。

依我看,這是我們期望的結果:我們正引導全球的金融科技變得更以人為本。我們目前的法律沙盒政策允許公司在市場上測試他們的創新想法。這些金融科技有可能對全球人民的生活產生積極的影響。讓我們一起利用金融科技的語言和工具,將香港重新建立為金融科技商業的區域中心。

What is Blockchain and How is It Used?

Many of my friends have been asking about the emergence of the blockchain revolution. According to recent news, four of the world's largest banks have teamed up to develop a new form of digital cash. This digital cash aims to become an industry standard for clearing and settling financial trades over blockchain technology. Meanwhile, Ripple has raised $55 million in Series B funding. In my opinion, there's no doubt that blockchain has the potential to disrupt traditional banking.

What Is It?

Blockchain is a data structure that serves as a digital ledger for transactions. This ledger is shared among a distributed network of computers, numbering in the millions. Utilizing state-of-the-art cryptography, the technology securely manages the ledger. Blockchain operates on a consensus model: every node agrees to every transaction, thereby eliminating the need for a central counterparty (CCP) in traditional settlement processes.

How Is It Used?

Blockchain offers broad implications for cross-currency payments by making them more efficient. It eliminates time delays and reduces back-office costs. In response to growing customer demands for faster, lower-cost global payments, blockchain allows for direct bank-to-bank settlements. Some applications of this technology include remittance services for retail customers, international transactions, corporate payments, and cross-border intra-bank currency transfers.

What is the Innovation?

The technology offers the opportunity for transactions to occur without needing to know who the other party is. Its most innovative feature is the idea of a distributed database, where trust is established through mass collaboration rather than through a centralized institution responsible for authentication and settlement.

What Problems Could Be Solved?

The potential applications of blockchain extend beyond the financial market. This technology could provide an immutable record that can be trusted for various uses. Current identity infrastructure is easily compromised; however, in a blockchain, once a block of data is recorded, it becomes very difficult to alter. Thus, it can be used for genuine privacy protection. Whenever someone attempts to add data to the blockchain, all existing copies run algorithms to verify the transaction. Malicious attempts to defraud the system are rejected, while proposed transactions are approved when a majority of nodes agree on their validity by cross-referencing the blockchain history. As a result, blockchain could serve as the basis for an open protocol for web-based identity verification, creating a 'web-of-trust' and storing data in an encrypted format.

References
  1. Martin Arnold, "Big banks plan to coin new digital currency," Financial Times, August 24, 2016, Financial Times Article
  2. Alyssa Jarrett, "Ripple Raises $55 Million in Series B Funding," Ripple official website, September 15, 2016, Ripple Article
  3. Don Tapscott, Alex, and Rik Kirkland, "How Blockchains Could Change the World," McKinsey & Co, May 8, 2016, ValueWalk Article

What is Blockchain and How is It Used?

Hello and welcome to Continuous Improvement, the podcast where we explore the latest advancements and innovations shaping our world. I'm your host, Victor, and in today's episode, we will delve into the exciting topic of blockchain technology.

Many of my friends have been asking me about the emergence of the blockchain revolution, and I must say, the possibilities are truly remarkable. According to recent news, four of the world's largest banks have teamed up to develop a new form of digital cash. This digital cash aims to become an industry standard for clearing and settling financial trades over blockchain technology. Meanwhile, Ripple has raised $55 million in Series B funding, highlighting the growing interest and investment in this field.

So, let's start by understanding what exactly blockchain is. Simply put, it is a data structure that serves as a digital ledger for transactions. What sets it apart is that this ledger is shared among a distributed network of computers, numbering in the millions. Utilizing state-of-the-art cryptography, the technology securely manages the ledger.

Blockchain operates on a consensus model where every node agrees to every transaction, eliminating the need for a central counterparty in traditional settlement processes. This offers broad implications for cross-currency payments by making them more efficient, eliminating time delays, and reducing back-office costs.

But how is blockchain used in practice? Well, it allows for direct bank-to-bank settlements, enabling faster and lower-cost global payments. Some applications of this technology include remittance services for retail customers, international transactions, corporate payments, and cross-border intra-bank currency transfers.

The innovation lies in the fact that transactions can occur without needing to know who the other party is. This feature, coupled with the idea of a distributed database, where trust is established through mass collaboration rather than a centralized institution, sets the stage for many exciting possibilities.

So, what problems could be solved with blockchain? Well, it goes beyond the financial market. This technology could provide an immutable record that can be trusted for various uses. In a blockchain, once a block of data is recorded, it becomes very difficult to alter. This can be used for genuine privacy protection. Blockchain could also serve as the basis for an open protocol for web-based identity verification, creating a 'web-of-trust' and storing data in an encrypted format.

The potential of blockchain is enormous, and its ability to disrupt traditional banking is evident. With its decentralized nature and secure transactions, it has the power to reshape the way we handle cross-border payments and even how we establish trust in various aspects of our lives.

Well, that's all we have time for today on Continuous Improvement. I hope you found this episode informative and thought-provoking. Stay tuned for more exciting discussions on the advancements and innovations shaping our world.

什麼是區塊鏈,以及它如何被使用?

很多朋友都在問我關於區塊鏈革命的出現。根據最近的新聞,世界四大銀行已經聯手開發一種新形式的數位現金。這種數位現金旨在成為清算和結算金融交易的區塊鏈技術的行業標準。同時,Ripple已經在B輪融資中籌得5500萬美元。在我看來,無疑區塊鏈有潛力顛覆傳統銀行。

何謂區塊鏈?

區塊鏈是一種數據結構,用作交易的數字記錄簿。這個記錄簿在數以百萬計的分散式網絡的電腦之間共享。利用最先進的密碼學,該技術安全地管理記錄簿。區塊鏈依賴共識模型運作:每個節點都同意每一筆交易,從而消除了傳統結算過程中需要中央交易對手(CCP)的需要。

如何使用?

區塊鏈通過使其更高效,對跨貨幣支付有廣泛的影響。它消除了時間延遲並降低了後勤成本。為了回應客戶對更快、更低成本的全球支付的日益增長的需求,區塊鏈允許直接的銀行對銀行的結算。這種技術的一些應用包括零售客戶的匯款服務,國際交易,企業支付和跨國銀行間的貨幣轉帳。

何種創新?

這項技術提供了交易可以在不需要知道對方是誰的情況下進行的機會。其最創新的特點是分散化數據庫的理念,其中信任是通過大規模協作建立的,而不是通過一個負責認證和結算的中心化機構建立的。

可解決哪些問題?

區塊鏈的潛在應用擴展到了金融市場之外。這種技術可能提供一個對於多種用途可以信賴的不可變更的記錄。當前的身份識別基礎設施很容易被破壞;然而,在區塊鏈中,一旦數據塊被記錄,修改起來就變得非常困難。因此,它可以用於真正的隱私保護。每當有人試圖向區塊鏈添加數據時,所有現有的副本都運行算法來驗證交易。試圖欺詐系統的惡意嘗試被拒絕,而預期的交易在大多數節點通過鏈交易歷史驗證其有效性時獲得批准。因此,區塊鏈可以作為基於web的身份驗證的開放協議的基礎,創建一個'信任網絡',並以加密格式儲存數據。

參考文獻
  1. Martin Arnold, "Big banks plan to coin new digital currency," Financial Times, August 24, 2016, Financial Times Article
  2. Alyssa Jarrett, "Ripple Raises $55 Million in Series B Funding," Ripple official website, September 15, 2016, Ripple Article
  3. Don Tapscott, Alex, and Rik Kirkland, "How Blockchains Could Change the World," McKinsey & Co, May 8, 2016, ValueWalk Article

Installing Jupyter Notebook on macOS

I'm using the Anaconda distribution to install Jupyter Notebook.

Step 1: Download Anaconda

First, visit the Anaconda website to download the installer: https://www.anaconda.com/products/distribution

Step 2: Install Anaconda

Run the downloaded installer and follow the graphical prompts to install Anaconda.

Step 3: Attempt to Run Jupyter Notebook

After installation, try running Jupyter Notebook by executing:

jupyter notebook

You may encounter the following error:

> zsh: command not found: jupyter

This happens because the conda command is also not found:

> zsh: command not found: conda

Step 4: Update Shell Configuration

To resolve this issue, open your .zshrc file with your preferred text editor:

vim ~/.zshrc

Add the following line at the bottom of the file:

export PATH="$HOME/anaconda3/bin:$PATH"

Step 5: Restart Shell and Run Jupyter Notebook

Save the file and restart your shell. Try running Jupyter Notebook again. It should now be accessible at http://localhost:8888/.

Installing Jupyter Notebook on macOS

Hello and welcome back to "Continuous Improvement," the podcast where we explore practical tips and techniques for personal and professional growth. I'm your host, Victor, and in today's episode, we'll be discussing the process of installing Jupyter Notebook using the Anaconda distribution.

If you're an aspiring data scientist or simply someone interested in coding and data analysis, Jupyter Notebook is an incredibly useful tool. It allows you to create and share documents that contain live code, equations, visualizations, and narrative text.

So, let's dive right in!

The first step in installing Jupyter Notebook is to download the Anaconda distribution. Head over to https://www.anaconda.com/products/distribution and click on the download link. This will take you to the Anaconda website, where you can find the installer for your operating system.

Once you have downloaded the Anaconda installer, it's time to install it on your machine. Run the installer and follow the graphical prompts that appear on your screen. The installation process is pretty straightforward, but if you encounter any issues, make sure to check the Anaconda documentation for troubleshooting tips.

Once the installation is complete, you might want to test if Jupyter Notebook is working properly. Open your terminal or command prompt and type the following command:

jupyter notebook

However, you might encounter an error at this point. Don't worry, it's a common issue. The error message could be something like:

> zsh: command not found: jupyter

The reason you're seeing this error is because the conda command is also not found. But fret not, there's a simple solution to get things running smoothly.

Open your .zshrc file with your preferred text editor. You can do this by typing:

vim ~/.zshrc

In the .zshrc file, add the following line at the bottom:

export PATH="$HOME/anaconda3/bin:$PATH"

Save the file and close the text editor. Now, it's time to restart your shell. Close and reopen your terminal or command prompt, and now you can try running Jupyter Notebook once again.

Great! Now Jupyter Notebook should be accessible at http://localhost:8888/. You can start creating your notebooks and explore the world of data analysis, visualization, and coding.

That's all for today's episode of "Continuous Improvement." I hope you found this tutorial on installing Jupyter Notebook using the Anaconda distribution helpful. Remember, continuous improvement is key to personal and professional growth, so keep exploring, learning, and enhancing your skills.

If you have any questions or suggestions for future episodes, feel free to reach out to us. You can find us on Twitter, Instagram, or Facebook at @continuousimprovementpodcast.

Take care, and until next time!

在 macOS 上安裝 Jupyter Notebook

我正在使用 Anaconda 發行版安裝 Jupyter Notebook。

步驟 1:下載 Anaconda

首先,訪問 Anaconda 網站以下載安裝程式:https://www.anaconda.com/products/distribution

步驟 2:安裝 Anaconda

運行下載的安裝程式並按照圖形提示進行 Anaconda 的安裝。

步驟 3:嘗試運行 Jupyter Notebook

安裝完成後,嘗試執行 Jupyter Notebook:

jupyter notebook

你可能會遇到以下錯誤:

> zsh: command not found: jupyter

這是因為 conda 命令也找不到:

> zsh: command not found: conda

步驟 4:更新 Shell 配置

為了解決此問題,使用你偏好的文本編輯器打開你的 .zshrc 文件:

vim ~/.zshrc

在文件底部添加以下行:

export PATH="$HOME/anaconda3/bin:$PATH"

步驟 5:重新啓動 Shell 並運行 Jupyter Notebook

保存文件並重新啓動你的 shell。嘗試再次運行 Jupyter Notebook。現在應該可以在 http://localhost:8888/ 上訪問。