« first day (2397 days earlier)      last day (2445 days later) » 

11:01 AM
@HyperNeutrino close it and rewrite it
 
why is tio.run not working?
 
Working fine for me
 
@Emigna huh, strange. It's back up
 
@dzaima Why isn't SOGL on tio?
You didn't want to bother Dennis with pulls or something?
 
11:16 AM
CMC: Given positive integer n, return number of n-tuples of non-negative integers whose dot product with (1,2,...,n) is n.
 
Pyth doesn't have dot product :-/
 
@Mr.Xcoder I guess now SOGL could be added to TIO as I don't plan on making more everything breaking features and the developments slowed down a lot. But the bigger problem is that Dennis couldn't get Processing to run on TIO
 
Correct me if I am wrong: The dot product of two lists is the sum of the product of corresponding elements. For instance $[a,b,c] \cdot [e,f,g] = ae+bf+cg$ (not sure about the notation)
 
@Mr.Xcoder yes
 
11:21 AM
@LeakyNun Test case?
 
@Mr.Xcoder don't have any now :)
 
The CMC can easily become a main challenge, as it's not trivial
CMC: Given an integer $n$ and a list $x$, sum the products of each element in the list with $n$
3, [1,2,3] -> 18
 
@Mr.Xcoder Pyke, 2 bytes: s*
 
Nice
 
literally lambda a,b:a*sum(b)
 
11:27 AM
@Mr.Xcoder a bit older version of SOGL would be ∑* but I broke recently
 
@muddyfish I know the format I should put them in, but I wonder why in the world this outputs... what it outputs (pyke.catbus.co.uk/…)
 
@Mr.Xcoder jelly, 2 bytes: ×S
 
> I know the format I should put them in
@muddyfish I am just asking you why that outputs... that?
Wow, all the starboard messages contain either popcorn or popcon
 
s when given an integer argument returns the element name in the periodic table: 0 -> H, 1 -> He, 3 -> Be
 
11:30 AM
Oh... Chemistry built-ins :)
 
@muddyfish yeah maybe consider 1-indexed instead? periodic table is 1-indexed
 
The dictionary has pokemon as well :P
@EriktheOutgolfer I was thinking about that but I wasn't sure which would be more useful
 
