2012-01-01から1年間の記事一覧
tar.gzを展開make (make install しないで) rootで checkinstallインストールしつつdebパッケージができる
sqlを吐き出して、mysqlに流し込もうとするなら、テーブルが、""でくくられていることと、 デフォルトだとカラム名が出力されないので、形式によっては、明示的になんとかしたほうがよいのではないか 特にidを指定していないときなど??
dumpdataしてloaddataすると loaddataしたときに、今までのヒストリ+今回インストールしたことによるヒストリができるようなので、注意したほうがよさそうなときもあるのではないか。
いくつかオプションがあるようだ。 たしかこんなかんじ。 python manage.py help jenkinsソースコードの具体的な場所を含めてcoverageの出力をhtmlでほしかったので しらべた。settings.pyをよみこむようにした、 jenkins-setting.py を用意して from settin…
投機的実行というのか、バックアップなのかで動く、同じタスクが複数実行されるのを抑制するとおもわれるオプション。 以下のものをfalseにする mapred.map.tasks.speculative.execution mapred.reduce.tasks.speculative.executionあとは、バックアップタス…
from django.test import TestCase class SimpleTest(TestCase): jsonString = '{"name":"hello","country":"JPN"}' response = self.client.post('/api/v1/person/',data=jsonString, content_type='application/json') print "----" print response.conten…
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/…
ローカルにある、branch2をremote(origin)のbranch1へpushする。 git push origin branch2:branch1
git attributes ident とか filter とかで、問題がないならいいのだが、 eclise のegitだと git attributes をサポートしていないようなので(357039 – EGit does not handle .gitattributes ident) javaなら GitHub - git-commit-id/maven-git-commit-id-plu…