• 4 Posts
  • 151 Comments
Joined 2 years ago
cake
Cake day: October 4th, 2023

help-circle
  • Note that invoking Article 4 is basically requesting a conference among NATO members on a security problem. It’s not a “situation normal” sort of thing, but it’s Article 5 that deals with conflict.

    https://www.nato.int/cps/en/natohq/official_texts_17120.htm

    Article 4

    The Parties will consult together whenever, in the opinion of any of them, the territorial integrity, political independence or security of any of the Parties is threatened.

    Article 5

    The Parties agree that an armed attack against one or more of them in Europe or North America shall be considered an attack against them all and consequently they agree that, if such an armed attack occurs, each of them, in exercise of the right of individual or collective self-defence recognised by Article 51 of the Charter of the United Nations, will assist the Party or Parties so attacked by taking forthwith, individually and in concert with the other Parties, such action as it deems necessary, including the use of armed force, to restore and maintain the security of the North Atlantic area.

    Any such armed attack and all measures taken as a result thereof shall immediately be reported to the Security Council. Such measures shall be terminated when the Security Council has taken the measures necessary to restore and maintain international peace and security .


  • iPhone has about:config?

    I don’t use iOS, so I don’t know for sure, but I assume yes. The Fennec build does on Android. I’m currently using the official Mozilla Firefox build on Android because of the Fennec guys breaking their build, and it looks like they only have it enabled by default in the nightly and dev builds…but it’s present in the regular builds as well, just off by default, and you can flip it on.

    You need to go to chrome://geckoview/content/config.xhtml, and it’ll have said advanced settings. By default, Firefox-on-Android will eat the chrome:// bit if you paste it into the field, so you want to be sure to have that there.

    There’s also a setting there, general.aboutConfig.enable. If you set that to True, it’ll make about:config also go to the advanced settings page.







  • I’m pretty sure that wealth taxes are uncommon globally; that is, not having one is going to be the norm. Not easy to enforce, and not all that many countries are going to be in a reasonable position to track assets sufficiently to do that enforcement.

    kagis

    https://en.wikipedia.org/wiki/Wealth_tax

    As of 2017, five of the 36 OECD countries had a personal wealth tax (down from 12 in 1990).[2]

    OECD countries have developed economies and are probably going to be in a better position to enforce a wealth tax than most countries. And yeah, they mention enforcement:

    In 1990, about a dozen European countries had a wealth tax, but by 2019, all but three had eliminated the tax because of the difficulties and costs associated with both design and enforcement.[6][7]

    There are some taxes that are sorta-kinda analogous, like estate tax. The US does have a federal estate tax and most US states also have estate taxes. And property taxes can act kinda like a wealth tax as well, as they’re on the amount of assets held. The US doesn’t have a federal property tax, but most US states do have a property tax.






  • tal@lemmy.todaytolinuxmemes@lemmy.worldAn awkward realization
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    4 days ago

    I mean, there’s a point in data structure complexity where it’s useful to use Python.

    But as to dicts, sure. You’re looking for zsh’s “associative array”. Bash has it too.

    zsh

    $ typeset -A mydict
    $ mydict[foo]=bar 
    $ echo $mydict[foo]
    bar
    $
    

    bash

    $ typeset -A mydict
    $ mydict[foo]=bar
    $ echo ${mydict[foo]}
    bar
    $
    


  • tal@lemmy.todaytolinuxmemes@lemmy.worldAn awkward realization
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    5 days ago

    To be fair, a lot of the programs don’t use a single character, have multiple spaces between fields, and cut doesn’t collapse whitespace characters, so you probably want something more like tr -s " "|cut -d" " -f3 if you want behavior like awk’s field-splitting.

    $ iostat |grep ^nvme0n1
    nvme0n1          29.03       131.52       535.59       730.72    2760247   11240665   15336056
    $ iostat |grep nvme0n1|awk '{print $3}'
    131.38
    $ iostat |grep nvme0n1|tr -s " "|cut -d" " -f3
    131.14
    $
    



  • The intention behind the unsolicited shipments has not yet been clearly clarified. Possible is so-called “brushing scam”, the experts speculate. This is called fraudulent tricks that have the goal of falsely driving sales figures up or receiving user reviews. Seeds are suitable for this method because it is easy and cheap and can be sent as a letter.

    I remember when NPR Planet Money did an episode on this some years back.

    https://www.npr.org/transcripts/606517326

    Was inexpensive trinkets out of China being sent to the US then. Doesn’t have the invasive species aspect there.


  • Looks like systemd-sleep logs an entry for it, so you can check via this:

    # journalctl -rb -t systemd-sleep
    

    One gets either:

    System returned from sleep operation 'hibernate'.
    

    Or:

    System returned from sleep operation 'suspend'.
    

    I believe the default on Debian trixie is to suspend on lid close.

    But rule of thumb, if you’re coming back from a hibernation, you’ll see your system going through the regular boot process (BIOS screen, GRUB, kernel boot messages or a logo if you have a splash screen instead) up until after the kernel is up. If you’re coming back from a sleep, it’ll just be a black screen until your stuff is back up.


  • tal@lemmy.todaytoLinux Gaming@lemmy.worldHardware monitoring
    link
    fedilink
    English
    arrow-up
    2
    arrow-down
    1
    ·
    7 days ago

    So, it depends on what you’re monitoring. There is no one-size-fits-all tool.

    I haven’t needed to monitor remote systems much, especially recently. There’s a whole menagerie of tools for aggregating that kind of stuff.

    For the local system, I use a collection of things:

    • In Sway, I use waybar, which can display current processor temperature and CPU load. I have it normally invisible so that the applications get the whole screen, but when I have the Super key down, it flashes up at the bottom of the screen.

    • top is installed pretty much everywhere, and will show CPU and memory usage. I’ve played with atop, htop, and btop, but none have them really stuck. First, they aren’t universally pre-installed on systems, and being everywhere is a nice advantage. Second, they all have some things that I don’t like. htop defaults to blowing a line of the terminal per core on showing individual load on a core, which is a lot of space for something that probably isn’t of general interest. btop looks prettiest, but uses a bunch of CPU time and refuses to run in a small terminal, besides wasting some (less) space on a per-core basis. I can’t recall what it was about atop that didn’t do it for me.

    • bwm-ng is the tool I typically use to get an idea of how much data is moving in and out of a system.

    • sensors (in the lm-sensors package) dumps most of the temperature data that your system’s temperature sensors can see.

    • mangohud is useful for showing an overlay in 3D games with a lot of performance data.

    • I personally like sar (in the sysstat package) to log and show historical data, as it’s been around for a long time. I’ve used collectd because it supports logging data from a temperature probe that I have.

    • I think that the new hotness for logging data is maybe pcp, Performance Co-Pilot. I’ve been meaning to play with this more. Red Hat seems to very much recommend it. Red Hat has a list of PCP equivalents – for example, pcp atopsar -A is comparable to sar. It also appears to support monitoring remote hosts. Just haven’t had the occasion to really dig into it.

    • radeontop for my AMD GPUs. This has been particularly useful recently, as it permits showing how much VRAM is in use — if you’re playing around with AI stuff, it chews up a bunch of memory, and currently, Linux doesn’t have a single all-encompassing system for automatically unloading and reloading stuff (though ollama will, by default, unload on a period of inactivity) so you need to keep an eye on it if you’re simultaneously running games and other things that use VRAM.

    • smartctl in the smartmontools package provides a bunch of data about hard drive performance and problems.