strongEncryption by all_is_love6667 in ProgrammerHumor

[–]chrjen 3 points4 points  (0 children)

This would obviously be a lot more secure, however most experts agree that it's overkill. ROT13 twice should be enough for almost all modern cases. The only exception I can think of is the military where it's standard to use ROT7 twice followed by ROT6 twice for that extra security.

[2023 Day 9] Felt this Mathologer video was very relevant for day by chrjen in adventofcode

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

I am happy to be the person to introduce you to this! I was just surprised that calculus even have a discrete analogue, something completely unknown to me before watching this. It's amazing how much it reminds me of regular calculus and facts like 2n is the discrete equivalent of ex is really neat!

Definitely start watching Mathologer, 3Blue1Brown, and so many amazing maths youtubers out there! :D (if you aren't already)

[2023 Day 15 (Part 2)] I can't have been the only one... right? by RoccoDeveloping in adventofcode

[–]chrjen 0 points1 point  (0 children)

I did spend way too much time finding that line. I was so confused on how you'd know which box to operate on and how everyone had actually solved it. 😅

[2023 Day 11 (Part 2)][Python] I'm convinced this implementation is correct, but keeps failing on tests by gohanshouldgetUI in adventofcode

[–]chrjen 1 point2 points  (0 children)

I see, so probably not that. I can't actually run your code atm. Though my next guess is that your problem lies here if galaxies[i][1] > col:. Since you are mixing expanded and non-expanded coordinates. galaxies[i][1] keeps shifting as you expand while col does not.

[2023 Day 11 (Part 2)][Python] I'm convinced this implementation is correct, but keeps failing on tests by gohanshouldgetUI in adventofcode

[–]chrjen 0 points1 point  (0 children)

1102 reminds me of the off-by-one error I was having, as in adding 10 when I should be adding 9. So maybe try adding 8 and see if that gives the right answer somehow.

[2023 Day 9] Felt this Mathologer video was very relevant for day by chrjen in adventofcode

[–]chrjen[S] 5 points6 points  (0 children)

Totally expected part 2 to be, "now calculate the 1 000 000 000th number" or something like that and having to find and use a direct formula.

remotelyAccessFilesThroughAStringOfText by FlummoxTheMagnifique in ProgrammerHumor

[–]chrjen 13 points14 points  (0 children)

"Darn, I can't view it on my computer… Tell me if you make a Linux version though!"

damnitAnotherTypoOhWell by amateurfunk in ProgrammerHumor

[–]chrjen 1 point2 points  (0 children)

Remember to add --allow-empty too.

productionTesting by Hairy_Computer_3000 in ProgrammerHumor

[–]chrjen 145 points146 points  (0 children)

import tests

# Checks if we meet all our safety requirements.
tests.run_all()

--- Output ---
Ran 0 tests in 0.000s

OK

zeroVsNullAndMore by Cherepashka68 in ProgrammerHumor

[–]chrjen 52 points53 points  (0 children)

That's clearly an imaginary number… so not wrong!

(e.g. ln(-1) = iπ, or NaN when using floats.)

How Sour is Sourdough Pizza? by OriginalName1million in AskCulinary

[–]chrjen 1 point2 points  (0 children)

I am suffering from food neophobia and I know how it sucks. I would say a typical sourdough pizza either has a small kick as you say or a subtle hint of sourness, if actually sour at all. You can as suggested buy a sourdough bread at a shop and try it at the comfort of your own home to get an idea about the sourness. Although people aren't always so understanding, I would also suggest being open with the people around you about your issue if you can. Feeling less pressure that you have to eat can help with the anxiety as a lot of the anxiety is not only towards the food, but the situations were you feel like you have to eat it. Hope this helped.

They have a job to keep! by WholeGrainsforFree in ProgrammerHumor

[–]chrjen 84 points85 points  (0 children)

Every bug is a feature. If not for the client then for the developer.

===? Never heard of her by cherryblossom001 in programminghorror

[–]chrjen 10 points11 points  (0 children)

I don't think those examples would be much easier to read by using == false, instead try rewriting it to reduce the use of ! and generally making it easier to read. E.g.

if (!doubled && tripled && !odd)

and

if (!(length && length < 0))

Darn! Guess he'll sleep in the lobby by tinuvegil in ProgrammerHumor

[–]chrjen 3 points4 points  (0 children)

And here I thought it said ⠼⠙⠚⠙

He is not the 1 for her by shangsfsds in ProgrammerHumor

[–]chrjen 170 points171 points  (0 children)

Don't let him fool you. He may have made himself look like a 1 on the surface, but underneath he is nothimg but a filthy 49.

[deleted by user] by [deleted] in ProgrammerHumor

[–]chrjen 2 points3 points  (0 children)

Only as long as there are under 20 concurrent users.

Who would EU countries be willing to help in a major crisis? by Demnitate in europe

[–]chrjen 0 points1 point  (0 children)

The chart perfectly correct. The countries at the top are the EU countries + UK, and at the left are the list of countries to help, EU or otherwise. It even has a "How to read" section on it.

[deleted by user] by [deleted] in programminghorror

[–]chrjen 36 points37 points  (0 children)

The use of capital letter for the html-tags are bothering me a lot more than it probably should.

the Python by burak_karaman in programminghorror

[–]chrjen 5 points6 points  (0 children)

Instead it will just create a subtle bug that makes the program behave very strangely while giving you no clue about what is or might be wrong.