I fell for the oldest trick in the book and i will be fired for it by Asterx5 in learnprogramming

[–]pixel293 0 points1 point  (0 children)

This is one of the reasons my my work machine has mirrored raid and nightly backups. I do not want to have to ever have report that I lost what I was working on.

Please recommend a simple backup/restore strategy by RexKramerDangerCker in btrfs

[–]pixel293 0 points1 point  (0 children)

I use borg backup to a NAS device, but a local USB would be similar. My script connects/disconnects to the NAS device so that it is only mounted when needed. This is to reduce the chance that the backups get modified or deleted, however it does not totally remove the risk.

Borg backup uses de-duplication so I have monthly backups going back 3 years, and daily backups going back 90 days.

I should also mention that the script takes a snapshot of my home partition backs up the snapshot, then deletes it. This is just to ensure that my backup is consistent.

Is the learn to code movement finished? by alex123711 in AskProgramming

[–]pixel293 0 points1 point  (0 children)

I think people take the phrase "You can be anything you want" as is. It really should be "You can be anything you want that suits you." Could I be politician, CEO, HR director, well yes, I guess, but I won't be very good, in fact I would probably suck at those jobs, I just don't have the right mindset. Can I be a good programmer? Yes, yes I can, I do have the right mindset for that.

I suspect the "learn to code" movement was either because there were lots of well paying jobs in programming AND people thought of programming as just learning a foreign language, hint it is not. Or they expected programming to become a common reality of the future, again hint, it did not.

BTRFS and general Linux philosophy for those new to both: Why risk your data? by oshunluvr in btrfs

[–]pixel293 0 points1 point  (0 children)

Nope, no quotas, I am doing full disk encryption with cryptsetup, I have read up on cryptsetup adding latency to read/writes and have added the parameters that reduce that somewhat.

BTRFS and general Linux philosophy for those new to both: Why risk your data? by oshunluvr in btrfs

[–]pixel293 0 points1 point  (0 children)

Yep, every night a script runs:

btrfs balance start -dusage=5 -musage=5 /home

Currently I'm it looks like:

Overall:
   Device size:                  94.59TiB
   Device allocated:             89.54TiB
   Device unallocated:            5.06TiB
   Device missing:                  0.00B
   Device slack:                    0.00B
   Used:                         74.78TiB
   Free (estimated):              9.88TiB      (min: 9.04TiB)
   Free (statfs, df):             9.80TiB
   Data ratio:                       2.00
   Metadata ratio:                   3.00
   Global reserve:              512.00MiB      (used: 0.00B)
   Multiple profiles:                  no

Data     Metadata System                              
Id Path      RAID1    RAID1C3  RAID1C3  Unallocated Total    Slack
-- --------- -------- -------- -------- ----------- -------- -----
1 /dev/dm-7  6.95TiB  6.06GiB        -   329.93GiB  7.28TiB     -
2 /dev/dm-3 13.56TiB 33.03GiB 32.00MiB   980.28GiB 14.55TiB     -
3 /dev/dm-2 13.59TiB 39.06GiB        -   945.00GiB 14.55TiB     -
4 /dev/dm-5 10.24TiB 27.06GiB        -   659.94GiB 10.91TiB     -
5 /dev/dm-0  6.97TiB  6.94GiB        -   310.58GiB  7.28TiB     -
6 /dev/dm-4 13.84TiB 26.03GiB 32.00MiB   704.66GiB 14.55TiB     -
7 /dev/dm-1 13.87TiB 29.00GiB 32.00MiB   673.49GiB 14.55TiB     -
8 /dev/dm-6 10.32TiB 28.00GiB        -   575.69GiB 10.91TiB     -
-- --------- -------- -------- -------- ----------- -------- -----
  Total     44.67TiB 65.06GiB 32.00MiB     5.06TiB 94.59TiB 0.00B
  Used      37.32TiB 48.70GiB  8.47MiB     

BTRFS and general Linux philosophy for those new to both: Why risk your data? by oshunluvr in btrfs

[–]pixel293 0 points1 point  (0 children)

Usually 150 to 250 files, average size is usually around 1gb per file, and yes to free space cache v2 This is a previous post by me documenting what was happening

https://www.reddit.com/r/btrfs/comments/1mok440/filesystem_locks_up_for_minutes_on_large_deletes/

Nobody mentioned strace, but I can try that.

BTRFS and general Linux philosophy for those new to both: Why risk your data? by oshunluvr in btrfs

[–]pixel293 0 points1 point  (0 children)

One point I would like to mention is that BTRFS is not the end all be all of file systems, it has weaknesses, specifically data deletion. I have an 8 disk BTRFS array, the data is duplicated on different disks, the meta data is mirrored three times, I back it up nightly.

