WTF Bites
-
@boomzilla said in WTF Bites:
@anotherusername said in WTF Bites:
@boomzilla said in WTF Bites:
@anotherusername said in WTF Bites:
Not when you're discussing rational functions, it's not reasonable to assume that.
We're going to disagree.
"Find the range of these rational functions" is literally homework that I've done, and it was not reasonable to assume that the expected domain was all reals.
But there you've been told that these are functions, which is a very different set of assumptions than, "is this a function" sort of question. So you can deduce that you are outside of the function's domain if you find a place where the function is undefined.
fine, "For each expression, identify whether the expression is a rational function, and if it is, give its domain".
-
@anotherusername said in WTF Bites:
@Rhywden Yes, but when you're explicitly talking about what its domain and range are, then the sets are supposed to be complete.
They are? News to me. That's what we're using things like injective or surjective for.
Agreed. For example,
sin(x)
is a perfectly good (periodic) function on R. But its range is only [-1,1], not R. That's whyarcsin(x)
is only a function on a slice of R.Some functions are invertible, which requires them to be one-to-one and onto (bijective?). That is, every point in
domain
maps to one and only one point inrange
and vice versa. Not all functions are invertible, however.And then there are weird things like the delta "function" which is really only defined as part of an integral (although you can reach a delta function by starting with a gaussian and taking the limit as the width approaches zero, subject to an integral-conservation conditions, but...)
-
@Benjamin-Hall said in WTF Bites:
And then there are weird things like the delta "function" which is really only defined as part of an integral
Why the quotation marks? What weird definition of function are you using? It's a perfectly fine (and somewhat boring) function on ℝ \ {0}.
-
Visual Studio added support for
__has_include()
a while back. Yay!Quick test:
#if defined(__has_include) # if __has_include(<optional>) # include <optional> # endif #endif
/opt/compiler-explorer/windows/19.14.26423/include/optional(15): fatal error C1189: #error: class template optional is only available with C++17.
Hilarious.
So, by default (not changing compiler settings),
__has_include()
finds that there is an<optional>
header. But as soon as one actually#include
s it, the header will#error
out with the above message. Totally logical, and equally totally unusable.
-
This post is deleted!
-
@anotherusername said in WTF Bites:
@boomzilla said in WTF Bites:
@anotherusername said in WTF Bites:
Not when you're discussing rational functions, it's not reasonable to assume that.
We're going to disagree.
"Find the range of these rational functions" is literally homework that I've done, and it was not reasonable to assume that the expected domain was all reals.
Our teacher has told us to assume that it's all reals if not stated otherwise. And it can be reasonably assumed from the number of WTF Bites entries for this website that it's not capable of displaying the correct symbol.
-
@pie_flavor said in WTF Bites:
@anotherusername said in WTF Bites:
@boomzilla said in WTF Bites:
@anotherusername said in WTF Bites:
Not when you're discussing rational functions, it's not reasonable to assume that.
We're going to disagree.
"Find the range of these rational functions" is literally homework that I've done, and it was not reasonable to assume that the expected domain was all reals.
Our teacher has told us to assume that it's all reals if not stated otherwise. And it can be reasonably assumed from the number of WTF Bites entries for this website that it's not capable of displaying the correct symbol.
From your last few posts I gathered that is displays images. So I’d say “it” is capable to show the correct symbol, just whoever makes these assignments isn’t capable of producing the correct images.
-
@boomzilla said in WTF Bites:
@TimeBandit said in WTF Bites:
@Zerosquare said in WTF Bites:
but what do "r", "w" and "x" mean in this context?
r = rejected me
w = will not speak to me
x = is now my exPoor Tsaukpaetra
Since I'm at a dog show right now:
r: refusal
w: wrong course
x: Hmmm, close enough to an E for eliminationx: Excrement on the course?
That becomes an E, so it works!
-
@Cursorkeys said in WTF Bites:
You know what? I just don't want to know why, the answer is only going to be horrifying
6 to 32 characters, must not contain spaces or ~ ^ < >
Ok, whatever. I tell KeyPass to generate a password that matches those arbitrary rules. Gradually decrease the length and forbid other possibly troublesome characters. Finally decide that "~ ^ < >" really means "any special characters." 32 characters, alphanumeric only.
-
@anotherusername said in WTF Bites:
It's pronounced S-Z, "ess-tset" (the German letter pronunciations differ from the English letter pronunciations).
"Ess-Zed"? That sounds like Proper™ English to me. It differs from American English, but much British English so differs.
-
@djls45 No, "tset".
-
@anotherusername said in WTF Bites:
@boomzilla It's still a function though. One of these guys:
Saying "f(x) is not a function from ℜ to ℜ because 0 is not in its domain" is
pure nonsenseperfectly sensible.FTFY
(Edit: 'd)
-
@djls45 TBH, if someone had said that earlier, I may have got it earlier. @Rhywden finally did point out that the question had said it, but I'd missed the significance of it until he mentioned it.
-
My feed now includes Spanish?! WTF why???
What would possibly have clued Google in to thinking I need more español in my life?
-
@Tsaukpaetra Same here. Do you have Spanish as an alternate on your keyboard?
-
-
So, by default (not changing compiler settings), __has_include() finds that there is an <optional> header. But as soon as one actually #includes it, the header will #error out with the above message. Totally logical, and equally totally unusable.
What should they do instead? Have separate set of headers for each language version? Make some compiler magic that hides new headers from
__has_include
but still prints the appropriate error when it's included? What they did is bad, but every other possibility is even worse.BTW, you can trivially work around that with
#if __cplusplus >= 201703L
.
-
@anotherusername said in WTF Bites:
@djls45 No, "tset".
Oh, right. I totally forgot that German z is actually c. Now this "es-zet" thing makes even less sense.
-
@Tsaukpaetra said in WTF Bites:
What would possibly have clued Google in to thinking I need more español in my life?
Do you live in California or Chicago?
-
What should they do instead? Have separate set of headers for each language version? Make some compiler magic that hides new headers from __has_include but still prints the appropriate error when it's included? What they did is bad, but every other possibility is even worse.
It's a mess, yes. I think both GCC and Clang do a less bad thing(*): they don't error out in the header, but also do not declare anything in there. As far as I'm aware, this is in line with the last recommendation from the feature testing people: if
std::optional
(in this case) were supported, the header would also define__cpp_lib_optional
to 201606 or greater.What MSVC does is definitively less useful:
__has_include()
is practically useless in this case.(*) Mostly, a few versions of GCC (7.1 - 7.2) apparently do the same thing as MSVC.
BTW, you can trivially work around that with #if __cplusplus >= 201703L.
There are a bunch of features where this doesn't work. Like
<filesystem>
.
-
I think both GCC and Clang do a less bad thing(*): they don't error out in the header, but also do not declare anything in there.
Personally, I disagree that it's better. But it depends on whether you like to read preprocessing errors or type errors more.
-
@Gąska FWIW, I do see your point. If one includes <optional> and the compiler tells you that you need to enable C++17 mode to use it, it's pretty clear what the problem is (and what a solution might be). If one includes <optional>, but doesn't get an
std::optional
, it's a bit weird. (But, then again, the same happens with something like std::clamp in <algorithm>, since that header already existed anyway.)
-
@cvi not just that. If there will be no definition of
optional
anywhere at all, chances that the error message will be even half decent are still low. Especially when you're abusing templates (and most of standard library is abusing templates, so good luck not having that).
-
@Tsaukpaetra said in WTF Bites:
What would possibly have clued Google in to thinking I need more español in my life?
Do you live in California or Chicago?
Arizona, IIRC.
-
@pie_flavor said in WTF Bites:
@Tsaukpaetra Same here. Do you have Spanish as an alternate on your keyboard?
No, nowhere.
-
@Tsaukpaetra said in WTF Bites:
What would possibly have clued Google in to thinking I need more español in my life?
Do you live in California or Chicago?
Arizona.
-
Writing capital Ć in Google Docs causes it to enter some weird read-only mode that I don't know how to turn off. Fucking American cultural imperialists, binding useless commands to printable key combinations...
-
Oh, right. I totally forgot that German z is actually c.
German c is said "tse"... scroll back to like 1:00 in the video to hear it.
-
@anotherusername as I said.
-
Writing capital Ć in Google Docs causes it to enter some weird read-only mode that I don't know how to turn off. Fucking American cultural imperialists, binding useless commands to printable key combinations...
They don't appear to be documented anywhere, but...They're documented in the "Help":Shortcut Command Ctrl+Alt+Shift+Z Editing mode Ctrl+Alt+Shift+X Suggesting mode Ctrl+Alt+Shift+C Viewing mode Those three modes are also accessible from the icon in the menu:
(Ctrl+Alt is interpreted the same as AltGr on Windows PCs, so as to allow AltGr to be typed on keyboards that don't have an AltGr key.)
-
@anotherusername fun fact: right Alt is an alias for Ctrl+Alt. You can see it yourself by making a program that processes raw WinAPI input events - see which modifiers are enabled when you press a letter with right Alt down.
Fun fact 2: all three letters in the table in your post are used to write Polish diacritics. All three happen to be the first letter in quite a few words. It's not unusual to see them at the start of sentence, nor is it unusual for last names to begin with those.
Edit: half-
-
@Gąska Right Alt is mapped to AltGr on keyboard layouts that have an AltGr key. In fact, the AltGr scancode is identical to the right Alt scancode (assuming the keyboard has a proper right Alt key -- some are cheap and have two left Alt keys)... it's purely a matter of how the OS interprets it.
Note that those cheap keyboards where both Alt keys are mapped to just a single (left Alt) scancode are one reason why the Ctrl+Alt alias exists. It's impossible for the OS to differentiate between the left and right Alt keys on such a keyboard, so there's no way to map one of them to AltGr.
-
The worst part is that I'm in the middle of writing a lab exercise report for college class. Every other sentence starts with the word "exercise", which in Polish is "ćwiczenie".
-
@Gąska Use the "report a problem" form and complain. The more people complain, the more likely they are to make an option to disable keyboard shortcuts (you're not the only person who's complained about the lack of such an option).
-
@Tsaukpaetra said in WTF Bites:
What would possibly have clued Google in to thinking I need more español in my life?
Are you sure it's not castellano?
-
-
@anotherusername said in WTF Bites:
the more likely they are to make an option to disable keyboard shortcuts (you're not the only person who's complained about the lack of such an option).
Saying that makes me less likely to do it.
-
@Gąska Do, or do not. My goal wasn't to try to reverse psychology you into doing it.
-
@anotherusername you successfully forward-psychologied me into not giving a fuck and digging out my university Office keys.
-
-
The worst part is that I'm in the middle of writing a lab exercise report for college class. Every other sentence starts with the word "exercise", which in Polish is "ćwiczenie".
I mean, keyboard combinations aside, that's just painful for having to make the cw stretch.
-
Status: installing an Onkyo TX-NR646 audio receiver (because we got it for free and it happens to be better than our current one).
Apparently, if you want to show component video, it is required to be 480i. Not, 720p, 1080i, whatever, can't do it.
WTF were they thinking? Or is this some copyright bullshit?
-
@pie_flavor said in WTF Bites:
The worst part is that I'm in the middle of writing a lab exercise report for college class. Every other sentence starts with the word "exercise", which in Polish is "ćwiczenie".
I mean, keyboard combinations aside, that's just painful for having to make the cw stretch.
Meh. Both in WSAD range. Compare to i-e, e-_, _-f, f-l, l-a, v-o and o-r needed to write your username.
-
@Gąska No, absolutely the opposite. Letters on opposite sides of the keyboard are great because two hands can hit two keys faster than one hand. Whereas in your case you have to hit two keys in sequence, in an uncomfortable hand position.
-
@pie_flavor said in WTF Bites:
@Gąska No, absolutely the opposite. Letters on opposite sides of the keyboard are great because two hands can hit two keys faster than one hand.
My right hand is 5x slower than my left hand.
Whereas in your case you have to hit two keys in sequence, in an uncomfortable hand position.
Years of practice in video games. It doesn't bother me as much as having to take hand off mouse.
Fun fact: when I write normally, my left hand reaches all the way to the 6YHB keys. Sometimes N too. I hit all modifier keys (except AltGr) always with left hand, regardless of which hand I use to type the modified character.
-
@anotherusername fun fact: right Alt is an alias for Ctrl+Alt. You can see it yourself by making a program that processes raw WinAPI input events - see which modifiers are enabled when you press a letter with right Alt down.
Fun fact 3: that doesn't work for Ctrl-Alt-Del (AltGr-Del does nothing special).
Fun fact 4: if you want a fancy way to reboot, you can press Ctrl+Alt+Numpad Period. It will work even if Num Lock is on.
-
Are you sure it's not castellano?
Isn't castellano the specific dialect of Spanish that is spoken in Spain (as opposed to Latin America)?
EDIT: Wikipedia disagrees, and says that Spanish and castellano are synonyms. I learned something today.
-
@Zerosquare said in WTF Bites:
Wikipedia disagrees, and says that Spanish and castellano are synonyms.
Well, that's true… according to the castellano speakers.
-
@Zerosquare said in WTF Bites:
Isn't castellano the specific dialect of Spanish that is spoken in Spain (as opposed to Latin America)?
I thought so too, but the article I posted disagrees with me, and I'm no authority, so.
-
Writing capital Ć in Google Docs causes it to enter some weird read-only mode that I don't know how to turn off. Fucking American cultural imperialists, binding useless commands to printable key combinations...
We don't even have "AltGr" here. That's what you get for relying on made up keys.