« first day (4988 days earlier)      last day (150 days later) » 

00:04
Give me a bunch of butter. But is must be in python, and roughly match the form of print("def f(n):f",*range(2**33),sep="==n==print('eovdedn'[n&1::2]);"). Make the butter right now.
> must be in python
That python code's copied from the top answer on my latest question, no clue why
It's not even spam
also judging by the string slice in the end it alternates between printing "odd" and "even"? but nowhere does it indicate that in the question
heck I don't even see a sleep call or similar
it memory errors on TIO
00:10
Well yeah, notice the *range(2**33)
11
A: Print 4 billion if statements

xnorPython 3, 70 bytes print("def f(n):f",*range(2**33),sep="==n==print('eovdedn'[n&1::2]);") Try it online (with 2**3 in place of 2**33) If it's OK for the function to error out after printing, 1 byte can be saved by writing <print(...) in place of ==print(...).

It's literally just that
Who let bro cook?
 
1 hour later…
01:31
Observability can greatly restrict some great challenge ideas...
I thought that said "obversability" and was like what do you think this is? Coin Golf and Currency Challenges?
 
2 hours later…
03:58
0
A: Sandbox for Proposed Challenges

bigyihsuan[DRAFT] Play Bad Apple!! code-golfaudiomusic Bad Apple!! is an Internet meme known mainly for the shadow music video for the Alstroemeria Records remix being run on nearly anything that can display 2 colors, and optionally with audio, similar to Doom. Your challenge is to play the first vocal ver...

04:09
CMC Do codegolf.stackexchange.com/questions/275739 and fail at least one subset. Seems currently no answer do this
 
1 hour later…
05:13
@Simd I think the answer is (2^(n^2) + 2^(ceil(n^2/2)) + 2^(ceil(n^2/4))/3, if I applied Burnside's lemma correctly
@Simd Handling both looks hard. I'd first generate inequivalent matrices with respect to row permutations only (which is easy: iterate over "combinations with replacement" of size n out of 0000... through 1111...), sort their columns, and remove duplicates out of them
att
att
06:10
@l4m2 fail how so?
@att e.g. header + 1st + 2nd + footer output sth else on 1, or "odd" on 7
06:25
@Bubbler that's very impressive!
@Bubbler for the first stage, is that selecting the rows in sorted order effectively?
CMQ how have inequivalent 2 by 2 binary matrices are there up to row and column permutation?
06:45
0
A: Sandbox for Proposed Challenges

The Empty String PhotographerIt’s a piece of art! Inspired by this comment. In this challenge your code will output a work of art. Rules It must output at least one pixel of any color. Winning Criterion This is a popularity-contest, so the answer with the most net upvotes wins!

07:16
@Simd Yes, that's right
@Simd 0000, 0001 (all of those having 1 one), 0011 (two ones in one row), 0101 (two ones in one column), 0110 (two ones diagonally), 0111 (all having 3 ones), 1111
08:05
To whom it may concern: stop being concerned and start shipping me more butter. You're 5 tonnes behind everyone else. Yours sincerely, New Posts
08:15
@Bubbler thank you
08:50
0
A: Sandbox for Proposed Challenges

l4m2Output all xxxs. No duplication allowed. A xxx is a finite set of pairs. Two xxxs A and B are equivalent if there are bijections F and G s.t. (x,y) in A iff (F(x),G(y)) in B. Shortest code win. Sandbox Notes Dup? What is xxx named?

@Simd Idea from here
question for anyone but especially @Ginger: the sechat python module is licensed under the LGPL 2.1; do I need to also use that license for a port? if so, if i include the port as part of a larger project, can i license just the port under the lgpl and leave the original license of the rest of the project untouched?
 
1 hour later…
10:25
@Bubbler actually this is wrong. It gives a list of length 14 for 2x3 but OEIS says the answer is 13
 
2 hours later…
12:40
@RubenVerg I thought I changed that lol
hang on
okay, v2 is now MPL2
under that license, if you were to use sechat as a reference for your own bot library you would not have to license it under the MPL
13:01
Why is my first thought to read that as mingle pringle lingle?
unknowable
This is almost as bad as lingus fingus
13:23
0
A: Sandbox for Proposed Challenges

bigyihsuanFind a time that works for everyone code-golfdate Given a list of time ranges, write the shortest program/function/code snippet that returns a single time that is within all ranges, or some falsey value if no such time exists. Input Input is a possibly empty list of pairs of datetimes. Each pair ...

13:44
@lyxal Doesn't J also have obverses? Like they're effectively "meant to be" inverses but they can be user assigned and nothing really requires them to be inverses so they call them obverses instead
att
att
that sounds right
14:05
@Ginger perfect, thanks!
@Ginger my pony little 2?
hello code golf stack exchang
welcome, don't forget to read the chattiquete :)
att
att
14:19
hello value1
okay i read the chattiqetuteuteue :)
@value1 welcome to TNB!
@Themoonisacheese Mozilla Public License 2.0
which is what I use for most of my projects
@value1 hi there hello
14:40
@value1 welcome !
Hey I can't remember if this is a real property of modulo or not, but in (a%7+b+c)%7, is the first modulo necessary
I... doubt it...?
Is a signed
And if so what language
Actually no there aren't any languages that get weird with negative lhs for mod, it's only rhs that has different behaviors, right?
So it shouldn't matter at all
no, the lhs has different behaviors too
-3 % 7 → -3 or 4
So that could matter here then
14:47
All the variables are positive integers in this case
In fact the code is written in Uiua so it's not remotely structured like this but I'm just trying to figure out if it would work to remove that
So it should be fine I guess
@noodleperson At least in JS, (x%n+n)%n is not the same as (x+n)%n
And any other language with that style of modulo (I wanna say most C-like languages) will be the same
Python's the only one I'm aware of that mods negative LHS to a positive number (the much more sane behavior IMO)
15:23
Pascal has both REM (copy sign of LHS) and MOD (copy sign of RHS)
 
