Re: Calling function within class.

2020-11-19 Thread Vino via Digitalmars-d-learn
On Wednesday, 18 November 2020 at 21:33:58 UTC, Ali Çehreli wrote: On 11/18/20 7:01 AM, Vino wrote: >Request your help on how to call a function(listFile) from another > function(getFilelist) within the same class(GetDirlist), below is an > example code. That code looks unnecessarily

Re: Calling function within class.

2020-11-18 Thread Vino via Digitalmars-d-learn
On Wednesday, 18 November 2020 at 18:24:59 UTC, frame wrote: On Wednesday, 18 November 2020 at 17:55:36 UTC, Vino wrote: I made the changes as below , still not working auto fltask = task!listFile(st); to auto fltask = task!({listFile(st);})(this).executeInNewThread(); The syntax is

Re: Calling function within class.

2020-11-18 Thread Vino via Digitalmars-d-learn
On Wednesday, 18 November 2020 at 16:53:44 UTC, frame wrote: On Wednesday, 18 November 2020 at 15:01:53 UTC, Vino wrote: Hi All, Request your help on how to call a function(listFile) from another function(getFilelist) within the same class(GetDirlist), below is an example code. I think

Re: Executing AWS commands

2020-11-18 Thread Vino via Digitalmars-d-learn
On Tuesday, 17 November 2020 at 21:08:21 UTC, Paul Backus wrote: On Tuesday, 17 November 2020 at 19:07:42 UTC, Vino wrote: auto pid = execute(["/usr/bin/aws ec2 describe-images --filters 'Name=state,Values=available' --query 'Images[*].[ImageId]'"]); [...] auto pid = execute(["/usr/bin/aws

Calling function within class.

2020-11-18 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on how to call a function(listFile) from another function(getFilelist) within the same class(GetDirlist), below is an example code. Code: class GetDirlist { @system private auto listFile(immutable string st) { auto fl = execute(["ls","-l"]); enforce(fl.status

Executing AWS commands

2020-11-17 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on how to execute aws commands, below is an example code, and this code is not working, tried several options nothing seem to be working. Code: import std.process: environment, execute; import std.stdio: writeln; void main() { environment["AWS_DEFAULT_REGION"] =

Re: Request our suggestio: better way to insert data from Array!string[string] into a database table

2020-11-16 Thread Vino via Digitalmars-d-learn
On Monday, 16 November 2020 at 18:30:01 UTC, Max Haughton wrote: On Monday, 16 November 2020 at 17:44:08 UTC, Vino wrote: Hi All, Request your suggestion, we have a program which call's an api, the output of the api is parsed using json parser and the result is stored in an

Request our suggestio: better way to insert data from Array!string[string] into a database table

2020-11-16 Thread Vino via Digitalmars-d-learn
Hi All, Request your suggestion, we have a program which call's an api, the output of the api is parsed using json parser and the result is stored in an array(Array!string[string] data), then these stored result are inserted into MySQL table, for inserting the data into the table we use

Re: canFind all elements in a array.

2020-11-10 Thread Vino via Digitalmars-d-learn
On Tuesday, 10 November 2020 at 09:47:06 UTC, sarn wrote: On Tuesday, 10 November 2020 at 08:19:15 UTC, Vino wrote: [...] This is iterating over all the elements in data2 and outputting some of them, so the output will never be longer than data2. [...] Hi Sarn, Thank you very much

canFind all elements in a array.

2020-11-10 Thread Vino via Digitalmars-d-learn
Hi All, Request your help, the below code output's as below hence request your help on hot to get the output as below(Required Output). Output DEV Cluster QAS Cluster Required Output DEV Cluster DEV Cluster DEV Cluster QAS Cluster Code import std.container.array; import std.stdio:

Re: std.net.curl : Performance

2020-11-09 Thread Vino via Digitalmars-d-learn
On Monday, 9 November 2020 at 20:57:33 UTC, Daniel Kozak wrote: On Mon, Nov 9, 2020 at 9:50 PM rinfz via Digitalmars-d-learn < digitalmars-d-learn@puremagic.com> wrote: On Monday, 9 November 2020 at 20:40:59 UTC, rinfz wrote: > On Monday, 9 November 2020 at 19:55:07 UTC, Vino wrote: >> ... >

std.net.curl : Performance

2020-11-09 Thread Vino via Digitalmars-d-learn
Hi All, Request your help to on how to improve the performance of the below code. import std.conv: to; import std.net.curl : get, HTTP, CurlOption; import std.parallelism: parallel; import std.range: chain, only; import std.typecons: Tuple, tuple; void main () { Array!(Tuple!(int,string))

Re: Extract sub string from a string

2020-11-09 Thread Vino via Digitalmars-d-learn
On Monday, 9 November 2020 at 18:55:44 UTC, Ali Çehreli wrote: On 11/9/20 9:53 AM, k2aj wrote: > string text = "welcome2worldinfo"; > string hg = toUpper(text[0..7] ~ "-" ~ text[7..8] ~ "-" ~ text[8..13]); If those concatenations with the ~ operators prove to be costly at runtime, the

Extract sub string from a string

2020-11-09 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on how to extract sub string from a string, below is an example in PHP, need your help on how to do the same in D. $text = "welcome2worldinfo"; $hg = strtoupper(substr($text , 0, 7).'-'.substr($text, 7, 1).'-'.substr($text, 8, 5)); print_r($hg) \\ Output :

Re: asdf get first value from a json string.

2020-11-09 Thread Vino via Digitalmars-d-learn
On Sunday, 8 November 2020 at 19:31:50 UTC, frame wrote: On Sunday, 8 November 2020 at 19:29:39 UTC, frame wrote: On Sunday, 8 November 2020 at 16:30:40 UTC, Vino wrote: Request your help on how to get the first value of "type" from the below json, the expected output required is as below,

asdf get first value from a json string.

2020-11-08 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on how to get the first value of "type" from the below json, the expected output required is as below, {"characteristicValue":"TT,t...@dev.com,DEV"} output1: TT output2: t...@dev.com Code: /+dub.sdl: dependency "asdf" version="~>0.6.6" +/ import std; import

Re: Comparison : mysql-native + asdf and hunt-database + asdf

2020-11-07 Thread Vino via Digitalmars-d-learn
On Saturday, 7 November 2020 at 15:26:48 UTC, frame wrote: On Saturday, 7 November 2020 at 14:57:39 UTC, Vino wrote: After further analysis we suspect that the issue is at the package std.net.curl the flow of the program is as below Establishing a new connection may vary in duration of

Re: Comparison : mysql-native + asdf and hunt-database + asdf

2020-11-07 Thread Vino via Digitalmars-d-learn
On Saturday, 7 November 2020 at 14:38:35 UTC, Vino wrote: On Saturday, 7 November 2020 at 14:16:46 UTC, Vino wrote: On Saturday, 7 November 2020 at 12:29:46 UTC, Andre Pany wrote: On Friday, 6 November 2020 at 04:58:05 UTC, Vino wrote: [...] While doing performance measurements you should

Re: Comparison : mysql-native + asdf and hunt-database + asdf

2020-11-07 Thread Vino via Digitalmars-d-learn
On Saturday, 7 November 2020 at 14:16:46 UTC, Vino wrote: On Saturday, 7 November 2020 at 12:29:46 UTC, Andre Pany wrote: On Friday, 6 November 2020 at 04:58:05 UTC, Vino wrote: [...] While doing performance measurements you should do each test multiple time (at least 5 times). There could

Re: Comparison : mysql-native + asdf and hunt-database + asdf

2020-11-07 Thread Vino via Digitalmars-d-learn
On Saturday, 7 November 2020 at 12:29:46 UTC, Andre Pany wrote: On Friday, 6 November 2020 at 04:58:05 UTC, Vino wrote: [...] While doing performance measurements you should do each test multiple time (at least 5 times). There could be for example an effect that executing a db query the

Re: Vibe.d build on LDC error

2020-11-06 Thread Vino via Digitalmars-d-learn
On Friday, 6 November 2020 at 10:30:03 UTC, Mathias LANG wrote: On Friday, 6 November 2020 at 05:52:56 UTC, Vino wrote: [...] Which Linux distribution ? Which version of Vibe.d ? A recent enough Vibe.d should detect OpenSSL based on 1) pkg-config 2) the openssl binary. Make sure you have the

Vibe.d build on LDC error

2020-11-05 Thread Vino via Digitalmars-d-learn
Hi All, When we try to build vide.d using ldc (dub build) we are getting the below error, openssl is already been installed (OpenSSL 1.0.2j-fips 26 Sep 2016), hence request your help on the same. openssl.d:84: error: undefined reference to 'OPENSSL_init_ssl' openssl.d:121: error:

Comparison : mysql-native + asdf and hunt-database + asdf

2020-11-05 Thread Vino via Digitalmars-d-learn
Hi All, We recently tested the below components and the test results are as below, even though hunt-database is faster than mysql-native it is hard to use this package as it lacks on documentation, non of the example provided in the documentation works, one has to go through the code and

Re: Hunt database

2020-11-03 Thread Vino via Digitalmars-d-learn
On Tuesday, 3 November 2020 at 18:14:33 UTC, Andre Pany wrote: On Tuesday, 3 November 2020 at 14:05:18 UTC, Vino wrote: Hi All, Currently testing Hunt database, and facing an issue as below, hence request your help File : GetConnections.d ### module

Re: Hunt database

2020-11-03 Thread Vino via Digitalmars-d-learn
On Tuesday, 3 November 2020 at 14:47:01 UTC, Imperatorn wrote: On Tuesday, 3 November 2020 at 14:05:18 UTC, Vino wrote: Hi All, Currently testing Hunt database, and facing an issue as below, hence request your help [...] What datatype is Seq in your settings table? Hi, The filed Seq

Hunt database

2020-11-03 Thread Vino via Digitalmars-d-learn
Hi All, Currently testing Hunt database, and facing an issue as below, hence request your help File : GetConnections.d ### module common.GetConnections; import hunt.database; class Connections { public Database conn; this() { conn = new

Removind duplicates for JSON string

2020-11-01 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on how to remove duplicates in JSON. Code: import asdf; import std.algorithm : map, filter, uniq; import std.container.array; import std.stdio : writeln; import std.typecons : Tuple, tuple; import std.array; void main() { string apidata = `{ "items": [ {

Re: merging container arrays

2020-10-31 Thread Vino via Digitalmars-d-learn
On Saturday, 31 October 2020 at 15:16:22 UTC, Vino wrote: Hi All, Request your help on the below code, the requirement is that result's are stored in one single container. Code: import asdf; import std.algorithm: map; import std.container.array; import std.stdio: writeln; import

merging container arrays

2020-10-31 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on the below code, the requirement is that result's are stored in one single container. Code: import asdf; import std.algorithm: map; import std.container.array; import std.stdio: writeln; import std.typecons: Tuple, tuple; import std.range: lockstep; auto api1()

Re: Json output to container

2020-10-31 Thread Vino via Digitalmars-d-learn
On Friday, 30 October 2020 at 19:33:43 UTC, Paul Backus wrote: On Friday, 30 October 2020 at 19:07:20 UTC, Vino wrote: [...] Here's a working version of the code from your original post: import asdf : parseJson; import std.algorithm; import std.container.array; import std.stdio : writeln;

Re: Json output to container

2020-10-30 Thread Vino via Digitalmars-d-learn
On Friday, 30 October 2020 at 19:07:20 UTC, Vino wrote: On Friday, 30 October 2020 at 18:41:35 UTC, Paul Backus wrote: On Friday, 30 October 2020 at 10:23:22 UTC, Vino wrote: Hi, Request your help on the below code [...] .filter!(a => a.(["items"].byElement)) What exactly

Re: Json output to container

2020-10-30 Thread Vino via Digitalmars-d-learn
On Friday, 30 October 2020 at 18:41:35 UTC, Paul Backus wrote: On Friday, 30 October 2020 at 10:23:22 UTC, Vino wrote: Hi, Request your help on the below code [...] .filter!(a => a.(["items"].byElement)) What exactly are you trying to accomplish with this `a.(stuff)`

Re: Json output to container

2020-10-30 Thread Vino via Digitalmars-d-learn
On Friday, 30 October 2020 at 17:56:22 UTC, Andre Pany wrote: On Friday, 30 October 2020 at 10:23:22 UTC, Vino wrote: Hi, Request your help on the below code Code: import asdf: parseJson; import std.algorithm; import std.container.array; import std.stdio: writeln; import std.typecons:

Json output to container

2020-10-30 Thread Vino via Digitalmars-d-learn
Hi, Request your help on the below code Code: import asdf: parseJson; import std.algorithm; import std.container.array; import std.stdio: writeln; import std.typecons: Tuple, tuple; void main() { string apidata1 = `{"items": [ {"name":"T01","hostname":"test01","pool":"Development"},

Associative array using std.container.array

2020-10-28 Thread Vino via Digitalmars-d-learn
Hi All, Is it possible to create an associative array using std.container.array, if possible can you please provide me an example nor send me some link which has this information. From, Vino.B

asdf: filter value and print the next value

2020-10-28 Thread Vino via Digitalmars-d-learn
Hi All, Request your help in the below code, the logic is that fetch the json data(Pool) from apidata1 and use that and search for "pool" in sapidata2 and print the matched(pool) type from apidata2. Code: import datacollector.GetLamaAssignment; import std.stdio: writeln; import asdf:

Re: Foreach output into a multi dimensional associative array.

2020-10-28 Thread Vino via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 08:00:55 UTC, Imperatorn wrote: On Monday, 26 October 2020 at 19:05:04 UTC, Vino wrote: [...] Some comments: 1. You're missing a comma (,) after the first item in your apidata 2. You're creating a string[int][string] instead of string[][string] (your

Re: mir.ndslice : multi dimensional associative array - Example/Docs

2020-10-28 Thread Vino via Digitalmars-d-learn
On Tuesday, 27 October 2020 at 02:50:55 UTC, 9il wrote: On Monday, 26 October 2020 at 14:31:00 UTC, Vino wrote: [...] No. ndslice provides rectangular arrays. An associative array (as it defined in D) can't be really 2D, instead, it is an AA of AAs like in your example. A real 2D analog

Foreach output into a multi dimensional associative array.

2020-10-26 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on the below on how to store the output to a multi dimensional associative array. Code: import std.stdio: writeln; import asdf: parseJson; import std.conv: to; void main() { string[int][string] aa; string apidata = `{"items": [

mir.ndslice : multi dimensional associative array - Example/Docs

2020-10-26 Thread Vino via Digitalmars-d-learn
Hi All, Is it possible to create a multi dimensional associative array using mir.ndslice, if yes, (1): request you to point me to some example / docs (2): below is an example multi dimensional associative array using the core d module, and how can we to implement the same

Re: Help on asdf json module

2020-10-26 Thread Vino via Digitalmars-d-learn
On Monday, 26 October 2020 at 09:43:44 UTC, Vino wrote: On Sunday, 25 October 2020 at 08:22:06 UTC, 9il wrote: [...] Hi All, Thank you for your help, and now need your suggestion as the below code is working and it also prints an additional value which is not expected, so request your

Re: Help on asdf json module

2020-10-26 Thread Vino via Digitalmars-d-learn
On Sunday, 25 October 2020 at 08:22:06 UTC, 9il wrote: On Sunday, 25 October 2020 at 06:05:27 UTC, Vino wrote: Hi All, Currently we are testing various json module such as "std.json, std_data_json, vibe.data.json and asdf", the below code works perfectely while use "std_data_json or

Help on asdf json module

2020-10-25 Thread Vino via Digitalmars-d-learn
Hi All, Currently we are testing various json module such as "std.json, std_data_json, vibe.data.json and asdf", the below code works perfectely while use "std_data_json or vibe.data.json" but not working as expected when we use "asdf" and throwing the below error, hence request your

Re: mysql-native Help required

2020-10-25 Thread Vino via Digitalmars-d-learn
On Friday, 23 October 2020 at 20:28:40 UTC, aberba wrote: On Thursday, 22 October 2020 at 18:43:40 UTC, Steven Schveighoffer wrote: [...] Was about to say that. Part of why I think some people hate OOP...due to misuse. All my MySQL projects have this getConnection() function. Hi All,

Re: mysql-native Help required

2020-10-22 Thread Vino via Digitalmars-d-learn
On Thursday, 22 October 2020 at 14:08:30 UTC, Steven Schveighoffer wrote: On 10/22/20 7:04 AM, Vino wrote: Hi All,   Request your help on the below code as it is not working as expected. GetConnections.d module common.GetConnections; import mysql; class Connections {   private

mysql-native Help required

2020-10-22 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on the below code as it is not working as expected. GetConnections.d module common.GetConnections; import mysql; class Connections { private Connection conn; auto constr = "host=localhost;port=3910;user=user;pwd=password#;db=testdb"; this.conn = new

Re: std.net.curl get json_encode

2020-10-11 Thread Vino via Digitalmars-d-learn
On Friday, 9 October 2020 at 17:50:16 UTC, Andre Pany wrote: On Friday, 9 October 2020 at 05:56:05 UTC, Vino wrote: On Friday, 9 October 2020 at 05:30:34 UTC, ikod wrote: On Friday, 9 October 2020 at 01:45:37 UTC, Vino wrote: On Friday, 2 October 2020 at 23:20:48 UTC, Imperatorn wrote: On

Re: std.net.curl get json_encode

2020-10-09 Thread Vino via Digitalmars-d-learn
On Friday, 9 October 2020 at 05:30:34 UTC, ikod wrote: On Friday, 9 October 2020 at 01:45:37 UTC, Vino wrote: On Friday, 2 October 2020 at 23:20:48 UTC, Imperatorn wrote: On Friday, 2 October 2020 at 21:12:09 UTC, Vino wrote: Hi All, ... auto content = https.perform(); https.shutdown;

Re: std.net.curl get json_encode

2020-10-08 Thread Vino via Digitalmars-d-learn
On Friday, 2 October 2020 at 23:20:48 UTC, Imperatorn wrote: On Friday, 2 October 2020 at 21:12:09 UTC, Vino wrote: Hi All, Request your help, the below code is working but we need the output as a json array, in PHP we have json_encode(content), so how to do the same in D, the output is

std.net.curl get json_encode

2020-10-02 Thread Vino via Digitalmars-d-learn
Hi All, Request your help, the below code is working but we need the output as a json array, in PHP we have json_encode(content), so how to do the same in D, the output is as below, as we need to store this output into database table which contains columns' (Id, Hostname,

Re: std.net.curl.CurlException Couldn't resolve host name on handle

2020-03-13 Thread Vino via Digitalmars-d-learn
On Saturday, 14 March 2020 at 04:24:20 UTC, Vino wrote: On Friday, 13 March 2020 at 18:10:51 UTC, Vino wrote: Hi All, Request your help, the below code is fetching the required data, after fetching the data at the end it throws the below errors , hence request your help on how to handle

Re: std.net.curl.CurlException Couldn't resolve host name on handle

2020-03-13 Thread Vino via Digitalmars-d-learn
On Friday, 13 March 2020 at 18:10:51 UTC, Vino wrote: Hi All, Request your help, the below code is fetching the required data, after fetching the data at the end it throws the below errors , hence request your help on how to handle this issue. Code: import std.net.curl, std.stdio,

std.net.curl.CurlException Couldn't resolve host name on handle

2020-03-13 Thread Vino via Digitalmars-d-learn
Hi All, Request your help, the below code is fetching the required data, after fetching the data at the end it throws the below errors , hence request your help on how to handle this issue. Code: import std.net.curl, std.stdio, std.conv: to; void main () { auto http = HTTP();

Re: PHP to D Conversion

2019-10-21 Thread Vino via Digitalmars-d-learn
On Saturday, 19 October 2019 at 20:40:36 UTC, Boris Carvajal wrote: On Saturday, 19 October 2019 at 19:08:45 UTC, Vino wrote: On Friday, 18 October 2019 at 14:56:05 UTC, Andre Pany wrote: On Friday, 18 October 2019 at 09:21:46 UTC, Vino wrote: On Friday, 18 October 2019 at 09:17:24 UTC, Vino

Re: PHP to D Conversion

2019-10-19 Thread Vino via Digitalmars-d-learn
On Friday, 18 October 2019 at 14:56:05 UTC, Andre Pany wrote: On Friday, 18 October 2019 at 09:21:46 UTC, Vino wrote: On Friday, 18 October 2019 at 09:17:24 UTC, Vino wrote: [...] And now getting the error : Program exited with code -1073741819 Hi, Maybe port 8080 is blocked, because

Re: PHP to D Conversion

2019-10-18 Thread Vino via Digitalmars-d-learn
On Friday, 18 October 2019 at 09:17:24 UTC, Vino wrote: On Friday, 18 October 2019 at 09:11:18 UTC, Vino wrote: [...] App.d import vibe.vibe; import avm.test; void main() { auto settings = new HTTPServerSettings; settings.port = 8080; settings.bindAddresses =

Re: PHP to D Conversion

2019-10-18 Thread Vino via Digitalmars-d-learn
On Friday, 18 October 2019 at 09:11:18 UTC, Vino wrote: On Friday, 18 October 2019 at 08:54:40 UTC, Jacob Carlborg wrote: On Friday, 18 October 2019 at 06:22:33 UTC, Vino wrote: [...] The instance variable in the D code, `conn`, doesn't have a type. I guess the type should be `Connection`.

Re: PHP to D Conversion

2019-10-18 Thread Vino via Digitalmars-d-learn
On Friday, 18 October 2019 at 08:54:40 UTC, Jacob Carlborg wrote: On Friday, 18 October 2019 at 06:22:33 UTC, Vino wrote: [...] The instance variable in the D code, `conn`, doesn't have a type. I guess the type should be `Connection`. In the D version of `avmconnect` you're declaring a

Re: Vibe.d Error

2019-10-18 Thread Vino via Digitalmars-d-learn
On Thursday, 17 October 2019 at 19:02:14 UTC, Vino wrote: On Thursday, 17 October 2019 at 18:12:54 UTC, Andre Pany wrote: On Thursday, 17 October 2019 at 10:58:20 UTC, Vino wrote: Hi All, We are planning to migrate our website form Mysql/PHP to Mysql/D using vibe.d , as part of the plan we

PHP to D Conversion

2019-10-18 Thread Vino via Digitalmars-d-learn
Hi All, Request your help in converting a PHP code to D equivalent code PHP Code: class avmtest { private $con; function __construct() { global $config; $this->con = new mysqli(test.srv.com:3910, testusr, #, test);

Re: Vibe/Mysql Testing

2019-10-18 Thread Vino via Digitalmars-d-learn
On Thursday, 17 October 2019 at 20:21:39 UTC, Andre Pany wrote: On Thursday, 17 October 2019 at 19:05:44 UTC, Vino wrote: [...] Hi, I assume you are using this mysql package http://code.dlang.org/packages/mysql-native. (If not please check wheter the package you are using is vibe-d

Vibe/Mysql Testing

2019-10-17 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on the below code and error Error: source\app.d(25,15): Error: none of the overloads of writeBody are callable using argument types (VariantN!20LU), candidates are Code: import vibe.vibe; import std.array : array; import mysql; import std.stdio; import std.range;

Re: Vibe.d Error

2019-10-17 Thread Vino via Digitalmars-d-learn
On Thursday, 17 October 2019 at 18:12:54 UTC, Andre Pany wrote: On Thursday, 17 October 2019 at 10:58:20 UTC, Vino wrote: Hi All, We are planning to migrate our website form Mysql/PHP to Mysql/D using vibe.d , as part of the plan we tried to install the vibe.d (vibe.d 0.8.6 release) and we

Vibe.d Error

2019-10-17 Thread Vino via Digitalmars-d-learn
Hi All, We are planning to migrate our website form Mysql/PHP to Mysql/D using vibe.d , as part of the plan we tried to install the vibe.d (vibe.d 0.8.6 release) and we are facing below issue, we have tried both the version of compiler (DMD 2.088.1 DMD Beta 2.089.0-beta.1) the issue is

Re: DUB mysql-native

2019-10-08 Thread Vino via Digitalmars-d-learn
On Tuesday, 8 October 2019 at 14:02:03 UTC, Vino wrote: On Tuesday, 8 October 2019 at 11:26:24 UTC, Daniel Kozak wrote: [...] Hi Daniel, As stated I have removed those line and ran the below command [...] Hi Daniel, Was able to resolve the dub test issue using the you tube video

Re: DUB mysql-native

2019-10-08 Thread Vino via Digitalmars-d-learn
On Tuesday, 8 October 2019 at 11:26:24 UTC, Daniel Kozak wrote: On Tue, Oct 8, 2019 at 1:15 PM Daniel Kozak wrote: ... It is known issue, you can not use mysql-native right now with anything else than libevent https://github.com/mysql-d/mysql-native/issues/199 Or you can just remove

DUB mysql-native

2019-10-08 Thread Vino via Digitalmars-d-learn
Hi All, Please correct me what is wrong as I am not able to build a project using dub getting the error "Could not resolve configuration for package hub". dub init HUB C:\Users\userp\Downloads\testhub>dub init HUB Package recipe format (sdl/json) [json]: Name [hub]: Description [A minimal D

Deleting a file with extsion *.FIFO in Windows

2018-05-24 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on how to delete a file which has the extension .fifo (.javast.fifo) in Windows. From, Vino.B

Re: Windows to Linux Porting - timeCreated and timeLastAccessed

2018-05-04 Thread Vino via Digitalmars-d-learn
On Friday, 4 May 2018 at 15:16:23 UTC, wjoe wrote: On Friday, 4 May 2018 at 14:24:36 UTC, Vino wrote: On Friday, 4 May 2018 at 14:02:24 UTC, Jonathan M Davis wrote: On Friday, May 04, 2018 13:17:36 Vino via Digitalmars-d-learn wrote: [...] Linux does not keep track of the creation time

Re: Windows to Linux Porting - timeCreated and timeLastAccessed

2018-05-04 Thread Vino via Digitalmars-d-learn
On Friday, 4 May 2018 at 14:02:24 UTC, Jonathan M Davis wrote: On Friday, May 04, 2018 13:17:36 Vino via Digitalmars-d-learn wrote: On Friday, 4 May 2018 at 12:38:07 UTC, Adam D. Ruppe wrote: > What are you actually trying to do with it? These functions > are probably the wholly wrong ap

Re: Windows to Linux Porting - timeCreated and timeLastAccessed

2018-05-04 Thread Vino via Digitalmars-d-learn
On Friday, 4 May 2018 at 12:38:07 UTC, Adam D. Ruppe wrote: What are you actually trying to do with it? These functions are probably the wholly wrong approach. Hi Adam, The existing program in Windows do few task's eg: Delete files older that certain days, and now we are trying to port to

Windows to Linux Porting - timeCreated and timeLastAccessed

2018-05-04 Thread Vino via Digitalmars-d-learn
Hi All, Request your help, I have a D program written on Windows platform and the program is working as expected, now i am trying to port the same program to Linux, my program use the function "timeCreated" from std.file for Windows hugely where as in Linux we do not have the same function

Re: Windows to Linux Porting

2018-05-04 Thread Vino via Digitalmars-d-learn
On Friday, 4 May 2018 at 09:25:28 UTC, Russel Winder wrote: On Fri, 2018-05-04 at 08:47 +, Vino via Digitalmars-d-learn wrote: […] Was able to resolve the issue, the issue was the letter "L" in version (Linux) where is should be version (linux). It would have helped if

Re: Windows to Linux Porting

2018-05-04 Thread Vino via Digitalmars-d-learn
On Friday, 4 May 2018 at 07:43:39 UTC, Russel Winder wrote: On Fri, 2018-05-04 at 03:30 +, Vino via Digitalmars-d-learn wrote: [...] `./nasconfig.txt` perhaps: Linux uses / (as does Windows in fact) for directory separator. [...] Hi Russel, Was able to resolve the issue

Windows to Linux Porting

2018-05-03 Thread Vino via Digitalmars-d-learn
Hi All, Request you help on the below code, the below code always state the file does not exist even if the file do exist. Code: import core.stdc.stdlib: exit; import std.stdio; import std.file; import std.path; auto osSwitch () { string ConfigFile; version (Windows) { ConfigFile =

Re: cannot find -lcurl in Linux

2018-05-03 Thread Vino via Digitalmars-d-learn
On Thursday, 3 May 2018 at 10:22:43 UTC, Vino wrote: On Thursday, 3 May 2018 at 10:19:55 UTC, Jonathan M Davis wrote: [...] Hi Jonathan, The below packages are already installed [...] Hi Jonathan, Installed the package libcurl-devel, that resolved the issue. Thank you very much.

Re: cannot find -lcurl in Linux

2018-05-03 Thread Vino via Digitalmars-d-learn
On Thursday, 3 May 2018 at 10:19:55 UTC, Jonathan M Davis wrote: On Thursday, May 03, 2018 10:10:05 Vino via Digitalmars-d-learn wrote: Hi All, Request your help , while compiling a d program in SUSE Linux i am getting the below error, the executable curl is present under the path /usr

cannot find -lcurl in Linux

2018-05-03 Thread Vino via Digitalmars-d-learn
Hi All, Request your help , while compiling a d program in SUSE Linux i am getting the below error, the executable curl is present under the path /usr/bin/ ask:/DScript # dmd -m64 -O -release -inline test.d /usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: cannot

Re: D in SUSE Enterprise Linux

2018-05-01 Thread Vino via Digitalmars-d-learn
On Tuesday, 1 May 2018 at 15:42:38 UTC, Jonathan M Davis wrote: On Tuesday, May 01, 2018 15:18:12 Vino via Digitalmars-d-learn wrote: On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote: > On 02/05/2018 2:56 AM, Vino wrote: >> [...] > > Does this work? > > $ dmd

Equivalent function of timeCreated for Linux

2018-05-01 Thread Vino via Digitalmars-d-learn
Hi All, Request your help, what is the equivalent function of timeCreated(Windows) for Linux. Or how do i get the file creation date and time in Linux using D. From, Vino.B

Re: D in SUSE Enterprise Linux

2018-05-01 Thread Vino via Digitalmars-d-learn
On Tuesday, 1 May 2018 at 15:04:43 UTC, rikki cattermole wrote: On 02/05/2018 2:56 AM, Vino wrote: Hi All,  Request your help, trying to execute the below program in SUSE Linux but there is no output Code #!/usr/bin/env rdmd import std.stdio; void main() { writeln("Test"); } DMD Version

D in SUSE Enterprise Linux

2018-05-01 Thread Vino via Digitalmars-d-learn
Hi All, Request your help, trying to execute the below program in SUSE Linux but there is no output Code #!/usr/bin/env rdmd import std.stdio; void main() { writeln("Test"); } DMD Version : DMD64 D Compiler v2.079.1 Package installed : dmd-2.079.1-0.openSUSE.x86_64.rpm Execution 1 : rdmd

Advice on : rmdirRecurse and setAttributes in Windows

2018-04-21 Thread Vino via Digitalmars-d-learn
Hi All, The function rmdirRecurse does not work in Windows if the file has the READ ONLY permission, so to over come this issue, i have written the below function to set the permission on file and folder using the function "setAttributes" , so can any one advice me whether the below code

Re: SMTP Mail

2018-04-12 Thread Vino via Digitalmars-d-learn
On Tuesday, 10 April 2018 at 15:18:19 UTC, Adam D. Ruppe wrote: On Tuesday, 10 April 2018 at 15:10:44 UTC, Vino wrote: The variable "to" is of type string[] but we need it as Array!string The variable "Subject" but we need it as Array!string. You'll have to convert them yourself if that is a

Re: SMTP Mail

2018-04-10 Thread Vino via Digitalmars-d-learn
On Tuesday, 10 April 2018 at 13:51:02 UTC, Adam D. Ruppe wrote: On Tuesday, 10 April 2018 at 11:09:56 UTC, Vino wrote: Now the program works, but the attachment does not work as expected, message.addAttachment("text/plain", "C:\\Temp\\Test\Test1.txt", "Test"); What did you expect that

Re: SMTP Mail

2018-04-10 Thread Vino via Digitalmars-d-learn
On Monday, 9 April 2018 at 19:19:53 UTC, Adam D. Ruppe wrote: On Monday, 9 April 2018 at 15:38:55 UTC, Vino.B wrote: Thank you very much, I copied your folder arsd under the phobes folder in c:\D\... and the program was placed on my desktop and tried to execute it from the desktop via rdmd.

Re: SMTP Mail

2018-04-09 Thread Vino via Digitalmars-d-learn
On Sunday, 8 April 2018 at 15:45:48 UTC, Vino wrote: On Friday, 25 August 2017 at 02:13:42 UTC, Adam D. Ruppe wrote: [...] Hi Adam, I am trying your email.d programming, and i am getting the below errors, can you please help me, i just used these programs (characterencodings.d, color.d,

Re: SMTP Mail

2018-04-08 Thread Vino via Digitalmars-d-learn
On Friday, 25 August 2017 at 02:13:42 UTC, Adam D. Ruppe wrote: On Tuesday, 22 August 2017 at 12:52:24 UTC, Vino.B wrote: Request your help on sending Mails, I am able to receive mails with empty body the line "smtp.message ="Example Message" doesn't seem to be working and also please let me

Re: std.datetime.systime: days Deprecation message

2018-04-08 Thread Vino via Digitalmars-d-learn
On Saturday, 7 April 2018 at 18:12:00 UTC, Alex wrote: On Saturday, 7 April 2018 at 17:25:07 UTC, Vino wrote: Hi All, Request your help on the below Deprecation message. import std.datetime.systime: Clock, days, SysTime; void main (int AgeSize) { int AgeSize = 1 auto ct2 =

std.datetime.systime: days Deprecation message

2018-04-07 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on the below Deprecation message. import std.datetime.systime: Clock, days, SysTime; void main (int AgeSize) { int AgeSize = 1 auto ct2 = Clock.currTime(), st2 = ct2 + days(-AgeSize); } test.d(30): Deprecation: Symbol core.time.days is not visible from module

Calling Windows Command

2018-03-21 Thread Vino via Digitalmars-d-learn
Hi All, Request your help in calling the windows command to delete all file and folders recursively as the D function rmdirRecurse does not delete file in the permission of the file is readonly in windows 2008 R2 import std.process: execute; import std.array: empty; auto RemoveDir () (

Re: Thread Function does not executes

2018-03-08 Thread Vino via Digitalmars-d-learn
On Tuesday, 6 March 2018 at 09:01:55 UTC, Vino wrote: On Monday, 5 March 2018 at 13:50:28 UTC, Vino wrote: [...] Hi All, On further analysis, as to why the function deleteAgedDir is not getting executed, found that if this function finds a folder to be deleted then it should delete the

Re: Thread Function does not executes

2018-03-06 Thread Vino via Digitalmars-d-learn
On Monday, 5 March 2018 at 13:50:28 UTC, Vino wrote: Hi All, Request your help, I have 3 functions such as below, I am calling these function using another function ptManage which executes these function's in parallel as each of the below 3 function run's on 10 - 12 different file systems,

Thread Function does not executes

2018-03-05 Thread Vino via Digitalmars-d-learn
Hi All, Request your help, I have 3 functions such as below, I am calling these function using another function ptManage which executes these function's in parallel as each of the below 3 function run's on 10 - 12 different file systems, The issue is as below Issue: Most of the time the

Re: countUntil to print all the index of a given string.

2018-02-25 Thread Vino via Digitalmars-d-learn
On Sunday, 25 February 2018 at 03:41:27 UTC, Jonathan M Davis wrote: On Sunday, February 25, 2018 02:58:33 Seb via Digitalmars-d-learn wrote: [...] That will help eventually, but it requires a compiler flag, so it's really not going to help for code in general right now, and the fact that

Re: countUntil to print all the index of a given string.

2018-02-24 Thread Vino via Digitalmars-d-learn
On Tuesday, 20 February 2018 at 08:50:27 UTC, Jonathan M Davis wrote: On Tuesday, February 20, 2018 08:44:37 aberba via Digitalmars-d-learn wrote: On Sunday, 18 February 2018 at 15:23:14 UTC, Cym13 wrote: > On Sunday, 18 February 2018 at 14:48:59 UTC, Cym13 wrote: >> [...] > > Just thought of a

countUntil to print all the index of a given string.

2018-02-18 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on printing the all index of an array element , eg; the below code prints the index of the string "Test2" as [1], but the string "Test2" is present 2 times at index 1 and 4, so how do I print all the index of a given string. import std.stdio; import

Re: Disk space used and free size of a Network share folder in Windows

2018-02-16 Thread Vino via Digitalmars-d-learn
On Thursday, 15 February 2018 at 20:43:32 UTC, Johan Engelen wrote: On Wednesday, 14 February 2018 at 12:22:09 UTC, Vino wrote: Hi All, Request your help on how to get the disk space used and free size of a Network share folder in Windows, tried with getSize but it return 0; See:

Re: Disk space used and free size of a Network share folder in Windows

2018-02-14 Thread Vino via Digitalmars-d-learn
On Wednesday, 14 February 2018 at 12:29:13 UTC, rikki cattermole wrote: On 14/02/2018 12:22 PM, Vino wrote: Hi All,  Request your help on how to get the disk space used and free size of a Network share folder in Windows, tried with getSize but it return 0; eg: Share Name :\\server1\dir1$

Disk space used and free size of a Network share folder in Windows

2018-02-14 Thread Vino via Digitalmars-d-learn
Hi All, Request your help on how to get the disk space used and free size of a Network share folder in Windows, tried with getSize but it return 0; eg: Share Name :\\server1\dir1$ From, Vino.B

  1   2   3   >