WTF Bites
-
Today's WTF
An interesting concept. Is there some sort of site, a page perhaps, where one might find WTFs syndicated daily? I wonder what it would look like.
I'm sure it would only work if there was no front page.
-
@Bulb After looking back at my test projects, turns out I was incorrectly recalling in the case of strings: Nullable strings need a weird declaration in the
.proto
file, but they end up asstring
in the C#.
Nontheless, I was right about DateTime, which ends up replaced withGoogle.Protobuf.WellKnownTypes.Timestamp
.
(my test does not include a nullable integer, so I'll have to check again what it does with those).Edit: Apparently there's also a type that maps to an actual nullable
int
, but it comes with a WTF of its own anyway:grpc compiler claimed that he has no information on google.protobuf.Int32Wrapper type. I have found it is actually called google.protobuf.Int32Value, though google calls it Int32Wrapper in the docs.
Edit2: Apparently simple array types are no-go, though. They seem to be replaced with
Google.Protobuf.Collections.RepeatedField<>
and other non-standard collections.
I also remember a couple other problems that made conversion harder for me: The mandate that methods have only one parameter (annoying but ultimately trivial to work around), and more importantly, the complete and total lack of session support.
-
Everyone knows about the pitfalls of automatic semicolon insertion in Javascript. But did you know about automatic backslash insertion? Me neither, but look at this:
console.log( "{abc".match(/\{/g) ); // [ '{' ] console.log( "{def".match(/{/g) ); // [ '{' ]
It's smart enough that if you need actual unescaped braces, it leaves them alone:
console.log( "baaac".match(/a{1,3}/g) ); // [ 'aaa' ] console.log( "baaac".match(/a\{1,3\}/g) ); // null
-
@sebastian-galczynski said in WTF Bites:
Everyone knows about the pitfalls of automatic semicolon insertion in Javascript. But did you know about automatic backslash insertion? Me neither, but look at this:
console.log( "{abc".match(/\{/g) ); // [ '{' ] console.log( "{def".match(/{/g) ); // [ '{' ]
That's just standard PCRE behavior:
Warning: If a braced quantifier is ill-formed, then the initial brace will be matched as a literal character instead, and the regular expression engine will continue after that character (e.g. {1,5.0} would be matched as literal characters instead of treated as a quantifier). This behavior is different from other regular expression constructs, which cause the engine to fail if they are ill-formed.
I guess they did this to improve compatibility with expressions that were originally written for other engines that often didn't support brace quantifiers.
-
My WTF of the day:
https://www.youtube.com/watch?v=XXqVHhXTFDo
I'll be very disappointed if Jeff Goldblum isn't the alien.
-
I'll be very disappointed if Jeff Goldblum isn't the alien.
Doing his Game Master character from Thor.
-
@Rhywden Jeff being singled out in the credits while also not appearing in the trailer: it's likely he will be.
When did IMDB stop listing all the character names along actors?
-
When did IMDB stop listing all the character names along actors?
Did it stop, or does it simply not know them yet because the movie does not screen yet?
-
@Bulb I've always assumed IMDB's data was provided by the movie producers themselves.
-
@Zecc Probably so. And the producers may not have published some of the character names yet to avoid spoiling the story.
-
When did IMDB stop listing all the character names along actors?
does it simply not know them yet because the movie does not screen yet?
Presumably. A couple of the actors have character names on the Asteroid City page, and other movies still have the character names.
-
Squeal, piggies!
-
Music for Zoom: Play music in your meetings
Why does this app exist? Who thought making people mumbling in far away places even more difficult to understand by covering their voices with music was a good idea?
-
@HardwareGeek said in WTF Bites:
Who thought making people mumbling in far away places by covering their voices with music was a good idea?
Can the music drown them out? Might be an improvement.
-
@loopback0 said in WTF Bites:
@HardwareGeek said in WTF Bites:
Who thought making people mumbling in far away places by covering their voices with music was a good idea?
Can the music drown them out? Might be an improvement.
I suggest harmonicas.
-
@Applied-Mediocrity said in WTF Bites:
@loopback0 said in WTF Bites:
@HardwareGeek said in WTF Bites:
Who thought making people mumbling in far away places by covering their voices with music was a good idea?
Can the music drown them out? Might be an improvement.
I suggest harmonicas.
Good thing you didn't say accordions, because then somebody would have to go to jail.
-
@HardwareGeek said in WTF Bites:
@Applied-Mediocrity said in WTF Bites:
@loopback0 said in WTF Bites:
@HardwareGeek said in WTF Bites:
Who thought making people mumbling in far away places by covering their voices with music was a good idea?
Can the music drown them out? Might be an improvement.
I suggest harmonicas.
Good thing you didn't say accordions, because then somebody would have to go to jail.
I almost did - but decided a harmonica is better. You can just have that sitting on your desk, ready, during a meeting.
-
@Applied-Mediocrity said in WTF Bites:
@loopback0 said in WTF Bites:
@HardwareGeek said in WTF Bites:
Who thought making people mumbling in far away places by covering their voices with music was a good idea?
Can the music drown them out? Might be an improvement.
I suggest harmonicas.
@boomzilla said in The Official Good Ideas Thread™:
Filed under: Humor with sophisticated references
-
@Applied-Mediocrity Imagine that, but instead of pulling a harmonica out of the pocket, you start unpacking a freaking accordion.
-
There better not be an accordion in that case
-
@Gern_Blaanston Accordion, motherhohner, do you play it?
-
@Gern_Blaanston said in WTF Bites:
There better not be an accordion in that case
Plot twist: the case is an accordion
-
@HardwareGeek said in WTF Bites:
@Applied-Mediocrity said in WTF Bites:
@loopback0 said in WTF Bites:
@HardwareGeek said in WTF Bites:
Who thought making people mumbling in far away places by covering their voices with music was a good idea?
Can the music drown them out? Might be an improvement.
I suggest harmonicas.
Good thing you didn't say accordions, because then somebody would have to go to jail.
Hurdy-gurdy?
-
@Tsaukpaetra said in WTF Bites:
@HardwareGeek said in WTF Bites:
@Applied-Mediocrity said in WTF Bites:
@loopback0 said in WTF Bites:
@HardwareGeek said in WTF Bites:
Who thought making people mumbling in far away places by covering their voices with music was a good idea?
Can the music drown them out? Might be an improvement.
I suggest harmonicas.
Good thing you didn't say accordions, because then somebody would have to go to jail.
Hurdy-gurdy?
EINSTRUMENTOFTORTURENOTMUSIC
-
I'm not sure I can trust your directions.
-
@DogsB where'd you get a picture of my mom? She's dead ffs.
-
I'm not sure I can trust your directions.
You'll arrive at some
unknown
place.
So, everything is ok.
-
@BernieTheBernie said in WTF Bites:
I'm not sure I can trust your directions.
You'll arrive at some
unknown
place.
So, everything is ok.I would say a place where someone'd steal all @DogsB 's money...but Ticketmaster's already done that.
-
@cvi
Marino Punk really is just a nice guy
-
The 'collaborative editing' feature in Clickup is satanic. I open a ticket, there's a link in the description. The description looks like normal text, with no obvious signs of being a textarea. I hover over the link, the cursor changes to 'pointer', as it should. I middle-click the link, and what happens? Instead of of opening the link in new tab, the X11 selection buffer gets pasted in the middle of the link, and immediately saved. Thank god there was only a bunch of some error logs in there.
-
@sebastian-galczynski said in WTF Bites:
X11 selection buffer gets pasted
From a middle-click?
Damn I would hate that passionately.
-
@Tsaukpaetra said in WTF Bites:
@sebastian-galczynski said in WTF Bites:
X11 selection buffer gets pasted
From a middle-click?
Damn I would hate that passionately.
Standard behavior. I actually use it a lot in a terminal, where ^C and ^V don't work.
The problem is not the buffer, but that there's an input which doesn't look like an input. You can also break this on Windows by selecting and accidentally dragging text. The extra misleading feature is that it starts looking like an input after you click on it, but under the hood it was always an input, just with the border hidden and mouse cursor changed from 'text' to 'default'.
-
@sebastian-galczynski said in WTF Bites:
Standard behavior. I actually use it a lot in a terminal
Yeah, I usually secondary click for that, which is why I'm surprised.
Maybe I'm the wrong one...
-
@sebastian-galczynski said in WTF Bites:
I actually use it a lot in a terminal, where ^C and ^V don't work.
FYI, in Linux land, paste is Shift-Ins
-
I believe Ctrl-Shift-V also works. Or maybe not for you, since this is Linux and there are gazillions of different terminal programs.
-
@Zerosquare said in WTF Bites:
I believe Ctrl-Shift-V also works. Or maybe not for you, since this is Linux and there are gazillions of different terminal programs.
I think it works in all of the terminal programs I use (which are the set of {whatever terminal is the default in whatever desktop environment is being foisted on me at the moment}).
-
@Zerosquare said in WTF Bites:
Or maybe not for you, since this is Linux and there are gazillions of different terminal programs.
There is only
zuul XULKonsole.
-
@TimeBandit said in WTF Bites:
@sebastian-galczynski said in WTF Bites:
I actually use it a lot in a terminal, where ^C and ^V don't work.
FYI, in Linux land, paste is Shift-Ins
In Linux land, paste is Ctrl-V like everywhere else. It's terminals that are special, and they are special in Windows too.
But Ctrl-V/Shift-Ins (usually both work) are clipboard paste while middle click is selection paste. The later is faster, and it's sometimes handy to have them separate.
-
It's terminals that are special
But, I was under the impression that Linux only has terminals
-
In Linux land, paste is Ctrl-V like everywhere else. It's terminals that are special,
Ctrl+shift+v for terminals. (Ct+Sh+C for copy too)
and they are special in Windows too.
Not in cmd. There, ctrl+C/V "just work". Tho I'm starting to be seriously tempted to set
because I keep doing the wrong thing when switching back/forth between systems...
-
In Linux land, paste is Ctrl-V like everywhere else. It's terminals that are special, and they are special in Windows too.
But Ctrl-V/Shift-Ins (usually both work) are clipboard paste while middle click is selection paste.
Shift+Ins
is selection paste at least in xterm and alacritty (haven't used anything else in a while). Makes sense to have both clipboard and selection available on the keyboard, too, instead of two key combinations doing the same thing, so I'd say terminals who implement it differently are Wrong™.
-
@TimeBandit said in WTF Bites:
@sebastian-galczynski said in WTF Bites:
I actually use it a lot in a terminal, where ^C and ^V don't work.
FYI, in Linux land, paste is Shift-Ins
Also in Windows, sometimes, ^C and ^V don't work but Shift-Ins does.
-
-
-
Status: Points if you know what's going on.
-
-
-
-
My WTF of the day
Login to Figma.
Click SSO
Go thru SSO login, verify on phone.
"Please enter the code we just emailed you"Great. 3FA.
-
ENWTF
It's called CSS flex-box, now.