WTF Bites
-
6'4 in cm
E_NO_REPRO
use superior region?
-
@Tsaukpaetra Mobile is different
(that said, I do get the exact view and even the same "people also ask" questions even though I'm in inferior region)
-
@Applied-Mediocrity said in WTF Bites:
@Tsaukpaetra Mobile is different
(that said, I do get the exact view and even the same "people also ask" questions even though I'm in inferior region)
We must go deeper!
-
Today's pet peeve: Visual C++'s "conditional expression is constant" warning.
Yes, Visual Studio, this expression is constant at runtime, I'm fully aware of this fact, tyvm. It does, however, include a member constant from a template argument, so it may very much not have the same value for all specializations at compile time. So could you pretty please STFU, do your damn job and just optimize that thing away after specialization, instead of making me write half a novel to work around that shit?
Pity I'm not payed by line of code.
-
if const( expr )... no wait, that wasn't the right constif consteval... at least this one exists, but it's not itif constinit... nope, they've not putconstinit
into that context (yet)if constexpr ... yeah, that indicates to the compiler that it really should do what compilers have been doing for ages anyway.
-
@ixvedeusi Obviously, you're supposed to add more template meta-programming so that the compiler only ever sees the specialization it needs, and your coworkers have no chance of ever understanding where anything is happening.
Also improves xkcd://compiling.
-
if constexpr
BEEP! 'if constexpr' is a C++17 language extension!
Legacy code, got some ancient Linux distros to support still, with their associated ancient GCC versions.
-
Obviously, you're supposed to add more template meta-programming so that the compiler only ever sees the specialization it needs
Get better coworkers.
-
Get better coworkers.
Wouldn't we all love that. It would solve so many problems. But it would create another one. All the WTFs we post would have to go in the coding confessionals thread; we couldn't put the blame on our cow-orkers any more.
-
@HardwareGeek said in WTF Bites:
It would solve so many problems. But it would create another one. All the WTFs we post would have to go in the coding confessionals thread; we couldn't put the blame on our cow-orkers any more.
A sacrifice I'd be willing to make.
-
@HardwareGeek said in WTF Bites:
Get better coworkers.
Wouldn't we all love that. It would solve so many problems. But it would create another one. All the WTFs we post would have to go in the coding confessionals thread; we couldn't put the blame on our cow-orkers any more.
Or you go the entrepreneur route and then you're the only one responsible for the quality of your cow-orkers. Though I'm sure if none of the good ones want to work for you it's just a cosmic conspiracy and not any indication about your personal qualities
-
@HardwareGeek said in WTF Bites:
Get better coworkers.
Wouldn't we all love that. It would solve so many problems. But it would create another one. All the WTFs we post would have to go in the coding confessionals thread; we couldn't put the blame on our cow-orkers any more.
You have coworkers? I thought you were dead.
-
@Gribnit he got better.
-
@ixvedeusi said in WTF Bites:
if constexpr
BEEP! 'if constexpr' is a C++17 language extension!
Legacy code, got some ancient Linux distros to support still, with their associated ancient GCC versions.
Time to go back to
#define
.
-
@boomzilla said in WTF Bites:
@Gribnit he got better.
-
@Tsaukpaetra what's an inch-centimeter? Is somebody selling real estate to expatriate roaches?
because if they are... (shakes fist)
-
@ixvedeusi said in WTF Bites:
if constexpr
BEEP! 'if constexpr' is a C++17 language extension!
Legacy code, got some ancient Linux distros to support still, with their associated ancient GCC versions.
Time to go back to
#define
.But that requires a preprocessor!
-
-
@Tsaukpaetra what's an inch-centimeter? Is somebody selling real estate to expatriate roaches?
because if they are... (shakes fist)
It's how far a swallow can spit when swung off a trebuchet.
-
@boomzilla said in WTF Bites:
@Gribnit he got better.
Pet Peeve of the Day: Hollywood confusing V and A.
-
@Tsaukpaetra said in WTF Bites:
@Tsaukpaetra what's an inch-centimeter? Is somebody selling real estate to expatriate roaches?
because if they are... (shakes fist)
It's how far a swallow can spit when swung off a trebuchet.
A swallow of mixed American/European heritage I presume?
-
… testing that Microsoft VPN client and
The configuration is in XML. I didn't find where it is stored, but I can export it, edit it and import it back. Fine. So I export it, run it through
xmlstarlet fo
to add formatting and … it can't be imported back. With a generic error message that that's not a configuration for it. Oh,xmlstarlet
added the<?xml version="1.0"?>
declaration, which wasn't there as dumped. Try to delete it … yup, it loads now. are they using for a not-really-XML parser‽
-
are they using for a not-really-XML parser‽
An amusing mixture of Substring and IndexOf.
-
… testing that Microsoft VPN client and
Somehow an attempt at setting up DNS broke DNS for applications like Outlook, Edge and Teams, but
nslookup
—the one that comes with Windows,c:\WINDOWS\system32\nslookup.exe
—continued to work and if I listed the network configuration withipconfig /all
, the VPN link did not have a DNS server configured. And routing table was correct too. So how the hell is it breaking resolution for the apps‽
-
the hell is it breaking resolution for the apps‽
The connection metric is too high.
-
- as far as I can tell the specificity of the route is still more important than the metric and
- it's system-wide setting so it does not explain why it works for one process but not most others.
That said everything is possible while we don't know what is the actual cause.
-
@Tsaukpaetra said in WTF Bites:
the hell is it breaking resolution for the apps‽
The connection metric is too
highbeaucoup.
-
#YouHadOneJob
-
#YouHadOneJob
And you couldn't even draw the useless red lines correctly?
-
#YouHadOneJob
Azure documentation at it's … run-of-the-mill average. Just the other day I told colleague that he does not need to change any code to use managed identity with SqlClient, he just replaces the username and password in the connection string with magic declaration
Authentication=Active Directory Default
as described here. “Oh, good, so I can revert all the changes for getting the token the how-to told me to do.”… yeah, Microsoft has all the four kinds of documentation, but the three kinds (except reference) is out of date as often as it's not while the reference is missing the important bits (constraints). I guess it's still a step up from the documentation that only ever told you the things you could already have guessed.
-
… testing that Microsoft VPN client and
The configuration is in XML. I didn't find where it is stored, but I can export it, edit it and import it back. Fine. So I export it, run it through
xmlstarlet fo
to add formatting and … it can't be imported back. With a generic error message that that's not a configuration for it. Oh,xmlstarlet
added the<?xml version="1.0"?>
declaration, which wasn't there as dumped. Try to delete it … yup, it loads now. are they using for a not-really-XML parser‽That used to be the standard practice in .NET 1.0 days. I've spent so much time explaining that this is how XML declares charset and not UTF-8 BOM (which is by itself).
-
@Kamil-Podlesak said in WTF Bites:
that this is how XML declares charset and not UTF-8 BOM
XML specification actually says it must be in Unicode, which means that either it has a UTF-16 BOM, and then it's UTF-16, or it does not, and then it is UTF-8. XML encoded in anything else is a . But Microsoft loves s.
(which is by itself)
It … works in most contexts, so not a big one.
-
are they using for a not-really-XML parser‽
An amusing mixture of Substring and IndexOf.
Doesn't everyone?
-
the four kinds of documentation
- Outdated
- Marketing wrote it
- The boss's nephew who designed the product wrote it
- Deliberately broken to give an edge to vendor consultants
-
I'm all in favor of inclusive language, but "strawperson"? Really?
-
I'm all in favor of inclusive language, but "strawperson"? Really?
Don't focus on the language's front hole too closely
-
@error something something patriarchy...
-
-
-
-
-
@BernieTheBernie said in WTF Bites:
but "strawperson"?
A berry identifies as a person? Hm...
Strawberry in Swedish is Jordgubbe, which could be translated as Earthman. Therefore, in the current society, the logical progression is that the strawberries can identify as anything they want. Bring on the jordgummor, jordhen, jordattackhelikoptrar!
-
the four kinds of documentation
- Outdated
- Marketing wrote it
- The boss's nephew who designed the product wrote it
- Deliberately broken to give an edge to vendor consultants
I am missing "Wasn't written." which I'm currently being annoyed by.
-
the four kinds of documentation
- Outdated
- Marketing wrote it
- The boss's nephew who designed the product wrote it
- Deliberately broken to give an edge to vendor consultants
I am missing "Wasn't written." which I'm currently being annoyed by.
Isn’t that technically a subclass of outdated? Since the documentation is from a time before we evolved to read and write?
-
the four kinds of documentation
- Outdated
- Marketing wrote it
- The boss's nephew who designed the product wrote it
- Deliberately broken to give an edge to vendor consultants
I am missing "Wasn't written." which I'm currently being annoyed by.
Isn’t that technically a subclass of outdated? Since the documentation is from a time before we evolved to read and write?
More like the documentation was correct prior to the code being written.
-
Outlook has this "Bookings with me" system. Basically, it lets you set up times when others can book a meeting with you. It's integrated into the Outlook ecosystem (work uses that ).
I have a dozen or so people to get through. Each person should book a slot. I want to get through these eventually, so after a bit of math, 20 minute slots seemed like a good idea. First day, I want to reserve like 3 hours or so, starting at 13:30 and going on till 16:30. System has an option to align bookings to full X minute slots, otherwise people can (I'm guessing) grab something like 13:35 and mess up scheduling. Default is 30 minute alignment, but I change it to 20 minutes.
OK - let's check the booking page:
Option 1: 13:40.
Option 2: 14:00.
..
I go looking in the options, but there's no obvious way to fix this. Outlook, but, fine, whatever, I don't want to deal with this right now - let's start at 13:20 then....
Why the hell is this a drop down menu? Why is it using 15 minute increments when everything else is set to 20 minutes?
But, yeah, I guess I can pick 13:15 and with the 20 minute alignment requirement, the first permissible time will be 13:20. Not sure how I feel about having to use a workaround to get the time that I didn't really want in the first place, but whatever...
-
Outlook has this "Bookings with me" system. Basically, it lets you set up times when others can book a meeting with you. It's integrated into the Outlook ecosystem (work uses that ).
I have a dozen or so people to get through. Each person should book a slot. I want to get through these eventually, so after a bit of math, 20 minute slots seemed like a good idea. First day, I want to reserve like 3 hours or so, starting at 13:30 and going on till 16:30. System has an option to align bookings to full X minute slots, otherwise people can (I'm guessing) grab something like 13:35 and mess up scheduling. Default is 30 minute alignment, but I change it to 20 minutes.
OK - let's check the booking page:
Option 1: 13:40.
Option 2: 14:00.
..
I go looking in the options, but there's no obvious way to fix this. Outlook, but, fine, whatever, I don't want to deal with this right now - let's start at 13:20 then....
Why the hell is this a drop down menu? Why is it using 15 minute increments when everything else is set to 20 minutes?
But, yeah, I guess I can pick 13:15 and with the 20 minute alignment requirement, the first permissible time will be 13:20. Not sure how I feel about having to use a workaround to get the time that I didn't really want in the first place, but whatever...
They're just using RuneScape farming growth ticks. Your meetings will start up to 5 minutes after the time you chose them, based on when you sign in for the morning, I don't see the problem with any of that
-
@Gribnit@izzion said in WTF Bites:RuneScape farming growth ticks
I haven't played RuneScape, so not sure I fully understand. But then again, neither do I understand the Microsoft way of scheduling stuff, so it's not entirely impossible that the two are related somehow.
-
@Gribnit@izzion said in WTF Bites:RuneScape farming growth ticks
I haven't played RuenScape, so not sure I fully understand. But then again, neither do I understand the Microsoft way of scheduling stuff, so it's not entirely impossible that the two are related somehow.
RuneScape farming intervals are measured in X minutes (5, 10, 20, 40, 80, etc). But they don't actually take N x X minutes after you plant them - each interval length corresponds to specific tick timings (a 20 minute interval will "grow" at XX:00, XX:20, and XX:40 every hour). Except the tick doesn't happen right at the top of the interval for everyone all across the server - if you're logged in, the tick happens at some point within the 5 minutes after the interval, based on when your current login session started. So sometimes planting at XX:01:25 will catch the immediate tick, and sometimes it won't.
-
@izzion Sounds like it starts a periodic task that takes a few minutes to update everyone (that needs it).