Challenge
Write the shortest program that, when compiled or executed, produces an error message smaller than the program itself. The error message may not be generated by the program itself, such as python's raise. A valid answer must include both the code and the error message. Shortest valid a...
Your task, if you wish to accept it, is to write a program that outputs a positive integer (higher than 0). The tricky part is that if I duplicate your source code, the output must be double the original integer.
Rules
You must build a full program.
The initial source must be at least 1 byte l...
Challenge
Write the shortest program that, when compiled or executed, produces a fatal error message smaller than the program itself. The error message may not be generated by the program itself, such as python's raise. A valid answer must include both the code and the error message. Shortest va...
@LeakyNun, you can at least comfort yourself with the knowledge that your answer for A000060 was more elegant than mine, because I actually implemented the g.f. by multiplying polynomials
I would probably have gone for that kind of approach in a procedural language, but setting values in arrays is fiddly in CJam. (And even worse in GolfScript. I preferred CJam for this challenge because I used ee a couple of times).
CMC: Fix the capitalization of a string by lower-casing it, and than upper-casing letters that follow one of ., ! or ? and whitespace. tesT strIng. teSt String => test string. Test string or Test string. Test string.
@StepHen Dennis has answered tetris, but he keeps his answer hidden so that someone else can figure it out. He doesn't want to ruin the challenge it for everyone
The story is "The Homework Horror" by Greg Cox. It was originally printed in Amazing Stories Vol. 62 #1, but was reprinted in Bruce Coville's Book of Nightmares II: More Tales to Make You Scream, which is probably where you read it.
And the evil number in the book is 5, not 3.
Five stayed ...
when I finally do answer a trivial one, should I just add an random amount of fluff to my answer to get us somewhere in the thousands for something refreshing?
I got suspended a while back, and have changed since then. I don't mind talking about it if people ask, or if it is on-topic to the conversation. However, whenever I talk about my suspension, I get the feeling that it is banned, similar to talking about other people's suspensions.
So are we allo...
Perl is a very free and expressive language, so expressive in fact, that it even lets you call undefined methods on classes! This can be done using Perl's AUTOLOAD feature. Using AUTOLOAD, undefined method calls are redirected to an AUTOLOAD subroutine where they will be handled appropriately.
A...