이메일 #166 - #170
원본 출처: Satoshi - Sirius emails 2009-2011
이메일 #166
Date: Mon, 15 Feb 2010 20:33:23 +0200
From: [email protected]
To: Satoshi Nakamoto <[email protected]>
Subject: Re: JSON-RPC status
한글 번역
[email protected] 님의 글:
테스트하고 컴파일할 수 있는 우분투 노트북이 없으세요? 그래서 vps를 만지작거리지 않아도 되게요?
네. 파이썬의 JSON-RPC로 테스트해 봤는데, 잘 되는 것 같습니다! 정말 쓰기 쉽네요.
만세, 한 번에 됐네요.
쓰신 파이썬 코드를 보내 주시겠어요? 나중에 제가 테스트할 때 직접 알아내지 않아도 되도록요.
그쪽 svn에서 python-json-rpc(http://json-rpc.org/wiki/python-json-rpc)를 내려받아 파이썬 인터프리터에 직접 연결해서 테스트했어요. 이렇게요:
pythons = ServiceProxy("http://localhost:8332") s.getblockcount()
영어 원문
> [email protected] wrote:
>>> Don't you have an Ubuntu laptop you can test and compile on so you
>>> don't have to toy with the vps?
>>
>> Yes. Tested with Python's JSON-RPC, and seems to work fine! Really
>> easy to use.
>
> Hurray, I got it on the first go.
>
> Could you send me the Python code you used? So if I do some testing
> later I don't have to figure it out myself.
Just downloaded the python-json-rpc
(http://json-rpc.org/wiki/python-json-rpc) from their svn and tested
by talking to the Python interpreter directly. Like this:
pythons = ServiceProxy("http://localhost:8332")
s.getblockcount()
이메일 #167
Date: Wed, 17 Feb 2010 19:32:04 +0200
From: [email protected]
To: Satoshi Nakamoto <[email protected]>
Subject: Non-GUI option
한글 번역
같은 바이너리를 GUI 없이 실행하는 것에 대해 제가 찾은 단서 몇 가지예요:
-
GTK는 디스플레이 없이 프로그램을 실행하는 것을 지원합니다: http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. 그렇지만 이걸로는 wxWidgets에서 가능한지는 알 수 없네요.
-
wx 2.9의 wxAppConsole이 어떻게든 유용할지도 몰라요. wxApp을 wxAppConsole로 그저 바꾸는 것만으로는 안 되고, 어떻게 써야 하는지는 잘 모르겠어요. 문서도 별로 잘 되어 있지 않아요.
-
또 다른 방법으로는 IMPLEMENT_APP_NO_MAIN()을 쓰고 직접 main 메서드를 만드는 것이 있을지도 몰라요.
영어 원문
Just a few clues I've found about running the same binary without a GUI:
1) GTK supports running a program without display:
http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. This
doesn't tell if it's possible in wxWidgets though.
2) wxAppConsole of wx 2.9 might be useful somehow. Just replacing
wxApp with wxAppConsole doesn't work, I'm not sure how it should be
used. It's not very well documented.
3) Another option might be to use IMPLEMENT_APP_NO_MAIN() and make our
own main method.
이메일 #168
Date: Mon, 22 Feb 2010 20:17:42 +0000
From: Satoshi Nakamoto <[email protected]>
Subject: Re: Non-GUI option
To: [email protected]
한글 번역
[email protected] 님의 글:
같은 바이너리를 GUI 없이 실행하는 것에 대해 제가 찾은 단서 몇 가지예요:
- GTK는 디스플레이 없이 프로그램을 실행하는 것을 지원합니다: http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. 그렇지만 이걸로는 wxWidgets에서 가능한지는 알 수 없네요.
wxApp::Initialize에서 gtk-init-check를 호출하네요.
Initialize를 서브클래싱해서 오류 메시지는 나오지 않게 하면서 원래 것을 호출하고 반환값은 무시할 수 있어요. 되는 것 같습니다.
명령줄 스위치 이름을 뭐라고 짓고 어떻게 설명하면 좋을지 제안해 주시겠어요? 전통적으로 정해진 표준 같은 게 있나요? 지금 저는 이렇게 쓰고 있어요: -daemon (또는 -d) (RPC를 활성화하고 백그라운드에서 실행) -server (RPC를 활성화)
영어 원문
[email protected] wrote:
> Just a few clues I've found about running the same binary without a GUI:
>
> 1) GTK supports running a program without display:
> http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check.
> This doesn't tell if it's possible in wxWidgets though.
I see it calls gtk-init-check in wxApp::Initialize.
I can subclass Initialize, call the original one while suppressing the
error message and ignore the return value. It seems to be working.
Any suggestions what to name the command line switches and how to
describe them? Is there any traditional standard? I'm currently using:
-daemon (or -d) (Enables RPC and runs in the background)
-server (Enables RPC)
이메일 #169
Date: Tue, 23 Feb 2010 01:41:01 +0000
From: Satoshi Nakamoto <[email protected]>
Subject: Re: Non-GUI option
To: Martti Malmi <[email protected]>
한글 번역
같은 바이너리를 GUI 없이 실행하는 것에 대해 제가 찾은 단서 몇 가지예요:
- GTK는 디스플레이 없이 프로그램을 실행하는 것을 지원합니다: http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. 그렇지만 이걸로는 wxWidgets에서 가능한지는 알 수 없네요.
wxApp::Initialize에서 gtk-init-check를 호출하네요.
Initialize를 서브클래싱해서 오류 메시지는 나오지 않게 하면서 원래 것을 호출하고 반환값은 무시할 수 있어요. 되는 것 같습니다.
잘 됩니다. 몇 가지만 더 하면 올릴게요.
사람들에게 GTK 라이브러리를 설치하라고 알려줘야겠네요. GTK를 설치하는 apt-get 명령어가 기억나세요? 그리고 GUI가 설치되어 있지 않은 상태에서도 설치할 수 있나요?
영어 원문
>> Just a few clues I've found about running the same binary without a GUI:
>>
>> 1) GTK supports running a program without display:
>> http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check.
>> This doesn't tell if it's possible in wxWidgets though.
>
> I see it calls gtk-init-check in wxApp::Initialize.
>
> I can subclass Initialize, call the original one while suppressing the
> error message and ignore the return value. It seems to be working.
This is working. A few more things and I'll upload it.
We'll need to tell people to install the GTK libraries. Do you remember
the apt-get command to install GTK, and can you install it without
having a GUI installed?
이메일 #170
Date: Tue, 23 Feb 2010 15:19:51 +0200
From: [email protected]
To: Satoshi Nakamoto <[email protected]>
Subject: Re: Non-GUI option
한글 번역
[email protected] 님의 글:
같은 바이너리를 GUI 없이 실행하는 것에 대해 제가 찾은 단서 몇 가지예요:
- GTK는 디스플레이 없이 프로그램을 실행하는 것을 지원합니다: http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check. 그렇지만 이걸로는 wxWidgets에서 가능한지는 알 수 없네요.
wxApp::Initialize에서 gtk-init-check를 호출하네요.
Initialize를 서브클래싱해서 오류 메시지는 나오지 않게 하면서 원래 것을 호출하고 반환값은 무시할 수 있어요. 되는 것 같습니다.
명령줄 스위치 이름을 뭐라고 짓고 어떻게 설명하면 좋을지 제안해 주시겠어요? 전통적으로 정해진 표준 같은 게 있나요? 지금 저는 이렇게 쓰고 있어요: -daemon (또는 -d) (RPC를 활성화하고 백그라운드에서 실행) -server (RPC를 활성화)
좋아 보이네요, 그쪽에 관해서는 아는 표준이 없어요.
영어 원문
> [email protected] wrote:
>> Just a few clues I've found about running the same binary without a GUI:
>>
>> 1) GTK supports running a program without display:
>> http://library.gnome.org/devel/gtk/2.12/gtk-General.html#gtk-init-check.
>> This doesn't tell if it's possible in wxWidgets though.
>
> I see it calls gtk-init-check in wxApp::Initialize.
>
> I can subclass Initialize, call the original one while suppressing the
> error message and ignore the return value. It seems to be working.
>
> Any suggestions what to name the command line switches and how to
> describe them? Is there any traditional standard? I'm currently using:
> -daemon (or -d) (Enables RPC and runs in the background)
> -server (Enables RPC)
That seems good, I don't know of any standards about it.