Re: unique

2018-04-19 Thread Stefan_Salewski
You may try to use sets, hashsets or intsets instead of arrays/sequences. There was a related thread recently.

unique

2018-04-19 Thread spider910
I have a problem finding a solution for a problem (or perhaps i am looking the wrong direction). I want to check if a key is already set and if that is the case, overwrite it with the new value. Off course there is the possibility to walk through the whole sequence to see if a key exists, but

Re: How to change send timeout asyncftpclient

2018-04-19 Thread dom96
Okay, cool. Feel free to make a PR for this (it should be configurable and stored in AsyncFtpClient).

Re: How to change send timeout asyncftpclient

2018-04-19 Thread Seweryn
Yes, you can I modified **asyncftpclient.nim**. See _sendTimeout_ variable that count the seconds. The time out is hardcoded to 10s. proc doUpload(ftp: AsyncFtpClient, file: File, onProgressChanged: ProgressChangedProc) {.async.} = assert

Re: Is there a way to specify byte order when reading a binary file?

2018-04-19 Thread Araq
https://nim-lang.org/docs/endians.html

Is there a way to specify byte order when reading a binary file?

2018-04-19 Thread tahoma
Hello! I am working on a package to parse FCS files (data file from flow cytometry experiments) and got stuck when I got to parsing the data segment of a FCS file. import streams var s = newFileStream("a2006_O1T2pb05i_A1_A01.fcs", fmRead) # download this file here:

Re: How to add unique items to array?

2018-04-19 Thread jzakiya
Hey @dataman, thanks for info on `intsets` FYI, `intsets` has a problem compiling the `card|len` method on `0.17.2` but not on `0.18.0`. Also, while `intsets` indeed will take the correct number of set members, it's at least 3x slower than using `sets`, across the board. So for this case,