« first day (4946 days earlier)      last day (87 days later) » 
00:00 - 22:0022:00 - 00:00

10:04 PM
@Bbrk24 It looks like the high byte is a bit field and the other 3 are junk
(don’t mind the names; I wrote this on my phone :P)
Doesn’t explain what’s up with 5 though
> .code.tio.c:16:1: note: in expansion of macro ‘ass’
@Neil And I do have a fromJSON static method on the class, but the class’s internals are similar enough to the raw JSON that the toString method works for both (and I even added a type annotation on this to be sure)
I guess I could say Class.fromJSON(foo).toString() every time but that’s not much shorter
10:20 PM
Amusingly, the junk still lines up for some of it—there’s only a few patterns of junk, so it could just be a coincidence, but it could also be some other part of the input still
10
Q: Visited chat info page buttons now have a dark background color, making them hard to read

John OmielanI recall that the background color used to be white, but the visited chat info page buttons now have a fairly dark blue or purple type background color that makes them hard for me to read, as shown below. Note the screenshot is from 2024 Mathematics Stack Exchange Moderator Election Chat, but it'...

att
att
@UnrelatedString they're all something/7
Is Pi involved somewhere?
That was my first guess
@UnrelatedString Unfortunately, JS doesn’t make it easy to bitcast a double to an int
@att They’re equally spaced from -1 to 1, except for the one that’s 3.28… (= 23/7)
att
att
@Bbrk24 multiply by 7 and take the nearest int
10:34 PM
I ended up doing something similar, except that I don’t need the diagonals
att
att
diagonals?
like up + left
I managed to confuse my code because of the cheap joysticks on my controller
My controller is built kinda cheaply so if you flick a joystick too fast it bounces back the other direction
My code is written to not parse input until there’s a frame of no input, so that input chords (like A+L) don’t have to be frame-perfect
My code got confused as to how I managed to push the joystick up and down at the same time
Phenomenal
@att OHHHHHHH
Maybe it’s some kind of analog angle thing that just isn’t capable of actually being analog
Like, trying to pretend the d-pad is a third joystick
I assume this gamepad API tries to be kinda controller-agnostic? So maybe it does that to accommodate controllers where the dpad actually is analog, or just for uniformity with the joysticks
10:52 PM
Yeah it's controller-agnostic, it has one array representing all the axes and one representing all the buttons
My axes array is:
0. left stick X
1. left stick Y
2. right stick X
3, 4. always 0
5. right stick Y
6, 7, 8. always 0
9. D-pad
The buttons are objects rather than just numbers. Each object has three values: pressed, touched, and value. For pressure-sensitive buttons like triggers on most controllers, touched = (value > 0) and value is pressure normalized to 0-1. For regular buttons, touched = pressed and value = pressed ? 1 : 0.
My first four buttons are Y, B, A, X, for some reason in that order
I'm going to connect an Xbox 360 controller if I can figure out how and it's probably going to be completely different
Awh, it's not bluetooth, you need a dedicated Xbox 360 receiver. Guess I'm not then
Let me try my brother's mariokart controller
wtf
it uses the same axis for right stick X and ZL/ZR
There is no way to tell whether you're pressing ZL or right stick left
Wait no, I think my brother rebound the controls. Let me reset it and check again
Yep okay that's a quirk of his control scheme. I set it back
11:20 PM
@Bbrk24 Wait is the Switch procon that much of an outlier for not having analog triggers
Yep
I knew GCCs and DualShocks had them but
Amazing
Every xbox since the 360, every playstation since the PS3, and even the GameCube
also the Wii Classic controller
the Switch is basically the only console released this century that doesn't support analog triggers
11:21 PM
I guess this whole time my entire world has been colored by years of that one controller for the Wii U
…And also the GamePad itself come to think of it
Oh no, the PyTorch docs isn't working.
I guess they probably based the triggers on that controller on the GamePad and then the Switch inherited that
oh yeah, the Wii U GamePad and Wii U Pro controller don't have analog triggers, but the Wii U is still compatible with the Wii Classic controller which does
Phenomenal
Ah, I tried connecting my joycons via bluetooth, but each joycon shows up as a separate controller
and the joystick on the left one doesn't show up under axes or buttons? weird
actually neither one does. Both controllers' axes arrays are [0, 0] no matter what I do
11:27 PM
Ahh, figures that the two joycons as one controller thing is software controlled
Why do the joysticks not work though?
You wouldn't happen to have an Xbox controller connected to your PC, do you?
github is down
this is new
woah
I was going to ask for help testing something but you can't exactly clone my repo if GitHub is down
11:31 PM
@Bbrk24 Probably been like 10 years since the last time I saw one :P
fair enough
11:50 PM
I think the only time I actually saw one IRL was, like… this really weird attempted playdate over the summer in middle school
My singular friend at the time invited me over to his house for a couple hours and also dragged in some people he apparently knew from his previous school
And we mostly just stood around doing literally nothing
But we also briefly played skyblock
That was definitely a forgettable experience :P
Oh yeah I also got really really dehydrated. I’m reminded of that because I’m also currently really really dehydrated
The joys of packing everything up at the last possible minute for a move
Moving is exhausting, I hope you get the rest you deserve :hugs:
Thanks <3
The most exhausting part has just been the terrible communication and planning :P
00:00 - 22:0022:00 - 00:00

« first day (4946 days earlier)      last day (87 days later) »