WTF Bites
-
Delete the damned service file and run systemctl daemon-reload? That's black magic?
Apparently.
Also, how the hell did that not get purged with the reinstall?
No idea. Didn't look.
-
@TimeBandit said in WTF Bites:
Looks like he knows just enough to be dangerous.
As long as he doesn't stay knowing that much but learns and gets better, it'll work out in the end.
-
@cartman82 said in WTF Bites:
Somehow screwed up
That's easy, use a password that has a single apostrophe in it. No joke, shit was screwed up royally because the root MySQL password got left unset and the rest of the install script shits bricks because of that.
-
@TimeBandit said in WTF Bites:
How can you fuck apt-get install mysql-server ?
You can do
apt-get install mysql-server
instead ofapt-get install mariadb-server
, or vice versa, or do/don't use one of the versioned packages.@cartman82 said in WTF Bites:
Apparently forgot to enter password or something.
There are some changes to how administrator authenticates to mariadb and mysql and possibly also between versions. The default configuration of mariadb authenticates root by system user only (so you simply sudo to connect as root) and the maintenance scripts rely on that working.
-
@dse
Yes, much ignorance. I wish it blew up in his face to learn a lesson.
-
@cartman82 said in WTF Bites:
Then he reinstalled and purged and who knows what else.
Well, this is another quirk of mysql/mariadb. The authentication is configured in the database, but that is considered user data, not configuration, so even purge and reinstall won't reset it if you broke it. You have to fix it by hand or—since there were no valuable data yet in this case—delete the database from under
/var/lib
in addition to purging the package.
-
On today's episode of file-path suckage:
std::experimental::filesystem
on Visual Studio (2017). You'd think that Microsoft would get paths on their own OS sorted, but alas, no.namespace fs = std::experimental::filesystem; fs::path p( "\\\\?\\C:\\Users" ); // a.k.a. \\?\C:\Users printf( "%s\n", p.root_name().string().c_str() ); printf( "%s\n", p.root_directory().string().c_str() ); printf( "%s\n", p.root_path().string().c_str() );
=>
\\? \ \\?\
(Ok, it's
std::experimental
, but still, that has been around since VS2012 or something, it's not like they haven't had time to find stuff like that.)Edit: Also getting this right now.
:-(
-
\\?\
Obviously written by an intern who doesn't know about the
\\?\
form. Of course, I never use it either, so I forget about it too...
-
std::experimental
Placing bets now: Those are just calling old standard win32 functions for path resolution (you know, the ones that don't support unicode paths).
-
FreddieTheFish
That's "Freddi Fish", without the final 'E' and without the "the". Freddi is yellow.
And female. I don't know how long it took me before I realized that.
-
And female. I don't know how long it took me before I realized that.
Did you know Blue (from Blue's Clues) is also female?
-
@Tsaukpaetra said in WTF Bites:
And female. I don't know how long it took me before I realized that.
Did you know Blue (from Blue's Clues) is also female?
I think I did know that one. But I've never watched more than a few seconds of the show.
-
@Tsaukpaetra said in WTF Bites:
std::experimental
Placing bets now: Those are just calling old standard win32 functions for path resolution (you know, the ones that don't support unicode paths).
I'm fairly sure that it uses
wchar_t
internally, so if they use the Win32 functions directly, they should end up with theWhateverW()
versions that are unicode. (I'll see if I CBA to look at the code later.)Also, my guess is that their parsing code goes ... hmm ..
\\
in the beginning? Must be a network share host (or whatever that's called in Windows)! Thus, the root path must be the thing that follows and up until the next\
. Yay, we have found the host\\?
!
-
Obviously written by an intern who doesn't know about the \?\ form.
To be fair, if I were an intern, and somebody told me to implement the functionality of
std::filesystem
, I'd probably seriously consider a career in basket weaving instead.Standards-compliant allocator aware exception safe containers with 16-bit segmented memory support probably have fewer weird corner cases than dicking around with paths and the file system on Windows.
Edit: Oh, hey, look
\\?\
in quotes is turned into\?\
for some reason.
-
To be fair, if I were an intern, and somebody told me to implement the functionality of
std::filesystem
you'd brush up a your Google-fu a bit, find the implementation, copy&paste it and call it a day.
Update: and you'd make exactly that mistake, because that implementation does not seem to support
\\?\
either.
-
@Bulb I wouldn't be surprised if that's what they did, and Boost.Filesystem doesn't deal with
\\?\
-style paths either. CBA to find out, though.
-
@cvi Seems you are right. No sight of
?
in this function.
-
Oh look, the POSIX C standard library has hash tables. How useful!
Too bad they lack a way to enumerate their contents. So if you need to do that (for example, to free() the stuff you store), you'll need to save that list separately.
Oh, they also seem to lack a way to delete or modify elements. Hope you didn't need that.
Oh, and they have a fixed size. So if you don't know how many elements you'll be getting, you'll have to either make a really big one, or make a new one when it has filled up and copy all the elements there.
OH WAIT YOU CAN'T EVEN DO THAT BECAUSE THERE IS ONLY ONE GLOBALLY SHARED HASH TABLE.
Great design guys
(yes, the GNU implementation fixes that last point, thankfully, still a wtf)
-
-
@anonymous234 said in WTF Bites:
OH WAIT YOU CAN'T EVEN DO THAT BECAUSE THERE IS ONLY ONE GLOBALLY SHARED HASH TABLE.
Duh, how do you think SSDS works?
-
@anonymous234 said in WTF Bites:
OH WAIT YOU CAN'T EVEN DO THAT BECAUSE THERE IS ONLY ONE GLOBALLY SHARED HASH TABLE.
Yeah, I'll be sticking with my own. Which do feature iteration, deleting, and even automatic resize. And multiple instances of course.
-
@anonymous234 So, it's the equivalent to a slab of stone you chisel words into?
-
@anonymous234 So, it's the equivalent to a slab of stone you chisel words into?
C finally has immutability!
-
@cartman82 said in WTF Bites:
So the guy from mettle S04E05 has started working today.
This link gives me "access denied". Did you post it in the one of the Mafia forums or something?
-
This link gives me "access denied". Did you post it in the one of the Mafia forums or something?
It's in the Lounge category. You'll need to request access to the Lounge (more accurately, to the trust_level_3 group) if you want to see it.
-
It's in the Lounge. For frequent UA flyers. And Discourse stat abusers.
Do we have an official Access Request Form? Or should one just pester the mods/admins until somebody can be arsed to do some work and let someone in?
-
@Luhmann If you go to the Groups page and find the trust_level_3 group, on that group's page there's a button you can use to request access. The mods still have to do some work to let you in, but only along the lines of "is this person an obvious spambot or known troublemaker? If not, fine".
-
@Scarlet_Manuka that and a certain amount of "do we feel safe giving access to potentially doxxy material?" gut instinct.
-
@Scarlet_Manuka Thanks.
-
gut instinct.
@Medinoc seems to be around since 2014 and has just short of 400 posts ...
-
@Luhmann 2014? That's the switch from Community Server to ?
-
@Medinoc Probably. I've joined at the exact same time, according to my profile.
While the truth is I've been hanging around here since earlier than I care to admit.
-
@Medinoc
Probably ... my 'joined' date is only a few days later
-
-
@thegoryone for a while I kept auto-pilot typing "discourage" because it always seemed to discourage conversation.
-
-
@Luhmann 2014? That's the switch from Community Server to ?
Yes. If you were on CS and then registered in the Discourse Era, you Disco-registration is what your join date will be. We re-imported CS in the move to nodebb and abandoned CS accounts that couldn't be matched up to an active account got their account creation date from CS.
-
@boomzilla I've changed my email address some time before the move to NodeBB, I'm guessing that's why Zecc@CS wasn't matched with Zecc@{Disc-cum-Node}.
-
@Zecc Yes, email was the key that @blubar used.
-
@Scarlet_Manuka said in WTF Bites:
This link gives me "access denied". Did you post it in the one of the Mafia forums or something?
It's in the Lounge category. You'll need to request access to the Lounge (more accurately, to the trust_level_3 group) if you want to see it.
I've been putting recent Mettle threads in the lounge to hide them from google.
-
@cartman82 said in WTF Bites:
to hide them from google.
If that's all you're after, remember we hid the programmer challenge category from Google as well. So you can put them there, too.
-
Good job, Microsoft. That gap between the two un-blocked-out apps on the taskbar is from Microsoft's new Mail app, which they inconveniently pinned there without my permission last update. So I went ahead and unpinned that, and was left with this. Yes, I've clicked "Close all windows". Several times. It does nothing. Just takes space up on my taskbar. Because apparently they never imagined someone might not want it there, or never tested it with something opened after it.
-
@Yamikuronue said in WTF Bites:
@cartman82 said in WTF Bites:
to hide them from google.
If that's all you're after, remember we hid the programmer challenge category from Google as well. So you can put them there, too.
Yeah, but then it'd be in a category that makes sense and that would break the categorization theme we've all come to base our workflow around.
-
@Dreikin E_NO_REPRO. Probably still has a window open that is refusing to close, or the taskbar is bugging out as it sometimes does with upgrades unlike clean installs.
-
@Dreikin E_NO_REPRO. Probably still has a window open that is refusing to close, or the taskbar is bugging out as it sometimes does with upgrades unlike clean installs.
That's good to know. Ought to go away after a reboot then.
-
-
@wharrgarbl said in WTF Bites:
deal with \?-style paths either.
What is this thing?
-
@wharrgarbl said in WTF Bites:
What is this thing?
A Windows abomination that permits longer paths (in some range of Windows versions).
Why it exists would be a good question though.
-
Why it exists would be a good question though.
It exists because the 260-character limit predates the start of Windows being able to use networked and non-Windows file systems.
-
@LB_ Ditto. It unpinned with no issues on all my machines. Even in the VMs that blue screen everytime I update them. (64bit. The 32bit one updates fine. I blame Hyper-V.)