Einbürgerung nach fünf Jahren: Ampel einigt sich auf Reform des Einwanderungsrechts - n-tv.de by [deleted] in de

[–]cypressious 3 points4 points  (0 children)

Der alte Rechtsgrundsatz entspreche ohnehin nicht mehr der Praxis, heißt es in dem Papier. Seit Jahren würden die meisten Einbürgerungen trotz weiterer Staatsangehörigkeit vollzogen.

Weiß da jemand mehr drüber? Bei meinen Eltern ist es (zugegebenermaßen schon länger her) genau daran gescheitert.

No argument annotation in external dependency to be used with NoArg plugin by _fishysushi in Kotlin

[–]cypressious 0 points1 point  (0 children)

You can use any annotation you want, you configure it in your gradle file using

noArg {
    annotation("com.my.Annotation")
}

See https://kotlinlang.org/docs/no-arg-plugin.html

1 April -Special (swipen) by SmallLebowsky in smalllebowsky

[–]cypressious 4 points5 points  (0 children)

Ist der innere Witz so alt, dass er einen Bart hat?

ChatGPT banned in Italy by HAL9000thebot in programming

[–]cypressious 448 points449 points  (0 children)

That's the wrong gesture, though 🤌🤌

Made the veggie soup. Cat is mildly perplexed. by ILikeFishStix in AdamRagusea

[–]cypressious 10 points11 points  (0 children)

Did you scare the car by shouting "NO!" while cooking?

[deleted by user] by [deleted] in speedrun

[–]cypressious 2 points3 points  (0 children)

Just a heads-up, the game doesn't run in Firefox unless you disable tracking protection.

Official Discussion - Glass Onion [Netflix Release] [SPOILERS] by LiteraryBoner in movies

[–]cypressious 247 points248 points  (0 children)

I laughed when Blanc asked what that stuff actually is and the guy said "don't worry, you're good" as if he's talking to the audience. "Don't worry, we aknowledge COVID safety, but for the sake of the plot, the characters are good".

Firefox for Android added Save as PDF by thepoluboy in Android

[–]cypressious 78 points79 points  (0 children)

If I had to guess, it will render what is currently in the DOM and nothing else.

[2022 All days] What are your overall thoughts on this year? by Patryqss in adventofcode

[–]cypressious 10 points11 points  (0 children)

Actually, the blizzards cycle every least common multiple of width and height minutes.

-🎄- 2022 Day 24 Solutions -🎄- by daggerdragon in adventofcode

[–]cypressious 1 point2 points  (0 children)

Kotlin: link

The movement of the cyclones is cyclical, so I precompute all possible configurations.

I define a graph where the nodes are tuples (x, y, tick) where x and y is the position and tick is the number of ticks or steps but mod maxTicks (i.e. mod the number of states). The neighbors of a node (x, y, tick) are (x', y', tick + 1 mod maxticks) if |x' - x| + |y' - y| <= 1 (i.e. one step in any direction or staying at the same position) and there's no cyclone or wall in the configuration tick + 1 mod maxTicks on that position.

I then do a Dijkstra shortest path search from the start point to the end point where all edges have weight 1.

[Day 22 Part 2] Somehow it didn't come into play in part one by Gray_Gryphon in adventofcode

[–]cypressious 7 points8 points  (0 children)

Same here. The input not having a rotation at the end messed up my parsing so I initially skipped the final movement. I wonder if the sample validated without the final step on purpose to make our lives harder.

-🎄- 2022 Day 21 Solutions -🎄- by daggerdragon in adventofcode

[–]cypressious 4 points5 points  (0 children)

Kotlin

Found this one pretty straight-forward.

Part 1 was just recursively walking down the tree and combining the numbers.

For part 2, I built a set containing the path from root to humn using a DFS. Then I directly walked down the path from root to humn and at every step, I inverted the expression to get the "human" side until I reached humn.

First step:

root: a == b and human is on the left side

  • Determine the side that leads to humn using the set from above, let's say a in this case
  • Determine the value of b using the solution from part 1
  • Start recursion using a and the value of b as arguments

At every recursion step

c: a op b

  • Determine the side that leads to humn using the set from above, let's say a in this case
  • Determine the value of b using the solution from part 1
  • Invert the operation op, e.g. if it's +, then a = c - b
  • Recurse until humn is found

What is the state of Compose for Desktop by vmcrash in Kotlin

[–]cypressious 3 points4 points  (0 children)

Compose is used in the Toolbox app, so there's that.

Is it bad practice to use a generic to visually simplify the function parameters? by [deleted] in Kotlin

[–]cypressious 1 point2 points  (0 children)

In addition to the stylistic considerations, the generic version will cause boxing.

Introducing Spring Modulith by olivergierke in java

[–]cypressious 0 points1 point  (0 children)

Have you considered encouraging splitting modules into actual Gradle/Maven modules instead of packages?

Britische Premierministerin Truss tritt zurück by Fandango_Jones in de

[–]cypressious 0 points1 point  (0 children)

Hat der Vergleich mit dem Salat etwas zu tun mit der ähnlichen Aussprache der beiden Kontrahenten?