Re: How to get Laptop battery level

2021-02-22 Thread Greatsam4sure via Digitalmars-d-learn
On Monday, 22 February 2021 at 20:59:01 UTC, Greatsam4sure wrote: Dlang is a system programming language. How do I access the battery level of my system using code in dlang? I will appreciate code sample Sorry I mean to say code sample

How to get Laptop battery level

2021-02-22 Thread Greatsam4sure via Digitalmars-d-learn
Dlang is a system programming language. How do I access the battery level of my system using code in dlang? I will appreciate vide sample

Re: Vibe.d and NodeJs with Express

2020-07-12 Thread Greatsam4sure via Digitalmars-d-learn
On Sunday, 12 July 2020 at 10:44:13 UTC, Sebastiaan Koppe wrote: On Sunday, 12 July 2020 at 10:01:54 UTC, greatsam4sure wrote: [...] How much speed do you need? I doubt you really need every last millisecond, at which point ease of development takes over. Instead it might be better to look

Vibe.d and NodeJs with Express

2020-07-12 Thread greatsam4sure via Digitalmars-d-learn
I am thinking of building an App with Vibe. D or NodeJS but my topmost priority is speed and ease of development due to third party libraries integration. I know Vibe. D is faster than NodeJS and I love to use Dlang. My question is can I eat my cake and have it if I go with Dlang and Vibe. D.

Re: Vibe.d navigation

2020-04-01 Thread GreatSam4sure via Digitalmars-d-learn
On Wednesday, 1 April 2020 at 02:15:25 UTC, Steven Schveighoffer wrote: On 3/31/20 4:43 PM, GreatSam4sure wrote: [...] Vibe does not render templates automatically. You have to render them from a function. The function can be in a route that has nothing to do with the name of the template.

Re: Vibe.d navigation

2020-03-31 Thread GreatSam4sure via Digitalmars-d-learn
On Tuesday, 31 March 2020 at 19:34:55 UTC, Steven Schveighoffer wrote: On 3/31/20 2:57 PM, GreatSam4sure wrote: [...] I'm not sure what you mean. Vibe has ways to control the route names of the members of your web interface using UDAs, but primarily uses the name of the functions. A nice

Re: Vibe.d navigation

2020-03-31 Thread GreatSam4sure via Digitalmars-d-learn
On Tuesday, 31 March 2020 at 19:34:55 UTC, Steven Schveighoffer wrote: On 3/31/20 2:57 PM, GreatSam4sure wrote: I am playing with the vibe.d for some days now. One thing I am struggling with is move from one page to another using web interface. The naming of the functions and proper navigation

Vibe.d navigation

2020-03-31 Thread GreatSam4sure via Digitalmars-d-learn
I am playing with the vibe.d for some days now. One thing I am struggling with is move from one page to another using web interface. The naming of the functions and proper navigation from one page to another is not clear to me. How to move from one page to another. I will appreciate any help.

Scss file with vibe.d

2020-03-12 Thread GreatSam4sure via Digitalmars-d-learn
I want to ask if vibe.d support scss files. I could not get vibe.d to work with scss files. As usual, I will appreciate any help and early reply

Re: Referencing an image in .css file in vibe.d

2020-03-11 Thread GreatSam4sure via Digitalmars-d-learn
On Wednesday, 11 March 2020 at 22:11:24 UTC, GreatSam4sure wrote: I am trying to reference an image that is in public/imgs/pix1.jpg in CSS file using background-image using URL but the image does not show. What is the proper way of reference to the URL of the image? I will appreciate any

Referencing an image in .css file in vibe.d

2020-03-11 Thread GreatSam4sure via Digitalmars-d-learn
I am trying to reference an image that is in public/imgs/pix1.jpg in CSS file using background-image using URL but the image does not show. What is the proper way of reference to the URL of the image? I will appreciate any help

Re: Typescript with vibe.d

2020-03-11 Thread GreatSam4sure via Digitalmars-d-learn
On Tuesday, 10 March 2020 at 08:55:56 UTC, Jacob Carlborg wrote: On Monday, 9 March 2020 at 09:42:16 UTC, GreatSam4sure wrote: I want to know if it is possible to use typescript with the vibe.d since typescript is a superset of javascript. I will appreciate any example if it is possible

Re: Typescript with vibe.d

2020-03-10 Thread GreatSam4sure via Digitalmars-d-learn
On Monday, 9 March 2020 at 17:46:42 UTC, Steven Schveighoffer wrote: On 3/9/20 1:23 PM, GreatSam4sure wrote: [...] You can use it, but you have to compile it yourself. Vibe.d does nothing with the javascript except serve it to the browser. It has no restrictions on what files can be sent,

Re: Typescript with vibe.d

