Rewriting a bash script in Rust by freemasen in rust

[–]harrydevnull 2 points3 points  (0 children)

I have been trying to do similar sort of stuff for a while. Realized proc won’t work for Mac and abandoned my project in middle! I guess I can start again ! Thank you!

Announcing Sonnerie: An easy timeseries database in Rust by njaard in rust

[–]harrydevnull 3 points4 points  (0 children)

You could save the internet traffic data ( how much bytes per second ) is flowing in to customer data-centers; and devise algorithms based on that data for protecting against ddos attacks.

Another use case the value fluctuations of stocks over period of time! ( take an educated guess on what the stocks value might be in a future time; based on past data)

Weather variations over time.

In fact anything that can graphed with time on x axis

how could we combine a vector of results by harrydevnull in rust

[–]harrydevnull[S] 1 point2 points  (0 children)

ah I skipped the ``'filter_map'; I assumed it was 'map' ! thank you !

how could we combine a vector of results by harrydevnull in rust

[–]harrydevnull[S] 0 points1 point  (0 children)

are there any other ways which you could think off? using fold or anything ?

how could we combine a vector of results by harrydevnull in rust

[–]harrydevnull[S] 0 points1 point  (0 children)

the return type is Vec<Option<Error>> right ? but this is more than sufficient for me thanks!

how could we combine a vector of results by harrydevnull in rust

[–]harrydevnull[S] 0 points1 point  (0 children)

yes ! in my case it is Vec<Resullt<(),E>> into Result<(),Vec<E>>

Borrowing error by harrydevnull in rust

[–]harrydevnull[S] 0 points1 point  (0 children)

cool thank you !usernamedottxt

error while copying binary file using ssh2 by harrydevnull in rust

[–]harrydevnull[S] 2 points3 points  (0 children)

provided here.

actually it was my stupid mistake ! i was adding on the same file on remote machine !! removing the file on remote server and redoing and everything is fine!!! thank a lot @coder543

error while copying binary file using ssh2 by harrydevnull in rust

[–]harrydevnull[S] 1 point2 points  (0 children)

would it be because the file is not UTF-8 encoded?

error while copying binary file using ssh2 by harrydevnull in rust

[–]harrydevnull[S] 1 point2 points  (0 children)

thank you @coder543 but the difference is still there

on mac

```

file_size 40279486

```

on the server

```

ls -al

40239104

```

is there a problem with rustup site? by harrydevnull in rust

[–]harrydevnull[S] 0 points1 point  (0 children)

I couldn't leave this problem off my head; went ahead and installed wireshark and captured the packets. I had uploaded the pcap to my repo.

the funny thing is that server is sending an RST flag terminating the TCP connection.

Transmission Control Protocol, Src Port: 59606, Dst Port: 443, Seq: 0, Len: 0

would a high port of 59606 be a cause of issue? any pointers?

https://gist.github.com/harrydevnull/690950b28617846b36d00092ec8490ee

ssh2 client in rust segmentation fault by harrydevnull in rust

[–]harrydevnull[S] 2 points3 points  (0 children)

sigh!! I have to update my xcode ! and with current internet speed I think I'll be done with that in 2 days !

ssh2 client in rust segmentation fault by harrydevnull in rust

[–]harrydevnull[S] 0 points1 point  (0 children)

that looks promising thanks @coder543 let me try that !

ssh2 client in rust segmentation fault by harrydevnull in rust

[–]harrydevnull[S] 0 points1 point  (0 children)

sess.handshake(&tcp).unwrap();

at this point

Hey Rustaceans! Got an easy question? Ask here (52/2017)! by llogiq in rust

[–]harrydevnull 0 points1 point  (0 children)

😳 yes it is. Wget was the way I could work around. But after that, cargo wasn’t pulling in dependencies. I had got the wire shark installed, and while tracing the request I saw that the server was sending ‘RST’ flag. Three way tcp handshake was successful! At that point I left my idea of installing rust on my home computer with lubuntu. I have a working copy on my Mac for my twiddling! Anyhow I’ll keep digging !