Live data from Hacker News

What: A terminal tool to check what is taking up your bandwidth

github.com

141–150 of 190 posts

Re: What: A terminal tool to check what is taking up your bandwidth

#141

Running Catalina, with sudo I'm able to get the screen up and running, but at first data I get a panic: thread 'display_handler' panicked at 'overflow when subtracting durations', src/libcore/option.rs:1185:5 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

I'm not surprised about OS X, recent OS versions have been making it more and more different from how the OS previously worked. For example GDB doesn't work anymore, and neither does valgrind.

> neither does valgrind

Woah, that's a huge step backward. How do they expect anyone to write half-decent C for their operating system without valgrind?

Re: What: A terminal tool to check what is taking up your bandwidth

#142
post #61

Earlier quoted context omitted.

Catalina: getting "failed to listen" when running non-root, Shows empty panels when ran with sudo.

You can run as non-root by using setcap to give extra capabilites to the binary: sudo setcap cap_net_raw,cap_net_admin=eip

setcap is Linux-specific thing. Doesn't exist on freebsd, darwin(macosx) or any other unix.

Re: What: A terminal tool to check what is taking up your bandwidth

#143

Bad naming.. WHAT(1) BSD General Commands Manual WHAT(1) NAME what -- show what versions of object modules were used to construct a file (MacOS ...)

'whence' would be more specific – it's archaic in English, it means 'from where' – although it's used within the ksh shell.

‘whence’ is POSIX-reserved even in shells that don't implement it¹. (‘what’ is also in POSIX². And ‘who’ is on first³.)

¹ https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V...

² https://pubs.opengroup.org/onlinepubs/9699919799/idx/utiliti...

³ https://youtu.be/kTcRRaXV-fg

Re: What: A terminal tool to check what is taking up your bandwidth

#144
post #133
post #17

Installation with yay/crate can be slow. This small tool took 4 minutes of compile time, the Rust crates seem to be very fine granular (like node.js vor example) and require much compile time. 204 crates needed to be compiled. I found that, using yay or another aur helper on arch linux, having a few rust utilities installed that have regular updates, significantly slows down the average system upgrade time. I tend to…

Not too many direct deps Networking: pnet, ipnetwork, trust-dns-resolver, UI: tui, termion, structopt (CLI is UI) Utility: signal-hook, failure, chrono, regex, lazy_static, Async: tokio, async-trait None of those seem egregious.

Direct dependencies is irrelevant, I could create a single dependency that wraps all of these and the problem being discussed remains unchanged.

Re: What: A terminal tool to check what is taking up your bandwidth

#145
post #65

Earlier quoted context omitted.

This is in the top class of utilities (htopm etc). A good name could probably be bwtop, or tcptop or iftop. Actually I searched for these, and turns out iftop exists! ( https://linux.die.net/man/8/iftop )

My complaint about the name is that it would be hard to "google" it. This means if I don't bookmark it or remember where I found it, then a couple of years from now when my laptop needs to be rebuilt, I'll have the darndest time finding it to install it again.

Hackernews Search is a better google for cool things I've found on the internet.

Re: What: A terminal tool to check what is taking up your bandwidth

#147
post #108

Earlier quoted context omitted.

Not without creating an account, on Android. Chrome has no other export functionality. And firefox copied that lack-of-feature without even realizing the motivations. So now one have to copy them one by one.

I must be misunderstanding something here, can you please explain the missing feature? I load a set of bookmarks into Firefox on client machines regularly, but I suspect this isn’t what you are discussing.

I'm are talking firefox/chrome for android only. The only way to export bookmarks (and possibly import) is to register for an account and sync them.

There is no way to export them to an xml/whatever file (pretty sure you could at least in firefox before, but I guess it was too hard to maintain...).

Re: What: A terminal tool to check what is taking up your bandwidth

#148
post #108

Earlier quoted context omitted.

Not without creating an account, on Android. Chrome has no other export functionality. And firefox copied that lack-of-feature without even realizing the motivations. So now one have to copy them one by one.

Or create an account?

Surf with chrome logged in? Will never happen. Hard no as long as my sanity remains.

Firefox, maybe, haven't looked into it and just the process of evaluating it isn't worth it. Mozilla doesn't have the track record that I want to blindly trust them with that either.

Re: What: A terminal tool to check what is taking up your bandwidth

#149
post #65

Earlier quoted context omitted.

This is in the top class of utilities (htopm etc). A good name could probably be bwtop, or tcptop or iftop. Actually I searched for these, and turns out iftop exists! ( https://linux.die.net/man/8/iftop )

My complaint about the name is that it would be hard to "google" it. This means if I don't bookmark it or remember where I found it, then a couple of years from now when my laptop needs to be rebuilt, I'll have the darndest time finding it to install it again.

I just type in what I’m looking for and “news.ycombinator.com” at the end so that it links to a HN page. Sometimes I have to use site: to make sure it’s actually from HN, but works reasonably well.

Re: What: A terminal tool to check what is taking up your bandwidth

#150

Earlier quoted context omitted.

This effectively made github my second search engine. We should have an AskHN on how to find software in general.

I’m using multiple search engines more and more. Possibly this is due to me usually bypassing google to avoid the ad laden hits. A view with search results from a few sources comes to mind as a solution. Another back burner project.

You can do this with browser search engines, but as a DuckDuckGo user, I can !bang search_term (`!gh`, `!github` to search in github.) Now, I think DuckDuckGo is very lacking in terms of Zero-click searching, but if I know where to get information I can !bang to it (e.g., `!hn what`) or if you're feeling luck `\hn what` will open the first search result. Much better than spending an afternoon setting up search engines.
Post reply on HN