« first day (3825 days earlier)      last day (1011 days later) » 

12:00 AM
@user well the same goes for everywhere else in canada :P
 
@hyper-neutrino i think i've mostly seen that about michigan and you know what they do have a border
 
@hyper-neutrino No, I haven't spoken to her since January
 
@hyper-neutrino Wait what lol
 
@user Canada is the New Jersey of Canada
 
Thanks, very helpful
 
12:01 AM
@cairdcoinheringaahing Ok, my memory is shit :/
She;s at a Montreal uni, not even Ontario :/
 
I know how Canada works :P
 
@cairdcoinheringaahing Interesting, I daresay scientists will want to study your brain for decades to come to see how shit can be used to store information :P
 
@cairdcoinheringaahing impossible; it doesn't :p
 
12:02 AM
@user 💩
 
Your birthday/Emoji Day's over, get over it :P
 
0
Q: Is this a Jordan matrix?

BubblerBackground A Jordan matrix is a block-diagonal matrix where each block on the diagonal has the structure of $$ \begin{bmatrix} \lambda & 1 & 0 & \cdots & 0 \\ 0 & \lambda & 1 & \cdots & 0 \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 0 & 0 & 0 & ...

 
Okay, I've been taking a look at Nibbles, and it looks really cool
 
This is good news. My only complaint is the "unship" terminology; pls take the mobile views into a dark alleyway and return alone, kthnxbye — Shog9 2 hours ago
Shog, the voice of the people since 2009 :P
 
@NewPosts i feel like there is some mathematical property of jordan matrices you can abuse to make this really easy
 
12:22 AM
@hyper-neutrino It is the Jordan form of itself, but computing the Jordan form isn't quite trivial
 
what you can abuse is jelly's diagonals builtin
 
okay looks like my idea was far too complicated lol
i finished with 32 because i was just piecing each individual part together and patching a bunch of random shit together; was gonna try to restructure it but seems you beat me to it anyway
 
i'm not entirely sure that my solution is correct considering i went through aƑ@, , , and a@Ƒ before settling on o@Ƒ in the middle there
it just passes the test cases and works out conceptually
 
wait how does this even check the 2 in the last test case
oh wait, because then it's not invariant because the 1 becomes a 2
ah I misread the selfie as being outside the invariance
that's smart
 
again, it took five tries to get it right lmao
but thanks
 
12:26 AM
lol
see i didn't see that idea so i began with basically the same outer structure as yours but with a helper dyadic link, and then didn't validate the 1s so i added an extra check, and then errorred on 1x1s so i added a ? to surround the main link, and by then i'd hit 32 bytes lol
because my solution required iteration so if Head produced a default scalar 0 mine would error whereas yours just simply does not :p
 
I started with ŒDḣ2µ...µ/ but it just got too long and complex :/
 
i started witha helper dyadic link too until i strated thinking about how to determine that everything outside the diagonal and superdiagonal are all 0
yep
 
i finished with uh
¹Ɲị@T}E€ẠafØ.$Ƒ}
ŒDµḢçḢ>FẸ$µ$1Ḋ?
yes i am aware this is probably the worst jelly code you've seen :p
 
I didn't even bother to finish :P
 
also me being very clever and using ¹Ɲ ... E€ :p
 
12:29 AM
nice
 
i am simply Not Using my Brain (TM) right now rip
 
@hyper-neutrino ¹Ɲ and @ and } when ṡ2 works with a flipped link :/
 
imtelligemce
 
Lol
The Smart, The Dumb, and The Lazy (The Nineteenth Byte, 2021)
5
 
@Bubbler This seems like an offensive way to describe me :P
 
12:35 AM
you can only have 2 of 3
i picked the last two :p
 
12:47 AM
@cairdcoinheringaahing haha jokes on them because I already use the responsive design ;)
 
1:00 AM
Sandbox posts last active a week ago: (untitled)
 
@OldSandboxPosts ...that has a title
 
That's very weird, the only problem I can think of is the use of single quote, yet OSP has successfully parsed it before once:
 
I'm debugging, but I haven't debugged OSP since I switched computers so I have to re-set it up
<h1 id="solve-fermats-last-theorem-with-matrices-bxbb">Solve Fermat's Last Theorem with matrices</h1>
ಠ_ಠ
SE changed their HTML apparently
@RedwolfPrograms I've pushed a fix to the repo, feel free to pull OSP when you can :)
 
