日本語を適切に扱うための MySQL 5.7, 8.0 の character set と collation の設定

TL;DR MySQL 5.7 MySQL 8.0 真面目な説明 Unicode と UTF-16, UTF-8 MySQL への応用 データベースサーバーの character set データベースサーバーの collation MySQL 5.7 collation: utf8mb4_general_ci collation: utf8mb4_bin collation: utf8mb4_unicode_…

Difference between `su` and `su -` in Bash on Linux, or Login Shell and Interactive Shell

Although this topic has been discussed from B.C., I want to re-summarize the difference between su and su - while explaining the meaning of login shell and interactive shell. What is Login Shell and Interactive Shell? A login shell is one …

pyenv 不要説

macOS ローカルで Python のエフェメラルなスクリプトや小規模で実験的なプロジェクトを作る場合、pyenv いらんやろという結論に至った。 Python は Homebrew によりインストールし、これを直接使う。 現環境には次の Python formulae がインストールされて…

Chap 4 | Syntax in Functions

learnyouahaskell.com Pattern matching With pattern matching, you can check if a data conforms some specification and deconstruct the data. A function can have several bodies for different patterns. The below function checks if its paramete…

Chap 3 | Types and Typeclasses

learnyouahaskell.com Believe the type We can get a type of expressions with :t command in GHCi. ghci> :t 'a' 'a' :: Char :: is read as "has type of". In the example above, Haskell says "'a' has type of Char". Explicit types are always deno…

『Rによる実証分析 回帰分析から因果分析へ』の不親切な点に関するメモ

ISBN: 978-4274219474 pp.68-69 \[\begin{eqnarray} MSE &=& \frac{1}{n} \sum_{i = 1}^n \underbrace{ (y_i - y^*)^2 }_{展開} \nonumber \\ &=& \frac{1}{n} \sum_{i = 1}^n (y_i^2 - 2 y_i y^* + {y^*}^2) \nonumber \\ &=& \frac{1}{n} \sum_{i = 1}^n y…

Synology DiskStation DS119j で Time Machine バックアップ

TL;DR DS119j で問題無く Time Machine バックアップができる 操作説明は下の動画が一番わかりやすい youtu.be Synology DiskStation DS119j + Seagate IronWolf 2TB を買った。初めての NAS。 【NASキット】Synology DiskStation DS119j [1ベイ / デュアル…