WTF Bites
-
@Benjamin-Hall said in WTF Bites:
It uses a non-conforming parser, probably including manual tokenization.
json.org has a dead simple description of the grammar. It’s really not that hard to get right:
Assuming that circle means a terminal symbol, what's the bottom path -
whitespace" -> ε
?!The rule matches zero or more consecutive occurences of any of the four whitespace characters.
That's quite a special definition of whitespace.
Seems perfectly fine to me.
Ialwaysuselegitwhitespacetoseparatemywords.
I didn't even think of that, now I get what you mean. Think of it as "optional whitespace" if that makes more sense.
E: I'm rather glad it doesn't go in the other direction and specifies 436 kinds of unicode space characters that you need a locale dependent parser for.
Filed under: HALF_WIDTH_SPACE_LIGHT_SKIN_TONE_IN_STEAMY_ROOM
Even disregarding the semi-conforming-UTF16-encoding WTFs in the standard or that it's legal to use UTF32 to begin with but hex-escaped Unicode must be UTF-16, why would you deal with locale to decide what's whitespace? That's only relevant in non-Unicode locales.
E: by @gaska
-
fuck off with your "natural" scrolling direction and fuck you for implying I'm unnatural to want scrolling down to mean moving the page down
It's whether you think you are moving:
- the content in the window, or
- the view pane that's looking at the content.
Both are natural. But they correspond to opposite directions.
Or if you consider the effect of the bottom of the wheel on the content.
-
E: I'm rather glad it doesn't go in the other direction and specifies 436 kinds of unicode space characters that you need a locale dependent parser for.
Thankfully, unlike some other basic properties,
isWhitespace
is always locale-agnostic.For now...
No.
When you are in China,6月4日天安门大屠杀
will be rendered as white space.
-
@BernieTheBernie said in WTF Bites:
When you are in China,
6月4日天安门大屠杀
will
beget you rendered asitioned intowhiteprison space.FTFY.
-
Ialwaysuselegitwhitespacetoseparatemywords.
{"foo":"bar","baz":5}
{ "foo": "bar", "baz": 5 }
The rule exists so the two JSONs above parse to the exact same thing. Tokens are separated from each other by what the parser calls a whitespace (as a shorthand for "zero or more whitespaces" which would get very tedious to write all the time in other grammar rules).
-
@boomzilla said in WTF Bites:
fuck off with your "natural" scrolling direction and fuck you for implying I'm unnatural to want scrolling down to mean moving the page down
It's whether you think you are moving:
- the content in the window, or
- the view pane that's looking at the content.
Both are natural. But they correspond to opposite directions.
Or if you consider the effect of the bottom of the wheel on the content.
TDEMSYR
-
E: I'm rather glad it doesn't go in the other direction and specifies 436 kinds of unicode space characters that you need a locale dependent parser for.
Thankfully, unlike some other basic properties,
isWhitespace
is always locale-agnostic.https://linux.die.net/man/3/isspace
Specifically mentions locale on the isspace test.
-
@PleegWat that's POSIX. I was talking about Unicode.
-
TDEMSYR
Sure it does. If you pull the top of the mouse wheel towards you (the part of the wheel that's outside the mouse's body), the bottom of the wheel (the opposite part of the wheel, inside the mouse) pushes the content up.
What authority do you have on what makes sense anyway?
-
TDEMSYR
Sure it does. If you pull the top of the mouse wheel towards you (the part of the wheel that's outside the mouse's body), the bottom of the wheel (the opposite part of the wheel, inside the mouse) pushes the content up.
What authority do you have on what makes sense anyway?
All of it.
-
What authority do you have on what makes sense anyway?
Reliable test: do the opposite.
-
@boomzilla said in WTF Bites:
Or if you consider the effect of the bottom of the wheel on the content.
Yeah, but no; that makes it feel like indirect manipulation. Whereas “I'm moving the viewport” feels like direct manipulation. Which sounds like a truly petty difference, but really isn't psychologically.
-
@boomzilla said in WTF Bites:
Or if you consider the effect of the bottom of the wheel on the content.
Yeah, but no; that makes it feel like indirect manipulation.
False. But I can see how it might feel differently to different people.
-
@boomzilla said in WTF Bites:
@boomzilla said in WTF Bites:
Or if you consider the effect of the bottom of the wheel on the content.
Yeah, but no; that makes it feel like indirect manipulation.
False. But I can see how it might feel differently to different people.
False.
-
@boomzilla said in WTF Bites:
Or if you consider the effect of the bottom of the wheel on the content.
Yeah, but no; that makes it feel like indirect manipulation. Whereas “I'm moving the viewport” feels like direct manipulation. Which sounds like a truly petty difference, but really isn't psychologically.
I've always felt that the scroll wheel was really an odd implementation of "the button between cursor up and page up and the button between cursor down and page down". Each click of the wheel is a press of the button.
Scroll lock was supposed to toggle all three sets of cursor manipulation to viewport Manilow you manipulation, and thus the directions naturally reversed.
Sadly this never caught on like it was supposed to.
-
@Tsaukpaetra said in WTF Bites:
@boomzilla said in WTF Bites:
Or if you consider the effect of the bottom of the wheel on the content.
Yeah, but no; that makes it feel like indirect manipulation. Whereas “I'm moving the viewport” feels like direct manipulation. Which sounds like a truly petty difference, but really isn't psychologically.
I've always felt that the scroll wheel was really an odd implementation of "the button between cursor up and page up and the button between cursor down and page down". Each click of the wheel is a press of the button.
Scroll lock was supposed to toggle all three sets of cursor manipulation to viewport Manilow you manipulation, and thus the directions naturally reversed.
Sadly this never caught on like it was supposed to.
Well, Vegas was calling and Barry went.
-
@boomzilla said in WTF Bites:
But I can see how it might feel differently to different people.
If you ask me, scrolling the wheel corresponds to moving the scrollbar thumb up and down. (the thumb being a representation of what part of the content is visible, as we all know)
-
@Zecc it's always interesting to hear all the different ways that people visualize / experience common things.
-
Also, middle-click-and-drag scrolling activates a virtual joystick which also moves the scrollbar thumb. (and with it the viewport over the content)
-
@Tsaukpaetra said in WTF Bites:
toggle all three sets of cursor manipulation to viewport Manilow you manipulation
-
@HardwareGeek said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
toggle all three sets of cursor manipulation to viewport Manilow you manipulation
Was typing in a hurry and my viewport is currently microscopic on mobile. Had to assume my keyboard was autocorrecting we it should.
-
-
@Tsaukpaetra said in WTF Bites:
my viewport is currently microscopic on mobile
Is it ever not?
It's smaller than usual, which is bringing it into the borderline untenable categorization.
Also, is it just me, or does the "show preview" pane toggle be fucked up?
-
-
@BernieTheBernie said in WTF Bites:
You're having a meeting with some one in and he's hiding in the ?
I'm not hiding
-
@boomzilla said in WTF Bites:
But I can see how it might feel differently to different people.
If you ask me, scrolling the wheel corresponds to moving the scrollbar thumb up and down. (the thumb being a representation of what part of the content is visible, as we all know)
I've had a neighbor who used "scroll up" and "scroll down" the wrong way around. I had to help him with his computer quite often, and it was seriously irritating when he just kept saying the opposite of what he meant. But you don't argue terminology with someone 3x your age who also had a stroke.
-
you don't argue terminology with someone 3x your age
No, I don't. Anyone 3x my age is dead.
-
@boomzilla said in WTF Bites:
But I can see how it might feel differently to different people.
If you ask me, scrolling the wheel corresponds to moving the scrollbar thumb up and down. (the thumb being a representation of what part of the content is visible, as we all know)
I've had a neighbor who used "scroll up" and "scroll down" the wrong way around. I had to help him with his computer quite often, and it was seriously irritating when he just kept saying the opposite of what he meant. But you don't argue terminology with someone 3x your age who also had a stroke.
Yet @boomzilla still wonders why I speak obliquely.
-
-
@Watson maybe things used to be that way, maybe, but I doubt it.
-
@Gribnit
It has contributed to more than one airliner crash.
-
@Gribnit
It has contributed to more than one airliner crash.Well yeah, I mean it made them think outsourcing the coding was a good idea.
What are we talking about? I was talking about the metaawareness of the relative nature of perception vs the decay of that awareness, if it helps.
-
The images unfortunately show zero pitch, but IIRC for pitch the background moves in both, which makes the later self-inconsistent. It's fortunately dying too now that Sukhoi aims for Airbus commonality and has the avionics made by the same contractor.
-
@Watson Also when I got pedals for the sim, I found those a bit counter-intuitive at first. The yoke acts as if it was a lever acting on the floor—the plane pitches and banks in the direction you move the yoke. But for rudder, you push on the side you want to turn to, so the rod connecting the pedal turns in the opposite direction than the plane. Of course that way it's consistent with the brakes, because the plane turns towards the applied brake and releasing a pedal to apply brake would be positively weird, so…
Also the forward means down is still contrary to other things on a computer, so some airplane games call it “reverse mouse”.
-
some airplane games
I've made a strange observation about these, notably the latest MSFS. I'm not sure whether it's in any way indicative of the entire playerbase, but players seem to come in two categories: one - hardcore simf**s, and the other - folks who cannot seem to fly straight for more than 5 seconds, "I can see my house from here" types and all.
Suppose my observation is somewhat valid I wonder how big is the "middle class" that expects reasonably accurate representation, but aren't overly concerned with every eddy and tidbit being simulated. This seems to affect lots of games, but simulators (or "simulators") take the top spot. Is it a side-effect of recording gameplay for the masses then?
-
@Applied-Mediocrity I would classify MSFS as a simulator, because it makes bona fide attempt to simulate the actual physics. The previous incarnation was good enough that it was bought by Lockheed and certified for flight training, but I have no idea about the current one, which is a new development.
Anyway, by airplane games I reather meant the kind of dogfighting games where you just move exactly where the nose is pointed, ignoring effects of speed and elevator position on angle of attack, when you get too slow, your nose just starts to gradually drop down, the relationship between speed and rate of turn is all wrong etc.
-
Colleague has spent a lot of time searching and asking around for solution for maven not wanting to pull an artifact. Turned out that it was
because, see, the error does not actually say anything about http no longer being permitted or something, it just says that “Blocked mirror for repositories”. And the internal nexus repository isn't https. It probably should, but the larger the company, the harder it is to set up your systems correctly, and this client is Huge.
-
@TimeBandit said in WTF Bites:
@BernieTheBernie said in WTF Bites:
You're having a meeting with some one in and he's hiding in the ?
I'm not hiding
You're always hiding in by virtue of your snow-white fur color.
-
Just took a look at the Nagios Monitoring information of one of our customer projects.
And, well, the Timestamp check is really old:Timestamp: CRITICAL: 63759008630.63 s (400,500)
About the year 0 A.D. or 0 B.C.
-
@BernieTheBernie said in WTF Bites:
Just took a look at the Nagios Monitoring information of one of our customer projects.
And, well, the Timestamp check is really old:Timestamp: CRITICAL: 63759008630.63 s (400,500)
About the year 0 A.D. or 0 B.C.
Papist!
-
@BernieTheBernie said in WTF Bites:
@TimeBandit said in WTF Bites:
@BernieTheBernie said in WTF Bites:
You're having a meeting with some one in and he's hiding in the ?
I'm not hiding
You're always hiding in by virtue of your snow-white fur color.
I'm telling you. In winter they can be anywhere. Beware Canadia.
-
I have a
webpack.config.ts
that returns 3 configs (one for client-side JS, one for web worker JS, one for server-side JS). If I runwebpack-cli
to compile these, it takes like 20 minutes.I wrote a script to fork 3 processes and compile each config in parallel, hoping to cut that down by 66.6% (at most). In practice, I shaved off about 95%, as it now takes about a minute to finish all three configs.
So what the fuck is
webpack-cli
doing with its multi-config processing? I ran the ProfilerPlugin and it seriously looks like it's just sitting on its ass for over 15 minutes.
-
@BernieTheBernie said in WTF Bites:
About the year 0 A.D. or 0 B.C.
There is no 0 BC. 1 AD immediately follows 1 BC, which is also written as 0 AD in “astronomical year count”.
-
@error resolving schedule conflicts for optimal performance?
-
Tokens are separated from each other by what the parser calls a whitespace (as a shorthand for "one or more whitespaces"
"one or more" would make perfect sense. 42 spaces and a tab are still a space and just as white even if a bit wide. "zero or more" isn't quite as spacey.
-
@LaoC ["this","is","valid"]
-
@LaoC ["this","is","valid"]
Sure it is. There is no whitespace between the array elements though, even though the grammar says there was.
-
@LaoC and all the tokens are in fact, so separated.
-
Tokens are separated from each other by what the parser calls a whitespace (as a shorthand for "one or more whitespaces"
"one or more" would make perfect sense.
But it wouldn't be nearly as useful. It must allow nothing as whitespace or else
{}
becomes invalid JSON.@LaoC ["this","is","valid"]
Sure it is. There is no whitespace between the array elements though, even though the grammar says there was.
Make up your mind. Is it wrong for the grammar rule to allow zero whitespace there or not?
Edit: only now I've noticed I've had "one or more" in my earlier post when I meant "zero or more". I swear, I wrote zero there, not one. I even remember double-checking it that it's definitely zero. I have no idea how this happened.
-
In winter they can be anywhere.
You mean, there's another season beside winter?