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

2016年1月27日水曜日

a Chinese tablet maker, Cube, so bad.

I have bought a windows tablet, Cube i7, from So cube in Aliexpress, which seems a direct shop of "cube"(https://www.facebook.com/ACUBEworld/).

Unfortunately, they repeatedly say some illogical thing on my tablet and refuge to replace my tablet. I suggest you not buy their product if you do not want have any risque.
They never fix your problem.
Indeed, they started ignoring my e-mails, and messages from aliexpress.

The product is somehow attractive though.

Store URL:
http://www.aliexpress.com/store/1123249?spm=2114.10010108.0.34.TnqBxg

2016年1月20日水曜日

C言語のthread safeかどうかのチェッカー

仕事で必要になった。

https://insights.sei.cmu.edu/sei_blog/2014/10/thread-safety-analysis-in-c-and-c.html

2016年1月11日月曜日

最終年度

ということで、あっという間に正規職員になってから二年がすぎ、最初の契約の最終年度がスタートしました。
ぼちぼちがんばります。

2015年12月21日月曜日

PythonからCのモジュールを読んでる時のデバッグ方法

% python hoobar.py
して、即座にctrl+zでサスペンド。
%ps aux
とかで、pidを探して
%gdb
(gdb) attach <pid>
(gdb) c
で、デバッガが使える

2015年12月16日水曜日

cube i7 stylus

を8月にかったのだけど、もう壊れた。
なんか、画面が白っぽくなる。
BIOSのスクリーンからオカシイのに、販売店の中国人は再起動しろとか再インストールしろとかわけわからんことしか言わない。
aliexpressが、すばらしいことに、販売元と話をしてくれるらしい。
保証期間内だから大丈夫とのこと。
aliがこんなにしっかりしてるとは思わなかった。

追記:
aliexpressから連絡してもらっても、sellerが無視し続ける限り結局何もできないという結論。まぁ、中国にはかかわらないのが一番ということですかね。

2015年11月29日日曜日

Linuxのディスク(EXT4)をWindowsにマウント

これを使うだけなんだけど。
EXT4でフォーマットしたディスクがwindowsのフォーマットと同じように使える。

http://www.ext2fsd.com/