Skip to content

Instantly share code, notes, and snippets.

View akisatok's full-sized avatar

Akisato Kimura akisatok

View GitHub Profile
@akisatok
akisatok / file0.txt
Last active August 29, 2015 14:13
root権限がないときのpython・numpy・scipyのソースからのインストール on Linux ref: http://qiita.com/_akisato/items/9227b8f17026f3bd76c1
# cd ~/tmp
# wget http://www.bzip.org/1.0.6/bzip2-1.0.6.tar.gz
# tar xzf bzip2-1.0.6.tar.gz
# cd bzip2-1.0.6
# make -f Makefile-libbz2_so
# make
# make install PREFIX=/home/akisato/src/downloads/bzip2-1.0.6
# export CFLAGS=-I/home/akisato/src/downloads/include
# export CPPFLAGS=$CFLAGS
# export LDFLAGS=-L/home/akisato/src/downloads/lib
@akisatok
akisatok / file0.txt
Created January 17, 2015 19:27
opensslが古いとpythonのいろんなところに問題が出る ref: http://qiita.com/_akisato/items/4b531aab65de8cd2909a
# easy_install pip
Reading https://pypi.python.org/simple/pip/
Download error on https://pypi.python.org/simple/pip/: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed -- Some packages may not be found!
Couldn't retrieve index page for 'pip'
Scanning index of all packages (this may take a while)
Reading https://pypi.python.org/simple/
Download error on https://pypi.python.org/simple/: [Errno 1] _ssl.c:510: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed -- Some packages may not be found!
Best match: pip 6.0.6
Processing pip-6.0.6-py2.7.egg
pip 6.0.6 is already the active version in easy-install.pth
@akisatok
akisatok / file0.txt
Created January 20, 2015 11:00
Thunderbirdで返信すると引用文が消えてしまう問題(仕様です) ref: http://qiita.com/_akisato/items/930b83212e688d24ba59
こんにちは.
さようなら.
--
Hogera Hogera <hoge@ra.jp>
> おはようございます.
> こんばんは.
>
> ----
@akisatok
akisatok / __init__.py
Last active October 5, 2017 20:48
numpy・scipyでマルチスレッドBLAS・LAPACKを使う ref: http://qiita.com/_akisato/items/d5de60e38b5a69387bde
from scipy.linalg import flapack
clapack = flapack
_use_force_clapack = 0
@akisatok
akisatok / file0.txt
Last active November 12, 2019 21:30
1億枚ラベル付き画像データセット Yahoo Flickr Creative Commons 100M (YFCC100M) を使う ref: http://qiita.com/_akisato/items/66deb481ea3cedf388fa
% sudo pip install s3cmd
@akisatok
akisatok / file0.txt
Last active August 15, 2017 11:01
Amazon Drive をコマンドラインから操作する rclone の設定と利用方法 ref: http://qiita.com/_akisato/items/f4b36e86fcf7ae665b4d
$ mkdir -p rclone
$ curl -O https://downloads.rclone.org/rclone-current-osx-amd64.zip
$ unzip -a rclone-current-osx-amd64.zip
$ cd rclone-*-osx-amd64
(* にはバージョンが入る.2017年7月末現在ではv1.37のはず.)
# sudo mv rclone /usr/local/bin/
# cd ..
# rm -rf rclone-*-osx-amd64 rclone-current-osx-amd64.zip
@akisatok
akisatok / file0.py
Created August 21, 2017 18:57
Pythonからコマンドを呼び出す(Windows編) ref: http://qiita.com/_akisato/items/d97b17064df158f0dea0
import subprocess
cmd = 'myprogram myargs'
returncode = subprocess.call(cmd)