« first day (2341 days earlier)      last day (2503 days later) » 

Okx
5:00 PM
what does it do
 
@Christopher 5 minutes isn't an especially long delay...
 
I MAY BE SLOW BUT I HAVE NO ENEMIES
9
 
0
A: Build me a city

AdámAPL (Dyalog), 37 bytes {⊃,/⍵↑⍨¨-⌈/≢¨⍵}'(.)\1*'⎕S{2/⍪⍵.Match} Try it online!

 
@trichoplax yeah and then you think that I believe nmp can edit itself...*stars*
 
@KritixiLithos Maybe I should add the ability to post process result. Then it could be just:
(.)\1*
2/⍪⍵M
⊖⍵
 
5:12 PM
@EriktheOutgolfer I just edit it down to one line so it doesn't take up space...
 
or when I fed butter to newmetaposts...and Doorknob thought he'd conceal himself behind the bot
 
The edit history is public knowledge - there's no subterfuge here :P
 
@Adám that's definitely a good idea
 
Have we had a challenge for pretty-printing a matrix yet?
If not I'd like to write one
 
@musicman523 Like how?
 
5:24 PM
@Adám Something like "Given a matrix of integers, print it so that all columns line up (number of digits in each number will matter)"
 
@musicman523 APL: (no-op)
 
@Adám Welp.
 
wait
jelly doesn't have bitwise shift?
 
@totallyhuman Why do you need it when you have multiplication and division?
 
5:28 PM
i mean... byte count?
 
It does. They are 2-byte operators
Because you hardly ever use it
 
oh i was ctrl+f'ing 'bitwise'
 
æ« and æ»
 
it's labeled 'bit shift' instead >_>
 
CMC: Find the longest full case name of any case in any U.S. court of law.
 
5:30 PM
@LegionMammal978 Mathematica built-in?
 
@Adám No, actually find it, don't write a program to find it :p
(well, you could, but you'd need to tell me the output)
 
@LegionMammal978 I Am The Beast Six Six Six of the Lord of Hosts in Edmond Frank MacGillivray Jr. Now. I Am The Beast Six Six Six of the Lord of Hosts IEFMJN. I Am The Beast Six Six Six of the Lord of Hosts. I Am The Beast Six Six Six of the Lord of Hosts OTLOHIEFMJN. I Am The Beast SSSOTLOHIEFMJN. I Am The Beast Six Six Six. Beast Six Six Six Lord v. Michigan State Police, et al.
 
@Mendeleev Source?
 
hey anybody know a good unicode character for duplicate?
 
5:33 PM
@Mendeleev One sec, trying to look up the relevant documents
 
@LegionMammal978 thing
 
what a name
 
@totallyhuman 🗇 🗊 🗍 🗐
 
@totallyhuman ⎘
 
5:35 PM
Those all look like boxes
 
how have you found characters that are boxes on my chromebook
 
hey I'm working on putting together test cases for a challenge involving floating points. Should I require submissions to handle edge cases like NaN and +/- Inf correctly?
 
these things have support for liek everything
 
I just use a colon for duplicate
 
@totallyhuman . → :
 
5:36 PM
@Mendeleev That's copy as in copy-and-paste.
 
And semicolon is copy the second-from-top :)
 
@Adám It's symbolic
 
colon makes sense though
 
@AJMansfield I'd say it depends on the challenge but if the challenge has more to do with "real numbers" in the mathematical sense than "the IEE754 representation for floating point numbers" then I would say don't test for NaN or Inf
 
It's more to do with IEEE754 than real numbers
 
5:38 PM
Then I would test for NaN and Inf.
 
and i finally use the peek feature of my stack
 
took forever to find a use for it
 
It's just that requiring support for those is likely to actually make the challange significantly harder
 
@Mendeleev So I AM THE BEAST SIX SIX SIX OF THE LORD OF HOSTS IN EDMOND FRANK MACGILLIVRAY JR NOW. I AM THE BEAST SIX SIX SIX OF THE LORD OF HOSTS IEFMJN. I AM THE BEAST SIX SIX SIX OF THE LORD OF HOSTS. I AM THE BEAST SIX SIX SIX OTLOHIEFMJN. I AM THE BEAST SSSOTLOHIEFMJN. I AM THE BEAST SIX SIX SIX. BEAST SIX SIX SIX LORD, Plaintiff, v. Michigan State Police; City Police of Lansing; State of Michigan; Ingham County 54A District Court; and Ingham County Jail, Defendants?
(apologize for noise)
 
