Re: curl and proxy

2014-10-06 Thread Sag Academy via Digitalmars-d-learn
On Friday, 3 October 2014 at 10:53:27 UTC, Marc Schütz wrote: On Friday, 3 October 2014 at 04:57:28 UTC, AntonSotov wrote: auto http = HTTP(dlang.org); http.onReceive = (ubyte[] data) { writeln(cast(string) (data)); return data.length; }; http.proxy = 192.168.111.111; http.proxyPort

Re: line numbers in linux stack traces?

2014-10-07 Thread Sag Academy via Digitalmars-d-learn
On Sunday, 5 October 2014 at 09:10:06 UTC, Nick Sabalausky wrote: I know this keeps getting asked every year or so, but I couldn't find recent info. Are line numbers in linux stack traces supposed to be working at this point? Because I'm not getting any with 2.066.0 with either -g or -gc

Re: 'write' crashes without extra window

2014-10-08 Thread Sag Academy via Digitalmars-d-learn
On Wednesday, 8 October 2014 at 09:17:01 UTC, Gary Willoughby wrote: On Wednesday, 8 October 2014 at 03:33:38 UTC, Adam D. Ruppe wrote: You could just wrap the write function in a try/catch to explicitly ignore the error. Or if the write function is there only for debug purposes you could

Re: Multithreading in D

2014-10-09 Thread Sag Academy via Digitalmars-d-learn
On Thursday, 9 October 2014 at 10:10:20 UTC, Konstantin wrote: Are you looking for parallel? http://dlang.org/library/std/parallelism/parallel.html I have seen this, but I'm not sure how to use it. Maybe: float[][] maps = new float[#threads][resolution * resolution]; foreach(i, ref elem;

Re: std.container.Array deep-copy?

2014-10-10 Thread Sag Academy via Digitalmars-d-learn
On Friday, 10 October 2014 at 10:32:17 UTC, yazd wrote: Like the following? That did not work. Array!Foo y = Array!Foo(x[]); How does it not work? It compiles successfully: http://dpaste.dzfl.pl/583d20e426a0 yeah man.

Re: COFF on Win32 how to try?

2014-10-11 Thread Sag Academy via Digitalmars-d-learn
On Saturday, 11 October 2014 at 10:12:47 UTC, Szymon Gatner wrote: On Saturday, 11 October 2014 at 09:21:18 UTC, Rainer Schuetze wrote: On 10.10.2014 20:44, Szymon Gatner wrote: Hi, thanks for all the information. I got Digger (pretty nice tool btw) and it pulled all neccessary repos from

Re: Formatted output of range of tuples

2014-10-13 Thread Sag Academy via Digitalmars-d-learn
On Monday, 13 October 2014 at 09:20:27 UTC, monarch_dodra wrote: On Wednesday, 8 October 2014 at 23:28:34 UTC, bearophile wrote: anonymous: You can turn the tuples into ranges with `only`: writef(%(%(%s %)\n%), zip(indexes, source).map!(t = only(t.expand))); This is a nice idea. Expand

Re: Simple import question

2014-10-16 Thread Sag Academy via Digitalmars-d-learn
On Thursday, 16 October 2014 at 10:59:29 UTC, Rei Roldan wrote: On Wednesday, 15 October 2014 at 16:11:22 UTC, Steven Schveighoffer wrote: *snip* You might of missed Adam's response up there: But the best way is to explicitly pass all the file names to the compiler: dmd yourfile.d