There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

kbin.life

Beacon , to nostupidquestions in What is the secret to making LED light bulbs last as long as the package says?

I've never had to replace an LED bulb, ever. They last forever if there isn't a problem with your installation, like poor electrical wiring or poor ventilation

Blue_Morpho ,

That’s unusual. I have ones that lasted 10 years but they eventually go. It’s usually the driver circuit, not the led itself.

wjrii ,

Exactly. LEDs are rated for 10k hours. 10-15 watt power supplies made both to cram into a tiny space defined by GE 100 years ago for a completely different lighting technology, and to hit a $2.00 price point for the whole assembly? Not so much.

I’ve actually got a super cheap and super bright LED in my garage that has been working for a long time, but it’s one of those big ugly sunflower looking ones that would never fit in an enclosed fixture anyway, so it actually lets the power supply breathe. Even then, I’m sure it’s putting out more lumens than is good for whatever half-assed components and heat sink are in it.

Beacon , (edited )

The first LED I bought is about 7 years old at this point, so that tracks. I was being hyperbolic when i said "forever", they aren't designed to last literally forever, i just meant many many many years

solrize , to selfhosted in Stop services while creating snapshots during backup?

Stop the whole VM during snapshots.

avidamoeba OP ,
@avidamoeba@lemmy.ca avatar

Not a VM. Consider the service just a program running on the host OS where either the whole OS or just the service data are sitting on ZFS or LVM.

null ,

This is one of the reasons Docker exists.

avidamoeba OP ,
@avidamoeba@lemmy.ca avatar

And I’m using Docker, but Docker isn’t helping with the stopping/running during backup conundrum.

Hansie211 , (edited )

It should work that way. If you use the recommended Docker Compose scripts for immich, you’ll notice that only a few volumes are mounted to store your data. These volumes don’t include information about running instances. If you take snapshots of these volumes, back them up, remove the containers and volumes, then restore the data and rerun the Compose scripts, you should be right where you left off, without any remnants from previous processes. That’s a pro of container process isolation

null ,

Why not?

avidamoeba OP , (edited )
@avidamoeba@lemmy.ca avatar

Docker doesn’t change the relationship between a running process and its data. At the end of the day you have a process running in memory that opens, reads, writes and closes files that reside on some filesystem. The process must be presented with a valid POSIX environment (or equivalent). What happens with the files when the process is killed instantly and what happens when it’s started afterwards and it re-reads the files doesn’t change based on where the files reside or where the process runs. You could run it in docker, in a VM, on Linux, on Unix, or even Windows. You could store the files in a docker volume, you could mount them in, have them on NFS, in the end they’re available to the process via filesystem calls. In the end the effects are limited to the interactions between the process and its data. Docker cannot remove this interaction. If it did, the software would break.

null ,

docker stop container

Make your snapshot

docker start container

What am I missing?

avidamoeba OP , (edited )
@avidamoeba@lemmy.ca avatar

That’s the trivial scenario that we know won’t fail - stopping the service during snapshot. The scenario that I was asking people’s opinions on is not stopping the service during snapshot and what restoring from such backup would mean.

Let me contrast the two by completing your example:

  • docker start container
  • Time passes
  • Time to backup
  • docker stop container
  • Make your snapshot
  • docker start container
  • Time passes
  • Shit happens and restore from backup is needed
  • docker stop container
  • Restore from snapshot
  • docker start container

Now here’s the interesting scenario:

  • docker start container
  • Time passes
  • Time to backup
  • Make your snapshot
  • Time passes
  • Shit happens and restore from backup is needed
  • docker stop container
  • Restore from snapshot
  • docker start container

Notice that in the second scenario we are not stopping the container. The snapshot is taken while it’s live. This means databases and other files are open, likely actively being written to. Some files are likely only partially written. There are also likely various temporary lock files present. All of that is stored in the snapshot. When we restore from this snapshot and start the service it will see all of that. Contrast this with the trivial scenario when the service is stopped. Upon stopping it, all data is synced to disk, inflight database operations are completed or canceled, partial writes are completed or discarded, lock files are cleaned up. When we restore from such a snapshot and start the service, it will “think” it just starts from a clean stop, nothing extra to do. In the live snapshot scenario the service will have to do cleanup. For example it will have to decide what to do with existing lock files. Are they there because there’s another instance of the service that is running and writing to the database or did someone kill its process before it had the chance to go through its shutdown procedure. In the former case it might have to log an error and quit. In the other it would have to remove the lock files. And so on and so forth.

