高鐵趣事

上星期五出差回來搭高鐵直達車,由於乘客過多,導致我只能買自由坐站回高雄,站在我身邊的兩個妹子,聊著要趕緊回去餵食家裡可憐的貓咪,聊著聊著快到台中時,他們聽到列車播報著台中站快到嚕!兩個突然崩潰的大喊!台中!怎沒停桃園… 我心想兩位有事嗎XD,你們站了這麼久,還沒到桃園,以為在搭台鐵嗎?然後他們到台中站前一直崩潰的互相調侃,害我忍不住笑了一下,雖然有帶口罩,但正對我的其中一個妹子看到我笑了,用哭嗓的聲音問我先生你在笑我們嗎…XD 我想他們沒注意到這節車廂都在笑吧…

ffmpeg CPU 壓縮與 nvenc

以同樣是 hevc (h.265) 來說, 來源若是 h.264 的 1080p M2TS 片源, 如果 decode 跟 encode 都用顯卡加速 (nvenc), GTX 1080 可以做到 11x 的速度, 若用 CPU 來壓通常只有 0.0x 的速度.

至於畫質, nvenc 就將就點, 適合做直播時使用, 因為做直播延遲不能太久. 明顯肉眼一喵就看得出來的情況, 大概是昏暗然後有聚光打在物體或人物上時候, 聚光到暗部會有明顯的水波紋路, CPU 壓出來相對就沒有這問題, 畫質相對穩定很多, CPU 適合壓來收藏 BD 片源.

贈衛八處士

人生不相見, 動如參與商。

今夕復何夕, 共此燈燭光。

少壯能幾時, 鬢發各已蒼。

訪舊半為鬼, 驚呼熱中腸。

焉知二十載, 重上君子堂。

昔別君未婚, 兒女忽成行。

怡然敬父執, 問我來何方。

問答未及已, 兒女羅酒漿。

夜雨剪春韭, 新炊間黃粱。

主稱會面難, 一舉累十觴。

十觴亦不醉, 感子故意長。

明日隔山岳, 世事兩茫茫。

遺忘

曾經在意的事,想著想著也就忘了。曾經在意的人,走著走著也就散了。

潰瘍性結腸炎生物製劑

  1. 抗腫瘤壞死因子α製劑: Adalimumab, Golimumab 與體內TNF-α結合,減少其造成的發炎反應.
  2. α4β7整合蛋白抑制劑: vedolizumab 專一結合α4β7整合蛋白,並阻斷α4β7整合蛋白和第一型黏膜地址素細胞黏合分子(MAdCAM-1)的交互作用,抑制記憶T淋巴細胞穿越血管內皮遷移進入發炎的胃腸道薄壁組織

潰瘍性結腸炎新的嘗試

  1. 妙利散 –> 宫入菌, 曾經食用後獲得緩解. 不過兩個月後再復發無效.
  2. 三七粉 –> 曾經食用後獲得緩解, 但一段時間後也無效.
  3. 益生菌灌腸 –> 作用不明顯.
  4. 三七粉灌腸 –> 嘗試中. 預計 6克三七粉搭配可體灌腸.
  5. 類固醇灌腸 –> 急性期無法有效緩解, 並且會有激素依賴症狀, 各種副作用.
  6. 5asa 灌腸與口服 –> 療效不明, 與未服用無明顯差異.

php7 ppa

出處: https://www.colinodell.com/blog/201711/installing-php-72

Ubuntu 14.04, 16.04, 17.04, 17.10, & 18.04

PHP 7.2 can be installed using Ondřej Surý’s PPA:

sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php7.2-cli

View the full list of available packages here.

Debian 8 (Jessie) and 9 (Stretch)

Ondřej Surý also provides PHP 7.2 packages for Debian which can be installed using these commands:

sudo apt-get install apt-transport-https lsb-release ca-certificates
sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php.list
sudo apt-get update
sudo apt-get install php7.2-cli

Debian 7 (Wheezy)

PHP 7.2 can be compiled from source by following the instructions outlined here: Install PHP 7 on Debian Wheezy. Make sure you git checkout the appropriate tag after cloning the php-src repository.

CentOS / RHEL 6+ & Fedora 25+

Remi Collet, one of the release managers for PHP 7.2, also publishes RPM packages for this new version. You can use the configuration wizard to determine the exact setup steps, or see Remi’s website for additional details about the 7.2.0 release.

Mac OS X

PHP 7.2 can easily be installed via Liip’s php-osx tool:

curl -s https://php-osx.liip.ch/install.sh | bash -s 7.2

Or, if you prefer using Homebrew:

brew tap homebrew/homebrew-php
brew install php72

Windows

PHP 7.2 distributions for Windows can be found on the windows.php.net website: http://windows.php.net/download#php-7.2

You can find instructions for installing the distribution here: https://www.webtechgadgetry.com/install-php-7-windows/

phpbrew

phpbrew is a really nice tool that helps you download, compile, and manage multiple versions of PHP. Assuming you’ve already followed the installation directions and have phpbrew up-and-running, PHP 7.2.0 can be installed with two easy commands:

phpbrew update
phpbrew install -j $(nproc) 7.2.0 +default

Docker

Official PHP images can be found on Docker Hub. You can use the php:7.2 tag for base images.

If you’d like to tinker with PHP 7.2 in an interactive shell, simply run this in your terminal:

docker run -it --rm php:7.2