WTF Bites
-
people want a doggy fix.
I get that sometimes.
I thought you weren't into CBT? Though presumably getting a dog fixed involves anesthesia.
-
@TimeBandit said in WTF Bites:
@topspin When I get invites in my Outlook, if I click the link, it opens a webpage in Chrome, which offers me 3 options:
You can view your calendar from the Teams app itself and there it has a join button that joins from the running instance.
Other than that, there is still a couple of places where clicking such link (not just invitations; also channels, their attached documents etc.) from inside the Teams app would still open a browser, which just shows those three options. Instead of, like, maybe, realizing it is actually a Teams link and just opening inside itself in the first place.
In large part this is because Microsoft never seemed to get the idea of canonical links, so each resource can be referenced by multiple URLs (that include one another as parameters) and various contexts recognize some, but not all of the forms.
-
Microsoft never seemed to get the idea of canonical links
That would explain the labyrinth of broken links that is MSDN.
-
@Tsaukpaetra said in WTF Bites:
@Applied-Mediocrity said in WTF Bites:
@TimeBandit I presume it will also keep downloading the same file over and over again, piling up the folder with copies, like Skype does.
Most browsers are guilty of exactly the same thing. Well, in combination with hiding the fact a download to permanent location is happening.
See, if you click on something the browser can't open in Chrome, it will download, by default without asking where, and the file appears on the bottom of the screen, and clicking it opens it. Which is what the user wanted, right. But the bottom bar disappears then, so does Blunt Fred the User know he still has the file? So when Blunt Fred the User realizes half an hour later he needed something more from that document, does he go hunting for the file in the file manager? No, he clicks the link again. And Chrome dully downloads the file again with a
(1)
appended to the name. And ten minutes later it happens again, this time with(2)
…At least they did it right in Chrome mobile...
Edit: For those who can't zoom-enhance, this is Internet Explorer responding to the question "What does the (fire)fox say?"
That's far from right. Blunt Fred the User not read. Blunt Fred the User click blue button.
Right thing would be to check whether the last changed time and checksum still match and point the user to the already downloaded copy if they do (utilizing ETags, If-Modified-Since and checksum stored in history as appropriate to avoid loading the network when not necessary).
-
-
@coderpatsy said in WTF Bites:
@error String sorting seems a sensible default to me. And it beats having it guess 'hey I should do number sorting here' when you have an array with mixed numbers and strings* that you wanted to sort like strings.
I prefer the way Python2 way: by type, then value. So if you have array of numbers, it sorts them numerically, if you have array of strings, it sorts them unicodebetically (yeah, strings are a bigger kettle of fish) and if you have a mix, it sorts special values first, then booleans, numbers and strings. Python 3 actually became even stricter and throws exception from mixed-type comparison.
But that works well in Python that never auto-coerces, so
1
is distinct from"1"
for any and all purposes. It wouldn't be compatible with JavaScript's desire to keep1 == "1"
.
-
@Zerosquare said in WTF Bites:
(the fact that a new battery may cost more than what the phone's worth is an implementation detail )
Recently replaced battery in my spouse's ~3-year old Motorola. It is mid way between user-serviceable and not (screwed in by tiny torxs). The battery costed less than tenths of what the phone did. The work (I don't have that kind of tools so I took it to a repair shop) costed as much as the battery. Still a lot cheaper than getting a new one though.
-
@Tsaukpaetra said in WTF Bites:
stored in history
Ha! You're funny....
Well, they do store history of all downloaded files with the source URL and filename and notice if the file is moved away. They just don't advertise it in any way obvious to Blunt Fred the User. Adding timestamp and checksum to be able to detect if it changed wouldn't be that much of a change.
-
Adding timestamp and checksum to be able to detect if it changed wouldn't be that much of a change.
Ha!
Keep 'em coming!
-
It's a pity they only tested Python and Scratch. It would have been nice to have "this is your brain on Javascript" images for prevention purposes
-
-
@Zerosquare said in WTF Bites:
It's a pity they only tested Python and Scratch. It would have been nice to have "this is your brain on Javascript" images for prevention purposes
How does it compare with summoning dead gods?
-
-
@LaoC that's the most
FILE_NOT_FOUND
boolean I've ever seen!
-
-
-
TIL:
PHPPECL has aGender
classI feel like I'm a ANY_COUNTRY, how about you?
-
@Tsaukpaetra said in WTF Bites:
TIL:
PHPPECL has aGender
classI feel like I'm a ANY_COUNTRY, how about you?
I’m fluid between
IS_MOSTLY_MALE
andMALTA
.
-
TIL:
PHPPECL has aGender
classI like how the "mostly" defines are 32 more than the wholely ones.
So
IS_FEMALE + NAME_NOT_FOUND = IS_MOSTLY_FEMALE
-
@Tsaukpaetra said in WTF Bites:
I feel like I'm a ANY_COUNTRY, how about you?
I'm leaning towards
ERROR_IN_COUNTRY
, but I guess political commentary should go elsewhere.
-
@Tsaukpaetra said in WTF Bites:
TIL:
PHPPECL has aGender
classI feel like I'm a ANY_COUNTRY, how about you?
I think I can trust you not to call the cops?
BELGIUM
.
-
@Tsaukpaetra said in WTF Bites:
I feel like I'm a ANY_COUNTRY, how about you?
I'm leaning towards
ERROR_IN_COUNTRY
, but I guess political commentary should go elsewhere.I want to know what constant is 42?
-
@dcon
UKRAINE
-
-
@loopback0 said in WTF Bites:
@dcon
UKRAINE
I like how they apparently went "how do you spell Switzerland?... ah, just go with SWISS"
-
I like how they apparently went "how do you spell Switzerland?... ah, just go with SWISS"
I like how Canada is not even there. They probably think ICELAND covers it
-
@TimeBandit said in WTF Bites:
I like how they apparently went "how do you spell Switzerland?... ah, just go with SWISS"
I like how Canada is not even there. They probably think ICELAND covers it
Based on this observation:
I like how the "mostly" defines are 32 more than the wholely ones.
You guys are actually Serbia:
const int SERBIA = 35 ;
-
@LaoC I looked up full list and noticed that
KOSOVO
shares the value 32 withNAME_NOT_FOUND
. Suddenly it got even more political.
-
https://www.eyecontrol.nl/blog/undocumented-user-account-in-zyxel-products.html
When doing some research (rooting) on my Zyxel USG40, I was surprised to find a user account 'zyfwp' with a password hash in the latest firmware version (4.60 patch 0). The plaintext password was visible in one of the binaries on the system. I was even more surprised that this account seemed to work on both the SSH and web interface.
-
@Tsaukpaetra said in WTF Bites:
TIL:
PHPPECL has aGender
classI feel like I'm a ANY_COUNTRY, how about you?
I think I can trust you not to call the cops?
BELGIUM
.Flagged for using that word
-
@LaoC I looked up full list and noticed that
KOSOVO
shares the value 32 withNAME_NOT_FOUND
. Suddenly it got even more political.PHP's genders are not bi
-
I did a quick google search for "qt collapsible group box" because I was interested if it has something like that I can use out of the box, and instead I found this gem on SO:
void CollapsibleGroupBox::onVisibilityChanged(bool state) { switch (state) { case true: m_originalMaxHeight = this->maximumHeight(); this->setMaximumHeight(this->fontMetrics().height()); break; case false: this->setMaximumHeight(m_originalMaxHeight); break; } }
Have you heard of this new thing called
if
?
-
-
@topspin I would rather ask whether they heard of this new thing called
enum
.bool state
is an abomination unto Nolok.
-
@topspin I would rather ask whether they heard of this new thing called
enum
.bool state
is an abomination unto Nolok.Yeah, but if you renamed it to something like
bool visible
I think it would be ok without needing aVisible
/Hidden
enum.
-
In the case of JavaScript, the worst spot of pain is not shown on the picture.
Because that's not a head ache, it's a PITA.
-
- Judging from the code under the condition, the meaning is not that simple and
- Qt is actually a twisted maze of booleans, all alike, to the point there is a bunch of constants defined to
true
(and some tofalse
, but most aretrue
) that you use as the parameter values to make the code readable. So it would actually be valid style to keep theswitch
, but use a constant for thecase
s to make it obvious what the “truth” actually means in context.
-
void CollapsibleGroupBox::onVisibilityChanged(bool state) { switch (state) { case true: m_originalMaxHeight = this->maximumHeight(); this->setMaximumHeight(this->fontMetrics().height()); break; case false: this->setMaximumHeight(m_originalMaxHeight); break; } }
Have you heard of this new thing called
if
?It’s for easy extensibility to support
state
beingFileNotFound
.
-
@loopback0 said in WTF Bites:
Have you heard of this new thing called
if
?What
ifswitch I have?FTFMSOBP.
-
@cvi Damn, that would have been a much funnier reply. Well played.
-
@loopback0 This way we get to spread the joke across two posts instead of one, which by WTDWTF standards is an overall win.
-
-
@TimeBandit said in WTF Bites:
We have standards?
-
@TimeBandit said in WTF Bites:
by WTDWTF standards
We have standards?
Just like the Emperor has beautiful new clothes.
-
So, 's implementation of notification folding is a little broken.
The requirement it's trying to meet is: you only see one instance of each distinct notification (e.g., foo replied to bar), even if it occurred repeatedly. The implementation of this is that it does kind of a "folding" where it hides other recent notifications with equivalent parameters.
Where this breaks is in the counting. When it grabs a page of notifications (i.e. for the popup or for a page in the notifications page), it grabs a chunk of them, then it removes the duplicates, then it displays them. Except, if you have many duplicates, such as if you're running a bot with games that are popular, or have created several popular threads, each page will consist of a single notification - not repeated, but still consuming all other notifications.
I'm basically blind to my precious upboats while people are playing Picross.
Filed under: That constant validation is one of main reasons I hang out here.
-
@TimeBandit said in WTF Bites:
by WTDWTF standards
We have standards?
Just like standards, we have lots of them!
-
So, 's implementation of notification folding is a little broken.
That's no news. It's been broken since ever.
The damned paging is a bane. Everybody fucks that up.
My spouse uses Oracle (formerly JD Edwards) accounting software at work. Some months ago, while working from home, she asked me for help as she couldn't find something. Turned out that when you request some report, you can apply filters to the columns (looks and works similarly to Excel), but because the client only pulled the first 200 or so rows from the several thousand, the table looked empty after filtering, because the desired records were past the first page. Fix? Manually go through all the pages, or get the CSV export and open it in Excel.
Fast forward couple of weeks. I was setting up some test deployments on Azure and we were searching for some logs in the “log analytics” component. You do a query with that almost-sql-with--syntax there and then you can again apply filters to the results. Guess what? The same behaviour—it only applies the filter to the already loaded pages. Here a third fix is available, because you can edit the query, so you can add the condition there and re-run it. Still,
(IIRC Kibana gets this right by having the filters as part of the query builder and re-running the query).
-
Here a third fix is available, because you can edit the query, so you can add the condition there and re-run it.
And that's actually the right fix.
-
@dkf Yes, it is the right fix. But why then even have the filter buttons when they don't actually do what you mean? Plus the query needs to be edited in text, and while the syntax allows better completion, and it mostly works, I don't think it gets you the list of available values.
-
Here a third fix is available, because you can edit the query, so you can add the condition there and re-run it.
And that's actually the right fix.
@dkf Yes, it is the right fix. But why then even have the filter buttons when they don't actually do what you mean? Plus the query needs to be edited in text, and while the syntax allows better completion, and it mostly works, I don't think it gets you the list of available values.
Yes, the best solution here is to let the users edit the query directly. Hell, don't even build a website, just give them a straight up database connection.
Filed under: Poe's law in 3, 2, 1...