hasen's tech life

Twitter: @hasen

Python

Bookmark (2015-09-23)

・マイクロサービスのデザインパターン https://goo.gl/qVEfpu ・Checkpoint and restore Docker container with CRIU http://blog.circleci.com/checkpoint-and-restore-docker-container-with-criu/ ・ORTC が切り開く SVC サイマルキャストと WebRTC NV h…

Bookmark (2015-09-22)

・NumPy でつくる俺々データ構造 http://sinhrks.hatenablog.com/entry/2015/09/21/223439 ・InnoDBのウォームアップに別サーバでdumpしたib_buffer_poolを使ってみる http://mikeda.hatenablog.com/entry/2015/09/21/142746 ・TypeScript型定義ファイルのコ…

Bookmark (2015-09-21)

・Scrapy 1.0が公開されました http://orangain.hatenablog.com/entry/scrapy1.0 ・【photoshop】ソーシャルゲームイラストの描き方&色収差 http://www.otwo.jp/blog/design/illust-making/ ・週刊AWS - 2015年9月7日 http://aws.typepad.com/aws_japan/201…

Pythonから使うためにmecabをインストールした

# Pythonから使うためにmecabをインストールした. # いつも忘れるけどソースから入れる. # 該当なし$ pip search mecab ># こちらからダウンロード. # http://taku910.github.io/mecab/ $ pip install https://mecab.googlecode.com/files/mecab-python-0…

Bookmark (2015-09-15)

・Ansibleを結構使ってみた/ansible-nikkei-2015 https://speakerdeck.com/bungoume/ansible-nikkei-2015 ・実践!Ansibleベストプラクティス(前編) http://knowledge.sakura.ad.jp/tech/3084/ ・Ansible向けのコードカバレッジツールKirbyを作りました ht…

Bookmark (2015-09-13)

・Python3.5の新機能 http://qiita.com/ksato9700/items/9a0aef07d90d00e67525 ・Emacs Lispでブログエンジン書いた http://darui.io/posts/this-blog-is-written-in-emacs-lisp ・ブラウザおよびnode.jsのための高度な地理空間データ分析ライブラリ「furf.j…

Bookmark (2015-09-12)

・Elasticsearch PHP Clients test drive http://jolicode.com/blog/elasticsearch-php-clients-test-drive ・SparkR 1.5 の開発でできたこと・できなかったこと http://atl.recruit-tech.co.jp/blog/3612/ ・Djangoのエントリポイントとアプリケーションの…

Bookmark (2015-09-11)

・Introducing Heroku Private Spaces: Private PaaS, delivered as-a-Service http://blog.heroku.com/archives/2015/9/10/heroku_private_spaces_private_paas_delivered_as_a_service ・Make A Real-Time Chat Room using Node Webkit, Socket.io, and ME…

nodebrewにv4.0.0が来ていたので早速インストール.

# nodebrewにv4.0.0が来ていたので早速インストール. # 参考: Node v4.0.0 (Stable) # Pythonは2系を使う $ python -V > Python 3.4.2 $ pyenv global 2.7.9 $ pyenv rehash $ python -V > Python 2.7.9 # nodebrew $ nodebrew install v4.0.0 $ nodebrew u…

Bookmark (2015-09-09)

・PipelineDBをProductionに導入してみました。 http://developer.smartnews.com/blog/2015/09/09/20150907pipelinedb/ ・Introduction to Redux https://speakerdeck.com/axross/introduction-to-redux ・Pythonの対話型シェルIPythonのMac用フロントエンド…

Bookmark (2015-09-05)

・Mosquitto と paho-mqtt をつかってPythonで MQTTをさわる https://librabuch.jp/2015/09/mosquiito_paho_python_mqtt/ ・Introduction to Chainer (LL Ring Recursive) http://www.slideshare.net/KentaOono/introduction-to-chainer-ll-ring-recursive …

Bookmark (2015-09-01)

・FluxでCUIアプリ https://speakerdeck.com/kjirou/fluxdecuiapuri ・NextBSD登場 http://s.news.mynavi.jp/news/2015/08/28/252/ ・日経電子版 開発内製化の取り組み https://speakerdeck.com/yosukesuzuki/nikkei-web-development-2015 ・[LSP42] Scratch…

GCPのクライアントツールをインストールしようとして,"ERROR: Python 3 is not supported by the Google Cloud SDK."というエラーが出たので

# GCPのクライアントツールをインストールしようとして,"ERROR: Python 3 is not supported by the Google Cloud SDK."というエラーが出たので,対応. # 参考: Google Cloud SDK $ curl https://sdk.cloud.google.com | bash > Welcome to the Google Clou…

Bookmark (2015-08-11)

・power-assertを使ったDoctestツール power-doctestを書き直した http://efcl.info/2015/08/10/power-doctest1.0/ ・nginxとGoでつくるメルカリのプッシュ通知システム http://tech.mercari.com/entry/2015/08/11/172206 ・2015-08-10のJS: io.js 3.0、RxJS…

Bookmark (2015-08-10)

・自然言語処理を活用する上で開発者が知っておきたいこと~PyData.Tokyo Meetup #5 http://codezine.jp/article/detail/8893 ・「1日を2回生きる」元祖・早大発ベンチャー起業家のストイックな働き方 http://hrnabi.com/2015/08/10/8924/ ・mruby事例を中心…

