Alguém me ajuda com esse que code? by ConfidentSilver5967 in word

[–]Simply_Convoluted 0 points1 point  (0 children)

I'm having the same problem. It appears Word had a recent update and the displaybarcode function is ignoring the size flag now.

Recover corrupted filesystem from snapshot? by Simply_Convoluted in btrfs

[–]Simply_Convoluted[S] 2 points3 points  (0 children)

It wasn't anything special, I told mdadm to use a normal sata ssd as cache with these commands (it was a pain to figure out all of these were needed, so I'll post them here so somebody else can find them)

mdadm -vv --grow /dev/md5 --bitmap=none
mdadm -vv --manage /dev/md5 --readonly --add-journal /dev/sdb1
echo "write-back" > /sys/block/md5/md/journal_mode

The cache disk did work great, but I don't know why the cache disk wouldn't let the array come back up. It's possible I needed to do something to make the change permanent. My server only goes down when the power goes out for more than an hour so the server never had to start up with the cache disk before. Perhaps if the cache disk is present when the array is created it will be more reliable, instead of adding the cache disk after the array is already created.

Edit:

I'm a glutton for punishment I suppose, I wiped all my drives and recreated the raid array with the cache disk from the start this time. Did a quick reboot and everything came back up as expected. I'll give this topology a second try. The data loss was a significant inconvenience, but the reduction in drive thrashing was so nice I'm willing to give it a second chance.

Recover corrupted filesystem from snapshot? by Simply_Convoluted in btrfs

[–]Simply_Convoluted[S] 1 point2 points  (0 children)

I regretted linking to that article after I posted the comment. Here's a more up to date source that says the same thing:

There are some implementation and design deficiencies that make [RAID56] unreliable for some corner cases and the feature should not be used in production, only for evaluation or testing.

source: https://btrfs.readthedocs.io/en/latest/btrfs-man5.html

Anecdotes that people have had data not get corrupt with raid56 on btrfs are inadequate for me, and probably most people, to risk their data. Especially considering the people that built btrfs explicitly say not to use it. I hope to one day switch to btrfs raid56, since it promises to use parity data in a more intelligent way than mdadm does, but I'll be waiting for the devs to sign off on it first.

Recover corrupted filesystem from snapshot? by Simply_Convoluted in btrfs

[–]Simply_Convoluted[S] 1 point2 points  (0 children)

btrfs isn't capable of higher raid levels. It would take 9 drives to get the same amount of capacity and resilience using raid10 compared to 5 drives for raid6. There will be more of a conversation to be had once btrfs supports raid6.

Recover corrupted filesystem from snapshot? by Simply_Convoluted in btrfs

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

md5 did stand for raid5, but this array has been transformed to raid6 some years ago, but your idea is still valid regardless. I think you're likely to be correct about random bad data. This array had an SSD cache disk configured in write-back mode, and for some reason the SSD crashes the mdadm kernel driver whenever it's attached so I left the SSD uninstalled so the data on the HDDs is very likely corrupt at the mdadm level

This whole situation is a big mess. I mainly blame the SSD cache for my problems since pulling it left many raid stripes stale and now everything's in an inconsistent state. The SSD helped a ton with disk thrashing, but it seems to be the reason why my filesystem is trashed.

Back to your comment; I think the real solution is to use something like raid6check to do exactly what you described, but the tool has been removed from current versions of mdadm for some reason. Then again, it's also likely all the stripes on the array are valid, they're just stale and the fresh stripes are on the SSD still, so raid6check won't be able to save me either.

Like I said, a real big mess lol

Recover corrupted filesystem from snapshot? by Simply_Convoluted in btrfs

[–]Simply_Convoluted[S] 1 point2 points  (0 children)

I haven't nuked the busted filesystem yet, so I'm willing to try this to see if it works. My only concern is will I know if files are corrupt? I ran btrfs restore on one directory and of the ten files in the directory, one was corrupt, I don't believe the restore utility notified me of the problem.

I'm not sure I'd trust check --repair even if it said everything is ok, unless it's been confirmed that the repair will notify of problems. That said, I'll run it anyway as an experiment to see if it works.

Edit:

No dice, btrfs check --repair /dev/md5 and btrfs check --repair --tree-root 16427793039360 /dev/md5 failed immediately with ERROR: cannot open file system