2020-03-09 Thread GreatSam4sure via Digitalmars-d-learn
On Monday, 9 March 2020 at 15:11:48 UTC, Steven Schveighoffer wrote: On 3/9/20 5:42 AM, GreatSam4sure wrote: I want to know if it is possible to use typescript with the vibe.d since typescript is a superset of javascript. I will appreciate any example if it is possible My understanding is

Typescript with vibe.d

2020-03-09 Thread GreatSam4sure via Digitalmars-d-learn
I want to know if it is possible to use typescript with the vibe.d since typescript is a superset of javascript. I will appreciate any example if it is possible

Re: D vs Java which is more powerful

2019-11-17 Thread GreatSam4sure via Digitalmars-d-learn
On Saturday, 16 November 2019 at 22:25:46 UTC, bauss wrote: On Saturday, 16 November 2019 at 07:24:50 UTC, GreatSam4sure wrote: [...] Java as a language in itself is not more powerful than D regardless of opinions. [...] Thanks, I am really shock about the claim that Java is move

Re: D vs Java which is more powerful

2019-11-16 Thread GreatSam4sure via Digitalmars-d-learn
On Saturday, 16 November 2019 at 10:28:58 UTC, bachmeier wrote: On Saturday, 16 November 2019 at 07:24:50 UTC, GreatSam4sure wrote: [...] What does "powerful" mean? I sure as heck wouldn't call Java a powerful language for interacting with C code, for instance. This kind of discussion is

D vs Java which is more powerful

2019-11-15 Thread GreatSam4sure via Digitalmars-d-learn
According to this [1] a person that java is much more powerful than D. I am really surprised at this claim. Is this true? Because I believe D much more powerful than Java. I will really appreciate detail analysis 1.https://forum.dlang.org/thread/lnrhskowvyighdnzb...@forum.dlang.org

Re: Translating Java into D

2019-11-15 Thread GreatSam4sure via Digitalmars-d-learn
On Friday, 15 November 2019 at 03:29:16 UTC, Heromyth wrote: On Thursday, 14 November 2019 at 19:50:22 UTC, NonNull wrote: Greetings, Java seems to be almost a subset of D in various ways. No, it's not exactly right. Java is more powerful than D as for a language. Many things that Java can do

Re: arsd errors on windows

2019-10-17 Thread Greatsam4sure via Digitalmars-d-learn
On Thursday, 17 October 2019 at 12:10:21 UTC, Dennis wrote: On Thursday, 17 October 2019 at 12:06:49 UTC, Dennis wrote: You can put "buildRequirements": "allowWarnings" in your dub.json. Should be "buildRequirements": ["allowWarnings"] the same error Performing "debug" build using

Re: arsd errors on windows

2019-10-17 Thread Greatsam4sure via Digitalmars-d-learn
On Thursday, 17 October 2019 at 08:57:06 UTC, Dennis wrote: On Thursday, 17 October 2019 at 04:05:40 UTC, Greatsam4sure wrote: what is the way out. I made a pull request fixing it: https://github.com/adamdruppe/arsd/pull/222 In the mean time, you can add the subpackage

Re: arsd errors on windows

2019-10-17 Thread GreatSam4sure via Digitalmars-d-learn
On Thursday, 17 October 2019 at 08:57:06 UTC, Dennis wrote: On Thursday, 17 October 2019 at 04:05:40 UTC, Greatsam4sure wrote: what is the way out. I made a pull request fixing it: https://github.com/adamdruppe/arsd/pull/222 In the mean time, you can add the subpackage

arsd errors on windows

2019-10-16 Thread Greatsam4sure via Digitalmars-d-learn
from my project root directory dub add arsd-official This is added to dub.json "arsd-official": "~>4.0.3" just run the project gives Fetching arsd-official 4.0.3 (getting selected version)... Performing "debug" build using C:\D\dmd2\windows\bin\dmd.exe for x86_64. arsd-official:cgi 4.0.3:

Re: Blog Post #77: Notebook, Part I

2019-10-09 Thread GreatSam4sure via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 09:44:39 UTC, Ron Tarrant wrote: On Wednesday, 9 October 2019 at 03:13:48 UTC, GreatSam4sure wrote: Good works Thanks, GreatSam4sure. Is there any way to detect the size of my screen using gtkd? So that incan calculate the size of my screen and center my

Re: formatting a float or double in a string with all significant digits kept

2019-10-09 Thread GreatSam4sure via Digitalmars-d-learn
On Wednesday, 9 October 2019 at 07:16:43 UTC, Jon Degenhardt wrote: On Wednesday, 9 October 2019 at 05:46:12 UTC, berni44 wrote: On Tuesday, 8 October 2019 at 20:37:03 UTC, dan wrote: But i would like to be able to do this without knowing the expansion of pi, or writing too much code,

