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"],

Funny way to crash dmd and brick the whole computer

2018-09-28 Thread Zardoz via Digitalmars-d
CTE fib : module fib_cte; import std.stdio; long fib(long n) { if (n <= 1) return 1; return fib(n - 1) + fib(n - 2); } static immutable valueFib = fib(46); void main() { writeln(valueFib); }

Re: Dreams come true: Compiling and running linux apps on windows :)

2016-08-07 Thread Zardoz via Digitalmars-d-announce
On Sunday, 7 August 2016 at 08:07:37 UTC, Andre Pany wrote: On Sunday, 7 August 2016 at 03:06:27 UTC, Martin Nowak wrote: Good news, I'm really not that keen to write a powershell script. What OS does it detect and download? I am not sure how to get this information. The windows

D APT repository fails

2016-07-25 Thread Zardoz via Digitalmars-d
I keep seeing along this last month many problems with the D APT repository. There is any one cheeking the health of these repository ? Now I get an error with "http://master.dl.sourceforge.net/project/d-apt/dists/d-apt/main/binary-amd64/Packages; Wrong header line. Using a phrase where I

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: RFC: Units of measurement for D (Phobos?)

2016-03-22 Thread Zardoz via Digitalmars-d
On Tuesday, 12 April 2011 at 16:44:10 UTC, David Nadlinger wrote: Recently, I have been playing around with a little units of measurement system in D. As this topic has already been brought up quite a number of times here, I thought I would put my implementation up for discussion here. When

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: the most D-ish GUI library

2016-03-15 Thread Zardoz via Digitalmars-d
On Monday, 14 March 2016 at 20:41:52 UTC, Jordi Sayol wrote: El 14/03/16 a les 17:13, Luis via Digitalmars-d ha escrit: If I remember correctly tkd just works on Windows installing tk/tcl. TkD works on Linux. there are available deb packages at d-apt Sorry

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: DIP 84: Static Inheritance

2016-02-27 Thread Zardoz via Digitalmars-d
On Friday, 30 October 2015 at 14:39:47 UTC, Atila Neves wrote: From the discussion here: http://forum.dlang.org/post/tgnxocozkurfvmxqo...@forum.dlang.org, I thought a library solution would do to fix the issue of getting decent error messages when a type fails to satisfy a template constraint

Re: D in Ubuntu apps ecosystem

2016-02-25 Thread Zardoz via Digitalmars-d
On Thursday, 25 February 2016 at 18:05:40 UTC, Adam D. Ruppe wrote: On Thursday, 25 February 2016 at 17:27:45 UTC, karabuta wrote: SIDE NOTE: Ubuntu just lunched a phone with 4GB ram running on a x64 Octacore Arm processors in addition to a table with similar high spec, which can all pretty

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: OT: Vulkan released

2016-02-17 Thread Zardoz via Digitalmars-d
On Tuesday, 16 February 2016 at 19:05:03 UTC, Rikki Cattermole wrote: On 17/02/16 8:03 AM, Zoadian wrote: On Tuesday, 16 February 2016 at 14:20:51 UTC, Ola Fosheim I'll write derelict bindings. I'll steal it once you've done that for alphaPhobos :) Maybe even get Windows context creation

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: Proposal: Database Engine for D

2016-02-09 Thread Zardoz via Digitalmars-d
On Monday, 8 February 2016 at 13:36:09 UTC, Mengu wrote: i don't mind if it's an ORM or something else. my point was that instead of complaining about stuff, we need a safe, stable and extendable database library supporting sqlite, mysql, postgresql, mssql and oracle dbs and we need it like

Re: How to simplyfy "getting started" ? Installation desciption at dlang suboptimal.

2016-01-27 Thread Zardoz via Digitalmars-d
On Wednesday, 27 January 2016 at 18:27:31 UTC, H. S. Teoh wrote: 2. Peer review I can help test it, since I'm using Debian. 3. Submit to Debian/Ubuntu. I can also help with uploading, if necessary. But probably that's the least of your worries right now. :-P T If a kUbuntu user

Re: [dlang.org] new forum design - preview

2016-01-14 Thread Zardoz via Digitalmars-d
On Wednesday, 13 January 2016 at 06:01:41 UTC, Vladimir Panteleev wrote: http://beta.forum.dlang.org/ https://github.com/CyberShadow/DFeed/pull/51 I like the new layout, but I like the actual color scheme.

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