Show newer

I know they say women have a higher tolerance for pain and all but....

@thewismit The filesystem itself actually handles all the heavy lifting. btrbk is a very very small script that does little more than call a handful of commands. Frankly you dont really need it at all considering that btrfs already has all the backup functionality built into it.

The only thing btrbk is handling for you is that it deletes old backups according to a roll-over schedule. The process of making the backups, or restoring them, is all handled by the filesystem.

Remember btrfs has backups and restores built in as a first class citizen of the filesystem, so if you want to lookup how to do something in that realm search for the filesystem itself.

But to cut to the chase.. if you have a snapshot somewhere and want to restore it, its literally one command (which comes with the file utils for btrfs):

btrfs subvol snapshot /mnt/${snapshot} /mnt/Butters/ROOT

That would restore a snapshot to ROOT location, notice your using the btrfs command directly.

@lucifargundam

Depends on the nature of the data and how its represented. The most trivial form and the one that would apply in this case is by represented data per-capita rather than absolute..

So instead of saying "In place X there are Y people affected" you would say "In place X there are Y out of every 1000 people affected"

In essence you sample the percentage of the local population affected rather than the count.

This can be much more complex however in certain situations, but thats the main jist of it.

@FailForward

@icedquinn

"Oh well maybe you should have done a double blind study over the course of 6 months before just downing some concoction you just made hoping for the best... kinda reckless on your part really"

## 100 Pots Puzzle

About a year and a half ago I presented the 100-pots puzzle, which is by far my favorite programming/logic/math problem I have ever come across. It took me a while to solve it the first time I heard it (most of the work day which is where I heard it). I also was at an advantage because the solution comes from a field of math I have particular expertise in, so most people will probably have a harder time solving it.

I don't think anyone was able to solve it last time I presented it, and had to give the official answer, I could be wrong, I need to dig up the thread. @Absinthe however did write a simulation for it in python after I had posted the answer.

Anyway here is the problem for anyone who wants to take a stab.

**All answers or hints must be CW'ed**

### No tricks

First off some background. The problem is not a trick question, as much as it may seem like one. There is no play on words, no hidden exception. Everything in this problem is exactly how it is presented and the answer doesn’t rely on any slight of hand. Take this puzzle at face value.

### The Puzzle

There is a room with 100 jars with lids on them all in a row. There is also a stack of papers, 100 papers each labeled 1 to 100. The papers are shuffled and one paper placed into each pot randomly.

You and your assistant are in an a joining room. Your assistant is allowed to enter the room, look in all 100 pots, and if they wish they can pick any 2 pots and switch the paper in them. They can only do this one time, they do not have to do this they can choose to also do nothing. At this point they leave the room, without talking to you.

Next, someone tells you a random number from 1 to 100. Your goal is to enter the room and open a pot that has that number in it. You are allowed to open, at most, 50 of the pots.

Whatever process you use to open those pots must guarantee that by the time you open the 50th pot that the number you were given will be found. Obviously your assistant didn’t know what the number is at any point.

What rules do you give your assistant, and what rules do you follow, to ensure you are successful?

@math

@lucifargundam

You will find strong correlation with population density (or anything that is dependent on population density without being normalized) and almost anything. It is the reason why in statistics we **always** normalize and if you dont then its simply useless data.

This is where so much political bad-data to argue an agenda comes from. You'll notice it all the time when someone tries to argue political policies particularly bad ones.

@FailForward

@thewismit I did.. the problem with any normal solution is their slow and prone to issues you cant solve without something at the FS level... I will say though if you dont wish to go with BTRFS then snapper is kinda the most common and best option you have in terms of kicking off the backup

@rlamacraft

ahhh, yea but keep in mind you can get a cheap oscope for 100$, still a bit pricey but you dont need a bench scope.

@Electronics

@thewismit I use it on all my boxes. creates instant local snapshots and external backups are incremental. Can even do its own raid setup optionally.

@thewismit btrfs is absolutely the best if your willing to use it. nothing comes close. but bear in mind its a fs. I use it wit btrbk to do the backing up. It kicks off every hour and keeps hour incremented backups with very little space per backup.

Show older
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.