Re: Blog Post #77: Notebook, Part I

2019-10-08 Thread GreatSam4sure via Digitalmars-d-learn
On Tuesday, 8 October 2019 at 10:00:00 UTC, Ron Tarrant wrote: Today starts a new series on the Notebook widget. Over the next few weeks, we'll dig in deep, looking at single-tab and multiple-tab demos, customizing the look of the actual tabs, adding and removing tabs... a whole ton of stuff.

Re: Blog Post #75: Cairo X - Noodling with the Mouse

2019-10-04 Thread Greatsam4sure via Digitalmars-d-learn
On Tuesday, 1 October 2019 at 09:58:42 UTC, Ron Tarrant wrote: Here's the second installment of the Nodes-n-noodles coverage in which we get the mouse involved: https://gtkdcoding.com/2019/10/01/0075-cairo-x-mouse-noodle.html Pls sir can you make a pdf of the tutorials. that can be easily

Re: Help making a game with transparency

2019-09-28 Thread GreatSam4sure via Digitalmars-d-learn
On Friday, 27 September 2019 at 11:32:53 UTC, Adam D. Ruppe wrote: On Friday, 27 September 2019 at 11:28:35 UTC, matheus wrote: Sorry this is a bit vague. I suppose you're using engine.d or screen.d directly right? those two are obsolete, new stuff should use simpledisplay but with

Re: Java to D

2019-09-01 Thread GreatSam4sure via Digitalmars-d-learn
On Saturday, 31 August 2019 at 16:44:01 UTC, Patrick wrote: On Wednesday, 28 August 2019 at 10:33:33 UTC, GreatSam4sure wrote: On Wednesday, 28 August 2019 at 09:35:55 UTC, Jacob Carlborg wrote: [...] Thanks i will check it up Take a look at JavacTo

Re: Java to D

2019-08-28 Thread GreatSam4sure via Digitalmars-d-learn
On Wednesday, 28 August 2019 at 09:35:55 UTC, Jacob Carlborg wrote: On 2019-08-28 10:14, GreatSam4sure wrote: [...] DWT is ported manually from Java. Here's a very short guide [1]. That guide is probably written for D1. [...] I'm working on a tool do be able to automatically convert

Java to D

2019-08-28 Thread GreatSam4sure via Digitalmars-d-learn
Good day everyone. DWT is a library for creating cross-platform GUI applications. It's a port of the SWT Java library from Eclipse. Currently supported platforms are Windows, using Win32 and Linux, using GTK. What are the tools and step involved in converting a java GUI toolkit to D2? Is it

Re: Pro programmer

2019-08-27 Thread GreatSam4sure via Digitalmars-d-learn
On Tuesday, 27 August 2019 at 14:51:07 UTC, Ron Tarrant wrote: On Sunday, 25 August 2019 at 21:30:10 UTC, GreatSam4sure wrote: If I want to be a pro programmer what language must I start with? If it's deep understanding you want, start with assembly language. Knowing how things are done down

Re: Pro programmer

2019-08-27 Thread GreatSam4sure via Digitalmars-d-learn
On Tuesday, 27 August 2019 at 08:09:40 UTC, Dukc wrote: On Sunday, 25 August 2019 at 21:30:10 UTC, GreatSam4sure wrote: [...] Any general purpose language will do. Basically everything can be expressed in any language, through some tasks are very cumbersome in tasks they are not designed

Re: Pro programmer

2019-08-26 Thread GreatSam4sure via Digitalmars-d-learn
On Monday, 26 August 2019 at 15:29:47 UTC, Kagamin wrote: On Monday, 26 August 2019 at 12:02:12 UTC, GreatSam4sure wrote: I want customizable GUI toolkit like JavaFX and adobe spark framework in D. DWT was translated from java SWT, you can do the same for JavaFX, D is heavily based on java

Re: Pro programmer

2019-08-26 Thread GreatSam4sure via Digitalmars-d-learn
On Monday, 26 August 2019 at 08:50:29 UTC, Chris wrote: On Monday, 26 August 2019 at 06:46:04 UTC, GreatSam4sure wrote: What is the path of becoming very good at programming? Which language will one start with. Often it's the language that best solves the problem at hand for you, but it

Re: Pro programmer

2019-08-26 Thread GreatSam4sure via Digitalmars-d-learn
On Monday, 26 August 2019 at 04:39:39 UTC, Tony wrote: On Sunday, 25 August 2019 at 21:30:10 UTC, GreatSam4sure wrote: I am wondering as to what is the starting point of being a pro programmer. If I want to be a pro programmer what language must I start with? Most pro programmer I have heard

Pro programmer

2019-08-25 Thread GreatSam4sure via Digitalmars-d-learn
I am wondering as to what is the starting point of being a pro programmer. If I want to be a pro programmer what language must I start with? Most pro programmer I have heard of are all C and C++ Guru. Most of the best guys on this D forum falls into that category. I really want to know

