WTF Bites
-
@Carnage No, it stands for Ginormous Bytes.
-
@DCoder holy shit. I'm amazed anyone took that decision. Must be due to "national security"
-
@JBert Still better than 'gibibytes', which it actually does stand for.
-
@DCoder Well, this clears the accusation that Huawei products contain backdoors for the Chinese government. Clearly the doors are equally open to every government.
-
@Bulb The HN discussion for that clusterfuck went on a tangent about User Agents, and I learned what the upcoming Edge-but-based-on-Chromium will call itself:
Source: HN
Did Microsoft take the edge off their own browser name with this update? As it's apparently just called "Edg" now.
-
@Atazhaia for the same reason why Windows 8.1's successor wasn't Windows 9.
-
@DCoder I don't understand why User-Agent is still a thing. Why not make it deprecated, agree on a generic string to send to old websites, then make all browsers send the same one?
If everyone's going to lie, at least make it official.
-
@pie_flavor said in WTF Bites:
@JBert Still better than 'gibibytes', which it actually does stand for.
Gigglebytes.
-
@anonymous234 said in WTF Bites:
@DCoder I don't understand why User-Agent is still a thing. Why not make it deprecated, agree on a generic string to send to old websites, then make all browsers send the same one?
Market share statistics.
-
@anonymous234 said in WTF Bites:
I don't understand why User-Agent is still a thing.
Just for shits and giggles Hypatia actually uses a custom user agent. It's used to identify the client version when talking to the API. Well, it's not really used, just noted.
-
@Gąska So just add a Real-User-Agent header. Genius!
-
-
@loopback0 said in WTF Bites:
I checked the app store to see what amazing things I should be enjoying.
1 - The current version of the Facebook iOS app is 213.0. TWO HUNDRED AND THIRTEEN.
2 - The app store description on the update is the same as the last 10 versions.We update the app regularly so we can make it better for you. Get the latest version for all of the available Facebook features. This version includes several bug fixes and performance improvements. Thanks for using Facebook!
3 - The App Store page shows the app as 450MB. That's larger than the macOS version of Eclipse with all the J2EE stuff installed.
4 - According to my iPhone it's 264MB.I'm pretty sure I've made almost exactly the same post
two months80 versions ago.
-
In the first version of the software, there were 70 full copies of 4 different OpenSSL versions
Holy shit, I didn't know anyone could fuck up that hard even if they tried.
-
Holy shit, I didn't know anyone could fuck up that hard even if they tried.
YMBNH
-
-
@r10pez10 the pass itself is $60.
-
-
Status: Can I tell you where I have installed the java runtime? No? Ok fine...
(Attempting to un-tick the box gives you a nastygram )
-
-
open source software
Imagine my shock
-
open source software
Imagine my shock
Well, yes, it's not really shocking to see it in open source - but it would be equally unsurprising to see it in closed source.
-
@Tsaukpaetra said in WTF Bites:
Can I tell you
Status: Can I tell you I don't use Git and therefore would like you to not install it?
No?
Okay fine...
-
@Tsaukpaetra said in WTF Bites:
No?
Let's jank the install real quick and forge onward by installing the "doesn't match CRC" file it downloaded....
Note:
Vim is the default editor for Git for Windows only for historical reasons, and it is highly recommended to switch to a modern GUI editor instead.THEN WHY THE FUCK DID YOU ATTEMPT TO MAKE THAT THE DEFAULT BY DEFAULT?!?!?
-
@Tsaukpaetra maybe this is the bit that got corrupted?
-
@Tsaukpaetra maybe this is the bit that got corrupted?
Hold on, I need to git reset hard lizardbrain...
-
Status: TIL you can be rate limited in getting tokens added to your account.
Guess they got annoyed at people who don't carry around their subway loyalty card everywhere...
-
@Tsaukpaetra said in WTF Bites:
WHY THE FUCK
GODAMN WHAT THE SHIT YOU INSTALLED THAT VERSION FUCKING SHIT CRAP PISS WHARGLABABERTL!
WHAT THE HELL!!!!
Edit: Wait, didn't it say it only needed 1.6 or higher? What garbage...
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
No?
Let's jank the install real quick and forge onward by installing the "doesn't match CRC" file it downloaded....
Note:
Vim is the default editor for Git for Windows only for historical reasons, and it is highly recommended to switch to a modern GUI editor instead.THEN WHY THE FUCK DID YOU ATTEMPT TO MAKE THAT THE DEFAULT BY DEFAULT?!?!?
It tells you right there: "for historical reasons."
-
open source software
Imagine my shock
Have you seen the Java installer? (The Oracle one)
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
WHY THE FUCK
GODAMN WHAT THE SHIT YOU INSTALLED THAT VERSION FUCKING SHIT CRAP PISS WHARGLABABERTL!
Maybe it’s a Huawei product and it installed... all the versions.
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra said in WTF Bites:
No?
Let's jank the install real quick and forge onward by installing the "doesn't match CRC" file it downloaded....
Note:
Vim is the default editor for Git for Windows only for historical reasons, and it is highly recommended to switch to a modern GUI editor instead.THEN WHY THE FUCK DID YOU ATTEMPT TO MAKE THAT THE DEFAULT BY DEFAULT?!?!?
With "for historical reasons" they mean that they can't stomach the thought of having hundreds of Vim users fly into a rage and spam their mailinglist when the default got changed.
However, someone wanted to be helpful to normal people and just added the checkbox + warning text instead.
-
Pennsylvania's online automobile registration:
Why would I pay an extra two dollars (much less multiple times!) in order to get a duplicate of a document that I will be receiving as a PDF in my email? I can just print off the original as many times as I want.
-
Check out this buggy and obviously wrong snippet of code I wrote:
if (!process.HasExited) { process.Kill(); }
Ha ha I'm such a moron right?
-
@anonymous234 said in WTF Bites:
Check out this buggy and obviously wrong snippet of code I wrote:
if (!process.HasExited) { process.Kill(); }
Ha ha I'm such a moron right?
That looks (unfortunately) correct, depending on how you started.... wait....
-
@Tsaukpaetra I thought so too but it's a classic case of race condition: if the process exits before the process.Kill() it throws InvalidOperationException.
So now I need yet another try {} catch {}.
I wish I could just write@ process.Kill()
to suppress common errors.
-
@anonymous234 said in WTF Bites:
Check out this buggy
-
@anonymous234 said in WTF Bites:
I wish I could just write
@process.Kill()to suppress common errors.and .Net would do the sensible thing of not throw an exception and instead return a boolean if someone cares.
-
@Zecc That would probably be better. Or at least provide the classic TryKill().
The line between what's an exception and what's just a different result is still too blurry for my comfort.
-
@anonymous234 said in WTF Bites:
I wish I could just write @ process.Kill() to suppress common errors.
Do you want
@Application.Run()
? Because that's how you get@Application.Run()
.Now, I agree exceptions do not make sense in many cases and writing a try-catch block for every such little thing is a chore that also harms code readability (among other things). But I have no serviceable idea what the solution should look like (inb4 with Rust).
-
@Applied-Mediocrity said in WTF Bites:
But I have no serviceable idea what the solution should look like (inb4 with Rust).
Put it into async void method, where exceptions are swallowed. Problem solved.
-
@MrL
I mean more in a way (if at all possible) that helps with the ages old problem that morons will happily swallow all exceptions just to get the program to run.I have come to use the following code (and its variations) where
Action
is (usually) a one-liner, but it's still unwieldy, ugly and expensive.public static bool Try(Action Action, Type Expected = null) { try { Action?.Invoke(); return true; } catch (Exception Ex) when (Ex.GetType() == Expected) { return false; } }
-
@Applied-Mediocrity
Ah, you want to know if exception was thrown. Then there's no way around it.
You're doing something that can potentially blow up - it will be ugly and expensive.
-
@anonymous234 said in WTF Bites:
The line between what's an exception and what's just a different result is still too blurry for my comfort.
It's not blurry. It just depends on what you're actually doing, and can't really be 100% generic. Working with subprocesses is usually like that…
-
@anonymous234 said in WTF Bites:
@Zecc That would probably be better. Or at least provide the classic TryKill().
The line between what's an exception and what's just a different result is still too blurry for my comfort.
But with other TryX functions, if the "try" failed it normally means the result is not what you wanted. In this case, if you get an exception because the process already exited, that was the exact result you wanted anyway. Most likely you don't care.
-
@anonymous234 said in WTF Bites:
The line between what's an exception and what's just a different result is still too blurry for my comfort.
It's not blurry.
In IBM MQ it is.
Fetch message from empty queue: exception.
Check if queue is empty? Not possible.I should add a trigger warning to this, shouldn't I?
-
@MrL
Or more precisely - I do want to know if what I had asked the computer to do was improper, incorrect or impossible, but at the same time I believe that neither of those conditions (nor any combination thereof) in that particular case are exceptional, viz., it does not (and should not) change the program state, correctness of data and, to a certain degree, user experience(**).I also believe that in some other case perhaps the very same thing I asked before may be or may have become exceptional and should be handled (or not) accordingly.
An orthogonal, but not negligible problem: who's to say I have been correct in my calculations.
In other words:
Nay exceptions - if I don't like what the message says, burn the message, consequences be damned.
Yay exceptions - if I don't like what the message says, shoot the messenger, consequences be damned.In yet another sort of words, continuing what @anonymous234 said in WTF Bites:
The line between what's an exception and what's just a different result is still too blurry for my comfort.
It's not only too blurry, it often actively changes its opacity depending on things being done, and future general-purpose programming language and platform designers would do well to somehow accommodate this fact of life. Even if mathematically it does not make sense to calculate something and discard the result, we've made shit complex enough that it often fails without apparent reason and we can't afford to care.
Is there a practically possible way (and a better one than those available presently) between these two blanket approaches?
-
@Applied-Mediocrity said in WTF Bites:
Is there a practically possible way (and a better one than those available presently) between these two blanket approaches?
I get what you're saying. I don't know of any better way unfortunately.
-
Fetch message from empty queue: exception.
Check if queue is empty? Not possible.Lovely… though it's correct on one level in that retrieves can't actually be guaranteed to succeed from queues that have multiple consumers; there's an inherent race condition.
-
@Tsaukpaetra said in WTF Bites:
Status: Can I tell you where I have installed the java runtime? No? Ok fine...
In your roaming appdata directory?