Better HN
topnewbestaskshowjobs
Log inSign up

gray_-_wolf

805 karma · joined Oct 7, 2017 (9y ago) · 317 submissions

Submissions

comment 5y ago · link · parent

> Unless you have an personal or professional interest in fringe operating systems posix compliance

I mostly hit things like these with alpine containers and openwrt. OpenWRT I guess could be considered "fringe operating system", but alpine (at least for containers) seems reasonably mainstream?

comment 5y ago · link · parent

But now you require gnu awk, it no longer works under posix (so for example busybox). Which sucks a bit.

comment 5y ago · link · parent

> It's not okay to allow a third party to access the data your friends have shared with you without your friends consenting.

Why? If they shared it with me, that should mean they trust me to decide to whom I delegate the access no? I could as well just screenshot it and post it to twitter, what does make the social graph so special?

comment 6y ago · link · parent

I remember my father having a car like that :D

comment 6y ago · link · parent

It works only short-while after pressing the button. If I take too much time setting my stuff in the car I need to press the unlock button again to "wake up" the keys in order for it to work. So I believe it should be good enough against relay attack.

comment 6y ago · link · parent

Luckily my Toyota has an option to disable this remote proximity bullshit all together. I need to press button on the keys to unlock the car, and I need to put the keys on the start button to get it to start the engine.

comment 6y ago · link · parent

> and optional.

This is imho the most important part.

comment 6y ago · link · parent

Would this not have the chance of breaking anything relying on tcp keepalives?

comment 6y ago · link · parent

Fine. With mutt I would need bunch of patches anyway, here they come from the upstream.

They do have a bit of regressions from time to time, but they are fairly quick to respond with workarounds and fix it.

comment 6y ago · link · parent

Or, in actual posix compatible way:

    find /tmp/test -type f -iname '*.ogg' -exec sh -c 'for f; do printf "%s\n" "${f##*/}"; done' - {} +

comment 6y ago · link · parent

You can easily branch mailing thread into multiple separate ones (happens regularly on gnu mailing lists for example). Compared to that, threading in all of the git forges sucks hard.

comment 6y ago · link · parent

Which I think lasts only until you restart the browser? Hardly a good user experience..

comment 6y ago · link · parent

But head is a being a good citizen by doing only what it needs to do and not anything else. Otherwise things like `grep X <5GBfile | head -n1` would process the whole file and not just until the first match.

comment 6y ago · link · parent

You can always land with `--merge`. That is what I do if it actually makes sense to preserve individual commits.

comment 6y ago · link · parent

> identify a specific C program

Well, not sure about C (but I assume something using gtk could be pain), but if we expand that to C++, I mean, I would expect firefox and chrome to be basically unbuildable in static manner.

> no matter how hard you try

Well, no. If you are willing to rewrite it (even significant changes), of course it will be possible to built it statically. That does not mean it is doable in practice.

comment 6y ago · link · parent

    +   $ find /tmp/x ! -path /tmp/x -prune -type f -exec sh -c 'for p; do printf '\''%s\n'\'' "${p##*/}"; done' - {} +
    c
    b
    a
Seems to do the trick and is POSIX only (so works on busybox and mac). You can probably just tack `| sort` at the end if you want it sorted.

comment 6y ago · link · parent

In our company we went the other road. We have the developers write the policies (since I mean, they know what their app needs) and test it in dev environments. After that, ops guys step in during code review to check for too broad allow in the policies. So far it seems to work in acceptable manner.

comment 6y ago · link · parent

Are there some actual studies stating that privatized mail office would be cheaper/more efficient/better service? Or is this just attempt at money grab?

comment 6y ago · link · parent

And this is why I always put space before the punctuation when sending a link to someone.

comment 6y ago · link · parent

But since they explicitely state that it is not suitable for large content, server could just cache it until it has it all. Most clients will likely wait for whole response anyway.

I feel like that would strike reasonable balance. Client are still simple (arguably more simple since they don't have to guess if they got everything) and the protocol is still trivial. For dynamic content, it would increase time-to-first-byte and ram usage on server, but both imho would not be an issue for the type of content gemini aims for.

comment 6y ago · link · parent

One thing I don't agree with the protocol (on technical level) is that absent of content-length or of some end-of-message marker.

> The server closes the connection after the final byte, there is no "end of response" signal like gopher's lonely dot.

This just seems like a bad idea, especially if one is on shitty connection.

comment 6y ago · link · parent

> Why does anyone carry a gun, unless they intend to use it

Yes, I carry a gun because I intend to use it. In self-defense, if ever necessary.

What is wrong with wanting to protect my own life?

comment 6y ago · link · parent

> how do those who will use the software have a voice in what gets developed

Should they? If they want some feature, they can ask nicely or make a PR. Are there other options?

comment 6y ago · link · parent

Fairly intersting viewpoint, although disagree with the author (if I interpret the post correctly, English is not my native language). Just ignoring any "ethical" view point (because they are subjective and hard to agree on) and looking just at the practicality of the idea:

> the danger is a mess of unenforceable licenses whose prohibitions become impossible to keep track of

This is imho the most important part; once you start using basically personal license (I mean, each developer (person) has different set of values; some would be fine with military applications, some not; some would be fine with non-profit (doctors without borders) using their code, some would not), it becomes basically impossible to be sure your code is compliant or not.

Once you realize that your would need to basically evaluate every single license in the dependency tree in depth (since they are basically non-standard, personal licenses at this point), it turns into insane amount of work. And expensive, since it would probably needed to be done by a lawyer.

The split between gpl2, gpl3 and apache 1.0 and 2.0 is bad enough already.

comment 6y ago · link · parent

> > Does this mean I cannot use openssl in my gpl-2.0-only program?

> Correct.

Wait, I've tried to do some more reading and there are some things I do not understand:

1. I've done quick search over pacman database, and there are lot of packages that are either gpl or gpl2 that link against openssl. Does that mean that archlinux should be in deep legal trouble and it needs to drop few hundred packages (including coreutils, libgit2, kmod and others). Hell, even git itself links again openssl and that is gpl-2.0-only project. Does this make git illegal?

2. Are the "legal issues" comming from gpl-2.0-only side or from the openssl side? If from the gpl-2.0-only side, cannot I just add linking exception to the license to explicitely allow linking to openssl?

comment 6y ago · link · parent

> > Does this mean I cannot use openssl in my gpl-2.0-only program?

> Correct.

Well that sucks. I guess I'll need to look into libressl.

comment 6y ago · link · parent

> Specifically, OpenSSL is now compatible with anything licensed "GPLv3", "GPLv3 or later", or "GPLv2 or later". It's not compatible with "GPLv2 only", but that's a relatively small amount of software.

Does this mean I cannot use openssl in my gpl-2.0-only program? How does that work? Doesn't gpl-2.0-later imply that I can also take the code and use it in gpl-2.0-only?

Is there some tldr on this topic somewhere? I'm not good with these legal things to ELI5 would be nice :/

comment 6y ago · link · parent

Could you not just produce basically two compilers, one for big and one small endian? I think that could be done with templates and such. Sure, bigger code size, but that does not seem something that would pain people from google (as I can tell looking at golang).

comment 6y ago · link · parent

They could just go the C-way and introduce new keywords in reserved namespace (`_Static_assert`) and provide opt-in header to make them less ugly (`assert.h` and `static_assert` macro).
1
7891011