Author Archives: Gea-Suan Lin

有 Lazy Connection 功能的 PDO object

在「Aura.Sql」這邊看到有提供 Lazy Connection 的 PDO object,而且是繼承自本來的 PDO object: Provides an extension to the native PDO along with a profiler and connection locator. Because ExtendedPdo is an extension of the native PDO, code already using the native PDO or typehinted to … Continue reading

Posted in Computer, Database, Library, Murmuring, Network, Programming, Software | Tagged , , , , , , , , , , | Leave a comment

在 Mac 上快速換輸入法的方法:Kawa

三月的時候在「在 Mac 上快速切換輸入法」這邊提到了 IMEShortcuts,但有時候還是不會生效... 在「GitHub 中那些不错的免费软件」這篇裡面提到了 open source 的 utatti/kawa 這個專案,裡面有針對 CJKV 輸入法的 bug 提供 workaround,就給個機會測試看看: There is a known bug in the TIS library of macOS that switching keyboard layouts doesn't work well when done programmatically, especially between complex … Continue reading

Posted in Computer, MacOS, Murmuring, OS, Software | Tagged , , , , , , , , , , , , , , | Leave a comment

Amazon 的多變數最佳化

在「An efficient bandit algorithm for real-time multivariate optimization」這邊提到了 Amazon 不是走傳統的 A/B testing,而是同時進行多變數的最佳化: Consider the problem of trying to find a near-optimal version of a promotional message such as this one, which has 5 variable parts and 48 different combinations in … Continue reading

Posted in Computer, Murmuring, Network, WWW | Tagged , , , , , , , , | Leave a comment

Node.js 預定在十月 24 號發表安全性更新

在「DOS security vulnerability, October 2017」這邊先發佈了日期與影響範圍,細節預定在 10/24 發表: The Node.js project will be releasing new versions of 4.x, 6.x, and 8.x the week of the 24th of October to incorporate a security fix. Versions 4.8.2 and later of Node.js are vulnerable. … Continue reading

Posted in Computer, Murmuring, Programming, Security, Software | Tagged , , , , | Leave a comment

PHP 7.2 的效能改善

作者在「PHP 7.1 vs 7.2 Benchmarks (with Docker and Symfony Flex)」這邊拿 Symfony 測試 PHP 7.2 的效能,發現效能提昇主要來自於多個連線時的情境: 前面的數字是前端頁面 (用了 Twig),後面的數字是純 API 呼叫。都可以看出 conc = 1 時其實沒有顯著差異,但只要有多個連線同時存取時,效能的提昇就會展現出來。對於繁忙的站台感覺會有不少幫助... 作者的猜測是 opcache 模組的改善,也就是在這段提到的: - Opcache: . Added global optimisation passes based on data flow analysis using … Continue reading

Posted in Computer, Murmuring, Network, Programming, Service, Software, WWW | Tagged , , , , | Leave a comment

Amazon Device Farm 支援讓使用者直接連上去 debug 了...

Amazon Device Farm 推出這樣的功能又朝著設備租賃服務更進一步了:「Amazon Device Farm Launches Direct Device Access for Private Devices」。 Now, with direct device access, mobile applications developers can use individual devices in their private test set as if they were directly connected to their local machine … Continue reading

Posted in AWS, Cloud, Computer, Hardware, Murmuring, Network, Programming, Service, Telephone | Tagged , , , , , , , , , | Leave a comment

AWS WAF 支援 Regex (PCRE)

首先是 AWS WAF 支援 Regex 了:「AWS WAF Now Supports Regular Expressions (Regex)」。 而且是以 PCRE 版本為主: AWS WAF supports most of the standard Perl Compatible Regular Expressions (PCRE). 這樣設定變得方便很多啊,大家都算熟 regex,而且也夠強大... 另外一個公告是 AWS WAF 可以將地區的當條件進行設定了:「AWS WAF Now Supports Geographic Match」。 除了針對某些地區擋掉或是開放以外,也可以針對不同地區設定 rate … Continue reading

Posted in AWS, Cloud, Computer, Library, Murmuring, Network, Programming, Security, Service, Software, WWW | Tagged , , , , , , , , , , , | Leave a comment

ROCA:Infineon Technologies 的 RSA 實做問題

最近的另外一個大包,不過這包是 Infineon Technologies 在實做 RSA 算法時的問題,倒不是 RSA 算法本身有問題。之所以會「大」是因為有太多人用了:「ROCA: Vulnerable RSA generation (CVE-2017-15361)」。 起因於 Infineon Technologies 在產生 key 時的組合有限,於是要猜測的 keyspace 小很多。 以研究者的估算,可以看出 CPU year 都被大幅減少了,都是屬於「可行」的範圍: The time complexity and cost for the selected key lengths (Intel E5-2650 v3@3GHz Q2/2014): 512 bit … Continue reading

Posted in Computer, Murmuring, Privacy, Security | Tagged , , , , , , , , , , | Leave a comment

YouTube 史上第一個破四十億次播放的影片:Despacito

前幾天 2017/10/11 達到了:「Luis Fonsi & Daddy Yankee's 'Despacito' Is First Clip to Hit 4 Billion Views on YouTube」。 出自「Gangnam Style (music_video)」這頁。 不到一年的時間 XD 依照這個速度,應該是下個月會破 UINT_MAX (4294967295)?當年 YouTube 的人有在 Google+ 上發了一則關於超過 INT_MAX 的 PR 稿 (不過後來刪除了):「Gangnam Style overflows INT_MAX, forces YouTube … Continue reading

Posted in Computer, Murmuring, Music, Network, Recreation, Service, WWW | Tagged , , , , , , | Leave a comment

Amazon Lightsail 支援 Windows 了

Amazon Lightsail 決定支援 Windows 了,算是其他目前幾家領頭的 VPS 還沒進入的領域:「Amazon Lightsail Update – Launch and Manage Windows Virtual Private Servers」。 由於多了 Windows 的授權費用,價錢貴了不少: 不過還是提供一個月免費的額度: You can try out a 512 MB server for one month (up to 750 hours) at no charge. 不過不是所有 … Continue reading

Posted in AWS, Cloud, Computer, Murmuring, Network, OS, Software, Windows | Tagged , , , , , | Leave a comment