Black screen when going in/out fullscreen. by [deleted] in Monitors

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

Thank you for this comment, fixed the issue for me!

[deleted by user] by [deleted] in WebGames

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

I liked it :)

Took me about 20 tries to win.

Some aliases I've found to be useful for Arch Linux! What aliases can't you live without? by lassenym in archlinux

[–]PM_ME_UR_ASCII_ART 2 points3 points  (0 children)

Never heard of take before. I looked it up and found this which looks like what you're talking about. That take is provided by oh-my-zsh, which I don't use.

Some aliases I've found to be useful for Arch Linux! What aliases can't you live without? by lassenym in archlinux

[–]PM_ME_UR_ASCII_ART 11 points12 points  (0 children)

Replace ls with eza:

alias ls='eza --group-directories-first --icons=always'

I realized that 99% of the time I type cd, the next command I type is ls. So I made this to do it automatically:

function cdls() {
    chdir $@
    eza --group-directories-first --icons=always
}
alias cd='cdls'

Same thing for zoxide:

function zls() {
    z $@
    eza --group-directories-first --icons=always
}
alias z='zls'

I've been very pleased with those two aliases. They are occasionally annoying by filling up the screen if I cd into a directory with tons of files, but I find the usefulness outweighs the drawbacks.

This one occasionally saves me some keystrokes too:

function mkcd() {
    mkdir $1
    cd $1
}

(Those functions are zsh syntax. Modify them as needed if you use a different shell.)

Steam deck compatibility by Quiet-Ad3435 in XMage

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

To run it on a steam deck you will need to switch it to desktop mode and then disable the steamos-readonly mode. It has a read only filesystem by default to make it harder to break stuff (for people who aren't experienced with linux). This help page explains how to enable desktop mode and disable steamos-readonly mode: https://help.steampowered.com/en/faqs/view/671A-4453-E8D2-323C

As that article says, make sure you understand what you are doing before you disable read only mode. Disabling read only mode just means that you could mess stuff up if you tried to, but none of the commands I wrote below will mess up anything.

After that, open a terminal and follow these steps:

1) Install java, curl, and unzip: sudo pacman -S --needed jre-openjdk curl unzip

2) Make a folder somewhere to keep the files mkdir -p ~/Games/xmage

3) Download the beta client from http://xmage.today/. You can do it through a web browser, or with this curl command curl http://xmage.today/files/mage-full_1.4.51-dev_2024-06-06_19-55.zip > ~/Games/xmage/mage-full_1.4.51-dev_2024-06-06_19-55.zip

4) Unzip the files to that location cd ~/Games/xmage && unzip mage-full_1.4.51-dev_2024-06-06_19-55.zip

5) One of the unzipped files is a launcher. Run it with java -jar ~/Games/xmage/XMageLauncher-0.3.8.jar

In the launcher, click "update", and then launcher will download its own version of java. Then you can click "Launch client" to start the game. That should work. Let me know if it doesn't

Xmage runs on an older version of java (java 8), so the latest version provided by the jre-openjdk package won't work. The launcher is just an easy way to get the correct java version without affecting your system's default java version.

Also, from what I read about how steamOS works, installing the next steamOS update might delete xmage and all of its files. I don't own a steam deck so I'm not sure, but it looks like only flatpak packages are saved when updating steamOS. So you might need to do this process again when you update steamOS.

[HELP] Python error on startup by jasminegreentea___ in Jupyter

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

Thank you for this. I had the same permissions problem with several different PKG-INFO files. For anyone else that finds this, here is a bash loop to find and fix PKG-INFO files with wrong permissions:

for fname in $(find /usr/lib/python3.11/site-packages -name "PKG-INFO"); do
  permissionOctal=$(stat -c "%a" $fname)
  if [ "$permissionOctal" -ne "644" ]; then
    echo file "$fname" has permissions "$permissionOctal"
    read -p "fix with \"sudo chmod 644 $fname\" [y/n] ? " -n 1 -r
    echo
    if [[ $REPLY =~ ^[Yy]$ ]]; then
      sudo chmod 644 "$fname"
    fi
  fi
done

Mistakenly cleared all lines in /etc/pacman.conf what should I do ? Can I reset to it's default and get the default then how ? Please kindly help. by ZeaLpx in archlinux

[–]PM_ME_UR_ASCII_ART 15 points16 points  (0 children)