After I finish Cthulhu (I doubt I'll ever do), I'll make a language with chemistry and physics specific built-ins
 
O_O
 
11:34 AM
Who wins for most useless builtins now?
 
wait is Nidoran♀ a real pokemon name?
 
@muddyfish Why isn't Pikachu ifrst?
 
@EriktheOutgolfer Yes. They're a different species
@Mr.Xcoder Because Pikachu is #25
 
@muddyfish and why that unicode char at the end?
 
@muddyfish ಠ_ಠ
 
11:36 AM
More useless builtins... Date of the next full moon
@EriktheOutgolfer Because it's showing gender
 
@muddyfish ಠ_ಠ
... And you didn't have prefixes
 
@muddyfish is there a female one too?
 
@EriktheOutgolfer yes?
 
wait what's the builtin for pokemon? ~_?
or ~{?
 
@EriktheOutgolfer It's doing a lookup in the dictionary for a word. Basically ~_ stores the offset for pokemon and ~{ the number of them
 
11:40 AM
maybe add "date of next eclipse" too?
 
:P
That would need a location as well
 
then why not make a "get current location" builtin?
 
@EriktheOutgolfer I don't want to have to do internet stuff just for that :P
And it wouldn't work online well
 
oh you have disabled internet access online?
 
@EriktheOutgolfer There aren't any commands that send requests
 
11:54 AM
> Alchemical symbol for urine: 🝕
 
@Mr.Xcoder APL: +.×
 
HEY SO MANY FLAGS!!11
ok 8 FLAGS isn't something I've experienced before
 
How do I create olympiad combinatorics simulator in python ? e.g To solve IMO 2010 P5 (See here), you create a python applet like this: where you can push buttons and gain intuition ?
 
Um what's a good section of unicode to use for parameters
 
11:58 AM
 
I need like 8 or so
 
I don't think the chat room noticed the swarm of 10k users yet
 
@Mr.Xcoder Fortress: × (I think. Difficult to test.)
 
Anybody used tkinter ?
 
@AlexKChen I've used it before though I'll probably be off eating soon
 
12:08 PM
Okay, so is it sufficient for my use ?
(Check my post just a bit above)
 
I think so?
 
Also, can I code most of Simon Tatham's game there ?
 
I'm not too sure what you want to do but it's pretty good for that sort of thing
@AlexKChen I don't know of it. It's event oriented so it's pretty hard to do stuff that isn't based on user input
 
halp how uninstlal pip
 
@LeakyNun 1. install windows
 
12:18 PM
@StepHen I'm already on windows
 
@LeakyNun why would you want to do that?
 
@muddyfish to reinstall
 
@LeakyNun pip install --upgrade pip
 
@muddyfish tried that doesn't work
so i want to give it a fresh start
 
@LeakyNun easy_install pip
that worked for me when the above didn't
 
12:19 PM
@LeakyNun sudo apt install python3-pip for python 3
 
@EriktheOutgolfer I'm on windows
 
found python -m pip uninstall pip setuptools online
 
@StepHen nope, that doesn't work
 
@LeakyNun did you try easy_install?
 
@muddyfish yes, it worked like a charm, thank you
 
12:29 PM
It warms the cockles of my heart when I get a bunch of upvotes on a Java answer
 
12:40 PM
@muddyfish Are you here or gone to eat ?
anway, in python 2.7.9:
import Tkinter
top = Tkinter.tk()
Should create a blank new box, right ? But nothing is happening.
from Tkinter import simpledialog
Is showing an error.
Why ?
Anybody ?
 
Have you tried top.mainloop()
And IIRC you need a Tkinter.Tk not a Tkinter.tk
 
1:00 PM
What is the policy on stealing a challenge? Like for example, this OP doesn't seem to fully grasp the aim of this site and in the case he never returns I would like to see it become a properly structured challenge. What do?
 
2
Q: Maximize combined value of 4 neighboring cells on a hex grid

neuviemeporteYou are provided with an MxN array of values which represent cells laid out on a hex grid in a way that the first hex cell in a row is always connected to the second with its lower right side. For example, this 5x3 input array: 300 410 150 55 370 120 185 440 190 450 165 70 95 420 50 rep...

 
@LiefdeWen if it's from off-site it needs a reference to where it came from
 
1:19 PM
If it's on-site like in this case?
 
@LiefdeWen oh edit it
 
It seems like they want a code-challenge?
 
Then we are gonna be left to decide what OP wanted, and then when we argue, who resolves it?
 
@LiefdeWen look at most recent edit
 
I saw, lets hope OP stays around
 
1:25 PM
it seems like it has been copied without attribution
that is because two numbers are the first line of the input
 
If he has these many test cases ready I don't think so
 
who's to say that he hasn't copied the testcases?
 
this is very strange
I'm clicking this button and it acts as if that button has been clicked
from tkinter import *
from tkinter import ttk
root = Tk()
root.title("IMO 2010 Problem 5")
mainframe = ttk.Frame(root)
mainframe.grid(column=0, row=0, sticky=(N, W, E, S))

coins=[]
for i in range(6):
	coins.append(IntVar())
	coins[i].set(1)
buttons1 = []
buttons2 = []
states = [['disabled'],['!disabled']]

def operate(a,b):
	print(a,b)
	temp = coins[b].get()-1
	coins[b].set(temp)
	if temp == 0:
		buttons1[b].state(['disabled'])
		buttons2[b].state(['disabled'])
	if a == 1:
		temp = coins[b+1].get()+2
can anyone with python 3 confirm that the buttons on each row act the same?
@EriktheOutgolfer
 
@LeakyNun they're acting somewhat weird
 
@EriktheOutgolfer Seems like so, this 62 days ago contains the same test cases
 
1:31 PM
@EriktheOutgolfer does my description match?
 
there isn't any "description"?
when I click any button the two buttons on the 4th column get disabled
 
@EriktheOutgolfer ok, thanks
 
on every button click the fourth number gets decremented
and the fifth number acts weird
actually when I click on a 1 the fifth number gets incremented by 2 and when I click on a 2 the 5th and 6th numbers get swapped
 
0
Q: Tkinter bug: button on the same rows coalesce

Kenny LauI have tkinter_sandbox.py: from tkinter import * from tkinter import ttk root = Tk() root.title("Tkinter bug?") mainframe = ttk.Frame(root) mainframe.grid(column=0, row=0) buttons = [] for i in range(3): buttons.append(ttk.Button(mainframe, text="1", command=lambda:print(i))) buttons[...

@EriktheOutgolfer ^
 
yeah saw that one
oh I think I found the issue
 
1:41 PM
@LeakyNun solved
 
> command=lambda:print(i)
 
what is the issue?
 
they all print the value of i, which is 2 by the time you call root.mainloop()
 
@EriktheOutgolfer oh my god
please make that an answer
 
It already has 2 answers
 
1:44 PM
@muddyfish oh, ok
I'm not sure which one I should accept
 
The other one was 4 seconds earlier :P
And thanks for giving me the create tag synonyms privilege :D
hit 2.5k rep from that
 
I am conflicted: S8+ or Google Pixel XL? Any owners of one of them here?
 
And closed as a dupe :D
 
@mınxomaτ I have the Pixel XL and like it a lot.
 
What did you have before? What do you like about it?
 
1:49 PM
My old S7 and S5 had a bunch of problems, but that might not apply to the S8
 
hint: S8 battery === Note 7 battery
 
The fingerprint scanner on the back is way cooler than I thought it would be. I thought I would miss a physical button on the front to turn it on, but you can double tap the screen to wake.
 
I currently have an S7. Before that a Note 3. If it was available in the EU, I would buy a Note 7 Fan Edition (the non-exploding one). Not because I like Samsung, but it never really let me down. The Pixel is in my list because of latest stock android without flashing (my banking app doesn't work on custom ROMS). I ran the first Google Pixel ROM on my S7.
 
The battery is pretty good. I use it heavily throughout the day and occasionally have to charge it after 12-14 hours.
 
@Riley Oh neat. How snappy is the UI? Compared to the S7 that is.
 
1:53 PM
Its performance is significantly better. I've never noticed anything taking longer that it should.
 
@LeakyNun You wrote the Combo P5 applet ?
Is it this ?
 
@Riley Alright, Pixel it is.
 
@AlexKChen no
go to the mathematics chatroom
 
Hell hell hell.
My luck is bad.
I just uninstalled 2.7.9 and installed 3.6 because tkinter wasn't working there.
 
I don't know how you plan on buying it, but I got mine from Verizon and it basically came with a Google Home for free. It wouldn't hurt to look for something like that.
 
1:58 PM
3 hours ago, by Leaky Nun
CMC: Given positive integer n, return number of n-tuples of non-negative integers whose dot product with (1,2,...,n) is n.
I suspect that the g.f. for this is 1/(1-x)(1-x^2)(1-x^3)...
 
@mınxomaτ I like that it uses USB-C, but if you already have a bunch of old chargers it's something to think about.
 
All my things are USB-C
 
@LeakyNun Thanks !!!
 
@AlexKChen no problem
 
(Anway, why there is two buttons for box 5 ?)
 
2:01 PM
@AlexKChen the second one is always disabled
 
I know I'm late to this conversation, but I've got a pixel also and I love it
 
I just added it for completeness
 
Looks like the S8 uses USB-C too. I didn't even look at it because I knew I didn't want a Samsung.
 
@Mr.Xcoder which makes it equal to the partition number...
 
don't most PCs/motherboards these days come with a USB-C port on them anyway?
i know mine does
 
2:02 PM
I've never seen one.
Not even sure why that would be useful
 
@NickClifford Do you mean USB 3?
 
@NickClifford Most MSI mobos have USB-C
It's getting very common (like it should)
 
TIL
@mınxomaτ Why would you want to plug a USB C into a Mobo?
 
I have a Xiaomi Mi Air and HP Spectre x360, both are USB-C
@DJMcMayhem Because it's the next USB standard? Many external things (e.g. an external HDD I have) have USB-C connectors.
For professional audio interfaces, USB-C devices carry Thunderbolt. Now you can connect all Thunderbolt things via USB-C.
 
But why wouldn't you use A to C is more why I'm confused
 
2:06 PM
@DJMcMayhem iirc, you can get external SSDs that use USB-C since the transfer speeds are better than standard USB-A
 
@DJMcMayhem Having four standards (USB 1, 2, 3, 3.1, 3.1 + Thunderbolt) on USB A is a very bad idea. This just confuses the average consumer. USB-C is the new shiny thing were all other new shiny things are connected.
For what it's worth, MSI's USB 3.1 motherboards usually have both a USB A and USB C connector for USB 3.1
 
@DJMcMayhem And it's reversible. I didn't know they were doing this, but I like it.
 
i think part of it is also manufacturers trying to encourage adoption of USB-C
 
@mınxomaτ oh hey I have an x360 too :D
 
especially after the new MacBook Pro came out, USB-C really is starting to become more mainstream
 
2:10 PM
@ASCII-only The old one or the 2017 Thunderbolt one?
 
@Riker 11/10
 
@mınxomaτ the old one lol my parents only got it because it was the display model
 
With regards to this, if his winning criterion would be the "the program with the smallest space complexity wins", would that be fine?
 
I actually had the option to upgrade to the new one but it was kinda pricey for not enough improvement
 
So that might be a stupid question but… how can Android choose Oreo as the next version name when "Oreo" is already a brand they don't own?
 
2:15 PM
0
Q: Code-Golf Assembly Line

Julian LachnietNote: This challenge has nothing to do with actual assembly language. As the head of Code-Golf Factory Inc., you must create an assembly line to generate a specific piece of code. Today, the foreman has asked you to produce quines. So, what is an assembly line? Simply, it's just a piece of co...

 
@Fatalize iirc, they licensed the name
I think they did the same thing with Nestlé and Android KitKat
 
I see
Advertisement in an OS name is a pretty fucking stupid idea if you ask me but whatever
 
shrug
 
@LiefdeWen well in challenges line this we normally measure speed with a black box function that counts cell accesses
@Fatalize it's not advertisement
 
second paragraph of this article
 
2:16 PM
It sure is
 
it's kinda an advertisement
 
It's just... What other sweets can you think of that start with O
 
" Oreos are pretty much as universally beloved as a cookie can be"
TIL universally means "In the US"
 
Well I guess, but not exactly intentionally
 
@Fatalize I can't eat oreos :(
 
2:17 PM
(whoops double-post)
 
@ASCII-only I don't quite understand what you mean
 
@Fatalize wait it's not the case anywhere else?
 
@Fatalize to be fair, you can find tons of them in China and the like
when I went there on a trip, I saw lots of different Oreo products in the grocery stores
 
@ASCII-only Oreos exist in France but they are very very far from being popular
 
^
(oops caret reply)
 
2:19 PM
@LiefdeWen also wth this is the place to go for fastest code and complexity golf too, not CR
 
@ASCII-only "fastest coffee"
 
@NickClifford yes
 
Is there a way to convert from an ulong to a double in D without pointer casts?
 
@NickClifford it's like Nescafe vs Nescafe Zavance
@TuxCopter won't pointer casts change the value
 
yes I want to convert to and from the IEEE 754 repr
 
2:22 PM
@LiefdeWen re one of your comments: you know we only golf if it's tagged code golf right?
@TuxCopter so keep the value? Or not
 
So according to the starboard, Android 9 will be Popcorn
8
 
@Fatalize you mean Popcon
 
@ASCII-only I want to get the binary representation of the float
 
@Fatalize Android Orville Redenbacher's
 
@TuxCopter oh ok
user image
12
Thanks a lot Google
 
2:25 PM
lol
Oh I can use an union
 
CMC: print 1514131211109876543210151413121110987654321015141312111098765432101514131211109‌​876543210151413121110987654321015141312111098765432101514131211109876543210151413‌​121110987654321015141312111098765432101514131211109876543210151413121110987654321‌​015141312111098765432101514131211109876543210151413121110987654321015141312111098‌​765432101514131211109876543210
 
Pyth: "151413121110987654321015141312111098765432101514131211109876543210151413121110‌​9‌​876543210151413121110987654321015141312111098765432101514131211109876543210151‌​413‌​1211109876543210151413121110987654321015141312111098765432101514131211109876‌​54321‌​01514131211109876543210151413121110987654321015141312111098765432101514131‌​2111098‌​765432101514131211109876543210
 
@ConorO'Brien with newlines?
 
no
I don't know why those are there
 
2:35 PM
@ConorO'Brien SOGL, 8 bytes: 8«δ№∑8«*
 
@LeakyNun what?
 
What is the significance of that number?
 
@dzaima :o nice
 
@ConorO'Brien Pyth, 9 bytes: *16jk}15Z
 
2:38 PM
Damir 11 bytes in Charcoal
 
hmm, is it 14 or 16?
 
Idk
 
it should be 16
 
how many times does it repeat?
 
@Fatalize that's not a dessert :P
 
2:41 PM
Well I'd argue that Oreos aren't a dessert either
 
...fair point
ok how about popcorn isn't sweet
that's a good argument, i think :P
 
caramel corn?
kettle corn?
 
But it gets Google money so that's probably all they care about
 
@Fatalize then why didn't they name every version after something that could get them money
 
@ConorO'Brien Braingolf, 23 bytes Try it online!
Bonus: Includes >.<
 
2:44 PM
Android Pepsi™, coming to you soon
 
(not sweet) alpha, beta, (sweet) cupcake, donut, eclair, froyo, gingerbread, honeycomb, ice cream sandwich, jelly bean, kitkat, lollipop, marshmallow, nougat, oreo
 
pancake
 
"ice cream sandwich" is so stupid
 
i dunno why i remember this stuff but i don't remember half the math formulae i need
@Fatalize D: what do you mean
 
it'll either be popcorn or pancake
 
2:46 PM
That's 3 words for a version name
 
but surely the awesomeness of ice cream sandwiches overrules that
 
@totallyhuman So we'll have Android Sugar for S then?
 
@Mayube Charcoal, 28 bytes tio.run/##S85ILErOT8z5/…
Yay for... LZMA I think that is?
 
wait what will happen for android 27
aalpha?
 
2:50 PM
1 min ago, by totallyhuman
 
@TuxCopter they'll use the 27th letter of the alphabet, obviously
 
Yay LZMA it's actually useful for once :P
 
@ConorO'Brien jelly 6 bytes ⁴ḶṚẋ⁴V
 
I should implement implicit compressed string literal ending sometime
 
you mean compressed string literal?
 
@ASCII-only &
calling it
haha i was right
 
so it will be Android &?
 
So maybe Android Wyg&
 
no sweet food name starting with &...
 
2:54 PM
Android m&m
 
yet
 
Then @kins
stops referencing super obscure book with weird names
 
"Extra " bubble gum?
@ASCII-only Some listings of the Hebrew alphabet end with ﭏ which is a ligature of א and ל.
 
@Adám i can see half of the first letter but i don't see a trace of the second one
 
There's a bar on the top left of the letter
 
2:58 PM
I'm making a new language called 'IMO' ("Input, Math, Output")
 
== Translingual == === Symbol === ﭏ Ligature of the letters א‏ and ל‏, mostly used in writing or typesetting Judeo-Arabic and Ladino, but sometimes also used for Hebrew....
 
> Stupdily
 
That page title is messing with firefox
 
@Adám so it means God?
 
@totallyhuman Yeah, in sans-serif it is a bit hard to recognise, but in serif, the trunk of ל‏ is pretty distinct.
@LeakyNun No, it is just a ligature.
 
3:00 PM
@Adám ah right, fonts
 
@LeakyNun The two consonants א‏ל‏ do not have real meaning without vowels. With vowels, they can mean such distinct words as god or to.
 
@Adám I see
 
TIL (while researching potential notations for APL matrices etc.):
The use of triple parentheses or triple brackets, also known as an (((echo))), is an antisemitic symbol that has been used to highlight the names of individuals of a Jewish background. The practice originated from the far-right blog The Right Stuff; the blog's editors have explained that the symbol is meant to symbolize that the historic actions of Jews had caused their surnames to "echo throughout history." The triple parentheses have been adopted as an online stigma by antisemites, neo-Nazis, and white nationalists to identify individuals of Jewish background as targets for online harassment...
 
OEIS is back to hydrocarbons ಠ_ಠ
 
(((Adám)))
 
3:10 PM
@Adám Bad news for Brain-Flak
 
TIL Brain-Flak is actually antisemitic
 
TIL though, never heard of that
 
(((((())))))
 
(((me)))
 
3:43 PM
@LeakyNun What did you mean by which makes it equal to the partition number...?
 
@Mr.Xcoder they are the partition number
 
they who?
 
the CMC earlier
solutions of a+2b+3c+4d+5e+...=n
 
Oh, yea, forgot about that
 
Is it permitted to browse a user's posts page and upvote solutions that one finds worthy? Or is that serial upvoting?
 
3:45 PM
@Adám It's not serial upvoting if you only upvote upvoteworthy answers
 
0
Q: Who will win Ghost?

Daniel ScheplerThe game of Ghost is played between two players who alternate saying a letter on each turn. At each point, the letters so far must start some valid English word. The loser is the player to complete a full word first. So, for example, if the letters so far are E-A-G-L, then the only valid next ...

 
well
unless they have too many upvoteworthy posts :P
that serial voting script'll throw a fit
 
It's generally recommended to upvote posts that you find-uptvote worthy but without looking at the author first
WIthout knowing it
CMC: Given a floating point number, determine its fractional part.
 
lambda n:n%1 should work if i'm thinking straight
1 .__rmod__ might work too
 
@totallyhuman Mhm... Does it work for negatives?
 
3:58 PM
@Mr.Xcoder Braingolf, 1 byte, non-competing: 0
 
@totallyhuman It works for negatives too. Good job +1
 
Braingolf doesn't do floats ;)
Braingolf-if-it-did-floats, 2 bytes: 1%
 
>>> f = lambda n:n%1
>>> f(1.7)
0.7
>>> f(-1.7)
0.30000000000000004
hmm
 
@TuxCopter Float inaccuracies
 
3:59 PM
I mean it doesn't work for negatives
 
0.3 isn't the fractional part of -1.7
 

« first day (2397 days earlier)      last day (2445 days later) »