5:38 PM
@LegionMammal978 I guess...
 
wth
ugh markdown
 
@totallyhuman the man changed his name to "I AM THE BEAST SIX SIX SIX OF THE LORD OF HOSTS IN EDMOND FRANK MACGILLIVRAY JR NOW"
 
i'm using the | character in a table and nothing i try can escape it
 
@AJMansfield When you say "closest" in your challenge, do you mean closest by value or by Levenstein distance?
 
Closest as in minimal abs(x-y)
 
5:40 PM
@totallyhuman \|
 
(minimal by the totalOrder predicate)
 
@Mendeleev i tried
 
@AJMansfield Then I don't think you can test for NaN or Inf, since you can't subtract those?
 
Okay, so that's 461 characters. Anyone have a longer case name?
 
unless atom's github markdown preview is borked, it doesn't work
which might be a likely case actually
checks
 
5:41 PM
Most things Atom-related are completely borked. Source: am Atom user
 
@musicman523 Subtraction is still well-defined on those. iki.fi-jhi.s3-website-us-east-1.amazonaws.com/infnan.html
 
@musicman523 use vim
 
Okx
Join answers on PPCG would be cool, i.e an answer was 50% me and 50% someone else, and rep would be divided accordingly. Thought of this because people can golf down someone else's answer and get rewarded but idk
 
@Okx I think I heard somewhere that CW used to work like that and it turned out badly, not sure though
 
Okx
5:47 PM
CW?
 
@Okx Community Wiki
 
Okx
ah
yeah it probably didn't work because that could be easily abused
 
Can someone take a look at this, or at least tell me they did? codegolf.meta.stackexchange.com/a/13115/65836
 
Okx
had a look, instantly closed. np
 
@Mendeleev I do use vim but really only for short things, I prefer atom for larger projects
@AJMansfield How do you quantify the difference? For example, which is larger, 3 or NaN?
 
5:53 PM
NaN
The totalOrder predicate defined in the standard puts them in a very definite order
@musicman523 that order being -NaN < -Inf < -1 < -0 < +0 < +1 < +Inf < +NaN
(it also says how NaNs with different payloads are sorted, but the payload values themselves are implementation defined so can't be depended on)
 
@Okx Thanks :)
 
So is 0 by default +0, or -0, @AJMansfield?
 
opinion time: should punctuation like ! . ? go before or after emoticons?
 
Before
 
@LegionMammal978 it doesn't really matter since the implementation gets to pick its input representation, and abs(-0)=0 anyway
 
5:57 PM
@totallyhuman Are they part of the sentence or an afterthought?
 
@AJMansfield So is -0 < +0 for actual comparison, or just for sorting?
 
totalOrder(-0, +0) returns True
@LegionMammal978 so -0 < +0
 
What about totalOrder(+0, -0)?
 
False
totalOrder is normally just used for sorting things, Its just convenient for this challenge since it gives a definite answer to every possible 'is a or b closer to x'
 
ew this is bad. anyone have golfing tips? :)
 
6:11 PM
6
Q: Are there N consecutive occurrences of a number in a row/column in a matrix?

Stewie GriffinTake a matrix A consisting positive integers, and a single positive integer N as input, and determine if there are N consecutive occurrences of the same number in any row or column in the matrix. You need only test horizontally and vertically. Test cases N = 1 A = 1 Result: True -------------...

 
@Adám Doesn't quite work because the banner is not opaque.
 
@HyperNeutrino But you could add a background to the banner. There's always a solid color which matches a combo of partial opacity+below background.
 
How? Put background-color into the .banner CSS block?
 
@HyperNeutrino yes, or just background: (for golfing)
 
yeah no that doesn't work, because only the title gets the background for whatever reason
 
6:19 PM
@HyperNeutrino and not what?
 
the navbar
oh wait that's because navbar doesn't inherit
 
@HyperNeutrino of course no, it isn't a child. (why?)
 
well the thing is the navbar is translucent, so text shows through from behind it
 
@HyperNeutrino again, it doesn't need to be.
 
