AstroLightz

joined 2 years ago
[–] AstroLightz@lemmy.world 1 points 15 hours ago (4 children)

Math can help solve this:

m = 0.5 # human
h = 0.5 # horse

C = m + h # Centaur

So Centaur is 50% human, 50% horse. Half human, half Centaur would be:

# Expand
C / 2 + m
m + h / 2 + m

# Combine
(m + h / 2) + (2m / 2)
3m + h / 2

# Solve
3(0.5)[m] + 0.5[h] / 2
1.5[m] + 0.5[h] / 2
0.75[m] + 0.25[h]

Which is 0.75 human, 0.25 horse

Therefore, this hybrid is 75% human, 25% horse

To answer your question: This would probably be a human with a horse tail, and 2 horse legs.

[–] AstroLightz@lemmy.world 4 points 3 days ago* (last edited 3 days ago)

It's better to start over from scratch than it is to try to reorganize a huge code base.

Therefore, Internet 2.0, where it's only IRC channels for support, forums as "social media", and simple file sharing sites for your video and image content. You don't need anything else.

Apply the Linux mentality to the Internet 2.0 and it won't be so bloated with slop.

EDIT: Oh, and no JavaScript! That can stay quarantined with the Internet 1.0

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

Subbed for sure.

The only anime I've ever watched dubbed was Cyberpunk Edgerunners due to my playthrough of the game being in English.

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

Python. I updated my post with some more info.

 

Let's says you want to make a program that takes user input and follows the CRUD structure for some data. This program would be executed from the terminal and wouldn't be used in any other projects.

If this program was made in a language that supports creating packages for other programs (e.g. Python, Rust, NodeJS), should this program be a 'package', or should it be a standalone program that has a simple "setup" script?

Assume this is a CLI/TUI app that runs in a Linux terminal.

EDIT: I'll provide some more details since it seems I was too vague:

This program would allow the user to create 'Script' objects that would be saved to a file on their system. These objects would contain metadata such as a name, the command to run, and a description.

These Script objects would only be used by this program, and by the user. (i.e not a system program)

[–] AstroLightz@lemmy.world 6 points 4 days ago

No Claude? No problem! Just ask one of the many other LLMs for the answer. Easiest million ever!

/s

[–] AstroLightz@lemmy.world 3 points 6 days ago

I want to code, but I don't know what to make that I would actually use.

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

I have a joke about piping to /dev/null, but you wouldn't get it.

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

Do you think ~~that these CBS employees should unionize and go on strike~~?

Yes

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

How OP probably felt:

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

A shell script to create shell scripts.

Basically, it takes a file name, then creates a .sh file, and puts the shebang #!/use/bin/env bash into it.

Very simple, yet it saves me from having to manually do it every time.

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

I've had it for as long as I can remember, so I'm pretty used to it. However, sometimes it gets really bad for a bit and it's annoying.

I'm not too bummed about not experiencing true silence as I listen to music most of the time anyway.

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

Playing with water, I see.

 

cross-posted from: https://lemmy.world/post/46764460

Question for People Familiar with Sphinx Documentation

So, I'm making documentation for my project using Sphinx with hatch/hatchling. I'm currently using the sphinx-rtd-theme as my theme. I already make a quickstart page for my project, but the src directory page is included in the sidebar. I would like to rename it to "Source Files", but when changing the header in my modules.rst file, it gets reset each time I build.

The main extensions I'm using for Sphinx are 'sphinx.ext.todo', 'sphinx.ext.viewcode', and 'sphinx.ext.autodoc'.

For context, my project structure looks something like this:

my_project/
| ---- requirements.txt
| ---- README.md
| ---- src/
| -------- my_project_module/
| -------------- __init__.py
| -------------- foo.py
| -------------- bar.py
| -------- docs/
| -------------- requirements.txt
| -------------- requirements.in
| -------------- conf.py
| -------------- modules.rst
| -------------- index.rst
| -------------- quickstart.rst
| -------------- my_project_module.rst
| -------------- _static/
| ------------------ some_img.png

Is there a way to change the display name of my src directory without renaming the actual directory in my project?

Also, is there a way to reorder the list so my quickstart guide shows up above the source page?

 

I'm currently unable to hear in one ear, but while eating, I can "hear" my chewing in both ears. Is this just a me thing or does this happen to other people?

 

I'm in the market for a monitor for programming. Ideally:

  • A monitor that can be adjusted vertically
  • A monitor that can rotated 90 degrees, so the long side is vertical

Either one of these (or both) specifications is preferred, though both is not necessary. I'm on a budget, so nothing more than $500 USD.

Display rate doesn't matter (60hz is fine), and 1080p is fine too.

Anyone know of any good monitors like this?

Edit: By "rotated 90 degrees", I'm referring to the monitor being able to rotate on its stand, not being mounted on its side.

 

I have a laptop I take with me that has UFW. I want to allow Syncthing from my home subnet and another place. Is there a way I can do that without allow from anywhere?

Additionally, is the default ufw allow service-name/port, where it allows from anywhere, insecure? Like, does it open the port to the internet, for anyone to see or connect to?

 

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.

 

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 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?

 

cross-posted from: https://lemmy.world/post/38389020

With the recent false banning of tech channels, such as Enderman, I really want to find alternative platforms to watch tech content. I know a few YouTubers who have channels on Odysee, PeerTube, etc. However, I would rather watch them in a desktop app as opposed to a web browser.

Is there any desktop QT applications for Linux (ideally Arch BTW) that allow me to watch videos from a decentralized video platform, such as PeerTube? Ideally, it would use QT as I'm using KDE Plasma, but if they're aren't many, then GTK is fine too.

As a bonus: Something similar to FreeTube, which is what I use for YouTube. If it's something similar, it doesn't have to be QT as I know FreeTube isn't.

 

I recently de-googled my phone by installed Lineage for MicroG. I want to find a good FOSS firewall app to use. I don't want a firewall app that just uses a VPN as its method of running.

On a test device, I've been using AFWall+, however that hasn't been updated in 2 years (At least on F-Droid). It works great, but I'm not sure if there is something more up-to-date.

 

I'm not creative, so I made these templates for everyone.

Alternative template with D: face on bottom:

view more: next ›