actors library?

2012-01-23 Thread Xan xan
Hi. Is there any actors library in D. Spawn and etc is ok, but I want more high-level thing and actors it's the best I get, I think. I searched and nothing. I'm interested in D 2.0 or 1.0. Whatever! Thanks in advace, Xan.

Re: Reading web pages

2012-01-21 Thread Xan xan
to postpone the invitation ;-) 2012/1/20 Bystroushaak bystrou...@kitakitsune.org: On 20.1.2012 18:42, Xan xan wrote: Thank you very much. I should invite you to a beer ;-) Write me if you will be in prag/czech republic :) For the other hand, I get this error: [Excepció: std.conv.ConvException

Re: Reading web pages

2012-01-21 Thread Xan xan
to type uint] 2012/1/20 Bystroushaak bystrou...@kitakitsune.org: On 20.1.2012 18:42, Xan xan wrote: Thank you very much. I should invite you to a beer ;-) Write me if you will be in prag/czech republic :) For the other hand, I get this error: [Excepció: std.conv.ConvException@/usr

Re: Reading web pages

2012-01-20 Thread Xan xan
:  https://github.com/Bystroushaak/DHTTPClient On 19.1.2012 20:24, Timon Gehr wrote: On 01/19/2012 04:30 PM, Xan xan wrote: Hi, I want to simply code a script to get the url as string in D 2.0. I have this code: //D 2.0 //gdmd-4.6 import std.stdio, std.string, std.conv, std.stream; import

Re: Reading web pages

2012-01-20 Thread Xan xan
I get errors: xan@gerret:~/yottium/@codi/aranya-d2.0$ gdmd-4.6 spider.d spider.o: In function `_Dmain': spider.d:(.text+0x4d): undefined reference to `_D11dhttpclient10HTTPClient7__ClassZ' spider.d:(.text+0x5a): undefined reference to

Re: Reading web pages

2012-01-20 Thread Xan xan
. On 20.1.2012 15:37, Xan xan wrote: I get errors: xan@gerret:~/yottium/@codi/aranya-d2.0$ gdmd-4.6 spider.d spider.o: In function `_Dmain': spider.d:(.text+0x4d): undefined reference to `_D11dhttpclient10HTTPClient7__ClassZ' spider.d:(.text+0x5a): undefined reference

Re: Reading web pages

2012-01-20 Thread Xan xan
, Accept-Charset, Kepp-ALive and Connection are important and if you redefine it, module can stop work with some servers. On 20.1.2012 15:56, Xan xan wrote: On the other hand, I see dhttpclient identifies as Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.2.3) Gecko/20100401 Firefox

Re: Reading web pages

2012-01-20 Thread Xan xan
/download_binary_file.d On 20.1.2012 18:00, Bystroushaak wrote: It is unlimited, you just have to cast output to ubyte[]: std.file.write(logo3w.png, cast(ubyte[]) cl.get(http://www.google.cz/images/srpr/logo3w.png;)); On 20.1.2012 17:53, Xan xan wrote: Thank you very much, Bystroushaak. I see

Re: Reading web pages

2012-01-20 Thread Xan xan
(a)); On 20.1.2012 18:18, Xan xan wrote: Mmmm... I understand it. But is there any way of circumvent it? Perhaps I could write to one file, isn't? 2012/1/20 Bystroushaakbystrou...@kitakitsune.org: Thats because you are trying writeln binary data, and that is impossible, because writeln IMHO checks UTF8

Re: Reading web pages

2012-01-20 Thread Xan xan
[]) navegador.get(a)); On 20.1.2012 18:18, Xan xan wrote: Mmmm... I understand it. But is there any way of circumvent it? Perhaps I could write to one file, isn't? 2012/1/20 Bystroushaakbystrou...@kitakitsune.org: Thats because you are trying writeln binary data, and that is impossible

Reading web pages

2012-01-19 Thread Xan xan
Hi, I want to simply code a script to get the url as string in D 2.0. I have this code: //D 2.0 //gdmd-4.6 import std.stdio, std.string, std.conv, std.stream; import std.socket, std.socketstream; int main(string [] args) { if (args.length 2) { writeln(Usage:);