« first day (2297 days earlier)      last day (1616 days later) » 

6:00 AM
also "replies" to removed messages
apparently it's a ping if the message is deleted, else it's a reply
nevermind ^ it's just how SE works
 
6:17 AM
@EriktheOutgolfer You want to install all of the userscripts in the repo btw
 
yeah I do want
 
You can also do multiple ^s for more messages up
 
yeah I noticed in the sandbox
 
^?message? searches for the text
 
wow that's awesome
 
6:22 AM
Do you have TeamSpirit.js yet?
 
is that for a koth or something?
 
It's for memes
It's one of the userscripts
Of which you should install all of
 
oh... (note: chat preview is awesome)
 
chatformatting enables <C-i> and stuff for italics
autochatjax.js is for $\LaTeX$
 
yeah ikr
 
6:25 AM
autogoogleprettychat is syntax highlighting
 
@Phoenix I disabled it
 
chat commands is things like /0_0 for ಠ_ಠ, pretend 0s are os
You can see the script code for a list of commands
strawpollbox oneboxes strawpoll links
 
like?
wasn't teamspirit actually a bit buggy?
 
Fixed now
 
oh... for what koth is that?
38/7
 
6:29 AM
It's just for memes
The scores are based on the starboard
 
@DJMcMayhem @KritixiLithos
 
The only reason I included Far is because my dad uses it
 
you can safely remove ms notepad imo
 
@EriktheOutgolfer what?
 
The best text editor is Emacs in evil mode
 
6:31 AM
oh, the strawpoll
 
I have installed a userscript which oneboxes it
of course you should vote for vim
 
I thought everyone had the tacoscripts by now ;-;
 
@Phoenix where is the red/blue star coloring based? (teamscript)
since it's for memes
 
Anonymous
@EriktheOutgolfer It's based off of chat user ID. Red means even, blue means odd. teamspirit.js is the source file
 
oh thanks...
 
Anonymous
6:38 AM
For example, my chat user ID is 169713, so I'm assigned to the blue team
 
gtg now bye
 
This used to make blueteam overpowered because Mego would pin things
Now pins are excluded from count
 
Anonymous
I'm starting to dislike the TeamSpirit userscript now, because it sometimes seems like people star things tactically just to increase a team's score
 
Anonymous
And I'm wondering if it's related to our recent incidents of star abuse
 
