« first day (2230 days earlier)      last day (1727 days later) » 

9:00 PM
@Riley I've already worked a few hours on it, and I've looked through the list of commands a few times, but I still can't figure it out.
 
I must've seen the command and not known how it works on lists or something
 
(doesn't work if there's ever two apostrophes in a row)
 
I wonder if there are any other languages that have a < 6 byte answer
 
9:02 PM
@mbomb007 Like Emigna said, it's a feature of the language that you probably aren't familiar with (I've never actually used it before and I've only seen it used once). How much of a hint do you want?
 
@DJMcMayhem probably Jelly
 
@Riley Well, I'm fairly certain that I have to remove }. I tried using both flatten commands. Maybe a small hint?
 
@betseg CJam, 13 bytes: q{_''=!{\}|}%
 
Vote: What should I change my username to next
 
Okx
Check Out Potato
 
9:05 PM
Strawpoll in a minute
 
@CheckOutTomato Not a Fruit
 
@Okx My username is about my new programming language
 
yes
that doesn't stop you from becoming "Check Out Potato" however
 
Okx
Check Out Jelly A Language That Cheats
 
@CheckOutTomato That seems almost offensive
 
9:07 PM
^
 
Change it to "Click my name" and then your profile says "Thanks for clicking"
 
Check Out Cash In
 
Okx
Change it to "Don't Click My name" and put a screamer on your profile
 
@CheckOutTomato TBH, "Check out tomato" is an extremely obnoxious name. If it was just a tad worse it would be spam and you would probably get punished for it, but since it technically isn't breaking any rules, no one can do anything about it. I know it bothers a lot of people who haven't said anything
9
 
9:09 PM
@Riker because you didn't cocapod correctly
 
how cocapod good
 
I'd recommend changing it to basically anything else
 
@DJMcMayhem Why is it obnoxious? Also, how would it be "worse"?
 
Anonymous
FWIW I think it is spam
 
Anonymous
@DJMcMayhem inb4 "basically anything else"
 
Anonymous
9:10 PM
Mar 3 at 4:34, by Mego
Changing your username to promote a product is borderline spam imo
 
@CheckOutTomato Bc it's not much different than "check out my website"
 
@mbomb007 It's not like I put ads on it or something
 
@mbomb007 Now that I think about it, the documentation wouldn't tell you that this feature works this way. I only knew that it did this because I happened to see it used before.
 
> "Advertisement" -- noun: a notice or announcement in a public medium promoting a product, service, or event or publicizing a job vacancy.
 
Okx
CMC: Write a program that outputs 'Check Out <FRUIT>' and <FRUIT> will randomly be replaced with either "Banana", "Tomato", "Apple" or "Avocado"
 
9:11 PM
That's exactly what it is
 
@Riker you just gotta installs the cocoapods
 
ok
 
IMO spam == commercial content or something that makes money, like a website with ads or a product
 
will do later
 
@Mego Huh. I didn't realize that Tomato actually referred to something specific. I just thought it was a username.
 
Anonymous
9:11 PM
@CheckOutTomato It doesn't have to be commercial to be spam by the SE definition
 
@Riley I mostly have been experimenting. I found a feature that might have been unknown before:
 
Maybe people will learn to stop posting least distinct bytes problems.
 
Anonymous
"Check Out GNU" would be just as spammy
 
@Adnan I found a way to do it. Create another list that has the value to assign also at the nth index. Then merge the lists using ñ preceded by the value of n (the index). tio.run/nexus/05ab1e#@2/iw2XiE2Tio81ldHjj//8Ambomb007 13 mins ago
 
@Okx Ruby: puts"Check Out #{%w(Banana Tomato Apple Avocado).sample}"
 
9:12 PM
@Okx "Banana""Tomato""Apple""Avocado"."Check Out "X|X
FOG code
 
@Okx Ruby: puts"Check Out #{%w[Banana Tomato Apple Avocado].sample}"
Dammit ninjad
but mine is shorter
 
48 bytes
@TuxCopter by 1 byte
@CheckOutTomato first answer of same length wins
 
No idea why you can remove the space after puts
@Riker ehhh
 
@CheckOutTomato You don't have to change it. I just wanted to let you know that some (many) people find it annoying, and it would greatly improve people's opinion of you if you changed it back
3
 
@CheckOutTomato pls
 
9:13 PM
his answer was basically mine with a space removed
all right
 
yeah, but it came in first :P'
 
What?
 
... since when?
 
