@labela--gotoa The only solidly impressive number I have memorized is my CC number (but that's only the case for 2 more months). The only reason I tried to do that is so I can at least order a pizza if I lose my wallet lol.
History was rough for me too b/c of dates. I prefer Gistory, the practice of History where you know crap has happened, but not when or any specific details.
The first magic card trick I ever learned as a child was the following:
Have 1 deck of cards where the pattern on the back is not vertically symmetric.
Organize all cards to be facing one direction.
Ask an individual to, "pick a card, any card, memorize it and give it back to you".
Proceed to p...
@Adám May 29, 1453 - As Erik stated, the End of the Byzantine Empire, for a history quiz.
@Adám He was complaining about how genuinely annoying history tests are because they test your ability to memorize dates, not test your knowledge of the over-arching lessons to be learned, etc... That was just a nonsense formula to "help" memorize a date lol.
@Adám I was curious, what did you mean by this anyway?
@labela--gotoa If, after us literally discussing the number 1453 for a solid 30 minutes, you miss the answer to the end of the byzantine empire I'll be disappointed.
I often prefer to improve other people' answers instead of writing one of my own (unless mine would be considerably different). To be entirely honest, I do this for petty selfish reasons - to show off that I can, to avoid having to explain the answer myself, and maybe to gain some reputation.
Th...
@Adám Also thanks for getting me to the wikipedia page on magnets, RIP the next 30 minutes of my life in a good way. I'm like three links deep >_> en.wikipedia.org/wiki/Curie_temperature
@MagicOctopusUrn the good old wikipedia vortex; you start reading about magnets, suddenly it's been 4 hours and you're reading about Finnish death metal of the early 90s
Inb4 DJMcMayhem comes back in here and his eyes are immediately drawn to the only bolded text in the whole channel... Wikipedian Finnish ferromagnetic death metal?!?! I literally don't think we could get more off-topic lmao.
@ASCII-only I need it because I'm doing successive replacements with ß → sç and ẞ → SÇ. If I used the proper characters, the replacements would keep expanding forever.
@DJMcMayhem That's intentional. It means that spaces and dashes initially sort identically and only if we need to tie-break, then dashes come after spaces.
@DJMcMayhem All of this is really a left argument to APL's ⍋ function which sorts with a custom alphabet. Each dimension in the alphabet indicates another level of sorting. So initially, aäAÄ all sort the same, but then if we need to tie-break, a and ä precede A and Ä, and only then do we tie-break by letting a precede ä and A precede Ä.
Given a German string and an indication of a case (lower/upper/title), fold the string to that case.
Specifications
Input will consist only of a–z plus äöüß-,.;:!?'" in uppercase and/or lowercase.
The target case may be taken as any three unique values (please specify what they are) of a consi...
@Pavel C# requires so much boilerplate and extra syntax (parens and semicolons and commas…) Much easier to write the equivalent Dyalog APL. Wonder if there is anything that can be done in C# which cannot be easier done in Dyalog APL.
It is easy to describe a finite state machine that recognizes multiples of 9: keep track of the digit sum (mod 9) and add whatever digit is accepted next. Such a FSM has only 9 states, very simple! By the equivalence between FSM-recognizability and regular languages, there is a regular expression...
@Pavel Sorry, I don't know enough to copy that. But Dyalog APL can certainly spin up parallel threads and have them await each others' completion. For things where performance isn't an issue, it is extremely easy using APL threads (where APL slices the time of a single CPU thread), but the isolate workspace makes it quite easy to do even proper CPU threads.