@Katenkyo - I wanted to answer to your comment on the trivial tag thing, but discussions in the comments are discouraged. :) I thought that a non-trivial tag could be part of the solution for rewarding good challenges that do not attract many answers, because if you can look them up, you can upvote them.
@mIllIbyte Yeah, but we can't judge a challenge being "trivial" because he attracted lots of answer. What if someone write a complex but beautiful challenge that attracts 20 answers, do we mark it a trivial?
(and also, I wondered before commenting if I should have invited you here ^^)
@mIllIbyte I think that's not only about hard vs easy questions (which is a debate linked in the comment), but about a distinction in quality, and I don't think it is linked to the triviality
We all already crossed the look and say sequence, and where asked to guess the next element. As its name tells it very well, you just have to say what you see :
1
1 1
2 1
1 2 1 1
1 1 1 2 2 1
3 1 2 2 1 1
...
But, what if we had to use a different base to describe it? You could count it in base ...
The length only comes in because you have to do the base conversion yourself, which isn't interesting, also, even if I think the specs are clear, it is still a bad challenge that shouldn't be rewarded
@LeakyNun I don't think it deserves a bounty
I realised myself that preventing base-conversion just rendered this lame, and wasn't motivated myself to provide an answer (to have people wanting to compete with it)
I even wondered if I should have deleted it
@mIllIbyte I don't know if I explained myself clearly, so let me know if I haven't
@Katenkyo - I like the queston, I am going to answer it. :) But I would not have found it if you wouldn't have linked to it. I understand what you mean, and I agree that the tag could be problematic.
@MarsUltor - In my opinion, the trivial tag can be applied after the fact. If a question has already attracted a lot of answers that are very short, five bytes or so, quickly after it has been posted, it is trivial.
@mIllIbyte Wow, thanks! I like the idea of a tag, but it would be more in the line of exemplary for a few ones that were genuinely good. But that would overlap with what we try to do via the challenge tour
@MarsUltor - Perhaps I have exagerated, but the number can be adjusted. How long are the answers to questions like "Hello World", "print 1", "read input and exit" etc.
I think that we should tag puzzles (or whatever) with an estimated difficulty tag. That way people who want a real challenge can find it and those who are just starting out can find ones they might be more able to solve.
For example consider: Distance between hands on clock
vs: Shortest path i...
I think Stack Overflow is the most awesome site for programmers on the net. It has all the features one could expect from a programming forum.
But there are several features that I miss. In particular I think the discussions and posts are just plain text, which looks boring.
Apart from superhum...
Perhaps tags are not the best idea, you people should now better since you have been longer registered on this site. The problem that I see is that the harder a challenge is, the less answers it attracts, which means little visibility, which means few upvotes, which means that an answer to it is not properly rewarded.
@MarsUltor Shunting yards don't solve the problem of requiring people to define what methods have higher precedence. They simply solve the problem of converting from infix to postfix once that precedence is defined
@mIllIbyte The "age" of your account doesn't mean your point of view has less value, the newer user are really important and will see lots of thinks elders won't. also "The problem that I see is that the harder a challenge is, the less answers it attracts, which means little visibility, which means few upvotes, which means that an answer to it is not properly rewarded." is a really good point, that's why bounty exists nowadays, but they don't directly reward the question
> Was their name in unicode? Nope. Was their name "root" or "null"? Nope. Perhaps an SQL keyword like "select"? Nope. It was "Geoffrey". See it? No? Try this. Geoffrey
> But here docs don’t do substring matching. The document has to end with one line containing only and exactly the eof keyword. $ cat > /dev/null << EOF geoffrey GEOFFREY eof EOF # end of here doc So that grad student must’ve been doing some really funky shit for this to break that way…
> Reminds me of the time when I wrote an email to a friend of mine to help him get started with modems. I gave him a list of the most commonly used commands, such as +++ATH0 (this is the Hayes command for hanging up the phone). I spent a day or two afterwards tyring to figure out why my modem kept disconnecting every couple of minutes. As you have probably guessed, every time my computer tried to send out this email, the plain text +++ATH0 went through my modem, and made it hang up...
The main roadblock right now is a development environment, something that is capable of handling tiled logic gates (which I might need to write myself).
Write a program that, given a String as input, outputs a truthy value, if the String is your StackExchange-Username and a falsey one if not.
Make your code as obfuscated as possible.
Testcases
(for my case:)
input output
-------------------
Seims true
BestCoderXX false
Scorin...
if so, I believe most circuit designers allow you to make your own "modules", and you could simply create a different module for each possible tile that adds a delay
Given either a list of pairs of integers [(x,y),(x2,y2),...] or 2 lists of integers [x1,x2,...] and [y1,y2,...], output equation of the line of regression for those points, without using any built-in functions.
> Linear regression models are often fitted using the least squares approach, but they may also be fitted in other ways, such as by minimizing the "lack of fit" in some other norm (as with least absolute deviations regression), or by minimizing a penalized version of the least squares loss function as in ridge regression (L2-norm penalty) and lasso (L1-norm penalty).
@LeakyNun I use the one in my stats textbook, (Mean(xy) - (Mean(x) + Mean(y)))/(stdevX * stdevY) * (stdevY/stdevX) is the slope, (Mean(y), Mean(x) is a point on the line.
@TimmyD Wow, ~70 edits at once... I've let him know that flooding the front page isn't very nice, but I don't think there's anything wrong with the edits themselves.
How to fuck with programmer friends:
step1: Go to their code
step2: pick out a random spot, preferably in a long line
step3: insert this three characters in there: --
step4: remove the "-"s
What you do: find and replace -> regex mode -> (.) -> \1\u200B (repeat \u200B as much as you want), use $1 if \1 doesn't work, and \x{200B} if \u200B doesn't work