but even if I make it opaque, there are gaps
brb
@Adám
 
6:31 PM
@HyperNeutrino just adjust the padding-top and padding-bottom
 
>_> why do so many languages have built-ins for "hello world"
<_< it's so lame
 
6:47 PM
Complaint: what's the logic behind some languages using the syntax "val name : String =" instead of "String name ="?
 
Because they want to be different.
@Adám How's this?
 
@HyperNeutrino Now we're talking!
 
0
Q: Generate a US License Plate

Stephen SGiven one of the following: AK,AS,AZ,CA,CT,DC,FL,GA,IL,IN,IA,KS,KY,LA,MD,MI,MN,MS,NV,NH,NJ,NM,NY,NC,ND,MP,OH,OK,PA,PR,RI,SC,TN,TX,UT,VT,VA,WA,WI (with quotes) "AK","AS","AZ","CA","CT","DC","FL","GA","IL","IN","IA","KS","KY","LA","MD","MI","MN","MS","NV","NH","NJ","NM","NY","NC","ND","MP","OH"...

 
@HyperNeutrino Is the spacing around the title supposed to be different on the About Me page and the rest (aka which one are you going to go with)
@NewMainPosts you're not slow, you're just special
 
6:53 PM
1
Q: Byte count for programs in visual languages

lukeoftheaurafor code golf challenges, how would bytes be counted for visual programming/patcher languages like puredata? I thought maybe a system based on the language's saved file size for a patch, but that seems somewhat unfair as those files often contain metadata that isn't part of the program.

 
@HyperNeutrino Now you just need to subdue that scrollbar. It is a bit involved.
 
yes. how do i kill it
 
with fire
 
@HyperNeutrino I don't remember offhand, but you should be able to figure it out from miserver.dyalog.com
 
but there's a scrollbar on it
oh wait but not in the header
hm.
 
6:59 PM
@HyperNeutrino exactly.
 
i thought you abandoned anyfix
 
I did
 
@totallyhuman He can still stick it on his resume though
 
heh
hmm you could probably make the fact that the links are links clearer
i can english
idk how you'd go about doing it but just underlining it isn't enough imo
 
@totallyhuman fixed
haha no but actually, what would you suggest?
also i will be back in like 15 minutes o/
 
7:07 PM
ಠ_ಠ/
 
I've just spotted a loophole in a challenge I'm considering posting, but I'm not sure the best way to close it.
 
@PhiNotPi Probably just another way of reading it. : could be read as is a.
 
Actually thinking about it I don't think it'd really be too much of a problem
It'd still be a very creative use if someone feels like exploting the loophole.
 
Hey, when you get back, @HyperNeutrino, isn't this challenge ( codegolf.meta.stackexchange.com/a/13102/55550 ) just lim_{x->infinity}(f(x)) with an additional test for divergence/oscillation?
 
yes
it has definitely been 15 minutes
but yeah it's that
like if lim x -> infinity f(x) = <finite> it converges, lim x -> infinity f(x) = <infinite> it diverges, and lim x -> infinity f(x) = <undefined> is probably oscillating
 
7:18 PM
is there a magic link for Standard Loopholes?
 
well hiding scrollbar still doesn't work
halp?
 
Okx
CMC: Check if a number is 'nude' (check if all of its digits are also divisors of the number)
 
Examples?
 
So, basically, use Mathematica or Sympy or something?
 
Or use Jelly
 
7:25 PM
Why?
 
Okx
@HyperNeutrino 23 is not 'nude', it's not divisible by 3, 24 is (it has the divisors 2 and 4)
 
Jelly, 4 bytes: DḍµȦ
@ZacharyT ^ that's why
 
I was talking about the challenge in the sandbox.
 
oh
lol
 
Opinion-Fishing: Do (would) you use an Auto-Save feature in a text editor, or even an IDE?
 
7:31 PM
@StephenS Auto-Save over the same file, or make a backup?
 
Okx
IntelliJ uses auto-save, and I love it
 
@Riley Over the same
 
05AB1E, 7 bytes: DTв.ÀÑK.
Returns empty list if it is nude and all non-dividing digits if it isn't.
 
Okx
that's kind of cheating
truthy and falsy values pls
 
Depending on the language, those are truthy and falsy values.
 
