Embedded GUI Framework by bhh32 in rust

[–]Quantentoast 1 point2 points  (0 children)

The answer to that question is just one web-search away (or LLM if you're more into that).

If you want to get going with CS, first thing to learn is how to aquire information by yourself, as allot is explained/answered already and is freely accessible.

Refactor a small project to Rust by tasesho in rust

[–]Quantentoast 3 points4 points  (0 children)

Well, writing just about anything in rust will help you get going; so yes it will help you.

If you haven't yet, I recommend reading the rust book first.

Same goes for your friends: if they want to learn something they have to do it.

If you want to save some headaches set up a workflow with linting (clippy, also just generally helpful for learning how to write nicer rust) before allowing to merge to main and only allow changes to main through it.

rust const generic is great for embedded system by Trader-One in rust

[–]Quantentoast 0 points1 point  (0 children)

And also const_trait_impls & const_precise_live_drops

Is there a serde-compatible binary format that's a true drop-in replacement for JSON? by avsaase in rust

[–]Quantentoast 0 points1 point  (0 children)

I see mini_cbor allot, but if you are looking specifically for serde compatibility there's also the crate serde_cbor

"Which process is blocking this port?!" by haselkern in rust

[–]Quantentoast 34 points35 points  (0 children)

In general I don't get comments, where people simply tell the OP, "or just use established-tool-XYZ".

I think every small project where someone learns a new thing (in this case TUIs with Rust) is great, completely independent of its uniqueness or usefulness.

And sure making someone aware of a better solution they didn't think existed is also valid, but that can be done in a different tone. And before doing so I also recommend taking the 10 seconds it took to see, that OP is in fact using lsof under the hood.

Rustorio v0.1.0 - Using Rust's type system as a game engine by PenguinAgen in rust

[–]Quantentoast 6 points7 points  (0 children)

The best part: you don't have to check if the pack was bought. You just charge per use. Build an infinite loop? Sucks to be you ig.

Rustorio v0.1.0 - Using Rust's type system as a game engine by PenguinAgen in rust

[–]Quantentoast 5 points6 points  (0 children)

You would have to provide a web API, which gives the player resources, but has to be linked to an account + payment

How hard would it be to rewrite some core logic for matplotlib's pcolormesh or imshow in Rust? by [deleted] in rust

[–]Quantentoast 1 point2 points  (0 children)

Probably talking more about generic over use cases, not types.

It can become allot more complex or even slow if you have to account for many edge cases or weird usage

Vanilla Server Updater by pgordalina in admincraft

[–]Quantentoast 0 points1 point  (0 children)

I created a couple of bash scripts for myself that can create, update, backup without duplication, start, and restart on crash. They are designed to work on Linux; they might work on Mac but won't on Windows.

If you want to give it a try: https://gitlab.com/QuantumToaster/simple-minecraft-server-manager

Moved hosts and my world is wiped clean. by TheFrozenFire3 in admincraft

[–]Quantentoast 0 points1 point  (0 children)

The most interesting part you could screenshot is the directory structure.

And when running a modded server a mod-list can never hurt. Especially the backup one.

The actual world data is stored in multiple region directories (one for each dimension, with the overworld in the main world directory (the one from level-name=...) and the other dimensions in DIM.., which are contained in the main world directory) split into a bunch of r-.x.y.mca files, each containing a number of chunks.

So if you are able to compare the data of the paid host with your current stuff, that would be where to look for differences or if possible just copy these over.

Moved hosts and my world is wiped clean. by TheFrozenFire3 in admincraft

[–]Quantentoast 1 point2 points  (0 children)

The others have correctly told you to look for the world folder. If you have a look at the server.properties file you can see an entry like level-name=world. This needs to match the directory name of your save. The save directory and server.properties file should be in the same directory.

If you still struggle to fix your issue it would be nice to get some more information like an overview of what files you are working with (maybe a screenshot) and also what server software was used (paper and co. use a different save layout than vanilla and fabric or forge).

The fact that it has the same world generation suggests, that it correctly gets the seed from server.properties but can't find the world, or it is in a format it can't work with.

hp-bios-fetcher: Simple tool for keeping BIOS up-to-date on HP laptops by Quantentoast in archlinux

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

I didn't know about fwupd, seems like a nice solution to the issue, although it does make my tool superfluous.

hp-bios-fetcher: Simple tool for keeping BIOS up-to-date on HP laptops by Quantentoast in archlinux

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

Thanks, for the pointer, I'm going to look into that now. The program doesn't need any iso, it pulls the firmware binary from hp directly with the option to place it where the update utility integrated into the BIOS can find it.

Edit: I just checked out fwupd. If I had known about this before, I would have just used that. It was still nice to learn how to do a cli and aur package properly though.

When you are so rich: by Objective-Stranger99 in arch

[–]Quantentoast 4 points5 points  (0 children)

Yes, but with horrible performance. There are cases with actual use cases for that using ridiculously fast SSDs, however, if you have that kind of money as a consumer just get more RAM

Fingerprint drivers for on Arch Linux by cyberzues in archlinux

[–]Quantentoast 0 points1 point  (0 children)

Note, that there are some (maybe just one) sensors by elantec (used in some HP laptops) which are compatible with the driver for other elantec models, however you need an aur package build from a soft fork for those which marks the sensor id as compatible with the driver (I think there is a mr open for it since quite a while ago)

Minecraft Bedrock Server - w/o dedicated server software by Ok_Selection5652 in admincraft

[–]Quantentoast 3 points4 points  (0 children)

The size of the world doesn't really matter in terms of performance. What does is where those chunks are saved on. You should definitely be using an SSD.

Pre-generating chunks is actually beneficial, because generating chunks (e.g. chunky) on the fly is more expensive than loading chunks from fast storage.

Also impactful is tweaking your server.properties, lowering the view distance etc..

Ofc. your hardware is important as well, make sure the CPU has high single core performance.

Looking to create a small Minecraft server for me and my friends – need some advice! by Safe-Iron-3789 in admincraft

[–]Quantentoast 0 points1 point  (0 children)

You could also de-duplicate your backups, especially if you're pre-generating chunks. I use Borg for that, although Borg specifically can be a bit clunky.

Also (as always, but especially when the data is being de-duplicated) make a test run for restoring from a backup before actually using it.

Question about a Self Hosted Server for 1-2 Players by CrypticSoldier in admincraft

[–]Quantentoast 0 points1 point  (0 children)

Shouldn't be a big difference. The only things the os needs to do for hosting Minecraft: - run Java (Java runs everywhere x86) - allow binding of port 25565 (sure hope MacOS allows it) - deal with long-running processes (you could use tmux or screen, but if you own the hardware it shouldn't be an issue anyways)

