HN user

iokanuon

633 karma
Posts7
Comments106
View on HN

You could do that, and it'd still be POSIX-shell comptible:

    loadenv() {
        case "$-" in
            *a*) source ./.env ;;
            *) set -a; source ./.env; set +a ;;
        esac
    }
Although I have yet to see a long shellscript utilise `set -a` globally :)

That will break if there's comments in the file, or if any one of the variables' values contain spaces. You can use `set -a` to load .env into an existing shell instance instead:

    loadenv() {
        set -a
        source ./.env
        set +a
    }

You'd need to `set -a` or pass the `-a` as a flag to have them auto-exported though, so:

    sh -ac '. ./.env; ./prog'
Also if you use the `.` builtin it's a good idea to specify the path with a slash in it, so that `.` doesn't search $PATH first.

This video is about motorcycles, not cars. Also, the data on this is in the linked video - the author demonstrates you can do a controlled stoppie to decelerate faster without ABS, because that's its main feature - preventing you from flying off the bike.

It's an option you can use when invoking `make` - so no need to specify extra cmake options, just during `make` invocation after `cmake` is already done

YouTube Addiction 4 years ago

That's crazy. Where do you live? In Poland I just skipped the insurance system to get ADHD meds and went to a psychiatrist specialising in ADHD privately - $70 for a 20 minute visit seems a bit steep but it's better than waiting years.

Could you possibly do something similar?

"ip addr show" lists interfaces and their stats. It's harder to read than ifconfig -a but gives you the same information in a similar format.

It's worth noting that `-br` gives you a brief version of the output, and `-c` colors it, so that it's possible to do something like this:

  ip -br -c addr
to get a very readable and colorful table-like output.

There's also `-j` for JSON, and `-j -p` for pretty JSON.

Just to be clear, I'm not trying to argue with you - just trying to share an observation from my own life.

The experience of the inner monologue in my brain not being able to control what the rest of my body is doing when not on meds sure does feel like a crippled down version of free will

Humans can delay gratification for larger payouts later on, which if we could not consciously do then I personally would probably do nothing with my life besides the basic biologic urges and whatever gives me the strongest immediate dopamine hit.

That's basically living with ADHD - so about 2% to 7% of all people have a lot less free will than the rest.

Moreover, in our dorms, we have effectively no way to eat if the dining halls close down.

That sounds crazy to me, in Poland there's a multitude of cheap restaurants full of students close to every university campus. There's a big demand because universities are packed with students that don't cook for themselves. Why hasn't the same happened to the US then?

Since a few years ago, you were also able to use the BLIK system to transfer money instantly for free between most banks, by only knowing the recipient's phone number. To be fair I can't imagine anything more convenient.

Firefox 68.0 7 years ago

This is just for show. [1]

No. The browser is not fully open source like open in open source. It is a common myth and misconception about Kiwi Browser.

Damn, 1 commit and nothing else but keeps updating and releasing apks? Looked into the issues and scarcely seen replies.

I think this repo is just to show that "hey, I provided the so-called source code (even though not fully open-source as said above) so trust me and install me" thing.

[1] https://github.com/kiwibrowser/android/issues/30

* The complaint against "inline" is nonsense. The only thing inline impacts is function linkage. Literally nothing else.

That's not actually true. At least in clang it lowers the threshold at which a function will become inlined. You can see that happening in this wonderful demonstration by Jason Turner: https://youtu.be/GldFtXZkgYo