AstroLightz

joined 2 years ago
[–] AstroLightz@lemmy.world 1 points 1 hour ago

I too would like that TACO to go

[–] AstroLightz@lemmy.world 2 points 1 hour ago

About 160° (~2.79 rad). Been slouching too much and need to fix my posture.

[–] AstroLightz@lemmy.world 5 points 2 days ago

Accidentally wrote a 2GB 'nohup.out' file when I forgot I had a script running as nohup in the background without redirecting STDOUT and STDERR to /dev/null.

Basically, I forgot to prevent saving the output of my program to a file, and it created a massive file because of it.

2GB might not seem like much, but this was on a server with ~5GB free space left. Could have been worse had I not caught it sooner.

[–] AstroLightz@lemmy.world 34 points 2 days ago (2 children)

I can think of a way out:

Just throw the whole PC away. It's someone else's problem now!

[–] AstroLightz@lemmy.world 1 points 5 days ago (1 children)

Imagine social media as an upsidedown parabola (like an arc), where the x axis is time, and the y axis is quality.

The start of a new social media platform would be towards the bottom left. As they grow and add new features, their quality improves. Over time, however, they will 'peak' in quality. Then, they begin to introduce anti-consumer practices, such as API restrictions, ads, sponsored posts, etc. Their quality dwindles until either the platform shuts down or becomes a horrible echo chamber.

Using this analogy, Reddit right now would be in the latter half of the graph, as it has become an echo chamber filled with bots, ads, and API restrictions.

Lemmy currently is more like approaching the peak for the parabola. It's great for now.

Sure Lemmy is open-source, self-hostable, but it's potential downfall would be its userbase. It's starting to have the same issues as Reddit: Don't comply with every else's opinions, get downvoted to oblivion. Of course, downvotes don't mean much on here, but getting banned would.

In its own way, Lemmy is starting to become an echo chamber for tech/Linux enthusiasts, radicals, and those exiled from Reddit.

[–] AstroLightz@lemmy.world 1 points 1 week ago

Time to lose 100+ hours in Satisfactory.

[–] AstroLightz@lemmy.world 1 points 1 week ago

After I use it each time??

[–] AstroLightz@lemmy.world 3 points 1 week ago (1 children)

I looked at the guide you linked. So in my __init__.py file, I should import each public name I want from my files, then add them to the __all__ list like this? (I want to make sure I understood the guide correctly)

from file_1 import SomeClass
from file_2 import AnotherClass

__all__ = [
    "SomeClass",
    "AnotherClass",
]
 

Title is kinda confusing, but basically, I followed the Python packaging process to set up my Python package development environment. My project structure is layed out the same, except for a .venv in the root directory (not in src), and additional Python files in the src/package_username directory.

I can build my package fine, but when I go to import it into other projects, I have to import it like import package_username.file or from package_username.file import SomethingInFile. For other python packages, I would only need to do import package or from package import Something.

How can I set up by build process to remove the need for the first portion in my import statements so it matches other packages like termcolor? Is there something I need to add in my __init__.py file?

[–] AstroLightz@lemmy.world 3 points 1 week ago (1 children)

Should be Higher (-2) because I have MicroG installed, and it misidentifies them as the proprietary GMS since they share the same app ID.

[–] AstroLightz@lemmy.world 0 points 1 week ago

I'm targeting a Linux release

Your 3, I'm not sure to understand what you want to do.

I don't want the active MPV file info in the terminal as if I CTRL+C, CTRL+D, or close the terminal, MPV will close too. So I want it to run as a background process (like how you can minimize VLC to the tray)

I don't know if using something like nohup mpv <some file> & would work. I guess I could use pkill mpv to close it then.

I saw mpv has a --quiet option. What does that do?

 

I have a music script I'm working on that uses VLC as its backend for playing music in the background. However, I was looking around the MPV CLI arguments, and there's quite a few things there that would work for my script.

However, I have a few issues with MPV before implementing this addition:

  1. I don't want a window to appear whenever I launch MPV.
  2. I want MPV to remember certain properties, like volume.
  3. I don't want the CLI info displaying in the terminal. This would cause issues as now MPV will close when the terminal closes. I need this to run in the background, like VLC.

I've kinda managed to solve 1. by using --no-vid, but I haven't figured out 2. or 3. yet. Does anyone know any tips, tricks, arguments, etc. to get the desired experience I want with MPV?

It's a Python program, so I am using subprocess currently.

[–] AstroLightz@lemmy.world 10 points 1 week ago (6 children)

I think the main problem lies in the community.

