WTF Bites
-
Apps that randomly open their windows and do take focus.
QFT. I've gone so far as to have my window manager on linux pretty much ignore requests for focus and/or raising of any window to the top that don't originate from the user. Now if I could only configure Windows to do the same thing...
Mental response: "Lol, no"
-
@hardwaregeek said in WTF Bites:
IT finally did something to make the update succeed. (It only took five months.)
Just downloading the update from MSDN and installing it has worked in every case that I needed it to. Of course, it requires that you have admin rights to your machine...
-
@pie_flavor said in WTF Bites:
VS Code is a curious piece of software.
https://i.imgur.com/DX4Cyjg.pngNo repro.
Actually, I suspect the default association is not
json
in this case and you broke it with the override. And yes, the overrides do leave something to be desired, because the keys in the main config object merge fine, but the keys in sub-objects don't.Indeed. I think the left side is merely a representation of the default values.
-
I'm pretty sure I've seen this somewhere here already, but not only Canadian visa application forms somehow need to run Turing-complete code in order to be filled, but also their GCKey website somehow managed to misunderstand my (long, but) strictly alphanumeric password I had saved in a password manager and lock me out for 24 hours.The day is starting just great.
-
my (long, but) strictly alphanumeric password
Pet peeve: Websites where the password-setting form has no max length but the login form has a max length for the password.
-
@ben_lubar Or any other restriction that is different from the password-setting form. And of course, neither will tell you what the restrictions are.
-
@aitap The US FBAR form is the same way. Don’t remember a problem with the password there, though.
-
@greybeard said in WTF Bites:
@aitap The US FBAR form is the same way. Don’t remember a problem with the password there, though.
I read that as US FUBAR form. Probably more appropriate that way.
-
@benjamin-hall said in WTF Bites:
US FUBAR form
It could stand some usability improvements, but doesn’t seem all that bad.
-
@sockpuppet7 Don't fuck with them. They're obviously serious bad-asses.
-
Was just installing updates on the RedHat 6 VM on my mac. VirtualBox managed to hard freeze the mac, so I had to reboot it. Now, starting VirtualBox again the RH VM kernel panics on boot. Great.
Back to previous snapshot, it is...
-
VirtualBox managed to hard freeze the mac
When a user-space program manage to hard-freeze a machine, blame the OS
-
@scarlet_manuka said in WTF Bites:
I know many people hate TOAD, but I really miss it...
-
Today's miniature shitnugget in our Python codebase (with some irrelevant identifiers altered) is all about how to (not) create a list of the sequence of items in list properties of a collection of items:
# collecting_list is a list; source_of_freds is an iterable; no exceptions are thrown map(lambda fred: collecting_list.extend(fred.berts), source_of_freds)
NB: the result of the
map
is not assigned to anything.Now replaced with:
for fred in source_of_freds: collecting_list.extend(fred.berts)
Why? Because that builds
collecting_list
when run on Python 3(.6) whereas it doesn't with the old code (which “worked” in Python 2.7 but is a dead ugly misuse anyway).Sometimes, the simplest most-directly obvious code is the sanest option. And avoids having to trawl through a ton of weird errors in the test suite.
-
-
@timebandit said in WTF Bites:
VirtualBox managed to hard freeze the mac
When a user-space program manage to hard-freeze a machine, blame the OS
Except a hypervisor isn't a userspace program...
-
@tsaukpaetra said in WTF Bites:
Except a hypervisor isn't a userspace program...
You're right, it also install a kernel driver... coded by Oracle
-
@timebandit said in WTF Bites:
VirtualBox managed to hard freeze the mac
When a user-space program manage to hard-freeze a machine, blame the OS
True in general, but it's likely (I don't know) that something like VirtualBox installs drivers for hardware acceleration. Then it's no longer the OS's fault.
-
Yes, technically sliding the "font size" slider changes the font size. But it doesn't perform the ancillary function of also keeping the spacing between characters the same.
Basically ignores the point of why you'd want to change the font size (in the context of a shell anyways) in the first place. GG, FreeNAS team...
-
@tsaukpaetra I've got 4K screens and a 1080Ti these days and DPI scaling doesn't work not does anything else work well.
-
If you fucks are lucky I might do a RE7 stream, wish lots of swearing
-
@tsaukpaetra I've got 4K screens and a 1080Ti these days and DPI scaling doesn't work not does anything else work well.
I... wasn't talking about 4k screens, graphics cards, or DPI scaling. Do you need some more alcohol?
-
@tsaukpaetra the same thing happens at 4K but worse. I was just emphasising with my similar troubles.
-
@tsaukpaetra the same thing happens at 4K but worse. I was just emphasising with my similar troubles.
Ah... Ok.
-
@hardwaregeek said in WTF Bites:
@anotherusername said in WTF Bites:
It does at least complain if you try to define a constant more than once.
I learned yesterday that our compiler complains about constants, too, if you enable code coverage — WARNING-level diagnostic messages that there will be no toggle coverage for those constants. Well, duh, that's rather the point of making them constant, that they won't change, isn't it?
Seen in bug report today (emphasis added):
Changed constants to [different kind of constants] because constants can change during program execution. Incidentally, this eliminates the coverage warnings.
-
@pie_flavor said in WTF Bites:
VS Code is a curious piece of software.
https://i.imgur.com/DX4Cyjg.pngNo repro.
Actually, I suspect the default association is not
json
in this case and you broke it with the override. And yes, the overrides do leave something to be desired, because the keys in the main config object merge fine, but the keys in sub-objects don't.Indeed. I think the left side is merely a representation of the default values.
The left side is computed, because the defaults come from some kind of schema that includes the types, descriptions etc. But there are still three places with user overrides that are merged together to calculate the effective value (user config, workspace and directory).
Bonus : The user config is stored, reasonably, in
%APPDATA%\Code\User\settings.json
, but the installed extensions are in%USERPROFILE%\.vscode
.
-
@tsaukpaetra said in WTF Bites:
Yes, technically sliding the "font size" slider changes the font size. But it doesn't perform the ancillary function of also keeping the spacing between characters the same.
I don't understand the problem.
-
@tsaukpaetra said in WTF Bites:
Yes, technically sliding the "font size" slider changes the font size. But it doesn't perform the ancillary function of also keeping the spacing between characters the same.
I don't understand the problem.
The vertical distance between lines doesn't change, when it should. (You're probably assuming horizontal distance?)
-
@tsaukpaetra said in WTF Bites:
Yes, technically sliding the "font size" slider changes the font size. But it doesn't perform the ancillary function of also keeping the spacing between characters the same.
I don't understand the problem.
S e e m s o b v i o u s t o m e .
-
The vertical distance between lines doesn't change, when it should. (You're probably assuming horizontal distance?)
You're right. I didn't even look at the vertical distance. Although I don't particularly see how more spacing would improve it much, seems perfectly readable to me.
@pie_flavor said in WTF Bites:
S e e m s o b v i o u s t o m e .
Bully for you. I also see that you've formatted your reply in a way that's completely different to the screenshot, so I assume you had a point with that?
-
So, here I am again, with that whole Asterisk thing...
One of the approx. 17,384 interfaces to Asterisk is called AGI. It's designed so you can call a script from your dialplan and it can mess around with stuff on the current channel. The communication itself is just piped through
stdin
/stdout
and it's basically just strings being passed back and forth.Do I want to mess with that shit myself? Fuck no! So, there are a few libraries, one of them being PHPAGI, which I used because
1) PHP is already a standard component in our stack
b) I know what I'm doing in that abomination, sadlySo yeah, today I found one, and only one case where the whole output is late-by-one. As in, there is something that gets executed (I cannot find what something is, seems like it's just an empty string but fuck knows what's causing it), Asterisk throws a
510 WTF?
as a response, but that gets read as the response to the NEXT command (the one I actually want executed). This only happens with one method, and fuck if I can understand why. I mean, look at this:function database_get($family, $key) { return $this->evaluate("DATABASE GET \"$family\" \"$key\""); }
This is the offending command, something fucks up either there or before that, for raisins. For comparison, here's a random function that does other stuff:
function say_number($number, $escape_digits='') { return $this->evaluate("SAY NUMBER $number \"$escape_digits\""); }
As you can see, same shit, it's not that
database_get
is a special snowflake of any kind. So, I have implemented... a "fix"// Should be: $dbResult = $agi->database_get('PBX/SPECMSG', '1'); $agi->database_get('PBX/SPECMSG', '1'); $dbResult = $agi->exec('Verbose', "1,WTF"); if($dbResult['result']) { $filename = $dbResult['data']; $agi->exec('Playback', "special/$filename"); } else { $agi->exec('Playback', 'vm-no&vm-message'); } $agi->hangup();
Now, if you'll excuse me...
-
@tsaukpaetra said in WTF Bites:
Yes, technically sliding the "font size" slider changes the font size. But it doesn't perform the ancillary function of also keeping the spacing between characters the same.
I don't understand the problem.
For example, in your typical shell:
Change the font size:
See it now?
-
It's still not set up.
-
Asterisk throws a 510 WTF? as a response
That's the first sensible thing I've ever heard of Asterisk doing!
-
Just give me the fucking date and time. Don't fucking guess "how long ago" it was, especially when you can't get it right!
So, here I am on the morning of March 9th, and I see this in Jira:
3 days ago
DO YOU EVEN MATH BRO?
Fuck. Had me looking at the wrong day's logs.
-
@boomzilla It did get it "right": since "morning" is before 4:06 PM, it was less than four days (96 hours) ago, so that means it's three days ago.
That said, I have a userscript for TFS that automatically replaces those times for me so I don't have to do so myself.
-
@twelvebaud said in WTF Bites:
It did get it "right":
Yeah, I know that, but if it's going to say "days ago" it should be looking at the day.
-
@boomzilla
Maybe Atlassian is one of Jeff's silent partners
-
@boomzilla
Maybe Atlassian is one of Jeff's silent partnersThat wouldn't be Atlassian's fault. They just use a library¹ that formats time, and most likely that library is ICU², so it would be IBM's fault.
@boomzilla said in WTF Bites:
Yeah, I know that, but if it's going to say "days ago" it should be looking at the day.
Yeah, but that would mean a lot more work and . What they probably do is simply format
now - then
into{0} ago
in approximate format. So the logic that is calculating “3 days” does not know where the midnights actually lie in the interval and therefore can't divine that it should be saying 4 instead.
¹ It is a huge if they don't though.
² For all the cool stuff ICU does it is a bit weird in places and has some very sharp edges. But localization is such a huge mess that most programs probably use it.
-
For all the cool stuff ICU does it is a bit weird in places and has some very sharp edges. But localization is such a huge mess that most programs probably use it.
raises hand
And then there's a part where I convert ICU formats into Excel formats... you know what, it has some weird bits, but I'll take it over Excel's pile of any day.
-
Chrome removed the ability to mute individual tabs. Now the mute option mutes all tabs of the same domain, and it remembers across restarts. No idea why they thought that was better.
-
@lb_ Its in a Chrome flag now. Gimme a sec to hunt it down for ya...
ETA: Here it is:
chrome://flags/#enable-tab-audio-muting
-
chrome://flags/#enable-tab-audio-muting
That's already enabled. They changed the behavior.
-
-
@pie_flavor don't worry, it only looks like you're not connected to the internet. you decide what that means and how windows divined it.
-
@bb36e I've also had it say "Connected, no internet" while accessing the internet. But I couldn't access anything on the corporate network. Sometimes, it just gets confused.
-
Status: WTF, Windows! No, your IT administrator doesn't require a security scan of this item. I'M THE IT ADMINISTRATOR!
Goddam what set this???
-
@hardwaregeek said in WTF Bites:
@bb36e I've also had it say "Connected, no internet" while accessing the internet. But I couldn't access anything on the corporate network. Sometimes, it just gets confused.
That should really say
"Connected, no connection to www.msftncsi.com when we tried it but it might work now, idk, I'll check later"
-
@tsaukpaetra said in WTF Bites:
Status: WTF, Windows! No, your IT administrator doesn't require a security scan of this item. I'M THE IT ADMINISTRATOR!
Goddam what set this???
Are there two spaces after "administrator"?
-
@lb_ Also after the period. I like you. 😄