Spyke

Posts

unpopularopinion·Unpopular OpinionbyAstroLightz

Cold meals are superior to hot meals in almost every way

When I refer to "cold meals", I'm talking about temperature (Cold, cooked meals).

To me, cold meals taste much better compared to hot meals. With chili, for example, the flavor becomes more rich after it has cooled down.

Additionally, cold meals are less messy than hot meals. For instance, melted cheese and grease from meats will harden when refrigerated, thus no longer dirtying the hands.

Finally, consuming hot meals can put you at risk of burning your mouth, causing prolonged pain (which sucks BTW). Cold meals do not have this issue.

IMO, the only benefit hot meals have over cold meals is warming you up and (for some meals) being ready to consume immediately after preparing it.

View original on lemmy.world
318

Project structure for compat package with different dependency?

So I have a Python package following the project structure outlined by the Python Packaging User Guide (Without the tests/ directory). Let's call it Package A.

This package can be used alongside another package, Package B, however no proper compatibility exists in Package A to support Package B's rendering system.

I want to make a compatibility package, Package AB, to make Package B's systems work with Package A. It shares the same dependencies as Package A, however it has Package B as a dependency.

How should I setup my project structure for Package AB? Should it be its own project directory? Should it be nested inside Package A's src directory?

Additionally, I have Sphinx /w Hatch setup with Package A for documentation. Depending on the setup chosen above, how should I setup documentation for Package AB?

Some things to note:

  • Package AB would use classes and methods from Package A and Package B
  • Package B's license (MIT) is compatible with Package A (GPLv3). Package AB would be licensed under the same as Package A

If more details are required, let me know.

View original on lemmy.world
5

[Android] Gradle: Get or Change build output directory from terminal?

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

(I'm not sure this fits this sub, but my script is for building android apks)

For a script I'm making, I'm looking for a way to either get the build output directory Gradle uses, or change it to something different.

I'm aware you could edit one of the gradle files in a project, but my script requires not altering the android app project (It only uses gradlew / gradle.bat that comes with it to build)

Is there some way to change gradle's build output directory, or if not, a way to get it from the command line?

View original on lemmy.world
10
programming·ProgrammingbyAstroLightz

[Android] Gradle: Get or Change build output directory from terminal?

For a script I'm making, I'm looking for a way to either get the build output directory Gradle uses, or change it to something different.

I'm aware you could edit one of the gradle files in a project, but my script requires not altering the android app project (It only uses gradlew / gradle.bat that comes with it to build)

Is there some way to change gradle's build output directory, or if not, a way to get it from the command line?

View original on lemmy.world
10

Open-World Games with Drivable Motorbikes?

I'm looking for good Steam games to wishlist for the Steam Summer Sale coming soon. Mainly, I'm looking for any open-world game that features motorbikes/motorcycles as drivable vehicles.

It doesn't have to be a racing game. (Side tangent: I wish Forza Horizon 6, or any Forza game, had motorbikes in it.)

Games I already have that do have bikes in them:

  • Cyberpunk 2077
  • GTA IV and V
  • Burnout Paradise
  • Just Cause 2 and 3
  • Saints Row 2, 3 and 4
  • Watch_Dogs 1, 2, and Legion

Also, please only recommend games that can still be purchased (mainly on Steam).

View original on lemmy.world
65

PC Games like Legend of Zelda: Breath of the Wild

I'm looking for any games on PC (preferably Steam) that plays like The Legend of Zelda: Breath of the Wild.

Mainly, I'm looking for large, open-world games, with lots of things to do, with an over-arching narrative/destination available. Think Minecraft, with but an actual definitive objective to complete.

I'm aware of Fromsoft's work (Elden Ring), but I'm looking for non-soulslike games.

View original on lemmy.world
159
programming·ProgrammingbyAstroLightz

What type of program should this be?

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)

View original on lemmy.world
11

[Python] Question for People Familiar with Sphinx Documentation

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?

View original on lemmy.world
9

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?

View original on lemmy.world
4
asklemmy·Ask LemmybyAstroLightz

Budget, adjustable monitor for programming?

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.

View original on lemmy.world
30

UFW: Allow from multiple subnets?

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?

View original on lemmy.world
14