2013년 7월 26일 금요일

oeis

oeis.org
euler project 풀때 해결책 찾기 쉬운 사이트.

2013년 7월 25일 목요일

python profiler

http://stackoverflow.com/questions/110259/which-python-memory-profiler-is-recommended

uwsgi stop

http://uwsgi-docs.readthedocs.org/en/latest/Management.html
uwsgi --stop /tmp/project-master.pid

flask + uwsgi + nginx

uwsgi.ini
[uwsgi]
pythonpath = /Library/Python/2.7/site-packages
env = APPLICATION_SETTINGS= ...

uwsgi 실행
uwsgi uwsgi.ini -s uwsgi/uwsgi.sock -w main:app> flask.log


include uwsgi_params;
uwsgi_pass unix: /tmp/uwsgi.sock;


nginx 실행


2013년 7월 16일 화요일

emacs + python에서 auto indent

(add-hook 'python-mode-hook '(lambda () (define-key python-mode-map "\C-m" 'newline-and-indent)))