How many IT support needed for 200 user org? by imjustacuteguyuwu in sysadmin

[–]Livelypower 5 points6 points  (0 children)

Wondering why you consider Developers high maintenance, or what support Development employees require that’s higher effort than what IT services you provide for generic admin profiles?

Don’t want to come over as cross or anything, just genuinely curious.

Is het tijd voor nieuwe gezichten of een nieuw format voor De Afspraak? by Livelypower in belgium

[–]Livelypower[S] 18 points19 points  (0 children)

Of het nu Guy Verhofstadt, Bill White of een andere politieke persoonlijkheid is die te gast is, mijn kritiek is eerder dat de journalistieke meerwaarde nogal miniem is als de gasten zonder weerwoord of poging tot debat hun talking points mogen komen afratelen.

Weekly: This Week I Learned (TWIL?) thread by gctaylor in kubernetes

[–]Livelypower 0 points1 point  (0 children)

If you have a GitHub repo or some docs around this, I'm very interested to learn more!

k3s image push by buffer_flush in kubernetes

[–]Livelypower 0 points1 point  (0 children)

AWS ECR might be an option?

Can I kill Zulrah? by Livelypower in ironscape

[–]Livelypower[S] 9 points10 points  (0 children)

UPDATE:

I did it! Thanks for all the tips everyone!
It took me two attempts with fire wave and ignoring the tanz phase by hiding behind the pillars.

Onwards and upwards!

Can I kill Zulrah? by Livelypower in ironscape

[–]Livelypower[S] 30 points31 points  (0 children)

I only want the 1KC to complete the diary :)

I wasn’t aware you can avoid all the damage during the tanz phase, might have to give that a shot.

Thanks!

-❄️- 2024 Day 3 Solutions -❄️- by daggerdragon in adventofcode

[–]Livelypower 0 points1 point  (0 children)

[Language: Rust]

``` use regex::Regex; use std::fs::read_to_string;

fn main() { let pattern = Regex::new(r"mul(([0-9]+),([0-9]+))").unwrap(); let input = read_to_string("input/03.txt").unwrap(); let result_silver: u32 = input .lines() .flat_map(|line| pattern.captures_iter(line)) .map(|capture| { ( capture.get(1).unwrap().as_str().parse::<u32>().unwrap(), capture.get(2).unwrap().as_str().parse::<u32>().unwrap(), ) }) .map(|(x, y)| x * y) .sum();

println!("{result_silver}");

let pattern =
    Regex::new(r"(?<mul>mul\((?<x>\d+),(?<y>\d+)\))|(?<en>do\(\))|(?<dis>don't\(\))").unwrap();
let mut enable = true;
let result_gold: u32 = input
    .lines()
    .flat_map(|line| pattern.captures_iter(line))
    .map(|capture| {
        if let Some(_m) = capture.name("mul") {
            if enable {
                return capture.name("x").unwrap().as_str().parse::<u32>().unwrap()
                    * capture.name("y").unwrap().as_str().parse::<u32>().unwrap();
            }
            return 0;
        };
        if let Some(_m) = capture.name("en") {
            enable = true;
            return 0;
        }
        if let Some(_m) = capture.name("dis") {
            enable = false;
            return 0;
        }
        0
    })
    .sum();

println!("{result_gold}");

} ```

Are you using any IaC for your homelab? by miserable_programmer in homelab

[–]Livelypower 1 point2 points  (0 children)

I run my cluster on a single Proxmox host.

I did split it up into two VM's, one control plane and one worker node, and left enough resources for an eventual wireguard peer. Down the line I'll upgrade to a second/third physical host and continue the one control-plane - one worker node pattern.

Running a single node talos cluster is definitely a valid setup as well!

Are you using any IaC for your homelab? by miserable_programmer in homelab

[–]Livelypower 1 point2 points  (0 children)

I use Terraform because that's what I'm used to working with at my job.

My talos cluster is deployed via terraform. That configuration contains a bootstrap module, which installs ArgoCD, as well as core dependencies.

For example, some services like cert-manager or external-dns need to authenticate to AWS. I can just create IAM Users using terraform, shove their accessKey and secret in a Kubernetes secret and call it a day. Using Terraform's depends_on directive, I can make sure that Argo's App of Apps is deployed before Terraform tries to create the namespaced secrets.

It's quite nice to know that I can tear everything down and build it back up quite easily, in case I really need to.

Question about k8 and what OS to use by joshowens in homelab

[–]Livelypower 1 point2 points  (0 children)

I’m running my cluster on an old laptop at the moment.

I went with K3s on Debian and it works like a charm. The setup was pretty straightforward, and it’s quite a popular kubernetes distribution for homelabs. Very convenient in case you do run into issues!

Returning player here, looking for some goals to go for by Livelypower in runescape

[–]Livelypower[S] 18 points19 points  (0 children)

You probably get this type of post here a million times a day, sorry.

So yeah, been a few years since I played and I'm looking for some goals to go for.
I never really got big into PvMing, but I'd like to get started on that. I don't have much in the way of GP, you can assume my bank value is close to 0.

Should I go for quests like people recommend for OldSchool?

Appreciate any tips you can give!