Re: Desktop app with vibe.d

2019-08-13 Thread GreatSam4sure via Digitalmars-d-learn
On Tuesday, 13 August 2019 at 09:44:59 UTC, Russel Winder wrote: On Mon, 2019-08-12 at 20:01 +, DanielG via Digitalmars-d-learn wrote: [...] GtkD allows for "reactive" UI. https://www.reactivemanifesto.org/ There is also Qt, I haven't tried any of the D bindings to Qt, but given Qt is

Re: How to run the dub bundle with dmd

2019-08-12 Thread GreatSam4sure via Digitalmars-d-learn
On Sunday, 11 August 2019 at 10:04:47 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 16:44:48 UTC, greatsam4sure wrote: On Saturday, 10 August 2019 at 15:42:39 UTC, rikki cattermole wrote: This is a crazy question but is your Windows install 64bit? yes. See the spec below

Desktop app with vibe.d

2019-08-12 Thread GreatSam4sure via Digitalmars-d-learn
Pls I want to know if it is possible to build desktop app with vibe.d just like nodejs. I am not satisfy with the GUI of Dlang such as dlangui and gtkd. I don't think they have good styling capabilities like HTML and CSS. I will be happy if I can build an app in D with fanciful ui. I will

Re: How to run the dub bundle with dmd

2019-08-10 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 10 August 2019 at 15:42:39 UTC, rikki cattermole wrote: This is a crazy question but is your Windows install 64bit? yes. See the spec below https://ibb.co/M1TwY7W

Re: How to run the dub bundle with dmd

2019-08-10 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 10 August 2019 at 15:17:56 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 14:06:11 UTC, greatsam4sure wrote: On Saturday, 10 August 2019 at 13:46:23 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: [...] Can you make a screenshot

Re: How to run the dub bundle with dmd

2019-08-10 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 10 August 2019 at 15:17:56 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 14:06:11 UTC, greatsam4sure wrote: On Saturday, 10 August 2019 at 13:46:23 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: [...] Can you make a screenshot

Re: How to run the dub bundle with dmd

2019-08-10 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 10 August 2019 at 13:46:23 UTC, Andre Pany wrote: On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: I came across the problem recently. I have dub 1.11.0 install on my windows 10 core i7 but does not support the command "dub add package name" since all the packages

Re: How to run the dub bundle with dmd

2019-08-10 Thread GreatSam4sure via Digitalmars-d-learn
On Saturday, 10 August 2019 at 13:30:39 UTC, Dukc wrote: On Saturday, 10 August 2019 at 13:18:19 UTC, greatsam4sure wrote: I came across the problem recently. I have dub 1.11.0 install on my windows 10 core i7 but does not support the command "dub add package name" since all the packages in

How to run the dub bundle with dmd

2019-08-10 Thread greatsam4sure via Digitalmars-d-learn
I came across the problem recently. I have dub 1.11.0 install on my windows 10 core i7 but does not support the command "dub add package name" since all the packages in dub package register now use this command. I cannot find window binary for the recent version of dub I have uninstalled the

Re: Dub version

2019-08-09 Thread GreatSam4sure via Digitalmars-d-learn
On Friday, 9 August 2019 at 14:15:36 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 13:59:51 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 13:01:51 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 12:10:21 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 09:01:54 UTC, Andre

Re: Dub version

2019-08-09 Thread GreatSam4sure via Digitalmars-d-learn
On Friday, 9 August 2019 at 13:01:51 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 12:10:21 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 09:01:54 UTC, Andre Pany wrote: [...] I am at lost here. Before I can run my D project using dub.1.11.0 executable install on my system

Re: Dub version

2019-08-09 Thread GreatSam4sure via Digitalmars-d-learn
On Friday, 9 August 2019 at 09:01:54 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 08:30:49 UTC, GreatSam4sure wrote: On Friday, 9 August 2019 at 03:52:11 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 01:36:43 UTC, greatsam4sure wrote: On Friday, 9 August 2019 at 01:18:12 UTC,

Re: Dub version

2019-08-09 Thread GreatSam4sure via Digitalmars-d-learn
On Friday, 9 August 2019 at 03:52:11 UTC, Andre Pany wrote: On Friday, 9 August 2019 at 01:36:43 UTC, greatsam4sure wrote: On Friday, 9 August 2019 at 01:18:12 UTC, Elronnd wrote: [...] dub fetch dub Fetching dub 1.16.0... Please note that you need to use `dub run ` or add it to

Re: Dub version