irb(main):002:0> puts"Check Out #{%w[Banana Tomato Apple Avocado].sample}"
Check Out Tomato
=> nil
 
rikermacbookpro:~ rikerw$ irb
2.3.0 :001 > puts"Check Out #{%w[Banana Tomato Apple Avocado].sample}"
Check Out Tomato
 => nil
2.3.0 :002 > puts"Check Out #{%w[Banana Tomato Apple Avocado].sample}"
Check Out Banana
 => nil
2.3.0 :003 > puts"Check Out #{%w[Banana Tomato Apple Avocado].sample}"
Check Out Avocado
 => nil
2.3.0 :006 > puts"Check Out #{%w[Banana Tomato Apple Avocado].sample}"
Check Out Apple
 => nil
2.3.0 :007 >
 
9:14 PM
nm, mixed up the word array syntax
I thought it needed parens instead of brackets
 
%w accepts a lot of separators
 
@DJMcMayhem Note that I changed my name from Calvin'sHobbies to HelkaHomba in part to promote my youtube channel (but also as a wider shift to a more unique and consistent internet username). Though I agree "Check out X" is a tad more blatant.
 
mine is still shorter ;P
 
OK, so the consensus is either wat or clever username?
 
9:17 PM
@CheckOutTomato Or just brainstorm for a while and think of one yourself. You can only change your username once per month.
 
@HelkaHomba Yeah... That seems different somehow. Like I use DJMcMayhem for literally everything (GitHub, steam, imgur, reddit, video games, etc.). And you consistently use Helka in a lot of places
 
@mbomb007 I'll think about it
 
@BusinessCat -.-
 
@Riker Were you going to give a hint, or did I miss it?
 
Mine is shorter now
 
9:18 PM
@mbomb007 hint to what
the torah comment?
 
@CheckOutTomato You can ask a PPCG mod to change your name also if you don't want to wait out the month
 
or something different
 
I can change it to an anagram of check out tomato?
Meh
 
16 mins ago, by Riley
@mbomb007 Like Emigna said, it's a feature of the language that you probably aren't familiar with (I've never actually used it before and I've only seen it used once). How much of a hint do you want?
 
9:19 PM
@mbomb007 not me
that's riley
@Riley vs @Riker
sorry about the name confusion :P
 
I liked 'Easterly Irk' more
 
<shrug>
I'll consider changing it, no promises though
 
@mbomb007 My last comment was trying to be a hint. Look for features of the language, not necessarily a specific command.
 
Oh okay
 
CMC: Given two integers a, b output true if a-b (a minus b) is in a-b (the inclusive integer range a through b), else output false.
 
9:21 PM
Although, it is just one command that you're missing.
 
@Riker I like riker
 
so do I
 
@Riker Wait, you're Easterly Irk?
 
yes
 
9:21 PM
Potatoes on Mars: potatoes.space/mars
 
hahaha
 
I never catch name changes
 
@mbomb007 I changed my username to my IRL name
 
@HelkaHomba Can we assume A>B?
 
I prefer Easterly Irk, but I think I can remember Riker. Irk is in Riker, after all
 
9:22 PM
@HelkaHomba Ruby: ->a,b{a-b===(a..b)}
 
lol
 
@Pavel no. They may be any two integers
 
@HelkaHomba PowerShell 28 bytes
 
@HelkaHomba Please give example
 
@HelkaHomba So should we always do a-b or can we do the positive difference?
 
9:24 PM
@mınxomaτ mark Watney would be proud
 
(mine might break if the difference between a and b is too large)
 
Okx
@HelkaHomba 05AB1E, 6 bytes: -²¹ŸåO
 
@CheckOutTomato 3,1->true 1,3->false
 
@CheckOutTomato e.g. A = -20, B = -10, Then A-B = -20+10 = -10. A to B = -20, -19, -18, ..., -11, -10. Outputs true.
Or A = 4, B = 1. A-B = 3. A to B = 4, 3, 2, 1. Outputs true since 3 is in the list
 
@HelkaHomba Ruby: ->a,b{(a..b)===a-b}
Fixed
 
9:27 PM
Could make as real challenge if people want
 
Sounds fun in brain-flak
 
Nope, different approach -- param($a,$b)($a-$b)-ge$b, 24 bytes
 
@HelkaHomba trivial...
 
Somewhat
 
@HelkaHomba 05AB1E 5 bytes: Ÿ²¹-å
@Okx That's exactly what I started with :)
 
Okx
9:29 PM
haha
 