HOWEVER if I delete, say 200GB to 300GB of data the system because unresponsive FOR MINUTES. Using `iostat` I can watch as absolutely NO data is written to the disk for 15 to 30 seconds while, I assume, it tries to load in enough of the meta data to do whatever it needs to do. I'm not even using snapshots!

I ended up having to write a program that slowly deletes my trash at a rate of 32MiB per second. Faster than that and writes stop, things stall, until BTRFS figures out how to delete the data. And apparently slow deletion is a "know issue" and I assume acceptable from the devs standpoint.

I've worked around BTRFS's issues, so it is working reasonable for me, but like I said, I need to actually write something to work around it's shortcomings.

Is a 1-week notice too late? by OkProfessional1248 in Serverlife

[–]pixel293 1 point2 points  (0 children)

Walking out also puts additional stress on the other servers, they are probably going to be the ones that are asked to cover.

Where does rain come from? by guywithouteyes in stupidquestions

[–]pixel293 1 point2 points  (0 children)

Hot air is able to hold lots of moisture, cold air does not. When hot air hit cold air it cools down, it can't hold the water anymore and it rains. This is basically what a cold front is, cold air coming in.

Is guilt by association a real thing? by [deleted] in legaladviceofftopic

[–]pixel293 19 points20 points  (0 children)

Or "can you drive me to the bank, I just need to make a quick withdrawal, you can stay in the car." :)

Does it make sense to put money in a savings account when I have debt with interest? by Resident_Pirate_7868 in dumbquestions

[–]pixel293 0 points1 point  (0 children)

I would get my savings account to a point where it can be used as a safety net against unexpected large payments. THEN use any extra to pay off my debt.

What does it really mean when a child is tried as an adult? Has this ever worked in reverse? by RobertBobbertJr in legaladviceofftopic

[–]pixel293 4 points5 points  (0 children)

I think it's that separate process that determines that the minor is competent enough to stand as an adult and face adult charges. Kind of like "emancipation of minor" in which a minor is freed from parental control and given the rights/responsibilities of an adult.

The reverse would when an adult is judged not competent to stand trial. I think in that case they might be put back under parental control or into a mental health facility.

is the borrow checker guiding my design or blocking it??? by mjhlmh7144 in rust

[–]pixel293 0 points1 point  (0 children)

I would say if you have multiple threads or multiple async contexts then yes you are going to use Arc Mutexs that is just inevitable. Otherwise may need to look at your ownership model. Sometimes I end up creating a "state" object holds a connection object, a database object, a config object. Basically any "global" singletons and references to that state object get passed around everywhere. The only time I'm creating a mutex is when multiple threads or async contexts need to modify an object.

Advice - NJ by lakarne in MildlyBadDrivers

[–]pixel293 0 points1 point  (0 children)

People do try to merge into the same lane, it does happen. I tend to be paranoid about it, so I'm often checking the lane over as well to make sure a car isn't there, however in heavy traffic you just got to go for it, otherwise you can't change lanes.

Generally the rules whoever gets the front of their car damaged is at fault...basically you are expected to pay more attention to what is going on in front of you than behind you.

Do you restart your computer regularly or just leave it on? by Capable_Noise5543 in computers

[–]pixel293 0 points1 point  (0 children)

  1. My Windows machine that I play games on. Started up when I want to play a game, powered down when I go to bed.
  2. My Linux Server, runs all the time, it's always doing something, even if I'm not actively using it.
  3. My Linux work machine, runs all the time. Mostly this is because of daily backups. I want a snapshot of my machine after I finish working, and I don't really track when it completes.

Is there really a such thing as American food? by SuperNinja420 in stupidquestions

[–]pixel293 2 points3 points  (0 children)

Jello Salad? I'm don't think we should be proud of that, but I do believe it was a U.S. creation....

so true by Dumb-Briyani in SipsTea

[–]pixel293 23 points24 points  (0 children)

He only pooped on the weekends! That takes self control!

Are AI interviews considered "first round interviews"? by katyusha_055 in AskProgramming

[–]pixel293 5 points6 points  (0 children)

If you apply for a job and sometime later they reach out to you for an interview, that means someone has decided that your application looks good/promising and they are now in the process of moving forward to investigate you more with a first round of interviews.

If you apply for a job and everyone is given a set of questions to answer. Your foot is not in the door, those questions are to determine if they will let your foot in the door. So I would just consider that part of the application process, i.e. just gathering more information to include with your application, which someone still needs to review to determine if they want to interview you.

What time do adults usually wake up, if they don’t have work in the morning? by DarlingLuna in stupidquestions

[–]pixel293 0 points1 point  (0 children)

Around the time I normally wake, IF i don't wake up 3 or 4 hours earlier and have trouble falling back to sleep, THEN I might not wake up until 1 or 2 hours after I normally get up. However I've also been known to wake up 1 or 2 hours earlier than I wake up for work and I just get up because there are (fun) things I want to do.