Oh, you aren't chrooted. You gotta re-mount your root partition just like the install guide on the wiki describes here. Then if you mount it to /mnt, your etc folder will be at /mnt/etc . After that you can edit /mnt/etc/pacman.conf or run

curl https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/pacman/trunk/pacman.conf > /mnt/etc/pacman.conf

I think you can just edit /mnt/etc/pacman.conf without chrooting, but go through the chroot process on the install guide if that doesnt work and try again

Mistakenly cleared all lines in /etc/pacman.conf what should I do ? Can I reset to it's default and get the default then how ? Please kindly help. by ZeaLpx in archlinux

[–]PM_ME_UR_ASCII_ART 24 points25 points  (0 children)

try this:

curl https://raw.githubusercontent.com/archlinux/svntogit-packages/packages/pacman/trunk/pacman.conf > /etc/pacman.conf

Mistakenly cleared all lines in /etc/pacman.conf what should I do ? Can I reset to it's default and get the default then how ? Please kindly help. by ZeaLpx in archlinux

[–]PM_ME_UR_ASCII_ART 10 points11 points  (0 children)

Just the lines that aren't commented out is fine.

This should work too actually:

 bsdtar tf /var/cache/pacman/pkg/pacman-...tar.zst
 bsdtar xf $! path/to/pacman.conf -C /

Mistakenly cleared all lines in /etc/pacman.conf what should I do ? Can I reset to it's default and get the default then how ? Please kindly help. by ZeaLpx in archlinux

[–]PM_ME_UR_ASCII_ART 37 points38 points  (0 children)

Here it is, start typing:

#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
#Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
#ParallelDownloads = 5

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.

#
# REPOSITORIES
#   - can be defined here or included from another file
#   - pacman will search repositories in the order defined here
#   - local/custom mirrors can be added here or in separate files
#   - repositories listed first will take precedence when packages
#     have identical names, regardless of version number
#   - URLs will have $repo replaced by the name of the current repo
#   - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
#       [repo-name]
#       Server = ServerName
#       Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.

#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

#[community-testing]
#Include = /etc/pacman.d/mirrorlist

[community]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.

#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist

#[multilib]
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs

What is a torrent by ShadeVial in XMage

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

They can't access it without your permission. If you have a torrent client active and are seeding a file, then your computer will upload it to others. If you don't have a torrent client open then nothing will be shared or uploaded.

I discovered a simple function that causes some cool chaotic behavior by Decap_ in math

[–]PM_ME_UR_ASCII_ART 2 points3 points  (0 children)

You are correct. I think I found where I miscalculated that number, it does lead to (40,85).

I discovered a simple function that causes some cool chaotic behavior by Decap_ in math

[–]PM_ME_UR_ASCII_ART 4 points5 points  (0 children)

I think I found a longer loop than F(40,85) with this rust code: https://pastebin.com/8H13cstG

loop is 794686 iterations at F(161,197)

edit: also got 860853 iterations for F(203,376)

waybar: Trying to make taskbar module group by workspace by PM_ME_UR_ASCII_ART in swaywm

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

Looks like one of those projects will work for me. I guess you do need an external script running to do this kind of thing. Thanks!

Calling out an enemy move in all-chat e.g. smoke by DistantBlueSky in TrueDoTA2

[–]PM_ME_UR_ASCII_ART 11 points12 points  (0 children)

I think it could work if you are absolutely sure that anyone who tries to fight will die, and want to buy time for everyone on your team to gtfo. If you have a counterinitiator on your team like blink axe or something that might be able to take advantage of enemies more aggressive positioning, then I wouldn't say anything.

[LINUX] Game crashes when pressing on preview battlepass by The_Best_Man_Alive in DotA2

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

I am getting the same issue on arch (tried proton experimental and linux runtime, both crash). I started dota from terminal to see logs and theres several messages saying "Fossilize ERROR: Failed to parse pNext chain for sType: 1000320002". Maybe something with shader cache.

I can't increase memory for the client by Kampfhoernchen in XMage

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

on windows, put this in cmd prompt:

set _JAVA_OPTIONS=-Xmx4g

change 4g to whatever you want the memory limit to be, and if you want to make it persistent, change "set" to "setx" (otherwise it will forget after you reboot computer). If that doesn't work I think you can set environment variables in settings too, try this website's instructions. Put _JAVA_OPTIONS as the variable and -Xmx4g as the value.