As for th effect of docker on any of this, whether you have docker stop container or systemctl stop service or pkill service the effects on the process and its data is all the same. In fact the docker and systemctl commands will result in a kill signal being sent to the process of the service anyway.

null ,

Oh I see – you’re asking a hypothetical.

The simple answer is that it’s a bad idea to take snapshots of running databases because at best they could be missing info and at worst they can corrupt.

The short answer: Don’t.

Vanth , to asklemmy in Would you wear a body cam at work?
@Vanth@reddthat.com avatar

But what about […] repair people who go into homes

As someone who would be paying for their services, hell no they aren’t bringing their camera into my home.

SuiXi3D , to asklemmy in People who grew up with the "Burnout" series, which one is the better game - Burnout 3: Takedown or Burnout Paradise?
@SuiXi3D@fedia.io avatar

Burnout Revenge.

Fight me.

d41 ,

I will, in Burnout Revenge, because it’s the superior game.

djsoren19 , to games in Avowed is getting delayed to early 2025

Very disappointing if the only reason is competition. I don’t really think that any Obsidian RPG is going to sell gangbusters, and there’s not really any competition within the space, so if this is just Microsoft wanting to pad out their release schedule to keep people hooked on Game Pass, that’s scummy as fuck.

Hopefully the extra time in the tank prevents the typically Obsidian jank from creeping in at least.

Bbbbbbbbbbb ,

Whether or not theres competition in the genre, putting a release around the holiday schedule is usually a bad time for your game unless you are a top name in the industry. The most famous case being Titanfall 2 being sandwiched between CoD and Battlefield with Gears of War, Final Fantasy, Pokemon, and South Park releasing at similar times too. Titanfall was drowned out by relevant and irrelevant competition and was likely the best game in that holiday season. Simply delaying it to January could have been the difference between being forgotten and the next biggest franchise.

So yes, im for Avowed being pushed back

djsoren19 ,

I mean, even despite that release date, Titanfall 2 sold 4 million copies that holiday season and is certainly remembered today more than Battlefield 1 or CoD: Infinite Warfare. The franchise has managed to continue through Apex Legends. Maybe delaying it would have caused it to sell a little bit better initially, but I think positive word of mouth gave it much longer legs.

Also…is anything actually releasing later this year that’s worth pushing back for? Especially in the realm of RPGs? If anything pushing it back is going to cause it to conflict with Dragon Age Veilguard, which is also looking to be released very late 2024-early 2025, and is realistically the closest competition Avowed could run into. There’s basically no other RPGs releasing this fall, so who’s to say that it wouldn’t get a ton of attention by being one of the only options in town?

yuri , to linux in Switching back to Windows. For now.

I recognize I’m kind of being one of those “it works on my machine!” types, but I’m rolling pop!os on a lenovo built intel/nvidia laptop and have zero issues. Am I just exceptionally lucky?

communism ,
@communism@lemmy.ml avatar

You’re not. I think that’s the experience of most Linux users. It’s selection bias; I don’t go to forums to make a post advertising how my system is working great with no bugs. When my system is working great with no bugs I just use it; I don’t talk about it.

InternetUser2012 ,

I roll popos and tried nobara and mint a month ago. I’m back on pop because it just works and installing games on it is no issue. There are a couple games that after playing a few hours a day for three or four days, the computer kind of freezes for a second here and there. I just log out and in and it’s fixed. I would rather throw my computer in the street and run it over than go back to windows.

indomara ,

Which Lenovo laptop, if you don’t mind me asking? I know there are Lenovo laptops with Linux support, but I am on a Lenovo Legion Slim 5, and I have heard there are quite a few issues that would need to be sorted.

yuri ,

I’ve got the legion y540 with an RTX 2060, apparently they made this same model number with a couple different gpu‘s.

I have no idea if it officially has linux support or not, I just got frustrated when it wouldn’t stop bluescreen’ing with windows 10. Ubuntu worked fine but was finnacky with peripherals, and I couldn’t change the brightness without fixes. Pop!OS has just worked perfectly across the board, straight out of the box.

What’s whacky is I could swear games run better on linux. Not even natively, like WINDOWS games run better through proton than they did when the same system ran windows. I’d bet a lot of it is just overhead from general bloat; windows is expensive to run these days.

