[工作點滴] msgpack-idl howto

msgpack-idl howto Step1 get the msgpack-idl $ git clone git://github.com/msgpack/msgpack-idl.git Step2 install the ruby tool that required $ sudo apt-get install ruby1.9.1 Step3 go to msgpack-idl folder. $ sudo gem install msgpack-idl $ sudo msgpack-idl –install java Step4 create a sample file ‘sample’ with content as follow. message Node { ``1``: string address ``2``: map<string,string> properties ``3``: optional string? description } message StorageNode < Node { ``4``: long capacity ``5``: optional int weight = 1 } Step 5 generate the java code by following command ...

2013-02-04 · 1 分鐘 · 147 字 · ChenFu Kuo

[工作點滴] protocol buffer and message pack initial

When I have engineer discussion with the abroad engineer, I found he use the 3rd party library name message pack for binary serialization for internet application. More detailed information of message pack is here. http://msgpack.org/ I do not sure what’s the total different between these two library and I could not get a detailed comparison from them. So I will spend some time to study it.

2013-01-31 · 1 分鐘 · 66 字 · ChenFu Kuo

[工作點滴] protocol buffer message

The statusapi.pb-c.h and statusapi.pb-c.c are generated. Only header file is printing here for further explaination. statusap.pb-c.h /* Generated by the protocol buffer compiler. DO NOT EDIT! */ #ifndef PROTOBUF_C_statusapi_2eproto__INCLUDED #define PROTOBUF_C_statusapi_2eproto__INCLUDED #include <google/protobuf-c/protobuf-c.h> PROTOBUF_C_BEGIN_DECLS typedef struct _Statusapi__StatusRequestType Statusapi__StatusRequestType; typedef struct _Statusapi__StatusResponseType Statusapi__StatusResponseType; typedef struct _Statusapi__StatusParams Statusapi__StatusParams; /* — enums — */ /* — messages — */ struct _Statusapi__StatusRequestType { ProtobufCMessage base; }; #define STATUSAPI__STATUS_REQUEST_TYPE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&statusapi__status_request_type__descriptor) \ } struct _Statusapi__StatusResponseType { ProtobufCMessage base; }; #define STATUSAPI__STATUS_RESPONSE_TYPE__INIT \ { PROTOBUF_C_MESSAGE_INIT (&statusapi__status_response_type__descriptor) \ } ...

2013-01-31 · 2 分鐘 · 779 字 · ChenFu Kuo

[工作點滴] protocal buffer examples

There is protobuf and protobuf-c web site. <http://code.google.com/p/protobuf/> <http://code.google.com/p/protobuf-c/> Now we are implementing this way that can be remote control from back-end applications. The protobuf-c has some extension from google’s protobuf and we can add the RPC funtion for further. The first experiment is using the message directly. We pack the message into a share memory between the server and the client. Both side can get the message no problem. ...

2013-01-30 · 2 分鐘 · 588 字 · ChenFu Kuo

[工作點滴] 邁向十年

在整理先前在2008年Blog的內容,深覺自己先前不的成熟,不過隨著轉職與更多的經歷時,感到自己似乎也有那麼一丁點的長大。 2011年1月在即將滿七年時,我下了一個重大的決定,離開了非常熟悉的工作環境,在某種程度來說,也算是離開了舒適圈,讓自己幾乎是重置,對於新工作的決定,則是剛好有機會可以在跨國大企業外商中任職,而此機會恰好符合本身幾個想法, ...

2013-01-29 · 2 分鐘 · 987 字 · ChenFu Kuo

[工作點滴] ncftp-3.2.1 cross-compiling

ncftp是一個ftp client,因為剛好案子需要使用ftp功能, 編譯步驟如下: 1. 產生Makefile,如果要用到curses得加入相關library,但我們的案子不需使用到! ./configure –disable-ccdv –without-curses –without-ncurse ...

2008-03-03 · 1 分鐘 · 127 字 · ChenFu Kuo

[工作點滴] 安全監控產業的好文

我前陣子在網路上找尋資料時,不小心看到了一個Blog在討論關於安全監控產業的文章,還蠻特別的,平常在網路上看Blog,也沒看到針對這個產業而發表的文章,而且透過Andy的文章,就認識了一個朋友,也分享了一些心得,網址連結如下: ...

2007-12-23 · 1 分鐘 · 139 字 · ChenFu Kuo

[工作點滴] Eclipse IDE under Ubuntu

以下的大部份內容從網路上轉過來,再加上我在設定過程之中,碰到的問題做一點修正。原本 Ubuntu 在內定預設的是採用 GCJ-1.4 ,在執行上效能較不佳),因此第一步請在您熟悉的套件管理工具裡安裝如下的套件,在Ubuntu下可透過System/Synaptic Package Manage來安裝相關套件: ...

2007-12-10 · 2 分鐘 · 842 字 · ChenFu Kuo

[工作點滴] Live555 streaming server &quot;config.armlinux&quot; 設定檔修正

紅字部份,不然在link的時候會出現一堆error…… CROSS_COMPILE= arm-unknown-linux-gnu- COMPILE_OPTS = $(INCLUDES) -I. -O2 -DSOCKLEN_T=socklen_t -DNO_STRSTREAM=1 -D_LARGEFILE_SOURCE=1 -D_FILE_OFFSET_BITS=64 C = c C_COMPILER = $(CROSS_COMPILE)gcc C_FLAGS = $(COMPILE_OPTS) CPP = cpp CPLUSPLUS_COMPILER = $(CROSS_COMPILE)g++ CPLUSPLUS_FLAGS = $(COMPILE_OPTS) -Wall -DBSD=1 OBJ = o LINK = $(CROSS_COMPILE)g++ -o LINK_OPTS = -L. CONSOLE_LINK_OPTS = $(LINK_OPTS) LIBRARY_LINK = $(CROSS_COMPILE)ld -o LIBRARY_LINK_OPTS = $(LINK_OPTS) -r -Bstatic LIB_SUFFIX = a LIBS_FOR_CONSOLE_APPLICATION = LIBS_FOR_GUI_APPLICATION = EXE =

2007-11-21 · 1 分鐘 · 103 字 · ChenFu Kuo

[工作點滴] 在知與無知間的抉擇

這陣子,在不斷嘗試一些新東西的過程之中,配合著一直改變的工作內容,我開始做一些實驗,有的時候,究竟要不要完全了解一個東西,才有辦法去完成這個工作?目前在我的觀察之中,是不必需要了解,就可以去做,然而這是短線,在長線觀點來看,有的時候造成的損失,並不會比較小!可是在實際上,上面看的是短期的績效,不管你隱性的成果如何的優良,只要是看不到,那就是個屁,是的!就是紅衫軍拼出來的字! 然而,我想實驗的,就是如何去創造出一個隱性的價值,去調整我所能掌握的組織,雖然我不甚認同在無知中去做事情,不過在實現產品的過程之中,完全拘泥於知這件事情上面,會造成許多延遲,而如何在知與無知之間,做很好的調整,真的是一件不容易的事情,但如果真的能好好的拿捏,我想我應該就更成長了。

2007-11-13 · 1 分鐘 · 328 字 · ChenFu Kuo