Better HN
topnewbestaskshowjobs
Log inSign up

akdev1l

844 karma · joined Oct 27, 2023 (3y ago) · 366 submissions

Submissions

comment 1mo ago · link · parent

You can add the intermediate CA to your block list, presumably the distros will do this

comment 1mo ago · link · parent

libkrun exists so we can just run containers inside a virtualized environment without special tooling

comment 2mo ago · link · parent

How exactly is cp not portable?

Whatever behaviour you’re describing is not how POSIX mandates cp to work. In fact you can do this with busybox too.

cp will open("/dev/sda", O_WRONLY | O_TRUNC) and simply start writing to that file descriptor.

comment 2mo ago · link · parent

    cp file.iso /dev/sda

comment 2mo ago · link · parent

len(pics) either already knows about the length or it needs to count so it’s O(n)

comment 2mo ago · link · parent

you can use xmllint for xml via xmllint —-xpath

It’s great as it is included by default in RHEL/Fedora

comment 2mo ago · link · parent

The document is clear that the expectation from the developer is that you need to be ready for your app to be snapshotted and frozen/killed at any moment when it is not on the foreground.

comment 2mo ago · link · parent

This is literally always how iOS has worked. You can refer to the application lifecycle documentation: https://developer.apple.com/documentation/uikit/managing-you...

comment 2mo ago · link · parent

How does typing a url stop that?

type out: https://thisislegitparkingpaymentwebsite.com

Is this goatse or is it the real payment website for your parking? You won’t know unless you go there

comment 3mo ago · link · parent

Linux can be configured to disable memory overcommit

sysctl -w vm.overcommit_memory=2 sysctl -w vm.overcommit_ratio=50

It is probably a bad idea to do that though as it will limit the amount of virtual address space an application can use

comment 3mo ago · link · parent

Docker uses VMs in non-Linux OS to provide a Linux where containers can actually exist

comment 3mo ago · link · parent

bubble wrap is just doing the same cgroups work

comment 3mo ago · link · parent

podman run --annotation=run.oci.handler=krun -dp 8080:8080 -t --rm server-without-wasm

comment 3mo ago · link · parent

Do you mean like Podman has supported for years…?

eg: https://josecastillolema.github.io/podman-wasm-libkrun/#libk...

comment 3mo ago · link · parent

subprocess.run() uses Popen and defaults shell=False. There is no shell process involved. As the other user already pointed out.

comment 3mo ago · link · parent

    from subprocess import run
    from sys import argv

    source = argv[1]
    destination = argv[2]

    run([
      "rsync",
      "-zavp",
      source,
      destination
    ])
vs

    #!/usr/bin/env bash

    source="$1"
    destination="$2"

    rsync \
      -zavp \
      "$source" \
      "$destination"
the overhead is not really that bad imo

comment 3mo ago · link · parent

This is a lose-lose proposition.

1. Lose money burning tokens in all of this stuff. 2. Lose reputation when some malware eventually makes it through

comment 4mo ago · link · parent

> hence why passkeys were ideally device specific, non-exportable

Not true. The original concept was always for them to be cloud synced.

This has nothing to do with their anti-phishing capabilities. The anti-phishing capabilities come from the fact that the password manager authenticates the application before handing out the passkey. It doesn’t matter if they are synced across devices or not.

You are correct that other login methods might be weaker than passkeys. I’m not sure how that’s related to passkeys though. In real security sensitive applications the recovery process is “go to the bank’s branch and show them your driver’s license”.

> Your master password to your cloud PW manager's vault is also phishable

No, it’s not. You would need to steal my yubikey to get access.

comment 4mo ago · link · parent

Some functionality is not supported via USB-C. Namely HMAC Challenge does not work via usb-c but will work via lighting port.

comment 4mo ago · link · parent

By still having the password the user can still be attacked via phishing

comment 4mo ago · link · parent

Yes they have biometric collection stations now.

comment 4mo ago · link · parent

Rube Goldberg machine attached with used bubble gum and somehow the bubblegum was chewed in all the wrong ways

comment 4mo ago · link · parent

Not even tests but just some basic anomaly detection lol.

Like maybe if the bill amounts increase by like 10M% there should be someone that looks into it

comment 5mo ago · link · parent

Umm my toaster doesn’t have this problem and it’s not AI …

why does this happen to you?

comment 5mo ago · link · parent

If you put AI on a project the average consumer will think it’s using ChatGPT or something like that

I mean I agree with you just that the popular perception of that word has changed

comment 5mo ago · link · parent

Flathub only reviews the manifest.

If your manifest is covertly injecting malware into the build it could be easily missed. Consider some of the manifests are simply downloading deb packages and unzipping them.

comment 5mo ago · link · parent

The canonical answer to any concerns with the AUR is always “just read the PKGBUILDs bro”

comment 5mo ago · link · parent

LMAO brother you should stop projecting and get little more self assurance that isn’t tied to your wealth

comment 5mo ago · link · parent

I get my hair cut at a place where it costs $45 and I get a haircut every 1-2 months at best.

I wear my shoes until they break. I wear Vans Sk8 old skool high tops most of the time.

I am also on track to retire by 40 if all goes well. (Which is to say I don’t have THAT much money)

comment 5mo ago · link · parent

> Why would you want people to think you're poor or cheap, except maybe when you're shopping for a car.

Personally, I don’t generally think about how other people perceive if I have money or not.

12345
13