Okx
7:34 PM
they're not though
 
@Okx If empty list is falsey and non-empty list is truthy that's fine
 
Okx
but it's not
 
Falsey and Truthy depends on the language, right?
 
I mean in 05AB1E that's not correct.
 
o_o
 
7:36 PM
idk how to do it otherwise though
because the 05ab1e docs are too hard to use
 
Okx
not for me though
i can use it fine
 
@HyperNeutrino .content{position:absolute;top:10em;overflow:auto;height:calc(100% - 10em)} body{overflow:hidden}
 
@StephenS Then it depend on the situation. If I'm using source control and could easily go back to a version that I didn't want saved over I might use it. Out of habit I hit Ctrl-S so often that it wouldn't make much of a difference for me though.
 
@HyperNeutrino and remove the .content{margin-top:10em}
 
Hey, @Adám, do I need the ¨ in ⍺/¨ here? codegolf.stackexchange.com/a/128699/55550
 
7:39 PM
@ZacharyT No, you don't. ⍺ is a scalar, so there is no difference.
 
position: absolute causes the navbar to die.
 
@HyperNeutrino That's because it has negative margin-top. Change to 7em.
 
oh wait thx
ok so now it doesn't scroll
oh wait nvm im dumb
 
@Okx MATL, 9 bytes: tV48-wZ\m
 
7:44 PM
@HyperNeutrino .content{width:100%} Also your .bio is set to 75% for some reason.
 
Right, thanks.
@Adám that is to add some extra space to the sides.
 
@HyperNeutrino For that you should add margin or padding or left: and right:
 
@Adám A friend of mine 3d printed the HTML5, CSS3, and JS logos for me
 
ah ok
like padding-left: auto; padding-right: auto?
 
Are there any changes I should make to this challenge before I post it? codegolf.meta.stackexchange.com/a/12171/7981
 
7:47 PM
@HyperNeutrino padding-left: 2%; padding-right: 2%; or padding-left: 10px; padding-right: 10px;, depending on how you want it to show on narrow vs very wide screens, and increase/decrease as needed
 
it's width: 75% with autopadding; I think that's what I did for the other thing.
 
Removing each doesn't work, I just realized ... wow.
 
@HyperNeutrino Where did your scrollbar go?
 
good question
it still scrolls???
what is this???
...oh
the content is 100% wide
 
7{1∊∊⍷∘⍵¨(⊢,⍪¨)⍺/⍳⌈/∊⍵}6 6⍴3 2 3 4 2 1 4 1 4 2 4 2 4 2 3 3 4 1 1 1 2 2 3 4 3 2 3 1 3 1 1 1 2 2 3 4 is 1, @Adám.
 
7:51 PM
which pushes the scrollbar off the screen
 
@HyperNeutrino because you added padding with 100% width
 
which would show with overflow-x
but that's hidden by body {}
is the scrollbar critical?
it looks ugly
i need a way to reskin the scrollbar / retheme it
 
@ZacharyT My bad, the right argument to . isn't a scalar.
 
Yeah, rolled back the edit.
 
7:53 PM
beautiful :D
 
@HyperNeutrino There are frameworks or css libraries or simple stuff like that out there for everything, modern (mainstream) coding is more finding what frameworks to combine and making them work together than actually doing any "hard" work yourself
 
@StephenS more fun to home brew.
2
 
@Adám That is correct :)
 
0
Q: Find the Closest Double Palindrome

AJMansfieldGiven a double-precision float, find the closest double-precision float whose binary representation is a palindrome. Input A floating point number x. You may use any format you like for input, but the format you chose must be able to represent every possible IEEE 754 binary64 value, including d...

 
welp it now borks everything
 
7:58 PM
@HyperNeutrino looks ok to me
 
that's because i haven't pushed yet
oh wait it's because i copied the CSS over
and the width, height, and background are specified for them
 
@HyperNeutrino I'd set .main-title{background-color: #202e35;}
 
thanks.
but scrollbar is still borked must fix that too
 
I don't even have the patience to read it all ^.
 
@AJMansfield Okay so what's greater: The difference between NaN and Inf, or the difference between Inf and the largest finite number you can represent with a double?
 
Jim
8:03 PM
Does someone know how to quickly test if a list contains another in Pyth?
 
