News for hackers. Stuff that matters.

liw

Re:Exploring CLI Best Practices on Wednesday October 12, 2016 @03:30PM (#12695791)
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.

Re:Exploring CLI Best Practices on Wednesday October 12, 2016 @08:07AM (#12692082)
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.
Re:Exploring CLI Best Practices on Wednesday October 12, 2016 @06:39AM (#12691737)
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.
Re:US carriers halt Samsung Note 7 sales and replacements on Monday October 10, 2016 @01:21AM (#12675211)
It still seems to be OK to bring Note 7s on airplanes. Not bottles of water, though, that's too dangerous.
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.
Re:Upgrade your SSH keys on Saturday September 24, 2016 @03:31AM (#12569895)
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.
Re:Static Website Generators on Monday September 19, 2016 @04:14AM (#12529759)
Making static websites for over a decade, now.

(Can make user-editable wikis as well.)

Re:The world’s most liveable cities on Friday August 19, 2016 @02:34AM (#12318311)
The Economist is following mainstream journalism in general, then.
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?
Re:The Future of Planet Mozilla on Thursday August 18, 2016 @02:29AM (#12310749)
Babies need to be taught how to use the nipple. Not intuitive.
Re:Verifying copies on Monday August 15, 2016 @04:28AM (#12289286)
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

Re:Verifying copies on Monday August 15, 2016 @02:23AM (#12288999)
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.

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.

I've followed, and sometimes participated in, variations of this discussion since 1989. I wrote up an article about this topic on the Yakking blog, recently: http://yakking.branchable.com/posts/comparative-freeness/

It's not a useful discussion that will ever go well, so I'm not surprised it's a big subthread on HN.

Re:Anti Mediocracy Manifesto for Software Development on Thursday July 28, 2016 @04:32AM (#12179058)
The Unix command /bin/true (do nothing, exit with code zero) can be implemented as an empty file. When it's run, the kernel doesn't recognize it as binary code, so it gives it to /bin/sh to run.

There's at least two bugs in a zero-byte implementation of /bin/true: it's too slow and it uses too much memory.

Re:How to Keep a Journal on Thursday July 21, 2016 @03:26AM (#12135325)
I have been keeping a journal in a private ikiwiki instance for several years now. Basically, I set up an ikiwiki blog that generates a static website, served by Apache over localhost. Files are in markdown, and kept in git. I do searches via "git grep". The static site is for easier browsing.

I've added things like "topics" (sub-blogs based on links to a topic page) and "people" (ditto). A topic is a page and automatically shows (via ikiwiki inline) all the blog posts that link to the topic page. A person is also represented by a page, and similarly lists linking blog posts. Topics are usually using a meta link directive in ikiwiki, whereas people use a person/lastname.firstname link to achieve the same.

I wrote a little tool to make admining topic and person pages easier, and to easily add new blog posts and attach images or other files to the blog post. http://git.liw.fi/cgi-bin/cgit/cgit.cgi/jt/ has the code; I should probably write this up some day.

I've published some of my journal, related to one of my hobby projects. http://liw.fi/obnam/journal-dump/ if you're curious, though from server access logs I know nobody is.

I keep my journal private mostly so I can be more honest when I write. If I need to, I can be rude and impolite and use quite dirty language, which I wouldn't if I was writing in public. Also, some topics are private and nothing good will come from disclosing them.

Re:Review of 8 Linux file managers to try (2015) on Saturday July 16, 2016 @04:22PM (#12107754)
That seems like a very old version to review.
Re:Review of 8 Linux file managers to try (2015) on Saturday July 16, 2016 @01:05PM (#12107018)
I don't recognise the Nautilus I use from the screenshot or the description. For example, I have a completely different sidebar and I have no problem having multiple tabs in a window.
Re:Why is Python slow on Sunday July 03, 2016 @06:50AM (#12025586)
http://ikiwiki.info/ supports comments.

There are several variants of "static website":

* Site is generated by its author, and won't change until author changes and re-generates it.

* Site generates content when something changes (e.g., new comment), not on each page view. (Cf. ikiwiki in cgi mode.)

Re:moreutils on Saturday July 02, 2016 @06:10PM (#12023954)
I doubt joeyh wants to add tools to moreutils that already exist as separate projects of their own.
Re:Ōryōki Web Browser on Wednesday June 29, 2016 @03:28PM (#12004104)
Here's another tiny browser: http://www.netsurf-browser.org/

At a previous job, we built and installed and ran a system test with that faster than Firefox unpacked the source tarball. OTOH, it's quite limited, and Javascript support isn't really there yet.

It tells you that your file is corrupted. You can then restore from backups, re-download, or take some other corrective action, such as delete the file, reboot the machine, re-install the operating system, or play Quake 2 to test your RAM and graphics.

Never underestimate the value of a reason to play Quake 2.

SSH is originally from Finland. Unlike GPG, it's not an implementation of a pre-existing spec, so it might make a somewhat better example.
Re:GNU Screen v.4.4.0 on Monday June 20, 2016 @12:33AM (#11936068)
The BSD license allows the software to be made non-free. The GPL doesn't. To me, this means the GPL wins on freedom.

Not everyone agrees. Hence, subjective interpretation. Saying otherwise is just trolling.

Re:On Snappy and Flatpak on Friday June 17, 2016 @04:21AM (#11921261)
As a Debian developer I was greatly surprised when I read on Ars Technica that Debian had chosen to support snaps.
If landlords and letting agents and real-estate agents do this, should not tenants do it too? Could we have a service where a tenant gets a "creepiness report" on a potential landlord/agent?

Actually, probably better not. Escalating mutual destruction scenarios are not a useful long-term strategy.

Re:Show HN: Arc – secure file archiver on Wednesday June 01, 2016 @11:06AM (#11814906)
Come to think of it, a variant of it is still packaged in Debian, package is called "arc".

Incidentally, for anyone choosing a name, the namecheck program from the Debian devscripts package is handy for checking if a particular name is already in use. Not perfect, but handy anyway.

Re:Show HN: Arc – secure file archiver on Tuesday May 31, 2016 @03:31PM (#11809439)
Not only that, there's a historical program called Arc that is also a file archiver/compressor. It led to PKZIP.

Older »