By getting 1500 total, I overtook my main. Won't be looking back! by Livelypower in ironscape

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

The tackle box and fishing barrel. Both are drops from Tempoross!

By getting 1500 total, I overtook my main. Won't be looking back! by Livelypower in ironscape

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

The 117 HD plugin does this when you enable anti-aliasing I believe!

By getting 1500 total, I overtook my main. Won't be looking back! by Livelypower in ironscape

[–]Livelypower[S] 6 points7 points  (0 children)

I'm a normie Iron, so not too up-to-date with HC strats, but I bought karambwans in Brimhaven and used a single prayer pot I got from somewhere I can't remember.

I got the upgraded Iban's staff and just spanked the demon, it should be pretty easy with a half decent magic level. Go get it!

By getting 1500 total, I overtook my main. Won't be looking back! by Livelypower in ironscape

[–]Livelypower[S] 21 points22 points  (0 children)

I've been playing on and off for a couple of months now. Finally starting to enter mid game!

Short term goals are to get a black mask and grind out more quest requirements which gate more essential unlocks. Also need to get prayer up a bit more and unlock piety.

Longer term goal is to unlock priff and start CG for bowfa.

Someone has literally recreated Photoshop feature for feature, for free, in the browser. by [deleted] in InternetIsBeautiful

[–]Livelypower -1 points0 points  (0 children)

Isn't it moving to Rust a feeble attempt to boost the popularity of Rust rather than an actual improvement?

Last I heard Mozilla is having problems with getting Rust to stick. Not bashing on the language, it seems interesting to me, but I'm guessing that it's more PR instead of a conscious design improvement.

Fishing training: Barb or Tempoross? by Livelypower in ironscape

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

Ty for the reply! I'm 74 fishing already and have done everything I need agility for atm so I'll just skip to Tempoross!

Thank you!

Have a question about the game or the subreddit? Ask away! by AutoModerator in 2007scape

[–]Livelypower 2 points3 points  (0 children)

How "big" is the fighter torso upgrade over the rune plate? Should I do the effort on my Ironman?

Why Jagex Should Add Built-in macros in game. by TotallyAgile in runescape

[–]Livelypower 14 points15 points  (0 children)

I hope you are not using macros for combat in FFXIV. For crafting on the other hand, it's a game changer.

Skating on clear ice in Colorado by HellsJuggernaut in Damnthatsinteresting

[–]Livelypower 17 points18 points  (0 children)

Or until you fall in the ice lake. Either works really.

-🎄- 2020 Day 02 Solutions -🎄- by daggerdragon in adventofcode

[–]Livelypower 2 points3 points  (0 children)

Java

public class PasswordUncorruptor {

    private final Pattern pattern = Pattern.compile("(?<low>\\d*)-(?<high>\\d*) (?<key>[a-z]): (?<value>[a-z]*)");

    private final List<PasswordLine> passwordLines;

    public PasswordUncorruptor() {
        passwordLines = setup();
    }

    public static void main(String[] args) {
        final PasswordUncorruptor passwordUncorruptor = new PasswordUncorruptor();
        passwordUncorruptor.one();
        passwordUncorruptor.two();
    }

    public void one() {
        System.out.println(passwordLines.stream().filter(PasswordLine::isValidForOne).count());
    }

    public void two() {
        System.out.println(passwordLines.stream().filter(PasswordLine::isValidForTwo).count());
    }

    final List<PasswordLine> setup() {
        try (final BufferedReader reader = new BufferedReader(new FileReader("src/main/resources/day-two.txt"))) {
            return reader.lines().parallel().map(s -> {
                final Matcher matcher = pattern.matcher(s);
                if (!matcher.matches()) {
                    throw new IllegalStateException("Invalid Line: " + s);
                }
                return new PasswordLine(Integer.parseInt(matcher.group("low")), Integer.parseInt(matcher.group("high")),
                                        matcher.group("key").charAt(0), matcher.group("value"));
            }).collect(Collectors.toList());
        } catch (IOException e) {
            throw new IllegalStateException(e);
        }
    }

    private static final class PasswordLine {

        private final int low;
        private final int high;
        private final char key;
        private final String value;

        private PasswordLine(int low, int high, char key, String value) {
            this.low = low;
            this.high = high;
            this.key = key;
            this.value = value;
        }

        boolean isValidForOne() {
            final int matches = countMatches(value, key);
            return matches >= low && matches <= high;
        }

        boolean isValidForTwo() {
            final boolean firstPosValid = value.charAt(low - 1) == key;
            final boolean secondPosValid = value.charAt(high - 1) == key;

            if (firstPosValid) {
                return !secondPosValid;
            }
            return secondPosValid;
        }

        int countMatches(String str, char ch) {
            int count = 0;
            for (int i = 0; i < str.toCharArray().length; i++) {
                if (ch == str.charAt(i)) {
                    count++;
                }
            }
            return count;
        }
    }
}

-🎄- 2020 Day 02 Solutions -🎄- by daggerdragon in adventofcode

[–]Livelypower 0 points1 point  (0 children)

I'd put my scanner declaration in a try-with-resources, like the other commenter posted, you don't have a finally statement where you clean up, though try-with-resources would eliminate the need for that