1:21 AM
It's just main.py that's changed, right?
 
That... must break many SEDE queries
 
Quick test:
 
Sandbox posts last active a week ago: Solve Fermat's Last Theorem with matrices
 
1:24 AM
Nice
 
@Bubbler Not until next Sunday it would seem
Not sure if I want to open a meta discussion
I've let the folks know over in the Data Explorer room, at the very least
 
Oh, so there's a chatroom for SEDE?
 
2:19 AM
Is the gradscript leaderboard broken for anyone else?
@cairdcoinheringaahing Ugh, why does SE keep changing their HTML ಠ_ಠ
 
@cairdcoinheringaahing Vtd as dupe of shaggy's message
Jul 14 at 8:57, by Shaggy
Anyone else having issues with the leaderboard in the userscript? My solution here isn't showing up and, after just editing it, my solution here has been removed.
 
Do I need to fix it again :p
 
I'm shit at JS, so I wouldn't mind the help :P
I at least found where the error is:
 
Think I found it
Oh, that's not where my error is
Might be two of them
 
The only "error" I'm getting is "Uncaught TypeError: Cannot read property '1' of undefined" at that bit
 
2:33 AM
Same here, with 2
 
which appears to happen with answers[0]
@RedwolfPrograms Yeah, my error is after commenting out the var tryitonlineattempt = $(answers[0][2]).find('a[href*=".tryitonline.net"]').attr('href');
So it looks like answers[0] is the issue
 
I think I figured it out:
Line 862 has a regex for headers
> /<(h\d|strong)>(.+?)<\/\1>/
 
Ah, it needs the space
 
The what
 
1 hour ago, by caird coinheringaahing
<h1 id="solve-fermats-last-theorem-with-matrices-bxbb">Solve Fermat's Last Theorem with matrices</h1>
The space after the 1 :P
 
2:38 AM
The regex is missing the whole id part
So I mean technically it is missing the space :p
But a lot more as well :p
 
