以往不想要讓人索引、讀取的目錄和檔案都會設定成 deny all:
location ~ /\.git { deny all; }
這樣設定的話,開啟該目錄就會收到
。這個訊息有二個含意:主機上面的確有這份資料、你沒有權限打開。HTTP 403 Forbidden
也就是,檔案在 URL 的連結已經確定了,只要繞過權限管理即可讀取檔案。
與其這樣,不如直接讓主機回傳 HTTP 404
,這樣便無法知道檔案是否存在:
location ~ /\.git { return 404; }
軟體開發、伺服器和生活瑣事
以往不想要讓人索引、讀取的目錄和檔案都會設定成 deny all:
location ~ /\.git { deny all; }
這樣設定的話,開啟該目錄就會收到
。這個訊息有二個含意:主機上面的確有這份資料、你沒有權限打開。HTTP 403 Forbidden
也就是,檔案在 URL 的連結已經確定了,只要繞過權限管理即可讀取檔案。
與其這樣,不如直接讓主機回傳 HTTP 404
,這樣便無法知道檔案是否存在:
location ~ /\.git { return 404; }
經朋友推薦,Google 推出了 Android 開發課程,且課程主要是使用 Kotlin 來建立 Android Apps。沒有猜錯的話,這可能與之前 Google 與 Oracle 之間的 Android 版權訴訟有關,用到 Java 時 Oracle 就想要分一杯羹什麼的,所以 Google 開始推廣 Kotlin。
這次 Google 的 Android 培訓計畫:https://events.withgoogle.com/android-study-jam-twhk-2021/ ,主要使用 Kotlin,但我想這不是重點,重點是完成課程以後,有 Google 頒發的 certification 以外,還會贈送官方的 Android 貼紙與 T-shirt … XD
2011/10/08 update:Google Play 新版已經無法再透過網頁連結開啟「Google 注音輸入法」,請參考網路上其他的評語來選擇 GBoard 以外的輸入法。 (我自己跳去使用超注音)
在 Google 開始推 Gboard 輸入法以後,Google Play Store 就無法搜尋到原有的 Google 注音輸入法,但 Google Play Store 並沒有將 Google 注音輸入法移除,就真的是從搜尋結果和應用程式列表中完全消失而已。
2011/11/04 update:9Apps 可以下載到 Google 注音的 apk,版本是 2016/12/10 發佈的 v2.4.3,我自己也備份了一下。可以到 EAA Series 的文章中,了解下載 APK 的方法。
BBC 一篇報導中說有人發現 www.google.com.ar 無法顯示,那位老兄意外的把網域買下來,並發現真的可以設定顯示自己的網頁。
Google Argentina’s domain name bought by man for £2
“I entered www.google.com.ar into my browser and it didn’t work,” he said. “I thought something strange was happening.”
He decided to go on to the Network Information Center Argentina (NIC) – the organisation responsible for operating the .ar country code domains. He searched for Google – and up popped Argentina’s Google domain available for purchase.
Despite thinking it would not work, he “followed the steps and then I received an email with the purchase invoice”, he said.
……
Dumbfounded, he tapped www.google.com.ar into his search bar and pressed enter. “My personal data appeared,” he said.
他最不該做的事情,不是買下 Google 的網域 …. 是將網域指向自己的網頁,當原本要使用 Google 搜尋服務大量的流量,全部都會轉去他的網頁,真是有夠嗨的 XD
前陣子 OpenPandemics 雖然有提到要使用 GPU 協助專案分析,但是幾乎沒有收到相關的 task,甚至一個 task 結束以後要很久才會收到結果,今天終於看到大量的 GPU tasks 出現。
猜測是先前的 task result 先是透過人工分析結果,確認分析程式有正確運作以後,才開始大量工作分派出去。現在只有支援的 GPU 節點應該都會收到大量的分析工作。
已現在世界的狀況來說,挖礦並不會讓疫情穩定下來;只要疫情不明朗,就算個人有在多的財富,當世界只剩下你一個人活下來時,任何財富都是沒有意義的。有機會的會,就多少幫忙專案分析吧