2019-08-08 Thread greatsam4sure via Digitalmars-d-learn
On Friday, 9 August 2019 at 01:18:12 UTC, Elronnd wrote: Dub add is not supported in dub 1.11.0 Use 'dub fetch'. dub fetch dub Fetching dub 1.16.0... Please note that you need to use `dub run ` or add it to dependencies of your package to actually use/run it. dub does not do actual

Dub version

2019-08-08 Thread GreatSam4sure via Digitalmars-d-learn
Which version of dub support dub add library name? Dub add is not supported in dub 1.11.0 Besides I could not run rdmd on my windows 10 core i7. It days this app cannot run on this machine What is the way out? Where can I get window binary for dub that is higher than dub 1.11.0

Re: How to contact people on the forum

2019-07-25 Thread Greatsam4sure via Digitalmars-d-learn
On Wednesday, 24 July 2019 at 16:40:58 UTC, Mike Parker wrote: On Wednesday, 24 July 2019 at 16:37:33 UTC, Greatsam4sure wrote: On Wednesday, 24 July 2019 at 15:56:43 UTC, drug wrote: 24.07.2019 18:51, Greatsam4sure пишет: Good day everyone. I am thinking,  if there is a  way to contact any

Re: How to contact people on the forum

2019-07-24 Thread Greatsam4sure via Digitalmars-d-learn
On Wednesday, 24 July 2019 at 15:56:43 UTC, drug wrote: 24.07.2019 18:51, Greatsam4sure пишет: Good day everyone. I am thinking,  if there is a  way to contact any person on dlang forums through mail or any other means. How do I get their email from their forum post? I use thunderbird to

Re: Return the complete number

2019-07-24 Thread Greatsam4sure via Digitalmars-d-learn
On Wednesday, 24 July 2019 at 15:57:06 UTC, a11e99z wrote: On Wednesday, 24 July 2019 at 15:56:13 UTC, a11e99z wrote: On Wednesday, 24 July 2019 at 15:45:08 UTC, Greatsam4sure wrote: int main(){ double mum = 0; Write("enter a number: ") readf(" %s\n",); Writeln(num); } How do I return

How to contact people on the forum

2019-07-24 Thread Greatsam4sure via Digitalmars-d-learn
Good day everyone. I am thinking, if there is a way to contact any person on dlang forums through mail or any other means. How do I get their email from their forum post?

Return the complete number

2019-07-24 Thread Greatsam4sure via Digitalmars-d-learn
int main(){ double mum = 0; Write("enter a number: ") readf(" %s\n",); Writeln(num); } How do I return the complete number the user enter since I don't since the user can enter numbers of various length with dmd approximating it. I will appreciate any help

Re: Blog Post #0051: MVC IV - ComboBox with Text

2019-07-10 Thread Greatsam4sure via Digitalmars-d-learn
On Tuesday, 9 July 2019 at 12:08:04 UTC, Ron Tarrant wrote: Today's post starts a mini series-within-a-series on dressing up the ComboBox using a ListStore. Essentially, it's ListStore basics leading up to how this type of model is used with a TreeView. You can find it here:

Re: gtkDcoding Facelift

2019-06-23 Thread Greatsam4sure via Digitalmars-d-learn
On Sunday, 23 June 2019 at 10:55:52 UTC, Ron Tarrant wrote: Stage 1 is now complete. Blog entries are color-associated in an effort to make things more visual. Each topic also has its own avatar. Points to anyone who can figure out why each avatar is associated with its topic.

Re: DLS server can't install on my pc

2019-05-24 Thread greatsam4sure via Digitalmars-d-learn
On Friday, 24 May 2019 at 12:03:37 UTC, Laurent Tréguier wrote: On Wednesday, 22 May 2019 at 12:59:13 UTC, greatsam4sure wrote: I am having some difficulty installing DLS for dlang 1.16.4 the visual studio code plugin for Dlang on my pc-windows 10 Lenovo laptop ci7. it actually install in my

DLS server can't install on my pc

2019-05-22 Thread greatsam4sure via Digitalmars-d-learn
I am having some difficulty installing DLS for dlang 1.16.4 the visual studio code plugin for Dlang on my pc-windows 10 Lenovo laptop ci7. it actually install in my ci3 running windows 10. It says this app can't install on this pc. I will be appreciate any help

Vibe.d throw error with dmd 2.086

2019-05-07 Thread greatsam4sure via Digitalmars-d-learn
dub run gives The dependency resolution process is taking too long. The dependency graph is likely hitting a pathological case in the resolution algorithm. Please file a bug report at https://github.com/dlang/dub/issues and mention the package recipe that reproduces this error. what is

Re: lld-link.exe: error: could not open msvcrt100.lib

2019-02-01 Thread greatsam4sure via Digitalmars-d-learn
On Friday, 1 February 2019 at 14:00:15 UTC, Andre Pany wrote: On Friday, 1 February 2019 at 13:52:05 UTC, Andre Pany wrote: Hi, lld-link was working fine on my windows pc. I set in global dub settings file architecture to X86_64. DMD was installed by extracting the zip archive. For python