Bookmark (2015-08-06)

・mithrilでがっつりSPAを作った話 - コード譜共有サイト「ChordKitchen」 http://goo.gl/X2t1Kc ・RubyとPythonにおけるガベージコレクションの視覚化 http://postd.cc/visualizing-garbage-collection-in-ruby-and…/ ・ベンチャー最強の内部統制をつくる h…

nodebrew installでSyntaxErrorが出たので.

# error $ nodebrew install 0.12.7 > File "./configure", line 362 '' ^ > SyntaxError: Missing parentheses in call to 'print'' # errorを見るにPythonのヴァージョン違いが原因と予想. $ python --version > Python 3.4.2 $ pyenv global 2.7.9 $ pyt…

Bookmark (2015-06-15)

・人間の心を読む機械学習 見かけの不合理性を超えたベイジアンな個人の行動規範とは http://developer.smartnews.com/blog/2015/06/15/20150615ml/ ・Make a Lisp で Lisp 処理系を学んでつくる (with Crystal) http://rhysd.hatenablog.com/entry/2015/06/…

Bookmark (2015-06-01)

・Webのパフォーマンスモデル「RAIL」とは何か? http://furoshiki.hatenadiary.jp/entry/2015/06/01/122537 ・SSH 公開鍵ユーティリティを Go と Python で作った http://yosida95.hatenablog.com/entry/2015/05/31/121709 ・Quipperで2年働いてわかった、…

Bookmark (2015-05-29)

・Let’s Build A Web Server. Part 1. / http://ruslanspivak.com/lsbaws-part1/ ・Building a Slack Clone in Meteor.js: Getting Started https://scotch.io/tutorials/building-a-slack-clone-in-meteor-js-getting-started ・Dropboxに決済機能を追加で…

pipコマンドで,Supervisorを入れた.

pipコマンドで,Supervisorを入れた. $ pip install supervisor > Supervisor requires Python 2.4 or later but does not work on any version of Python 3 $ pyenv local 2.7.9 $ pip install supervisor $ pyenv rehash $ echo_supervisord_conf $ echo_…

Pythonで,リストアップしたURLを元にクローリングし, 対象ページのheaderにあるlast-modifiedの値を取得して書き出す.

Pythonで,リストアップしたURLを元にクローリングし, 対象ページのheaderにあるlast-modifiedの値を取得して書き出すスクリプトを書きました. Get 'last-modified' from target page's header by P ...

Bookmark (2015-04-27)

・Vimでの作業をKibanaで可視化してみた http://qiita.com/uochan/items/6232d7203cef1ac167ab ・簡単なデータ操作を PySpark & pandas の DataFrame で行う http://sinhrks.hatenablog.com/entry/2015/04/26/200631 ・Scala採用を決めて一年たった、CTOの雑…

Bookmark (2015-04-24)

・hnwさんのPHP7調査 http://qiita.com/search?q=php7%E8%AA%BF%E6%9F%BB&q=hnw&sort=created&utf8=%E2%9C%93 ・Data Science のための Python IDE Rodeo http://librabuch.jp/2015/04/python-rodeo/

error_logを確認して,Flaskを入れ忘れていたことに気づいた.

画面が表示されないので,error_logを確認した. $ sudo tail -f /var/log/httpd/error_log > Sun Apr 19 17:58:44 2015] [error] [client 10.0.2.2] mod_wsgi (pid=13682): Target WSGI script '/var/www/flask/app.wsgi' cannot be loaded as Python modul…

Pythonのコードを静的解析する為にflake8を入れた.

Pythonのコードを静的解析する為にflake8を入れた. $ python -V > Python 3.4.2 $ pip install flake8 $ exec $SHELL -l $ which flake8 > /PATH/TO/flake8

Bookmark (2015-04-17)

・ImageMagick と go-thumber(swscale)のリサイズ性能比較 http://d.hatena.ne.jp/yoya/20150416/resize ・コンテナ仮想化ツールDockerをつかったコードによるWebアプリケーション実行環境の構築 http://codezine.jp/article/detail/8606 ・2日でできる!Jav…

Bookmark (2015-04-07)

・Creating a PHP extension in Rust http://jaredonline.svbtle.com/creating-a-php-extension-in-rust ・Terraform 0.4 https://hashicorp.com/blog/terraform-0-4.html ・Django 1.8 release notes https://docs.djangoproject.com/en/1.8/releases/1.8/ …

'nodebrew install'で,SyntaxError: Missing parentheses in call to 'print',というエラーが出たので,Pythonを2系にした.

'nodebrew install'の失敗理由がPythonのヴァージョンだったみたい. # error $ nodebrew install io@v1.6.4 > SyntaxError: Missing parentheses in call to 'print' $ python -V > Python 3.4.2 $ pyenv global 2.7.9 $ pyenv rehash $ nodebrew install i…

Bookmark (2015-04-06)

・最強の野球オープンデータ「Retrosheet」をPython+Vagrant+Ansibleで誰でも使えるようにしました http://shinyorke.hatenablog.com/entry/2015/04/06/190243 ・Web広告配信における多腕バンディット問題、Mortal Multi-Armed Bandits Problemとアルゴリズ…