News for hackers. Stuff that matters.

jesusprubio

Thank you for the feedback. It's only my first crate I wrote to learn about the environment. It emulates more or less this one in Node.js a lot of people uses: https://github.com/sindresorhus/is-online

I wanted to implement it in this way. But I'm waiting for async/await, it should be trivial with a map function or something similar. But now it already tries a fallback connection if the first one fails.

Good point about the countries, I need to add an issue to cover it.

Launching a distributed attack by publishing a crate which makes one request? XD

You can relax, I know how they work. My final year project was about DoS. I would send you the link but it's Spanish.

But I can say you I've written a tool to implement this vector (among others) against VoIP services and it was presented even at the BlackHat conference.

BTW, there're parts of DNS over TCP.
Thank you! Very interesting thoughts, adding them to the repo here:https://github.com/jesusprubio/online/issues/7

Please feel free to contribute ;).

Agree, answered in other comments but the idea is I truly believe in this micro modules way of building things. If it reduces complexity it's welcome. :)
It's only my first crate I made to learn about the environment.

But I truly believe in this micro modules way of building things. If it reduces complexity it's welcome. :)

Re:Show HN: Leg – Simple, elegant logging for Rust on Tuesday May 28, 2019 @05:52AM (#20028606)
About the first page of HN I agree, it's crazy xD. I wrote it as my second crate to learn about the environment.

But I truly believe in this micro modules way of building things. If it reduces complexity it's welcome. :)

Obviously, you're right. And I can imagine any developer can imagine the same thing :).

But I couldn't find a better way to check if I am online than making a request to any server. In fact, I'm using two over different protocols just in case.

About the option to pass other services I agree, answered here: https://news.ycombinator.com/item?id=20028483

About DoS attack, I think you need to review how those work, the library is not implementing amplification or something similar.

Couldn't agree more, thank you! :)
This why we're called engineers, we put pieces together.

So, your solution to "left-pad" is to write all your own code? xD. I think you need to review what was the problem there.

About the support to different services, those are the ones I use in my applications. But you are right, it would be a nice feature. PR's are welcome by the way ;).

The same about IPv6 support, this is an important feature.

Added both as issues: - https://github.com/jesusprubio/online/issues/5 - https://github.com/jesusprubio/online/issues/6

Re:Show HN: Leg – Simple, elegant logging for Rust on Tuesday May 28, 2019 @05:18AM (#20028464)
An open minded in the forum? I can't believe.

Thank you! :)

Re:Show HN: Leg – Simple, elegant logging for Rust on Tuesday May 28, 2019 @05:14AM (#20028446)
The third one is to use `print!` instead of `println!` to keep the cursor in the same line.

Thank you for the feedback!

Re:Show HN: Leg – Simple, elegant logging for Rust on Tuesday May 28, 2019 @05:12AM (#20028439)
Please, see this response: https://news.ycombinator.com/item?id=20028428

Thank you for the feedback.

Thinking in a CLI, do you think the timestamp is important? I also had this doubt, but it only bothers me.

Re:Show HN: Leg – Simple, elegant logging for Rust on Tuesday May 28, 2019 @05:12AM (#20028434)
Please, see this response: https://news.ycombinator.com/item?id=20028428

Thank you for the feedback.

Re:Show HN: Leg – Simple, elegant logging for Rust on Tuesday May 28, 2019 @05:11AM (#20028428)
You're right, being discussed in other places right now. Finally, changing the description to clarify that the goal is to be used in CLIs, not as a logger.

I prefer to keep lower complexity and there are some crates that cover that case better.

Thank you :).