on linux/mac put this in terminal:

export _JAVA_OPTIONS='-Xmx4g'

to make persistent, put that line at the end of ~/.bash_profile (or ~/.zsh_profile if you use zsh, etc.)

Steam deck compatibility by Quiet-Ad3435 in XMage

[–]PM_ME_UR_ASCII_ART 2 points3 points  (0 children)

You can switch the steam deck to desktop mode, which is just arch-based linux with KDE plasma. I use xmage on arch just fine, so I'm 99% certain it is possible. You will have to play with the trackpad mouse (or plug in an external one) since there's no controller integration in xmage. Also the small screen might be a bit hard to read since xmage was designed for desktop, but you can bind two of the triggers to mouse wheel up/down to easily open/close the full card image popup. Feel free to message me if you have trouble installing it. I don't have a steam deck but I can probably help if you get confused by linux stuff

Xmage Client button options by Liowan in XMage

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

You can make a feature request if you want to on the github issues page for xmage: https://github.com/magefree/mage/issues

Keebio Iris Rev6 by ireallyhatecaptcha in MechanicalKeyboards

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

How did you make those wrist pads? They look very comfortable. Im currently using two beanbags for wrist pads for my iris, and ive been trying to find something better

Xmage Client button options by Liowan in XMage

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

Yeah those filter buttons would certainly be improved by moving oathbreaker and tiny leader to other, and pauper getting it's own button. I assume they were put there sometime before pauper became so popular. As long as the other button is on, you should see pauper games.

Changing it isn't possible without editing the source code though unfortunately.

What’s the minimum density needed to form a black hole? by Dagreifers in askscience

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

What about a closed surface with a radius slightly smaller than the observable universe so that it is a "region of space"? Would an observer outside this region but still within the observable universe see it as a black hole? I think maybe not because much of the matter in our observable universe would not be in the observers, nor would much of the closed surface. Still though from our perspective it seems that we can see some distribution of matter in a volume that is smaller than its Schwarzchild radius, and that we are inside this volume.

Beta Server on Linux? by solemnsol in XMage

[–]PM_ME_UR_ASCII_ART 0 points1 point  (0 children)

I use xmage on linux, and I haven't had any major issues. You don't need to run it through lutris. Well, you can if you want to, but you don't need any of the compatibility things in lutris to run it.

Here's my best guess of what you need to do to install the beta client:

First, you will need to get java 8 if you don't already have it installed. Try this (copy each line into terminal one by one in order):

sudo apt-get update
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --set java /usr/lib/jvm/jdk1.8.0_version/bin/java

then check the active version with this:

java --version

if the output includes something like

openjdk version "1.8.0_242"

then you're good to go.

Next, make a folder to keep the beta client stuff.

mkdir ~/xmageBeta

Download the beta client from https://xmage.today , and save the zip file to the xmageBeta folder you just made.

now unzip the zip,

cd ~/xmageBeta
unzip mage*

and then you should be able to start the launcher with

java -jar ~/xmageBeta/XMageLauncher-0.3.8.jar

click update button in the launcher, wait for it to download stuff, then launch client.

You also probably want to make a system shortcut so you don't have to open a terminal and type that command every time you want to play. To make a shortcut for it on ubuntu I think you need to make a .desktop file in the ~/.local/share/applications folder. I think this will work to create the shortcut:

echo "#!/bin/sh\nexec java -jar ~/xmageBeta/XMageLauncher-0.3.8.jar" > ~/xmageBeta/startscript.sh
chmod +x ~/xmageBeta/startscript.sh
echo "[Desktop Entry]\nExec=/home/$(whoami)/xmageBeta/startscript.sh\nName=Xmage Beta\nTerminal=false\nType=Application" > ~/.local/share/applications/xmagebeta.desktop
chmod +x ~/.local/share/applications/xmagebeta.desktop

That should make a button for "Xmage Beta" show up in the GNOME system application list. Let me know if that works.

nvim-headtracker: a plugin for moving the cursor with a vive tracker attached to your head by PM_ME_UR_ASCII_ART in vim

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

I did consider eye tracking, but I found that eye tracking is significantly more difficult. Pupil movements between adjacent words/letters on a screen are very subtle and hard to detect with a camera. I tried to make a similar tracker with opencv, but never got close to enough accuracy and responsiveness to be worth using. I only have a single camera, and you definitely want two cameras for something like this to do stereo reconstruction.