WTF Bites
-
support.apple.com/en-ca/ht208240
If you type the letter “i” and it autocorrects to an “A” with a symbol
If you updated your iPhone, iPad, or iPod touch to iOS 11 or later and find that when you type the letter “i” it autocorrects to the letter “A” with a symbol, learn what to do.
...
Try setting up Text Replacement for the letter "i"
...No longer welcome here.
Banned until A �
-
@anotherusername said in WTF Bites:
@izzion That doesn't explain why someone would need to edit something to get their name updated on it. That part, at least, appears to take some of the user's information (other than the primary key) and stores it with the post/comment.
Remember the baked/raw stuff we had with Discourse? Might be something like that.
It should be pretty much trivially simple to query all of that user's posts and automatically re-bake them. If that takes too long, do it in the background and tell them it might take a few hours for their old posts to be re-attributed, and if it's causing too much of a load on the server, add a site-wide "USER_CANNOT_CHANGE_NAME_MORE_THAN_ONCE_PER_X_DAYS" setting.
If I were making a system where posts stayed "baked" forever, but a user could reset them, I'd have baking the post happen when the post is retrieved and has no "baked" version (using some sort of lock to ensure a post isn't baked five times simultaneously) and then have the "rebake all of my posts" button just set the "baked" field to null using a single SQL query.
-
npm
has a -g option (which installs the package globally instead of just in the current folder), and also a -f option, which is easily-typoed and produces this:PS C:\xxx\npm install -f gulp-cli
npm WARN using --force I sure hope you know what you are doing.No, NPM, I do not know what I'm doing. -f was a typo you piece of CLI shit.
Now to find out what I broke and how/if I can repair it...
-
@blakeyrat said in WTF Bites:
npm
has a -g option (which installs the package globally instead of just in the current folder), and also a -f option, which is easily-typoed and produces this:PS C:\xxx\npm install -f gulp-cli
npm WARN using --force I sure hope you know what you are doing.No, NPM, I do not know what I'm doing. -f was a typo you piece of CLI shit.
Now to find out what I broke and how/if I can repair it...
From the docs:
The -f or --force argument will force npm to fetch remote resources even if a local copy exists on disk.
The -g or --global argument will cause npm to install the package globally rather than locally. See npm-folders.
Which means you broke zero things and that error message is scary for no reason whatsoever.
-
@ben_lubar that could work, but if anyone else tried to implement it I'd expect to see the baking code copied and pasted in about fifteen different places in the codebase, depending on where the post needed to be retrieved. None of them quite the same, of course.
-
@ben_lubar said in WTF Bites:
Which means you broke zero things and that error message is scary for no reason whatsoever.
How reassuring that I am using a professional development tool developed by professionals and not a pack of howling monkeys.
-
This seems like a really bad idea to me. Unless there's a commit immediately afterward that correctly lets the test pass (there isn't), why are you committing this and introducing the paradigm "This will be fixed later, ignore the errors"??!!?!?
-
@tsaukpaetra said in WTF Bites:
This seems like a really bad idea to me. Unless there's a commit immediately afterward that correctly lets the test pass (there isn't), why are you committing this and introducing the paradigm "This will be fixed later, ignore the errors"??!!?!?
You're assuming the original thought process got to the end of that clause without halting or getting corrupted.
-
@tsaukpaetra said in WTF Bites:
This seems like a really bad idea to me. Unless there's a commit immediately afterward that correctly lets the test pass (there isn't), why are you committing this and introducing the paradigm "This will be fixed later, ignore the errors"??!!?!?
At least they're there to remind everyone that something needs to be fixed. Better to ignore the errors than to ignore the problems.
-
getting corrupted.
Speaking of corruption, I'm surfing the data on the company NAS and finding that a not insignificant portion of the files are essentialy files filled with 1 bytes.
Status: Wondering if this was due to some sort of encryption that's no longer available or... I have no idea what's going on.
-
@tsaukpaetra said in WTF Bites:
I have no idea what's going on.
Oh. My. God.....
You know how most AntiVirus software lets you "Quarantine" detection results or otherwise lets you choose whether or not a given file deserves to be fixed?
The AntiVirus on ReadyNAS doesn't give you that option, and instead, when it detects a "threat" it (apparently) just silently replaces all the bytes in the file with
0x01
, popping an alert into the notifications menu that very few probably bother to read until the next email update (if that's even set up).What's worse, apparently the Snapshot functionality seems broken:
What. The. FUCK!
Here's hoping that rebooting will fix this, and disabling antivirus.
Edit: It did.
-
-
@tsaukpaetra said in WTF Bites:
and disabling
antivirus.That's always a good thing...
Yeah. If your antivirus is behaving like a virus, is it really anti at all?
-
@ben_lubar said in WTF Bites:
The -f or --force argument will force npm to fetch remote resources even if a local copy exists on disk.
Of course. That's exactly what I'd expect a "force" option to do. It's completely obvious
-
@ben_lubar said in WTF Bites:
The -f or --force argument will force npm to fetch remote resources even if a local copy exists on disk.
Of course. That's exactly what I'd expect a "force" option to do. It's completely obvious
Agreed.
-
Indeed.
-
-
@ben_lubar said in WTF Bites:
Blocked by your proxy? I can access it just fine.
Don't have a proxy but I'd guess outbound firewall. Why use a non-standard port instead of just a different subdomain?
-
@heterodox said in WTF Bites:
@ben_lubar said in WTF Bites:
Blocked by your proxy? I can access it just fine.
Don't have a proxy but I'd guess outbound firewall. Why use a non-standard port instead of just a different subdomain?
Because I don't have access to the DNS and I didn't feel like asking for help with it when I was setting up iframely.
-
-
@tsaukpaetra The guy's expression is perfect for that message.
-
@tsaukpaetra said in WTF Bites:
@tsaukpaetra said in WTF Bites:
and disabling
antivirus.That's always a good thing...
Yeah. If your antivirus is behaving like a virus, is it really anti at all?
Does Poe's law apply to anti-malware? Maybe it should.
-
@scholrlea said in WTF Bites:
@tsaukpaetra said in WTF Bites:
@tsaukpaetra said in WTF Bites:
and disabling
antivirus.That's always a good thing...
Yeah. If your antivirus is behaving like a virus, is it really anti at all?
Does Poe's law apply to anti-malware? Maybe it should.
I don't know, but Sturgeon's Law applies.
-
ASCIIDoc is a markup language meant for technical documentation, and ASCIIDoctor is a processor that takes ASCIIDoc sources and builds a presentable document like a HTML file or a man page. I'm forced to deal with both and I discovered an amazing thing feature:
When ASCIIDoctor builds a document, it replaces certain strings to make it prettier. A
--
turns into—
,->
turns into→
,(C)
turns into©
... the full list is here.Now, guess what happens when you want to write
while (i-->10)
. Orgit checkout -- foo
. Yep! It looks ugly, it's not searchable (mdashes and proper apostrophes in technical documentation are the worst), it breaks copy&paste.There is no option to turn this off in ASCIIDoctor - an issue asking to implement a way to do so has been open on GitHub since year of our Lord twenty fucking fourteen. Luckily at least it doesn't happen in code blocks, only inline in paragraphs, tables, etc., but still, Jesus Christ, this is a markup language made for technical documentation, what the fuck is wrong with you people. Hey, I have a request for improvement, how about also replacing
:)
with :) and8)
with 8)?You can get rid of it by either enclosing the characters being replaced between
+
characters, which makes the source unreadable and nobody will remember to do this every goddamn time, or you can make ASCIIDoctor load an external library that reverses this every time you build, which I can easily do for local preview builds, but I can't do that on our buildservers, I'll have to file a bunch of requests to do that and hope someone actually listens to me. Sigh...
-
@blek You need to come up with emoticons for every combination of digit followed by parenthesis. Everyone loves them!
-
@dkf Let's just replace any curly brace with a mustache.
-
ASCIIDoc is a markup language meant for technical documentation
yes, but
ASCIIDoctor is a processor that takes ASCIIDoc sources and builds a presentable document like a HTML file or a man page
it is not the official one though. The official one is called just asciidoc.
There is no option to turn this off in ASCIIDoctor
Does ASCIIDoc itself do the same though? If not, is there any chance to use that (or some other processor; I believe there are a few more)?
-
@bulb Just checked, asciidoc does the same thing.
Also I have a feeling asciidoctor might be a successor to the asciidoc processor, since the asciidoc man page says (C) 2002-2011 and the release date is July 2012, so it might be dead.
-
Pop quiz. What is the result of the following query in T-SQL:
select ISDATE('2013-12-006')
The fact that it's posted here should be a good enough clue
-
Something has happened with my Win10 lock screen. The little tidbits of information have nothing to do with the actual photo being shown. This morning it was something like: "In ancient Rome a lb of these flowers would have cost you a month's wages". It was a photo of some cliffs with waves crashing in to them.
A reboot would probably fix it but I kind of like it. It is a warning about how broken everything will be inside and to all of the needless shiny stuff.
-
@vault_dweller NaN?
-
@polygeekery said in WTF Bites:
shiny stuff.
Sacrilege! Embrace the way of Metro, where nothing is shiny.
-
@pie_flavor Not sure if you're joking, but in case you're not, the function returns either 1 or a 0. 1 meaning the parameter is a valid date and 0 means it is not.
-
@vault_dweller said in WTF Bites:
@pie_flavor Not sure if you're joking, but in case you're not, the function returns either 1 or a 0. 1 meaning the parameter is a valid date and 0 means it is not.
Well, yeah. You said it wasn't what I expected, so I made a guess.
-
@vault_dweller said in WTF Bites:
Pop quiz. What is the result of the following query in T-SQL:
select ISDATE('2013-12-006')
The fact that it's posted here should be a good enough clue
See also
select ISNUMERIC('£')
Edit: another one I've just discovered
select ISNUMERIC(' £') --0 select ISNUMERIC('£ ') --1
-
@vault_dweller I'm guessing that it returns
1
, valid date.
-
See also
select ISNUMERIC('£')
What does
ISNUMERIC('$')
return? How aboutISNUMERIC('')
?
-
I saw that, Discord!
-
-
-
@timebandit said in WTF Bites:
Top Secret
One of the easiest ways to expose things is to name them "Secret"....
-
@tsaukpaetra said in WTF Bites:
One of the easiest ways to expose things is to name them "Secret"....
Yeah, but that's a secret
-
@polygeekery said in WTF Bites:
Something has happened with my Win10 lock screen. The little tidbits of information have nothing to do with the actual photo being shown. This morning it was something like: "In ancient Rome a lb of these flowers would have cost you a month's wages". It was a photo of some cliffs with waves crashing in to them.
A reboot would probably fix it but I kind of like it. It is a warning about how broken everything will be inside and to all of the needless shiny stuff.
In settings, I turn off all the status apps on the Lock Screen page. And the 'Get fun facts' shit. I'll bet that's another thing the fallpupdate changed back...
-
MDN is pretty good about marking things are deprecated, experimental (do not use in production code), available for historical reasons but not in any standards...
Then you get to
Navigator.oscpu
which is one of the latter, but not marked as such in the documentation. Because why would you want good documentation when you could confuse the crap out of a developer for an hour?
-
for context: https://developer.mozilla.org/en-US/docs/Web/API/Navigator/oscpu
the 'specifications' section is blank but it's not communicated at all. there really oughta be a warning box at the top for all non-standard stuff.
-
there really oughta be a warning box at the top for all non-standard stuff.
There is on literally every other deprecated or non-standard property in Navigator and Window.
-
CD Projekt Red could easily fit in as one of the front page articles:
https://www.youtube.com/watch?v=AynvqY4cN8M
-
@blakeyrat said in WTF Bites:
there really oughta be a warning box at the top for all non-standard stuff.
There is on literally every other deprecated or non-standard property in Navigator and Window.
-
I love it when IntelliJ freezes.
-
@anotherusername ok? Are you trying to communicate something?