Re: Issue with small floating point numbers

2021-05-12 Thread Zardoz via Digitalmars-d-learn
On Thursday, 13 May 2021 at 03:03:37 UTC, Tim wrote: Hello all, I have this piece of code ```D /** Rotate a 2D array (Vector) by phi radians Params: vec = 2D Vector to rotate phi = Degree with which to rotate the Vector in radians Returns: Rotated 2D array (Vector) Example: */

Re: It's DUB's "optional": true broken ?

2021-03-28 Thread Zardoz via Digitalmars-d-learn
On Sunday, 28 March 2021 at 15:52:43 UTC, Zardoz wrote: So, we get this dub.json : { "name": "example", "configurations": [ { "name": "example", "targetType": "library" }, { "name": "unittest", "targetType": "library", "importPaths": ["source",

Re: How to update terminal output?

2021-03-28 Thread Zardoz via Digitalmars-d-learn
On Sunday, 28 March 2021 at 16:45:29 UTC, dog2002 wrote: I mean, I want to write a string without a new line. For example, some command line applications have progress bars. For a single line string I use \r. But it doesn't work for a multiple line string - the application is just adding new

It's DUB's "optional": true broken ?

2021-03-28 Thread Zardoz via Digitalmars-d-learn
So, we get this dub.json : { "name": "example", "configurations": [ { "name": "example", "targetType": "library" }, { "name": "unittest", "targetType": "library", "importPaths": ["source", "tests"], "sourcePaths": ["source", "tests"],

Re: Does GtkD work well on Windows?

2016-03-24 Thread Zardoz via Digitalmars-d-learn
On Thursday, 24 March 2016 at 21:00:36 UTC, Web Biz Owner wrote: Hi group, I'm interested in developing some GUI programs in D on Windows. Looked into the various D GUI toolkit options a bit, on the D sites and by googling a bit. Thinking of using GtkD. So would like to know whether people

Re: Using tango or other static lib in static lib

2016-03-15 Thread Zardoz via Digitalmars-d-learn
On Sunday, 13 March 2016 at 01:08:29 UTC, Mike Parker wrote: On Sunday, 13 March 2016 at 01:06:33 UTC, Mike Parker wrote: it. Assuming both files live in the same directory, they can be compiled with this command: Somehow I deleted that line: dmd main.d something.d Not would be more easy

Re: How to better organize dub project to get 3 exe from same codebase?

2016-02-27 Thread Zardoz via Digitalmars-d-learn
On Saturday, 27 February 2016 at 13:56:21 UTC, Suliman wrote: What I am doing wrong? http://img.ctrlv.in/img/16/02/27/56d1aae37b77a.png Try : dub build code1:App1 dub build code1:App2

Re: How to better organize dub project to get 3 exe from same codebase?

2016-02-25 Thread Zardoz via Digitalmars-d-learn
On Thursday, 25 February 2016 at 18:57:08 UTC, Suliman wrote: I have got 3 small projects that have shared code base. At compile time they use few same classes. On runtime they use same config file. How to better to organize work with dub? Try with subpacjages like I did : name "dedcpu"

Re: Running task once a day in vibe.d

2016-02-17 Thread Zardoz via Digitalmars-d-learn
On Tuesday, 16 February 2016 at 18:30:43 UTC, Nick wrote: Hey folks I'm making a vibe.d application. Once a day it needs to download some data. How do i get the program to perform this task once a day? Regards, Nick Why you not use cron to launch your program at desire time every day ?

Re: How to Generate Entities from an Existing Database in D language ORM?

2016-02-15 Thread ZardoZ via Digitalmars-d-learn
On Monday, 15 February 2016 at 14:33:24 UTC, Eliatto wrote: Hello! I've found the following C++/Qt project: http://www.treefrogframework.org/ It contains ORM. Treefrog can generate model stubs from the existing database. Is it possible to do the same in any D language ORM library? BTW, similar

Re: DUB, Platform specifications and dependencies

2015-11-30 Thread Zardoz via Digitalmars-d-learn
On Monday, 30 November 2015 at 16:54:43 UTC, Sönke Ludwig wrote: Am 24.11.2015 um 19:51 schrieb Zardoz: Actually I'm trying to setup dub to not grab a dependency on Windows ( https://github.com/Zardoz89/DEDCPU-16/blob/master/dub.sdl ) : name "dedcpu" authors "Luis Panadero Guardeño"

DUB, Platform specifications and dependencies

2015-11-24 Thread Zardoz via Digitalmars-d-learn
Actually I'm trying to setup dub to not grab a dependency on Windows ( https://github.com/Zardoz89/DEDCPU-16/blob/master/dub.sdl ) : name "dedcpu" authors "Luis Panadero Guardeño" targetType "none" license "BSD 3-clause" description "DCPU-16 tools" subPackage { name "lem1802" description