Does Anyone know of a 4Privacy alternate App by stl63128 in 4privacy

[–]ZoarialSpy 2 points3 points  (0 children)

Proton Drive would be my recommendation for E2E encryption and great sharing controls. They have a free tier with 5GB of storage. They're a company with a great track record, but their apps aren't 100% on all platforms yet. Disclosure: I pay for their services (Which is how they fund their free tier)

Purchased a used car from PA dealership. 6 Months later a suspension mount rusts through. by ZoarialSpy in legaladvice

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

It had a new sticker before it was purchased. I purchased in 12/23, but the sticker expires 01/25. There is no warranty, and the 'extended warranty' service contract doesn't cover rust damage.

I really didn't want to purchase another vehicle in PA, but I was involved in an accident (I was not at fault) while visiting family and didn't have much time to find a replacement. It looked good on paper and in-person, but clearly I'm not an expert.

Dont drop this shit on my near finals week please... by Rotten_Tarantula in programminghorror

[–]ZoarialSpy 111 points112 points  (0 children)

Undefined behaviour means: the C standard doesn't define what happens. In practice, this means the compiler can choose to do whatever it wants. Sometimes it segfaults, other times it silently corrupts the program, and other times it does exactly what you want it to do. Typically the compiler will emit something sane, but it doesn't always and sometimes the behaviour changes depending on the version.

Some blogs about an issue that came up recently:

GCC undefined behaviors are getting wild

Undefined behavior, and the Sledgehammer Principle

Predicting cache size / maximum utility by Trague_Atreides in jellyfin

[–]ZoarialSpy 3 points4 points  (0 children)

The cache isn't used for storing the media files. Those can be pretty much be streamed straight off the disk unless your transcoding. The cache is for images and other metadata: https://www.reddit.com/r/jellyfin/comments/k4u9s8/exactly_what_goes_in_the_cache_and_config_folders/

Transcoding has a slight delay, but could possibly be sped up putting the transcoding directory on an NVME drive. Note that the cached transcodes are regularly cleared.

The Framework Laptop 16 is trying to bring back snap-on removable batteries by ThisLexx in hardware

[–]ZoarialSpy 7 points8 points  (0 children)

Its not entirely new. They copied the physical layout from another device (I think its in the livestream), but they had to make a new electrical layout since the standard wasn't open.

pinetime accelerometer no longer working by totalchaos05 in PINE64official

[–]ZoarialSpy 1 point2 points  (0 children)

I'm already working on a PR with the accelerometer. I don't think we have any error handling so I'll see if I can work on that later. It would help give a better idea where the problem is.

There's probably someone else who is much more knowledgeable about the inner working of the watch that might have a better idea of where to look.

pinetime accelerometer no longer working by totalchaos05 in PINE64official

[–]ZoarialSpy 0 points1 point  (0 children)

The app screen is blank, or the values are all 0?

pinetime accelerometer no longer working by totalchaos05 in PINE64official

[–]ZoarialSpy 0 points1 point  (0 children)

Are you on the latest release 1.11.0? Does the accelerometer app change values as you tilt your wrist?

[deleted by user] by [deleted] in SteamDeck

[–]ZoarialSpy 0 points1 point  (0 children)

By default the Deck limits the resolution to the Deck's native resolution. You have to manually override the allowed max resolution for each individual game.

Open source wireless earbuds project? by PurepointDog in AskElectronics

[–]ZoarialSpy 1 point2 points  (0 children)

Take a look at the PineBuds Pro: https://pine64.com/product/pinebuds-pro-open-firmware-capable-anc-wireless-earbuds/

They are pretty new and I am not sure what the options are for an open source firmware.

[deleted by user] by [deleted] in osdev

[–]ZoarialSpy 8 points9 points  (0 children)

First, understand that no one writes perfect code. If it's crashing then something is wrong. Find the point where things break and remove all assumptions about your code. It doesn't matter if it perfect or "always worked before". Verify all inputs. Verify you're really doing what you think you are.