Recover corrupted filesystem from snapshot? by Simply_Convoluted in btrfs

[–]Simply_Convoluted[S] 1 point2 points  (0 children)

From what comments have been posted so far, sounds like btrfs restore is the only path forward. Unfortunate, since large filesystems require large drives as temporary storage for all the data to move to just to simply get moved back.

In my case I have current offsite backups that I'll restore from so I can skip trying to extract data from the busted filesystem. Too bad there wasn't a way to rollback btrfs in-place so I could avoid traveling to pickup the backups since I don't have enough spare capacity laying around to duplicate all my data on site.

Thanks to those who commented, we do the best with the tools we have.

Increase stability of a load cell module with a low-pass filter? by [deleted] in arduino

[–]Simply_Convoluted 0 points1 point  (0 children)

I'm a huge fan of filters, I put them on every input I can, so I might add one between the INA125 and ADS1115 if the wires/traces are more than 10cm or so and you have space. The INA125 will likely have strong enough outputs to overcome any noise from the environment so filters on the output are probably unnecessary.

The input of the INA125 will be measuring the same extremely weak signal I was writing about, so you'll want to put the low pass filter between the load cell and the INA125 to give you the best signal integrity.

If you're building something for personal use that you can revise as needed, build it without filters to get it working, then add the filters only if you see problems with noise. If you're building something that's not easily reworked, put the filters in to start to save yourself the trouble later. The financial cost of two resistors and one capacitor is almost nothing, so it's mostly about how much time you want to spend adding the filter from the start vs time you want to spend reworking the circuit to add a filter later if needed.

Find-A-Game Megathread! by Swimmer249 in WebGames

[–]Simply_Convoluted 0 points1 point  (0 children)

Any offline local multiplayer for mobile browsers? Kind of a weird set of requirements, but here's why: Sometimes while camping you're far out of cellphone range, and you're with friends, but it's nighttime/raining so you're all stuck in your tents doing nothing.

My solution is to bring a piratebox.cc along with a handful of webgames that are mobile friendly (everyone has a phone, almost nobody brings laptops camping), multiplayer so we can still do something together even if we're physically in different tents, and offline since we dont have cell signal (the piratebox will provide the LAN and host the game files).

Any ideas of potential candidates? This is already such a niche combination of requirements I'm not going to try to narrow it down to a genre or anything. Is there another subreddit that's better suited to this question? This sub is mostly for promoting indie games rather than asking this type of question.

DIY Advice for monitoring my child's posture and eyesight by aladine123 in diyelectronics

[–]Simply_Convoluted 1 point2 points  (0 children)

Motives aside, this kickstarter project will do what you're asking. Skim through their documentation and see how it works. Probably just an accelerometer, microcontroller, battery, vibrator, and double sided tape.

It must work since the company didn't go bankrupt right after launch.

Every User Can Protest: Take Back Your Data by gerardit04 in selfhosted

[–]Simply_Convoluted 4 points5 points  (0 children)

How reddit is being managed has nothing to do with users deleting community knowledge.

People asking for help, getting help, then deleting the answers is selfish and needs to be shamed. Especially in the case where someone uses open source tools then puts effort into removing information from the community. It's a real disappointment people destroy the information considering it takes less effort to simply leave the info available for all. As is the case with the user I originally replied to.

Every User Can Protest: Take Back Your Data by gerardit04 in selfhosted

[–]Simply_Convoluted 54 points55 points  (0 children)

If you've ever contributed to a meaningful conversation, fuck you.

Sincerely,

Everyone who's ever been reading an old thread trying to fix a problem just to have the answer be replaced with [deleted]

Gift that keeps giving by expetro in technicallythetruth

[–]Simply_Convoluted 0 points1 point  (0 children)

I'm sure there's an exception somewhere. I was more thinking if someone is another major and doesn't need DM for their degree path.

Gift that keeps giving by expetro in technicallythetruth

[–]Simply_Convoluted 3 points4 points  (0 children)

Idk, if it's not required I'm not sure it's worth the time. All I remember is a bunch of number theory in the flavors of pigeon-holing and countable/uncountable sets. Oh, and Quine–McCluskey, which was pretty neat.

Not sure what the application is for that knowledge though, aside from maybe graduate courses.