Wait, nvm, my new one doesn't work if a>0 and b<0
 
Would "Cake Touch Motto" make a good username
 
Ehh...
 
no
 
9:32 PM
it makes no sense
 
Neither does AdmBorkBork ...
 
anagrams don't work if they 1. don't sound cool 2. don't make sense
@AdmBorkBork yours sounds cool though
 
Holy thermal throttling batman.
 
@mınxomaτ omg that url is beautiful too, I just noticed.
 
@Riker Aw, thanks.
 
user165474
9:38 PM
Is there a limit to how often you can change your display name?
 
Okx
0.48 ghz op
 
@HyperNeutrino Once per month
 
Okx
in 1980
 
user165474
@mbomb007 Oh, okay. Thanks. And yeah, it would make sense why it can't contain a diamond (so many fake mods...)
 
Once changed, you can't change it for 30 days.
 
9:39 PM
@AdmBorkBork haha, thanks. 'tis one of my favorite batch golfs lol
 
Kinda? You can skirt around it by changing which "parent" account is linked to your "chat" account. But you can only do that so often.
 
0
Q: Verify the queens puzzle

OkxIf you don't know what a queen is in chess, it doesn't matter much; it's just a name :) Your input will be a square of arbitrary width and height, containing √(area) 'queens'. As the shape is a square, the amount of 'queens' will always be a natural number. The input board will look like this (t...

 
Jun 20 '16 at 7:03, by Geobits
So on SO I'm Bigtoes, on PPCG I'm Geobits. Several others around the network.
@Okx I'm flabbergasted that we haven't had that as a challenge...
 
Okx
lol
@AdmBorkBork I checked for dupes, but most of them were closed and weren't actually verification ones
 
9:51 PM
@Okx In chess (and chess programming), "diagonal" means south-west to north-east, and "anti-diagonal" means south-east to north-west. They're considered different terms.
 
Okx
the wikipedia definition said otherwise... I should edit wikipedia
 
Some of it comes from matrix notation as well
 
@HelkaHomba 05AB1E, 4 bytes: Ÿ¹Æå.
 
user165474
Yeah matrix notation would make sense for the explanation here, so like diagonal matrices are just a combination of row-products applied to I.
 
@Okx Oops, missed that section. Thats what I get for reading fast :P
or in this case, not reading at all
 
9:58 PM
@mınxomaτ huh, but how?
 
Precomp attack probably (Nostradamus?)
 
@Riley Is the feature/command I'm missing one for an ASCII command, or non-ASCII?
 
@mbomb007 It's in the Extended ASCII characters section
 
CMC: compute a monus b (strictly nonnegative subtraction)
 
> monus
 
10:03 PM
yes, that's what it's called
In mathematics, monus is an operator on certain commutative monoids that are not groups. A commutative monoid on which a monus operator is defined is called a commutative monoid with monus, or CMM. The monus operator may be denoted with the − symbol because the natural numbers are a CMM under subtraction; it is also denoted with the ∸ symbol to distinguish it from the standard subtraction operator. == Notation == == Definition == Let ( M , + , 0 ) {\displaystyle (M,+,0)} be a commutative monoid. Define a...
 
Oh, I though you typoed minus lol
 
hah yeah
 
Compute a minus b is not a very good CMC
 
did you read the entire message, all 7 words? >_>
> (strictly nonnegative subtraction)
 
@ConorO'Brien s2.quickmeme.com/img/4d/… (no onebox)
2
 
10:05 PM
@ConorO'Brien 05AB1E 3 bytes: -0M
 
@ConorO'Brien C, 22 bytes
 
user165474
@ConorO'Brien Python 28 bytes: lambda x,y:int(x>y) and x-y I feel sad for getting beaten by C ;_;
 
@Riley Sigh, that's what I figured
 
@HyperNeutrino lol
 
@HyperNeutrino does dropping int work? since True and False act as 1 and 0
 
user165474
10:08 PM
@betseg yes :P nice job. Also, I would've used ternaries but they're so expensive in Python...
 
@HyperNeutrino (if I understand correctly) couldn't you do max(0,x-y)
 
user165474
@ConorO'Brien I don't think so; I tried it and the answer for x <= y gives False and x > y gives a number
 
oh, hm
try dj's suggestion
 
user165474
@DJMcMayhem Oh... um...
 
user165474
im dumb
 
user165474
10:09 PM
lol :P
 
user165474
Yeah, that is a much better solution.
 
Plz don't give golfing suggestions ;_;
 
