anacondaのopenblas on Mac

anacondaチャネルのMac用のlibgfortran(3.0.1)が壊れているようだ。代わりにconda-forgeチャネルのlibgfortran(3.0.0)を入れたらうまく動いた。でもこれだとmklをリンクしたnumpyが使えない。そこで、anacondaのlibgfortran(3.0.0)を使いたい。うまくインストールしないとlibgfortranが3.0.1にアップグレードされてしまうのでインストールする順番が大事だ。まず必要なパッケージを一通りインストールしたのち、libgfortranをダウングレードすると、依存するパッケージも自動的にダウングレードされるので簡単にlibgfortran(3.0.0)を中心とした環境ができた。

conda install libgfortran=3.0.0

openblasはlibgfortran=3.0.0のインストールの後にインストールする。そうでないと依存関係がうまく解決できなくなる。

Travis-CIで、conda install中にコケる

こんな感じでこける。

CondaError: IOError(11, 'Resource temporarily unavailable') travis

よくわからないけど、おまじないみたいなもので解決した。
TravisCI builds failing with latest Miniconda · Issue #6487 · conda/conda · GitHub
Large writes to stdout sometimes fail with "Resource temporarily unavailable". · Issue #4704 · travis-ci/travis-ci · GitHub

Emacs, zsh, iTerm, tmux, macOSの暗い色設定

Emacs

atom-one-darkのインストール
M-x package install RET atom-one-dark
使っているディスプレイに対してコントラストが足りないので
atom-one-dark-theme.elを変更。

    ("atom-one-dark-fg"       . "#D0D0D0") ;; orig ABB2BF
    ("atom-one-dark-mono-3"   . "#A0A0A0") ;; orig 5C6370

Emacsのtitle barを暗くする方法は無くはなさそうだけど(たとえば
GitHub - railwaycat/homebrew-emacsmacport: Emacs mac port formulae for the Homebrew package manager
先延ばしにする。

zsh

.zshrc

PROMPT='%F{green}%n%f%F{white}@%F{green}%m%f%# '
RPROMPT='%F{green}[%~]%f'
dircolors
DIR 00;33 # yellow
LINK 00;36 # cyan
 # archives or compressed (green)
.tar 00;32
# image formats (magenta)
.jpg 00;35
iTerm

Color presetsのDark backgroundを使用。Backgroundの色を40 44 52に変更。
Preferences -> Appearance -> Themes [Dark]

tmux

ステータスバーの色変更。

set-option -g status-bg black #base02
set-option -g status-fg white #yellow
macOS

System preferences -> General -> Appearance [Use dark menu bar and Dock]

ipython

% ipython --TerminalInteractiveShell.highlighting_style="paraiso-dark"

Color scheme in 5.0 · Issue #9541 · ipython/ipython · GitHub
Terminal IPython options — IPython 6.2.1 documentation