WTF Bites
-
@error but you'll need to kill them first, and then how will they hear you?
It's the kind of chat™ that doesn't include any talking back whatsoever to begin with. A dead body's eardrums will still vibrate, which is the best approximation to "hearing" you can expect from the perpetrator of this code anyway.
-
and your only clue is that the previous commit on that branch worked and the delta between the two is really small.
That is, you pray the diff is small...
-
@TwelveBaud said in WTF Bites:
if you don't put a slash after X: it assumes you mean "relative to the current directory on drive X", which is actually stored in a hidden X: environment variable.
Holy shit I completely forgot about that part and now I'm getting Vietnam flashbacks.
-
I'm getting Vietnam flashbacks.
For some
{\Huge
}
, don't be shy to use Verdun. Hell, why not take it all the way to Hastings?
-
why not take it all the way to Hastings?
Piker. Go big or go home. Go back to Η ΜΑΧΗ ΤΩΝ ΘΕΡΜΟΠΥΛΩΝ. Hail Sparta!
-
@marczellm said in WTF Bites:
@Bulb You can now distribute any Win32 app in the Windows Store.
That's good. I've missed that.
Do you know how the installation works then?
I think there are at least 3 ways it can work:
- The developer can run their own installer through a "Store converter" resulting in a MSIX package
- The developer can get rid of their installer and build the app directly into an APPX package
- The developer can upload a conventional MSI installer into the store. When the user clicks Install, the Store runs the MSI install in the background and then forgets about the fact that they ever met. This has two downsides: first, the Store doesn't know it installed that app, so if you visit its Store page again, you can rerun the installation any number of times. Second, the app does not get automatic updates. This is the case with GIMP and Discord for example.
-
Or more exactly, it chokes if you try to
cd
an UNC path. But if you usepushd
instead, it will "map network drive" to the highest letter available and unmap when youpopd
.What happens when I already have 26 drive letters? Asking for a friend.
I'm getting Vietnam flashbacks.
For some
{\Huge
}
, don't be shy to use Verdun. Hell, why not take it all the way to Hastings?The soundtrack sucks, nothing beats the iconic Fortunate Son.
-
@Kamil-Podlesak said in WTF Bites:
What happens when I already have 26 drive letters? Asking for a friend.
-
@Kamil-Podlesak said in WTF Bites:
What happens when I already have 26 drive letters? Asking for a friend.
:\Windows>
-
@Kamil-Podlesak said in WTF Bites:
Or more exactly, it chokes if you try to
cd
an UNC path. But if you usepushd
instead, it will "map network drive" to the highest letter available and unmap when youpopd
.What happens when I already have 26 drive letters? Asking for a friend.
I'm getting Vietnam flashbacks.
For some
{\Huge
}
, don't be shy to use Verdun. Hell, why not take it all the way to Hastings?The soundtrack sucks, nothing beats the iconic Fortunate Son.
Grunwald has best soundtrack.
-
Grunwald
Really,
Grunwald
(=german forgreen forest
)?
I guess we ought to tell Kaczynski to rename that place.
Zielonylas
?
Or rather something more heroic, in the line offucked germany
?
-
@Gustav uh huh sure and Chopin was the best pianist right?
-
@BernieTheBernie Lithuanians did actually get butthurt enough to rename it to Žalgiris (literally "green forest").
-
@BernieTheBernie Lithuanians did actually get butthurt enough to rename it to Žalgiris (literally "green forest").
Fucking litvaks.
-
I don't know how, but I managed to cause NodeBB to treat my desktop browser as a mobile browser, so the styling looked all weird and big and the top bar went into autohide mode causing much annoyance. It did fix itself after a forced refresh. I dunno why, but probably related to the same misfeature of it treating an iPad in landscape as a desktop browser.
-
-
@Atazhaia Ah, new versions of browser sniffing.
What can go wrong?
-
Fucking three pixies. Even if I thought size mattered, it apparently does not.
-
@BernieTheBernie said in WTF Bites:
@Atazhaia Ah, new versions of browser sniffing.
What can go wrong?
Seeing as the user agent string is such a well established standard which gives clear identification of the browser and environment, I really do not know how this could go wrong ever!
-
It must be packed full of useful information to be so long!
-
It must be packed full of useful information to be so long!
Yeah, baby. It's about 17 TB each time, but it ain't self-extracting, you know …
-
Specifically, either window width or zoom level. I don't think nodebb uses user agent detection for this at all.
-
Fucking three pixies. Even if I thought size mattered, it apparently does not.
-
Was gonna look something up and...
I can get a keyboard with macro keys on my macro keys? This will make me even more efficient! Thanks, Corsair!
-
-
Fucking three pixies.
You never heard of a Lollipop Mountain Shishkebab?
-
This just became my all time favorite YouTube video title:
"10 Celebrities Who Didn't Know Where Drummers"
-
@Gern_Blaanston I still don't know where drummers. Who does?
-
Fucking three pixies. Even if I thought size mattered, it apparently does not.
Magic is fucking amazing.
-
TIL (or rather reminded myself) that you can't put NaN in JSON. This made me very unhappy, so I decided to find the root cause of this issue. Turns out, this is due to an intentional decision by Douglas Crockford, who is full of shit and thinks he's smarter than IEEE:
But wait, it gets better. After all, in addition to Crockford, we also have the big brains at Google. In JS,
JSON.stringify
replaces NaN, Infinity and -Infinity with null. And I can live with that in this particular case. So what do I do with Gson, a library published by Google, supposedly better than previous Java JSON serializers, to behave similarly?Well, the documentation specifies that you can call
GsonBuilder.serializeSpecialFloatingPointValues()
so that it doesn't throw. It doesn't mention what the output is. Well, I can tell you what it is, so that you don't have to check:{"x": NaN}
Which of course crashes JSON.parse.
Is there a way to output null? Sure there is, you just need to write a 50-loc AdapterFactory. OK Google.
-
@HardwareGeek said in WTF Bites:
@Gern_Blaanston I still don't know where drummers. Who does?
I don't know how drummers
I don't know when drummers
I don't know why drummersThe mystery deepens.
-
-
God fucking dammit English Wikipedia got updated to that awful French layout. It looks absolutely horrendous in 1440p.
-
@sebastian-galczynski not serializing garbage sounds reasonable. What’s the issue?
-
@HardwareGeek said in WTF Bites:
@Gern_Blaanston I still don't know where drummers. Who does?
There drummers.
-
God fucking dammit English Wikipedia got updated to that awful French layout. It looks absolutely horrendous in 1440p.
Try it at 1440bps instead.
-
@boomzilla said in WTF Bites:
@HardwareGeek said in WTF Bites:
@Gern_Blaanston I still don't know where drummers. Who does?
There drummers.
<cymbals crash in the middle distance>
-
-
@HardwareGeek said in WTF Bites:
@Gern_Blaanston I still don't know where drummers. Who does?
They're the ones in back ffs. Behind y'know, the drums, hth
-
@sebastian-galczynski not serializing garbage sounds reasonable. What’s the issue?
There are applications where ∞ and NaN are significant, and should be serialized as is. Much like you may not want an empty string to be serialized as NULL, or the opposite.
Filed under: The I-Hate-Oracle category is
-
Here's a real-world example: let's say you want to store the value returned by some sensor measuring a physical quantity.
You could encode the result like this:
•123.45
: quantity measured is 123.45
•+∞
: quantity is higher than highest measurable value
•-∞
: quantity is lower than lowest measurable value
•NaN
: the sensor is disconnected or returning an error condition
•null
: the sensor does not exist in the current configurationAnother example is storing state for debugging purposes. A ∞ / NaN may be exactly what you're looking for.
-
@topspin The issue is that NaN is a valid value of type double, as defined by IEEE 754. As we know, numbers in JS (and in all JSON parsers I've ever used) are of type double. So you have a well-defined type on both sides. Then why are some values not serializable? As far as types and values go, they could as well not serialize the number 5. It's an additional hurdle with zero benefit, a quirk you constantly trip over, just like those empty strings in Oracle. There must be something wrong with the brain of a man who designs such things.
-
@Zerosquare said in WTF Bites:
•
-∞
: guitar
-
@topspin comes from the land of C++, which thinks it’s smarter than IEEE regarding Infinity
edit: I walk away for two minutes and two people have interjected between me and the post I was ready to follow on from
-
@topspin comes from the land of C++, which thinks it’s smarter than IEEE regarding Infinity
It just does IEEE-754 [if supported].
-
There's apparently something called
std::numeric_limits<double>::infinity()
which may or may not work, due to being underspecified.
-
@sebastian-galczynski said in WTF Bites:
There's apparently something called
std::numeric_limits<double>::infinity()
which may or may not work, due to being underspecified.Well, if you're on one of those old, crazy machines that don't support IEEE, what else are you gonna do? Otherwise, it's what you'd expect.
-
@sebastian-galczynski said in WTF Bites:
As far as types and values go, they could as well not serialize the number 5.
We already can't store most numbers, so who's going to miss a few more?
FWIW, my limited experience with JSON is that it's needlessly pedantic and inflexible about shit that doesn't matter, while still being hell-bent on being a pain to parse and work with.
-
FWIW, my limited experience with JSON is that it's needlessly pedantic and inflexible about shit that doesn't matter, while still being hell-bent on being a pain to parse and work with.
The lack of comments and needless autism about commas are a pain, as is the lack of integers. While Crockford envisioned JSON outliving IEEE specs, it already crumbles due to improvements in JavaScript:
Uncaught TypeError: Do not know how to serialize a BigInt at JSON.stringify (<anonymous>)
-