Re: code-d and serve-d fail to load after vs update

2019-01-26 Thread greatsam4sure via Digitalmars-d-learn
On Friday, 25 January 2019 at 22:19:01 UTC, WebFreak001 wrote: On Friday, 25 January 2019 at 19:47:59 UTC, greatsam4sure wrote: [...] hi, can you check if you have write permissions to C:\Users\Greatsam\AppData\Local\dub\packages\dfmt-0.9.0\dfmt\bin ? Are you using d.betaStream: true? If

code-d and serve-d fail to load after vs update

2019-01-25 Thread greatsam4sure via Digitalmars-d-learn
Just update vs code and since then I cannot use code-d and serve-d. below is dmd 2.084 complains. I will appreciate any help Installing into C:\Users\Greatsam\AppData\Roaming\code-d\bin git clone --recursive https://github.com/Pure-D/serve-d.git serve-d Cloning into 'serve-d'... dub

Re: Vibe.d throw link error

2019-01-05 Thread greatsam4sure via Digitalmars-d-learn
On Friday, 4 January 2019 at 09:56:14 UTC, bauss wrote: On Friday, 4 January 2019 at 09:48:55 UTC, greatsam4sure wrote: On Thursday, 3 January 2019 at 04:57:57 UTC, Me wrote: On Thursday, 3 January 2019 at 00:23:50 UTC, greatsam4sure wrote: [...] Windows 10 --- got it VibeD project --- got

Re: Vibe.d throw link error

2019-01-04 Thread greatsam4sure via Digitalmars-d-learn
On Thursday, 3 January 2019 at 04:57:57 UTC, Me wrote: On Thursday, 3 January 2019 at 00:23:50 UTC, greatsam4sure wrote: On Wednesday, 2 January 2019 at 21:46:57 UTC, bauss wrote: Error: linker exit with status 1 Dmd failed with exit code 1 This is all the compiler emit Windows 10 ---

Re: Vibe.d throw link error

2019-01-02 Thread greatsam4sure via Digitalmars-d-learn
On Wednesday, 2 January 2019 at 21:46:57 UTC, bauss wrote: Error: linker exit with status 1 Dmd failed with exit code 1 This is all the compiler emit

Vibe.d throw link error

2019-01-02 Thread greatsam4sure via Digitalmars-d-learn
I am using windows 10. I could not run vibe project. It just give me the error: Error: linker exit with status 1 Dmd failed with exit code 1 I have use different dmd from 0.080 till 0.083. The same error. What is the possible cause and solution to this error?

Vibe.d throw link error

2019-01-02 Thread greatsam4sure via Digitalmars-d-learn
I am using windows 10. I could not run vibe project. It just give me the error: Error: linker exit with status 1 Dmd failed with exit code 1 I have use different dmd from 0.080 till 0.083. The same error. What is the possible cause and solution to this error?

Re: serve-d break on every update of vs code

2018-11-30 Thread greatsam4sure via Digitalmars-d-learn
On Friday, 30 November 2018 at 23:02:13 UTC, WebFreak001 wrote: On Friday, 30 November 2018 at 22:37:02 UTC, greatsam4sure wrote: On Friday, 30 November 2018 at 16:24:35 UTC, Laurent Tréguier wrote: On Friday, 30 November 2018 at 13:04:37 UTC, greatsam4sure wrote: vs code update every time I

Re: serve-d break on every update of vs code

2018-11-30 Thread greatsam4sure via Digitalmars-d-learn
On Friday, 30 November 2018 at 16:24:35 UTC, Laurent Tréguier wrote: On Friday, 30 November 2018 at 13:04:37 UTC, greatsam4sure wrote: vs code update every time I am connected to internet. Each time I accept the update my code-d stops to show autocomplete. what is the best way to solve this

Re: serve-d break on every update of vs code

2018-11-30 Thread greatsam4sure via Digitalmars-d-learn
On Friday, 30 November 2018 at 14:38:14 UTC, WebFreak001 wrote: On Friday, 30 November 2018 at 13:04:37 UTC, greatsam4sure wrote: vs code update every time I am connected to internet. Each time I accept the update my code-d stops to show autocomplete. what is the best way to solve this

serve-d break on every update of vs code

2018-11-30 Thread greatsam4sure via Digitalmars-d-learn
vs code update every time I am connected to internet. Each time I accept the update my code-d stops to show autocomplete. what is the best way to solve this problem. Just updated today. These are the error report Installing into C:\Users\Greatsam\AppData\Roaming\code-d\bin git clone

Re: How to center dlangui Window on screen