another solution without builtins:
lambda x,y:[0,x-y][x>y]
 
user165474
Python 22 bytes: lambda x,y:max(0,x-y)
 
user165474
@ConorO'Brien Hm, yours is only 2 bytes longer than DJ's.
 
10:10 PM
Still doesn't beat C lol
 
@ConorO'Brien SWI Prolog: m(A,B,R):-A<B->R=0;R is A-B..
 
user165474
@betseg lol yeah, but at least it's tied. :P
 
0
Q: If A-B be in A-B A else B eh?

Helka HombaGiven two integers, A and B, output A if A-B (A minus B) is in A-B (A to B), otherwise output B. "A minus B" is standard subtraction. "A to B" is the range of integers starting at A and ending at B, including both A and B. For example: 1 to 4: 1, 2, 3, 4 -2 to 5: -2, -1, 0, 1, 2, 3, 4, 5 3 to ...

 
@HelkaHomba why not just output true/false?
 
Okx
@HelkaHomba I don't really like challenges that can be solves in < 10 bytes, they don't have much room for variation
 
10:12 PM
Befunge: &&-:0\`!*.@ 11 bytes
 
@Okx I think this has variation. You can just check if the number is in a created range list, or you can be more mathy
 
Essentially (x-y) * (x - y > 0)
 
And simple challenges always give people a chance to use more esoteric languages which is nice
 
@HelkaHomba That is one Hecka confusing title
And it'll be much harder than I thought, considering that a can be smaller or larger than b
 
3
Q: If A-B be in A-B A else B eh?

Helka HombaGiven two integers, A and B, output A if A-B (A minus B) is in A-B (A to B), otherwise output B. "A minus B" is standard subtraction. "A to B" is the range of integers starting at A and ending at B, including both A and B. For example: 1 to 4: 1, 2, 3, 4 -2 to 5: -2, -1, 0, 1, 2, 3, 4, 5 3 to ...

 
10:16 PM
@ConorO'Brien Hoping that plainly implemented answers would necessarily be a longer thereby
 
right, but that adds nothing to the challenge, it only obscures the challenge's purpose
 
CMC: absolute difference in brain-flak.
I can do 32, I want to see if anyone can do better
Does not need to be stack clean
Actually, I guess mine can be made stack clean for only four more bytes
 
meaning |a - b|?
 
Yeah
 
10:19 PM
Actually, let's make it simpler and more useful. Absolute value
I can do stack clean in 32: (([(({}))]<>)){({}())<>}{}{}<>{}
 
How would you do greater than in the shortest way possible?
 
which format should I use for a simple config? I was thinking JSON but Java doesn't have anything buillin for that, and I want to avoid using libraries
 
I was thinking of having an anagram name
 
@mbomb007 for what is that?
 
17
Q: Cops: Crack the regex - Make a snake

Stewie GriffinThis is the cop's thread. The robber's thread is here. Write a code that takes an input n and creates a n-by-n "snake matrix". A snake matrix is a matrix that follows this pattern: 3-by-3: 1 2 3 6 5 4 7 8 9 and 4-by-4: 1 2 3 4 8 7 6 5 9 10 11 12 16 15 14 13 The exact outpu...

 
10:23 PM
@MistahFiggins Well... There's this, but I'm sure there's something better
in The Third Stack, Oct 30 '16 at 1:52, by Wheat Wizard
http://brain-flak.tryitonline.net/#code=KFsoe308KCgpKT4pXSg8Pikpeyh7fSgpKTw-fXt9‌​PD57fXt9PD4oKHt9KSl7KDx7fSh7fTw-KT4pfXt9KHt9PD4p&input=LTI0&args=LWQ&debug=on
 
@ConorO'Brien Use XML. I'm not afraid to use Nokogiri to deal with your ...
 
@mbomb007 is something like UXFXLNX*+N2BSR1k_iR}ˆ also possible? :p
 
Or, better yet, JSON
 
>_> read the last part of that message plz
 
@DJMcMayhem when was the last time you made a pun about Dr Seuss and/or ham
 
10:25 PM
I did. My suggestion holds.
 
thanks, but it doesn't, unless you want me to roll my own JSON parser
 
@DestructibleWatermelon A long time ago unfortunately
 
@Adnan Ah. Yeah, that's the spoiler that Riley was giving me a hint for
Well, thanks.
I didn't know what the global array was
 
how about good ole ini?
 
at least be DjMcMayham
 
10:26 PM
@JanDvorak does java have an ini parser builtin?
 
split by lines, then by equals
 
oh, true
 
@mbomb007 yeah, I should really write a wiki
 
Also, reading through your source code is difficult because I see something like elif current_command == "\u00d3" and I don't know which that one is
It'd be nice if the actual character was there or in a comment or something
 
@JanDvorak Are you the one who convinced @DJMcMay and @Riley and so many others to never take their hats off? (You've been falconface as long as I can remember.)
 
10:29 PM
Not intentionally.
 
@mbomb007 Yeah, looking back a year after making 05AB1E, there are a lot of things I could have done better.
but now it's just laziness
 
@HelkaHomba Nah, I just really liked being The mad Catter in the hat
 
@DJMcMayhem From a distance your avatar looks like roughly like a flamenco dancer.
 
poll: do you prefer flamenco dancers, or flamingos?
 
flamenco dancing flamingos
 
10:36 PM
flamenco dancers dressed as flamingos, flamenco dancing with flamenco dancing flamingos dressed as flamenco dancers
 
flamin' flamingos
 
Okx
CMC: In brainfuck, increment a given input number by 1 (eg 1599 -> 1600) (this might take a while)
no searching pre-existing algorithms
 
10:45 PM
+
 
> input number
 
(I think the point is that it has to be arbitrary precision)
 
and ^
 
I input numbers as numbers
 
,+.
 
10:47 PM
oh, right. I was providing a function
 
Okx
That doesn't work everyone, it doesn't take STDIN, it doesn't change the actual numeric value, just the ASCII value
 
I input numbers, not characters
 
Okx
CMC: Take a number from STDIN, and output that value incremented by one. Eg. with the input '1599' you should output '1600'
more detailed
 
"in decimal"?
 
too unmini
 
10:52 PM
J, 15 bytes echo>:".1!:1(3)
 
main=readIO>>print.(+1)
Ruby:p gets.to_i+1
 
What happens when there is no more input in BF?
Does it just put 0 in the current cell?
 
@HelkaHomba I didn't know anyone else was doing it when I started.
 
Okx
CMC: Take a number from STDIN, and output that value incremented by one. Eg. with the input '1599' you should output '1600'
in brainfuck this time :P
forgot to mention
@MistahFiggins you can just do a loop to get the input like this: ,[,>]
 
Thats what I had assumed, but I wasn't sure
@Okx wouldn't it be ,[>,]?
 
Okx
11:11 PM
oh yeah
 
Does it have to be STDIN?
 
Okx
yes
 
RProgN-2 Can't read STDIN :(
read ~1+_ works in RProgN1 though.
 
@Okx Charcoal, 4 bytes: I⁺¹N
 
Okx
11:26 PM
I said brainfuck
lol
 
@ASCII-only I was about to say "this is impossible with Crayon, I haven't implemented + yet", but then I realized I have implemented increment ())
 
I'll see what i can do in BF...
 
But wait... it is impossible, I haven't implemented a convert-to-number command yet
(well I have, but I haven't committed it)
 
@ETHproductions D:
 
@Okx print Number::IO.prompt() + 1
 
11:29 PM
Needs to be in BF.
 
@ETHproductions well then it's non-competing ;P
 
1
Q: You Are the User: Create the Requirements

Stephen SMy boss* does not understand why her programmers react negatively to users changing program requirements. Help her understand! On every answer, create a new requirement. Then, write a program/function that solves that requirement and all prior requirements, while in a new programming language. Th...

 
Hmm, that seems interesting... maybe a little unclear or too broad though
 
Okx
yeah, I VTCed it
I don't fully get it, as some things are very subjective
This bit I don't really get: " it may only remove a single character ("0") or a string ("Hello")."
 
@Okx Restricted source
 
Okx
11:41 PM
I mean
What is the reason for the 'single character' bit
 
i.e. you can't use 0, or you can't have the string Hello anywhere in your code
Single character means you can't disallow e.g. 0 and 1
 
Okx
it's just redundant
as eth said
 
Hmm yeah, I think the point is you may disallow one string of any positive length
Should I edit it to make this clear?
 
Okx
sure
 
Wait... maybe it's supposed to mean [you may only remove one character or a specific string (e.g. your code can contain Hello but not "Hello")]
Well, I suppose the User 3 example goes against that
 
11:58 PM
@mınxomaτ something oddly satisfying about jumping up and down on the graves of these hash functions
 

« first day (2230 days earlier)      last day (1727 days later) »