Eabryt's recent activity

  1. Comment on Reddit CEO Steve Huffman discusses how he wants every subreddit to be its own media company and he wants to see money being exchanged from users to users and users to subreddits in ~tech

    Eabryt
    Link Parent
    Rocking like 19 on our sub of 250k, but it's extremely busy and realistically probably only 11-12 super active mods.

    Rocking like 19 on our sub of 250k, but it's extremely busy and realistically probably only 11-12 super active mods.

    1 vote
  2. Comment on Plex breach exposes usernames, emails, and encrypted passwords in ~tech

    Eabryt
    Link
    This is shitty, but also I feel like Plex is handling it pretty well. From what I can tell this email went out within hours of them discovering the breach. I feel like many companies wait much...

    This is shitty, but also I feel like Plex is handling it pretty well.

    1. From what I can tell this email went out within hours of them discovering the breach. I feel like many companies wait much longer.

    2. They're forcing people to change their passwords, not just suggesting. I wasn't even able to log in this morning to reset it, it just automatically had me do it.

    Obviously it's not ideal, but I use a password manager anyway, so that password wouldn't have been in use anywhere else.

    12 votes
  3. Comment on Looking for a specific map app on iOS in ~tech

    Eabryt
    Link Parent
    Just to add that citystrides can be linked to your Strava/Garmin/MapMyFitness/Runkeeper accounts and will track your streets for you, so you can easily visualize a nice map of all the activities...

    Just to add that citystrides can be linked to your Strava/Garmin/MapMyFitness/Runkeeper accounts and will track your streets for you, so you can easily visualize a nice map of all the activities you've done.

    3 votes
  4. Comment on Amazon is acquiring iRobot in ~tech

    Eabryt
    Link Parent
    Pretty sure they already own Eufy don't they? Eufy has a robot vacuum. They could easily release a new version that includes mapping and does exactly what you say. I suppose that would take more...

    Pretty sure they already own Eufy don't they? Eufy has a robot vacuum. They could easily release a new version that includes mapping and does exactly what you say.

    I suppose that would take more time though.

    1 vote
  5. Comment on Language learning thread #2 - Share your progress, tips and questions in ~humanities

    Eabryt
    Link
    Still attempting to learn Hungarian. I can mostly understand the basic sentences that Duolingo gives me, but get totally lost when I meander over to /r/hungary. I feel like I need to start adding...

    Still attempting to learn Hungarian. I can mostly understand the basic sentences that Duolingo gives me, but get totally lost when I meander over to /r/hungary.

    I feel like I need to start adding more resources than just Duolingo if I want to make progress, but I'm not sure where to start, so if anyone has any suggestions I'm open.

    1 vote
  6. Comment on Is the US going to break up? in ~talk

    Eabryt
    Link Parent
    Boy am I trying. Any suggestions?

    FWIW, I got my EU citizenship

    Boy am I trying.

    Any suggestions?

    9 votes
  7. Comment on Language learning thread #1 - Share your progress, tips and questions in ~humanities

    Eabryt
    Link
    I've been trying to learn Hungarian for some time now. I can't say it's going great, but I think that's mostly just due to lack of commitment and the fact that I'm now an old. On the plus side, if...

    I've been trying to learn Hungarian for some time now. I can't say it's going great, but I think that's mostly just due to lack of commitment and the fact that I'm now an old.

    On the plus side, if I were to travel to Hungary tomorrow I could definitely say "Hello" and "Thank you" with ease.

    1 vote
  8. Comment on Reading The Wheel of Time in ~books

    Eabryt
    Link Parent
    Yeah I seem to recall when the show was airing that the showrunner was describing it as another turn of the wheel. The overall plot will be the sameish but chapter to chapter might be slightly...

    they do take some extreme liberties with the story

    Yeah I seem to recall when the show was airing that the showrunner was describing it as another turn of the wheel. The overall plot will be the sameish but chapter to chapter might be slightly different.

    1 vote
  9. Comment on If you could make one change to improve your favorite sport, what would it be? in ~sports

    Eabryt
    Link Parent
    Not this season! I agree though. Each year I tune in for the first few games of the season, I'll keep an eye on scores throughout the summer and occasionally toss a game on for a bit if I'm bored,...

    The regular baseball season is 6 months long (26½ weeks), 186 days, during which each MLB team will play 162 games.

    Not this season!

    I agree though. Each year I tune in for the first few games of the season, I'll keep an eye on scores throughout the summer and occasionally toss a game on for a bit if I'm bored, but then don't really start paying attention again until postseason arrives assuming my team is in.

    2 votes
  10. Comment on Bandcamp has been acquired by Epic Games in ~music

    Eabryt
    Link
    Definitely didn't see that coming.

    Definitely didn't see that coming.

    15 votes
  11. Comment on What small purchase has vastly improved your life? in ~life

    Eabryt
    Link Parent
    Supposedly Google Messages was adding this, but I've yet to see it.

    Supposedly Google Messages was adding this, but I've yet to see it.

    1 vote
  12. Comment on What small purchase has vastly improved your life? in ~life

    Eabryt
    Link Parent
    I'm curious how this is different from pi-hole, aside from it just being an external service vs self-hosted.

    I'm curious how this is different from pi-hole, aside from it just being an external service vs self-hosted.

    11 votes
  13. Comment on Day 7: The Treachery of Whales in ~comp.advent_of_code

    Eabryt
    Link
    Can every day be a weekday? The last two days have been much easier than Saturday + Sunday (aside from yesterday's memory issues) Anyway, pretty happy with how mine turned out, definitely could...

    Can every day be a weekday? The last two days have been much easier than Saturday + Sunday (aside from yesterday's memory issues)

    Anyway, pretty happy with how mine turned out, definitely could have re-written it to just be one function call, but I decided to leave it seperate

    Parse Input
    fn parse_input(input: &str){
        let crabs: Vec<_> = input.split(",").map(|x| x.parse::<isize>().unwrap()).collect();
        let max = &crabs.iter().max().expect("No isize found.");
        let min = &crabs.iter().min().expect("No isize found.");
        println!("Part 1: {:?}",part1(&crabs,**min,**max));
        println!("Part 2: {:?}",part2(&crabs,**min,**max));
    }
    fn main() {
        parse_input(&std::fs::read_to_string("input.txt").unwrap().trim().to_string());
    }
    
    Part I
    fn part1(crabs: &Vec<isize>, min: isize, max: isize) -> isize{
        let mut distance = isize::MAX;
        let mut cheapest = isize::MAX;
        for x in min..max {
            let mut fuel = 0;
            for crab in crabs {
                fuel += (crab - x).abs();
    
            }
            if fuel < distance {
                distance = fuel;
                cheapest = x;
            }
        }
    
        distance
    }
    
    Part II
    fn part2(crabs: &Vec<isize>, min: isize, max: isize) -> isize{
        let mut distance = isize::MAX;
        let mut cheapest = isize::MAX;
        for x in min..max {
            let mut fuel = 0;
            for crab in crabs {
                let n = (crab - x).abs();
                fuel += n * (n+1) / 2;
    
            }
            if fuel < distance {
                distance = fuel;
                cheapest = x;
            }
        }
        distance
    
    }
    
    2 votes
  14. Comment on Day 6: Lanternfish in ~comp.advent_of_code

    Eabryt
    Link Parent
    Oh yeah, that was it. Thanks. Not sure why there was a newline though, since the file didn't seem to show one.

    Oh yeah, that was it. Thanks.

    Not sure why there was a newline though, since the file didn't seem to show one.

    1 vote
  15. Comment on Day 6: Lanternfish in ~comp.advent_of_code

    Eabryt
    Link Parent
    Dumb question, but I was having some issues with my code for Part II so I figured I'd look at what you're doing. When I try to run your code I am not getting the correct answer. My Part I gives...

    Dumb question, but I was having some issues with my code for Part II so I figured I'd look at what you're doing. When I try to run your code I am not getting the correct answer.

    My Part I gives me: 351188
    Yours gives me: 350154

    The only thing I could think of is maybe related to the input file format?

    1 vote
  16. Comment on Day 6: Lanternfish in ~comp.advent_of_code

    Eabryt
    Link Parent
    Oh, duh. I knew it didn't have one yet, but didn't think about it since the error code didn't seem related. Cheers!

    Oh, duh. I knew it didn't have one yet, but didn't think about it since the error code didn't seem related.

    Cheers!

  17. Comment on Day 6: Lanternfish in ~comp.advent_of_code

    Eabryt
    Link Parent
    Sure, didn't want to overload too much. Full code so far const MAXAGE: u16 = 8; #[derive(Debug)] struct Lanternfish { age: u16, } fn process_fish(f: Vec<Lanternfish>) { println!("{:?}",f); } fn...

    Sure, didn't want to overload too much.

    Full code so far
    const MAXAGE: u16 = 8;
    
    #[derive(Debug)]
    struct Lanternfish {
        age: u16,
    }
    
    fn process_fish(f: Vec<Lanternfish>) {
        println!("{:?}",f);
    }
    
    fn print_type_of<T>(_: &T) {
        println!("{}", std::any::type_name::<T>())
    }
    
    fn part1(input: &str) {
       let ages: Vec<_> = input.split(",").collect();
       let mut fishes = Vec::new();
    
       for age in ages {
           fishes.push(Lanternfish { age: age.trim().parse::<u16>().unwrap() });
       }
    
       for x in 0..80 {
           print_type_of(&fishes);
           fishes = process_fish(fishes);
       }
    
    }
    
    fn main() {
        part1(include_str!("test.txt"));
    }
    
  18. Comment on Day 6: Lanternfish in ~comp.advent_of_code

    Eabryt
    (edited )
    Link
    Part 1 was pretty easy once I got my question answered. Part I const MAXAGE: u16 = 8; #[derive(Debug)] struct Lanternfish { age: u16, } fn process_fish(mut fishes: Vec<Lanternfish>) ->...

    Quick question while working on my solution in Rust.

    Part 1 was pretty easy once I got my question answered.

    Part I
    const MAXAGE: u16 = 8;
    
    #[derive(Debug)]
    struct Lanternfish {
        age: u16,
    }
    
    fn process_fish(mut fishes: Vec<Lanternfish>) -> Vec<Lanternfish> {
        let mut fish2 = Vec::new();
    
        for mut fish in fishes.iter_mut() {
            if fish.age == 0 {
                fish.age = 6;
                fish2.push(Lanternfish { age: MAXAGE });
            } else {
                fish.age -= 1;
            }
        }
        fishes.append(&mut fish2);
    
        fishes
    }
    
    
    fn part1(input: &str) {
       let ages: Vec<_> = input.split(",").collect();
       let mut fishes = Vec::new();
    
       for age in ages {
           fishes.push(Lanternfish { age: age.trim().parse::<u16>().unwrap() });
       }
    
       for _x in 0..80 {
           fishes = process_fish(fishes);
       }
       println!("{}",fishes.len());
    
    }
    
    fn main() {
        part1(include_str!("input.txt"));
    }
    

    I knew what was going to happen when I ran Part II, but I decided to break things anyway.

    2 votes
  19. Comment on Day 5: Hydrothermal Venture in ~comp.advent_of_code

    Eabryt
    Link Parent
    Ahh, nope, that was it, thanks! Today was my introduction to derive, so I'm not surprised I missed it. That's cool to learn!

    Ahh, nope, that was it, thanks! Today was my introduction to derive, so I'm not surprised I missed it.

    That's cool to learn!

    1 vote
  20. Comment on Day 5: Hydrothermal Venture in ~comp.advent_of_code

    Eabryt
    Link Parent
    Quick question, when I try to run through your code for Part I I'm hitting errors for your line 85 | let e = vent_map.entry(coord).or_insert(0); | ^^^^^ the trait `Eq` is not implemented for...

    Quick question, when I try to run through your code for Part I I'm hitting errors for your line

    85 |             let e = vent_map.entry(coord).or_insert(0);
       |                                    ^^^^^ the trait `Eq` is not implemented for `Coordinate`
       |                                    ^^^^^ the trait `Hash` is not implemented for `Coordinate`
    

    As someone who's using this project to learn Rust, I feel like this error message is probably something obvious that I'm missing?

    My initial guess was related to how I'm declaring vent_map, but I'm doing the same thing you are.

    1 vote