Part of Advent of Code Golf 2021 event. See the linked meta post for details.
The story continues from AoC2015 Day 5, Part 2.
Santa needs help figuring out which strings in his text file are naughty or nice. He has already tried two sets of rules, but they're totally ad-hoc, cumbersome, and jank...
@RedwolfPrograms But you can star stuff even in galleries, frozen rooms, and timeout'd rooms, so I doubt there's much thought put into stopping star spam
hah, nah, the microsoft scammer/spammer that keeps hammering SE sites and getting beaten hard by the Smoke Detector and reviewers is the 'evil twin' of the people here :P
You might be able to look through all of your sent messages (like I did to find my first TNB message), but that's a lot of work for like no real reason lol
totally fake challenge: make a write-only program that takes no input and spits out the following: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut hendrerit varius convallis. Sed sodales vel nulla nec elementum." And make it so we can't read the program code. :P
because that's basically the idea being discussed now for chat rooms xD
@Bubbler That reminds me of my favourite proof. We aim to show that 2^(1/n) is irrational for all integers n > 2. Assume that 2^(1/n) = a/b for integers a and b. Therefore, 2 = a^n/b^n and 2b^n = b^n + b^n = a^n. However, by Fermat's Last Theorem, this must be false. Therefore, no such a, b exist
@Fmbalbuena edits are supposed to be substantial improvements - your edits did not improve readability or improve anything substantially. I'm not a 2k rep level person but I can see the review task and the edits.
@Fmbalbuena the reject reason was this: "The edit does not improve the quality of the post. Changes to the content are unnecessary or make the post more confusing."
edits are supposed to substantially improve readability or improve the post. Unfortunately, whitespace only edits that don't affect markdown rendering aren't significant enough, nor is fixing just the Example: stuff
@Fmbalbuena Ok, edits (especially suggested edits) are supposed to be substantial improvements to a post. That's why there's a 6 char minimum edit - fixing a typo isn't "enough" of an edit. There was nothing wrong with the actual edit (in fact, in the edit I did to the post just now, I included your edit as well), it just wasn't "enough" to warrant an edit
one reason, although probably not the main and definitely not the only, to discourage trivial suggested edits like that is cuz otherwise it'd encourage people to farm rep off of just submitting meaningless tiny edits and that just wastes a lot of time and clutters the front page as well
If you take a look at my edit, I removed other superfluous stuff (like the "Question:") and edited tags etc. so that it wasn't just the minor markdown edit
for i in range(x) is a for loop there, and itertools.count is just a struct with 3 fields, incrementing each time. its just going to be an infinite while loop
oh python doesn't allow you to redefine the iterator does it. then no thats not TC
if you can call sys.exit it should be okay. pretty sure it's possible to flatten out any nested while loop into a set of conditions and one while loop like that
lynn@the-holodeck:~$ python
Python 2.7.18 (default, Mar 8 2021, 13:02:45)
[GCC 9.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys; sys.exit()
lynn@the-holodeck:~$
replies are done in chat markdown by :<message ID number> so codeblock formatting treats that as just, more code, since you prefix it with four spaces and it does'nt know what to do
@cairdcoinheringaahing mine is currently "show that 1. A is infinite 2. there exists an injection from N -> A 3. there exists a surjection from A -> N" are all equivalent
doable but annoying until i realized "oh infinity means beeg"
@Rɪᴋᴇʀ No joke, a 5 mark question on an assessed bit of analysis homework (worth 5% of the unit) was "Let a_n be a sequence that [blah blah blah - equivalent to the definition of Cauchy sequences]. Prove that a_n is convergent". My answer was "By the definition of Cauchy sequences, a_n is one. Therefore, it's convergent" :P
(more or less, it was slightly better written than that :P)
@cairdcoinheringaahing i've definitely done something equivalent and gotten both a 0 and a 10/10 on two different occasions on two different homeworks. i blame different TAs
CMQ: why i got this "You are currently suspended from suggesting edits. You will be able to suggest edits again in 7 days. In the meantime, read about how suggested edits are reviewed and visit your edit history."
@Fmbalbuena programming language, sure. TC also yes because lambdas (theoretically but not practically, because recursion limits as already mentioned before)
@cairdcoinheringaahing no, in this case, i broke the bottle by accident and cut my hand and some alcohol got in the cut, therefore there are some alcohol molecules in my bloodstream now.
Prohibition was literally funded by income tax, because the federal government lost all their money from taxing alcohol. Then the laws on increasing the age limit were primarily driven by religious groups. It literally contradicts the whole libertarianism stuff that's unique to the US, and the whole "The US is supposed to be secular" thing
@cairdcoinheringaahing Fringe Christian values being codified into law for everyone (excluding, you know, when in a Christian rite)? Sounds on brand to me
@tjjfvi ok 1. we are NOT having a religious debate here. at all. no. 2. that's also false, any/all religious use of alcohol was allowed, including at least judaism, it was just highly regulated
@cairdcoinheringaahing libertarian is a word that a lot of people like to use when it agrees with their opinions and also when it opposes their opinions. i'm honestly not sure how many people use it correctly myself included
but yeah, it's wack. it's over now though so that's what matters
My favourite way to describe libertarianism is that you aren't a libertarian unless you support gay married couples defending their homegrown marijuana plants with their legally owned guns :P
@cairdcoinheringaahing lmao, L. its been legal everywhere i've lived for a while now i think - california for like the last 5 years and judging by how many smoke shops are here, in massachusetts as well
It was very fun visiting my grandparents who live in B.C. in Canada (where its been legal for ages) for Christmas, and they proceeded to make an entire tray of pot brownies with all of us in the house :P
I was 14 at the time, and when my grandad offered me a brownie, I didn't really get why it tasted a bit weird :P
pretty sure still 21 but it's legal to give to at least 18
(at least in MA. never came up in CA, since I wasn't really both 18 and looking for weed much of last yr)
legislation is so funky across different states though so ymmv. something that came up recently was south dakota (redneckland) supreme court pulling out some BS to fail a weed-legalisation bill on a technically despite the fact it passed already, iirc