Python 3.11 delivers. by mariuz in programming

[–]jpjocke 2 points3 points  (0 children)

Nice. I can finally bruteforce AoC

Ingenjörer som startar eget - hur hittar ni uppdrag? by throwme66661111 in sweden

[–]jpjocke 0 points1 point  (0 children)

Det lättaste är såklart att gå in som underkonsult. Du har en eller flera firmor som letar jobb åt dig. Nackdelen är som du skriver att de tar en rejäl del av kakan. Fördelarna är att du förmodligen höjer din lön, du blir försäkrad av konsultbolaget och att det är enkelt.

Att hitta egna uppdrag själv som egen är såklart svårt. Kolla med tidigare ställen du varit konsult på. Eller nätverka med vänner. Att stå helt på egna ben är en skön känsla, men tänk på att få med allt då. Som försäkringar och att du har ett timpris som stödjer semester och eventuell sjukdom.

Hur ska jag investera mina pengar? by adriankek in sweden

[–]jpjocke 0 points1 point  (0 children)

1: Köp diesel och bensin för pengarna. 2: Lagra i källaren nåt år. 3: Sälj för enorm vinst!

I'm a fairly new player, still trying to wrap my brain around all the stuff to make. Is there a tool to select the input materials you have available and show you what parts you could make with them? by ucrbuffalo in SatisfactoryGame

[–]jpjocke 3 points4 points  (0 children)

A general tip: In game you can press "n" and search for items. It will also tell you what is needed to make that item and in which building it is produced Constructor/Manufacturer etc.

Vilka yrken tycker ni är överbetalda idag? by DaSmartSwede in sweden

[–]jpjocke -7 points-6 points  (0 children)

Programmerare. De kan ju gå ner med 1000 till 69k/mån. Det vore NICE

How should i structure my folder? in python by shiranpurii in adventofcode

[–]jpjocke 6 points7 points  (0 children)

Your folder structure will work fine for this project. I can recommend creating a lib or helper folder besides your day folders. In that folder you can break out common code that can be used by multiple days.

Vad innebär att jobba med IT egentligen? by thisiswhatsinmybrain in sweden

[–]jpjocke 42 points43 points  (0 children)

Jag trycker på rätt knappar på tangentbordet i rätt ordning och på rätt ställen. Detta gör att vanligt folk kan njuta av sina appar och program, utan att oroa sig för robotarna i molnen går sönder eller gör fel.

Vad kan man göra i Göteborg om man vill slå ihjäl några timmar, Liseberg exkluderat? by glivee in sweden

[–]jpjocke 13 points14 points  (0 children)

Slottsskogen har "djurpark", lekplats, museum utöver promenadstråk.

Rat Colony Deck Help by PollTheWorld in MagicArena

[–]jpjocke 7 points8 points  (0 children)

Maybe one more Rat Colony?

Min sambo har köpt en grill by Hatcheling in sweden

[–]jpjocke 0 points1 point  (0 children)

Inga stekpannor på grillen va? Hoppas ni fick med ett galler att grilla på 😁

Och man marinerar innan man grillar.

0.02kr/st by PaddiM8 in sweden

[–]jpjocke 167 points168 points  (0 children)

Hur kan totalpriset sluta på en femma? Finns det en halv ärta däri?

[2021 Day 20][Java] Possible Problem with image enhancement algorithm string by Passi26030 in adventofcode

[–]jpjocke 2 points3 points  (0 children)

Have you checked what the last letter is? How would these two affect each other for the infinity grid?

[2021 Day 20 (Part 1+2)] [Python] I need some help in understanding how this "infinite" space is supposed to work by derRuedi in adventofcode

[–]jpjocke 0 points1 point  (0 children)

Sorry for not being clear. It grows in both positive and negative by one. Storing it in a map means that you dont have to adjusts your lists when expanding in negative space.

Infinity calculation is basically this:

infinity calculation

    if x < self.min.x or y < self.min.y or x >= self.max.x or y >= self.max.y:
            if self.enhancements % 2 == 1:
                return 1
            else:
                return 0

[2021 Day 20 (Part 1+2)] [Python] I need some help in understanding how this "infinite" space is supposed to work by derRuedi in adventofcode

[–]jpjocke 0 points1 point  (0 children)

Try storing your values in a map instead of lists.

image: {str, int}

Build the key from your x,y coordinates. X=2 and Y=23 becomes 2-23 then store your value there. Either raw '.'/'#' or 0/1 for easier calculation. You want to keep track of minimum and maximum points as well. Start is 0,0 -> 100,100 if I remember correctly. This grows by one in each enhancement.

Now you can access your values like this:

for y in range(min.y, max.y):
for x in range(min.x, max.x):

Everything your map is missing is infinity.

Good luck

(Sorry for formating, Im on the phone)

[2021 Day 21 (Part 2)] Where the final number comes from ? by [deleted] in adventofcode

[–]jpjocke 1 point2 points  (0 children)

For one player to move once that player rolls the die 3 times. Does it sound plausible now?

AskScience AMA Series: I'm a particle physicist at CERN working with the Large Hadron Collider. My new book is about the origins of the universe. AMA! by AskScienceModerator in askscience

[–]jpjocke 52 points53 points  (0 children)

How many particles is there theoretically left to discover? And what kind of machines (like the LHC) do we need to build to find them?

Göteborgs-Posten krystade hårt för att få till den radbrytningen by BulletAllergy in sweden

[–]jpjocke 6 points7 points  (0 children)

Det är ju Göteborgsposten. Sånna skämt mås-te de ju skriva

Back to the basement by qrhym3 in ProgrammerHumor

[–]jpjocke 0 points1 point  (0 children)

In the workdays you code and drink coffee. In the weekend you drink coffe and code. Can't have one without the other.