« first day (5062 days earlier)      last day (76 days later) » 

03:16
y'all wouldn't believe what I'm fighting right now
it's CORS
the best thing in the world which I have previously established as something I really enjoy
who needs a social life, hobbies, or other means of being a normal human when you have CORS?
but this time it's even spicier: websocket cors
 
5 hours later…
08:25
0
A: Sandbox for Proposed Challenges

l4m2Given binary array X, decide if for each 0≤i<len(X), X[i] = X[(i + 2len(X)) mod len(X)]. Sandbox Notes This comes from puzzle where the array is the lamps. Should I use another equivalent expression than above?

Suggestion?
 
4 hours later…
12:53
I have never been so happy to listen to steamed hams in my whole life
(I just finished a successful test run of a youtube to mp3 converter website I made :p)
it's really cursed because it uses github workflows to do the processing, has another repo to handle file storage, a pythonanywhere hosted flask app which acts as a middleman to serve private github files to the react js
I won't be making any source code public because it contains github PATs and youtube cookies :p
+ the fact I made it for fun when there's like a whole plethora of other yt2mp3 sites
 
2 hours later…
14:54
@lyxal wtf
why
15:41
@lyxal aren't there, like, established solutions for dealing with this
I don't know what they are, granted
but it could be as simple as putting them in a file in the repo that you just have in your .gitignore and leaving a note somewhere like "hey yeah this file needs to have API keys in it"
@Themoonisacheese ...I just now actually read the "avoid missing ball for high score" article it linked, and I spent like an entire minute trying to figure out what the point of alluding to 9/11 was until I noticed the article was written in 2001 and probably was by sheer coincidence actually just written and published on 9/11
16:30
@UnrelatedString This is what we do where I work, basically. It's a JSON file with all of our config info including private API keys
Makes sense
0
Q: How can I shorten this Python code from 214 bytes to under 200 bytes?

RannStudioI have the following Python code, which is 214 bytes long: G=print B=input A=int H,M,N,O,I,P,Q,J=map(A,B().split()) C=[I]*H for R in range(J):K,L=map(A,B().split());C[K]=L while 1:D,E,F=B().split();G(['WAIT','BLOCK'][A(E)<C[A(D)]and F=='LEFT'or A(E)>C[A(D)]and F=='RIGHT']) Is there a way to redu...

 
2 hours later…
18:51
TIL that you lose rep from an accepted edit if the user whose post you edited was deleted
 
2 hours later…
20:43
0
Q: All code and no play makes 31415 a dull boy

3-1-4-One-FiveIn this crossword puzzle by Jack Lance, all the letters (well, most of them) have been replaved by a fixed text string: All work and no play makes Jack a dull boy. Therefore, you have to rely on clues like digits, capitalisation, special characters and the number of letters in each word to comple...

21:18
@UnrelatedString probably
But I don't care about proper practices
I just wanted to make something quick and dirty for the fun of it

« first day (5062 days earlier)      last day (76 days later) »