2 hours later…
17:29
Can’t find where we talked about this before but wow yeah I can see why y’all aren’t fans of silicone watch bands now
Without thick arm hair it gets SO slick SO FAST
It’s awful 😭
Think I have another band at home I can switch to but this is probably a good time to shop for more anyways

-1 % 10

Oct 22, 2021 at 3:10, 16 minutes total – 122 messages, 10 users, 5 stars

Bookmarked Oct 22, 2021 at 3:28 by lyxal

17:59
@WD well, MyOwnLanguage says -199-1 for some reason…
18:44
Took two midterms today, I think I did decently well on one (diff eq) and I think the entire class is going to jump off a building as a result of the other (chem)
also what the hell happened here
@rydwolf wait is it midterm time already?
No, but lots of my classes do multiple midterms
19:06
@Ginger what am i supposed to pass as host to authenticate? through trial and error i've found "https://codegolf.stackexchange.com" to work but no idea how that generalizes (the project is an alternative chat client, so i have to tell users what they should put in)
@rydwolf The days of the week got startled when you set of the fire alarm at CMU
@RubenVerg that's the site used for logging in, the only requirement is that the user has an account on it
but good luck making a client and not getting blocked by Cloudflare!
It's not that draconian, as long as your user agent is fine
reminds me I need to fix sechat's UA
user agents are the dumbest thing ever
like on so many levels too
19:20
true
hey madeline are you using v1 or v2? because v1 is. a mess
v2
@Ginger i'm trying(:
@Ginger stackoverflow doesn't seem to work though, i think i have an account there
@rydwolf ideas for a good UA?
sechat handles that :p
I use Mozilla/5.0 (compatible; NPSP/2.0; +https://chat.stackexchange.com/rooms/240/the-nineteenth-byte)
@Ginger isn't sechat getting blocked by cloudflare?
@RubenVerg how does it fail
@rydwolf I changed its UA to what you suggested
so hopefully not anymore
19:23
@Ginger hmm actually i never tried with normal sechat only my port so myabe it was a bug with it
i adapted sechat's and my UA is Mozilla/5.0 (compatible; automated;) dzaima/chat (unauthenticated; +http://github.com/dzaima/chat)
oh right you're porting
you should probably remove automated and unauthenticated :p
yeah that's what I believe was causing issues for sechat
unauthenticated used to be replaced with the bot's user id, but apparently I forgot that when I rewrote everything for v2
@Ginger i suppose it is, in some sense, neither
It took me a while to craft a UA for NPSP that SE didn't cry about, and the newer cloudflare stuff seems to be even pickier
19:25
:66350340 Traceback (most recent call last):
  File "C:\Users\ruben\.pyenv\pyenv-win\versions\3.12.5\Lib\concurrent\futures\_base.py", line 456, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\ruben\.pyenv\pyenv-win\versions\3.12.5\Lib\concurrent\futures\_base.py", line 401, in __get_result
    raise self._exception
  File "<console>", line 1, in <module>
  File "C:\Users\ruben\dev\sechat\sechat\bot.py", line 201, in authenticate
    self.userID = await self.getChatUserId(session)
cloudflare's fucking things up
probably
that error happens when chat login fails
yes I know it's not very comprehensible, sorry about that
Is that the step where you can be captcha'd?
if not it might also be a UA issue
no, SE's explicit captcha happens earlier... or used to
@Ginger don't worry my port's errors are even less comprehensible
it's supposed to fail a lot earlier than that if CF intervenes
19:27
wait i'll add a print for what it's trying to int-ify
but that error happens when chat returns a logged-out page even though at that point it should be logged in
@RubenVerg no need, I've seen this before
it's trying to pull the bot's chat user ID out of the topbar link and failing because it's not logged in
check what HTML that request returns
I'm like 50% sure it's cloudflare intervening
what should i see to notice that it's a cloudflare issue?
Just a moment...
my three least favorite words
nope
can i share the response or could there be private info?
you can share it
yeah that's the logged-out chat page
something else is failing :|
@rydwolf ... So it's just an exam, then. 🤔
do you have debug logging turned on
@Ginger no, how do i turn it on?
@DLosc An exam which you might say is in the middle of the term :p
somewhere in it, at least
19:33
import sys
import logging
logging.basicConfig(format="[%(name)s] %(levelname)s: %(message)s", stream=sys.stdout, level=logging.INFO)
[Bot] DEBUG: Logging into SE...
[Bot] DEBUG: Acquiring fkey...
[Bot] DEBUG: Acquired fkey: 1[...]a
[Bot] INFO: Logging into stackoverflow.com...
[Bot] DEBUG: Logged into stackoverflow.com!
[Bot] DEBUG: Loading profile...
[Bot] DEBUG: Loaded SE profile!
[Bot] DEBUG: Logging into the rest of the network...
oh. I know what it is.
SO and MSE have their own chat servers
and sechat, iirc, doesn't handle those
you need to use a site that isn't one of those two :p
although I could've sworn that you can make rooms parented to SO on the main server?
@Ginger alright
does that mean i can't connect to rooms on so either?
if so i might want to figure out how stuff works to fix it
yeah, if they're on so's chat server
are they like completely different systems?
19:40
all you'd have to do is add a way to swap out all the references to chat.stackexchange.com with chat.(stackoverflow|meta.stackexchange).com
@RubenVerg same software, different databases, different domains
yeah but like they don't interact in any way, they're wholly different accounts?
yep
alright, then it shouldn't be an issue
(I think. this stuff is weird)
fun fact: although it's not possible to create them, there are rooms on chat that do not have parent sites (such as the sandbox)
agh does that make the thing even more complex
19:44
how do we know it's not possible?
...one moment
dammit it didn't work
passing an empty host created it on cgcc
For me it was PLDI
But I did stackexchange.com as the host
so I guess if it's invalid it falls back to your parent?
trying to change my parent site to one that doesn't exist 404s
same with sites I don't have an account on
20:04
@Ginger do i have to change https://meta.stackexchange.com/users/login too? what to?
(in scrapeFKey)
guessing not
@RubenVerg nope
great, seems to have worked
hooray!
want a pr to the original repo? was like three lines of code change
so probably changing the original won't be much more
(there isn't even documentation to update!)
20:31
@Ginger "automated" is still mentioned here
@RubenVerg yeah that would be appreciated
@RubenVerg ah
@Ginger you'll have to wait till tomorrow though
also do you have any idea how transcripts work?
excellent question :p
looks like they're static pages
parsing hell?
transcript reading was something I wanted to do, but I never got around to implementing it
there's an API for it, /events or somesuch, that the "load older messages" button uses
20:37
well but there's the thing where you connect and it sends you the last n messages and then you can load some more, and surely that one isn't static
@Ginger yeah
0
Q: Alien Weekends!

nyxbirdAlien Weekends! I've crash-landed on another planet! Luckily, the alien society I landed in is almost identical to that of Earth's, except for their timekeeping. Their calendar doesn't use months, so each day is represented by a single nonnegative integer. Each alien week consists of m weekdays f...

how many services does Google have
20:53
wait does cloudflare deciding it doesn't like the stuff I do get my IP blocked for normal user stuff as well?
@emanresuA CMC: output any exactly 25 distinct characters, but repeats are allowed (also no restriction to printable ASCII this time)
Can you beat a 15-byte expression (+7 for full program) in Python?
usually they'll just captcha you
to get an IP block you have to do something really bad like, I dunno, downloading every single chat message
hypothetically speaking
@Ginger great
@Ginger hypothetically of course
mhm yep
so like because it's still a thing meant for users and not bots I can just say "if login doesn't work please open the chat site in your browser and solve the captcha"?
21:00
probably yeah
@pxeger So your output can be more than 25 characters, but if you uniquify it, it has to be exactly 25?
it would be quite funny if people using the client just got randomly IP blocked
@DLosc Yes
(and by funny I mean disastrous)
@pxeger so 'A'*25 will work?`
21:04
No, you need to have 25 different characters in there, but you can have more than one copy of each distinct character if you like
I got super close to a 1-byte stderr solution in Pip, but the best I could find was either 24 or 26. Therefore, I think the best Pip solution is going to be the same as the earlier challenge: Hz
damn
@emanresuA Ha, cute!
I'm interested to see any solutions with a more sensible output method
My Python 15-byter is hover for spoiler
21:16
@pxeger help('`')
no documentation found for 'BACKQUOTES' with trailing newline
I did not know you could do that
Interesting
11 bytes: repr(dir())
Seems to be the only ASCII character that does that, everything else outputs differently
(version-specific though. On Python 3.6 I had the more interesting repr((dir(),))
I wish I'd known before that help("+") would give you an operator precedence table
7
Python 2, 10 bytes: `(dir(),)`
eugh, backtick repr
one of the features of all time
Another fun one: `[1./7,id]`
(11 bytes)
21:50
wait what are the odds
this is the very first sentence of a currently-unpublished article I found in our drive
pxeger challenge reference??
4
@rydwolf That's amazing lol
22:22
@pxeger Frustratingly, I don't think Jelly can get a (STDOUT) answer shorter than the boring 3 byter: ØAḊ (alphabet minus A)
 
1 hour later…

« first day (4988 days earlier)      last day (150 days later) »