speculative execution を false にする

投機的実行というのか、バックアップなのかで動く、同じタスクが複数実行されるのを抑制するとおもわれるオプション。
以下のものをfalseにする

mapred.map.tasks.speculative.execution
mapred.reduce.tasks.speculative.execution

あとは、バックアップタスクが走ったときに、中間ファイルなどの扱いにも注意する
side effect file
とか書いてあったかな

tastypie のテストコード

https://github.com/toastdriven/django-tastypie/blob/master/tests/basic/tests/http.py

        connection = self.get_connection()
        post_data = '{"content": "A new post.", "is_active": true, "title": "New Title", "slug": "new-title", "user": "/api/v1/users/1/"}'
        connection.request('POST', '/api/v1/notes/', body=post_data, headers={'Accept': 'application/json', 'Content-type': 'application/json'})
        

git commit id などを、埋め込んでくれるmaven plugin

git attributes ident
とか
filter
とかで、問題がないならいいのだが、
eclise のegitだと git attributes をサポートしていないようなので(357039 – EGit does not handle .gitattributes ident)
javaなら
GitHub - git-commit-id/maven-git-commit-id-plugin: Maven plugin which includes build-time git repository information into an POJO / *.properties). Make your apps tell you which version exactly they were built from! Priceless in large distributed deployments... :-)

redmine.el をbasic認証下でも使ってみる

-         (call-process "curl" nil (current-buffer) nil uri "-s" "-k")
+         (call-process "curl" nil (current-buffer) nil "-u" "user:password" uri "-s" "-k" )

EmacsWiki: emacs-w3m
ここを見る感じだと、anythingにパスワードを保存するとよいのかなぁ?

django-socketioのexample_projectで日本語が通らないとき

socketio

>>> import socketio
>>> socketio.__version__
'0.2.1'

だとしたら
site-packages/socketio/protocol.py
113行目付近を

                    if frame_type == JSON_FRAME:
                        messages.append(json.loads(data[3:size]))

このようにすると問題なく動くようにみえる。

                    if frame_type == JSON_FRAME:
                        size=len(data)
                        messages.append(json.loads(data[3:size]))

最新のgevent-socketioもってくると、起動ができなかった。