Changing it to (/<(h\d|strong).*?>(.+?)<\/\1>/ kind of works, but it only shows one element :/
 
I think I have a fix, lemme test
Just use ( id=\\"[^"]+\\")?
Not .*?
That might have weird other behavior, not sure
 
No, that doesn't work
Does (?: ) create non-capturing groups in JS?
 
Nevermind, that doesn't work :/
 
2:41 AM
Got it maybe?
There's three places you have to add it
862, 870, 871
I think there's still some parts missing though
Wait yeah, only showing first answer
Fixed
With a one liner, too
Add .replace(/<h\d.*?>/g, function(h){return '<h'+h[2]+'>'}) on line 858
Probably doesn't matter where
I put it after the first replace which seems to work
 
0
A: Sandbox for Proposed Challenges

Domenico ModicaPanini trading cards game This is a general version of a game I used to play as a child to win (lose) soccer trading cards. The game is played by at least 2 players all of whom arrange a fixed number of cards forming their deck. The fate has been decide: there will be no other choice from now on....

 
@cairdcoinheringaahing ^^^^
 
@RedwolfPrograms Yep that works, but not when you paste it a t the second-to-last replace
Weird :P
 
I noticed that, must be another one of them interfering
It works for now though :p
I guess someone should notify one of the gradscript devs, or PR it?
 
2:54 AM
That would make it the second time I've PRed a leaderboard fix lol
 
Well, it's not like it's in active dev ;P
 
I'll go ahead and do it I guess
And I'll remember to update the version this time lol
Made the PR
 
@cairdcoinheringaahing A better post would be to ask "please let us know when you changed the HTML" :P
 
Gotta love breaking changes
 
I love breaking charges too, blasted right through a concrete wall with one
The look on those prison guards' faces lol
 
3:04 AM
i wish SE would like, tell us about these changes
for changes like these I don't really see why they'd get community feedback or ask about them but it'd be nice to at least have a change log for people who are using their skills to enhance the SE experience, so that SE themselves don't keep breaking these things
 
Should’ve been a Meta + StackApps announcement
 
drafting an MSE post now
 
@RedwolfPrograms “Officer, I’d like to report an escaped prisoner. What does it look like? Well, it’s a red wolf - hmm? No, you heard right, it’s a wolf, you need to grt here right no-hello? You there?”
 
screaming sounds heard over phone
 
@cairdcoinheringaahing How to get easy MSE rep: discuss it significantly in chat, post a question asking for something, post link to question in said chat :P
 
3:19 AM
lol lol
 
3:30 AM
@cairdcoinheringaahing alternatively, live on chat so much that when it dies, you're the first to post the mayday on meta *cough* HN *cough*
 
@bobble We never did get an official response on that :P
 
3:48 AM
how's the codidact bot going, by the way?
 
Oh yeah!
 
yea, I suggested it
was wondering if people were using it
 
Can't speak for others, but I check out new challenges whenever it posts a new one
Hasn't posted for almost 2 weeks now tho
@cairdcoinheringaahing It looks like this is the issue with headers being edited in all edit diffs
Would make sense - SE only updates posts when they get edited, and there would be no diffs show if only the HTML is changed, but they would still change
 
@cairdcoinheringaahing but it's still broken in posts that are younger than the 12th, e.g. meta.stackexchange.com/posts/367463/revisions
 
4:00 AM
@bobble ¯\_(ツ)_/¯
I'm just hypothesising
 
why can't they just not make bugs in the first place :P
 
Clearly they should hire all of CGCC as their dev team, we never have bugs :P
 
All of the bugs in my code are actually just bugs in chromium :p
 
Their own breaking change making bugs in their own product
Bugception?
 
48
A: Help! I am infected with the puzzling bug!

DeusoviThis information technology simply never obeys the leaders. Nasal fluid begins a big ugly Indian mountain. A stupid person is the manager of codes. A locker is secure in heavy halogen You are Eastern river in England. So the answer is or, more descriptively,

 
4:32 AM
ideally each part of the SE frontend is a section and each time something gets changed there is a notice under that section
so if your script scrapes all the answers but doesn't care about vote counts or user data, then things that change the profile page HTML won't matter to you
ofc that's a lot of work and just say "hey, we're changing this" is a pretty big improvement over just silently breaking things and leaving people confused
 
^ this
 
5:20 AM
CMC In C print a __uint128_t variable
 
In what format?
Hex shouldn't be hard, I guess decimal can be hard
 
print it in decimal to the screen I mean just
 
i just implemented kruskal's using only basic if branches and goto statements in one main function (c++) :p
removing control flow and turning my CP solutions into just gotos has become a hobby of mine and i am concerned for my sanity
 
@Anush Dupe
Or move to Rust where everything that is supported for smaller ints (including printing in decimal) is also supported for u128 :P
 
@Bubbler but what is the golfiest answer?
 
5:31 AM
or use python where you can essentially ignore size limits for integers altogether :p
 
@hyper-neutrino then it’s not a good CMC :)
 
@Anush Perkins's seems to be shortest
 
Help request
 
@Bubbler what do need to actually print it using that?
 
I don't really get APIs, even though I have tio-api, haha
Hoping to use google translate for a webapp
But it looks like their api limits you to 50 requests, even though you're not limited when you use the web interface yourself
The question is, surely there's a way to figure out what JS is firing on google translate, and/or what PHP it's posting too, and then do that ourselves for free?
 
5:39 AM
@Anush char* s = uint128_to_str(n); printf("%s", s);
 
Does it not work that way, can you lock the PHP functions away with a secret key or something somehow so that just having the JS doesn't give you access to all the functionality?
On second though, I guess something like this is maybe done re: passwords and admin stuff on websites?
 
@AviFS I think such a request would be accepted by the server only if it comes from *.google.com or something
 
Alternatively, do you guys recommend any reasonable natural lang translating stuff for JS?
It actually only has to translate a single word
So good english-XXX dictionaries which are easy to parse online would do the trick!
@Bubbler Why didn't I think of that! Thanks
Is anyone else surprised that using google translate programmatically costs money? Maybe I should be
@Bubbler But then I was thinking it must be possible act like a human. Eg have a bot thing fill out the textboxes, and report the result. Does anyone know how to do that in JS? Or if maybe google translate would stop you?
I think I've done more than 50 searches in a day, so I'm pretty sure they don't stop you as quickly.
 
@AviFS Wait, that's not even a Google-official thing, it's a 3rd party service
 
Oh, you sure?
Maybe google has a partnership?
But so there must be a way to have a bot fill out the form and report the output. Does anyone know how to do that in JS or what to look up?
Isn't that similar to what the chat bots here do?
 
