Hacker Newsnew | past | comments | ask | show | jobs | submit | liw's commentslogin

Stderr should only get error messages, and, arguably, warning messages. It shouldn't get status and progress messages. Those should go to /dev/tty, and the program should be gracefully quiet if run without a terminal, e.g., from cron.


Shouldn't the "verbose" option take care of the presence of the status or progress messages? Also, arguably, the error and warning messages are status messages too, so I would say all the status messages, regardless of gravity, belong to the same channel.


Error and warning messages are not status or progress messages, at least not in the context of this discussions, which is that a long-running computation should indicate to the user that it's doing something.


Example: "warning, the x is in y condition and thus z will take place affecting the computation in progress" or "error, could not perform x (out of many x-like things to do, but I'll continue because you instructed me to)". These are status messages in a long-running computation context.


I disagree. They're a warning and an error message, and should go to stderr.

It may _also_ be useful to show them on the terminal, in case the user would like to see them now, and has redirected stderr somewhere other than the terminal. In that case a program might show them on /dev/tty as well.


It still seems to be OK to bring Note 7s on airplanes. Not bottles of water, though, that's too dangerous.


I see the point you're trying to make; the authorities apparently accept a risk in terms of expensive equipment produced by corporations with strong lobbying funds, but decline that risk in terms of bottled liquids.

One fact that is overlooked is that there is actually a limit on the lithium-equivalent permitted per passenger just like there is a liquid-volume limit.

Last time I checked, the total maximum carry-on lithium-equivalent was 25 grammes which was about four smartphone batteries or two-dozen AA cells. Now as to whether that's an acceptable risk is for someone else more knowlegeable to evaluate.


Not sure if you've been in an airport, but you can buy a bottle of water and bring it on an airplane.


Yeah, and it costs 10x as much as in a regular super market, despite being the same water.

I really, really dislike flying. Not because of the flying itself, but because of being treated like a potential terrorist all the time.


So carry an empty bottle/tumbler/thermos and fill it up at the water fountain?


You're not allowed to do so, at least when I tried taking an empty bottle it was confiscated (Munich Airport, EDDM).


Strange, I've been traveling with a 500cc refillable water bottle forever, never had any trouble (Germany, Netherlands, East Asia). Maybe it helps that my bottle is designed to be refilled, and not just an empty bottle from the supermarket.


That's definitely not true for any airports in the US. Finally a category where US airport security is more sane.


Commonly there is no water fountain.


I've seen a lot of airports (recently PDX and O'Hare) that have water bottle filler up dispensers past security.


There is always a bathroom.


Yes ... but sometimes only hot water is available, and at all times the quality of water not marked 'drinking water' could in principle be suspect (it might come via a tank somewhere — this is certainly common in old UK domestic plumbing — and the tank might have dead rat in it, etc.).


The problem is that with a water bottle, you can immediately see it's some kind of liquid on the x-ray and disallow it during inspection, whereas the Note 7 isn't immediately apparent when inspected from afar. While I don't agree with the liquid ban, it's much easier to ban a liquid than it is to ban a specific model of a phone.


If the radio is on you can watch for the MAC address.


Yes I'd love for the TSA to invest in MAC address scanning devices..


Last time I was on an airplane the crew disallowed all Note 7s being turned on or being charged. I'm not sure if it was seriously enforced, but it was announced.


You can bring bottles of water onto airplanes...


Only if you buy is after security. Maybe we're gonna have to buy phones now too :)


You can bring it on the Ola E if you bought it in the airport. So you can't take a bottle of water through security check, but you can take a note 7.


Yes, absolutely. I, for example, am one, though I admit I was born only after humanity has visited the Moon. Still, more than 16 years ago.


There's one person left from the previous century too:

https://en.wikipedia.org/wiki/Emma_Morano


Well, she is the last one born in 1800s. There might still be living people born in the year 1900, which is also XIX century.


Shouldn't "previous century" be 1900-1999?


Aliases are per shell process. You need to reload your .bashrc (or whatever file you define aliases in) in every shell. Shell scripts are instantly available in all shell instances. Also, shell scripts can be invoked by shell scripts, which aliases can't.


I agree, but for something as simple as that I’d prefer a script to use `ssh-keygen` instead of relying on the presence of a one-line script in the PATH.


Making static websites for over a decade, now.

(Can make user-editable wikis as well.)


The Economist is following mainstream journalism in general, then.


sadly yes.


Does pointing that out advance the discussion in a useful way? Does it help having a constructive debate? Does it make anyone's day or life better? Are you just posting in the hope of getting some upvotes for making a funny, snarky short comment? Is your comment actually relevant to the discussion? Does the fact that you ask that question indicate that you already know the answer?


I did not write that from my Lemote, channeling Stallman, nor I have any general enmity towards closed source software (that I both use and write). I just don't like inaccurate proclamations of purity.


Babies need to be taught how to use the nipple. Not intuitive.


Only baby humans, but that's because even 'full-term' human babies are severely premature by the standards of most mammals.


Since I develop backup software, this is a problem I needed to solve (e.g., for verifying that restore works). So I wrote a tool: http://liw.fi/summain/

It produces output that is meant to be usefully diffable.


That's a neat looking application - bonus points for a good manpage, too.

That said, how does it handle firstpath/somefile.bin and secondpath/somefile.bin being identical? This breaks your "diffable" output because the paths are different.


You run it in such a way that the paths are identical. For example, by using the -r option.

$ mkdir foo

$ echo foo > foo/bar

$ cp -a foo foo2

$ summain -r foo > foo.summain

$ summain -r foo2 > foo2.summain

$ diff foo*.summain


The difference between free software and open source isn't copyleft. Both free software and open source embrace copyleft.

From your writing I deduce you are of the opinion that open source is more or less equivalent to permissive licensing, i.e., using BSD-style licenses.

The actual difference between the two is that open source values the productivity benefits that come from sharing, whereas free software is primarily about protecting the freedom of people.

Mocking should be done carefully, and one should avoid mocking things one doesn't understand.


> whereas free software is primarily about protecting the freedom of people.

That's why people often misunderstand the redefined/restricted freedom of GPL. I don't even want to associate GNU with "free software". Just replace "have the freedom to ..." for "have the right to ...", this way the philosophy of GPL would sound better to my ears.


> Mocking should be done carefully, and one should avoid mocking things one doesn't understand.

Yeah, yeah, for some reason I still can't help make fun of people who use "freedom" so often, but speak so much about things you are forbidden to do.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: