« first day (1760 days earlier)      last day (3073 days later) » 

Anonymous
4:07 AM
I still wanna know a closed-form solution for the clock hands :P
 
2 hours ago, by Thomas Kwa
The answer I'm most proud of is from the future
I mean by this my eventual answer to the broken calculator question in TI-BASIC
For those who don't know, TI-BASIC is one of the worst languages to do string manipulation in, partly because doing anything with empty strings is an error.
 
Hello @Mego quick question.. How do you do I[1] for lists, just like in python?
@ThomasKwa which question is this?
 
Anonymous
@TanMath 1[1,2,3]E
 
Anonymous
E is for erf and element
 
Somebody help me fix the code!
 
Anonymous
4:11 AM
No
 
@Mego OK..
 
@Mego what is erf?
 
@Mego why not? It is your freaking code... You would know best
@phase error function I think
 
O doesn't have getting an object of an array from an index (yet), so I had to iterate over the array in reverse until I got to the middle, which wasted a lot of bytes.
 
@Mego Closed form? HA! Yeah right.
 
Anonymous
 
But I think you can apply a DFS or a BFS to the problem in some way, by setting path weights to the (log of the) LCM of groups.
 
Anonymous
@TanMath No. I helped you already. Saying "help it doesn't work" is not helpful at all. You're just begging for working code.
 
@TanMath I can help :3
 
@Mego well, OK then... You didn't help BTW
 
Anonymous
Sometimes you just have to put on your big boy undies and debug it yourself
 
4:17 AM
@phase you can?
 
@TanMath yeah, what are you trying to do and what's your current code?
 
@phase I am trying to solve the find the center challenge
i=raw_input();print[chr(((ord(i[len(i)/2])+ord(i[(len(i)/2)+1]))/2)),i[-1+(len(i)+1)/2]][len(‌​i)%2]
 
@TanMath As I've said before, people offer their help voluntarily. If they choose not to help, that's their prerogative. While Mego created the language and is thereby likely the most knowledgeable about it, that doesn't make him obligated to help.
 
Anonymous
@AlexA. While I would love if it were true, I didn't create Python
 
> viewed 9934 times
 
4:21 AM
@TanMath I may be mistaken, but I think raw_input needs ().
 
Ahahahaha
 
This is killing me
 
@AlexA. I am asking if somebody can help, OK?
 
66 views away
 
Mego Van Rossum
 
4:22 AM
@Mego I thought this was Seriously code XD
 
Anonymous
10 mins ago, by TanMath
Somebody help me fix the code!
 
Anonymous
That's not asking. That's begging/demanding.
 
66 views away from my beloved gold badge
 
@Mego Not to be that guy, but is there a way to take the input and split it up into a char array in Seriously?
 
And yet I have a feeling it's not going to happen.
 
Anonymous
4:22 AM
@AlexA. If you run the code in Seriously, you might get something
 
It'll be stuck at 9999 views forever
 
@Mego By "something" do you mean an error? :P
 
Anonymous
@phase ,r
 
Anonymous
@AlexA. No such thing
 
@quartata It will overflow and go back to 0 as soon as it hits 9999
 
4:23 AM
It is simultaneously OVER NINE THOUSAND and under nine thousand
 
@AlexA. How dare you speak of such things! Seriously actually doesn't have any errors!
 
Anonymous
@phase That actually just pushes the characters onto the stack, so you'll want ,rk to make it into a list
 
Anonymous
@phase Except for the online interpreter. That thing is 105% errors.
 
@phase what do you mean by "that guy"?
 
Anonymous
(percentage of errors calculated using online interpreter)
 
4:25 AM
@Mego nothing :)
 
@phase where. ;)
@phase wait.. What challenge are you doing?!
No....
 
@TanMath I totes suck at Python, so you may need to grovel at Mego's knees for assistance.
 
Do not tell me you are doing the sorting one!
 
sorting whatsit
 
@phase OK.. I won't use his code then.
 
Anonymous
4:27 AM
@TanMath I'm beginning to suspect you may not have much experience with Python, considering that your latest issue was not knowing that you needed to actually call raw_input. You may find it beneficial to work through this.
 
@phase link of which challenge are you doing?
 
8
Q: Find the center

n-o-body hereGiven a line of text, find the character that is in the middle. If there is no middle character, find the character whose charcode is the floored average of the two center characters. Test cases: 12345 => 3 Hello => l Hiya => q (empty input) => (empty output) Shortest program in characters ...

 
@Mego wait what?
@phase oh OK..I was going to do as well but you go ahead...
 
@TanMath I already submitted an answer in O, but I wanted to try Seriously for fun
No output ;-;
 
Anonymous
@phase Try giving it a string as input
 
4:30 AM
12
Q: Help! My calculator broke! (Turn integer expression into calculator keystrokes)

GamrCorpsIntroduction Help! I accidentally dropped my TI-84 calculator out my window (don't ask how) and it broke. I have a math test tomorrow and the only calculator I can find is one with these buttons: 7 8 9 + 4 5 6 - 1 2 3 * 0 = / My math test is a review test on evaluating expressions. I need a...

 
@Mego that be weird, but it be worked
 
Anonymous
 
@ThomasKwa And you're writing a TI-Basic answer? Can't wait to see it :D
 
Anonymous
@phase It not be weird at all. test is an undefined symbol. "test" is a string. Remember, input is through Python 2's input() function, which returns eval'd input.
 
@phase I've planned most of it out already; it's just that writing the TI-BASIC code is painful.
So I haven't written any actual code yet.
 
4:32 AM
a layout is still a part of the code
 
@phase I already have a Seriously answer, but it doesn't work on empty strings yet
 
@ThomasKwa I don't think it needs to. isaacg's doesn't if I recall.
 
Sometimes I get offended here...
Oh well...
 
@ThomasKwa oh wait nevermind I lied
@TanMath <3
 
Wait... @Mego Wasn't there some flag for error suppression suppression?
 
4:35 AM
@phase thanks...
Moving on...
 
Anonymous
@ThomasKwa -d
 
@Mego Does the program stop at an error without outputting to STDOUT when -d is passed?
 
Anonymous
@ThomasKwa Nope, it just prints the error
 
aww man
 
Anonymous
The interpreter train has no brakes
 
4:38 AM
@Mego will ,rk work for an input of a list of strings?
 
Anonymous
@TanMath Nope
 
Is there a "halt" instruction?
 
Anonymous
@ThomasKwa 127
 
@Mego OK...
 
Anonymous
@TanMath You'll have to deal with the lists individually
 
4:39 AM
@Mego does `\` round down or up?
 
@TanMath I apologize if I've offended you; that isn't my intention. And I'm sure no one here means to offend you either.
 
How are bytes measured in TI-BASIC? I know that some version represent entire words compactly.
 
Anonymous
@phase It follows Python's behavior
 
Anonymous
Which iirc rounds towards -inf
 
@Mego K doesn't seem to be working for 3 / 2
 
Anonymous
4:42 AM
Actually it looks like it rounds towards 0
 
@AlexA. no... You did not offend me...
 
@quintopia Sounds like a good question for @ThomasKwa, our resident TI-BASIC expert.
 
Anonymous
@phase Interpreter bug
 
@TanMath Okay, I'm glad.
 
@Mego I didn't understand
 
Anonymous
4:44 AM
@phase I just patched it, but unfortunately you can't use the patch in the challenge. 23\u will get you the same output for positive numbers
 
Anonymous
(so long as the result of / wouldn't be an integer)
 
I want to convert an input of "hello"," foo" to a list of ["h","e","L","l","o"] and ["f","o","o"]
 
@TanMath in what language?
 
@Mego Oh wait, I did't need to ceil after all :P
 
Anonymous
,r@r@k
 
4:46 AM
@Sparr Seriously
@Mego thanks
 
Anonymous
@TanMath No need to be a jerk
 
Lemme try it
 
Anonymous
Hmm
 
Anonymous
Actually that won't work
 
Oh...
 
Anonymous
4:48 AM
,;l)r(╟@;l)r(╟@
 
Anonymous
It only looks a little bit like I facerolled on my keyboard
 
@Mego ,;R;l@E: The E doesn't seem to be doing anything, even though there is a string and number on the stack
arg I suck
As soon as I type it in chat I figure out what I did wrong
 
Anonymous
:P
 
Didnt work @Mego
It instead printed:
[0,1]
2
I did the hello foo input BTW
 
Anonymous
Add i after the comma
 
4:57 AM
@Mego :201:2/ gives 0.00995024875622 instead of 100.5, am I doing something wrong?
 
Anonymous
@phase That looks right for 2/201
 
urggg y u have it da wong wayyyu
 
Anonymous
It's the right way, read the docs
 
Anonymous
The docs don't lie
 
Anonymous
They are made from Shakira's hips
 
4:59 AM
hahahahahahahahaha
 
@Mego Is there a int to char operator?
 
Anonymous
@phase If you read commands.txt, you will be enlightened
 
@Mego I've been ctrl-f'ing this page for 20 minutes
 
@phase s/ctrl-// he he he
 
@El'endiaStarman so funi u shuld get a medal
@Mego 99 (c): pop a: push character at ordinal a%256 cryptic af
 
Anonymous
5:02 AM
@phase If you're not out of control, you're not in control
 
Anonymous
2 mins ago, by Mego
@phase If you read commands.txt, you will be enlightened
 
@Mego but it seems the "[" and "]" is needed... Is there a way around this?
 
Anonymous
@TanMath What?
 
0
A: Find the center

phaseSeriously, 22 bytes ,;R;l2\u;)@E)EO@O+2@\c There could be some bytes saved in the stack manipulation. Try it online or whatever

i did it yay
everyone look at my accomplishment and be amazed
 
Try it online or whatever
 
5:06 AM
@Doorknob Dennis copyrighted Try it online, so I had to think of something else.
 
I wanted the input to be "hello"," foo" but it needs the input to be instead ["hello"," foo"] @Mego
 
Anonymous
@TanMath Can you get away with the input being on different lines, and reading input with , multiple times?
 
Anonymous
Or spend a byte to convert it to a list with #
 
Would it be feasible to develop a "generic grammar" that allows you to express all features of any given language (and therefore allow you to easily port code from one language to another, only requiring manual work on updating libraries)
 
Anonymous
@NathanMerrill You mean an AST?
 
5:11 AM
@Mego He means AST
 
just looked it up, its definitely on track with what I'm thinking
though, I don't see a textual format
 
@NathanMerrill That's really just imagining the structure of the code, in which you can translate it into any language because it's not apart of any "grammar", but it sits outside the realm of programming languages.
@NathanMerrill You could write it down in any format you want, creating a specific grammar would restrict your ability to express what the code does clearly.
 
can an AST represent state?
 
 
aka, modifying a property of an object?
 
5:14 AM
It's not so hard to compile one language to any other language.
The problem is getting an output that's not huge and slow.
 
@Mego nvm.. Your code will be fine
Idk how this can be done in 7 bytes!
 
@NathanMerrill I think you'll find this TED Talk interesting.
 
saved
I need to go to bed soon
 
Anonymous
@TanMath My zip challenge?
 
Yeah!
@Mego that was a lie!
 
5:23 AM
@Mego It was inspired by the time you got caught in your own zipper
 
Anonymous
@AlexA. Happens way too often
 
Sounds like you should invest in some clothes that button rather than zip
 
Anonymous
@TanMath My Seriously code was 11 bytes
 
I did the zip, map, sort, but still didn't work
@Mego but you said 7
 
Anonymous
12*
 
Anonymous
5:27 AM
@TanMath 7 was my estimate
 
Oh...
 
Anonymous
Unless I'm forgetting some super sneaky trick I used
 
Anonymous
Because I'm dumb and didn't save the code
 
But just to handle the input, the code you gave me was 15 bytes!
 
Anonymous
That's not the only way to handle the input
 
Anonymous
5:29 AM
You asked me how to do something, and I told you
 
@Mego but you need to have an array of that such, don't you?
 
Anonymous
I can't help that you didn't see the shorter way to handle input :P
 
Some trick there is, huh?
@Mego I guess
 
Anonymous
Yep
 
Anonymous
Remember, Seriously is built on Python
 
Anonymous
5:31 AM
This may help enlighten you
 
@Mego so? I should do it in Python?
 
Anonymous
No, I mean it handles strings and lists like Python does
 
Anonymous
Ahah, I remember my sneaky trick. 11 now
 
Anonymous
And I'm not sure why it isn't working again
 
@quintopia The version you're referring to is TI-BASIC for the TI-83/+/84+ series, which in my answers I just call TI-BASIC. It's tokenized, so sin( is one byte in memory even though it's displayed as four characters, and it's impossible to erase, say, the s in sin( in the editor. Here is a list of the one-byte tokens; the rest are two bytes.
 
Anonymous
5:38 AM
11 bytes for Seriously, 10 with a non-competing answer because I just fixed one of the functions :P
 
Anonymous
a8af78cb308452133568da7def9ffdd6c3d203adf4dd33001030d394022a042f
 
^ Git commit hash?
 
Anonymous
@El'endiaStarman Close, but no lung cancer
 
Keyboard mashing
 
I'm guessing a hash of the 10 byte source code
Or 11
 
Anonymous
5:43 AM
ding ding ding winner winner chicken dinner
 
Anonymous
11 bytes
 
@Mego how can I decode this? Hehehe
 
@TanMath You try all possible 11 character programs
 
@Mego could your reference implementation be helpful?
 
Or, if you want to be efficient, you try all possible likely 11 character programs
 
5:45 AM
@ThomasKwa true!
 
Anonymous
@ThomasKwa At that point, you may as well try all possible 11 character programs that yield "!Hw!Eo!Lr!Ll!Od" for input "HELLO","world","!!!!!"
 
Anonymous
All 309485009821345068724781056 of those possible programs
 
@Mego oh no...
 
/me builds a quantum computer
 
@ThomasKwa yay!
 
5:48 AM
(yes, I know just making it quantum probably wouldn't work)
 
Anonymous
Just get a 4096-core computer
 
Anonymous
Err
 
Anonymous
65536-core
 
Anonymous
Each core will only need to try 4722366482869645213696 possibilities
 
Anonymous
Shouldn't take too many years
 
5:49 AM
Ideas for Seriously: A regular (control-flow) if statement
 
Anonymous
 
@ThomasKwa good one... Also for loop!
 
Also map-a-primitive-function operators like Pyth's R and L
(making everything vectorize would still be better, but maybe as a backup/if there's a reason not to implement)
 
Anonymous
Making stuff vectorize would be nice, but will take a lot of work to do
 
Vectorizing would help so much
Probably more than filling up the rest of the one-byte space with builtins
 
Anonymous
5:52 AM
por que no los dos
 
I'm trying to convince you to do it first
 
Anonymous
But it won't help as much as putting an end to the encoding headaches
 
Yeah, I guess
 
Anonymous
But fixing all those poor decisions I made will take a lot of time
 
Anonymous
5:56 AM
And cause more headaches during the process of undoing them
 
I'm getting an internal server error on the online interpreter with code ,;`;R;l2@\;)@E)EkOkæ≈c`@I and input hiya
 
Anonymous
@ThomasKwa It breaks a lot. Try the local one.
 
/me is afraid of command lines
 
Anonymous
Don't worry, they don't byte
 
how do I know that you are not lying? Are you made out of Shakira's hips?
 
6:07 AM
@Optimizer Those sentences make sense individually, and one of them is even reasonable, but...
 
@Mego Thank you
 
@ThomasKwa you've never heard of that song?
you never knew what truth was ?
 
@Optimizer I was in primary school.
 
Anonymous
Let it be known that "Shakira's hips" is a valid truthy output for all challenges
 
6:23 AM
If anyone wouldn't mind voting (Same one from yesterday at night, thanks!): strawpoll.me/6069601
Bye all!
 
@AlienG I already voted. For Apollyon. Because I like how it sounds.
 
Anonymous
@El'endiaStarman That's apollyng
 
Wow, there must be some users that are really liberal with their downvotes on SO.
 
Anonymous
@El'endiaStarman Have you met @Geobits?
 
@El'endiaStarman you mean Geobits, right?
 
7:04 AM
@ThomasKwa some people here were not even born at that time and they'd still know
 
7:19 AM
What's that Twitter account that has ridiculous and/or stupid questions from SO/SE?
 
@ThomasKwa thanks. I knew it was specific to some versions, as it was never like that on my 89, but I'd seen in on my 82
 
7:35 AM
@El'endiaStarman already closed!
 
@TanMath That actually took longer than I expected.
 
8:01 AM
Woohoo mortarboard on SO!
@AlexA., I think getting rep on SO is even easier than getting rep on PPCG if you know a language or two really well. :P
 
or regex...
 
@El'endiaStarman 8 minutes is slow for you?!
 
@TanMath This is Stack Overflow we're talking about.
 
@El'endiaStarman yes.. already deleted now...
@El'endiaStarman people have lifes, man!
 
A site that's three times as large as like, the rest of the network combined. (I think.)
 
8:08 AM
@El'endiaStarman so? it takes a few days for me to get answers for my questions...
 
@TanMath ¯\_(ツ)_/¯
 
@El'endiaStarman the infamous shrug, huh?
 
Again, thanks to all that voted.
 
8:28 AM
@ThomasKwa I don't recall the incident you're talking about, but codegolf.stackexchange.com/q/52152/194 definitely covers plain median, and I would close a plain median question as a dupe of it.
 
Yuck, a multitask question.
 
 
2 hours later…
10:31 AM
3
Q: Output the qwerty keyboard

ghosts_in_the_codeGiven a character, output the entire qwerty keyboard layout (with spaces and newlines) that follows the character. The examples make it clear. Input 1 f Output 1 g h j k l z x c v b n m Input 2 q Output 2 w e r t y u i o p a s d f g h j k l z x c v b n m Input 3 m Output 3 (Progr...

 
Anonymous
10:55 AM
0
A: Find the center

MegoSeriously, 9 bytes 1c12,$l%I Since the encoding of the input wasn't specified, I went with unary, using 1 as the digit. Try it on the online interpreter. Or don't. I'm a link, not a cop.

 
Anonymous
This is why you specify encodings for text challenges
 
11:23 AM
 
Anonymous
@flawr neat
 
The fun thing it is done by some kind of captive airship / kite or so
without any fancy drones or so=)
 
Anonymous
After running that syzygy solver for a few days, it looks weird to not have a terminal open
 
@Mego The thumbnail of your penguin looks sad, but if you look at the bigger image, it is angry =/
 
Anonymous
@flawr me_irl
 
11:28 AM
Don't you have a version of that penguin who is just happy?
7200 rep!!!!! =)
 
Anonymous
My Google avatar is the motivational penguin
 
Anonymous
I almost feel bad about my answer
 
Anonymous
But in all honesty that challenge has no business being open in its current state
 
Anonymous
And it's been up for 12 hours, with only a total of 3 close votes
 
Anonymous
And the OP has not come back since posting it
 
11:43 AM
@Mego Does it Seriously work for no input?
 
Anonymous
@flawr Good point
 
Anonymous
Now it Seriously does
 
+1
I think I'm gonna use the noneary number system in the future=)
 
Anonymous
base-9?
 
base 0
=)
 
Anonymous
11:50 AM
Oh, didn't read the e
 
I ninja'd it in after I noticed that nonary is base 9 =)
 
Anonymous
Hnc why I didn't rad it
 
12:08 PM
@Dennis Does the online interpreter support timing? The w command waits, so timed output might be important.
 
0
Q: Literally Mirror Your Sourcecode!

Christian IrwanTask Your program should take input. If the input is falsy, print the source code. If the input is truthy, print the mirrored source code. What is mirrored in my opinion (That is used in this challenge)? Each line is padded with space so each line have same length, but there is at least on...

 
DisplayName
---------------- -
Calvin's Hobbies 6
VoteToClose      5
GamrCorps        2
Chat Relay       1
feersum          1
JiminP           1
NinjaBearMonkey  1
PhiNotPi         1
Howard           1
Sp3000           1
Kendall Frey     1
beary605         1
Jason C          1
cjfaure          1
BMac             1
Guess what that result is for. ;D
 
number of socks?
 
-.- I have no socks.
 
Number of Answers over 25 upvotes!
 
the result says something else!
@JimmyJazzx no way. Calvin doesn't even have 6 answers in total :P
 
12:32 PM
im sure Sp3000 only has 1
 
@JimmyJazzx No, because Martin would have 40billion.
 
There, fixed it :P
@Optimizer The query also counts questions.
 
Anonymous
@VoteToClose Gonna take a wild guess and say Vitsy answers
 
Anonymous
Huh, guess not
 
12:48 PM
0
Q: Generate Toothpick Sequence

Christian IrwanWhat is Toothpick Sequence? According to Wikipedia In geometry, the toothpick sequence is a sequence of 2-dimensional patterns which can be formed by repeatedly adding line segments ("toothpicks") to the previous pattern in the sequence. The first stage of the design is a single "to...

 
@LegionMammal978 Note that this is a substring search, not a word search. For example, searching for "Mathematica" finds two posts for me: one that actually mentions the language and one that starts a sentence with "Mathematically, we can...".
 
There, made it recognize the standard <language>, x bytes/chars/nodes/etc. template.
 
Anonymous
@Optimizer It clearly can't be # of socks, because it's missing my socks
 
1:27 PM
A wild @Geobits appears!
 
The wild Geobits uses Downvote!
 
It's super-effective!
Side note: literally everything has an exclamation point. -.-
 
Anonymous
@VoteToClose Don't you mean "literally everything!"?
 
@VoteToClose Now, the result looks more like this:
Name             Posts titled 'Minecraft'
---------------- ------------------------
Calvin's Hobbies 2
GamrCorps        1
JiminP           1
PhiNotPi         1
VoteToClose      1
beary605         1
 
1:35 PM
Weird. o-o
 
I changed it :P
 
It's not correct now. I've had at least 4. :P
 
Who else would've posted it in the first place?
Also, it now only checks for posts with "Minecraft, "
as that is how answer titles are usually styled.
 
Oh. Well, what about Minecraft ver. ...?
 
You would have to put that in the input box.
 
Anonymous
1:40 PM
I still think it's a bad idea to post Minecraft answers when we haven't even reached a consensus on scoring and I/O
 
@LegionMammal978 Ew. The version shouldn't affect it, 'tis the same language.
 
I guess that you could try to input Minecraft ver. _._...
No idea how these Transact-SQL patterns work :P
 
@Mego Input doesn't really exist, and we generalize to @CᴏɴᴏʀO'Bʀɪᴇɴ's solution for scoring.
 
Anonymous
@VoteToClose The +12/-7 solution? That's not really consensus.
 
But it is a standard which I adhere to. I would, of course, change byte count according to the to-be-decided "actual" solution, but it seems to be the general consensus. At least when I last looked.
 
Anonymous
1:45 PM
While I personally agree with his scoring suggestions, Calvin's answer has a slightly better score (6, +7/-1), though not as many votes.
 
Anonymous
Though it doesn't include command block scoring
 
^ Which is why I used Conor's. :P
 
Anonymous
Fair enough
 
Anonymous
Tbh I'd like to see two categories of MC submissions: with and without command blocks
 
The answers without command blocks become just "who can golf a logic gate in minecraft!" :P
 
Anonymous
1:49 PM
Really it's more like "who can golf a single-purpose computational device"
 
Anonymous
Which is no different than any other answer
 
¯\_(ツ)_/¯ I'm unlikely to post things like that.
 
Anonymous
"things like that" as in no-command-block answers?
 
Anonymous
An answer without command blocks will involve a different approach than an answer with command blocks, so it'd be fair game as a separate answer. Furthermore, it will almost certainly have a worse score, so it's not really fair for it to compete with the command block answers.
 
Anonymous
For those reasons, I'd consider them separate languages for our purposes
 
Anonymous
1:54 PM
(or separate versions)
 
¯\_(ツ)_/¯ Again depends on the situation. For something that's only job is truthy output, in a command block, it'd be 40 bytes more.
 
Anonymous
Hence "almost certainly"
 
Anonymous
Comparing pure redstone to command blocks is like comparing C to CJam
 
Anonymous
There may be a small set of tasks where the first is shorter, but the second will be shorter in almost every case. Ultimately, they're different enough to warrant being considered separate languages.
 
1:57 PM
¯\_(ツ)_/¯ How would you count bytes differently?
 
Anonymous
Hmm?
 
How would you count blocks differently (considering that they are still a unit of data) than command blocks (which uses both blocks and texts as units of data)?
 
Anonymous
I'm not sure what prompted that question - I said before I personally like Conor's counting proposal
 

« first day (1760 days earlier)      last day (3073 days later) »