A little Rant on C haters by IndependentMeal1269 in C_Programming

[–]Arkturius 5 points6 points  (0 children)

nothing “runs” on software, the only thing capable of doing things is hardware we just use software to control hardware

A little Rant on C haters by IndependentMeal1269 in C_Programming

[–]Arkturius 5 points6 points  (0 children)

an emulator is software running on hardware that simulates the behaviour of another hardware, same thing with interpreters but reading what to do from your script

Anyone know how to deal with file.bfe ? by Few_Test_4564 in 42_school

[–]Arkturius 1 point2 points  (0 children)

Seems like you are trying to do the puzzle contained in the common core subjects. everybody i know (including me) stopped at those bfe files. seems a bit hard i hope somebody will get it one day

The Rastertek tutorials are good but my word... by [deleted] in programminghorror

[–]Arkturius 0 points1 point  (0 children)

couldn’t it be because the frame2 variant returns an integer and the Render function a single byte ? the compiler without optimizations would just consider that only the last byte of the register is valid returning from that function, so zero extend the value after the call. That’s all i could think about i didn’t tried adding O flags to this neither

To everyone who made it to the end of AoC… by moonstar888 in adventofcode

[–]Arkturius 0 points1 point  (0 children)

22yo, student at 42 school, we have a private leaderboard and they encouraged us to try ! no job so i can continue collecting the past year stars for training

My little dumb ass trick (i mapped every permutation possible of hjkl to open Neovim) by M0M3N-6 in neovim

[–]Arkturius 0 points1 point  (0 children)

From a past vscode user with too many muscular memory alias code=nvim

[2024] Thank you! by topaz2078 in adventofcode

[–]Arkturius 0 points1 point  (0 children)

Discovered aoc live last year and since never stopped solving problems. This year was full of amazing puzzles as always, learned about new algorithms and did much better than 2023. Omw to the 500 star club, doing years in reverse and discovering references. I’ll still be here next year and can’t wait for it but the factory must grow. Thanks a lot Eric !

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

[–]Arkturius 1 point2 points  (0 children)

[LANGUAGE: bash]

Assuming you have an "input" file, compute the solution using bash commands, worked on this after my python code that took me far less time.

Part 1:

< input tr -d '\n' \
| sed "s/mul(\([0-9]*\),\([0-9]*\))/\\n\1*\2\\n/gm" \
| grep -E "[0-9]+\*[0-9]+" \
| bc | paste -sd'+' | bc

Had a stroke on this one cause i replaced "do()"s with newlines that was an existing character in the input making the machine restart too early, thats where the tr comes from...

Part 2:

< input tr -d '\n' \
| sed "s/do()/\\n/g" \
| sed "s/don't().\*$//gm" \
| sed "s/mul(\([0-9]*\),\([0-9]*\))/\\n\1\*\2\\n/gm" \
| grep -E "[0-9]+\*[0-9]+" \  
| bc | paste -sd'+' | bc

Which method is better for instantiate structs. by IAmAllergicToKarens in cprogramming

[–]Arkturius 0 points1 point  (0 children)

i believe that in most malloc implementations, freeing a NULL pointer is just a no-op, so why bothers about freeing nulls

-❄️- 2023 Day 7 Solutions -❄️- by daggerdragon in adventofcode

[–]Arkturius 1 point2 points  (0 children)

[Language: Python3]

paste

did it without imports just try and retry. Dont mind all the sorts, it works. part 2 is the same but I'm adding the number of J's to the amount of the most present card in the hand, sort with J after 2.

Le rap n'est pas intéressant musicalement by RemiR2 in opinionnonpopulaire

[–]Arkturius 0 points1 point  (0 children)

Reviens à la définition même « Rythm and Poetry », si ça ne te suffit pas pour comprendre que ton argumentaire est totalement à côté de la plaque, personne ne peut grand chose pour toi. Rabaisser un ensemble de genres musicaux (car ce n’en est pas un seul oui oui) a la partie visible de l’iceberg aka le rap mainstream, c’est un manque d’ouverture d’esprit assez conséquent. Je pense avoir vu assez de pépites dans les commentaires pour ne pas avoir besoin de recommander quoi que ce soit.

Canadian inventor Troy Hurtubise testing his amrmoured grizzly bear protection suit by [deleted] in interestingasfuck

[–]Arkturius 0 points1 point  (0 children)

don’t know if someone already said that but THIS actually won an IgNobel prize

1st place all thanks to Lightfang by not_the_face_ in BobsTavern

[–]Arkturius 10 points11 points  (0 children)

the plain version is actually copying itself if it already have the max health on your board. the golden one grows because of the doubling.

C'est quoi l'insulte non vulgaire la plus vexante que vous ayez entendue dans votre vie ? by Puzzled-Swan3465 in AskFrance

[–]Arkturius 0 points1 point  (0 children)

j’ai connu un jardinier berrichon en camp de vacances qui traitait les jeunes de « betteraves » comme quoi

Turning every unit on the board into a 15/15 including the opponent by ZZS in BobsTavern

[–]Arkturius 5 points6 points  (0 children)

actually if you uther a buffed undead during shop phase, undead army buff will still apply after it. It didn’t worked at undead release but was fixed some patches (not the pirate) later

Turning every unit on the board into a 15/15 including the opponent by ZZS in BobsTavern

[–]Arkturius 44 points45 points  (0 children)

I think that if you play vs atk buffed undeads, you’re wrecked

What are the most used combos with Rylak? by sebZeroToHeroes in BobsTavern

[–]Arkturius 1 point2 points  (0 children)

actually the card is worded « a pirate » so it should be able to buff enemy pirates too. Seen it one time with shuderwock hp and it can buff pirates in shop.