@MartinBüttner Out of curiosity, do you know where it's stated that it isn't valid HTML to have more than one? Most things I've seen recommend using an h1 for each post within a page (such as on a blog, etc).
@GamrCorps I see it the same way as the description text in an image. Most people don't use screen readers, so most won't notice whether you include a description or not, but I want it to work for the minority too. With H1 in multiple places, most people won't notice any problem, but I'd rather it work for everyone not just the majority.
@Rainbolt I have a feeling you didn't see any of these messages, because no one pinged you. This one and the next few ones were about your sandbox proposal.
In the Code Golf Overflow, can your answers be any written in language unless otherwise specified by the asker?
Or do they have to be written in any specific language?
@MartinBüttner No. I just heard about the #/## debate here yesterday, and haven't seen him since. I mean, it's not a big deal, I'm just curious because I'd never heard that it would be "invalid". Just that it used to be an SEO thing and isn't so much any more.
in gentoo you are allowed to change flags arbitrarily.. which means you can change a flag, install something the depends on it and then try to install something else that needed a different flag
I was working on creating a way in ><> to convert from a string input to an integer output and I managed to golf it down to this: 0i:0(?v4c*-}a*{+! ;n~ <
One of the most common standard tasks (especially when showcasing esoteric programming languages) is to implement a "cat program": read all of STDIN and print it to STDOUT. While this is named after the Unix shell utility cat it is of course much less powerful than the real thing, which is normal...
@VoteToClose "This is not about finding the language with the shortest solution for this (there are some where the empty program does the trick) - this is about finding the shortest solution in every language."
@Geobits To be clear, I never said that having multiple h1 tags is invalid HTML: I said that it was "bad style" and that a page "should only have one <h1> tag".
I learnt HTML back in 1996 from the NCSA HTML Primer, which says "Within HTML the semantic meaning of <H1> is that it's the main heading of a document". The source for that is probably Tim Berners-Lee's style guide for HTML which says "...one heading level 1 at the top of the document, and if necessary several level 2 headings, ..."
A current internet meme is to type 2spooky4me, with a second person typing 3spooky5me, following the (n)spooky(n+2)me pattern.
Your mission is the implement this pattern in your chosen language. The secondary objective is to get the largest possible value for n. The output can be in any format, ...
@MartinBüttner The page about HTML5 you linked earlier still recommends only one <h1> per section, and the StackExchange markup engine doesn't seem to generate <section> tags.
@MartinBüttner Oh, I know. It's just... sigh. Languages that have this feature are cool, but as you said, not interesting. (this is what I meant by "not cool" :D)
Hmm ... the concept of STDIN for PowerShell is tricky ... It accepts pipeline input, and can read input from the user, but to a PS script, those are handled very differently, almost to the point of being considered separate streams...
Pipelining in PowerShell is a separate concept from pipelining in e.g., bash ... It's a feature of the language rather than a feature of the shell/environment ... Essentially, suppose command1 | command2 | command3 ... The command1 needs to finish executing before the results are pipelined into command2 and so on.
The Inspiration
The Task
You must create a program, that, in as many languages as possible, replaces every instance of ^ with a markdown formatted link (meaning that if I was to post it in an answer, it would automatically read it as an image and place the image instead of the words) of thi...
@PeterTaylor Ok, that makes sense. I've heard the semantics argument before, I was just curious how "invalid" came up. Turns out it's just @Martin paraphrasing poorly ;)
Though it wouldn't surprise me if there are some validators that choke on that. Most JS validators I've played with are somewhat... overzealous... in my opinion. I imagine HTML ones are the same.
Fun fact: if you drilled a tunnel from one point on the Earth to its antipode and jumped into it, it would take ~42 minutes to make it all the way through