@musicman523 NaN - Inf = NaN > Inf = Inf - <biggest non-infinite value>
 
@KritixiLithos Try it online!
 
@musicman523 The difference between Inf and the largest double is the same as the difference between Inf and the smallest (most negative) double, at least mathematically
 
well now I broke the entire thing D:
 
@HyperNeutrino You're using inspect element, right? If someone looks broken just look at what CSS is being applied to it and where it's coming from
 
8:10 PM
(cc @Adám) This is what's happening: here. I've made the colors very weird so you can tell the different elements apart.
 
@HyperNeutrino Is your ".content" supposed to be nested inside your ".scrollbar"?
 
@HyperNeutrino Really? I don't like hacks like those custom scrollbars.
 
Who abuses stars?
 
@Adám Do you know how else to do custom scrollbars the non-hacky way?
 
8:18 PM
@HyperNeutrino No. I wouldn't do it. Likely to break and be problematic for access.
 
@HyperNeutrino When you (repeatedly) said "bork", you reminded me of @AdmBorkBork... I haven't seen that user in a while :/
 
@Mr.Xcoder Which starred messages don't deserve it?
 
@Adám Actually, nor.
 
@HyperNeutrino Sometimes, accessibility > appearance
 
Ah okay. Another idea is to just remove the scrollbar, though then people might not think to look further down
 
8:20 PM
@HyperNeutrino Same issue. Not everyone has mouse scroll wheel or touch screen.
 
OK, reverted back to using default scrollbar.
 
0
A: Sandbox for Proposed Challenges

Magic Octopus UrnWhat Tiles did I have? Everyone should be aware of the scoring system in a classic board game: Scrabble. I remember going back into my old scrabble box and finding some old post-it notes containing old scores. I always wonder what the heck was played for some of the more insane point scores. Tha...

 
@Adám oh right, true...
 
@HyperNeutrino Some food for thought: news.ycombinator.com/item?id=9325796
 
Ah okay.
Still, at least it's better than this
 
8:24 PM
@HyperNeutrino Why do the links on that site not make your mouse into the clickable mouse thing 0.o
 
@StephenS because they're not links
they're buttons
 
1
Q: Reindent Java/C/C++/etc. code

tbodtWrite a program that adds or removes whitespace to format code nicely. Rules for what the code should look like when you're done: No line should contain more than one of { and }. A { should always be the last thing on a line. A } should always be the only thing on a line (besides whitespace tha...

 
@Adám Was just checking my email - GMail uses custom scrollbars
 
@StephenS It does indeed.
@StephenS Gosh, that's a lot of nested divs.
 
Eh, could be worse: could be Lisp's parentheses.
 
8:39 PM
I honestly don't get why nearly everyone wants to incorporate U.S. political references in completely unrelated fictional works
It's not going to make much sense 50 years from now
 
@LegionMammal978 Why do you think you study history in grade school
 
To not repeat it?
 
@StephenS As in, a lot of the cultural references intuitively making sense
 
Then enevitably do.
Sorry all I read was the last sentence.
 
