Spyke

Posts

A Proposal to make the 'age verification' forces happy -- with no OS changes at all.

It's pretty simple, really just a proposal to standardize on an admin policy. No new APIs, works with any legacy system (systemd or not), not even Linux-centric, pure POSIX/UNIX. Here goes:

Define standard groups which *may* be present. Make each user a member of three groups: YOBnnnn, MOBmm, DOBdd, where:

YOBnnnn = Year of Birth, eg. YOB1981
MODmm = Month of Birth, eg. MOB01
DOBdd = Day of Birth, eg. DOB03

So to define an age for user 'jsmith' born Jan 3, 1981, just define three groups YOB1981, MOB01, DOB03. add user 'jsmith' to these 3 groups.

Only a system admin can add users to groups, so this ensures it's admin-enforced and users can't change their own age verification.
The groups can be defined only as required, so a system with only a few users will only have a few of these YOB/MOB/DOB groups defined and it's easy to add or remove them at any time.
Querying a user's age is as simple as calling standard POSIX APIs to see which groups a user is a member of, and extracting the numerical suffix of any groups of pattern {YOB, MOB, DOB}.

If a system doesn't want to do age verification, just don't define or assign these groups to anyone; it's up to apps to assume the age is either satisfied or not when groups are absent for a user.

If privacy is a concern, assign only YOB (or YOB and MOB), not DOB group, so exact age is not defined (with the loss of some precision, eg., someone 17 years of age isn't considered 18 until the start of the following month after their real birthday if a DOBdd group isn't assigned to their user).

If age verification were required to be done by 'age classes' rather than YOB/MOB/DOB, define a group corresponding to one's legal region requirements (I've heard California wants: '13 and under', '14-17' and '18+' or something like that). So just define groups 'AC0', 'AC1', 'AC2', 'AC3' for each age group, and assign users to one of those groups as appropriate. Again, apps just need to use standard APIs to check what groups a user is a member of in order to determine their age group.

View original on lemmy.ca
8
canada·CanadabyArghblarg

Who is David Krayden? "MCGA" (Make Canada Great Again) channel on youtube

No comment other than the phrase in title is prominent on the hats intentionally shown behind the young man being interviewed here. I'll let everyone reading this decide for themselves whether this is a problem or not.


EDIT: For the record, perhaps my original commentary on this post was attempting to be too 'clever'. I was most definitely * not * trying to promote these chuckleheads. It was posted in order to ensure people know the enemy -- there are some scary forces working in Canada to instill the horrors we are seeing down south, right here, right now.

https://www.youtube.com/live/i3zOLjJqFeoOpen linkView original on lemmy.ca
-31
politics·politics byArghblarg

DHS sends deportation notice to a US-born Citizen, who happens to be an immigration lawyer - "Leave in 7 days, or else"

As most have predicted and feared, the US Administration appears to now be testing if they can push one step further towards enforcing an authoritarian ethno-state: threatening a full-on US citizen by-birth with detainment and deportation (to where, exactly, if they are a born US citizen?). Someone who, "coincidentally", is an immigration lawyer, someone who might defend other targets of their deportation agenda.

First they came for ...


EDIT: a thread indicating this has been a mass email to others https://bsky.app/profile/reichlinmelnick.bsky.social/post/3lmljpkrdj22h

https://bsky.app/profile/carlbergstrom.com/post/3lmleebe2r22bOpen linkView original on lemmy.ca
422
politics·politics byArghblarg

Elizabeth May suggests Cali, Oregon, Washington State join Canada or join British Columbia to form 'Cascadia'

In response to suggestions by a lunatic in the US Oval Office, Green Party Canada's leader Elizabeth May suggested Canada should invite western states Washington, Oregon and California join B.C and split from Canada to form the 'Cascadia' eco-state.

(Note this article is from Jan 8, 2025 and Elizabeth May has since become co-leader of the party alongside Jonathan Pedneault).

https://archive.is/xIjN0Open linkView original on lemmy.ca
403

Zenbook Pro Duo 2024 (UX8406): How to configure dual screen switch on keyboard remove/replace, and pair keyboard in BT mode

EDIT see my comment below which uses a much cleaner method that avoids the noisy multple udev events and doesn't require udev/eudev at all


