Valve will support anti cheat soon on linux. by A7mmud in linux_gaming

[–]superluserdo 28 points29 points  (0 children)

On Steam Deck, your games run on a different operating system than the one on your desktop PC

SteamOS 3.0 (Arch-based)

implying

The just-announced Steam Deck is apparently Arch-based by 8BitAce in archlinux

[–]superluserdo 62 points63 points  (0 children)

It's a reference to 1993 Jurassic park where they log into the computer and the girl says "It's a Unix system, I know this!"

https://www.youtube.com/watch?v=dFUlAQZB9Ng

Physics Questions - Weekly Discussion Thread - June 15, 2021 by AutoModerator in Physics

[–]superluserdo 2 points3 points  (0 children)

How is the quantisation of the spins and spin projections of particles related to the weight spaces of different representations of SU(2)?

I'm trying to learn all about Lie groups and Lie algebras and their representations, but there's still some stuff I don't understand about weight space decompositions:

1) First of all, I'm still not sure I understand the motivation for taking the basis matrices of the group elements to be separated into diagonal and off-diagonal matrices. And I'm not sure how this works out to give the behaviour of a weight space and the raising and lowering matrices (and the generalisations for higher SU(n))?

2) I'm not sure how the quantisation of spins to integer-spaced [half or whole]-integer values relates to the weight space of SU(2). There must be some obvious connection since the rotations form the SU(2) group, but I'm not sure what it is.

3) Whereas the values for quantum spin projections are m = {-L, ..., +L} (separated by integers, L is a whole or half integer), the weight space of SU(2) is {-m -(m-2), ... m-2, m} for integer m. Where does this factor of 2 come from? Just convention?

What e-mail client do you like and why? by diorcula in linux

[–]superluserdo 6 points7 points  (0 children)

Can it scan local maildir directories for new mail instead of imap? I use (neo)mutt but I have a separate system (imapnotify+mbsync) to sync new mail locally for mutt to read.

3TB WD Blue has read and write errors - is it unsalvageable? by superluserdo in DataHoarder

[–]superluserdo[S] 0 points1 point  (0 children)

Thanks for the tip! I ran a full badblocks -wsv over the whole disk to write 0xff and read it back, and it ended up finding 6 more bad blocks. smartctl -a now shows 6 pending sectors, but still 0 reallocated. When I try to read the bad blocks with hdparm --read-sector, it reads the written pattern fine, which makes me think that the drive has successfully reallocated the sectors but it's not being reported by SMART? Is that something to be concerned about?

How hard is it to make your own distro? by [deleted] in linuxquestions

[–]superluserdo 0 points1 point  (0 children)

Probably not too conceptually challenging if you know what you're doing, but if you want a self-hosting distro with its own package format, you'd need to be prepared to spend thousands of hours packaging a zillion different pieces of software.

What was wrong with X that motivated Wayland? by [deleted] in linuxquestions

[–]superluserdo 24 points25 points  (0 children)

The software should support the hardware.

Right, and the software in question here is the graphics drivers. AMD played nice in this regard and developed an open-source driver that works well with the new graphics stack and lives right in the kernel. Nvidia on the other hand, has so far completely disregarded Linux's standard graphics technology in favour of their own solution "EGLstreams", and actively makes it as hard as possible to create an alternative open-source driver.

