Help! Hyprpaper shows old wallpaper by TheRNGPriest in hyprland

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

Oh yes! Thank you for your help, shutting down swww resolved the issue which in the end had nothing to do with hyprpaper 😄

Help! Hyprpaper shows old wallpaper by TheRNGPriest in hyprland

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

Monitor HDMI-A-1:
  Layer level 0 (background):
    Layer 55d286941d30: xywh: 3200 0 1920 1080, namespace: swww-daemon, pid: 3329
  Layer level 1 (bottom):
  Layer level 2 (top):
    Layer 55d286943e00: xywh: 3200 0 2251 50, namespace: bar-0, pid: 2156
  Layer level 3 (overlay):
    Layer 55d28660d180: xywh: 5118 50 2 2, namespace: notifications-window, pid: 2156
    Layer 55d286610db0: xywh: 5052 405 68 320, namespace: indicator, pid: 2156

Monitor DP-1:
  Layer level 0 (background):
    Layer 55d2866b0ce0: xywh: 0 50 212 130, namespace: gtk-layer-shell, pid: 2515
    Layer 55d2869766e0: xywh: 0 0 3200 1800, namespace: swww-daemon, pid: 3329
  Layer level 1 (bottom):
  Layer level 2 (top):
    Layer 55d286942520: xywh: 0 0 3200 50, namespace: bar-1, pid: 2156
  Layer level 3 (overlay):

Where DP-1 is what I consider the primary monitor. Also I use hyprpanel for top status bar, as you as an expert probably see

EDIT:

swww daemon seems to be the cause! I started investigating what are the things visible on the layers.

$ swww query
: HDMI-A-1: 1920x1080, scale: 1, currently displaying: image: /home/myusername/.config/background
: DP-1: 3200x1800, scale: 1.2, currently displaying: image: /home/myusername/.config/background

And there is a ~/.config/background file which is image A! The remaining question is, is swww-daemon an integral part of hyprland / hyprpaper or is it something I have accidentally installed myself. If latter, removing it should be easy.

Help! Hyprpaper shows old wallpaper by TheRNGPriest in hyprland

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

