2017年9月12日火曜日

Oracleで他のデータベースから自分のローカルにデータをコピーする

$ sqlplus ID/PW@DB

ID@DB > copy from ID_from/PW_from@DB_from to ID_dst/PW_dst/@DB_dst {insert/create} TABLE_NAME using select * from TABLE_from;

自分用メモ

2017年6月18日日曜日

llvm-flang compilation

I have just completed the build of llvm-flang.
The procedure was almost the same as the official;
https://github.com/flang-compiler/flang

However, my environment is RH6.4, somehow out-dated, and needs a little effort.
(1) Need to install a newer GCC, probably, 4.7 or newer (libstdc++4.7 is required).
    My case, I used 7.1
(2) at the cmake phase "-DGCC_INSTALL_PREFIX=/opt/GCC/7.1.0" is needed.
   Otherwise, clang/clang++ complains there is no proper libstdc++.

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.