If my experience is anything to go by, just start installing whatever OS strikes your fancy and hope for the best. Keep a windows usb handy just in case, but just start fucken around! You could spend a week reading documentation on ONE SINGLE OS, or you could spend just an afternoon trying probably every single OS you could find a modern ISO for. Just make sure you try the popular ones first hahaha

nuzkie , to lemmyshitpost in I drew the Mexico states by memory

Therapist: Wide Argentina isn’t real, it can’t hurt you Wide Argentina:

Jax ,

Excuse you, that’s Wide Argentinia

solrize , (edited ) to nostupidquestions in ELI5: how do mobile devices know your movements?

Step counters use the phone accelerometers which the phone also uses to notice its own orientation. They measure longer distances with GPS. I haven’t yet seen a phone that can detect your heart rate by itself. Some wristwatches/fitness bands do it using an electrical sensor (electromyograph) on your wrist, and send the info to your phone by Bluetooth.

markpaskal ,

I think one of the Pixels or one of the old nexus devices could read heart rate through the camera somehow, but you had to put a big fingerprint on the lense so it was useless to most people.

Irremarkable ,
@Irremarkable@fedia.io avatar

Samsung phones used to be able to measure heart rate along with blood oxygenation. Not sure when they stopped, but I know one of my old galaxy's had it, either the 5 or 8.

meco03211 ,

I think it had to do with how the cameras and lights were oriented. I missed that one too. Pretty damn accurate.

Irremarkable ,
@Irremarkable@fedia.io avatar

Something like that, yeah. Didn't personally have an actual practical use for it, but it was certainly a nice thing to have.

Darkassassin07 , to piracy in Best tools for ripping content
@Darkassassin07@lemmy.ca avatar

I haven’t actually tried myself; but I’ve read many DRMs can be defeated by simply running the service in a VM, then screen recording the VM from the host.

Try to directly screen capture Netflix for example, and the webpage will appear as a solid black box in the recording; but not if the capture is done from outside the VM.

reminiscensdeus OP ,

This actually makes a lot of sense, I wonder if it works

montar ,

Sounds cool!

edgemaster72 , to insanepeoplefacebook in "I have some opinions as an outsider who is definitely not Indian, Hindu, or a misogynist"
@edgemaster72@lemmy.world avatar

Got thru the first 3 images, that’s all I need to see. Why the fuck does anyone care when or whether someone else is getting married. Just mind your own fucking life.

mysticpickle , to patientgamers in Monthly Recommendations Thread: What are you playing?

Yakuza Kiwami (remake of Yakuza 1)

Played Yakuza 0 and loved it. Yakuza 1’s substories and mini games aren’t nearly as interesting as 0’s and definitely didn’t pull me in as deeply but I’m still invested enough to finish it I think

HipsterTenZero ,
@HipsterTenZero@dormi.zone avatar

Yakuza 0 is such a high point in the series, 1 just can’t compare even with a remake. That damn sad substory music from 0 still plays in my head everytime I see a villain in media who was sad, once.

Hikermick , to memes in I was made a humerous man...hopefully this doesn't send me south..

I get it, I giggled but I cringed at one of these girls finding their image used this way on the internet

harrys_balzac , to youshouldknow in YSK how to spot Love Bombing

Sounds like you’ve met my ex-wife.

CookieOfFortune , to youshouldknow in YSK how to spot Love Bombing

Is this the DENNIS system?

some_guy ,

Separate completely.

Deestan , to nostupidquestions in ELI5: how do mobile devices know your movements?

It has three sensors that notice if it is changing speed up/down, left/right or back/forth.

A step will result in a speed increase up (foot go from still to up), followed by a sharp speed increase down (foot go from up to down), then “up” again (foot go from down to stop).

Going up a stair causes the same but different timing between the speed changes.

If you are on Android, the Physics Toolbox Suite can let you look at the exact values it is measuring.

Slovene ,

Foot go up, foot go down. You can’t explain that!

suction ,

You don’t have to!

Sidyctism2 ,

fucking feet, how do they work?

meco03211 ,

Well how about that. I’ve debated making my own pedometer app. I’m assuming there are tutorials online how to do that, but this might be fun to just play with for a bit.

moody ,

In addition to that, it uses GPS, WiFi, and Bluetooth signals to pinpoint your location very precisely, and can use that to calculate the distances you travel and the number of steps it takes you to get there.

It can also put all of these data points together to tell things like your height and weight. It can only guesstimate things like your heart rate based on your age and BMI, but smartwatches these days have actual heart rate monitors, and pulse and oxygen meters built-in and can share that data with your phone.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines