2016年2月25日木曜日

(Probably) The easiest way to get map tile for NASA's world wind with natural earth data

Converting from the natural earth data raster images to NASA's World Wind tile is a bit complicated.
I guess one of the easiest way is use the demo program in goworldwind.org.

How to:
(1) Get the script named "InstallImageryAndElevationsDemo" and launch it.
(2) "Install" the tiff image of the natural earth data.
(3) check the directory "c:\programdata\worldwindinstalled" on Windows.
      (Probably you can do the same thing on the other plat forms)

URL:
http://goworldwind.org/demos/

2016年2月20日土曜日

三井住友信託銀行の提携クレジットカード

なんか、提携やめてしまうみたい。
新しいのは全然魅力がないので、小規模ユーザーは結構抜けてしまうのでは。

http://www.smbctb.co.jp/banking/creditcard/index.html

2016年2月18日木曜日

"reject" to "major revision"

My article which has been "under review" such a long time was rejected one week ago. I believed the reviewer's comments were somehow unreasonable, and so, I wrote a letter to the editor who has been taking care of my article.

In the end, I have just received an e-mail from the editorial office, which says;
"The Editor has informed me that this decision should be reverted and you will receive a new decision letter shortly."
And the status of the article turns from "reject" to "major revision"

The editor's decision is not always 100% sure.
You should try to write a letter to your editor in some cases.

2016年2月10日水曜日

linux でEPSから余白なしのPDFを作る

latexでepsがうまく表示されないので、あらかじめPDFにしておくことにした。
imagemagickでeps -> pdfすると余白がついてしまうので、pdfcropを使って削除する。
一括でできるように簡単なshell scriptを。

% cat run.sh
#!/bin/sh -f
for i in $@
do
j=`echo $i | sed -e 's/eps/pdf/g'`
convert $i $j
pdfcrop $j $j
done

% ./run.sh *.eps

2016年2月4日木曜日

pythonからCのモジュールを呼んでいる時に、プロファイルを取る方法

下記のページそのままなんですが、googleのprofilerを使います。yepはうまくつかえなかったので、結局こうなりました。

https://pygabriel.wordpress.com/2010/04/14/profiling-python-c-extensions/

2016年2月3日水曜日

to give the location of libunwind for gperftools

The way of giving the location of libunwind to the configure script of gperftools:

%setenv CFLAGS="-I /path/to/LIBUNWIND/include -L/path/to/LIBUNWIND/lib"
%setenv CXXFLAGS="-I /path/to/LIBUNWIND/include -L/path/to/LIBUNWIND/lib"
%./configure --prefix=/path/to/install

Interestingly, the configure script does not have the option.

https://github.com/gperftools/gperftools