News for hackers. Stuff that matters.

iokanuon

Actually thinking about it - why not have everything encased in sand all the time, you'd just have to be a kid playing in a sandbox when doing maintenance
If you don't have a bottom layer the sand will immediately fall
Re:Show HN: Dotenv, if it is a Unix utility on Sunday May 05, 2024 @04:57AM (#40263266)
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 :)
Re:Show HN: Dotenv, if it is a Unix utility on Monday April 29, 2024 @11:16AM (#40199420)
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
    }
Re:Show HN: Dotenv, if it is a Unix utility on Sunday April 28, 2024 @05:59PM (#40192375)
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.
Re:Out-braking the ABS Myth [video] on Monday November 06, 2023 @11:45AM (#38164940)
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
Re:YouTube Addiction on Saturday January 14, 2023 @01:49PM (#34382814)
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.

Re:Free Will: Who’s in Control? on Thursday August 25, 2022 @09:26AM (#32593399)
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

Re:Free Will: Who’s in Control? on Wednesday August 24, 2022 @12:18PM (#32581577)
>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.

Re:Why Is This Website Port Scanning Me? on Wednesday May 20, 2020 @12:05PM (#23248494)
From what I remember about SSE, no Microsoft browser supported them. It seems like they've finally added support to Edge this year though.
It also might be illegal in some places right now
That's exactly why that works, the shell expands it, so

    mv foo-bar-{baz,quux}.txt
becomes

    mv foo-bar-baz.txt foo-bar-quux.txt
That's exactly what the article is about.
Re:Illustrated Jq Tutorial on Thursday March 19, 2020 @09:39AM (#22627354)
All POSIX-compliant shells should support this.
Re:E3 2020 Cancelled on Wednesday March 11, 2020 @01:52PM (#22548233)
There's a third option, postpone it a couple months.
>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?

Anecdotally, changing the ssh port on a very low-budget VPS is worth the effort because the CPU time eaten by responding to the ssh bots can be noticable.
Remember that creating a Google Play account already costs $20, so for the most people the distribution costs are far more than covered.
Re:What Happens When You ACH a Dead Person? on Wednesday August 28, 2019 @03:41PM (#20823320)
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.
Re:Firefox 68.0 on Tuesday July 09, 2019 @05:46PM (#20396997)
Sorry, I've just copied the first two replies.
Re:Firefox 68.0 on Tuesday July 09, 2019 @02:27PM (#20395074)
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

What about PeerTube? Seems like a good fit for the infosec community.
MS Windows kernel code is far from being BSD licensed though.

Older »