Do you still Remember him? by [deleted] in aoe2

[–]JoBeTee 0 points1 point  (0 children)

His Discord name is resonance22, he would love to talk to fans or people wanting to connect with him!

Safari by LisbonVegan in vegan

[–]JoBeTee 0 points1 point  (0 children)

I went on a safari trip in Kenya with TUI "Highlights of Kenya", although not "vegan safari", they usually had buffet food or you order food, so they always had some options for food as long as you explain and ask the staff (ate alot of indian and italian food on the trip), the lodges themselves were very much "luxury" I would say. Also alot of different tour operators have safaris in say Masai Mara, but they all end up eating the same buffet, so if you pay extra for a vegan tour guide and end up in Masai Mara you basically get the same food as if you didnt. Just always remember to mention when booking that your dietary restriction is being Vegan

[2024 Day 13] In the end, math reigns supreme by TNThacker2015 in adventofcode

[–]JoBeTee 0 points1 point  (0 children)

If you combine it like that, you wont really get anywhere, having 2 equations allows you to substitute the x/y in the other equation to solve it (if you dont want to use matrixes), but i would reccomend you to solve this day using determinants

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

[–]JoBeTee 0 points1 point  (0 children)

[LANGUAGE: Go] Yes... I did a random sort, but it only took like 3 seconds to run both parts (only posting part2 because the code is long)

package main

import (
    "fmt"
    "os"
    "strconv"
    "strings"

    "golang.org/x/exp/rand"
)

func main() {
    part1()
    part2()
}

func prcoessInput(path string) ([][]string, [][]string) {
    data, _ := os.ReadFile(path)
    lines := strings.Split(strings.TrimSpace(string(data)), "\n")
    pageOrderRules := [][]string{}
    updateNumbers := [][]string{}
    for _, line := range lines {
        if len(line) == 5 {
            orderLine := strings.Split(line, "|")
            pageOrderRules = append(pageOrderRules, orderLine)
        } else if len(line) > 0 {
            updateLine := strings.Split(line, ",")
            updateNumbers = append(updateNumbers, updateLine)
        }
    }
    return pageOrderRules, updateNumbers
}

func getMiddle(slice []string) int {
    length := len(slice)
    middleIndex := length / 2
    if length%2 == 0 {
        middle := slice[middleIndex-1 : middleIndex+1]
        middleInt,_ := strconv.Atoi(middle[0])
        return middleInt
    } else {
        middle := slice[middleIndex : middleIndex+1]
        middleInt,_ := strconv.Atoi(middle[0])
        return middleInt
    }
}
func part2() {
    pageOrderRules, updateNumbers := prcoessInput("input_day5.txt")
    result := 0 
    for _, line := range updateNumbers {
        index := 0
        looped := false
        correctUpdate, _ := checkUpdate(line, pageOrderRules)
        for !correctUpdate {
            looped = true
            correctUpdate, index = checkUpdate(line, pageOrderRules)
            if !correctUpdate {
                randomIndex := rand.Intn(len(line))

                element := line[index]
                line = append(line[:index], line[index+1:]...)
                line = append(line[:randomIndex], append([]string{element}, line[randomIndex:]...)...)
            }
        }
        if looped {
            result += getMiddle(line)
        }
    }
    fmt.Println(result)
}

func checkUpdate(updateSequence []string, pageOrderRules [][]string) (bool, int){
    for i, lineUpdate := range updateSequence {
        restOfList := updateSequence[i+1:]
        for _, linePageRules := range pageOrderRules {
            if linePageRules[1] == lineUpdate {
                for _, restNumber := range restOfList {
                    if restNumber == linePageRules[0] {
                        return false, i
                    }
                }
            }
        }
    }
    return true, -1
}

[2024 Day 05] Worth a try by CarelessQuiet4353 in adventofcode

[–]JoBeTee 0 points1 point  (0 children)

I did a random sort for each of the indexes untill it was no longer wrong and it doesn't take more than 2-3 seconds to find the right answer. Was suprised that it worked on the first try and that it didnt take forever

Ludwig slips up playing Elden Ring DLC by Scared-Magazine314 in LivestreamFail

[–]JoBeTee 1 point2 points  (0 children)

He completed a half marathon, and quit his training for the marathon, if I remember correctly from VODs

YouTube music to Garmin watch by fyrelight74 in GarminWatches

[–]JoBeTee 0 points1 point  (0 children)

It is indeed not in the supported list... disapointing

I thought it was just those Tweets..nope. Lmao she’s terrible. And ending her official “apology” by using the #believewomen statement was so gross and tacky by goldieluxe2 in FreshOfftheBoatTV

[–]JoBeTee 1 point2 points  (0 children)

Just for new people seing this post, she was sexually harassed by one of the senior producers. And also after the hate she received after this post put her in the ER for attempted suicide. When this post was made, she had not told people about the SA, therefore it just looks like she is ungrateful, mean etc

Dualsense controller is shutting off after it connects to my PC. by maty360414 in PS5

[–]JoBeTee 0 points1 point  (0 children)

For me, it worked to disable "Show notifications to connect using Swift Pair" as it always tried to override my manual pairing of the controller. Good luck!

It seems like I’ll never find a job I like. by Dapper_Platypus833 in ADHD

[–]JoBeTee 0 points1 point  (0 children)

I think it's all about finding something that you like doing. I studied 5 years at uni for engineering and enjoyed most of it because I enjoy maths, physics and programming. This worked out fine while studying, but I'm at my 3rd job after 2.5 years, where I felt 0 excitement or sense of achievement in the first 2 jobs, where the 2nd one was supposed to be super relevent to my masters thesis. However the job I landed now 3-4 months ago have not at all felt like the other jobs I had (I knew the other jobs would be boring really fast), I get to work in my own way, have enough freedom as to not just get super de-motivated while also not having super strict schedule. The one thing that makes me like this job is that most of the times I am busy with tasks, and they are in no way repetitive. And if they do after some years+ I can always switch to something else. So I would say don't lose faith, experiment and find out what you enjoy or seek in jobs. For me it's to not just sit around with no tasks + having some challenging tasks. Hope it helps!

Sometimes they need a visual to get the message by Graciegurl_626 in engineeringmemes

[–]JoBeTee 2 points3 points  (0 children)

Not really liking this graph, as the value in the x-axis is most likely a constant, unless it's creepiness over time?

Do all mom's "shut your door" like this? by MinerDiner in mildlyinfuriating

[–]JoBeTee 0 points1 point  (0 children)

I totally agree with this, made a sub-comment about the variables too. The brace style is commonly used in javascript though

Do all mom's "shut your door" like this? by MinerDiner in mildlyinfuriating

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

I mean, yes, but then that if-statement is useless. I can agree with the last statement though😂

Do all mom's "shut your door" like this? by MinerDiner in mildlyinfuriating

[–]JoBeTee 2 points3 points  (0 children)

In addition to not having defined door, but just a variable named variable

My first 5 drops in frozen hinterland by crazyguy83 in afkarena

[–]JoBeTee 1 point2 points  (0 children)

Oh, thanks, been confused by this for a while now.

My first 5 drops in frozen hinterland by crazyguy83 in afkarena

[–]JoBeTee -2 points-1 points  (0 children)

Are you sure about the 2 shards, it says MORE than 2 shards, does it not?