This activates/de-activates the secondary display underneath the removeable keyboard properly. Note though that the keyboard is a composite unit and causes a whole train of udev events, rather than a single one, which means the desktop will flicker multiple times on each re-attachment of the keyboard :(. If anyone knows how to just run the scripts on the 'last' udev event, it would make for a cleaner experience. (XFCE sometimes crashes out on me due to the rapid xrandr reconfigs but it's mostly usable).

[/usr/local/bin/usb-0b05_1b2c-in]

#!/bin/bash

if [ "$(xrandr --listmonitors | wc -l)" -gt "2" ]; then

#logger -p user.info "=== KEYBOARD REPLACED ==="

xrandr --output eDP-2 --off

fi

[/usr/local/bin/usb-0b05_1b2c-in_udev]

#!/bin/bash

export PATH=/bin:/sbin:/usr/bin:/usr/sbin

/usr/local/bin/usb-0b05_1b2c-in &

[/usr/local/bin/usb-0b05_1b2c-out]

#!/bin/bash

if [ "$(xrandr --listmonitors | wc -l)" -lt "3" ]; then

#logger -p user.info "=== KEYBOARD REMOVED ==="

xrandr --auto && xrandr --output eDP-2 --below eDP-1

fi

[/usr/local/bin/usb-0b05_1b2c-out_udev]

#!/bin/bash

export PATH=/bin:/sbin:/usr/bin:/usr/sbin

/usr/local/bin/usb-0b05_1b2c-out &

[/etc/udev/rules.d/99-zbduo2024-kbd.rules]

ACTION=="add", ATTRS{idVendor}=="0b05", ATTRS{idProduct}=="1b2c", ENV{XAUTHORITY}="/home/username/.Xauthority", ENV{DISPLAY}=":0", OWNER="username", RUN+="/usr/local/bin/usb-0b05_1b2c-in_udev"

ACTION=="remove", ENV{ID_MODEL}="ASUS_Zenbook_Duo_Keyboard", RUN+="/usr/local/bin/usb-0b05_1b2c-out_udev"

Now, to get your laptop keyboard working when removed, in bluetooth mode, one must

  1. Ensure bluetooth-ctl is running and initiate 'pair' in Bluetooth by clicking 'Create pairing with this device' (key icon in the 'Blueman-Manager' window)
  2. Turn on bluetooth (switch on the left of the keyboard)
  3. Remove the keyboard
  4. Hold F10 for 4-5 seconds until its blue LED starts blinking rapidly (kbd in pairing mode)
  5. Watch your desktop notifications for the connection message with the BT challenge pin code (6 digits)
  6. type the challenge PIN code on the keyboard
  7. Now the keyboard should be paired.

... now if only I could get the sound device (Intel HD Audio) and brightness control working for both screens!

View original on lemmy.ca
20
science·SciencebyArghblarg

Question: What mineral/compound do modern arthropods use for their eyes (vs. Trilobites with their calcite lenses)?

I was searching online for quite a while this evening, chasing a half-remembered bit of trivia, that trilobites were supposedly unique in their use of calcite for their lenses, composing the ommatidia of their compound eyes.

It must be so obvious to scientists in the field of studying insects that they never mention it in their papers...

So, what compound(s) do modern arthropods use in their compound eyes. If it isn't calcite, what do modern 'bugs' use?

View original on lemmy.ca
24
APL·APL - A Programming LanguagebyArghblarg

APL Keyboard Sticker Set

Whether you are an old hand at APL, or someone just discovering the language, having the symbols in the standard layout right there on your keyboard is a great help... dedicated APL keyboards are pretty expensive, so consider these stickers that let one adapt any standard desktop or laptop keyboard!

APL keyboard sticker set on Tindie

To set up your keyboard for APL programming on Linux, see here.

APL Keyboard Sticker Sethttps://www.tindie.com/products/russtopia/apl-keyboard-symbol-sticker-set/Open linkView original on lemmy.ca
8
showerthoughts·ShowerthoughtsbyArghblarg

Would Sentinel Island still be untouched in the Star Trek Universe?

If you haven't heard of it, this island has a population that the world has collectively decided to leave alone, mostly because they have proven, on multiple occasions, that they absolutely do not want visitors. Like, arrow-to-death anyone attempting to land or even visit near their shores.

This probably cannot go on forever... but maybe, it could. Essentially, we are already implementing a 'Prime Directive' of sorts here. Would the 23rd, 24th, ... centuries in Star Trek canon still have this little island on Earth, isolated from not just from Earth's own unified Federation society, but from the greater Federation races? What steps would the Federation and Earth take to maintain their isolation and the ecosystem on which they depend?

Would make for an interesting episode, or at least a cool side-note reference in one :)

View original on lemmy.ca
105
APL·APL - A Programming LanguagebyArghblarg

Building GNU APL for Linux

GNU APL is easy to build on your own Linux machine, though the steps aren't detailed on the website.


Benefits of building yourself locally:

  • One can customize how many cores GNU APL has access to
  • Customizing optional extensions like PNG image, SQLite, GTK support etc.
  • Having the latest bugfixes

  1. Obtain the latest source

  2. Configure using autotools

    • cd trunk
    • make clean
    • ./configure CORE_COUNT_WANTED=3 RATIONAL_NUMBERS_WANTED=yes --with-ctrld_del

    Use ./configure --help to see other options, adjust to taste

  3. Build and install

    • make -j && sudo make install
  4. Set up your default workspace

    • cd ~
    • mkdir -p GNUAPL/workspaces

View original on lemmy.ca
1
gmecanada·GMECanadabyArghblarg

GME climbs over 22.5% in German Market 2024-05-13


🟩 70 minutes in: $21.40 / 19,86 € (volume: 168513)

🟩 65 minutes in: $21.18 / 19,65 € (volume: 160236)

🟩 60 minutes in: $21.07 / 19,55 € (volume: 157020)

🟩 55 minutes in: $21.02 / 19,51 € (volume: 149683)

🟩 50 minutes in: $20.98 / 19,46 € (volume: 140442)

🟩 45 minutes in: $20.95 / 19,43 € (volume: 133779)

🟥 40 minutes in: $20.77 / 19,27 € (volume: 127291)

🟩 35 minutes in: $20.80 / 19,30 € (volume: 123795)

🟥 30 minutes in: $20.77 / 19,27 € (volume: 116641)

🟥 25 minutes in: $20.78 / 19,28 € (volume: 108008)

🟩 20 minutes in: $20.80 / 19,30 € (volume: 101356)

🟩 15 minutes in: $20.49 / 19,01 € (volume: 90143)

🟩 10 minutes in: $20.43 / 18,95 € (volume: 75814)

🟩 5 minutes in: $20.31 / 18,85 € (volume: 57289)

🟩 0 minutes in: $19.56 / 18,15 € (volume: 43187)

🟥 US close price: $17.46 / 16,20 € ($17.39 / 16,13 € after-hours)

US market volume: 36.83 million shares

View original on lemmy.ca
5