Generic extending class AND implements interface
How can I require a generic parameter to be an enum that implements an interface?
How do I iterate over cin line by line in C++? How to find bases for a subspace defined by an equation OS keyboard shortcuts conflict with apps keyboard shortcuts in GNOME 3 I have Ubuntu 16.04 with GNOME shell. I set ctrl+shift for the "Modifiers-only switch to next source" option.   This shortcut conflicts with apps hot-keys. I can't use ctrl+shift+i to open devtools in Chrome, it just switches the layout. In VS code IDE if I press shortcuts with ctrl+shift (for example ctrl+shift+f), shortcuts work but always switch a keyboard layout. When I used Windows this problem didn't exist.  Can I set the ctrl+shift shortcut in such a way that it causes a switch action only after the keys are released and only if this 2 keys were pressed (without additional keys)? Is there a way to convert number words to Integers? I need to convert one into 1, two into 2 and so on.  Is there a way to do this with a library or a class or anything? Poisson Distribution of sum of two random independent variables $X$, $Y$ Do I need a visa to transit (or layover) in the Schengen area? Understanding complete separation for logistic regression Why does logistic regression not converge for a linearly separable data set?   For linear separable data sets the model parameters go to infinity when mimizing the error function (according to Bishop2006, Pattern recognition and machine learning, section 4.3.2). I don't understand why. It must be connected to setting the score function, i.e. the derivative of the error function, to zero.  The error function is given by $E(\mathbf{w})$ as shown in the figure below. Where $\mathbf{t}$ is the target variable vector of the training set and $\mathbf{w}$ the parameter / coefficient vector. The posterior probabiltiy for class 1 is given by  $$y(n) = p(C_1|\mathbf{x}_n) = \sigma(\mathbf{w}'\mathbf{x}_n).$$ Where sigma is the logistic sigmoid function and $\mathbf{x}_n$ is the feature vector for instance $n$ including the predictors.     My second question to logistic regression is if the to posterior probabilities $p(C_1|\mathbf{x}_n)$ and $p(C_2|\mathbf{x}_n)$ sum to one? Is this a capacitor start motor and can I start it with a microwave capacitor I salvaged an old motor out of a air conditioner and I want to know if it's a capacitor start motor if I can start it with the capacitor I have and how to start it.  I included pictures of the motor and capacitor btw i have never worked with capacitive start motors so i need details on exactly how to wire it up with out ruining it What does the '=>' syntax in C# mean? I just came over this syntax in some of the questions in this forum, but Google and any other searchengine tends to block out anything but letters and number in the search so it is impossible to search out "=>".  So can anyone tell me what it is and how it is used? It's a really simple question. However I didn't see it in books and I tried to find the answer on the web but failed.  If I have two independent random variables, $X_1$ and $X_2$, then I define two other random variables $Y_1$ and $Y_2$, where $Y_1$ = $f_1(X_1)$ and $Y_2$ = $f_2(X_2)$.  Intuitively, $Y_1$ and $Y_2$ should be independent, and I can't find a counter example, but I am not sure. Could anyone tell me whether they are independent? Does it depend on some properties of $f_1$ and $f_2$?  Thank you. What is the smallest convex set includes all smooth unit curves? I try to understand: is there a smallest in area convex set that every smooth curve with length 1 can be placed inside it by translation and rotation?  I only have a upper bound $S \leq \frac14+\frac{\pi}{16}$ because of convex hull of two circles radius $\frac14$ and simple lower bound $S\geq\frac1{4\pi}$.  Does this set exist and what is its length? Used the internet and deleted history (Internet Explorer). Can anyone find out still that I used it? What can they still find out? As the question states: I used the internet on a shared machine and deleted history (Internet Explorer), which deletes all of the following:     I do not want anyone to know that I used the internet or the Internet Explorer application. Can anyone with access to the computer find out still that I used the internet? Could they even find out what sites I visited? Or what could they find out, and how?  As to the "anyone" I'm talking about, I mean I used a university computer, that are not suspicious but just in case they decided to take the computer and check to see if I used the internet, I want to make sure they can't find anything out. How can I cover my tracks to minimize the chances that they find out I used the internet on the machine? And by use, I mean even cover up the tracks that I opened the Internet Explorer application. "All I need (is/are) cigarettes and alcohol": which one is correct? In one of Oasis's songs — Cigarettes and Alcohol — there are two sentences that make me confused:     All I found was cigarettes and alcohol   ...and...     All I need is cigarettes and alcohol   Why would is and was be correct in these sentences instead of are and were, since they're referring to more than one thing? A bounce-rate attack to manipulate SEO? This is a question to experienced people that might help us shed some light on the issue.   We noticed a very strange behavior on our site, in Google Analytics. Some dude from Finland, namely, from Kouvola city is hitting one of our pages - only one page on our site, 'bout a hundred times per day, all with an average bounce rate of 90%+...  This is causing our overall bounce rate to go up by 1 to 3% per day... which is very disturbing.. since we're trying to do our best in order to keep it as low as possible. And obviously having it jumped from ~24% to 27%, just because of that crazy dude is not making us happy at all... We tried implementing a geo-targeted script in order to catch this particular visitor and deliver him a juicy message, and it seemed like it helped in the beginning, it has stopped for a day or two, but now he's back...   The geo-targeted script was also logging all IP addresses for page requests originating from Finland in order to find out more details and (in order to block them on the server level, later).. but thing is, it was all mainly cable or DSL connections with various, but not constantly repeating IPs... we are all wondering what is he up to really ?   I think that this page should be kept updated with ideas on how to combat this and perhaps someone could also shed light on what it might be ? What is the reason for doing this "bounce-rate attack", as I call it?  There was a similar question asked on stackoverflow earlier, with no meaningful answer - here - Prove that $\int_0^{\infty} \frac{\sin x}{x^p}\, dx$ converges for $0<p<2$ I'm trying to to execute a script, which uses the command rename.   When I execute it, I get a message rename: command not found. Any ideas?   if [[ -z '$3' ]]; then     shopt -s dotglob     rename "$EXPRESSION" ./* else     rename "$EXPRESSION" "$3" fi How can I record demos of my gameplay? I remember seeing a lot of cool Counter Strike videos back in the day. How do you go about recording your gameplay (any game) into an easy to edit format? Do you need special software? How much does it cost? How to enable touchpad? Yesterday, suddenly my touchpad on my MSI Laptop started to not respond. In other words, in Login screen, touchpad is working as expected. However, in Desktop screen, after I have logged in, touchpad is not working.  How can I enable touchpad in Desktop? Explain what is a transistor in plain English! Declare local variables as late as possible or at the nearest curly brace they belong?