2018-11-29 Thread greatsam4sure via Digitalmars-d-learn
On Thursday, 29 November 2018 at 05:54:37 UTC, bauss wrote: On Wednesday, 28 November 2018 at 23:07:50 UTC, greatsam4sure wrote: On Wednesday, 28 November 2018 at 17:23:21 UTC, Edgar Huckert wrote: On Wednesday, 28 November 2018 at 08:55:11 UTC, greatsam4sure wrote: [...] For a little bit

Re: How to center dlangui Window on screen

2018-11-28 Thread greatsam4sure via Digitalmars-d-learn
On Wednesday, 28 November 2018 at 17:23:21 UTC, Edgar Huckert wrote: On Wednesday, 28 November 2018 at 08:55:11 UTC, greatsam4sure wrote: I am learning Dlang and Dlangui. I encounter, a little problem on: how to center dlangui window on screen. How to set the window width and height outside

Re: How to center dlangui Window on screen

2018-11-28 Thread greatsam4sure via Digitalmars-d-learn
On Wednesday, 28 November 2018 at 17:23:21 UTC, Edgar Huckert wrote: On Wednesday, 28 November 2018 at 08:55:11 UTC, greatsam4sure wrote: I am learning Dlang and Dlangui. I encounter, a little problem on: how to center dlangui window on screen. How to set the window width and height outside

How to center dlangui on screen

2018-11-28 Thread greatsam4sure via Digitalmars-d-learn
I am learning Dlang and Dlangui. I encounter, a little problem on: how to center dlangui window on screen. How to set the window width and height outside the constructor How to maximize and minimize the window using code. How to set global font for the application. The font display is not

Vibe throw link error

2018-11-14 Thread greatsam4sure via Digitalmars-d-learn
Vibe.d 0.8.4 throw link error with dmd-2.08.0 and newer on windows 10. What is the what out. In dub package register, it was said that vibe 0.8.4 works with dmd 2.08.0 and old version but in my case it does not work looking forward for help

Re: Could not setup D extension on vs code

2018-11-14 Thread greatsam4sure via Digitalmars-d-learn
On Wednesday, 14 November 2018 at 19:28:44 UTC, WebFreak001 wrote: On Wednesday, 14 November 2018 at 13:20:31 UTC, greatsam4sure wrote: [...] Hi, thanks for the report, I tagged a new version of workspace-d which will fix this issue. Simply reload vscode and let it rebuild to fix. Issue

Could not setup D extension on vs code

2018-11-14 Thread greatsam4sure via Digitalmars-d-learn
What is the solution to this: Unresolvable dependencies to package libdparse: dfmt ~master depends on libdparse ~>0.10.7 libddoc 0.4.0 depends on libdparse ~>0.9.0 Failed to install serve-d (Error code 2) Where can i download libdparse 0.10.7 The full error file below. i am on windows 10

Re: How do I install a library?

2018-11-10 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 10 November 2018 at 20:04:21 UTC, aberba wrote: On Thursday, 8 November 2018 at 23:51:39 UTC, bachmeier wrote: On Thursday, 8 November 2018 at 23:43:38 UTC, Murilo wrote: It finally worked, but I can't just compile it normally, I have to use dub run, I wish it were something

Re: Prime number

2018-08-02 Thread Greatsam4sure via Digitalmars-d-learn
On Thursday, 2 August 2018 at 09:35:20 UTC, Cym13 wrote: On Thursday, 2 August 2018 at 08:30:05 UTC, Greatsam4sure wrote: I know D is very powerful from my little experience. What is the idiomatic way to get prime numbers say from 1-30 without using loops(outer and inner loop). Can map,

Prime number

2018-08-02 Thread Greatsam4sure via Digitalmars-d-learn
I know D is very powerful from my little experience. What is the idiomatic way to get prime numbers say from 1-30 without using loops(outer and inner loop). Can map, filter, fold etc in algorithm be use. Pls show some code with chain call. I can easily achieve even numberd and odd numbers

Gui framework

2018-08-01 Thread Greatsam4sure via Digitalmars-d-learn
Please help me recommend a gui toolkit for slang, the has the following * work well on windows *look native on windows *support css styling like adobe flex spark toolkit and javafx *support custom chrome. That is easily customizable. *Integrate well with dlang. *Has fairly OK tutorials I

Gui framework

2018-08-01 Thread Greatsam4sure via Digitalmars-d-learn
Please help me recommend a gui toolkit for dlang, that has the following * work well on windows *look native on windows *support css styling like adobe flex spark toolkit and javafx *Support theming and skinning *support custom chrome. That is easily customizable. *Integrate well with dlang.

Gui framework

