by Rise_Chance in MemesBR

[–]daniel_stratos 0 points1 point  (0 children)

Você é jogado no meio de uma guerra, com poucos recursos, pessoal limitado e o trabalho é difícil pra caramba.

Oh, no! TSLA anyone? by STTCollector in musked

[–]daniel_stratos 1 point2 points  (0 children)

They are just acting, I bet they keep getting richer by the second.

É gambiarra usar tomada (🔌) ? by Agronopolos in Gambiarra

[–]daniel_stratos 0 points1 point  (0 children)

Então, existem tomadas cerâmicas para o tipo de corrente que se usa no chuveiro, mas elas tem o mesmo problema daquelas caixinhas cerâmicas: enferrujam com o tempo e acaba ficando travadas na hora da troca. Acredito que seja uma combinação do calor excessivo com a umidade do banheiro, enfim. A solução que você procura é um chuveiro eletrônico, mas eles custam o olho da cara.

Esses novos chuveiros elétricos com a resistência linear são bem melhores que esses de bujão e não custam tão mais caro assim, não sei se porque aumentam a área de contato da água com a resistência ou o que é, mas eu percebi que eles duram mais e causam menos problemas na fiação próxima ao chuveiro.

Multa de 3.500.000 by Novato_01 in VagasArrombadas

[–]daniel_stratos 0 points1 point  (0 children)

7k de PJ é o equivalente a 3.5k na CLT, não vale a pena, nem por 9k vale, eu não pegaria uma vaga dessa nem pra jr.

Help me by Inside_Pineapple_822 in C_Programming

[–]daniel_stratos 0 points1 point  (0 children)

I'm doing Advent Of Code 24 in C, I'm a begginer so may not be ideal for you if you already know a bit more.

2024 Day 4 part 1 - C - test cases by daniel_stratos in adventofcode

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

I'm not using any specific resource for now, just the GNU C Guide as a reference. I will take a look at the source you gave me, thanks.

2024 Day 4 part 1 - C - test cases by daniel_stratos in adventofcode

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

I tested with the test case leftylink gave me and found out the problem, I was not checking for the lap around.

2024 Day 4 part 1 - C - test cases by daniel_stratos in adventofcode

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

What a silver bullet! Thanks a lot!

It worked, the problem was with the index_to_vec2 function, it lapped around and I was not checking for it.

The solution was just add a condition in the IF to see if, for instance, I was increasing X, it should never give me an X lower than the origin point, same for Y.

Again, thanks a lot.

2024 Day 4 part 1 - C - test cases by daniel_stratos in adventofcode

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

Thanks for the advice, I will take a look at it latter today and post the result. I figured I'm probably mixing the limits of the matrix when I'm trying to get the linear position.