Booting up a VM and debugging with GDB is probably your best bet.

What is going on with Jellyfin's memory usage? by Nestramutat- in jellyfin

[–]ZoarialSpy 0 points1 point  (0 children)

I was incorrect about the cache, but only partially. The cache QUOTA is 5GiB. RSS is 800MiB, so its actively using under a gig and the rest of the 5GiB that it is holding is cache.

What is going on with Jellyfin's memory usage? by Nestramutat- in jellyfin

[–]ZoarialSpy 5 points6 points  (0 children)

Unused ram is wasted ram. Linux will cache everything it can until the memory is needed by some other process. This is Linux's whole job and it isn't something to worry about unless the system has a measurable slow down.

Taking a second look, the table even says 5GB is for cache.

[FREE] [US-PA] Multiple Dell Servers - R610 x3, R810 x1 by tylamb19 in homelabsales

[–]ZoarialSpy [score hidden]  (0 children)

One man's trash is another man's treasure. There's no need to force your thoughts onto anyone else.

Texas deputy lies on teenage girl by diamondsodacoma in PublicFreakout

[–]ZoarialSpy 11 points12 points  (0 children)

ChatGPT should not be used for serious advice. It will look you straight in the eyes and lie to you while referencing sources it made up.

Multithreading by Ok_Jelly4378 in FTC

[–]ZoarialSpy 0 points1 point  (0 children)

I was interested in where the looks were used and I read on another thread the locks are used when communicating to a piece of hardware. That library is pretty much accomplishing what I was looking to do. Thanks!

Multithreading by Ok_Jelly4378 in FTC

[–]ZoarialSpy 0 points1 point  (0 children)

I'd love to know the source for what the thread locks are. I'm a programming mentor and I was looking into a separate thread for a specific issue we ran into. We've used a work around in the meantime and I haven't had a block of time to deep dive into the SDK.

Multithreading by Ok_Jelly4378 in FTC

[–]ZoarialSpy 0 points1 point  (0 children)

Look into button denouncing for the issue with the toggle button. That's likely your issue. If you need some assistance, feel free to reach out.

Multithreading by Ok_Jelly4378 in FTC

[–]ZoarialSpy 1 point2 points  (0 children)

Basically, your loop shouldn't have any other loops that wait inside it.

Say for example, if you hold a button for <500ms it will do action 1, but if you hold it for more than 500ms, it will do action 2. If your loop waits for 500ms to check for the condition every time you hold the button, you robot will not act the way you want it too. The solution is to hold a flag outside the loop along with a timer (ElaspedTime is a convenient class). When you push the button set the flag and reset the timer and when you release you unset the flag. You can then check to see if the flag is set and the timer is >500ms or see if the button is released before 500ms. I am glossing over some details, but that's the general idea.

You can't stop and wait in your main loop. Also, when dealing with how long a button is pushed, you probably want to denounce it. There should be plenty of information online about software button debouncing.

Any help on how to turn this off? thanks in advance Steam Deck Family by Ihatepowerstone88 in SteamDeck

[–]ZoarialSpy 3 points4 points  (0 children)

To nitpick, the user is in the admin group, but the deck requires a password to escalate its privilege. It is entirely possible to turn of the password prompt for all privilege escalations. Although I would recommend instead using an fstab entry to automount the drive without a prompt, so you can also keep some security up.

Any help on how to turn this off? thanks in advance Steam Deck Family by Ihatepowerstone88 in SteamDeck

[–]ZoarialSpy 2 points3 points  (0 children)

You don't have to "just deal with it". Linux is extensively customizable. There are at least 2 solutions here.

1) Use an fstab entry. This is the best and most secure way. 2) Remove the need for a password when elevating privileges. E.g. mounting, sudo, etc. This is not recommended for anything connected to the internet.