• Member Avatar
    Garidius

    Replied To a Post in Help to add a Progress bar to code with thread C#

    Hi ddanbe, thanks for your answer. I can the function inside start button like this await Task.Run(() => MyFunction(filename, cts.Token), cts.Token); But the processing is done in the function, so …
  • Member Avatar
    Garidius

    Created Help to add a Progress bar to code with thread C#

    I'm trying to add a progress bar to a working theaded program that uses a cancelation token too. The structure of the program is: I have a button "BeginButton" that …
  • Member Avatar
    Garidius

    Began Watching Help to add a Progress bar to code with thread C#

    I'm trying to add a progress bar to a working theaded program that uses a cancelation token too. The structure of the program is: I have a button "BeginButton" that …
  • Member Avatar
    Garidius

    Marked Solved Status for How to increase speed when sending output to file

    Hello to all, I'm trying to use the function below to print strings to a file. When I use Console.Write() or Console.WriteLine() the output file grows up 3MB or 4MB …
  • Member Avatar
    Garidius

    Replied To a Post in How to increase speed when sending output to file

    Hello cgeier, I only check how increases the output file in windows explorer in size field. One method makes it grows up in KB and the other in MB. Thanks …
  • Member Avatar
    Garidius

    Replied To a Post in How to increase speed when sending output to file

    Hi ddanbe, Thanks for answer. I've followed what you said and I increased the buffer size to 64KB, 128KB and nothing happens, the speed it seems to be the same, …
  • Member Avatar
    Garidius

    Created How to increase speed when sending output to file

    Hello to all, I'm trying to use the function below to print strings to a file. When I use Console.Write() or Console.WriteLine() the output file grows up 3MB or 4MB …
  • Member Avatar
    Garidius

    Began Watching How to increase speed when sending output to file

    Hello to all, I'm trying to use the function below to print strings to a file. When I use Console.Write() or Console.WriteLine() the output file grows up 3MB or 4MB …
  • Member Avatar
    Garidius

    Replied To a Post in Give a visual interface (GUI) to a console exe file

    Hello Suzie, Thanks for point me with C#, I've been learning and trying and yes, the PCRE regex worked fine. I'm researching to trying to get my goal. Thanks again. …
  • Member Avatar
    Garidius

    Replied To a Post in Give a visual interface (GUI) to a console exe file

    Hello Suzie, Many thanks for your suggestion. I think C and C++ for what I investigated, don't handle lookbehind, lookahead or PCRE compatible regex. I'll check about C# since you …
  • Member Avatar
    Garidius

    Replied To a Post in Give a visual interface (GUI) to a console exe file

    Hello Nathan, Thanks for your answer. The issue is the source code is in Ruby and in Ruby I cannot do it a GUI directly without use another 3rd party …
  • Member Avatar
    Garidius

    Replied To a Post in Give a visual interface (GUI) to a console exe file

    Hello Nathan, Thanks for your answer. I understand from your answer that would be better to make a windows with input boxes, buttons etc and one of those buttons associate …
  • Member Avatar
    Garidius

    Created Give a visual interface (GUI) to a console exe file

    Hello to all, I have a console executable file that I run from DOS console passing some options and an input file. I'd like to give to this exe file …
  • Member Avatar
    Garidius

    Began Watching Give a visual interface (GUI) to a console exe file

    Hello to all, I have a console executable file that I run from DOS console passing some options and an input file. I'd like to give to this exe file …
  • Member Avatar
    Garidius

    Replied To a Post in Read by chunks from binary with java

    Hello James, thanks for your good answer. I've added the code you shared and it works if the input is text file, but fails with the binary, confirming that scanner …
  • Member Avatar
    Garidius

    Replied To a Post in Read by chunks from binary with java

    Hello James, Actually all the content of the file is binary, but if the scanner is able to use delimiter such as the sequence 0xD20xA7 and return each token as …
  • Member Avatar
    Garidius

    Edited Read by chunks from binary with java

    Hello to all in forum, Maybe some java expert could help me. How can I read chunks from binary file each chunk at a time? The chunks are separated with …
  • Member Avatar
    Garidius

    Created Read by chunks from binary with java

    Hello to all in forum, Maybe some java expert could help me. How can I read chunks from binary file each chunk at a time? The chunks are separated with …
  • Member Avatar
    Garidius

    Began Watching Read by chunks from binary with java

    Hello to all in forum, Maybe some java expert could help me. How can I read chunks from binary file each chunk at a time? The chunks are separated with …
  • Member Avatar
    Garidius

    Replied To a Post in How to print 2 arrays of same size in parallel?

    Hello L7Sqr, The XML has elements with chil elements that happens only once, like Date, File name, Store Name, etc. But other child elements always could have one or more …
  • Member Avatar
    Garidius

    Replied To a Post in How to print 2 arrays of same size in parallel?

    Hello L7Sqr, Thanks for the nice explanation. I understand much better your code. Normally the compacted syntax trends to confuse me, but with your explanation I understood :). What I'm …
  • Member Avatar
    Garidius

    Replied To a Post in How to print 2 arrays of same size in parallel?

    Hello L7Sqr, I'm trying with code below, but I get error "Can't convert string into array (TypeError)" #!/usr/bin/env ruby require 'matrix' def ExtendedMatrix( *rows ) maxWid = rows.collect { |r| …
  • Member Avatar
    Garidius

    Replied To a Post in How to print 2 arrays of same size in parallel?

    Hello L7sqr, I've tried to modify your code, but I don't understand how operates the code you have shared nor collect and the *. I have this so far, I …
  • Member Avatar
    Garidius

    Replied To a Post in How to print 2 arrays of same size in parallel?

    Hello L7Sqr, Thanks for the example. This works for the trimming part, but how to add the trimmed elements and empty elements for smaller arrays? I mean, having this original …
  • Member Avatar
    Garidius

    Replied To a Post in How to print 2 arrays of same size in parallel?

    Hello L7Sqr, Thanks again for the help and time. Which method could wrap the matrix creation? Regards
  • Member Avatar
    Garidius

    Replied To a Post in How to print hash array elements in different line

    Hello L7Sqr, Thanks for answer. May you explain how it works your code. I undertand that "hash.keys.size" counts how many keys exist inside the hash (in this case 4) and …
  • Member Avatar
    Garidius

    Created How to print hash array elements in different line

    Hello to all, HAving a hash where its keys are associated with arrays like below: myHash = {"A"=>["HYU"], "B"=>["TU6"], "C"=>["11", "09","88","2"], "D"=>["01", "11"]} Each key represent one header and the …
  • Member Avatar
    Garidius

    Began Watching How to print hash array elements in different line

    Hello to all, HAving a hash where its keys are associated with arrays like below: myHash = {"A"=>["HYU"], "B"=>["TU6"], "C"=>["11", "09","88","2"], "D"=>["01", "11"]} Each key represent one header and the …
  • Member Avatar
    Garidius

    Replied To a Post in How to print 2 arrays of same size in parallel?

    Hello L7sqr, Thanks for your contribution. Always is good to know more ways to do something. I've been trying your code and it works just fine. Doing manually I see …
  • Member Avatar
    Garidius

    Replied To a Post in How to print 2 arrays of same size in parallel?

    Thanks so much sepp2k. I'll check zip documentation to make some tests. Best regards

The End.