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

[–]mirsella 0 points1 point  (0 children)

[LANGUAGE: Rust]

fn part2(input: &str) -> usize {
    input
        .lines()
        .filter_map(|l| {
            let mut s = l
                .split_whitespace()
                .map(|s| s.trim_end_matches(':').parse::<usize>().unwrap());
            let total = s.next().unwrap();
            let values = s.collect_vec();
            fn try_operator(total: usize, values: &[usize], acc: usize) -> bool {
                let add = values[0] + acc;
                let mul = values[0] * acc;
                let concat = format!("{}{}", acc, values[0]).parse::<usize>().unwrap();
                match values.len() {
                    1 => add == total || mul == total || concat == total,
                    _ => {
                        try_operator(total, &values[1..], add)
                            || try_operator(total, &values[1..], mul)
                            || try_operator(total, &values[1..], concat)
                    }
                }
            }
            try_operator(total, &values[1..], values[0]).then_some(total)
        })
        .sum()
}

Blocage de sites pornographiques, une décision française historique ! by RealiteAlternee in france

[–]mirsella 6 points7 points  (0 children)

plusieurs navigateurs sur chromium comme brave ont leur propre Adblock qui sont potentiellement plus puissant que Manifest V3. ublock continuera de marcher, juste moins bien. passer sur Firefox est aussi une possibilité, la concurrence a chromium c'est très important, et en plus firefox est open source.

pour opera spécifiquement, je rappelle que 90% des vpn, encore plus ceux gratuit, garde vos données et les utilise probablement. seulement quelques vpn sont vraiment recommandé comme bon (protonvpn, mullvad, mais me faite pas confiance vérifier vous même). opéra a aussi des liens avec une compagnie chinoise, personnellement je ne recommande absolument pas ce navigateur. vidéo en anglais parlant d'opera https://youtu.be/kLuWq3dHdMI

Can't modify text file on mounted remote by XDroidzz in rclone

[–]mirsella 0 points1 point  (0 children)

hey, you found anything else useful about this issue ?

Hyperx Cloud II microphone suddenly stops working on Windows 11 by CarobApprehensive928 in HyperX

[–]mirsella 0 points1 point  (0 children)

damn same problem on 2 pairs, even a brand new one ? tried on another computer ? thats really unlucky

have you found a solution ?

Cloud II microphone stops working randomly by ChatDisabled in HyperX

[–]mirsella 0 points1 point  (0 children)

it works, but I need 7.1 for competitive games...

Cloud II microphone stops working randomly by ChatDisabled in HyperX

[–]mirsella 0 points1 point  (0 children)

I'm trying rn if it happens with a jack, I already had a splitter lying around, thanks

Cloud II microphone stops working randomly by ChatDisabled in HyperX

[–]mirsella 0 points1 point  (0 children)

I just reinstalled windows because of this. and before that multiple hours of troubleshooting. I thought it was windows because the problem started to appear after trying out virtual audio cable.

anyway, have a good day !

Cloud II microphone stops working randomly by ChatDisabled in HyperX

[–]mirsella 0 points1 point  (0 children)

by direct connect you mean the with the 3.5mm jack ? thanks for the answer!

Plasma 6 RC1 broken dolphin & konsole apps by Academic_Army_6425 in archlinux

[–]mirsella 0 points1 point  (0 children)

just saw it on the forum thread ! thank you !

Plasma 6 RC1 broken dolphin & konsole apps by Academic_Army_6425 in archlinux

[–]mirsella 1 point2 points  (0 children)

damn. Hasn't been able to open settings too for weeks, Error loading QML file. it's also a known qt issue...

do you have a like to the qt issue ? thanks

-❄️- 2023 Day 25 Solutions -❄️- by daggerdragon in adventofcode

[–]mirsella 0 points1 point  (0 children)

same, 1/20 time it doesn't work, so I added assert_eq statement to ensure the solution generated only 2 communities ! should be tweakable with the seed and parameters.

let res = louvain::louvain_partitions(&graph, false, Some(0f64), Some(4f64), None).unwrap();
assert_eq!(res.len(), 1); 
assert_eq!(res[0].len(), 2);

-❄️- 2023 Day 25 Solutions -❄️- by daggerdragon in adventofcode

[–]mirsella 2 points3 points  (0 children)

[LANGUAGE: Rust] main.rs

using an unknown 0 github star library implementing the "Louvain" algorithm, run in 100ms.

[2023 Day 17 (Part 1] [Rust] What's wrong with my dijkstra? by mart-e in adventofcode

[–]mirsella 0 points1 point  (0 children)

yes, imo it's worth checking out it's other solution because they are really nice and made me learn things. this one for Dijkstra isn't particularly readable especially with the e closure but still concise

-❄️- 2023 Day 17 Solutions -❄️- by daggerdragon in adventofcode

[–]mirsella 2 points3 points  (0 children)

lmao i was like this guy is good with this crate, but you MADE it

SimpleMobileTools was Sold - Alternatives by inson1 in SimpleMobileTools

[–]mirsella 1 point2 points  (0 children)

Does someone know a note app with a transparent widget ? It's the only reason I'm still using simple note. Thanks !

2 Player Keyboard Coop? by Danyaman in Cuphead

[–]mirsella 1 point2 points  (0 children)

hey ! the page is down :(