WTF Bites
-
@DogsB at least some abstract factory should be involved.
-
@DogsB at least some abstract factory should be involved.
One that will produce such a method for any boolean value on demand.
Actually, that needs abstracting. What about other types?
-
I wonder what java developers would do.
Predicate<Boolean> isFalse = b -> !b;
Often it will be possible to omit the type as it will be obvious (to the compiler) from context.
-
@dkf No, that's equivalent of
let is_false = |b| !b;
which clearly wouldn't have cut it here or he'd done it. Either he needed a function, not a closure (in Java you can't reference a static method at all; though then he could have just used the
!
operator's long name<&bool as Not>::not
) or he needed the name as a top-level item. presumably to be consumed by some macro-generated code. As inYeah, it's something to do with functions automatically called by the serialization library that determine whether to serialize an element or not.
-
-
@dkf That's not a valid expression. It doesn't return a value—a reference—that you could invoke later.
-
@dkf That's not a valid expression. It doesn't return a value—a reference—that you could invoke later.
(again)
It is a method reference, either to a static method or to an unbound instance method, and it totally is a valid expression allowed by the language grammar. It evaluates to a thing that can be invoked in the meaningful way for how it is used (e.g., if it is a
Predicate
, you can calltest()
on it).
-
Thanks Microsoft Store, very informative
-
@hungrier Also, not a WTF but (very) slightly amusing thing that I noticed while waiting for anything to happen (clicking the spinner doesn't cancel, retry or anything)
-
@dkf Ok, I'm way behind on Java then. Didn't use it for a long while.
-
@dkf Ok, I'm way behind on Java then. Didn't use it for a long while.
It was part of Java 8, along with lambdas. They're apparently very efficient in recent versions.
-
@dkf sometime in the next few years I might get to move up from Java 8. I have no idea about the efficiencies of its lambdas but it's damn sure nice to have them. All my performance problems are DB related.
-
@boomzilla My experiments pointed to Java and C++ being fairly similar in performance. C++ had the edge for low jitter, and Java did very well for raw speed (once warmed up, but that was a negligible part of the overall thing I was testing). My guess is that it is possible to write C++ code that is faster than Java, but not at all easy.
-
@LaoC I guess there could be situations where you need it as a callback. Should be a lambda though, if rust supports those.
It does support lambdas, but lambda is an object with a call method, and while I'm sure there was a proposal that a lambda that does not actually capture anything should be convertible to a function reference, I'm not sure it was actually implemented.
Yes it is actually implemented and has been for ages, so there's no reason to ever, ever, ever write that
is_false
function.
-
@LaoC I guess there could be situations where you need it as a callback. Should be a lambda though, if rust supports those.
It does support lambdas, but lambda is an object with a call method, and while I'm sure there was a proposal that a lambda that does not actually capture anything should be convertible to a function reference, I'm not sure it was actually implemented.
Yes it is actually implemented and has been for ages, so there's no reason to ever, ever, ever write that
is_false
function.Which is why it's a built-in!
-
@boomzilla My experiments pointed to Java and C++ being fairly similar in performance. C++ had the edge for low jitter, and Java did very well for raw speed (once warmed up, but that was a negligible part of the overall thing I was testing). My guess is that it is possible to write C++ code that is faster than Java, but not at all easy.
Cometh the next step: someone has to write codez.
And where to do that fastest?
Microsoft Visual Studio.Btw: do not look into eclipse all day without protecting your eyes!
-
@LaoC I guess there could be situations where you need it as a callback. Should be a lambda though, if rust supports those.
It does support lambdas, but lambda is an object with a call method, and while I'm sure there was a proposal that a lambda that does not actually capture anything should be convertible to a function reference, I'm not sure it was actually implemented.
Yes it is actually implemented and has been for ages, so there's no reason to ever, ever, ever write that
is_false
function.You must be missing something. He clearly stated it’s a function he had to write (also, the closing brace two lines above).
-
Azure notification emails.
I know it's hard for a struggling mom-and-pop store just starting out, but maybe Azure could check which, if any, of the 762873683 resources that my work account is associated with are using TLS 1.1. I vaguely recall switching some of them off of it last year when I got a similar notification, but maybe I missed some? The Azure auto notification email bot knows to send me that notification, maybe it could put the names of the affected resources in the email.
Ah well, maybe it's just a generic email that gets blasted out to everyone. They send it out once, and not twice within a couple hours on Sunday like they might do if it was some process that was churning through individual resources and checking if they're affected. Image unrelated
-
knows to send me that notification,
Not necessarily
Ah well, maybe it's just a generic email that gets blasted out to everyone.
This. And it says so if you RTFM. 💁
-
@Tsaukpaetra said in WTF Bites:
it says so if you RTFM
-
I know it's hard for a struggling mom-and-pop store just starting out
The other day I had a "Product & Service Notification" from Salesforce. The subject mentioned one product feature that needed attention but the content of the email referred to a completely different feature.
I assumed they'd got the subject wrong, but they sent a correction mail later confirming that the subject was correct but the entire content was wrong.
-
@loopback0 I vaguely recall something like that happening with Smartbear or someone. They sent an email that had nothing to do with the subject, and similarly sent a correction.
Fake edit: It was surprisingly easy to find
-
The Azure auto notification email bot knows to send me that notification
... and it says ...
because you're an Azure customer.
I.e. also customers who are not affected at all by that change receive the notification.
Hey, they are a small company, and trying hardly to do their best. Better warn a customer who is not affected, than miss an affected customer.
-
-
Notification from Todoist:
"0 projects were out of sync. We fixed the issue."Whew, I sure am glad that we have this behind us.
-
Well done, Chrome. I think I visited that webpage a bit more recently than 1601 AD
-
Status: Linux here is a bit of a bastard child. Not well supported or desired, at least from IT perspective.
Recently it was given as a new item that we now have IT approved "Hardware Diagnostic Testing Tool Linux Fedora"
It's literally just the live installer image for Fedora Workstation 38.
And the "instructions" on how to use the tool? Yeah, it's basically stuff like "If you see image on screen, screen is working. If you click Wifi icon in the tool tray, wifi is working"
Um, what if there are devices not recognized by the base image that need drivers or someshit?
This is a new kind of theater I don't often see.
-
@Tsaukpaetra said in WTF Bites:
If you click Wifi icon in the tool tray, wifi is working
-
@TimeBandit said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
If you click Wifi icon in the tool tray, wifi is working
Fucking. Literally.
-
@Tsaukpaetra Not fucking literally. The detail about showing available networks is kind of important.
The way I interpreted your previous post, the wifi icon merely appearing was an indication of the wifi working; and conversely, if the wifi weren't working you wouldn't get an icon (which is stupid).
-
@Tsaukpaetra said in WTF Bites:
Fucking. Literally.
You appear to misunderstand one of those two words.
Filed under:
-
@Tsaukpaetra Not fucking literally. The detail about showing available networks is kind of important.
It's a side effect, and not actually indicative if Wifi is actually working. I can still see networks using a 802.11b adapter. Doesn't mean it's "working" in the context of what a user expects.
The way I interpreted your previous post, the wifi icon merely appearing was an indication of the wifi working; and conversely, if the wifi weren't working you wouldn't get an icon (which is stupid).
This is the implication as well. The same with Ethernet: If you get an icon it's considered working whether you have a carrier detected or not.
The example image clearly says "Cable unplugged" yet the training text says this is considered "connectivity".
For me, "working" implies functionality beyond "is detected as a thing you have".
@HardwareGeek said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
Fucking. Literally.
You appear to misunderstand one of those two words.
Filed under:
I'm reading porn. Just because it doesn't get your personal rocks off doesn't mean it doesn't work for someone else (and not necessarily me).
I'm very confident that the team that produced this is extremely "happy" with themselves.
-
Status: Attempting to debug a Microsoft Power Apps "app". All it is supposed to do is take a form of data (inputs populated by the auto-generator!) and submit it to Sharepoint as a new record. Fails silently.
Luckily there's a Monitor that lets you view detailed events of what happened in a "play" session...
Ah. Helpful.
No no no, don't tell me what the data you attempted to submit was. The error? Nah, we don't actually need it. Http request? What's that?
Fuck you, Microsoft, for taking what should be a brain-dead toy and making it dead-brain garbage.
-
@Tsaukpaetra said in WTF Bites:
It's a side effect, and not actually indicative if Wifi is actually working. I can still see networks using a 802.11b adapter. Doesn't mean it's "working" in the context of what a user expects.
[,,,]
The same with Ethernet: If you get an icon it's considered working whether you have a carrier detected or not.As a user myself, if I get an icon I expect it to reflect whether it's "working" or not. In particular this means there should be an icon telling me when it's not connected.
Windows fails me on this at times, but it's mostly accurate.
@Tsaukpaetra said in WTF Bites:
The example image clearly says "Cable unplugged" yet the training text says this is considered "connectivity".
Yes, as in "you connectivity is: none". See also: volume icon telling me my sound is muted.
The issue here is the text says "If connected via Ethernet cable" and the image does not match this situation. But we can be generous and interpret that as "If intending to connect via Ethernet cable" instead.
-
As if on cue, Windows decided to disconnect shortly after I posted above.
(I've reconnected before posting this, obviously)
-
I disabled AdBlock on YouTube because of their new policy, and this is the ad they show me
-
https://www.youtube.com/shorts/C3bTYnsGA4U
"Two years after its release there are 400 million devices running Windows 11.
That sounds like a lot, but Windows 10 took twice as less time to reach that same number."
-
@TimeBandit said in WTF Bites:
I disabled AdBlock on YouTube because of their new policy, and this is the ad they show me
A company that makes an ad blocking program is paying to advertise on YouTube, a platform whose official policy is that they do not allow ad blocking.
And the just keep rolling along.
-
@Gern_Blaanston Alphabet will happily take the money - after all, it’s not necessarily in non-compliance, because people like me pay for Premium but also still run ad block elsewhere.
-
@Arantor Or people might block ads on some pages but whitelist them on the top 10 most ad-infested sites on the internet.
-
@PleegWat people
-
@Gern_Blaanston said in WTF Bites:
A company that makes an ad blocking program is paying to advertise on YouTube
That sounds like absolutely perfect targeting. If you see this ad, you are definitely in the demographic that needs an adblocker.
Money well spent.
-
At least they realize the degree of customer service their whales expect.
-
@Gern_Blaanston I love English language quirks.
-
At least they realize the degree of customer service their whales expect.
Eva 02 was the gay one.
weeeeeeeeeeb!!!
-
@Gern_Blaanston said in WTF Bites:
@TimeBandit said in WTF Bites:
I disabled AdBlock on YouTube because of their new policy, and this is the ad they show me
A company that makes an ad blocking program is paying to advertise on YouTube, a platform whose official policy is that they do not allow ad blocking.
And the just keep rolling along.
Wait until you see the sexy sexy ads that would normally be flagged for not following community guidelines!
-
their whales
I'll take a misprint! Knowing collectors the value will skyrocket at some point!
-
" draws inspiration from the anime series “Evangelion.”"
It's utter shit? Or just the capacitors whine all the time?
-
" draws inspiration from the anime series “Evangelion.”"
It's utter shit? Or just the capacitors whine all the time?
You just don’t understand eva. It was ahead of its time and he couldn’t complete his vision in just one season. He needed more time and a bigger budget. Half of the Shinji arc had to be cut for time constraints. You need an iq of 77387 to just understand the corners he was scratching at.
I still think its funny that he fucked up the ending so badly it struck Japan retarded. And then he repeated the trick two decades later!
-