WTF Bites
-
I didn't poke the ugly myself, but I worked with a guy that was responsible for some inhouse abomination where the database was case sensitive. I don't remember much about it but it seems like a great way to mess with people.
I thought that the case insensitive databases are case sensitive for identifiers in quotes (
""
or[]
), but that unquoted identifiers get either searched insensitively, or normalized. That is that"EMSG_V2"
and"emsg_v2"
can be different things, butEMSG_V2
andemsg_v2
cannot.That is the case for databases that conform to the SQL-99 (or later) standard.
Only with double-quotes though, no mention of square brackets AFAIK.
-
@BernieTheBernie said in WTF Bites:
Maybe I'm but it sure looks like it's joining the same table to itself using its own primary key as a foreign key. I don't know that accomplishes.I'd rather expect some kind of code rot.
Like different tables or different databases in the original version, which were later combined. But the duhveloper did not understand what this query was supposed to do at that era.Yeah, the
_V2
in the name there makes it seem likely that at some point in the past you had_V1
.
-
-
@boomzilla said in WTF Bites:
Yeah, the
_V2
in the name there makes it seem likely that at some point in the past you had_V1
.Of course, back then it was only known as
-
@boomzilla said in WTF Bites:
V1
In 1944 probably
That already was V-2.
E: Never mind, both were apparently `44.
-
@boomzilla said in WTF Bites:
V1
In 1944 probably
That already was V-2.
E: Never mind, both were apparently `44.
Although of course the story of the development of Imipolex-G starts much earlier.
-
@topspin That reminds me of a stupid thing I've remembered forever. One one of those stupid quiz shows (who wants to be a millionaire or whatever) at one point asked what the V in V-1, V-2 et al. stood for.
The candidate, after much deliberation, recalled that the V in VW stood for "Volk", and therefore decided that it should be "Volksbombe". I've not been able to unsee (unthink?) that particular interpretation since, and it still amuses me.
-
@topspin That reminds me of a stupid thing I've remembered forever. One one of those stupid quiz shows (who wants to be a millionaire or whatever) at one point asked what the V in V-1, V-2 et al. stood for.
The candidate, after much deliberation, recalled that the V in VW stood for "Volk", and therefore decided that it should be "Volksbombe". I've not been able to unsee (unthink?) that particular interpretation since, and it still amuses me.
That is a lot funnier if you've had the misfortune of being exposed to the German
newspaperrag BILD, who have advertised all theirplugssponsored products as Volks-Whatever. E.g., they have a shitty deal where they advertise certain PCs in their shitty paper, they will call it "Volks-Computer" or "Volks-Laptop" or similar.
Pic related:
-
@topspin This is the same "newspaper" which told us that the world would end in 13 years but just recently lambasted pretty much every scientist for having the gall to state that we might have a bit of a problem a bit sooner than they thought.
-
@topspin This is the same "newspaper" which told us that
the world would end in 13 years but just recently lambasted pretty much every scientist for having the gall to state that we might have a bit of a problem a bit sooner than they thought.earth's core is made up of pure gold
-
the database was case sensitive.
Yeah, snarky admin configured this one to be sensitive. It's a great test going from my dev machine to prod and seeing if I hand-typed anything....
-
@topspin This is the same "newspaper" which told us that
the world would end in 13 years but just recently lambasted pretty much every scientist for having the gall to state that we might have a bit of a problem a bit sooner than they thought.earth's core is made up of pure goldIt's called yellowpress for a reason.
-
@topspin That reminds me of a stupid thing I've remembered forever. One one of those stupid quiz shows (who wants to be a millionaire or whatever) at one point asked what the V in V-1, V-2 et al. stood for.
The candidate, after much deliberation, recalled that the V in VW stood for "Volk", and therefore decided that it should be "Volksbombe". I've not been able to unsee (unthink?) that particular interpretation since, and it still amuses me.
That is a lot funnier if you've had the misfortune of being exposed to the German
newspaperrag BILD, who have advertised all theirplugssponsored products as Volks-Whatever. E.g., they have a shitty deal where they advertise certain PCs in their shitty paper, they will call it "Volks-Computer" or "Volks-Laptop" or similar.Ah, the good old Robotron
-
@topspin I kinda would like to see a line of cars called Vendetta Wagons.
-
@topspin pure, magnetic, gold.
-
Games on Steam. Searched for Counter-Strike. Not far down before the results got into the special territory. Found this in the description for one of them:
A Bishojo Game released in 2019 under the "Milkypoco" brand has been reworked for the "PandaShojo" platform for players of all ages worldwide to enjoy.
And further down:
Some scenes in the game contain mild sexuality and strong language, and may not be suitable for minors or all age groups.
So, uh, is this game for everyone or not everyone?
-
So, uh, is this game for everyone or not everyone?
Yes. Depending on yourself.
-
What’s the best candidate result to go above the image gallery? A directly relevant page, or one with a subtly different name that someone might hypothetically end up reading through the whole article slightly confused before finally noticing the different spelling?
-
@kazitor Strange, I cannot reproduce that. Even when I search on google.com.au, it works correctly for me.
Try Bing.
-
-
There's another bug. The page says "Safe search: moderate", but still displays pictures of spiders.
-
@Zerosquare Bugs (heteroptera) are rather massive insects, and are not so often caught in spider webs. They are more dangerous for other insects like flies.
-
WTF?!?
Language: Java 11 (Android).
Minimal reproduction:AtomicBoolean foo = new AtomicBoolean(false); if (!foo.get()) { //this line will always be hit else { //this line will never be hit }
Why? The debugger reveals that
foo.get()
returns"false"
. Yes, a string value. Which, of course, is truthy.?
-
@Benjamin-Hall said in WTF Bites:
WTF?!?
Language: Java 11 (Android).
Minimal reproduction:AtomicBoolean foo = new AtomicBoolean(false); if (!foo.get()) { //this line will always be hit else { //this line will never be hit }
Why? The debugger reveals that
foo.get()
returns"false"
. Yes, a string value. Which, of course, is truthy.?
Except...maybe I'm (or the debugger is). No, it's functioning properly. Yes, the debugger says the value is stringly "false". But it's actually comparing it correctly after the get (!
false
==true
).
-
@Benjamin-Hall negating false, yields true. The debugger's stringification is misleading. Maybe try Terrapin Logo.
-
@Benjamin-Hall said in WTF Bites:
Yes, a string value. Which, of course, is truthy.
Not in Java. I don't care what lies your debugger is telling you, the result of that
get()
method is a primitiveboolean
(and, if you've not shared the variable with others, very likely alwaysfalse
, resulting in the behaviour you describe). The only boxed class that the!
operator could apply to is theBoolean
class, and that just extracts the value from the box and applies it to that.I'm sorry, but I think the problem here is with your expectation.
(Things can be weird inside the atomics, but they work right and exactly as they are defined to. It pays to not look too deeply.)
-
@Benjamin-Hall said in WTF Bites:
Yes, a string value. Which, of course, is truthy.
Not in Java. I don't care what lies your debugger is telling you, the result of that
get()
method is a primitiveboolean
(and, if you've not shared the variable with others, very likely alwaysfalse
, resulting in the behaviour you describe). The only boxed class that the!
operator could apply to is theBoolean
class, and that just extracts the value from the box and applies it to that.I'm sorry, but I think the problem here is with your expectation.
(Things can be weird inside the atomics, but they work right and exactly as they are defined to. It pays to not look too deeply.)
Yeah, it was just the debugger presenting it in a screwy fashion. And me not realizing that yes, !
false
is actually true, just as it should be.
-
@Benjamin-Hall said in WTF Bites:
It pays to not look too deeply.
Words of truth (or truthiness) that apply to many situations.
-
@HardwareGeek said in WTF Bites:
@Benjamin-Hall said in WTF Bites:
It pays to not look too deeply.
Words of truth (or truthiness) that apply to many situations.
Correct quote attribution also helps =) That's @dkf who said that.
-
@Benjamin-Hall Apologies to both of you. I just scrolled back until I saw what I wanted to quote. I guess I must have seen your quotation of @dkf's post, instead of the original, without realizing it.
Filed under: Posting on mobile is different
-
-
@HardwareGeek said in WTF Bites:
Filed under: Posting on mobile is different
Hitting "Quote" and editing down is easier...
-
Weirdest question I've ever been asked in a government form.
-
Weirdest question I've ever been asked in a government form.
Between "ill" and "nois" I'd say definitely the former.
-
-
Weirdest question I've ever been asked in a government form.
"DOES NOT APPLY": for people who weren't born in any day of the standard year.
-
Weirdest question I've ever been asked in a government form.
"DOES NOT APPLY": for people who weren't born in any day of the standard year.
"Born" is a pejorative term.
-
@topspin Zodiac signs exist just as much as months, colors, or square roots exist. I don't think there's any controversy there.
-
@topspin Zodiac signs exist just as much as months, colors, or square roots exist. I don't think there's any controversy there.
Next thing, they're going to ask my Thetan level and my favorite power ranger.
-
@topspin Zodiac signs exist just as much as months, colors, or square roots exist. I don't think there's any controversy there.
Next thing, they're going to ask my Thetan level and my favorite power ranger.
Don't forget your hogwarts house.
-
@topspin Zodiac signs exist just as much as months, colors, or square roots exist. I don't think there's any controversy there.
Next thing, they're going to ask my Thetan level and my favorite power ranger.
Don't forget your hogwarts house.
"Wit beyond measure is man's greatest treasure"
-
Next thing, they're going to ask my Thetan level and my favorite power ranger.
"We regret to inform you that the state of Illinois does not deal with aquariuses in the month of March, nor does it deal with people who like the red power ranger."
-
@topspin Zodiac signs exist just as much as months, colors, or square roots exist. I don't think there's any controversy there.
Next thing, they're going to ask my Thetan level and my favorite power ranger.
Pink, obviously.
-
@boomzilla I don't know anything about Thetan levels. Is pink high or low?
-
@Zecc ah, you have to pay for auditing to get that knowledge.
-
@boomzilla said in WTF Bites:
@Zecc ah, you have to pay for auditing to get that knowledge.
Friend Computer says you're not cleared to know that level exists. And thus you must report for disintegration.
-
"Wit beyond measure is man's greatest treasure"
And the Germans are broke.
-
Today's WTF reminded me of how to declare DTOs in C# for various protocols:
- SOAP with XML: You write normal classes with all members public and slap a few XML-related attributes on them.
- SOAP with JSON: You write normal classes with all members public and slap a few JSON-related attributes on them.
- WCF: You write normal classes with all members public and slap a few WCF-related attributes on them.
Suddenly .NET Core drops all of these, and tells you the future is...
- gRPC: Welcome to the world of custom string types, custom date&time types, and I think even custom integer types if you want to make them optional! Oh, and you have to declare them in another language with its own dedicated compiler.
Thank
Godthe community for CoreWCF.
-
Today's WTF reminded me of how to declare DTOs in C# for various protocols:
- SOAP with XML: You write normal classes with all members public and slap a few XML-related attributes on them.
- SOAP with JSON: You write normal classes with all members public and slap a few JSON-related attributes on them.
- WCF: You write normal classes with all members public and slap a few WCF-related attributes on them.
Suddenly .NET Core drops all of these, and tells you the future is...
- gRPC: Welcome to the world of custom string types, custom date&time types, and I think even custom integer types if you want to make them optional! Oh, and you have to declare them in another language with its own dedicated compiler.
Thank
Godthe community for CoreWCF.I can understand the common IDL. It does improve the compatibility between components written in different languages a bit and the special compiler isn't really a big deal as you just reference the
Grpc.Tools
package and include the IDL (.proto
) files and that's it.But custom data types? WHAT ĂžE FVCK?
… looking what it generates here … numbers look normal to me and so do strings, and we don't have any dates in the protobuf definitions here so I can't check those. The only thing that is custom is
bytes
(Google.Protobuf.ByteString
); I suppose, which is basically a wrapper aroundbyte[]
isn't enough because it can't be easily resized andList<byte>
isn't enough because it has or had performance issues.byte[]
that is immutable likestring
so you don't accidentally damage shared data.
Note that you could always do SOAP schema-first, and it had some benefits, because the generation from C# code (or any other code for that matter) does not support all features the schema has. But XML schema is an abomination and JSONSchema is only marginally better, so most people ended up generated them from the code, or not writing them at all and finding the mismatches at runtime in production. Protobuf on the other hand is reasonably friendly to write, so I'm fine with writing that and generating the structs.
That said, there is a lot of SOAP services out there and some of them won't be able to change to anything else due to backward compatibility reasons for centuries to come, so dropping the support altogether is .
-
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.