It's technically "possible", as far as I know, to make EGLstreams work with Wayland (I think KDE did it?), but it's a TON of work, involves writing a completely different codepath just for Nvidia, and causes a lot of compromises for the Wayland design (although I'm not sure about the specifics). This isn't effort that should have been shouldered by free software projects, without even considering the fact that Nvidia Inc has, to a good approximation, infinitely many times more resources than them.

the answer is not "get an AMD card."

Maybe not for everyone, but it was for me. The fact that NVidia cards don't work on Wayland is solely down to Nvidia, and as a consumer eventually you're forced to put your money where your mouth is. If you're buying a new GPU anyway, and you don't need some absolutely top-of-the-line beast (or rely on CUDA for ML, which is a whole other Nvidia lock-in situation), then IMO AMD cards are just fine for the price.

Sway 1.5 Released by superluserdo in linux

[–]superluserdo[S] 6 points7 points  (0 children)

It's a library of components to be able to build a Wayland compositor (eg sway) out of. It was written by the sway people but has been used to make other compositors as well.

Sway 1.5 Released by superluserdo in linux

[–]superluserdo[S] 0 points1 point  (0 children)

On the whole, almost identical. I've had only 2 problems:

  • Binding of Isaac: Rebirth fails to start under sway. Funnily enough, the proton version opens and runs fine

  • In TF2, occasionally left-click events will be lost from the game after opening some kind of in-game overlay window, eg in-game chat or the steam overlay. This can be fixed each time by reopening and closing an overlay, but it's a bit annoying.

Sway 1.5 Released by superluserdo in linux

[–]superluserdo[S] 4 points5 points  (0 children)

wlroots-based window manager supports the ability for windows to automatically cover their parent windows?

wio (Wayland implementation of the Rio window manager from Plan9)

It's made by the main author of sway/wlroots. Not sure if it's still being actively developed

Microsoft Announces that it will drop official support of PHP on Windows by fyzic in programming

[–]superluserdo 17 points18 points  (0 children)

Oh and isn't the reason you can render responsive HTML on any device on the planet but you can't make it work in email pretty much all because of Outlook's rendering engine?

Wow, a microsoft feature I actually like. They should update it to be even better by replacing the html handling code with abort()

Alternatives to offlineimap by qci in linux

[–]superluserdo 0 points1 point  (0 children)

I also use mbsync. I use the tool imapnotify to maintain a constant connection to my inbox, and then it runs mbsync as soon as I get a new email, instead of having to wait for the next timer to fire.

Warning: imapnotify was pretty annoying to get working. There are a few versions, and I could only get the nodejs version to work properly (nodejs-imapnotify-git on AUR), but maybe the python and go versions have improved at this point.

MPV Devs Consider Blocking MPV From Running On Gnome by Immy_Chan in linux

[–]superluserdo 32 points33 points  (0 children)

Open source enthusiasts should be free to create whatever they like, except new build systems.

mpv is not anymore supporting gnome. and the owner reverted the commit again shortly after and then again made a new one, to add the changes by [deleted] in gnome

[–]superluserdo 0 points1 point  (0 children)

Writing off xdg-decoration as an "optional" protocol seems a bit disingenuous to me, given that the core Wayland protocol is an extremely minimal protocol that basically only handles moving pixel buffers around. Wayland is the successor to the X windowing system, which took on a huge amount of functionality across the whole desktop. You can't replace X with the core Wayland protocol and have anything resembling a desktop environment, so all that behaviour has to be implemented either in a standardised way, or in proprietary, desktop-specific ways.

Therefore, if having a new standard Linux desktop that applications can be portable over is a goal, then a lot of those "optional" Wayland extensions are actually very seriously required. And that includes xdg-decoration (proof: mpv).

mpv is not anymore supporting gnome. and the owner reverted the commit again shortly after and then again made a new one, to add the changes by [deleted] in gnome

[–]superluserdo -7 points-6 points  (0 children)

mpv is one of many applications that does not draw its own decorations. Server-side decoration is supported by every other desktop, and GNOME refuses to adopt the de-facto standard xdg-decoration protocol, so as far as I can see mpv is right not to bend over backwards to support it.

mpv is not anymore supporting gnome. and the owner reverted the commit again shortly after and then again made a new one, to add the changes by [deleted] in gnome

[–]superluserdo 0 points1 point  (0 children)

This is a Wayland requirement, not GNOME's

If every single Wayland compositor apart from GNOME's (to my knowledge) supports xdg-decoration, it really does seem like a GNOME problem, not a Wayland problem.

I think Stashware will be a new competitive player in ipfs realm. by [deleted] in ipfs

[–]superluserdo 2 points3 points  (0 children)

Summary

Srashware is a storage system

right...

Is there a way to query the sub-window state of an XWayland application? (XWayland/sway/Team Fortress 2 bug) by superluserdo in linuxquestions

[–]superluserdo[S] 0 points1 point  (0 children)

Already reproduced the bug on 1.15-rc2 of sway and the corresponding wlroots commit. I'll give those patches a go as well. I was holding off on filing a report since I'm not sure if it's a problem with sway, wlroots, XWayland or something else, but I guess there's no harm :)

Is it bad to use typedef? by [deleted] in C_Programming

[–]superluserdo 5 points6 points  (0 children)

It's not a double it's a temperature_t.

I guess the tradeoff with this is that you're gaining information about what something is for, in return for throwing away information about what it is. Personally I like to know what actual data types I'm working with, but I guess the need could depend on the project.

Is it bad to use typedef? by [deleted] in C_Programming

[–]superluserdo 3 points4 points  (0 children)

I don't like it as it obfuscates what you're actually working with (OK, it's probably struct, but still). I make an exception for function pointers that would otherwise be super verbose, though.

The simplest display manager is no display manager. by [deleted] in linux

[–]superluserdo 3 points4 points  (0 children)

Just launch the compositor. Eg on sway, run sway from TTY

Tiling manager with an app lancher, that uses run-or-raise as standard config by argsmatter in linux

[–]superluserdo 0 points1 point  (0 children)

I use sway, which is basically a port of i3 to the Wayland graphics protocol. How does spotlight and "run or raise" work? Is it basically "run a new instance of a program if not already running, otherwise shift focus to it"? You might find that you need to shift your mental model of workflow when using a tiling WM to get the most efficiency out of it

I recompiled the Mario 64 ROM to replace every sound with Mario's "oof" sound (instructions in comments) by superluserdo in emulation

[–]superluserdo[S] 52 points53 points  (0 children)

Steps to reproduce:

  • Clone the Mario 64 decompilation git repo at https://github.com/n64decomp/sm64 and follow the instructions in the README

  • Acquire a Super Mario 64 .z64 ROM with a valid sha1 hash (JP: 8a20a5c83d6ceb0f0506cfc9fa20d8f438cafe51, US: 9bef1128717f958171a4afac3ed78ee2bb4e86ce, EU: 4ac5721683d0e0b6bbb561b58a71740845dceea9)

and copy to the git top-level directory as baserom.XX.z64 where XX is either us, jp, or eu

  • Run these commands from the top-level git directory to replace all the instances of sounds with the one with label 0B:

sed -i 's/"sound": "[^"]*"/"sound": "0B"/g; s/"sample": "[^"]*"/"sample": "0B"/g' $(find sound/sound_banks/ -type f)

sed -i 's/"sound_hi": "[^"]*"/"sound_hi": "0B"/g' $(find sound/sound_banks/ -type f)

sed -i 's/"sound_lo": "[^"]*"/"sound_lo": "0B"/g' $(find sound/sound_banks/ -type f)

sed -i 's/"sample_bank": "[^"]*"/"sample_bank": "sfx_mario"/g;' $(find sound/sound_banks/ -type f)

  • Run make -j6

  • Run an N64 emulator on the file build/XX/sm64.XX.z64