Basically I need someone to choose any of my questions, copy an existing answer and post a new answer that's an exact copy of it (testing this bug). Once tested, you can and should delete the answer
CMM: Informal VTC this as a dupe of this (informal to avoid any lone hammers)?
@DigitalTrauma TBH I'd rather close that as a duplicate of this. This is better specified, includes example inputs/outputs, doesn't have a bonus and that requires a restrictive output format — caird coinheringaahing59 secs ago
I.e. if there's enough agreement, I'm happy to hammer, but not unilaterally
Challenge
Write \$2 \le n \le 10\$ distinct, valid non-halting full programs in your language of choice. If all of them are concatenated in order, the resulting full program should be a valid halting program, but if any of them are left out, the result should still be a valid non-halting program....
how should this be resolved? it looks like it could be retagged to discussion but idk if it's asking for users to link those pages to new users, or for the site itself to have those links more. the former would be a discussion, the latter is something we can't fix because we can't really edit the help center
Meanwhile, I always thought writing the whole frontend (including the body HTML and view update logic) in non-HTML+JS is cursed, but now I'm trying to do the exact thing in Rust
at this point it's easier to just click the link. The tags aren't more important to see than the question body. So I don't think the tags should be shown, if it's not too inconvenient to remove them.
Tags are easy to remove (the bot didn't originally show them), they're included because a bunch of users asked for them to be included. I can edit OSP and get Redwolf to update the actual bot tomorrow (later today technically but)
@StackOverflow Chat Mini Meta (for when a meta question isn't really significant or complex enough to be a full meta question) and Chat Mini Question (which is just any question that doesn't really fit into the other categories)
What general tips do you have for golfing in C? I'm looking for ideas that can be applied to code golf problems in general that are at least somewhat specific to C (e.g. "remove comments" is not an answer). Please post one tip per answer. Also, please include if your tip applies to C89 and/or C99...
Quick warning: NP/SP will probably drop out of the users list at some point tonight. They should still be in the room, though they will not respond to STATUS pings.
I will fix it tomorrow if possible, but I need to do some logging to identify what the heartbeats look like
@StackOverflow Oh, first part makes sense. I... suppose I won't ask then, lol. (You alright though? Usually when people refer to themselves as empty they mean emotionally. Understandable if you don't want to share publicly or it's a joke that's gone over my head, feel free to just ignore)
@lyxal this will be the end of wakanda the hivemind
Cookies' value would be determined by how good they taste. Bankeries (bank + bakery) would issue cookies, and ones by better cookie cooks would could be trusted more to taste good without having to be consumed.
This would also mean that the value of a cookie would decrease over time, as it goes stale, promoting the economy as spending would increase
It means that people who can bake good cookies can make a profit by buying ingredients for cookies at a lower price than the resulting cookies. This is a skill well worth rewarding.
Plus if you're ever hungry, you can just be like "I'd like a loan of one really good white chocolate macadamia cookie", then when you get around to it you can bake a few lower quality cookies to pay them back with
It also adds a bit of strategy; some cookies are a bit more niche than others. For example, somebody might strongly dislike oatmeal raisin cookies, and trade them for chocolate chip at a really good rate. But if you find someone who likes oatmeal raisin, you can earn more than you initially put in.
Given the equation of a non-parabolic conic section, output its characteristics.
Spec
This assumes prior knowledge of hyperbolas and ellipses, as well as their characteristics. (This includes circles; they are a special case of the ellipse with eccentricity of zero.)
Input
A non-parabolic (to si...
If you want to store money for a long time, you can invest heavily in one type you think will increase in popularity, or just go with a mix of types (or chocolate chip, which will likely be pretty steady).
Sort of like investing in specific companies vs. an index fund.
I don't know where the cutoff is because not all of my votes were removed, but some were, and the ones that weren't don't belong to me anyway. I can't remember if I really upvoted that post becaues I don't even remember commenting on it or seeing it; it was over four years ago and my memory isn't that good lol
Given an input of an ASCII art picture, output the ASCII art italicized.
To italicize the ASCII art:
Insert zero spaces before the last line, one space before the second-last
line, two spaces before the third-last line, etc.
Remove any extra leading whitespace that may have been created. That ...
Daylight saving time (DST), is the practice of advancing clocks (typically by one hour) during warmer months so that darkness falls at a later clock time. The typical implementation of DST is to set clocks forward by one hour in the spring ("spring forward") and set clocks back by one hour in aut...
oh wow, i am looking at that challenge which i posted over four years ago, and i commented good job under pretty much every sub, lol. that is like textbook defn of too chatty
My quine in Pxem
A Pxem program is represented as a pair of a filename and content of file.
My submissions print their own filenames.
Arguing whether a program that outputs filename instead of content is a quine or not, on comment section.
So far I have submitted three versions of quines; one re...
Guys, please read the challenge more carefully. I've got three invalid answers due to messing up "no" and "yes", and two others violating "distinct" already
The "distinct" requirement seems a bit pointless. You can always just append a varied comment to the program, or change some variable names or something
@Bubbler My issue was I read the challenge thought "I could do this in Haskell" and then read the first answer and thought "oh I had it wrong that's hard in Haskell but I could probably do it in Brain-Flak" and of course that answer was one of the invalid ones so I copied theit misconception.
I have ground truth images and predicted images which are grayscale images and I want to display the correct cells (similar cells between the ground truth and the predicted image) in green, the extra cells in blue and the missing cells in red like this , I searched all over the internet and coul...
lambda l,a:[l.pop(a)]and l works for the same length
@StackOverflow We don't have a policy saying duplicate answers aren't allowed. If you post the same / basically the same answer as someone else, especially if it's been a while, you probably won't get many votes though.
And typically if two people post the same answer at around the same time (usually near the start of the challenge) usually whoever got beaten to it will just delete.
The big outputted letters jump over the size machine
I was thibking of making a challenge where if I output the quick brown fox jumps over the lazy dog., it will output:
T h eee i k b ff j ssss ...
I think it's supposed to be kolmogorov-complexity, but that isn't massively clear because of the wording. I'd suggest scrapping the backstory and just saying "output this exact text".
Not sure about the title (suggestions are appreciated)
Consider a n x n multiplication table and replace each item with its remainder of division by n. For example, here is a 6x6 table and its "modulo 6" structure:
1 2 3 4 5 6 1 2 3 4 5 0
2 4 6 8 10 12 2 4 0 2 4 0
3 6 ...
@StackOverflow Essentially, atoms are builtins that take 0,1 or 2 values and output a value. Quicks operate on those atoms to modify their behaviour in some way (for example, @ reverses the order of the arguments, or ⁺ tells Jelly to run the atom again)