이메일 #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] 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
영어 원문
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] 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]>
영어 원문
>> 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] 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.