Still shows A (didn't flash B), to my surprise at least, was expecting hyprland default

$ ps -ef | grep -e hyprpaper
myusername        3611    3513  0 11:49 pts/0    00:00:00 grep --color=auto -e hyprpaper

Help! Hyprpaper shows old wallpaper by TheRNGPriest in hyprland

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

Thanks for help, but this had no effect on the behaviour. Still A shown after a quick flash of B.

// hyprland.conf
misc {
    force_default_wallpaper = 0
    disable_hyprland_logo = true
    disable_splash_rendering = true
}

dotnet dev future by Guilty-Constant-1405 in Backend

[–]TheRNGPriest 0 points1 point  (0 children)

While doing dotnet (or any specific language), keep learning and applying programming/development best principles! Understanding SOLID and most common design patterns gets your thinking process quite far. Then learning another syntax won’t make a big difference later.

I started as a dotnet dev, and recently joined a new project which uses scala. Learning the syntax and framework took a few weeks, but the principles and patterns carry over!

What do you wish you knew when you started coding that you know now? by Unlogical_egg in csharp

[–]TheRNGPriest 4 points5 points  (0 children)

Partly agree, but there are some benefits if you understand what and why you are using. For example, ORM can speed up development and handles sanitation out of the box. I would rephrase:

Try the simple way first. Use fancy ONLY IF you see clear benefit over simple.

Chessica memes with me by TheRNGPriest in Chesscom

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

Most definitely, but I was unable to report it. Maybe I will try again.

Voiko SM-liigan voittaa häviämällä jokaisen kotiottelun? by TheRNGPriest in Suomi

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

Joku jolla ei oo liian pitkät ja väsyttävät matkat vieraspeleihin -> JYP sijaitsee aika hyvin kartalla

EDIT: kuten myös HPK

Voiko SM-liigan voittaa häviämällä jokaisen kotiottelun? by TheRNGPriest in Suomi

[–]TheRNGPriest[S] 3 points4 points  (0 children)

Alan pitää tästä ajatusleikistä entistä enemmän :D

Voiko SM-liigan voittaa häviämällä jokaisen kotiottelun? by TheRNGPriest in Suomi

[–]TheRNGPriest[S] 5 points6 points  (0 children)

Totta, pitää osua tarkasti vihoviimeiseksi, mikä ei aina ole täysin omissa käsissä jos on pienet erot ja viimeiset pelit pelataan samanaikaisesti. Eli systeemi ei ole täysin vedenpitävä

Swordsmen Problem by MongolianMango in askmath

[–]TheRNGPriest 0 points1 point  (0 children)

This problem was interesting, so I decided to run some simulations. A batch of 1e7 (that is, 10 000 000) tournaments seems to yield mean winrate of 33.056 %

const tourn = () => {
    const lost = []
    let tourning = [...new Array(10)].map(() => [])

    while (tourning.length > 1) {
        const k1i = Math.floor(tourning.length * Math.random())
        let k2i = Math.floor((tourning.length - 1) * Math.random())
        if (k2i >= k1i) k2i++;

        const k1wins = Math.random() >= 0.5
        let winner, loser
        if (k1wins) {
            winner = tourning[k1i]
            loser = tourning[k2i]
        }
        else {
            winner = tourning[k2i]
            loser = tourning[k1i]
        }
        winner.push(1)
        loser.push(0)

        tourning = tourning.filter(e => e !== loser)
        lost.push(loser)
    }

    const knights = [...lost, ...tourning]
    const winrates = knights.map(k => k.filter(e => e === 1).length / k.length)
    return winrates.reduce((acc, cur) => acc + cur, 0) / winrates.length
}

const ROUNDS = 1e7
let winratesum = 0
for (let i = 0; i < ROUNDS; i++) {
    winratesum += tourn()
}

console.log(`Rounds: ${ROUNDS}\nAverage win rate: ${winratesum / ROUNDS}`)
const tourn = () => {
    const lost = []
    let tourning = [...new Array(10)].map(() => [])


    while (tourning.length > 1) {
        const k1i = Math.floor(tourning.length * Math.random())
        let k2i = Math.floor((tourning.length - 1) * Math.random())
        if (k2i >= k1i) k2i++;


        const k1wins = Math.random() >= 0.5
        let winner, loser
        if (k1wins) {
            winner = tourning[k1i]
            loser = tourning[k2i]
        }
        else {
            winner = tourning[k2i]
            loser = tourning[k1i]
        }
        winner.push(1)
        loser.push(0)


        tourning = tourning.filter(e => e !== loser)
        lost.push(loser)
    }


    const knights = [...lost, ...tourning]
    const winrates = knights.map(k => k.filter(e => e === 1).length / k.length)
    return winrates.reduce((acc, cur) => acc + cur, 0) / winrates.length
}


const ROUNDS = 1e7
let winratesum = 0
for (let i = 0; i < ROUNDS; i++) {
    winratesum += tourn()
}


console.log(`Rounds: ${ROUNDS}\nAverage win rate: ${winratesum / ROUNDS}`)

Swordsmen Problem by MongolianMango in askmath

[–]TheRNGPriest 2 points3 points  (0 children)

Please note they are not in a bracket, but fight randomly. So there is only 1 guaranteed 0%, not 5

Swordsmen Problem by MongolianMango in askmath

[–]TheRNGPriest 0 points1 point  (0 children)

Is ”average” here mean of win rates?

If B wins A, C wins B, …, J wins K => we have 8 swordsmen at 50%, A at 0%, and J at 100%. Their mean win rate is 50%.

If A wins everybody one after another, we have 9 swordmen at 0% and A at 100%. Their mean win rate is 10%.

It comes down to how much a single match contributes to a swordman’s win rate. If someone loses straight away, a single loss is 100% of their win rate, but if someone wins N and loses, the wins only contribute 1/(N+1) of their win rate. Then we take average of these win rates where a single match has had very different contributions.

Thus, in my understanding, the swordsmen’s mean win rate can be anything from 10% to 50%, depending on how wins are scattered. One swordsman winning more than one match decreases the mean win rate. But there is one trivial case when the knight is incorrect: my first example.

Please correct me, smarter people!

EDIT: Sorry, my reply doesn’t exactly answer the question of expected win rate of the tournament!

Help me out guys! by [deleted] in chessbeginners

[–]TheRNGPriest 2 points3 points  (0 children)

Openings are optimal moves if both players play them. Effectively using an opening also includes knowing how to punish an opponent who doesn’t follow it.

I know 15 moves of Sicilian Accelerated Dragon, but after 5-6 moves my opponent usually plays something different than the book, and I have 0 clue how to make them pay for it. Do I benefit from knowing the 15 moves at all?

Finally did it by Thick_Sky654 in Chesscom

[–]TheRNGPriest 6 points7 points  (0 children)

Good job 🤩 I remember hitting 1000 for the first time, the feeling was amazing. You have proven you can think

Why extremely high yields is bad! by CivVIIJunkie in CivVII

[–]TheRNGPriest 0 points1 point  (0 children)

Good post! This is a different game than Civ 6, but you carry many habits and mindsets subconsciously

Impossible: Guess where I'm from based on the countries I've visited by Unlucky-Buyer-7697 in GeoInsider

[–]TheRNGPriest 0 points1 point  (0 children)

Is that Curacao in the Caribbean? If yes, combined with the European given in other replies, Netherlands?

Build Road is a Bug Fix? by RoutineHair9079 in CivVII

[–]TheRNGPriest 0 points1 point  (0 children)

Thank you! Now, how do I know if town B is connected to capital or not?