## 蘋果 App Store 收費模式的改變

In a rare pre-WWDC sit-down interview with The Verge, Phil Schiller, Apple’s senior vice president of worldwide marketing, said that Apple would soon alter its revenue-sharing model for apps.

70/30 的拆分方式有改變，並且擴大開放的範圍：

While the well-known 70 / 30 split will remain, developers who are able to maintain a subscription with a customer longer than a year will see Apple’s cut drop down to 15 percent. The option to sell subscriptions will also be available to all developers instead of just a few kinds of apps. "Now we’re going to open up to all categories," Schiller says, "and that includes games, which is a huge category."

## Netflix 評估影片品質的方法

Netflix 在發了一篇很長的文章，說明怎麼評估 video quality：「Toward A Practical Perceptual Video Quality Metric」，文章雖然有點長，但其實還蠻好懂的...

All of the challenging work described above hinges on one fundamental premise: that we can accurately and efficiently measure the perceptual quality of a video stream at scale.

Traditionally, in video codec development and research, two methods have been extensively used to evaluate video quality: 1) Visual subjective testing and 2) Calculation of simple metrics such as PSNR, or more recently, SSIM.

Without doubt, manual visual inspection is operationally and economically infeasible for the throughput of our production, A/B test monitoring and encoding research experiments.

Although researchers and engineers in the field are well-aware that PSNR does not consistently reflect human perception, it remains the de facto standard for codec comparisons and codec standardization work.

Netflix 的作法其實很簡單：(但是每一步都很仔細)

• 首先先把影片依照手上有的 metadata 歸類，然後再挑出代表性的剪輯，並且產生不同 bitrate 的檔案。
• 用人工對這些剪輯評分。
• 用機器產生各種既有計算方法的分數 (PSNR、SSIM、...)。
• 用數學方法把人工的與機器算的分數建立 model。
• 然後對於未知的影片先寄算出既有方法的分數 (PSNR、SSIM、...)，然後套用 model 推估人的觀感。

## 清出一個乾淨的 Git Repository

BRANCH=master
git fetch --force
git reset --hard origin/"\${BRANCH}"
git submodule sync --recursive
git submodule update --init --force
git clean --force --force -d -x
git checkout "\${BRANCH}" --force

## 把主力手機從 iPhone 換到 Android

adb devices # 看裝置順便打 RSA public key 進去
adb shell # 進去後可以 ls/su 看一看

Android Marshmallow (6.0) 另外多了對權限的管理，這也是想刷到 6.0 的原因之一，使用者可以隨時 revoke 掉某些權限 (沒有處理好的會 crash XD)：

Android Marshmallow introduces a redesigned application permission model: there are now only eight permission categories, and applications are no longer automatically granted all of their specified permissions at installation time. An opt-in system is now used, in which users are prompted to grant or deny individual permissions (such as the ability to access the camera or microphone) to an application when they are needed for the first time. Applications remember the grants, which can be revoked by the user at any time.

Android 上的 Google Authenticator 不怎麼好用 (不能調整位置，另外不希望隨時都給密碼)，測了測 Red Hat 出的 FreeOTP Authenticator 算是比較好用的，就把 FreeOTP Authenticator 拿來給個人用，Google Authenticator 拿來給公司的帳號用。

## 在 C 裡 Concurrency 的 Library

#include <libdill.h>
#include <stdio.h>
#include <stdlib.h>

coroutine int worker(const char *text) {
while(1) {
printf("%s\n", text);
msleep(now() + random() % 500);
}
return 0;
}

int main() {
go(worker("Hello!"));
go(worker("World!"));
msleep(now() + 5000);
return 0;
}

## DVD 的發行時間差異導致盜版

MPAA 資助的報告顯示 DVD 的發行時間差異導致盜版：「DVD Release Delays Boost Piracy and Hurt Sales, Study Shows」，報告在「Windows of Opportunity: The Impact of Piracy and Delayed International Availability on DVD Sales」這邊可以看到。

"When we run our regressions on Spain and Italy alone, we observe a 10% drop in sales for every 10-day delay in legal availability, as compared to a 2% drop in sales for every 10-day delay in the entire sample," the paper reads.

"Our results suggest that an additional 10-day delay between the availability of digital piracy and the legitimate DVD release date in a particular country is correlated with a 2-3% reduction in DVD sales in that country," the researchers write.

## Wal-Mart 與 Uber/Lyft 合作迎戰 Amazon

Amazon 透過各種技術整合的比較好 (像是先前發表無人機空運的技術 Amazon Prime Air)，而 Wal-Mart 則是跟 Uber/Lyft 這樣的公司配合：「Wal-Mart Plans to Test Grocery Delivery Through Uber, Lyft」。

The move steps up competition with Amazon’s burgeoning grocery-delivery service and provides a potential new avenue of growth for Uber and Lyft. The idea is to let Wal-Mart customers pick out groceries online and then have employees fill the order and give it to one of the ride-hailing companies’ drivers. Shoppers will pay a \$7-to-\$10 delivery charge to Wal-Mart to have the groceries brought to their door.

## 用 FPGA 破 WPA2

Twitter 上看到「Efficient High-Speed WPA2 Brute Force Attacks using Scalable Low-Cost FPGA Clustering」這篇論文，講比較便宜的 FPGA 破 WPA2 的最佳化。主要的成果可以從表格看到，這是 FPGA 的：

Ztex 1.15y 應該是「USB-FPGA Module 1.15y: Quad-Spartan 6 LX150 FPGA Board with USB 2.0 Microcontroller」這組，而 Ztex 2.16 應該是「USB-FPGA Module 2.16: Artix 7 XC7A200T FPGA Board with USB 2.0」，價位 (美金) 也都標在上面了。