2017年5月22日月曜日

pythonでprogress bar with multiprocessing

multiprocessingしてるということは時間かかるってことなので進行状況がしりたい。いい記事をみつけたのでメモ

from multiprocessing import Pool
import tqdm

pool = Pool(processes=8)
for _ in tqdm.tqdm(pool.imap_unordered(do_work, tasks), total=len(tasks)):
    pass
http://stackoverflow.com/questions/5666576/show-the-progress-of-a-python-multiprocessing-pool-map-call

2017年5月12日金曜日

Cartopy with Conda

Cartopyというのを使ってみたいのだけど、私の環境ではなかなか面倒。
Condaというのを使うとpythonからcartopyまで楽に入れてくれそうなので使ってみる。

https://conda.io/miniconda.html

2017年5月5日金曜日

Gentoo prefix

会社のLinux(Redhat 6.4)は勝手にパッケージをインストール出来ないので、下記を試す。
ebuild.sh のbash のバージョンチェックだけ4.1に無理やり修正した以外は、ほぼこのまま。

https://wiki.gentoo.org/wiki/Project:Prefix/Manual_Bootstrap

2017年2月17日金曜日

mapproxy 1.9.1 + pillow 3.4.2

mapproxy 1.9.1 + pillow 3.4.2, this combination causes a little error in the images.
pillow 3.3.1 does not.
just a memo

2016年11月11日金曜日

white-day

probably, this place is surrounded by river, we have sometimes quite strong fog here. arrival of winter.


2016年10月28日金曜日

核兵器禁止条約

政治の問題だとはわかるけど、まじで反対票入れるとは。
勇気を持って欲しかった。

The “No” votes came from the nuclear weapons states, and US allies in NATO, plus Japan, 

http://www.counterpunch.org/2016/10/28/nukes-and-the-un-a-historic-treaty-to-ban-nuclear-weapons/

2016年10月6日木曜日

日本で人と会おうと思ったけど、飛行機のチケットが取れずに流れた。
直後に日本への出張の話が来た。
次に、ということではないようだったので、だからといって復活もしない。

めぐり合わせってそんなもんだよね。

追記:
結局、仕事のあと休暇として予定していた時間日本に居て良いことになった。
流れてから一日も経たない間のこと。
めぐり合わせってあるもんですね。