Re: Show window maximized in DlangUI

2016-05-05 Thread default0 via Digitalmars-d-learn
On Thursday, 5 May 2016 at 14:10:14 UTC, Vadim Lopatin wrote: On Thursday, 5 May 2016 at 07:53:43 UTC, default0 wrote: Hi I'm writing a D Desktop application using DlangUI. I want the window it creates to start maximized (but not Fullscreen) and could not find any APIs in the documentation

Show window maximized in DlangUI

2016-05-05 Thread default0 via Digitalmars-d-learn
Hi I'm writing a D Desktop application using DlangUI. I want the window it creates to start maximized (but not Fullscreen) and could not find any APIs in the documentation that seem to do this. Does anyone know how to do this?

Re: Unexpected Crash

2016-04-07 Thread default0 via Digitalmars-d-learn
On Thursday, 7 April 2016 at 21:22:19 UTC, Ali Çehreli wrote: On 04/07/2016 01:49 PM, default0 wrote: On Thursday, 7 April 2016 at 20:47:35 UTC, Adam D. Ruppe wrote: On Thursday, 7 April 2016 at 20:42:17 UTC, default0 wrote: If I enter "5,5,5" on the commandline, hit enter, then enter "5,5,5"

Re: Unexpected Crash

2016-04-07 Thread default0 via Digitalmars-d-learn
On Thursday, 7 April 2016 at 20:47:35 UTC, Adam D. Ruppe wrote: On Thursday, 7 April 2016 at 20:42:17 UTC, default0 wrote: If I enter "5,5,5" on the commandline, hit enter, then enter "5,5,5" When you hit enter, that puts a \n character in the buffer. readf doesn't skip that automatically,

Unexpected Crash

2016-04-07 Thread default0 via Digitalmars-d-learn
Consider the following program: import std.stdio; void main(string[] args) { int a, b, c; while(true) { readf("%d,%d,%d", , , ); writeln(a, b, c); } } If I enter "5,5,5" on the commandline, hit enter, then enter "5,5,5" a second time, hit enter again, the second

Re: Make Simple Things Hard to Figure out

2015-12-21 Thread default0 via Digitalmars-d-learn
On Monday, 21 December 2015 at 16:20:18 UTC, Adam D. Ruppe wrote: On Monday, 21 December 2015 at 13:51:57 UTC, default0 wrote: The thing I was trying to do was dead simple: Receive a base64 encoded text via a query parameter. So when I read this, I thought you might have missed another

Make Simple Things Hard to Figure out

2015-12-21 Thread default0 via Digitalmars-d-learn
Hi So today I tried setting up vibe.d and see how that all works out. Doing the initial setup was easy enough (dub is amazingly convenient!) and I had a "Hello World" server up and running in about 10 minutes. Sweet. After that, I started looking into vibes URLRouter - also easy enough,

Re: Make Simple Things Hard to Figure out

2015-12-21 Thread default0 via Digitalmars-d-learn
On Monday, 21 December 2015 at 15:49:14 UTC, thedeemon wrote: On Monday, 21 December 2015 at 13:51:57 UTC, default0 wrote: As this isn't really a question for Learn I'm not sure if it fits here. This is more of a "This is how I went about trying to learn X. These are the problems I

Re: Appenders and Arrays

2015-09-01 Thread default0 via Digitalmars-d-learn
On Tuesday, 1 September 2015 at 17:20:49 UTC, Steven Schveighoffer wrote: On 9/1/15 12:49 PM, default0 wrote: Hello A simple thing I stumbled across: int main() { import std.stdio; import std.range; int[] d; d ~= 10; d ~= 20; d.put(5); writeln(d);

Appenders and Arrays

2015-09-01 Thread default0 via Digitalmars-d-learn
Hello A simple thing I stumbled across: int main() { import std.stdio; import std.range; int[] d; d ~= 10; d ~= 20; d.put(5); writeln(d); return 0; } Appenders work fine as output ranges, but arrays do not. The above code prints "20" (ie the 10 is removed).