Re: Vibe.d: Listening to port 8080 on external device doesn't work

2017-02-21 Thread krzaq via Digitalmars-d-learn
On Wednesday, 22 February 2017 at 00:38:30 UTC, aberba wrote: Using vibe.d, I bind to port 8080 at 127.0.0.1 but I can't access server on my phone through hotspot using the external IP from ip addr on Linux. But 127.0.0 running Apache server works. Don't if its vibe.d or OS (ubuntu 14.04)

Object.factory from shared libraries

2014-09-26 Thread krzaq via Digitalmars-d-learn
I'd like to extend my program's functionality from plugins, that'd be loaded by name (or not) as requested by the config file. Is it possible to throw in a few dlls/sos implementing those new modules into a directory and hope that they will be all loaded and available to Object.factory in the

Re: Object.factory from shared libraries

2014-09-26 Thread krzaq via Digitalmars-d-learn
On Friday, 26 September 2014 at 14:14:05 UTC, Jacob Carlborg wrote: On 26/09/14 14:37, krzaq wrote: I'd like to extend my program's functionality from plugins, that'd be loaded by name (or not) as requested by the config file. Is it possible to throw in a few dlls/sos implementing those new

Re: input range from stdin

2014-09-18 Thread krzaq via Digitalmars-d-learn
On Wednesday, 17 September 2014 at 18:05:36 UTC, Ali Çehreli wrote: On 09/17/2014 08:30 AM, krzaq wrote: On Wednesday, 17 September 2014 at 14:37:21 UTC, Marc Schütz wrote: On Wednesday, 17 September 2014 at 12:44:00 UTC, krzaq wrote: I'd like to have something similar to C++'s

Re: input range from stdin

2014-09-18 Thread krzaq via Digitalmars-d-learn
On Thursday, 18 September 2014 at 11:13:36 UTC, Marc Schütz wrote: On Thursday, 18 September 2014 at 09:21:17 UTC, krzaq wrote: That's not what I wanted. Maybe I should explain instead of expecting you to divine my intentions, though :) I am trying to rewrite the following program in D--making

input range from stdin

2014-09-17 Thread krzaq via Digitalmars-d-learn
I'd like to have something similar to C++'s std::istream_iteratorint(std::cin) Is it possible? I'm relatively indifferent to efficiency of the solution.

Re: input range from stdin

2014-09-17 Thread krzaq via Digitalmars-d-learn
On Wednesday, 17 September 2014 at 14:37:21 UTC, Marc Schütz wrote: On Wednesday, 17 September 2014 at 12:44:00 UTC, krzaq wrote: I'd like to have something similar to C++'s std::istream_iteratorint(std::cin) Is it possible? I'm relatively indifferent to efficiency of the solution. import

How to set workDir for std.process.execute ?

2014-08-20 Thread KrzaQ via Digitalmars-d-learn
Hello, I'm trying to follow the documentation: http://dlang.org/phobos/std_process.html#.execute Unfortunately, the following code gives me a compiler error: class Probator { char[] dir; this(const char[] dir){ this.dir = dir.dup; } int

Re: How to set workDir for std.process.execute ?

2014-08-20 Thread krzaq via Digitalmars-d-learn
On Wednesday, 20 August 2014 at 16:16:03 UTC, ketmar via Digitalmars-d-learn wrote: On Wed, 20 Aug 2014 16:07:47 + KrzaQ via Digitalmars-d-learn digitalmars-d-learn@puremagic.com wrote: It's as if the implementation didn't expect the last argument. try to upgrade to dmd 2.066