@Arantor Windows also blocks all characters below 32 at some layer of the API (good).
On the other hand, I suspect NTFS's filename encoding is actually WTF-16.
@Arantor Windows also blocks all characters below 32 at some layer of the API (good).
On the other hand, I suspect NTFS's filename encoding is actually WTF-16.
- UNC paths are a Windows invention and have been around since, what, the dawn of NT? Why the absolute fuck does cmd.exe not support them?!
Worse, I think it's Windows itself not supporting a thing here.
Namely, not merely a UNC path, but a UNC path as "current directory".
...Or, Windows supports it but cmd.exe does not for one specific reason: For compatibility, cmd.exe is required to support multiple current directories, namely one per drive letter. So if you give it a "current directory" without a drive letter, it chokes.
Or more exactly, it chokes if you try to cd
an UNC path. But if you use pushd
instead, it will "map network drive" to the highest letter available and unmap when you popd
.
@kazitor Well, at least they're telling you upfront that they'll just take the money and use it, so it's not a scam.
@Zecc said in Look before you paste.:
Remember when back in Windows 95 or 98 it was possible to drag some text into the desktop and it would create a snippet file you could then DnD at a later time to get the text back?
What ever happened to that functionality? Was it removed because no one knew / used it?
Yes, and there was much rejoicing.
@Gąska Maybe I'm mistaken and instead of Visual vs .Net, it's .Net vs Windows (I noticed too late my latest Windows install on my work PC was in French).
Also, to this day, the file rights "Read attributes" and "Read extended attributes" are still translated respectively as "Attributes of reading" and "Reading of extended attributes" on French localizations of Windows.
Note: It may not be obvious, but the latter translation is correct. The French language likes to nounify verbs whereas the English language likes to verbify nouns.
About the ALL_CAPS thing, did code in other languages before? Because for me, who's coded in C and C++ before, that is how you're supposed to declare constants in those languages.
In fact, I didn't even know javascript even had globals. Or const
.
That said, I remember some UI in imperative, but that wasn't a translation: Back before Google became our Lord and Savior™, we had that search engine themed after a dog, so the "find" button was named "Go fetch!" in imperative form.
@Steve_The_Cynic
(sorry I had to, this emote is just too appropriate)
@Arantor said in WTF is happening with Windows 10? And nothing else:
Et tu, Telemetry, et tu??
WHAT THE EVERLOVING FUCK ARE YOU ACTUALLY DOING
I've had this same question today, only it was taking 100% of the hard drive I/O.
This powershell/cmd discussion reminds me of what happens when Microsoft unilaterally replaced "open CMD here" with "open PowerShell here". It so happened that the command I needed to use when I noticed that was MKLINK
. Which, for those who don't get the joke, doesn't exist in PowerShell. Cue my forcefully restoring the registry entry...
I wonder if any "mining center" has been robbed yet. Sounds like a fine source of quality hardware...
I hate those. And I found a particularly egregious one because it has the gall to mock the user:
Can you see this suggestion? How am I supposed to do that, dear moronic webmasters, when you just erased it!
100e is smaller than 22e.
I was a bit incredulous so I decided to actually test it, and this is indeed true.
100e is 1⋅e2 + 0⋅e1 + 0⋅e0 = 1⋅e2 ≈ 7.39
22e is 0⋅e2 + 2⋅e1 + 2⋅e0 = 2⋅e+2 ≈ 7.44
Edit: Now that I think of it, is 2 even a valid digit for base e? It's smaller than e, but greater than e-1... this is probably the reason of the discrepancy.
@sloosecannon Yeah, it's the Samsung one. No longer even tries to hide it, now instead of calling itself "Internet" it calls itself "Samsung Internet". And demanded yet even more rights when updated.
At least I got something good out of this new Android version: Play Store no longer insists that I update disabled shovelware applications (by the way, Samsung Internet is a special snowflake app that on top of not being uninstallable, cannot be disabled either -- and no, even with the new Android version you can't switch it out for Chrome for ultra powersave mode).
@dcon Try anyway... if it's the first printing, then it's an original :p
@dcon said in WTF is happening with Windows 10? And nothing else:
@TimeBandit said in WTF is happening with Windows 10? And nothing else:
makes it easy for an attacker with administrative control to bypass Windows kernel protections
Oh come on...
Let's say it together now: It rather involved...
@Mason_Wheeler said in WTF Bites:
@Rhywden Another reason why build servers should not have access to the internet.
Then how would they do basic build-server stuff like pull code from source control, restore dependencies, or deploy build artifacts?
Because they'd be talking to the intranet instead?
Well, they should be talking to the intranet instead. Unfortunately, Microsoft disagrees, and has been furiously pushing Azure DevOps and github.
I liked animated GIFs, but to me, they were "ruined" by people cramming movie excerpts into them.
And by "ruined", I mean "inspired platforms like Twitter to convert GIFs to actual videos on-the-fly when uploaded, leaving no trace of the original, lossless GIF". Yeah, it makes sense when it's a movie, but it does not when it's an actual, hand-crafted pixel art animation!
That said, after watching this GDC talk, I've come to realize there's one thing cruelly missing from GIF and other "animated image" formats (MNG, APNG, is there another?) alike: Support for palette cycling. Animating without changing the actual pixel data? That would make for some cool, yet small files.
@Benjamin-Hall said in WTF Bites:
Or Asia, where several countries put the family name first.
Hungary's pretty keen on that too, but not always.
France is pretty inconsistent with it. It's family name last in common parlance, but often first in official documents or lists. That's why we added the practice of putting the family name in ALL CAPS (which I was surprised to learn was not nearly as common outside of France as I thought).
@blek Reminds me of a similar misadventure with the French tax website. For some reason I had to manually copy and paste (or even possibly read-and-type, I don't remember) some ID from a digitalized document to a form. Both opened in a pop-out window, and both were accessible from different pages... and leaving one page closed all popped-out windows it had opened.
@Cursorkeys Of course, you've already checked that the code is mono-thread and optimization is turned off on the compiler?
There's something weird with this line too:
struct as_parser_t *parser = (struct as_parser_t *) &parser;
Why is this cast necessary? It shouldn't be. Remove it, see if if stops compiling, study why.
Edit: Hanzo'd by aitap.
The more I look at this, the more I think this line actually initializes parser
as a pointer to itself, leading to potential stack smashing and all hell breaking loose.
Also, I recently found out OpenCV, after all these years, can't handle non-Latin characters on your typical Western install of Windows.
More specifically, its loading functions have no wide-character overload, and they all call the basic fopen()
internally. Which isn't a problem on unixey platforms that allow the current locale to use the UTF-8 encoding, but we all know Windows is prevented from doing that by the burden of compatibility (which unixey types don't care about).
To add insult to injury, in the version of OpenCV our software is linked to (OpenCV v2.4.5) I couldn't find a way to load an image from a byte array either (and frankly I'm not sure there's one in the current version, either).
All of this means that in order to do our OpenCV processing on images with non-Windows-1252 names (which can be on read-only storage), I had to make a local temporary copy with a "sanitized" (and thread-ID'd) name just so I could load the pictures for processing...
… looking it up, I ran across this critique of TOML.
Frankly reading the article, there's a lot to disagree with and some to agree with.
Agree:
Disagree:
On self-documentation:
It's true that the application is the ultimate arbiter on parsing. Yet, self-documentation helps other applications make sense of the data and/or verify that it's consistent with how it says it is (A third-party tool capable of parsing ASN.1 DER data is pretty useless if you don't have the data specification handy, because while you know what each field is, you have zero clue what it's for). I think it's a bit like XML:
Bonus WTF:
@Cursorkeys said in Ported C source, assigning pointer breaks struct, what did I do wrong?:
Maybe that'll teach me to to ask why the compiler is unhappy and not just cast
Hence my sigquote on another forum:
"Aw, come on, who would be so stupid as to insert a cast to make an error go away without actually fixing the error?"
Apparently everyone.
-- Raymond Chen.
Just a little shout-out to Microsoft for deciding that most people don't actually want to easily know where a window ends and the neighboring one begins, a making that an optional feature disabled by default.
Ok, what is the option, where is it, and how do I change it? (Since I'm not running Win11 yet, I need to record all the little shitty things that need tweaking)
Settings -> Personalization -> Colors -> Show accent color on the following surfaces -> Title bars and window borders
@hungrier This would almost be acceptable if they used a website instead of an app. And to add insult to injury, I bet the app is a glorified website anyway...
Wow, if Edge still has this idiotic "Forward all Web Notifications to Windows notification API without adding anything like \"FROM EDGE WEB BROWSER\" to their title" misfeature, this is going to be a disaster.
Edit: Looks like they at least corrected that. Well, partially:
To me, "(site name) via Microsoft Edge" should be bigger than the title, and come before it.
Edit2: And the icon should be Edge's, rather than let a website set it.
@Arantor That's the flip side of microservices: If you implement them on vastly different techs, when you deploy the whole thing you have to install all these techs and either invest in lots of hardware or pray that they play well with each other on the same machine.
@Applied-Mediocrity TIL 1 horsepower =745.699872 watts (thanks Google)
Which means... 560-Watt GPU? That's more than my comp's entire PSU is rated for!
Okay, concrete example time. I code in C#. C# is a language that has both a destructors mechanic and a try/finally mechanic (and yes, the former is merely syntactic sugar for the latter).
And you know what? Try/finally is cumbersome. If there's anything I need to do (and undo with finally) several times, I'm going to use an IDisposable
-implementing object in a using
block.
I have a class for changing the foreground color of the console output and changing it back when disposed. I have a class for swapping any two values and swapping them back when disposed. I even have a class to call a parameterless delegate (=function pointer, for those who don't know .net) (or even a lambda expression) when disposed. All this because a using
block is less cumbersome than try/finally.
That's just how cumbersome try/finally is, compared to RAII mechanics.
This week I learned (through the new pgAdmin) that someone liked the idea of Electron so much they made another.
(that said, switching to an Electron-like system is still a huge improvement for the "desktop" version of pgAdmin, which badly needed it)
I had to registry-hack again today, this time to bring back the Windows Explorer's context menu.
@MrL said in A fool and his not-really-money are soon parted:
@LaoC said in A fool and his not-really-money are soon parted:
It's funny how some people can at once fiercely reject the labor theory of value, allegedly subscribe instead to the Austrian view that the price of a thing is a direct expression of individual preferences, hence a thing is "worth" whatever people are willing to pay for it, and pretend to know the exact opposite: that certain things are worth something completely different than the price at which they were exchanged in the market.
There's no contradiction. Things have different value for different people. Saying "it's not worth the price paid" means just "I would not pay that much".
Labor theory of value is insane.
Our attitude to NFT isn't anywhere near bounded to "I would not pay that much". It's "I would not pay that pay that much and I am appalled that anyone would." It's not merely about personal values, it's about the expectation of those values being shared.
@cvi IIRC, Group Policies overwrite your machine settings every few hours, that's how they work.
I've noticed that my settings get nuked every few days ...
But that's still entirely pointless. If I can trivially bypass locks/security settings in a few clicks, it doesn't matter that the settings get reapplied every few hours. They're still (at best) a vague suggestion.
Group Policies were intended for computers whose users are not local administrators. There's no "administrator hierarchy" saying the domain admin trumps local admins, so when you have local admins, Group Policies become a "poor man's subtitute" for that.
@cvi IIRC, Group Policies overwrite your machine settings every few hours, that's how they work.
@hungrier I've seen some Tumblr blogs with no date at all on posts. Same with fellow WTF site Not Always Right. :-(
@blek said in Internet of shit:
@anotherusername b-b-but how am I supposed to order two tons of creamed corn when I need to? Am I supposed to actually go on Amazon, press a few keys, and click twice - like a Neanderthal?!
Or you could have button-activated voice recognition.
@gleemonk Ah I see, he doesn't get the difference between a "compile-time constant" and a "variable whose contents don't change after it's initialized".
Javascript being "higher-level" than C++, I'd have expected it to have const
restricted to the former, like in C# (or constexpr
in modern C++).
Actually, the server will return
200 OK
with an HTML document describing the error (instead of the usual JSON or XML or whatever format). Because of course it does.
We've had this same problem recently. And since it was an API for retrieving a raw file from a repository, I had to add some kludgy code to detect if the reply is HTML, and not accept it if it is (thankfully the repository is not supposed to contain genuine HTML files).
Good news is, I've made a pull request for a change that would cause it to return the actual error code. Bad news is, the machine turns slowly...
@Bulb We're a .NET Framework shop.
We've only recently started migrating one or two projects to .NET Core, (not easy when your codebase relies on WebForms, ASMX and WCF, though the latter is now (partially) covered).
@TwelveBaud said in UI Bites:
@Medinoc Working as designed: it's previous in the list, not previous in time, and same vis a vis next.
And "Up" and "Down" made this much more explicit and unambiguous. Why change it?
Edit: Also, "Working as designed" is exactly why I called it a misfeature, not a bug.
@ben_lubar At first I thought "wow, I hadn't seen two-byte booleans since the VB days!". But then I remember our product's Data Access Layer (which must be accept several RDBMSs, one of them Oracle) actually uses short integers columns to store boolean values.
Also, 16-byte double
values? Well I wouldn't be surprised if 80-bit long double
were stored this way (for alignment reasons) on platforms that actually support them, but otherwise...
@dkf I would write it as Windows's
as well.
Just to be sure I havent't lost my touch, it's Mr Jones's car
for one guy but The Joneses' car
for the whole family?
@kt_ said in Android browser:
@medinoc why would you want to see more of the URL? The screen is already too narrow, you wouldn’t be able to see it in its entirety, especially since there’s chrome on the right hand side next to the text box.
So my browser wouldn't lie to me and tell me I'm on the website's home page. A lying text field is worse than no text field at all.
On my smartphone, I've been using the built-in Android Samsung browser a lot for the simple reason that I have no choice when I enable my phone's "ultra powersave" mode: It's Android Samsung Browser or no Internet browsing at all.
Now I've seen my fair share of WTFs with the years, starting with its lack of ad-blocker that makes it extremely vulnerable to "redirecting ads". Today I finally, finally, found the time to turn on my flat's Wi-Fi and upgrade my smartphone from the old Android 4.4.2 to something less obsolete.
Only to see that the browser no longer shows me the full URL of the page I'm viewing. For some reason, it seems to think just the website name is enough. WHAT. THE. FLYING. FUCK?
How could anyone ever think this was a good idea? And of course, there's no setting to bring it back. No, the browser will adamantly refuse to show you more than the server name until you click on the address bar. Then as soon as the address bar loses focus, it hides it again.
I hate software being dumbed down for dumb users with Down's. At least Windows's "hide file extensions" can be disabled. This piece of shit cannot.
@GOG Did you read the books first? Common mistake. Always watch the movie first, even if it's 10 years before you even learn a movie is in the works.
Looks like Samsung saw the gold in selling pickaxes.
It's often I edit some wiki pages on Firefox. If a page is big and the wiki has no convenient section-editing feature, this means using Ctrl+F (find in page) to get to the part I wanted to edit.
I don't know exactly how Firefox managed to screw up their keyboard input queue that badly, but if you Ctrl+F and continue typing immediately, focus will remain on the wiki's TextArea for one second or so, and with it, the first few characters you meant for the searchbox.
[09:57:15] <Onyx47_> and now Hangouts is in Croatian... [09:57:52] <Onyx47_> Google is in English, it's set to English in setttings, GMail is in English, YouTube is in English, but Hangouts, nope, it gives not a single fuck, Croatian [09:58:00] <Onyx47_> dan't find a fucking thing in the settings now [09:58:09] <Onyx47_> s/dan't/can't
Fuck you, Google
Reminds me of languages options in videogames. In the happy days of early Nintendo GameCube games (like Super Smash Bros. Melee or The Legend Of Zelda: The Wind Waker), the games had a setting for language, that defaulted to the one set in the console. By the time Soulcalibur II came around, the setting had disappeared from the game and the language was always the one from the console settings.
I've seen the same thing on Steam, only even dumber: Half-Life 2 (and other Valve games, now that I think of it) has a setting to choose the audio language, but the subtitles language is hardwired to Steam's language setting.