5:49 AM
if you want to determine how data is being sent
you can usually open the dev tools, navigate to the network tab, and click the submission button, and it will log the request, which you can copy as a CURL or a JS fetch (among other things)
that's how I determined the request formatting for deleting and pinning chat messages, which I use for Vyxal Bot
 
Ooh, thanks I'll try that
 
i am not that sure about the trustworthiness of the resource you are looking at
but if you've done your research on it then cool
 
Bots usually don't fill out the form in an HTML document. They just construct a request, send it, and receive the response from the server
 
@Bubbler Oh, okay thanks!
@hyper-neutrino Hmm, which is the submission button?
 
5:52 AM
filling out the form and submitting it with the network tab open usually lets you see what the nature / format of the request is, but it might not work
 
 
@AviFS i don't know, whatever form you're trying to fill
 
Oh, that's what you mean!
I thought in the network tab
 
i don't actually know what you're doing i just know how to determine request format by doing the request yourself and copying it out of the network tab
ah
 
@Bubbler thanks! Still not very golfed :)
 
5:53 AM
I found two potential things. Mind walking me through what now or sending a link/search terms to figure it out?
Oooh, okay
So if I hit 'copy as curl' then I get a command I can run in terminal
And presumably in most prog langs
 
it might help you more to copy as fetch
 
@hyper-neutrino I was just going to say!!
 
@AviFS It is powered by a company called RapidAPI, which is a totally separate thing from Google ("Google" appears zero times on its About page)
@Anush Well, what do you expect for something that isn't natively supported :P
 
@Bubbler Google does also have this product though:
Forgive my ignorance but does anyone mind clarifying this npm stuff for me, please?
 
@AviFS That is a Google-official thing, of course
 
6:02 AM
So it's happened a few times that I find a GH project that looks to be written in JS
But it has instructions to install with npm
And the example has something like:
const translate = require('google-translate-api');
at the top
That all means it's unforgivably node, right?
 
It is a Node.js package, yes
 
@Bubbler golfing tricks! :)
 
remove whitespace and comments /s
 
And that in turn means it's totally useless for web js?
 
Something like webpack can take npm packages and put them into client js files
but the webpack road is a very deep and long rabbit hole
 
6:05 AM
Wait! It looks like this exists?
@Bubbler Oh, this is what you're saying right?
Do you not recommend it? It looks fine at the superficial level
 