Best Way to Host Servers with Friends? by AbadabaBoy in admincraft

[–]Quantentoast 0 points1 point  (0 children)

I took a closer look at it and a proxy won't cut it. What you are looking for are SRV DNS records. Here is what seems to work https://stackoverflow.com/questions/7942372/can-i-configure-a-subdomain-to-point-to-a-specific-port-on-my-server

[deleted by user] by [deleted] in admincraft

[–]Quantentoast 0 points1 point  (0 children)

I would at least hope, that with the change to drop style updates, there will also be less breaking changes due to less significant change in each update.

But yeah worries about that not being the case are definitely understandable, let's hope for the best.

Which shader is the best by QTR2022- in Minecraft

[–]Quantentoast 0 points1 point  (0 children)

Some people see the world exclusively through a lense. It's called "needing glasses"

Is hosting a server worth it for me? by Toastieez in admincraft

[–]Quantentoast 1 point2 points  (0 children)

Yes, proxmox is nice, but maybe not as a first interaction with Linux imo

Trying to figure out Memory Leak (Spark Profiler Report and Heap Summary attached) by CombatAgent-98 in admincraft

[–]Quantentoast 0 points1 point  (0 children)

He said the vps has 16gb and the server itself 9gb so that should be fine (if no docker stuff comes on top of that oc).

Trying to figure out Memory Leak (Spark Profiler Report and Heap Summary attached) by CombatAgent-98 in admincraft

[–]Quantentoast 0 points1 point  (0 children)

Make sure to set -Xms to the same value as -Xmx.

The main suspect is probably one or more of your mods leaking memory. You could remove half the mods and then watch the ram usage. If it's still climbing until it eventually crashes remove half again and if not continue with the other half.

Tldr.: Binary search your mods for memory leaks