WTF Bites
-
Reads some announcements on reddit:
Qt Creator 8 released
Wait a minute, that sounds off. Checks installed version...
Checks release history:
Version
4.14.0 / 17 December 2020
4.14.1 / 24 February 2021
4.15 / 5 May 2021
5.0.0 / 26 August 2021
6.0.0 / 2 December 2021
7.0.0 / 23 March 2022
7.0.2 / 24 May 2022Oh no, they went full retard.
-
@topspin It's not a major version number, it's a marketing version number.
-
@dkf that’s the same thing, surely?
-
@Arantor eh, it's all semantics.
-
@topspin It's not a major version number, it's a marketing version number.
Maybe they just introduce a lot of breaking changes often.
-
Big Alt Text
-
Touchpad scrolling stopped working on Firefox.
All the Windows, all the tabs, but otherwise completely functional.
Scrolling using the scrollbar still worked fine.No problems in other applications.
I was getting ready to bookmark any tabs in private windows I wanted to keep so I could restart it, but it just went ahead and crashed on its own.
-
@BernieTheBernie said in WTF Bites:
@sebastian-galczynski The polish word is obviously derived from german "Grube" (pit, hole; sometimes also used with the meaning of grave).
"Grab" (grave) is even closer and pronounced virtually the same. And I bet "grub" as a burrowing animal has the same roots.
-
- Why the hell not?
- I was just copying lines of code from one place to another, but I otherwise haven't changed anything. Why did it all of a sudden decide it needed to access this font anew? (it might be the font I was already using in my text editor, I'm not sure. It's not like I change it every week).
- How is this a thing? How often has this happened before that there is a dedicated error message for it?
-
@Zecc That's a font, not an icon?
Anyways, also fonts may be updated at more oftener intervals.The is that the updated font does not get applied automagically. Shame for you, M$!
-
I was getting ready to bookmark any tabs in private windows I wanted to keep so I could restart it
Why? Firefox has been restarting (both after closing and after crashing) with all the tabs for me reliably for years, including lately with multiple windows with multiple tabs (one window may appear on current desktop rather than where it was last time, the others position themselves correctly).
And if all else fails, there is a
sessionstore-backup
directory in the appdata in profiles that has the current list and the list from just before previous upgrade.
-
private windows
-
private windows
The combination of
private
andWindows
is an oxymoron, btw.
-
-
@BernieTheBernie said in WTF Bites:
private windows
The combination of
private
andWindows
is an oxymoron, btw.
The combination of
private
andwindows
isn't necessarily though. Though in this case they would better be calledamnesic
, because that's what they are—windows that don't remember what they showed once closed.
-
The combination of
private
andwindows
isn't necessarily though. Though in this case they would better be calledamnesic
, because that's what they are—windows that don't remember what they showed once closed.I use private windows like a way of managing browser history and cache more than anything else. It's not like I can prevent sites from fingerprinting me through IP address (can't be bothered to route my traffic through anonymization services) or a bunch of other subtle connection and browser behaviours, if they really want to.
-
@Bulb Think Bernie was channeling and meant
-
Though in this case they would better be called
amnesic
, because that's what they are—windows that don't remember what they showed once closed.True, but firefox at least tries to explain the underlying complexity in user-friendly terms:
You’re in a Private Window
Firefox clears your search and browsing history when you quit the app or close all Private Browsing tabs and windows. While this doesn’t make you anonymous to websites or your internet service provider, it makes it easier to keep what you do online private from anyone else who uses this computer.
-
I use private windows like a way of managing browser history and cache more than anything else.
… that's what profiles are for. Or a separate installation of Firefox in a container or VM—I have one at home for the adult side of the web, and had one at work for the previous project, because I had to connect there through a VPN that I didn't want to set up system-wide, because it had a tendency to interfere with access to the rest of the internet.
They've also added containers into Firefox recent(ish)ly. Didn't get around to trying those yet. And there is the special facebook containment “blue” tab.
-
@Bulb All that seems like an awful lot of arcane tecknology solving an already solved problem, because it must.
-
I'm stuck fixing that C++ abomination driving the buggy estonian modem. I thought I already fixed it, but new rare bugs keep appearing. And the more I dig, the more wrong all this pile of spaghetti is.
The guy who originally wrote it (it was his first project after graduation, and apparently nobody reviewed his code) clearly didn't know what he was doing. For example he loves spawning threads (preferably causing race conditions and deadlocks). You would think once he spawned a thread to read from the serial port, a normal blocking read() would be fine. It would only block that one thread, which doesn't do anything else, right? Nope, he used boost.asio which spawns another thread in the background. And he used it wrong, which potentially led to skipping some input, because he ignored the bytes_transferred callback argument. I fixed that part, now they're testing it. Already a new quirk appeared as I'm writing.
Of course there are no automated tests, and the monstrosity doesn't even compile on my machine. And once it runs, there's no gdb, only
printf("dupa\n")
, or ratherstd::cout<<"dupa"<<std::endl
.I don't think I'm going take any more work from that business, at least not for a fixed price.
Oh, and I forgot the best part: I looked up the original author on linkedin. Immediately after leaving that job, he became a Senior Architect.
-
@sebastian-galczynski said in WTF Bites:
Immediately after leaving that job, he became a Senior Architect.
As is the proper due of one using
cout
vsprintf
.
-
@sebastian-galczynski said in WTF Bites:
he became a Senior Architect.
Well, at least he won't be writing code...
-
#competentcoding
-
@Bulb This is pretty much me, I use two VMs for the same reasons.
-
So here's an oddity: using one of the bigger-name date-handling libraries for javascript (inb4 "there's your problem") to handle timezones, since due to the nature of our product we have to deal with intervals in the client's timezones. Seeing some weirdness around Daylight savings time transitions.
spacetime('2023-3-12 0:00', 'America/Los_Angeles').toNativeDate() // evaluates to => Sun Mar 12 2023 00:00:00 GMT-0800 (Pacific Standard Time) spacetime('2023-3-13 0:00', 'America/Los_Angeles').toNativeDate() // evaluates to => Mon Mar 13 2023 01:00:00 GMT-0700 (Pacific Daylight Time) spacetime('2023-3-14 0:00', 'America/Los_Angeles').toNativeDate() // evaluates to => Tue Mar 14 2023 01:00:00 GMT-0700 (Pacific Daylight Time) spacetime('2023-3-15 0:00', 'America/Los_Angeles').toNativeDate() // evaluates to => Wed Mar 15 2023 00:00:00 GMT-0700 (Pacific Daylight Time)
Note those middle two lines.
Also, this does not happen for the fall DST transition. Those work normally. And yes, the browser's timezone is set to America/Los_Angeles, so all of these should be 00:00:00.
But dates and times are hard, and DST doesn't make things any better. Worse, in fact. Compounded by Javascript's stupid implementation (that, IIRC, matched the old, busted, awful Java implementation).
-
@Benjamin-Hall Update on that--turns out the issue is that the library has hard coded the DST transition dates as a constant for all years. And probably updates the library each year to 'fix' it. It works for 2022, but no other year, and always transitions on March 13/Nov 6, no matter the year.
Fix is probably going to be rip out that library and get one that isn't stupid.
-
@Benjamin-Hall said in WTF Bites:
and get one that isn't stupid.
-
@Benjamin-Hall said in WTF Bites:
and get one that isn't stupid.
Quixotic, I know. Especially in the NPM ecosystem.
-
@Benjamin-Hall
You just need to rename your project to WindmillLanceFactoryBean, and then it will all make sense.
-
@Benjamin-Hall said in WTF Bites:
javascript ... timezones
Javascript supports two timezones: UTC and local. Anything else necessarily reinvents the wheel. And we know how that goes, especially with (dates|javascript)
-
@Benjamin-Hall said in WTF Bites:
Fix is probably going to be rip out that library and get one that isn't stupid.
Isn't the browser supposed to have this implemented already? Or is it, despite needing and having all the data to handle it, not exposing the option to define time in other time-zone than the selected one?
… yeah, it looks like it does allow defining it with any offset, but not evaluating the DST rules.
-
Anything else necessarily reinvents the wheel. And we know how that goes, especially with (dates|javascript)
-
@Benjamin-Hall said in WTF Bites:
that, IIRC, matched the old, busted, awful Java implementation
I'll have you know that Java has several datetime implementations. Two in the standard library even! (Or was it three?)
-
@Bulb in this case, we're in a rather of odd niche where we can't just store everything in utc and convert for display, since we need to do math server side, including dst and other fun things like timezones. And need dates created in one timezone and displayed in another, but appear the same (so 00:00 in America/Boise shows up as 00:00 in America/New_York). Much pain ensues.
-
Thought I’d been ripped off, because the $13.50 was supposed to include GST already, but it turns out the total is not actually a total of everything above it. Alright.
-
@Benjamin-Hall said in WTF Bites:
And need dates created in one timezone and displayed in another, but appear the same (so 00:00 in America/Boise shows up as 00:00 in America/New_York). Much pain ensues.
That's what the zone-LESS datetimes are for. According to ISO-8601 if you don't specify timezone, the datetime does not assume any system one or anything like that but rather represents a clock reading not subject to timezone transformation. Unfortunately JavaScript's Date will assume time-zone, but if you pass around the ISO-8601 string and just use the Date class to format the date, it shouldn't be a problem.
@Benjamin-Hall said in WTF Bites:
since we need to do math server side, including dst and other fun things like timezones.
But can't you do all the math server side, where you have a better library (unless it's written in JavaScript too—if it is, then :thereisyourproblem:) that can do it right, and on client-side just do the parsing and formatting, which you can just let the javascript do in whichever timezone is choses to ass-u-me, then strip that timezone and pass around the correct one?
-
@Bulb server side is JavaScript. Ok, Typescript, but...
And that's where the library is in use. Not client side at all.
-
@Benjamin-Hall said in WTF Bites:
that, IIRC, matched the old, busted, awful Java implementation
I'll have you know that Java has several datetime implementations. Two in the standard library even! (Or was it three?)
Just two. The old one and the new one. The old one is broken in many ways, but can't be ripped out because too much stuff depends on it. (It is almost all marked as deprecated; the compiler will grumble if you use the stuff you shouldn't.) The new API is based on one of the better open source libraries for doing this in Java, IIRC, and hasn't been attracting too many complaints so it is probably about as correct as anything handling dates and times can be. The horrors that are there are likely necessary horrors given just how messy the domain is...
-
@Benjamin-Hall said in WTF Bites:
that, IIRC, matched the old, busted, awful Java implementation
I'll have you know that Java has several datetime implementations. Two in the standard library even! (Or was it three?)
Just two. The old one and the new one. The old one is broken in many ways, but can't be ripped out because too much stuff depends on it. (It is almost all marked as deprecated; the compiler will grumble if you use the stuff you shouldn't.) The new API is based on one of the better open source libraries for doing this in Java, IIRC, and hasn't been attracting too many complaints so it is probably about as correct as anything handling dates and times can be. The horrors that are there are likely necessary horrors given just how messy the domain is...
Yeah, the third one I was thinking of was the java.sql.Date which is just pretty much java.util.Date with extra warts.
-
Yeah, the third one I was thinking of was the java.sql.Date which is just pretty much java.util.Date with extra warts.
It's a subclass, and one of the reasons why j.u.Date can't be retired with a spade behind the woodshed.
-
Yeah, the third one I was thinking of was the java.sql.Date which is just pretty much java.util.Date with extra warts.
It's a subclass, and one of the reasons why j.u.Date can't be retired with a spade behind the woodshed.
Yeah. So much fun. At least the deprecated stuff is getting evicted from java these days, so there is a tiny bit of hope that itl'll get hoisted in a few years at least.
-
@Benjamin-Hall said in WTF Bites:
@Bulb server side is JavaScript. Ok, Typescript, but...
-
@Bulb @Tsaukpaetra-class hardware.
-
@Bulb @Tsaukpaetra-class hardware.
Nah; that'd have a pony stuck in the fan.
-
@HardwareGeek Are dust bunnies better or worse than dust ponies?
-
-
@Applied-Mediocrity said in WTF Bites:
@HardwareGeek Are dust bunnies better or worse than dust ponies?
Dust bunnies are worse because they breed like, well, bunnies.
-
@Bulb Well, I don't know about that. I am not informed about pony breeding practices.
-
@Applied-Mediocrity The important distinction is that ponies are not renowned for breeding quickly.
Filed under: explaining the joke