Browserify is an old thing IIRC
I saw people recommend webpack or bower (I haven't seen even bower recently) but they take literally forever to set up correctly...
 
Hmmmm
It might still be the easiest though. The format in google translates post call was ridic
 
Yeah, I don't think you can mimic the raw request
 
Back to the drawing board!
After all that, you still need a token to send the request.
Your token needs to be given by a google cloud account, and it's not free
So the apis all just have a line with var TOKEN = "your-token-here";
But it should help a lot that I only need to translate individual words
Does anyone have any ideas for dicts to do that with?
 
6:23 AM
There might be a dict between some common languages if you search hard enough
 
I'm sure there should be...
 
But really, why do you want single-word translation in the first place?
 
There might also just be low-quality translators, which are high-quality for single words
@Bubbler It's... a thing
I promise I'll share when I have an MVP
 
"High quality" is absolutely impossible for single words
 
If I keep working on it, it should be within 48 hrs
@Bubbler Well... something like that
In some sense it's easier though because no grammar/sentence structure
That's more what I meant
The precision of translation isn't actually very important for this
 
6:26 AM
You know, one word can have multiple totally different meanings
 
I know, I know
It shouldn't be that important for the main point of this
And when it starts getting annoying, I can change later
But since you can use synonyms, it won't be too big a deal
Eg. you might not want to search 'duck' in english
Could be n/v
But waterfowl/goose/swan/duckling are plenty close for this
 
7:06 AM
well apparently commments carry 2 marks in our exams
 
I like how currently the starboard has the top 5 messages listed in order of stars, and that their differences are all 1
@PyGamer0 oof
wait
in exams
oh
oh dear
 
I remember some exams required me to write code on paper, and if it doesn't compile you get zero points no matter what. It was total frick experience
7
 
@Bubbler misses a semicolon
 
didn't expect bubbler to say "total frick experience"
 
^ so far this is what is happening (ignore swing and main loop)
 
7:17 AM
@PyGamer0 urgh BlueJ
I do not like BlueJ
I just used VSCode instead
It made no difference
 
@lyxal so i did ^
 
balu jay
2
 
@lyxal actually i release that i click a lot when i dont use vim.
 
@cairdcoinheringaahing "I retracted from the last" is an interesting way of saying "you're only allowed to accept offers from 2 unis"
 
that's the only good thing you can do with BlueJ
 
7:21 AM
@cairdcoinheringaahing thanks, I was wondering why it looked so weird
 
I use \operatorname{mod} :P
 
if I'm feeling really lazy I might just do \text{mod}
 
I used that before I learned operatorname
actually \text{ mod } because spacing
 
7:34 AM
^ what?
 
Are you supposed to implement the sort function?
 
@lyxal no (our teacher is teaching if statements and i am making bubble sort)
 
oh then in that case
new int[]{0, 4, 4, ...}
 
@PyGamer0 what's it say when you hover
 
its now fixed
@lyxal i did this
 
7:39 AM
did it work?
 
@lyxal yes
 
good
 
> its now fixed
why on earth cant you convert int to a string
 
String.valueOf()
wait
is that right?
no
bvm
 
anyways bubble sort algorithm is done
 
7:40 AM
*nvm
(String) 10 no?
or just "" + 10
 
@lyxal why does this work
@lyxal and this doesnt
 
@PyGamer0 type overloading
@PyGamer0 no clue
 
I'm so glad I've never had to use Java
 
2 mins ago, by lyxal
String.valueOf()
I was right
String.valueOf(10)
 
String addition is the hackiest part of Java
 
7:42 AM
@pxeger i wish our syllabus just magically change
> my classmates are dumb; they ask the teacher; Can you make games in java
bruhh
 
IIRC ""+10 compiles to something like "create a StringBuilder, push "", push String.valueOf(10), extract the resulting string"
 
@PyGamer0 they seem like the kind of people that come to you and say "I have this great idea for an app that will replace facebook. It will make us mighty rich, and I'll give you a 10% share if you code it all"
 
CMQ: IS there a challenge that asks you to make a simple cli game?
@lyxal lol
 
@PyGamer0 , sort by newest and scroll to bottom
though I do think many more such challenges (especially older ones) are out there, just not tagged properly
 
8:18 AM
in Attempt This Online, 24 secs ago, by pxeger
ATO is now on v0.1.7, which includes Jelly!
4
^ @cairdcoinheringaahing @N3buchadnezzar
 
9:14 AM
ugh, stupid windows updates again
 
9:26 AM
@Bubbler ""+x is specifically optimised to a direct call to String.valueOf(x) but longer concatenations do use a StringBuilder
@Anush void p(__uint128_t u){if (u>9)p(u/10);putchar(48+(int)(u%10));}
 
9:38 AM
ugh, stupid firefox updates again
 
ATO
hello I am a real human
 
but what is the purpose of this bot account?
 
@ATO hi
@ATO no commands?
 
ATO
10:05 AM
nope, currently I am actually a real human lol
 
I'm the real pxeger!
 
ATO
No, I'm the real pxeger!
 
?
 
10:21 AM
@Neil I am not sure I understand this, sorry
@Neil oh does it actually work?
 
11:03 AM
@ATO I trust this 100%
 
lol
 
11:27 AM
0
Q: Nose Poker API sandbox

AJFaradayThis is a test-ground for an upcoming challenge which will query it's answers from Stack Exchange using the API. Please do not post answers to this question.

 
^ we need a tag for API KotH testing meta questions
 
11:41 AM
@Anush disclaimer: completely untested
 
11:51 AM
@Neil ah :)
@Neil TIO?
 
@Anush worked first time: Try it online!
 
0
A: Sandbox for Proposed Challenges

Wheat WizardSliding dice We have 3 dice in a square dish. The dish is 8 units wide and tall and each die is 3 units wide and tall. The dice are facing up each with a different number on their top face. 111..222 111..222 111..222 ........ ........ 333..... 333..... 333..... Then we play a game. At each ste...

Any feedback on this?
 
although, ~0ULL is only 64-bit, so
use p(~(__uint128_t)0); for a 128-bit test case
 

« first day (3825 days earlier)      last day (1011 days later) »