先前提到的「AWS 對 Elastic Stack 實作免費的開源版本 Open Distro for Elasticsearch」,在「Open Distro for Elasticsearch Review」這邊有整理了一份重點:
可以看到主要重點都在安全性那塊...
幹壞事是進步最大的原動力
先前提到的「AWS 對 Elastic Stack 實作免費的開源版本 Open Distro for Elasticsearch」,在「Open Distro for Elasticsearch Review」這邊有整理了一份重點:
可以看到主要重點都在安全性那塊...
看到「sr.ht, the hacker's forge, now open for public alpha」這篇,講 sr.ht 這個 Git Hosting。
文章裡面有提到,目前大多數的 Git Hosting 都很像,不管是 Bitbucket、GitLab、其實大家都是抄 GitHub 的界面與功能抄得很開心...
sr.ht 則是從不同的角度來設計 Git Hosting,避免了大量 js 的界面,但還是提供了很豐富的功能 (支援 markdown 文件、CI、透過 mailing list 討論、有一個 ticket system 可以放各種事項、wiki、...)。
其實還是支援了現在 Git Hosting 常見的功能,只是功能與界面上不太相同而已 XD
TCP BBR 是 Google 發表的 TCP congestion control 演算法,是一個純伺服器端就能夠改善 TCP 壅塞處理的機制。在 Linux Kernel 4.9 之後被納入了。
而 Spotify 有大量資料要傳到使用者端 (像是音檔),剛好是 TCP BBR 改善的對象之一,實際測試後得到了很不錯的改善數據:「Smoother Streaming with BBR」。
Spotify 公佈的資料沒有提到平台,所以先稍微了解一下他的音質,也就是「Audio settings」這篇。
在 Desktop 是 160kbps/320kbps Ogg (Standard/HQ)。在 Web Player 則是 128kbps/256kbps AAC (Standard/HQ)。
行動平台部份比較複雜,在 iOS 上是 96kbps/160kbps/256kbps Ogg (Normal/High/Extreme),另外有 Automatic 自動調整的設定。在 Android 平台則是 24kbps HE-AACv2 (Low) 與 96kbps/160kbps/320kbps Ogg (Normal/High/Very high) 以及 Automatic。
而最後 Chromecast 則是 128kbps/256kbps (Standard/Premium)。
測試時可以發現 shutter (指跟不上播放速度) 的情況降低了 6%~10%,而且下載速度增加了 5%~7% (對於慢速的裝置改善更多,10%~15%):
Taking daily averages, stutter decreased 6-10% for the BBR group. Bandwidth increased by 10-15% for the slower download cohorts, and by 5-7% for the median. There was no difference in latency between groups.
而各地區的差異也可以看出來改善很多:
另外他們在測試時,剛好遇到秘魯的機房連外發生問題,結果意外發現 BBR 還是可以穩定在這種網路環境下運作:
In Peru, the non-BBR group saw a 400-500% increase in stutter. In the BBR group, stutter only increased 30-50%.
In this scenario, the BBR group had 4x bandwidth for slower downloads (the 10th percentile), 2x higher median bandwidth, and 5x less stutter!
在 Ubuntu 18.04 上可以直接設定 BBR,在 Ubuntu 16.04 則可以參考「Ubuntu 16.04 用 speedtest-cli 測試 TCP BBR 效能」這篇的方式升級 kernel 後設定 BBR。
看到「git log – the Good Parts」這篇文章,裡面研究了 Git 裡 git log
的各種好用的功能,然後整理出來... (所以是 good parts XD)
作者用的參數是一個一個加上去,所以可以一個階段一個階段了解用途。除了可以用作者推薦的 repository 測試外,我建議大家拿個自己比較熟悉的 open source 專案來測 (有用到比較複雜的架構):
git log git log --oneline git log --oneline --decorate git log --oneline --decorate --all git log --oneline --decorate --all --graph
看到喜歡的部份可以在 ~/.gitconfig
裡設 alias
使用,像是用 git l
之類的?保留 git log
本身可以避免一些 script 用到這個指令時因為輸出格式跟預期不一樣而爛掉 XD
Firefox 從 59 之後,在開啟 Private Browsing 的情況下,不會送出完整的 Referer
:「Preventing data leaks by stripping path information in HTTP Referrers」。
這篇吸引到我的是 EFF 的研究員發現的事情:
EFF researchers discovered this leak of personal health data from healthcare.gov to DoubleClick.
其中 EFF 研究員的文章是「HealthCare.gov Sends Personal Data to Dozens of Tracking Websites」這篇。
更好的作法應該是平常就完全阻擋,像是 Firefox 可以用 Referrer Control 設定,或是 Chrome 裡用 Referer Control 設定。
Disclosure:我跑去找作者簽名,然後被戳說要介紹廣告一下 XDDD
這是本講 Git 的書,翻內容後的感覺... 定位差不多在入門使用者與中階使用者。先引用作者在 Twitter 的 tweet:
喔耶!
而且剛剛出版社通知要二刷了
感謝大家支持 m(_ _)m pic.twitter.com/XwFFPOwyH2— 高見龍SW-2554-7013-4724 (@eddiekao) December 4, 2017
在天瓏掛第一,然後出版社通知要二刷了,應該是賣的還不錯 XDDD
書的章節可以參考「天瓏網路書店-為你自己學Git」這邊,內容是以 Command Line 為主,對於真的要把 Git 用好蠻有幫助的。除此之外,實務上常見的問題都有提到 (像是搞爛東西後可能的解法),也講了不少冷知識,對於理解 Git 內怎麼運作會有幫助...
唯一覺得奇怪的地方應該是在最後兩章,講 GitHub 與 Git Flow (也就是「A successful Git branching model」這邊提出來的方法),反而不是 GitHub Flow... 雖然在 GitHub 上也可以走 Git Flow 啦。
拿民用品當作軍事器材不是第一次了,不過拿來操作潛艇倒是蠻值得看一下的:「The U.S. Navy's most advanced submarines will soon be using Xbox controllers」。
在 lab 環境測試的畫面。原因頗簡單,就是成本考量,而且很容易取得:
The company says the photonic mast handgrip and imaging control panel that cost about $38,000 can be replaced with an Xbox controller that typically costs less than $30.
不過有個問題啊,軍用品一般都可以抵抗 EMP,這種民用品應該不行吧 XDDD
狀態已經是 Category: Standards Track 了,RFC 8246 的「HTTP Immutable Responses」:
The immutable HTTP response Cache-Control extension allows servers to identify resources that will not be updated during their freshness lifetime. This ensures that a client never needs to revalidate a cached fresh resource to be certain it has not been modified.
對 Cache-Control
介紹了 immutable
,像是這樣:
Cache-Control: max-age=31536000, immutable
依照 MDN 上的資料 (Cache-Control - HTTP | MDN),目前只有 Edge 與 Firefox 支援,不過既然成為標準了,後續其他瀏覽器應該都會支援 (吧):
在「[ANNOUNCE] Git v2.14.1, v2.13.5, and others」這邊看到 -
開頭產生的問題:
These contain a security fix for CVE-2017-1000117, and are released in coordination with Subversion and Mercurial that share a similar issue. CVE-2017-9800 and CVE-2017-1000116 are assigned to these systems, respectively, for issues similar to it that are now addressed in their part of this coordinated release.
這算是老問題了,Git 對應的修正主要是朝 filter input 的方向修正,包括了禁用 -
開頭的 hostname,以及禁止 GIT_PROXY_COMMAND
是 -
開頭,另外是禁止開頭是 -
的 repository name:
- A "ssh://..." URL can result in a "ssh" command line with a hostname that begins with a dash "-", which would cause the "ssh" command to instead (mis)treat it as an option. This is now prevented by forbidding such a hostname (which should not impact any real-world usage).
- Similarly, when GIT_PROXY_COMMAND is configured, the command is run with host and port that are parsed out from "ssh://..." URL; a poorly written GIT_PROXY_COMMAND could be tricked into treating a string that begins with a dash "-" as an option. This is now prevented by forbidding such a hostname and port number (again, which should not impact any real-world usage).
- In the same spirit, a repository name that begins with a dash "-" is also forbidden now.
然後中華電信的 DNS server (168.95.1.1 & 168.95.192.1) 都查不到 marc.info
,改用 Google 的 8.8.8.8 才查得到... =_=
在 Hacker News Daily 上看到這則 tweet,說 iOS 11 將會把 Location 的主權交還給使用者控制:
iOS 11 Privacy Updates:
2. Location “While Using” is now ALWAYS an option for users.
(It’s about time!)https://t.co/QW5lkGnWE9
— Tinfoil 2.0 ? (@tfoil2) June 6, 2017
查了對應的一些網站,可以看到好幾個站台都有介紹這一點:「iOS 11 Users to Gain More Control Over Apps' Use of Location Services」、「iOS 11 gives users tighter control over when apps can use their location」。
而 TechCrunch 標題寫的更直接,其實影響最直接的就是這些 app:「iOS 11 stops apps like Uber and Waze from accessing user location data at all times」。
算是不錯的消息啦... (Android 上則可以看「Background Location Limits」,這邊是 Android O 的新功能...)