2018-08-01 Thread Greatsam4sure via Digitalmars-d-learn
Please help me recommend a gui toolkit for dlang, the has the following * work well on windows *look native on windows *support css styling like adobe flex spark toolkit and javafx *support custom chrome. That is easily customizable. *Integrate well with dlang. *Has fairly OK tutorials I

Re: Template variable not reach at compile

2018-07-21 Thread Greatsam4sure via Digitalmars-d-learn
On Saturday, 21 July 2018 at 13:13:11 UTC, Mike Parker wrote: On Saturday, 21 July 2018 at 12:17:54 UTC, Greatsam4sure wrote: Sorry for the typo. This is the problem auto arithmetic(T, V, U)(T a, V b, U op){ return mixin("a"~op~"b"); } //call like this arithmetic(1.5,2.5,"+");

Template variable not reach at compile

2018-07-21 Thread Greatsam4sure via Digitalmars-d-learn
Sorry for the typo. This is the problem auto arithmetic(T, V, U)(T a, V b, U op){ return mixin("a"~op~"b"); } //call like this arithmetic(1.5,2.5,"+"); Compiler says the variable op is not reach at compile time. So how can the varible a and b be reach at compile time and op is not

Template variable not reach at compile

2018-07-21 Thread Greatsam4sure via Digitalmars-d-learn
auto arithmetic(T, V, U)(T a, V b, U op){ return mixin("a"~op~"b"); } //call like this arithmetic(1.5,2.5,"op"); Compiler says the variable op is not reach at compile time. So how can the varible a and b be reach at compile time and op is not reach. I will appreciate any help. I have

Re: how to define infix function

2018-06-03 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 2 June 2018 at 22:09:49 UTC, Neia Neutuladh wrote: On Saturday, 2 June 2018 at 21:44:39 UTC, greatsam4sure wrote: [...] This is a horrible abuse of D's operator overloading discovered by FeepingCreature in the distant past. You have to delimit your custom infix operator with

Re: how to define infix function

2018-06-02 Thread greatsam4sure via Digitalmars-d-learn
On Saturday, 2 June 2018 at 22:01:02 UTC, Ali Çehreli wrote: On 06/02/2018 02:44 PM, greatsam4sure wrote: > is it possible to define infix function in D > > 3.min(5)// 3: where min is a function, works in D > 3 min 5 // does not work. This is called universal function call syntax (UFCS) in D.

how to define infix function

2018-06-02 Thread greatsam4sure via Digitalmars-d-learn
Sorry for the typo is it possible to define infix function in D 3.min(5)// 3: where min is a function, works in D 3 min 5 // does not work. thanks in advance

how to definte infinix function

2018-06-02 Thread greatsam4sure via Digitalmars-d-learn
is it possible to definite infix function in D 3.min(5)// 3 where min is a function works in D 3 min 5 // does not work. thanks in advance

how to set up libuid on wondows 10

2018-04-04 Thread greatsam4sure via Digitalmars-d-learn
I am have problem setting up libuid on windows 10. These are the errors thus far: C:\Users\Greatsam\Desktop\HelloApp>dub Fetching libuid 0.0.7 (getting selected version)... Performing "debug" build using dmd for x86. libuid 0.0.7: building configuration "lib"... helloapp ~master: building

can't build libuid examples

2018-03-06 Thread greatsam4sure via Digitalmars-d-learn
Try to build libuid examples get the following error. dub build, build successfully on the root folder. I will appreciate any help. Just try to build a gui app using dlang. OPTLINK (R) for Win32 Release 8.00.17 Copyright (C) Digital Mars 1989-2013 All rights reserved.

Re: can't run libuid examples

2017-12-24 Thread greatsam4sure via Digitalmars-d-learn
On Friday, 22 December 2017 at 04:41:09 UTC, bauss wrote: On Thursday, 21 December 2017 at 18:41:28 UTC, greatsam4sure wrote: I am having problem with running the examples of libuid on Windows and how to use libuid on a project without errors. I am using dmd version 2.076 Okay, but how are

can't run libuid examples

2017-12-21 Thread greatsam4sure via Digitalmars-d-learn
I am having problem with running the examples of libuid on Windows and how to use libuid on a project without errors. I am using dmd version 2.076

Re: floating point value rounded to 6digits

2017-09-19 Thread greatsam4sure via Digitalmars-d-learn
On Tuesday, 19 September 2017 at 21:52:57 UTC, Ivan Kazmenko wrote: On Tuesday, 19 September 2017 at 20:47:02 UTC, greatsam4sure wrote: double value = 20.89766554373733; writeln(value); //Output =20.8977 How do I output the whole value without using writfln,write or format. How do I change

floating point value rounded to 6digits

2017-09-19 Thread greatsam4sure via Digitalmars-d-learn
double value = 20.89766554373733; writeln(value); //Output =20.8977 How do I output the whole value without using writfln,write or format. How do I change this default

  1   2   >