Anonymous
@Phoenix You make it sound like I pinned things to gain an advantage in TeamSpirit, which is certainly not the case (and I know that's not what you meant).
 
6:40 AM
The thing in question was already pinned when TeamSpirit.js became a thing
 
@Mego that's one of the reasons I stopped using the userscript
 
0
Q: Maximum Zig-Zag Subsequence

Mickey JackTask Input TestCase Scoring This is code-golf. Shortest answer in bytes wins.

 
7:09 AM
Wow, I never realized how stupid Python's import system is.
It's a huge PITA to do anything if you want to have more than one entry point or one that is not on the top level.
Maybe I'll just dump all my files into one directory.
 
@feersum __import__("foo") ?
 
@Phoenix What exactly are you suggesting?
 
You can make a call to it whereever you want in your program.
 
That's not what I'm talking about at all.
Plus, you can use real import statements anywhere else in the program where a statement is allowed.
By the top level I'm referring to directory structure.
 
 
1 hour later…
8:56 AM
@ASCII-only Yes? What about that?
 
9:12 AM
@feersum Can't you use that for entry points not on the top level
 
Not that I can find.
So I have directories A and B.
And I want to run A/a.py, and be able to import B/b.py
I can't find any way to do it
 
@feersum So from ..B import b doesn't work?
 
The only thing I saw is to add directories to sys.path which is bullshit.
@ASCII-only No.
Python 3, by the way.
 
@feersum you have __init__.py under directory B right?
 
Yes I copied some __init__s into all the directories.
 
9:24 AM
@feersum Well, there appear to be other ways, but they're almost as hacky
@Downgoat 11 but can wait until later
 
Some posts claim you can do it with a -m option to the interpreter but it doesn't work.
 
9:39 AM
New idea: put directory symlinks to the other directories that are needed
 
likt python3 -m A.a?
 
@ASCII-only Yes.
Doesn't work.
Another new idea: port everything to C++ because it's probably going to have problems with being too slow anyway.
 
@feersum Everything in what
 
The repository (acml).
 
10:02 AM
HTR>Y<#DCY<#<YIDHDC
My symlink hack seemed to be going swimmingly, but now it mysteriously breaks on circular imports.
 
Sounds like you're going to have to implement an import module, to give the default import behaviour you desire. Maybe C++ after all...
 
Yeah I've read this page and it sucks.
 
Hmm, then I'd go with C++, it's faster plus ACML isn't that large so it won't be too hard to port
 
Well that was a joke, it is really true that Python might end up being too slow, but I'm not porting it because of imports.
@trichoplax The problem with this idea is that I can't use my custom import module... until I import it.
 
10:08 AM
Hmmm
 
@feersum make an import package instead :P
 
@ASCII-only What do you mean?
Ugh, why do relative imports not work even if all need files are in the same directory
Well this is annoying, now I am going to have to go and delete all this periods I added all over the place.
 
make a python package instead, so there will be no import issues
 
This is literally worse than #include in C.
@ASCII-only I still don't know what you mean.
 
a pip package
 
10:20 AM
Well this is probably the only solution that's worse than dumping all my files into one directory, making symlinks everywhere, porting to C++, or writing my own Python preprocessor.
Actually, I have no idea what that entails.
But I'm assuming based on my experience so far :P
 
10:31 AM
0
A: Sandbox for Proposed Challenges

ArtyerLexicographically sort a list of numbers This question is inspired by the infuriating default behaviour of Array.prototype.sort() in JavaScript: Convert each element to a string and compare their Unicode code-points. document.write('<pre>' + [4, 2, 5, 1].sort() + '\n' + [42, 6, 10...

 
10:45 AM
@Sp3000 forgot to ask what happened with your B.. 8 wrong tries? must have been quite frustrating
 
I was trying something really naive for B-small and submitted a rush of attempts/tweaks at the end because I only needed B-small for top 1k
(it was something silly like assigning tickets to coasters arbitrarily at first then swapping them around to reduce the number of coasters)
 
huh, ok.. I thought the problem was not that hard
@Sp3000 are you doing gdcj?
 
@Dennis Okay. Sorry. Won't do again.
 
@aditsu Not planning to - it's at a pretty late time and I'm not good at distributed code. GL if you're going for it though :)
 
I see, thanks
 
11:33 AM
What in the world, there's an area51 proposal for memes
 
Well, it could actually be pretty useful, if taken seriously.
 
would it include twitch emotes?
 
I suppose it's a type of Meme.
See: :kappa:
 
Everything is a meme, even "everything is a meme" is a meme :-)
 
Okx
Jan Dvorak is a meme.
 
11:44 AM
That's a fact.
 
12:02 PM
:D
Google loves me!
 
Okx
well done
 
I have no idea what I did but yay
 
Are you playing it?
 
yep
it's got a time limit apparently
 
48 hours, from what I've researched
Are you able to do the challenges?
 
12:08 PM
yeah
the first one's easy
 
everyone here could do it
 
How do you get that?
 
I think it's semi random based on your search terms
 
it doesn't work if you directly go to the link
 
12:11 PM
I've tried before :P
 
I am madly searching programming-related terms right now :P
 
:P
I just searched itertools :P
 
how many questions are there?
 
I don't know
I've got to request them
 
@muddyfish In your About me, shouldn't it be far too long rather than far to long?
 
12:21 PM
@Arjun Fixed :D
I hate that it doesn't give detailed errors though
Apparently it wasn't giving me the type I thought it was
Spend 15 minutes trying to work out why it was giving me a random TypeError
And there are 5 levels
What sort of non disclosure are they trying to get?
 
 
1 hour later…
1:52 PM
@muddyfish I just discovered that this is a way to get a job at Google, not a game!
 
@EriktheOutgolfer It's both
 
I just went to google.com/foobar and it says that I must've logged in before to log in
 
It did that to me before but now I think I can sign in because I've done the first level
 
it seems that you must be constantly searching for programming terms to gain access
like not only once but for weeks or something
 
Well that's kind of normal
 
1:56 PM
it's probably done that way to prevent spam
 
@KritixiLithos spam workers at Google?
 
no, but people spamming foo.bar to try to get a job
 
2:37 PM
I've been Googling programming terms for at least 3 years, but I think it doesn't show the foobar thing because I'm under 18.
 
I've got 2-3 years, but Google thinks I am over 18
 
0
Q: Name the Hadrons

Beta DecayChallenge Given a quark composition of a particle as input, output the corresponding hadron's name. Quarks will be represented by a capital letter and antiquarks by a lowercase letter. The quarks may be in any order, not necessarily the order given below. Built-in functions the access data ab...

 
uh the question doesn't specify if it is allowed to read from the internet
 
@totallyhuman it's a standard loophole to do so.
 
reading from the internet is a
ninja'd
 
2:44 PM
CMC: Find any one time Jelly was beaten by what could be considered a practical language.
 
Okx
@Phoenix No.
 
You jelly?
 
...that's... what
 
Practical means not-codegolfing, or really practical?
 
Okx
Probably pratical as in used in the workspace
 
2:47 PM
Either that, or intended to be practical e.g. Chedder.
 
@Phoenix Does vim count?
 
Does APL count?
 
IMO yes
 
Okx
Found one.
40
Q: Be the First 1 (leave only the first Truthy)

AdámIntro Every year, Dyalog Ltd. holds a student competition. The challenge there is to write good APL code. This is a language agnostic code-golf edition of this year's eighth problem. I have explicit permission to post this challenge here from the original author of the competition. Feel free to...

 
@Okx well done
 
2:54 PM
Here's another:
20
Q: Find the indices of values in one list in another

Stewie GriffinYou must take two lists of positive integers as input, let's call these n and m. You may assume that: All integers in n are part of m All integers in m are unique The lists are non-empty Challenge: Return the indices of where you find the values in n, in m. That might be confusing, but I t...

 
Cool
 
Okx
@KritixiLithos get ninjad :P
 
Forgot APL was a thing that exists.
 
CMC: divide Q into two dense subsets of your choice. Write a program to determine whether a given rational number (numerator, denominator) is in one set or another, producing consistent output. Prove that your two subsets are dense.
 
example?
 
2:57 PM
you need to find it.
it's more of a math challenge though
 
a->b->(int)a/b==0
 
I mean you could technically do something like 2|⌊ 2 mod the ceil of the number
 
@KritixiLithos not dense
@Phoenix not dense
 
The two subsets being numbers which when floored yeild an even integer or an odd integer.
 
->n,d{d%2}; to find a limit in even-denominator fractions, perform a binary search; to find a limit in odd-denominator fractions, perform a ternary search.
 
2:59 PM
@LeakyNun 1.2, 1.02, 1.002, 1.0002 all fit in the same subset
 
@KritixiLithos do you know what dense means?
 
not in terms of sets
 
@JanDvorak well done
 
Apparantly not.
 
CMC: given n, return the n-th decimal digit of an irrational number of your choice.
 
3:01 PM
@Phoenix A is dense in B iff for every element b in B there is a sequence of elements in A that converges to b
 
@KritixiLithos @Phoenix if a set S is dense in X, then every point in X is either in S or a limit point of S.
 
@LeakyNun ->n{n.to_s[/^10*/]?1:0}
 
@LeakyNun I think lD is a valid vim/V solution
(returns the first digit of N)
 
you're joking right?
 
well done both
 
Okx
3:03 PM
@DJMcMayhem You sure that's irrational?
 
@Okx yes it is
 
@Okx it changes digits less and less often
 
Okx
05AB1E, 3 bytes: žs¤ nth digit of pi.
 
That's really clever.
 
@Okx can be shorter using DJ's method
 
3:04 PM
@Okx Yeah. .123456789111...222...333....... it doesn't repeat cause each time it comes back to 1 it'll repeat each digit ten times as long.
 
Port of DJ's solution: ->n{n.to_s[0]}
 
@Okx do you know what irrational means?
 
I think that (DecimalDigits@N[Pi,#])[[#-1]]& should work.
 
Okx
Yes, digits going on forever
 
I'm really proud of my solution. :)
 
3:05 PM
hmmm
 
@Okx hint: irrational doesn't mean it doesn't have a nice pattern
 
hmmmmmmmmmmm
 
Port of DJ's solution in APL: ⊃⍕
 
@DJMcMayhem it's nice
 
@DJMcMayhem what does lD do (hint: nothing)
 
3:05 PM
people, stop porting solutions.
I would prefer longer solutions over boring solutions
 
@EriktheOutgolfer One char to the right, delete the rest
 
I don't think that was supposed to mean that you get the irrational as input though...
 
@EriktheOutgolfer what?
 
@Phoenix Fails in Mathics because it tries to coerce Pi to a standard floating point number for reasons.
 
->n{2**n%n%10} - I think it's irrational?
 
3:07 PM
oops, @DJMcMayhem it doesn't work for single digits
 
It doesn't. If the input was 11 for example, it'll delete the second one and print 1
@LeakyNun Yeah, I just realized that now. :(
ñlD should though (not tested)
No, wait I have a better solution that'll work in vim too: xVp
 
nice
 
Dyalog APL, 2 bytes: ⍴⍕
Stringifies argument, then gets its length
 
Nice
 
Can be shortened to just if the argument is a string instead
 
3:09 PM
You know how git opens a text editor if you don't specify a commit message in args? That was my friend's first experience with Vim. Somehow. Has not been able to exit yet.
8
Should I help
 
@LeakyNun Nice CMC btw. :)
 
@LeakyNun Pyth: e. Input mod 10.
 
@JanDvorak I tend to believe that it works, although I cannot prove it.
@Doorknob nope. It is rational.
 
It is?
 
It is.
it repeats with a period of 10
 
3:11 PM
Oh, wait, yeah.
 
@DJMcMayhem thanks
 
Someone should do it in brain-flak
@KritixiLithos Wouldn't that return a two or more digit number if the input is greater than 999999999?
 
@KritixiLithos you think they do? ;)
 
1
Q: #Rotate the Roots

flawrGiven a nonzero polynomial with integer coefficients and roots that are on the imaginary and on the real line such that if a is a root then so is -a, return another polynomial with the roots rotated by 90 degrees. Details The polynomial can be given in any reasonable format, e.g. as a list of c...

 
@DJMcMayhem oh, um, then take the modulo 9 of it: 9|⍴∘⍕
 
3:16 PM
@Phoenix nah, he'll/she'll figure it out one day
 
@LeakyNun Brain-flak port, 7 bytes: ({}<>)
Surprisingly short
I'd love to see a pure arithmetical solution though
 
require'prime';->n{n.prime?}
 
@JanDvorak well...
 
How do you know that it's irrational? ;)
 
3:20 PM
@betseg left as an exercise for the reader
 
@betseg if it were rational with period p, then it would mean that there exists a and b such that an+b is prime for all n.
Then, pick a number co-prime with a.
 
this could make an interesting challenge on PPCG
 
people would just take the first digit.
 
too broad
 
oh right, it wouldn't encourage unique solutions
 
3:27 PM
I don't think it would be too broad.
 
Proposal: use CPC for chat popularity challenges and CGC for chat golf challenges
 
And CCC for chat code challenges?
 
@JanDvorak Closed as unclear
 
@muddyfish what d