Skip to content

Instantly share code, notes, and snippets.

View suma's full-sized avatar

Shuzo Kashihara suma

View GitHub Profile
@suma
suma / 20130416_OSS_refactor_jubajuba.md
Last active December 16, 2015 07:59
Jubatusサーバとモジュール分離にあたっての作業洗い出し

Jubatusサーバとモジュール分離にあたっての作業洗い出し

  • Jubatusにおける作業項目を洗い出す、ゴールを決める
  • 選択肢を列挙しておく、可能なら設計選択における利点欠点の整理。MTGで選択する
  • 複数人で並列作業できるとよい

背景・概要は以下を参照

告知・議論)0.4.3リリース後は、 サーバ部分とフレームワーク部分の分離を進めたい (@suma) https://github.com/jubatus/jubatus/wiki/Meeting:2013_04_15#discussion

diff --git a/src/main/webapp/index.xsl b/src/main/webapp/index.xsl
index 38e4172..83b3241 100644
--- a/src/main/webapp/index.xsl
+++ b/src/main/webapp/index.xsl
@@ -47,7 +47,7 @@
<script src="http://java.com/js/deployJava.js"></script>
<div>
<script>
- var attributes = { codebase: 'http://festivoice.net/', code: 'net.festivoice.AppletLauncher', archive: 'pkg/festivoice.jar', width: 300, height: 200 };
+ var attributes = { codebase: 'http://127.0.0.1:8080/', code: 'net.festivoice.AppletLauncher', archive: 'pkg/festivoice.jar', width: 300, height: 200 };
$ hexdump -C 192.168.x.x_9199_jubatus_shogun.js
00000000 6a 75 62 61 74 75 73 0a 31 0a 30 2e 34 2e 32 0a |jubatus.1.0.4.2.|
00000010 96 01 ce 51 62 b8 ab aa 63 6c 61 73 73 69 66 69 |...Qb...classifi|
00000020 65 72 c3 a6 73 68 6f 67 75 6e da 01 ce 7b 0a 20 |er..shogun...{. |
00000030 20 22 6d 65 74 68 6f 64 22 3a 20 22 41 52 4f 57 | "method": "AROW|
00000040 22 2c 0a 20 20 22 63 6f 6e 76 65 72 74 65 72 22 |",. "converter"|
00000050 3a 20 7b 0a 20 20 20 20 22 6e 75 6d 5f 66 69 6c |: {. "num_fil|
00000060 74 65 72 5f 74 79 70 65 73 22 3a 20 7b 7d 2c 0a |ter_types": {},.|
00000070 20 20 20 20 22 6e 75 6d 5f 66 69 6c 74 65 72 5f | "num_filter_|
00000080 72 75 6c 65 73 22 3a 20 5b 5d 2c 0a 20 20 20 20 |rules": [],. |
@suma
suma / wscript.patch
Created April 8, 2013 04:56
Python 2.4 and 3.0 patch for jubatus
diff --git a/wscript b/wscript
index e664ff9..76691a9 100644
--- a/wscript
+++ b/wscript
@@ -1,5 +1,6 @@
import Options
import os
+import sys
VERSION = '0.4.2'
@suma
suma / making_jubatus_bestpractice_and_example.md
Last active December 15, 2015 17:49
Jubatusクライアントライブラリ(MessagePack-RPCクライアント含む)のベストプラクティス, サンプルを作るにあたってどんな作業が必要か

Jubatusクライアントライブラリ(MessagePack-RPCクライアント含む)のベストプラクティス, サンプルを作るにあたってどんな作業が必要か

以下の目的を達成するための指針をこの文書でまとめる。 Action Itemは末尾に書いた。

  • Jubatusクライアントの正しい使い方を示す
  • これには、ラップしたMessagePack-RPCクライアントの設定やエラー処理も含める

対象:

@suma
suma / msgpackrpc.md
Last active May 9, 2016 22:59
MessagePack RPCクライアントの振る舞い及びエラー処理

MessagePack RPCクライアントの振る舞い及びエラー処理

概要

MessagePack-RPCのクライアントのエラー処理を正しく、またその後に何をすべきか(可能か)まとめる。 「このエラー起きたとき、どう処理すべきか?」ということを説明する。

説明しないこと:RPCサーバの作り方、各言語のライブラリのプロトコル実装やエラー定義の差。

[suma@sumac tmp]$ cd festivoice-master/
[suma@sumac festivoice-master]$ ls
LICENSE NOTICE festivoice.net* festivoiced* lib/ package.sh* pom.xml src/
[suma@sumac festivoice-master]$ ./package.sh
Picked up _JAVA_OPTIONS: -Dfile.encoding=UTF-8
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building festivoice
[INFO] task-segment: [package]
[INFO] ------------------------------------------------------------------------
@suma
suma / msgparck-rpc-client.md
Created March 18, 2013 02:23
MessagePack RPCクライアントの振る舞い及びエラー処理

MessagePack RPCクライアントの振る舞い及びエラー処理

概要

調査する点

  • TCPの接続はどの段階で実行されるか
  • コンストラクタ(オブジェクト作成時) → 無し
  • RPC呼び出しを実行時 → 有り
@suma
suma / jubatus_pficommon_version.md
Last active December 14, 2015 01:59
Jubatus向け pficommonバージョンアップ追随メモ

Jubatus向け pficommonバージョンアップ追随メモ 2013/02/22

概要・目的

  • Jubatusのpficomonのバージョンアップをするか、しないかの判断材料を集める

  • セキュリティフィックスの有無

  • 依存モジュールにバグ修正・改善点などがあるか

  • 結論

  • バージョンアップしてよい、したほうがよい

@suma
suma / jubatus_meets_google_cpp_style.md
Last active December 11, 2015 11:28
Jubatus C++: コーディングスタイルを現在の実装にあわせようとする草案

Jubatus C++: コーディングスタイルを現在の実装にあわせようとする草案

Google C++ Style Guide

http://google-styleguide.googlecode.com/svn/trunk/cppguide.xml

これをベースにJubatus向けに直す。直す際には、書式の再フォーマット以外での変更はバグ回避のためなるべく最小限に抑えてコードを綺麗にしたい。

Classes