Not everyone, but a few vocal rotten apples are hostile to new users who either:

  1. Don't already know the answer to their own question

  2. Are not using their distro

  3. Didn't immediately read the wiki entry for their exact problem

This kind of gatekeeping is why some people are put off of Linux and the community as a whole. Just because someone asks a question you think is obvious, doesn't mean it's obvious to them.

[–] AstroLightz@lemmy.world 8 points 1 week ago

Metric. Imperial is a fucking mess. At least with Metric, most size measurements are 10 to the power of something.

 

For example:

class FooBar:
    def __init__(self):
        self.a: int = None
        self.foo: str = None

Is this bad practice/go against PEP guidelines or is it fine?

 

Prior to this update, I remember being able to hold down the use button and the tool would keep being used (Mainly the hammer). However, it seems like this was changed as now holding it down only registers one command (one hit).

Anyone else having this issue or could it be one of my mods?

 

I'm making a Python script to play music through VLC and I wanted to add a way to control audio playback of VLC, like pause/play, next/previous, etc.

I know I can change shuffle mode before launching VLC with the --random and --no-random arguments. However, is there a way to change playback settings through the Linux terminal while VLC is running?

 

I've been using LibreOffice for a while now, and while I do enjoy it, its spelling/grammar checking are hit or miss more often than not.

I've been using WritingTool for my spelling and grammar, and it seems to work well sometimes, but others it gets things wrong. I have had the (un)fortunate pleasure of having to use Microsoft Office for work reasons, and while I dislike most of what Office provides, to me at least, its spelling/grammar check seems better than WritingTool (Providing suggestions WritingTool doesn't, better grammar & proper noun detection, etc).

I'm looking for any good alternatives to WritingTool or ways to improve its checking behavior/accuracy. If the later, what rules or settings do you use to make it perform better?

If it's necessary to know, I'm using Arch Linux, though I'm sure Extensions for LibreOffice would work on any OS.

 

I recently played Palworld, and while the game suffers from many problems, one thing I really liked about the game was the base pals system, where you assign pals to do certain tasks based on what skills they have. They could mine, cut trees, craft, smelt stuff, etc. They could store the products in storage containers automatically as well.

Are there any Minecraft Java mods that do something like this? I'm aware of MineColonies, but that is more on a larger scale than, say, a small base.

 

I know in older versions I used a few months ago, the project and clip monitor were not in a vertical window like this. On startup, it asked if I wanted horizontal or vertical as a default profile, and I chose horizontal, but it gave me this layout?

Is this just a Endeavour/Arch thing on my end or is this happening to others as well?

 

So recently, I ended up getting sick from an event I went to. I took sick leave from my employment, and I have a few days to rest. I don't want to just stay in bed, however.

So, what games do you like to play when your sick? Something that doesn't require too much thinking to play.

 

Now, don't get me wrong, I like the premise of GrapheneOS. The security features it offers are great. However, you're sacrificing useful hardware features by using it.

Currently, the only phones that support GrapheneOS are Pixels, which lack the microSD card slot, dual sims, and a HEADPHONE JACK! To me, those features are not worth sacrificing for a little extra privacy.

Compared to LineageOS, however, they support a broad range of devices, even pixels. I can look through their supported devices and find one that has a headphone jack, microSD card slot, dual sims, etc. Yes, it's less private than GrapheneOS, but it's still more private than stock android or any of those other OEM roms (OneUI for example).

You can still keep some privacy using LineageOS while preserving functionality with projects like MicroG.

Overall, I think for the time being, unless you are really paranoid or live in a anti-privacy area, LineageOS is the better OS to use than GrapheneOS due to still gaining some level of privacy while preserving useful hardware festures. Once GrapheneOS branches out from Pixel phones, I might change my opinion.

 

I have LineageOS for MicroG 22.2 on my phone. I have also rooted my phone using Magisk.

I want to update my LineageOS version (newer build of 22.2, not to 23), and I want to confirm that the process I plan to take would be correct.

  1. I know to uninstall Magisk, then install the update without rebooting, then install Magisk to the inactive slot.
  2. Since I'm not using MindTheGapps, I'm pretty sure I don't need to reboot into recovery to sideload anything. Therefore, I can just reboot as normal.

For LineageOS for MicroG, is this all I need to do or am I missing something?

 

I currently use a DualShock 4, and I'm looking for an Xbox layout controller for PC that is ergonomic. I was looking at the 8BitDo Ultimate 2 for its extra buttons and Xbox style, but I'm not sure how ergonomic it is.

Additionally, with the announcement of the Steam Controller (2), I'm waiting for that to release to see what people think as well.

Bonus question: Are there any controllers you have used that feels comfortable or is ergonomic?

view more: next ›