Jim
Pyth, 12 bytes: .U&b}ZPQsM`Q
https://pyth.herokuapp.com/?code=.U%26b%7DZPQsM%60Q&input=33&debug=0
I'm so disappointed not to find an efficient way to test if `list1.contains(list2)` ><
 
Okx
8:42 PM
D:
 
@Jim Is list1 a list of lists?
 
Jim
No, a list of integers
 
And Markdown doesn't work on multiline messages
 
CMC: Given inputs x, y, and z, output x + (y / z). The catch: You can't use a language that you have ever used before on PPCG, either on challenges or CMCs
 
So list1.contains_as_sublist(list2)?
 
8:44 PM
Example: 1, 2, 3, output: 1.66666666667 or similar
 
Jim
@LegionMammal978 [1, 2, 3].contains([1, 2]) -> True
But [1, 2, 3].contains([1, 5]) -> False
 
@Jim so you want a containsAnyOf, not a contains
 
Anonymous
@Okx Actually, 10 bytes: ;$♂≈╔;(÷∩=
 
@StephenS More like containsAllOf
 
Jim
@StephenS No, that's a contains "all of"
 
8:46 PM
Oh, thought there was already a contains and it didn't work the way you wanted it to, mb
 
Jim
I can transform lists to sets, and then test with subset, but that is sooooo long
@StephenS Sorry for being unclear
 
@StephenS That doesn't answer my question. NaN - Inf < Inf - 1, is this statement true or false?
 
@StephenS 05AB1E, 5 bytes: ²³/¹+
 
@StephenS 05AB1E, 2 bytes: /+
 
get rekt
 
8:48 PM
Woah, ninja'd kinda
 
@musicman523 JS console says false
 
Jim
@StephenS Python, 20 bytes: lambda x,y,z:x+(y/z)
 
@musicman523 Or, it says NaN - Infinity = NaN, and NaN < Infinity = false
 
@Jim you can drop the parentheses for two bytes
@StephenS Makes sense, thank you!
 
@Jim you can get rid of parentheses because of operator precedence
 
8:49 PM
ninja'd B)
 
Jim
Oh that's right: 18 bytes: lambda x,y,z:x+y/z
 
I love 05AB1E; there is always more than one answer O_O
 
@musicman523 Both the statement and its negation are false
 
Same with Jelly, but... I don't get it.
 
Okx
@MagicOctopusUrn just add a lot of whitespace xD
 
8:50 PM
@MagicOctopusUrn 05AB1E, 2 bytes: 42
 
@LegionMammal978 of course they are
 
I'm still wondering why "MagicOctopusUrn" is lighting up as my name.
 
Jim
@MagicOctopusUrn Do you mean you have more trouble learning Jelly than 05ab1e?
 
Yeah the links are slightly confusing.
I've been trying to look at 05AB1E answers vs. Jelly answers, but none use the same strategy.
 
@MagicOctopusUrn afaik if you learn J they'll make more sense
 
8:52 PM
J?
I'll look into it.
I want Charcoal to be my next learn though, because I prefer competing in ASCII/Kolm
 
Jim
@MagicOctopusUrn I was thinking to learn Charcoal next too
 
I'm amazed that Neil knows it so well!
 
Anonymous
@StephenS Prolog, 24 bytes: f(A,B,C,D):-D is(A+B)/C.
 
I thought he was the creator for awhile.
 
Jim
My Pyth can still sometimes compete with Jelly and 05ab1e
But not Charcoal
 
8:53 PM
@MagicOctopusUrn Jelly's Github says Jelly was inspired by it; Wikipedia says it's like a functional version of APL but with ASCII
 
I don't get APL either.
 
Anonymous
Oh I misread
 
I get adam's answers, but ask me to extend it and I break down due to unknown syntax.
Oh god don't link adam.
 
Anonymous
 
He's the only one who I really enjoy reading APL answers for.
Don't wanna embaress my little knowledge of APL with his godliness xD.
All them answers with pointy arrows just kill challenges.
(sometimes)
 
8:55 PM
My highest voted challenge, destroyed with an arrow and a builtin list: codegolf.stackexchange.com/a/125119/65836
 
Yeah, it's an oddly contextual langauge with some built-ins that leave you like... Wait, why?
 
@MagicOctopusUrn Ho ho ho! It isn't hard to learn though. I could teach you the basic syntax in 15 minutes.
 
Ahhh! Too late, the master was summoned.
 
@MagicOctopusUrn V? :P
 
Okx
@Adám Is there a good tutorial/wiki for APL?
 
8:58 PM
I always read the answers you post on APL, it seems interesting;.
 
@MagicOctopusUrn I didn't do it
 
But I also wonder what @okx asked, the only reason I picked up 05AB1E so fast was: github.com/Adriandmen/05AB1E/blob/master/docs/info.txt
 
@StephenS Haskell, 13 bytes: f x y z=x+y/z how do I get this to compile on TIO?
 
0
A: Sandbox for Proposed Challenges

CensoredUsernameA lean, mean bean machine A classic example to introduce people to the concept of a discrete probability distribution is the bean machine. This machine has a large amount of marbles fall from a narrow passageway at the top, after which they hit rows of interlaced pins, where at each pin the marb...

 
@musicman523 Dunno Haskell, sorry
 
8:59 PM
Like if you have something explaining each command, that I can ctrl+F to find the needed char...
Half 05AB1E programming is just using CTRL+F on that page.
 

« first day (2341 days earlier)      last day (2503 days later) »