Request for member 'modu18' in f, which is of non-class type 'int'

just started off with c++, and stackoverflow for that matter. any and help infinitely appreciated, apologies in advance if i ask something super dumb  I'm making a program to solve a problem. How many 8 digit numbers are divisible by 18 and are only comprised of the digits 1, 2 and 3. I can generate numbers, but when calling a function i made to use modulus to determine whether they're divisible by 18 or not, the function gives me the error in the title. my code is as follows:  main.cpp  #include <iostream> #include "functions.h" using namespace std;  int main() {     functions f();     for(int a = 1; a<4; a++){     for(int b = 1; b<4; b++){     for(int c = 1; c<4; c++){     for(int d = 1; d<4; d++){     for(int e = 1; e<4; e++){     for(int f = 1; f<4; f++){     for(int g = 1; g<4; g++){     for(int h = 1; h<4; h++){         int number = 10000000*a + 1000000*b + 100000*c + 10000*d + 1000*e + 100*f + 10*g + h; //generates 8 digit numbers, only using the digits 1 2 and 3         cout << number << endl; //prints numbers         int y = 10; //to test this bloody function         cout << f.modu18()(y); //returns 0 or 1 from func }}}}}}}}}   functions.h  #ifndef FUNCTIONS_H #define FUNCTIONS_H #include <iostream>  using namespace std;  class functions {     public:         functions();         string modu18(int x);     protected:     private: };  #endif   functions.cpp  #include "functions.h" #include <iostream>  using namespace std;  functions::functions(){      cout << "Functions initialised!" << endl; //to see if this thing is actually loading  }  string functions::modu18(int x){ //this is checking whether the number is divisible by 18     if(x % 18 == 0){         return 0;     }else{         return 1;     }; } //btw, using multiple files becuase i want to learn how to make this work for the future   The exact error returned when compiling is   request for member 'modu18' in 'f', which is of non-class type 'int'   I have no clue why this is saying this, all my data types are correct, for the data and the function types. send help pls Many thanks.


Boot goes straight into Windows 7 after installing Ubuntu, how do I get back into Ubuntu and get the option of either at start up?

I installed Ubuntu 14.04 from a DVD (all the files were there) onto my HP laptop. It used to be Windows 8 but a friend of mine put windows 7 on it instead so secure boot and fast boot are disabled. Ubuntu installed but now on start up it goes straight to Windows. I don't know how to get back onto Ubuntu as if I leave the DVD in the options are to "Install Ubuntu, try demo (something like that), OEM for manufacturers or exit."   I saw articles on here about fixing this from the Ubuntu terminal but if I can't get Ubuntu to load (because I tried the solution in the demo and it didn't work.) How do I go about this?  Literally spent last 4 hours trying to figure this out and I'm sure I'm coming across as a total noob but any help would be much appreciated.


How are tree-level calculations related to the classical theory?

I've read the answers (and linked notes) to another question () and I understand them.  They seem to explain how to organise a perturbative calculation of the solution to a classical non-linear ODE by drawing diagrams which look a bit like Feynman diagrams.  But it is not clear to me how these diagrams correspond to actual Feynman diagrams.  In QFT, when Feynman diagrams are used when doing path integrals (to calculate correlation functions etc.) but not to solve for the fields.  What does the tree-level expansion of a correlation function mean and what is its classical interpretation?


Computing $\int_{-\infty}^\infty \frac{\sin x}{x} \mathrm{d}x$ with residue calculus

This refers back to $\int_{-\infty}^\infty \frac{\sin x}{x} \mathrm{d}x = \frac\pi2$ already posted. How do I arrive at $\frac\pi2$ using the residue theorem? I'm at the following point: $$\int \frac{e^{iz}}{z} - \int \frac{e^{iz}}{z},$$ and I would appreciate any help.


'Installing' Applications, where to put folders?

I've just bought a game (Machinarium) which does not come with a deb file neither is it a ./configure, make etc type of application. I can just run it. Where is the best place to put it so i can create a launcher and keep it out of my home directory?   i.e. I'm basically asking where are applications are installed and should i put this game there.  Thanks!


Fantasy book where magic is restricted to females, because a male mage is prophesised to destroy the world

First of all thank you for reading and having the patience of doing so.  My summary is very weak but strong in the mind =)  What I remember from the book is that magic is common among females and not males, because of a prophecy that when a male can do magic, he will destroy the world/conquer the world.   Also the main character is a teenage boy who gets found out by an unknown attack on his village. He's accompanied by a female elder and a rogue who's a king from the borderlands.  I remember clearly that the rogue teaches him about swordplay and about the void to think about a fire and make it grow to remain calm.


Is the graph of $xy=1$ in $\mathbb C^{2}$ connected?

The graph  of  $xy=1$  in  $\mathbb C^{2}$ is  set  of  points $(x+iy,u+iv)$ that satisfies  $$xu-yv=1$$ and $$uy+xv=0$$ How  to  find  if  this  set  is  connected  or  not .   I  also  have another  doubt. Can  this  set  mean  the collection  of  points $\{x+iy \in \mathbb C | xy=1\}$=$\{x+{{i}\over {x}}|x\in \mathbb R\}$ $?$    Some  lead  please ,  I  am  totally  clueless.


Noun and/or adjective to describe someone who immediately blames someone else for something?

The most common occurrence of this is as a kid: perhaps you misplaced your pencil or it rolled to the floor while you were preoccupied. The first feeling is that one of your classmates must've grabbed it.  This seems to bleed into adulthood for some folks as well, a knee jerk response to irrationally attribute a problem to a nearby human they don't like.  Is there a noun or adjective to describe this? Hopefully one that is pejorative in nature, but that's definitely not requisite.


Can anyone explain why sudo ls with a wildcard doesn't work?

$ sudo -iu abc ls -ltr /sites/servers/server_instance/logs/access* ls: cannot access /sites/servers/server_instance/logs/access*: No such file or directory  $ sudo -iu abc ls -ltr /sites/servers/server_instance/logs/ total 594812 -rwxrwxrwx 1 abc abc      45 Mar 21 12:42 old.log -rwxrwxrwx 1 abc abc      304537970 Mar 24 12:45 console.log -rwxrwxrwx 1 abc abc      304537970 Mar 24 13:20 access_nginx.log   Can anyone explain why this happens? I am stuck on a script due to this.


How to make text aligned left/center/right in the same line?

I am trying to align some text to left/center/right in the same line. For example, I want to put my phone number on the left, my name in the center, and my email on the right, how do I do that?


Consider a linear regression model: $$ y_i = \mathbf x_i \cdot \boldsymbol \beta + \varepsilon _i, \, i=1,\ldots ,n, $$ where $\varepsilon _i \sim \mathcal L(0, b)$, that is, Laplace distribution with $0$ mean and $b$ scale parameter, are all are mutually independent. Consider a maximum likelihood estimation of unknown parameter $\boldsymbol \beta$: $$ -\log p(\mathbf y \mid \mathbf X, \boldsymbol \beta, b) = n\log (2b) + \frac 1b\sum _{i=1}^n |\mathbf x_i \cdot \boldsymbol \beta - y_i| $$ from which $$ \hat{\boldsymbol \beta}_{\mathrm {ML}} = {\arg\min }_{\boldsymbol \beta \in \mathbb R^m} \sum _{i=1}^n |\mathbf x_i \cdot \boldsymbol \beta - y_i| $$  How can one find a distribution of residuals $\mathbf y - \mathbf X\hat{\boldsymbol \beta}_{\mathrm {ML}}$ in this model?


I was playing an online game and I noticed a player on my team with username "4PP13". I asked him what should I call him. He said "apple".  I didn't have second thoughts until I Googled it. It turned out "4PP13" does means apple according to .  So what's the deal? Is this a special case? If not, what is this called?


Show that each vertex $v$ of a tree $T$ appears $\deg(v)-1$ times in Prüfer sequence of $T$.  Could you do this by induction on $n$ where $n$ is the number of vertices in a graph?  So far, I have my base case $n=2$ in which case both vertices have degree $1$ and since the Prüfer encoding is empty, the base case holds.  How would I go from here? Or am I going about it in completely the wrong way?


$(x_n)$ is a positive sequence and $$\lim_{n\to\infty}\frac{x_n}{n}=0\hspace{6mm}\limsup_{n\to\infty} \frac{x_1+x_2+\ldots+x_n}{n}\in\mathbb{R}$$ and we need to find $$ \lim_{n\to\infty} \frac{x^2_1+x^2_2+\ldots+x^2_n}{n^2}$$ I have no idea how to approach this task. I was thinking that I could maybe  $$ \frac{x^2_1+x^2_2+\ldots+x^2_n}{n^2}=\frac{\frac{x^2_1}{2}+\frac{x^2}{2}+\ldots+\frac{x^2_n}{2}}{n^2}+\frac{\frac{x^2_1}{2}+\frac{x^2}{2}+\ldots+\frac{x^2_n}{2}}{n^2}=\frac{\frac{x^2_1}{3}+\frac{x^2}{3}+\ldots+\frac{x^2_n}{3}}{n^2}+\ldots$$ But that doesn't lead anywhere. How should I approach it? What does the second limit ($\limsup\ldots\in\mathbb{R}$) mean and how should I use it?


Find the sum $\sum _{n=1}^{\infty }\left(\sqrt{n+2}-2\sqrt{n+1}+\sqrt{n}\right)$

$$\sum _{n=1}^{\infty }\left(\sqrt{n+2}-2\sqrt{n+1}+\sqrt{n}\right)$$  On their own, all three are divergent, so I thought the best way would be to rewrite it as:  $$\frac{\sqrt{n+2}-2\sqrt{n+1}-\sqrt{n}}{\sqrt{n+2}-2\sqrt{n+1}-\sqrt{n}}\cdot \left(\sqrt{n+2}-2\sqrt{n+1}+\sqrt{n}\right)=\frac{\left(\left(\sqrt{n+2}-2\sqrt{n+1}\right)^2-n\right)}{\left(\sqrt{n+2}-2\sqrt{n+1}-\sqrt{n}\right)}$$  But that doesn't really make anything simpler.


Solve the equation $x^2+\frac{9x^2}{(x+3)^2}=27$

Problem Statement:- Solve the equation $$x^2+\dfrac{9x^2}{(x+3)^2}=27$$   I have tried to turn it into a quadratic equation so as to be saved from solving a quartic equation, but have not been able to come up with anything of much value. These are the things that I have tried to turn the given equation into a quadratic equation. $$x^2+\dfrac{9x^2}{(x+3)^2}=27\implies 1+\dfrac{1}{\left(\dfrac{x}{3}+1\right)^2}=3\left(\dfrac{3}{x}\right)^2$$ $$\text{OR}$$ $$x^2+\dfrac{9x^2}{(x+3)^2}=27\implies 1+\dfrac{\left(\dfrac{3}{x}\right)^2}{\left(1+\dfrac{3}{x}\right)^2}=3\left(\dfrac{3}{x}\right)^2$$


Is there any value in full 'beginner's kit bundles'?

If I were buying my first "serious" camera, is there any value in buying a "full beginner's kit" like the below or should I just buy the camera with the kit lens? The full kit costs about $100 (or 10%) more than the camera and kit lens.  Overview of kit [brand names, other than Canon, obscured]


Is there any way to exit "less" without clearing the screen?

Relatively often, I find myself wanting to quit less but leave what I was viewing on the screen, to refer back to. Is there any way to do this? Workarounds?  (My current workaround is to quit, then use more. So any workaround that's better than that is welcomed. The ideal would be something I can use once I'm already inside less, perhaps with a shell setting or some scripting.)  My desktop is OSX, but I use RHEL and Ubuntu servers.


How can I account for a nonlinear variable in a logistic regression?

How can I account for a nonlinear independent variable in a logistic regression?  For example, consider this data set:  b1  b2  b3  b4  b5 1   1   0   0   20 0   1   0   0   20 1   0   0   0   13 1   1   1   0   8 1   1   0   1   5 0   1   0   1   4 1   1   0   1   5 0   0   0   0   8 0   0   1   0   13 1   0   0   1   20 1   0   0   0   29 1   1   0   1   40 1   0   0   0   53 0   1   1   0   68   Suppose I gathered some data like the above (suppose I had 10,000 rows) and I want to use them to predict future sets of similar data with an equation generated by a logistic regression. I get the above data. My independent variables are b1 through b5. By looking at the data, I can clearly see that independent variables b1 through b4 are binary (maybe they are male/female, rent/own, etc).   However I see that b5 is clearly not binary. Upon graphing it and looking at the numbers I determine that the b5 variable has a bathtub shaped U curve with an equation of b5=(x-4)^2+4.   I understand that using the b5 variable as it is would screw up my logistic regression - since any interval independent variables must have a linear relationship with the dependent variable.   Yet, I must account for the variable b5 in my data set while doing a logistic regression for it to be accurate and predict well (right?).  Given the above data, how would I go about making a predictive model with a logistic regression? Any references online or in books would greatly be appreciated as I am having trouble finding a good explanation of the above.  Cheers =)  EDIT:  Sorry if my question is unclear.  Consider this: Suppose we had the following data on many people:  Y: Whether they had a stroke before the age of 50 or not 1. Whether they own a pet or not. 2. Whether they graduated college or not. 3. Whether they are male or female. 4. The number of hours they exercise every week.  We want to train a logistic regression model based on historical data to predict if someone in the future with the same data will be more apt or not to have a stroke before the age of 50.  The problem I am having is with the last variable. A continuous ratio variable like "number of hours exercised each week."  Exercising more each week may have diminishing returns on health and thus having a stroke. For example decreasing an increasing rate. Or maybe (totally made up) exercising a little bit is really good for you, exercising a moderate amount is really bad for you, and exercising a lot is really good for you again. We might have a U shaped curve like (x-4)^2+4 for example when plotting health to exercise.   I would image that having a curved, non-linear independent variable in a logistic regression like the one I described above would cause problems. Am I right? And if so, what kinds of things can you do to still include the variable in the logistic regression. Perhaps a transformation? Is that all?


I've seen the full proof of the Triangle Inequality  \begin{equation*} |x+y|\le|x|+|y|.  \end{equation*} However, I haven't seen the proof of the reverse triangle inequality:  \begin{equation*} ||x|-|y||\le|x-y|. \end{equation*} Would you please prove this using only the Triangle Inequality above?  Thank you very much.


Why do we usually choose to minimize the sum of square errors (SSE) when fitting a model?

The question is very simple: why, when we try to fit a model to our data, linear or non-linear, do we usually try to minimize the sum of the squares of errors to obtain our estimator for the model parameter? Why not choose some other objective function to minimize? I understand that, for technical reasons, the quadratic function is nicer than some other functions, e.g., sum of absolute deviation. But this is still not a very convincing answer. Other than this technical reason, why in particular are people in favor of this 'Euclidean type' of distance function? Is there a specific meaning or interpretation for that?  The logic behind my thinking is the following:  When you have a dataset, you first set up your model by making a set of functional or distributional assumptions (say, some moment condition but not the entire distribution). In your model, there are some parameters (assume it is a parametric model), then you need to find a way to consistently estimate these parameters and hopefully, your estimator will have low variance and some other nice properties. Whether you minimize the SSE or LAD or some other objective function, I think they are just different methods to get a consistent estimator. Following this logic, I thought people use least square must be 1) it produces consistent estimator of the model 2) something else that I don't know.   In econometrics, we know that in linear regression model, if you assume the error terms have 0 mean conditioning on the predictors and homoscedasticity and errors are uncorrelated with each other, then minimizing the sum of square error will give you a CONSISTENT estimator of your model parameters and by the Gauss-Markov theorem, this estimator is BLUE. So this would suggest that if you choose to minimize some other objective function that is not the SSE, then there is no guarantee that you will get a consistent estimator of your model parameter. Is my understanding correct? If it is correct, then minimizing SSE rather than some other objective function can be justified by consistency, which is acceptable, in fact, better than saying the quadratic function is nicer.   In pratice, I actually saw many cases where people directly minimize the sum of square errors without first clearly specifying the complete model, e.g., the distributional assumptions (moment assumptions) on the error term. Then this seems to me that the user of this method just wants to see how close the data fit the 'model' (I use quotation mark since the model assumptions are probably incomplete) in terms of the square distance function.  A related question (also related to this website) is: why, when we try to compare different models using cross-validation, do we again use the SSE as the judgment criterion? i.e., choose the model that has the least SSE? Why not another criterion?


JavaScript Undefined when alert(array.length) is called

Lately I have been trying to create a webpage with a search feature. My way of implementing this, while not the fastest or most elegant, should work in theory. All it does is split the search term into a list, the delimiter being a space, and then splits the keywords (in dictionary format, with the value being a download link, and with the key being the "keywords" I was referring to) and finally, it has an outer loop looping through the keys (being split each iteration into a list), and an inner loop looping through the words input through the input field. If a word in the search field matches one keyword of the key words list, then that key from the dictionary gets a score of +1. This should sort the keys into order of best result to worst, and then the code can continue on to process all this information and display links to the downloadable files (the point of the webpage is to supply downloads to old software [of which I have collected over  the years] etc.). However, when I run the program, whenever the alert(ranking.length) function is called, all I get is undefined in the output window. Here is the code. (The search() function is called whenever the search button is pressed): var kw_href = {             "windows":["windows3.1.7z"],             "ms dos 6.22":["ms-dos 6.22.7z"]         }         function search(){             var element = document.getElementById("search_area");             var search_term = element.value.toLowerCase();                          var s_tags = search_term.split(" ");             var keys = Object.keys(kw_href);              ranking = {                 "windows":0,                 "ms dos 6.22":0             };              for (i = 0; i < keys.length; i++){                 keywords_arr = keys[i].split(" ");                 for (x = 0; x < s_tags.length; x++){                     if (keywords_arr.includes(s_tags[x])){                         ranking[keys[i]] = ranking[keys[i]] + 1;                     }                 }             }             // now we have a results list with the best results. Lets sort them into order.             alert(ranking.length);         }  Edit alert(ranking.length) line is for debugging purposes only, and I was not specifically trying to find the length.


Why ON earth is stackoverflow more strict than the other sites?

On stack overflow, it is much easier to see the      You post cannot be submitted due to the volume of spam and abuse originating from your network   error. Also this you can only post every 90 minutes thing is more strongly enforced on there. I post something on A DIFFERENT SITE and then I switch accounts and then I try to post on Stack Overflow, and it says you can only post every 90 minutes, then I go to another site an my question is submitted no problem. It seems for some reason that posting restrictions are applied more harshly there than on other sites. Why? My question is COMPLETELY different because I am asking why stackoverflow is more strict then other sites.


My Document Viewer (3.4.0, using poppler/cairo 0.18.4) says "To view the full contents of this document, you need a later version of the PDF viewer. You can upgrade to the latest version of Adobe Reader from www.adobe.com/products/acrobat/readstep2.html For further support, go to www.adobe.com/support/products/acrreader.html" while opening a PDF document. I've fetched the install file (AdbeRdr9.5.1-1_i486linux_enu.bin) from the above mentioned site and put on my desktop.  How to install it?  Thanks for the reply.


Does the volatile keyword guarantee the latest value to be read by a reader thread? If not, what is its use?

Please refer to the following codes. Shared.java class Shared {     public volatile int i = 0; }  CreateThread.java class CreateThread {     public static void main(String[] args) throws InterruptedException     {         Shared s = new Shared();         MyThread t1 = new MyThread(s);         t1.start();         while(s.i!=7)             System.out.println(s.i);     } }  MyThread.java class MyThread extends Thread {     Shared s = null;     MyThread(Shared s)     {         this.s = s;     }        public void run()     {         for(int j=0; j<15; j++)         {     /*      try             {                 Thread.sleep(1000);             }             catch(Exception e){}*/             s.i = s.i+1;         //  System.out.println("New Value of s.i "+s.i);     /*      try             {                 Thread.sleep(1000);             }             catch(Exception e){}*/         }         System.out.println("Thread Going to Stop");     } }  If the new thread is not allowed to sleep, then it seems that the main thread cannot find all the values of the variable s.i. Because in this case, we are getting the following output. 0 15 15 15 .. .. ..  If the new thread is allowed to sleep, then it seems that the main thread can find all the values of the variable s.i. Because in this case, we are getting the following output. 0 0 .. 1 1 .. 2 2 .. 3 3 .. 4 4 .. upto 6  From the above output, it is clear that if the new thread does not go into the sleep state, the new thread is changing the value of s.i in memory several times before the thread main gets a chance to read it. If I change the program as: Shared.java class Shared {     public /*volatile*/ boolean i = false; }  MyThread.java class MyThread extends Thread {     Shared s = null;     MyThread(Shared s)     {         this.s = s;     }        public void run()     {                  s.i = true;             System.out.println("New Value of s.i "+s.i);             try             {                 Thread.sleep(10000);             }             catch(Exception e){}         System.out.println("Thread Going to Stop");     } }  CreateThread.java class CreateThread {     public static void main(String[] args) throws InterruptedException     {         Shared s = new Shared();         MyThread t1 = new MyThread(s);         t1.start();         while(s.i==false)             System.out.println(s.i);         System.out.println(s.i+" Main Stopped");     } }  Output: C:\Users\gyan0\OneDrive\Desktop>java CreateThread false New Value of s.i true true Main Stopped Thread Going to Stop  It seems that the data, even though it is not volatile, is becoming immediately available to the thread. Following are my questions.  Does the volatile keyword guarantee the latest value to be read by a reader thread? What the benefits we would get if volatile keyword saves a data in memory by not saving it in CPU Register? Can you give a practical working example proving the benefits of the volatile?


Plagiarism detection software – comparing two long documents

I would like to find out whether one of two long documents plagiarises the other. I’m looking for software or a website that does this but does not store the documents on the server (i.e., the documents should be kept private if possible).  Does such a software exist?    Note that I’m not looking to compare to millions of possible documents, so I don’t need a service like TurnItIn.


What Is the History of the Unforgivable Curses?

What is the history of the Unforgivable curses?     ‘Now ... those three curses – Avada Kedavra, Imperius and Cruciatus – are known as the Unforgivable Curses. The use of any one of them on a fellow human being is enough to earn a   life sentence in Azkaban. That’s what you’re up against. That’s what I’ve got to teach you to fight. You need preparing. You need arming. But most of all, you need to practise constant,   never-ceasing vigilance. Get out your quills ... copy this down ...’ [Mad-Eye Moody]   They spent the rest of the lesson taking notes on each of the Unforgivable Curses.   Goblet of Fire - page 192 - Bloomsbury - chapter 14, The Unforgivable Curses   ★ I'm looking for a canon-based answer (the Harry Potter novels, the three supplemental books, interviews with JKR, or Pottermore) and do not prefer an answer from either the HP Wikia or the Wikipedia.


Prove that the expression $\frac{\gcd(n,m)}{n}\binom{n}{m}$ is an integer

Prove that the expression $$\frac{\gcd(n,m)}{n}\binom{n}{m}$$ is an integer for all pairs of integers $n\ge m \ge1$.  My work so  far: If $\gcd(m,n)=1$ then $$\frac{\gcd(n,m)}{n}\binom{n}{m}=\frac1n\cdot \frac{n!}{m!(n-m)!}=\frac{(n-1)!}{m!(n-m)!} \in \mathbb Z$$ If $\gcd(m,n)=d>1$ I need help here


Can I use a 130V AC adapter for my european laptop?

I have an old Dell XPS Studio 16 whose AC adapter broke a while ago. I've been using a universal adapter, but apparently Dell has some hardware checks hard coded that won't let the adapter charge the battery unless it's a certified Dell adapter.  So I need a new one. It's pretty easy to find AC adapters on Amazon for $20 or so, but they're three-pronged versions for US outlets. We have 230V in our walls. It doesn't specifically say "130V AC to DC adapter" on them however. So I'm wondering if an adapter made for the US market will work if I find the right cable?


I myself am not a native speaker and my english therefore is likely not the best. I recently noticed a trend of people using the phrase "Could off done X". Which irritates me a lot. This has become so frequent, that I am starting to doubt myself and think whether I am wrong here. Other people on the internet don't seem to me as irritated, as I have not found anyone complaining about it (neither on ELL). Please help me out here:     It is "could have done" and never "could off done", right?


Unity does not start after installing the fglrx drivers

I installed Ubuntu 12.10 and at first when I go to check the system information I used to have (unknown) on the graphic card section, I used the synaptic manager and downloaded the fglrx, after that I restarted my laptop and now I don't have any menus, all of them are gone.  Now I am only using the keyboard shortcuts to use Ubuntu. My graphic card is AMD ATI.  What can I do to bring the menus back?


Can I use my ethernet port on my pc as a phone line?

I have an ethernet port used for Internet, but since I bought a wireless adapter that port is no longer needed. So I thought instead can I use that port as a phone line and just plug a phone line cable into ethernet port and use the Dialer or Windows fax system by doing that?


new addition and new multiplication x ⊕ y = x + y − 1, x ⊗ y = x + y − xy on set Z, prove the set Z equipped with these 2 new operation

here says a new operation addition and new operation multiplication  x ⊕ y = x + y − 1, x ⊗ y = x + y − xy on set Z,where the operations on the right hand side are ordinary addition and multiplication of integers. Prove that the set Z equipped with these two new operations ⊕, ⊗ is a ring. Does it have a multiplicative identity?  I tried to use the addition cancellation but I do not understand why or I got the wrong understanding for this question.   I assume the there is y and y' are 2 solution for equation  x ⊕ y = x + y − 1, therefore:   x ⊕ y = x + y − 1  x ⊕ y' = x + y − 1 and I get  x ⊕ y =  x ⊕ y' after the cancellation, then I get y=y', and it means the addictive is unique. So, can I say that the set Z equipped with new addiction x ⊕ y = x + y − 1? or I just go into a wrong way for solve this problem?  ask in advance, thank you


I just finished the main storyline in BL2. I'm level 35, from what DLC can I continue my adventure? Or does it even matter?


Detecting significant predictors out of many independent variables

In a dataset of two non-overlapping populations (patients & healthy, total $n=60$) I would like to find (out of $300$ independent variables) significant predictors for a continuous dependent variable. Correlation between predictors is present. I am interested in finding out if any of the predictors are related to the dependent variable "in reality" (rather than predicting the dependent variable as exactly as possible). As I got overwhelmed with the numerous possible approaches, I would like to ask for which approach is most recommended.    From my understanding stepwise inclusion or exclusion of predictors is  E.g. run a linear regression separately for every predictor and correct p-values for multiple comparison using FDR (probably very conservative?) Principal-component regression: difficult to interpret as I won't be able to tell about the predictive power of individual predictors but only about the components.  any other suggestions?


Exit from both root and user with one command

I know about "not using sudo su -" etc. But let's be honest, almost all of us do it.   So, here is the issue. We can't have root logins enabled, so we have to ssh in as our user then su to root.  Here is the process tree:       1  7897  7826  7826 ?           -1 S     1000   0:00 sshd: josh@pts/0  7897  7898  7898  7898 pts/0     8182 Ss    1000   0:00  \_ -bash  7898  7990  7990  7898 pts/0     8182 S        0   0:00      \_ sudo su -  7990  7991  7990  7898 pts/0     8182 S        0   0:00          \_ su -  7991  7992  7992  7898 pts/0     8182 S        0   0:00              \_  -su  7992  8182  8182  7898 pts/0     8182 R+       0   0:00                  \_ ps axjf   I would like to exit from root, then from my user with one command. Is there a way to do this?  BTW exit && exit does not work because it exits the shell and doesnt process the rest of the command  josh@ubuntu:~$ sudo su - root@ubuntu:~# exit && exit logout josh@ubuntu:~$


How do you make a test class for custom controller? My search results involves this but trying to apply it in my test class only create too many error that I don't understand.  public static testMethod void testMyController() {     PageReference pageRef = Page.success;//Observe how we set the Page here     Test.setCurrentPage(pageRef);   . Does my test class need those line of codes when my controller class is only very simple.  public class ClientInfo_VFcontroller{     public Org_Info__c orgInfo {get; set;}     public ClientInfo_VFcontroller(){         orgInfo = new Org_Info__c();     }     public PageReference save(){         insert orgInfo;         orgInfo = null;         ScheduleRetrieve.ScheduleRetrieve();         return null;     } }


How can I return a function as a string in Python?

I've made a function that will create functions and write them to a file but the problem is they write to the file as the default repr. How can I write them to a file as a normal function?  def make_route(title):     test = 1     def welcome():         return test + 1      welcome.__name__ = title      with open('test2.py', 'a') as f:         f.write('\n%s\n' % (welcome))      return welcome   I need it to write  def welcome():     return test + 1   to the file


Methods to work around the problem of missing data in machine learning

Virtually any database we want to make predictions using machine learning algorithms will find missing values for some of the characteristics.  There are several approaches to address this problem, to exclude lines that have missing values until they fill with the mean values of the characteristics.  I would like to use for a somewhat more robust approach, which would basically run a regression (or another method) where the dependent variable (Y) would be each of the columns that have missing values but only with the rows of the table that contain all the data , and predict the missing values with this method, complete the table by the table and move to the next 'column' with missing values and repeat the method until everything is filled.  But that gives me some doubts.  Why any column start? I believe that the one with the smallest missing values until the one with the most  Is there any threshold of missing values that is not worth trying to complete it? (for example, if this characteristic only has 10% of the values filled would not it be more interesting to exclude it)  Is there any kind of implementation in traditional packages or other methods that are robust to missings?


Java 8 gives error message with Windows XP.  Can it still be used?  What are the latest issues? Windows xp is no longer supported but will Java 8 still work on Windows XP computers since so many people still have windows xp?


I may not use the Prime Number Theorem (and even if I could, it would only show the desired claim for sufficiently-large $n$).  I have tried induction on $n^{\pi\left(2n\right)-\pi\left(n\right)}<2^{2n}$. For the induction step we have: $$n^{\pi\left(2n+2\right)-\pi\left(n+1\right)} \le n^{\pi\left(2n+2\right)-\pi\left(n\right)}  \le n^{\pi\left(2n\right)+1-\pi\left(n\right)}  <2^{2n}n$$  Which isn't less than $2^{2n+2}$.  Any advice is very welcome.


Basic question about the proof of Snake's lemma (WITHOUT elements)?

Unfortunately, I don't know how to do draw commutative diagrams in TeX so I'll hope you're familiar with the statement of the lemma.   We want to show of course that $$0 \rightarrow \ker(f) \rightarrow \ker(g) \rightarrow \ker(h) \rightarrow \newcommand{\coker}{\operatorname{coker}}\coker(f) \rightarrow \coker(g) \rightarrow \coker(h) \rightarrow 0$$ is exact (where $f, g, h$ are as usual as in the statement of the lemma). The challenge of the snake's lemmma is to find the map $\ker(h) \rightarrow \coker(f)$ and show exactness at this step. But I'm afraid to say I don't see how even $0 \rightarrow \ker(f) \rightarrow \ker(g) \rightarrow \ker(h)$ and $\coker(f) \rightarrow \coker(g) \rightarrow \coker(h) \rightarrow 0$ is exact. As I stated, I would like to see the proof WITHOUT using elements, so without using Mitchell's embedding theorem, working in a general abelian category.   I know it arises 'naturally' from the fact that the sequences in the hypothesis of the lemma are exact, but I'm not sure when I actually try.


Granting 1 point to opponent after saying GO

In Cribbage play, people tell me that the rule for granting an opponent one point when you say "Go" has been done away with in tournament play. Is this true?


What's the difference between varchar(255) and varchar(max)

I was asked an interesting question today. I've thought about it before but couldn't come up with a good answer.  If the values of a column are only going to be <= 255 characters, is there any real difference between using varchar(255) and varchar(max).  I realize that varchar(255) has a limit of 255 characters and varchar(max) 2 gb but they only use as much space as needed for the actual values stored. I'm not counting the extra space needed for the var part because as far as I know it's the same (or is it?). So in terms of performance & space is there a difference?


How to remove the top horizontal bar in fancyhdr?

When using fancyhdr, how do you remove the top horizontal rule?  I do not want a header at all, just a footer.  This is what I do now:  \documentclass{article} \usepackage{fancyhdr} \pagestyle{fancy}  \lfoot{text} \cfoot{text 2} \rfoot{text 3}  \begin{document} Foo Bar \end{document}


Different fields for proxy_set_header in nginx configuration

I am very new to nginx configuration. I want to use it set virtual hosts so that I can run different Node JS apps on different ports on the same server, but have them served at different subdomains. After some searching I found a post on stackoverflow and it works well for what I want to do. Amongst other things, the code involved the following location block  location / {                                                              │     proxy_set_header X-Real-IP $remote_addr;                              │     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;          │     proxy_set_header Host $http_host;                                     │     proxy_set_header X-NginX-Proxy true;                                  │                                                                           │     proxy_pass http://otherapp/;                                          │     proxy_redirect off;                                                   │ }   Now I wanted to understand what the script does. I looked at nginx docs and notes posted by various people, and understood a few things. It appears to me that what I want will probably work even if I remove all the proxy_set_header lines in the above code EXCEPT proxy_pass. I want to learn what the different fields in the above code are doing. Probably they are useful for some things that I don't realize at the moment. Is there a place which lists all the fields for proxy_set_header module and explains them?   Thank you.


Suppose that $X$ and $Y$ are path connected and locally path connected spaces and that $\tilde{X}$ and $\tilde{Y}$ are simply connected coverings of $X$ and $Y$, repsectively. Prove that if $X$ and $Y$ are homotopy equivalent then $\tilde{X}$ and $\tilde{Y}$ are also homotopy equivalent.   Here is my proof, wanted to see if there are some major flaws in it or places that need more detail. Thanks  We know that $X \simeq Y$, so there are functions $f$ and $g$ such that $f: X \to Y$ and $g : Y \to X$, so that      $$ f\circ g \simeq Id_X \text{ and } g\circ f\simeq Id_Y. $$     Now, choose a point $x \in X$ and let $f(x)\in Y$. Let $p_1: \tilde{X}\to X$ and $p_2 \tilde{Y}\to Y$ be covering maps. Then we know that $|p_1^{-1}(x)| = |\pi_1(X)|$ and $|p_2^{-1}(f(x))| = |\pi_1(Y)|$. Now, since $X\simeq Y$, we know that $|\pi_1(X)| = |\pi_1(Y)|$, and thus the cardinality of the fibers of $x$ and $f(x)$ must be equal. Thus, we define     $$ p_1^{-1}(x) = \{a_n\}_{n\in A} \text{ and } p_2^{-1}(f(x)) = \{b_n\}_{n\in A} $$     for distinct $a_n \in \tilde{X}$ and $b_n \in \tilde{Y},$ where $A$ is the same size of $\pi_1(X)$, $\pi_1(Y)$. Likewise, $y\in Y$ and $g(y) \in X$, we get      $$ p_1^{-1}(g(y)) = \{a_n\}_{n\in A} \text{ and } p_2^{-1}(y) = \{b_n\}_{n\in A} $$     for distinct points in $y\in \tilde{Y}$ and $g(y) \in \tilde{X}.$  Now, let $U_x$ be an evenly covered neighborhood of $x$ contained in $X$ and $V_{f(x)}$ be an evenly covered neighborhood of $f(x)$ contained in $Y$. Denote the lift  $$ \tilde{f}: \tilde{X} \to \tilde{Y} $$ be given by $\tilde{f}(a_n) = ((p_2^{-1})_n \circ f \circ p_1)(a_n)$, where $(p_2)_n$ is $p_2$ restricted to the component of $p_2^{-1}(V_{f(x)})$ containing $b_n$. In a similar way, $U_{g(y)}$ be an evenly covered neighborhood of $g(y)$ contained in $X$ and let $V_y$ be an evenly covered neighborhood of $y$ contained in $Y$. Let  $$\tilde{g}:\tilde{Y}\to \tilde{X}$$ be given by $\tilde{g}(b_n) = ((p_1^{-1})_n \circ g \circ p_2)(b_n)$, where $(p_1)_n$ is $p_1$ restricted to the component of $p_1^{-1}(U_{g(y)})$ containing $a_n$. Since $\tilde{f}$ and $\tilde{g}$ are compositions of continuous functions, thus they are continuous, and we have \begin{align*}     \tilde{f}\circ \tilde{g} &= ((p_2^{-1})_n \circ f \circ p_1) \circ ((p_1^{-1})_n \circ g \circ p_2) \\     &= (p_2^{-1})_n \circ g \circ f \circ p_2 \\     &\simeq (p_2)_n^{-1} \circ Id_Y \circ p_2 \\     &= Id_Y     \end{align*} likewise \begin{align*}     \tilde{g}\circ \tilde{f} &= ((p_1^{-1})_n \circ g \circ p_2) \circ ((p_2^{-1})_n \circ \phi \circ p_1) \\     &= (p_1^{-1})_n \circ g \circ f \circ p_1 \\     &\simeq (p_1)_n^{-1} \circ Id_Y \circ p_1 \\     &= Id_Y     \end{align*} This tells us that $\tilde{f}$ and $\tilde{g}$ are homotopy inverses of each other, and that $\tilde{f}$ is a homotopy equivalence from $\tilde{X}$ to $\tilde{Y}$. Thus, $\tilde{X}\simeq \tilde{Y}.$


How to solve "Error: Fill argument neither colors nor valid variable name(s)" in R?

I have an error in my codes which is: Error: Fill argument neither colors nor valid variable name(s) In the following, I describe how I get this error. Indeed, I have two sets of data and assigned them into two variables named Caifornia_shp and Houses. The information of these two variables are as follow: head(California_shp)        NAME 1   Alameda 2    Alpine 3    Amador 4     Butte 5 Calaveras 6    Colusa  head(Houses)   houseValue income houseAge rooms bedrooms population households latitude longitude 1     452600 8.3252       41   880      129        322        126    37.88   -122.23 2     358500 8.3014       21  7099     1106       2401       1138    37.86   -122.22 3     352100 7.2574       52  1467      190        496        177    37.85   -122.24 4     341300 5.6431       52  1274      235        558        219    37.85   -122.25 5     342200 3.8462       52  1627      280        565        259    37.85   -122.25 6     269700 4.0368       52   919      213        413        193    37.85   -122.25  I merged Houses and California_shp using the following codes: pts.poly <- point.in.poly(Houses,California_shp)  head(pts.poly@data)  houseValue income houseAge rooms bedrooms population households latitude longitude 1     452600 8.3252       41   880      129        322        126    37.88   -122.23 2     358500 8.3014       21  7099     1106       2401       1138    37.86   -122.22 3     352100 7.2574       52  1467      190        496        177    37.85   -122.24 4     341300 5.6431       52  1274      235        558        219    37.85   -122.25 5     342200 3.8462       52  1627      280        565        259    37.85   -122.25 6     269700 4.0368       52   919      213        413        193    37.85   -122.25      NAME 1 Alameda 2 Alameda 3 Alameda 4 Alameda 5 Alameda 6 Alameda  head(tapply(pts.poly@data$houseValue,list(pts.poly@data$NAME),mean))   Alameda    Alpine    Amador     Butte Calaveras    Colusa  208747.39 118700.00 117146.43  89611.54 107893.75  77731.25  When I want to draw a thematic map by codes: tm_shape(California_shp)+tm_borders("Blue",lwd = 2)+tm_fill("houseValue")  I get the following error: Error: Fill argument neither colors nor valid variable name(s)  How can I solve this error?


How to export an edited clip into a video file in the VSE?

I am in the video sequence editor, cut out fragments, combined the remaining into one whole new clip and do not know how to procede from here on in order to obtain a video file (h264, mpeg4).   I tried to click the animation button and all I got was a some pictures I already had cut out.


What's the difference between import virtual machines types in Hyper-V?

I was importing a virtual machine to my Hyper-V manager and I got 3 options:  Register the virtual machine in place (use the existing unique ID) Restore the virtual machine in place (use the existing unique ID) Copy the virtual machine (create a new unique ID)  What's the difference between the three options?


in what moment using System.Runtime.Caching dispose the objects

I am using System.Runtime.Caching to persist variables in cache, but later i cannot access to them because are disposed and the program throws a ObjectDisposedException with the message: DbContext has been disposed I didn't execute Object.Dispose(), so the class ObjectCacheare disposing it in background. In what moment at what moment does it happen? after doing cache.add? It can be avoided? How i made it: Making the list: using (GesBrokerSuiteEntities ctx = new GesBrokerSuiteEntities())                 {                                         rel_tareas_orquestador nuevoregistroOrquestador = new rel_tareas_orquestador();                      nuevoregistroOrquestador.id_robot_hija = idProyindividual;                     nuevoregistroOrquestador.id_robot_padre = 2;                     nuevoregistroOrquestador.id_robot_tarea_padre = "2";                     nuevoregistroOrquestador.id_robot_tarea_hija = idProyindividual - 1+"";                     nuevoregistroOrquestador.id_tarea_hija = Int32.Parse(id2);                     nuevoregistroOrquestador.id_tarea_padre = 2;                     nuevoregistroOrquestador.sincronizada = 2;                     nuevoregistroOrquestador.esperar_padre_completa = 2;                      ctx.rel_tareas_orquestador.Add(nuevoregistroOrquestador);                     listaRelTareasOrquestador.Add(ctx);  1-Adding the list to cache CacheItemPolicy cacheItemPolicy = new CacheItemPolicy(); cacheItemPolicy.AbsoluteExpiration = DateTime.Now.AddHours(1.0);                      cache.Add("listaOrquestador", listObject, cacheItemPolicy);  2-Then i get it in another method listaRelTareasOrquestador = (List<GesBrokerSuiteEntities>)cache.Get("listaOrquestador");  After this, i cannot access to the content of the list because it disposed. UPDATE: withing the using() works, the elements aren't disposed. now the problem us this, when trying to get the saved values, it obtains the database rows: nuevoregistroOrquestador.id_robot_hija = listaRelTareasOrquestador[0].rel_tareas_orquestador.FirstOrDefault().id_robot_hija;  I know it is executing a query in my DB, any way to obtain the data i saved previously? Like a local variable. UPDATE 2 Now when i'm trying to access the values into the list,i am not receving the previous ones: rel_tareas_orquestador nuevoregistroOrquestador = new rel_tareas_orquestador();  nuevoregistroOrquestador.id_robot_hija = listaRelTareasOrquestador[0].rel_tareas_orquestador.FirstOrDefault().id_robot_hija; nuevoregistroOrquestador.id_robot_padre = registro.rel_tareas_orquestador.FirstOrDefault().id_robot_padre; nuevoregistroOrquestador.id_robot_tarea_padre = registro.rel_tareas_orquestador.FirstOrDefault().id_robot_tarea_padre; nuevoregistroOrquestador.id_robot_tarea_hija = registro.rel_tareas_orquestador.FirstOrDefault().id_robot_tarea_hija;  I know the methods are returning database values due to querys, how i can access to the list values i saved previously? Visual Studio shows me that in debugging:


PSN plus: Once games are free, are they free forever?

I know that with the Playstation plus membership, they will away free games every month and giving away different games every month. So, I were to get a free game, then a month later, that same game isn't considered a "free" ps+ game, will I still have it?  Scenario:  --June 2013-- Uncharted 3 is free for ps+ members  2 months later  --August 2013-- (Hypothetically) Uncharted 3 ISN'T offered as free for ps+ members anymore  So, if I downloaded, installed, played, etc. Uncharted 3 while it was free, will I have still owned Uncharted 3 even AFTER August 2013 when they stop offering it to ps+ members?  Also note, that during this time, my ps+ membership has NOT expired.


Database design - many-to-many relationship between three columns

I'm noob in database. So don't mind if its a silly question.This is used in my application and is the first one. I need a database design for it.    value 4 is dependent on the other value 1,2&3. even if one of the value changes the combination changes and the fourth value is affected. Each of the value 1,value 2,value 3 are independent on each other. Many-to-many relation between value 1,value 2 and value 2,value 3. value 4 is not derived or computed but a distinct value for all the combinations. So how can I design a database for it?


Why didn't Emperor Palpatine use a lightsaber to prevent his fall into the pit?

Darth Vader threw Emperor Palpatine to a pit. Well, , but unlike other times, Palpatine wasn't injured or unconscious when he was thrown.  Why didn't he simply prevent his fall using his lightsaber (I have seen such action in Star Wars: The Clone Wars TV series lots of time) and make his way out?


How do I hide the Notification Center menubar icon? Is it possible to do what was done here, for the Spotlight icon?


My laptop got broken (by what it seems the graphics card burned) and it is so old that it is not worth fixing it.   I took the harddrive from it and tried to use it as external hard drive with other computer, however I cannot access all the data, ie anything that is inside my user folder (it shows it to be empty). Couldn't find anything to solve it.


Combinatorics with vowels and consonants

How many words of $13$ letters can be constructed from the English alphabet which contain $4$ vowels and $9$ different consonants (vowels can be the same). This is what I think: Pick the four vowels (does this arrange them as well?) = $5^4$. Choose the consonants = $\binom{13}9$ Now then arrange these consonants in $9!$ ways Total = $5^4 \binom{13}9 9!$.    My friend got this: $5^4 \binom{21}9 \binom{13}4$ to arrange the four vowels (with the last binomial).


I've installed phpBB Forums last week and the past 2 days I've been getting users sign up and posting spam chinese emails on each topic.  I have:-   Added captcha on registration Made sure users have to verify subscription by email before allowing to post   What else can I do to stop this from happening?  I've banned their IP addresses but this doesn't stop them from using a proxy to keep spamming the forums.  I've read I can block all chinese IP addresses through ACP but is this the best step to block all this?  Seems to be all chinese spam at the minute, any help would be much appreciated.


I've got an application where it'd be handy to cluster a noisy dataset before looking for subgroup effects within the clusters.  I first looked at PCA, but it takes ~30 components to get to 90% of the variability, so clustering on just a couple of PC's will throw away a lot of information.    I then tried t-SNE (for the first time), which gives me an odd shape in two dimensions that is very amenable to clustering via k-means.  What's more, running a random forest on the data with the cluster assignment as the outcome shows that the clusters have a fairly sensible interpretation given the context of the problem, in terms of the variables that make up the raw data.  But if I'm going to report on these clusters, how do I describe them?  K-means clusters on principal components reveal individuals who are nearby to one another in terms of the derived variables that comprise X% of the variance in the dataset.  What equivalent statement can be made about t-SNE clusters?  Perhaps something to the effect of:     t-SNE reveals approximate contiguity in an underlying high-dimensional manifold, so clusters on the low-dimensional representation of the high-dimensional space maximize the "likelihood" that contiguous individuals will not be in the same cluster   Can anyone propose a better blurb than that?


I want to use the following chapter style in my book:  \usepackage{color,calc,graphicx,soul,fourier}   \definecolor{nicered}{rgb}{.647,.129,.149}   \makeatletter   \newlength\dlf@normtxtw   \setlength\dlf@normtxtw{\textwidth}   \def\myhelvetfont{\def\sfdefault{mdput}}   \newsavebox{\feline@chapter}   \newcommand\feline@chapter@marker[1][4cm]{%   \sbox\feline@chapter{%   \resizebox{!}{#1}{\fboxsep=1pt%   \colorbox{nicered}{\color{white}\bfseries\sffamily\thechapter}%   }}%   \rotatebox{90}{%   \resizebox{%   \heightof{\usebox{\feline@chapter}}+\depthof{\usebox{\feline@chapter}}}%   {!}{\scshape\so\@chapapp}}\quad%   \raisebox{\depthof{\usebox{\feline@chapter}}}{\usebox{\feline@chapter}}%   }   \newcommand\feline@chm[1][4cm]{%   \sbox\feline@chapter{\feline@chapter@marker[#1]}%   \makebox[0pt][l]{% aka \rlap   \makebox[1cm][r]{\usebox\feline@chapter}%   }}   \makechapterstyle{daleif1}{   \renewcommand\chapnamefont{\normalfont\Large\scshape\raggedleft\so}   \renewcommand\chaptitlefont{\normalfont\huge\bfseries\scshape\color{nicered}}   \renewcommand\chapternamenum{}   \renewcommand\printchaptername{}   \renewcommand\printchapternum{\null\hfill\feline@chm[2.5cm]\par}   \renewcommand\afterchapternum{\par\vskip\midchapskip}   \renewcommand\printchaptertitle[1]{\chaptitlefont\raggedleft ##1\par}   }   \makeatother   \chapterstyle{daleif1}      Which should look like this:   However, this chapter style is meant to be used in the memoir class and I already wrote more than half a book in the book class, so it would be hard for me to chenge class. There is some way to use this chapter style in the book class?  Thanks!


Why does $ \frac{2x}{2+x}$ provide a particularly tight lower bound for $\ln(1+x)$ for small positive values of $x$?

EDIT:  My question was poorly worded.   I wasn't asking about showing $\ln(1+x) > \frac{2x}{2+x}$ for $x>0$.   What I wanted to know is why the lower bound provided by $ \frac{2x}{2+x}$ was so tight for small positive values of $x$. This is addressed in robjohn's answer.


How to make clickable links and cross-references in pdfs produced by LaTeX?

How can I make things link url references, my index, table of contents, and cross references clickable links in documents produced by LaTeX? I generally use pdflatex to produce my documents.


Quantum entanglement as practical method of superluminal communication

As I understand it (from a lay physics perspective), quantum entanglement has been experimentally demonstrated - it is a reality. As I understand it, you can measure something like the spin of an electron and know that its entangled pair will, in that same instant, no matter where in the universe it is, have the opposite spin.   This would not seem to have any utility as the foundation of a superluminal communications device. Is this true, or has it been established that is there some aspect of quantum entanglement that can ultimately lead to the development of such a device.  In other words: is superluminal communication via quantum entanglement an open scientific question, has it been settled as an impossibility, or is it currently more of an engineering problem than a scientific one?


Do I need a visa for a short layover in Paris?

I am traveling from the USA. I have a valid L1 USA visa and I'm going back to South Africa with a 12-hour stop in Paris. I have a South African passport.   Can I go and see the Eiffel Tower or do I need a visa?


Positive forecasts with hts and combinef in R

I am doing forecasts for a lot of time series. These consist of forecasts for specific items in specific regions, where all regions belong to a country. So this is a hierarchial series.    Product 1 - Country 1   product 1 - country 1 - region 1-1 product 1 - country 1 - region 1-2   Product 1 - Country 2    Product 1 - Country 2 - region 2-1  ........  ........   And then there is of course also the "Total" of all.   My matrix cmat contains all bottom level data, i.e. for all products and regions. Every column is a time series. The name of a column is for example: 000214ABCab. The numbers are the product ID, the next 3 letters are the country, and the next two letters are the region. I want forecasts on this level, but also on the product-country level.   First I was struggling with the performance, as I have a lot of data. In the example below I only use a subset of 1000 time series.   subs = cmat[,1:1000] hh = hts(subs, characters = c(maxlength+3,2)) ally = aggts(hh)  #make list of data tables with time series  subs2 = as.data.table(t(ally)) subs2$CODE = unlist(hh$labels) datlist = subs2[, list(list(.SD)),by=CODE]$V1  setattr(datlist, 'names', subs2$CODE) #code is the identifier of products/country/region  s1 = Sys.time() fcast = NULL for(i in 1:nrow(subs2)){     if(i%%1000==0){         print(i)     }     fc = data.table(pmax(forecast(stlf(ts(matrix(datlist[[i]]),frequency=12)),h=12)$mean,0) )     names(fc) = names(datlist)[i]      fcast = rbind(fcast, t(fc)) } s2 = Sys.time()  fcasts = t(fcast) y.f = combinef(fcasts, get_nodes(hh),keep="all")  s3 = Sys.time()   I am also surprised by how fast combinef is. However, I only want positive or zero forecasts. Preferably also integer forecasts. I already do pmax(forecast, 0) in the loop. But by using combinef, I lose this again.   If I do now again pmax then I will also lose the functionality of the combinef, right? So how can I make the forecasts positive? Also, for me it is not necessary to have a "total forecast" at all, but I don't know if I can omit this?


Can an open set in $\mathbb{R}^n$ homeomorphic to a non-open set?

Suppose $A$ is an open set of $\mathbb{R}^n$ under the ordinary topology and is homeomorphic to $B\subset \mathbb{R}^n$. Is it necessary that $B$ be open too?


I'm trying to find a way to raise all the windows that have one, specific title.  For example, I have two windows named superconky (yes, you guessed it, I'm trying to get conky running in lubuntu).  I have a command I got from the LXDE forums: sh -c 'wmctrl -k on; wmctrl -a superconky;'  I use it to show the desktop, except conky. It works perfectly, but only if you have one conky. If you have two or more, you get left with one and all the others minimized.  So, what should I do to raise all the windows?  Thanks in advance.


Sum of sum of odd terms of Vandermonde's Identity

The  tells us: $\displaystyle \large {m+n \choose r}=\sum_{k=0}^r{m \choose k}{n \choose r-k}$ However, I want to find out the closed form or the simplest form of the expression: $\displaystyle \large \sum_{r=1}^{p}\sum_{k=0}^r{m \choose k}{n \choose r-k}$, where $p$ is a natural number. But I only want to include the terms with odd $k$ to be included in the inner sum (the $\displaystyle \large \sum_{k=0}^r{m \choose k}{n \choose r-k}$ one) I had previously posted a similar  before, but I couldn't get a simplification for that case. However, with a change in the nature of the sum I believe will render it to have a simplification, at least this time.


How to remove item from array of objects

i have this so far:   public form = [         { val: 'monday', isChecked: false},         { val: 'sunday', isChecked: false } ];   and i want to achieve this:   public form = [         { val: 'monday'},         { val: 'sunday'} ];   how to remove only the 'isChecked' property? i did google it but couldn't find anything.. only how to remove the entire line how to do this?


Does Winston's Tesla Coil do any damage through armor?

In Overwatch, armor reduces damage taken by 5. Is there a minimum damage or it actually goes to 0?  Lets take Winston for ex. He has:     Tesla Cannon:      Type:     Multitarget Beam      Damage:   60 per second, 3 per round      Maximum range     8 meters      Area of effect    6 meter width      Ammo  100      Ammo usage    20 rounds per second      Reload time     1.5 seconds      Headshot  ✕   If you check the bolded part you see that he actually does 3 damage per round. That, reduced by armor means -2 (0 since I guess you don't start healing the enemy :)) ) damage. This basically means that any character with 1 armor is unbeatable by Winston. My instinct (and the 99999 kills in Overwatch - although I never checked if the dead ppl had armor or not :P) tells me I'm wrong, but can't find anything to back me up.  Is there maybe a minimum of 1 damage/round or something?


class.getResourceAsStream returns null on user's machine, how to reproduce?

I have an issue reported by an user which I cannot reproduce. The issue is error:  Exception in thread "main" java.lang.NullPointerException: source         at java.util.Objects.requireNonNull(Unknown Source)         at java.util.Scanner.(Unknown Source)         at cz.autoclient.Main.getVersion()         at cz.autoclient.Main.()         at cz.autoclient.Main.main()   In this code:     private VersionId VERSION = new VersionId("0.0-error");    public final VersionId getVersion() {      if(VERSION.affix.equals("error")) {        InputStream in = Main.class.getResourceAsStream("/version");        Scanner sc = new Scanner(in, "UTF-8"); // LINE 86        VERSION = new VersionId(sc.useDelimiter("\\A").next());      }      return VERSION;    }   What I do here is to parse internal resource which contains version info for the application (including version as variable turned out to be very impractical).  Version file might look something like this:  v3.5-beta   The error seems to be caused by the resource "/version" being unreachable. This error does only seem to happen to the user, so I need help why it even might happen. User's Java version is:  java version "1.8.0_101" Java(TM) SE Runtime Environment (build 1.8.0_101-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)   Here is the full . The application is distributed as jar file. The version file is in the root of the jar file.  In case it happened to be unclear the problem is when I run the same release (downloaded from release site, not re-built), I do not encounter the problem. I asked the user to verify that the file is there (by unziping the jar file). He sent it to me, it was intact.


How does the push button in this circuit work?

I am using a variation on the following Arduino project and it works, though I'm not quite sure how when it comes to the push button:    The schematic (from p22 of ):    The 5V voltage source runs through a 10K resistor, which is connected to pin 2 and the push button.  I believe that the circuit works like so: when the button is not pushed, it is  a series circuit, and current only flows through the wire leading to pin 2. (Notably, the default state for digital pin 2 in the Arduino sketch is HIGH, not LOW.) When the button is depressed however, the circuit becomes parallel. Somehow, the circuit's action is constituted by this. Even if I'm essentially right I'm missing some details, so fill me in here.


I'm doing android app where I need to communicate with special tablo via Bluetooth.  I have an error with java.lang.NullPointerException  I’ve announced everything that I need. What I need to do?  Java class  public class SearchTabloActivity extends AppCompatActivity {      ListView listView;      BluetoothAdapter mBluetoothAdapter;      @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_search_tablo);          listView = (ListView)findViewById(R.id.listView);          mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();          if (mBluetoothAdapter == null) {             Toast.makeText(getApplicationContext(), "Bluetooth not support!", Toast.LENGTH_SHORT).show();             startActivity(new Intent(SearchTabloActivity.this, MainActivity.class));         }          Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices();          List<String> s = new ArrayList<String>();         for(BluetoothDevice bt : pairedDevices)             s.add(bt.getName() + "\n" + bt.getAddress());          listView.setAdapter(new ArrayAdapter<String>(this, R.layout.activity_search_tablo, s));      } }   Error  2020-04-24 09:47:56.208 12121-12121/com.kvaksmanyt.exoy E/AndroidRuntime: FATAL EXCEPTION: main     Process: com.kvaksmanyt.exoy, PID: 12121     java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kvaksmanyt.exoy/com.kvaksmanyt.exoy.tablo.SearchTabloActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.Set android.bluetooth.BluetoothAdapter.getBondedDevices()' on a null object reference


Straight diagonal rule by using Tikz and Tree diagrams

My code are follows:  \documentclass[10pt]{book} \usepackage[T1]{fontenc} \usepackage{newtxmath,newtxtext} \usepackage{linguex}% \usepackage{tikz}% \usetikzlibrary{decorations.text,calc,arrows.meta}% \usepackage{tikz-qtree}%  \usepackage{adjustbox} %\usepackage{showframe} \begin{document}  \ex. \Tree [.CauseP [.DP \edge[roof]; {`the zog'} ] [ [.{\scshape cause} ] [ [.{\scshape past} ] [.vP \edge[roof]; {`dissolved the house'} ]]] ]  Throughout this monograph, I will focus on the reusable linguistic ingredients of the system and how they are efficiently deployed in the recursive combinatorics in building propositions. Reusability (and by extension polysemy) will be a seen as a design feature of the system rather than a bug. As a methodological principle, then, I will be guided by the fact of polysemous items and seek analytic unities to underlie them.  \ex. \textit{Achievements and accomplishments with result states}\\ %\begin{tikzpicture}[baseline=(current bounding box.north)] \begin{adjustbox}{max width=0.91\textwidth} \Tree [.InitP [.{\textsc{initiator}} ] [ [.Init ] [.ProcP [.{\textsc{undergoer}} ] [ [.Proc ] [.ResP [.{\textsc{resultee}} ] [ [.Res ] [.XP \edge[roof]; {\sc ground/final state} ] ] ] ] ] ] ] %\end{tikzpicture} \end{adjustbox}  \end{document}   and the output came as:    Is this possible to make the diagonal lines to be straight as marked in the below picture?    Diagonal line should be straight in all Trees. Please suggest...


Q: Find a polynomial of degree > 0 in $\mathbb Z_4[X]$ that is a unit.  I know (2x+1) is a unit. Is there any other units in $Z_4[X]$ if there are infinite units, could you generalize it in a certain from such as (2nx+1) s.t n is an integer?


In Star Trek what is the rank just below President of the Federation? And is there a rank above Admiral?

I know there are Admirals, Commandants, Commodores, and more but what is just below Federation President? Is there a such rank? I've wondered for years. And why is there very little mention of the President of the Federation in the tv shows and movies?


Note: I have converted my announcement into a question and supplied an answer.  What is the best way to solve discrete divide and conquer recurrences?  The "Master Theorem" is one way.  What other ways are available?


Get what is in string from one quotation mark to other

I have a long string and I need to take part of it according to a certain condition. Let's say I have the following string:  string str = "fjashfdkj sdbf hbdf sfbjsh  hsdfj T=\"sadhj ad jh\" kdhad a P=\"sdkahda\"";   I want to take everything that is in " " after T= or P=. Is it possible to do that without knowing how many values are inside of quotation marks? As I figured I could find the location of T= in the string and check the next 12 values after, if I knew how many values there are.


closed-form solution for summed squared error of $n\times n$-grid points to center of gravity

The context of my problem is the construction of test problems for the $k$-means algorithm and variants of it. The problems should have known optima and are thus constructed from a basic building block which is a regular  $n\times n$ grid of data points filling the unit square. For $n=2$ the point set would be {(0,0),(0,1),(1,0),(1,1)} for $n=3$ the point set would be {(0,0),(0,0.5),(0,1),(0.5,0),(0.5,0.5),(0.5,1),(1,0),(1,0.5),(1,1)} and so on. I like to know the sum of squared distances of all grid points for a given $n$ to the center of gravity which is the point (0.5,0.5). The naive formula is the following: $$\mbox{SSE}(n) = \sum_{i=0}^{n-1}\sum_{j=0}^{n-1} (0.5-\frac{i}{n-1})^2+(0.5-\frac{j}{n-1})^2$$ E.g. $$\mbox{SSE}(2)=2$$ Does a closed-form solution for $\mbox{SSE}(n)$ exist (and how does it look)? Addendum: Following the remark of @Ian I think one can rewrite the sum as $$\mbox{SSE}(n)=2n \sum_{i=0}^{n-1} (0.5-\frac{i}{n-1})^2$$ which is basically a sum of powers of 2 as described in . I should be able to figure out the final formula from here. Addendum 2: And here is the formula: $$\mbox{SSE}(n)=\frac{n^3+n^2}{6(n-1)}$$


Select By Atribute using python script on .Shp file getting error 000840 value is not raster layer

I have a script that calculating vertices angles on Polyline layer and the selecting features in that layer at a specified angle. at the end of the script i'm using select by attribute and getting error 000840 the value is not raster layer, the value is not mosaic layer    SelectLayerByAttribute_management(my_shp_name, 'NEW_SELECTION', myquery)


How to make IgnoreCase when you're using the contain method

I'm trying to make it ignore the cases, while using the contain method. How do I do that?  String text = "Did you eat yet?";     if(text.contains("eat") && text.contains("yet"))     System.out.println("Yes"); else     System.out.println("No.");


Rome airport - How to get from Terminal 1 to Terminal 5?

How to get from terminal 1 to terminal 5 at Rome airport?  Where I can get my boarding pass?  I have 3:25h between flights; is that okay?


How should I connect the ground wire for my light fixture?

I am replacing a light fixture in my bathroom and have the following setup:   The electrical box is plastic The wire coming from supply has black (hot), white (neutral) and copper (ground). The light fixture comes with a metal bracket for attaching to the electrical box that has a green screw The light fixture has black, white and copper wires.   The instructions supplied with the fixture dont give me an example of how to wire it up if there is an existing ground wire coming from supply.  It only tells me to attach the copper wire of the light fixture to the green screw.  So I'm curious what I should do with the ground from the supply.  Looking online, my options appear to be this:    So I think since the electrical box is plastic, I should just connect the ground of the supply with the ground of the light fixture with the wire nut.  Do I need to connect both of them together with the green grounding screw on the light fixture as well, or would that only be if the electrical box was metal?


The Stack Exchange app does not let me log in with my Google account and displays an error

I downloaded the Stack Exchange app on my secondary phone (Android 6.0) and installed it. I tried to log in with my Google account. However, an error occurred.  I tried the next day on my main phone (Android 5.1) and got the exact same error.  Here is a screenshot:    The version is the latest that is on the Play Store (latest update: 30 June 2017).  I think that the error happens because the app's code is no longer compatible with Google's recent Play Services update.  I sent an e-mail to the Stack Exchange developers about this (androidapp@stackexchange.com), however I did not get any response. So I thought that I would get a faster response here.  Can anyone help me?


Let $f: [a,b] \rightarrow \mathbb{R}$ continous on [a,b] and differentiable on $(a,b)$. Asume there exist some $c \in \mathbb{R}$ so $f'(x) \rightarrow c$ for $x \rightarrow a+$. Show $f$ is differentiable at the endpoint with $a$ with $f'(a)=c$  Here's what I'm thinking...  I need to prove $\frac{f(x) - f(a)}{x - a}\rightarrow c$ as $x \rightarrow a+$. My guess would be to use the mean value theorem and replacing $b$ with $x$, so there exists a $\xi$ so $f'(\xi) = \frac{f(x) - f(a)}{x - a}$ where $\xi \rightarrow a$ as $x \rightarrow a+$? (since $\xi \in (a,x)$). But is this valid?


Can a goalkeeper head a backpass then pick it up?

Let's say hypothetically that a player plays a lobbed pass back to the keeper (played with the player's foot), and the keeper manages to control the pass with his head. Is he allowed to pick up the ball in this instance, or does this still constitute a backpass? I understand there are rules against "circumventing the laws," but I have not been able to find something on this type of situation.


Can I reinstall windows without reactivating it?

I currently have Windows 10 installed on my desktop PC. Unfortunately,I don't have the activation code anymore. I upgraded from Windows 7 to Windows 10, so even if I still had the activation code it would be a Windows 7, not 10, activation code.  Now I need to reinstall the OS to a new HDD. I do not want to keep my data, I want to make a clean reinstallation.   Is there a way I can reinstall Windows 10 to a new drive while keeping it activated?


I'm quite new to Ubuntu and want to create a backup. I'm really not sure what files and folders to include so that if I restore my system it will be as it is now. I can't seem to find good details of this anywhere. Hopefully someone could help me with this. Is it possible to backup everything as it is now so in the event of a system restore I don't have to reinstall programs and settings?


Please warn about exceeding 50 question limit prior to asking a new question

It's a shame to type out an entire question, press post and then:     Sorry, you are only allowed to ask 50 questions in a 30 day period   Could you put some sort of notice on the page itself before submitting it to let you know the question won't be going through?  Or perhaps tell me how many questions I've asked in the last 30 days if it's >0?  Edit  This is not a complaint or statement about the limit, just a request that the error handling be done in a slightly better way to save people a lot of time.


Can I change email content without stopping a journey?

I've created a journey in salesforce marketing cloud to send a set of emails. This journey is currently active & running.   I want to do some changes in existing content of one of the email (for example I want to change url of CTA button).    If I go to content builder & change content of that email. Will it reflect in ongoing journey? or  I need to stop existing journey and create a new version with updated email content.   Which one will work?


Solving quadratic equations in modular arithmetic

Is there a general way to solve quadratic equations modulo n? I know how to use Legendre and Jacobi symbols to tell me if there's a solution, but I don't know how to get a solution without resorting to guesswork. Some examples of my problems:  $x^2 = 8$ mod 2009 $x^2 + 3x + 1 = 0$ mod 13  Thanks


InvocableMethod not appearing in Cloud Flow designer

I have written an @InvocableMethod, with an @IncovableVariable as such:  public class SimpleAccountLookup {      @InvocableMethod     public static List<Account> getAccountId(List<GetAccountActionRequest> requestDetails) {         System.debug(requestDetails);         List<Account> accounts = [SELECT Id FROM Account                               WHERE A_Custom_Field__c = :requestDetails.get(0).thatFieldValue                               LIMIT 10];         return accounts;     }      public class GetAccountActionRequest {         @InvocableVariable(required=true)         public String thatFieldValue;     }  }   Which all seems like legit Apex to me, and it saves and complies just fine.  However, when I go to my Flow builder, it isn't appearing in the list of Apex options as I would expect.    There are three other Apex methods in there (created by other developers) which are almost identical in composition... but mine is not there. I have waited a couple of hours - as I know sometimes these things take weirdly long in Salesforce (like Lightning Components appearing in the App builder), but it's just not there. Any one have any thoughts, tips, places to check, or other things I need to update?  This is just in a straight up sandbox, no managed package, domain, namespace.


Is there any way to receive a notification (email and SO inbox would both be good) if a question with a particular tag shows up?  I'd like to know if a question about D, C# (or even Eeeeeeeeeeeeeeek!) shows up. :D  If not, might I suggest that this be implemented sometime in the future? :)


I keep getting this error every time I run sudo apt-get update and also I'm getting a red notification in the top right of my computer that says my      update information is outdated   This is the result of update command:  Fetched 132 kB in 3s (42.5 kB/s) W: Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release  Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file)  E: Some index files failed to download. They have been ignored, or old ones used instead.


How do I install ArcView 3 on 64bit Windows?   There are numerous threads on the Esri forums for how to accomplish this, but the solutions are scattered, inconsistent and disjointed.   This is a request to post integrated and "cleaned-up" solutions, don't just copy and paste. Please indicate if the method is specific to x64 XP, Vista, or 7 (and post seperately, e.g. win7 method in one answer, vista in another).


SQL Server: Is it possible to insert into two tables at the same time?

My database contains three tables called Object_Table, Data_Table and Link_Table. The link table just contains two columns, the identity of an object record and an identity of a data record.  I want to copy the data from DATA_TABLE where it is linked to one given object identity and insert corresponding records into Data_Table and Link_Table for a different given object identity.  I can do this by selecting into a table variable and the looping through doing two inserts for each iteration.  Is this the best way to do it?  Edit : I want to avoid a loop for two reason, the first is that I'm lazy and a loop/temp table requires more code, more code means more places to make a mistake and the second reason is a concern about performance.  I can copy all the data in one insert but how do get the link table to link to the new data records where each record has a new id?


When advertisers say product X has N times less 'thing' than product Y, what do they mean

Here is an example:     NESTLÉ a+ SLIM Milk has 15 times less fat than regular toned milk.   Source:  So the question is this: say regular toned milk has 100 grams of fat. How much of fat would 'NESTLÉ a+ SLIM Milk' then have...?  I seek some mathematical representation/or equivalent of the expression... Something like this: if product Y had 100 grams of 'thing' then product X would now have 43 grams... Or something along those lines...  Or is this just advertisers' way of confusing people when they can't convince people of the real benefits of a product..?


Is it okay to inquire about the status of a paper when the online submission system shows no update three months after submission?

Around 3 months ago, I submitted a paper to a Math journal for peer-review through an online submission system. The same day I received in my e-mail an acknowledgement saying that the paper had been received.  The problem is that the status of the paper on the online submission system is still "Manuscript submitted".  I think this means that the paper has not even been assigned to an editor yet (once this happens, the editor will probably start looking for reviewers), but as far as I know submissions are assigned to editors within a few weeks (I once submitted a paper to another journal and when an editor had been assigned, the status on the online system changed to "Editor handles" or something like that).  I know that publishing is a long and complicated process and I'm not trying to rush anybody, but sometimes manuscripts are lost in the system. In fact, this has once happened to me, so I just want to make sure that the paper was not lost in the system.  Should I send an e-mail asking for the status of the paper?  PS: I think that, at the time of submitting the paper, I didn't choose any specific editor to submit the paper to.


I am trying to understand how Attribute Base Encryption (ABE) works. So, after downloading libfenc library from , I built the source code on Ubuntu 12.04 without any error.  Afterward, I tried to follow the library  as follow:  Create the master secret and public parameters: abe-setup -m CP  Generate key for user's attribute: abe-keygen -m CP -a 'ONE,TWO,THREE,FOUR,FIVE' -o userCP.key  Encrypt the input file under a given policy: abe-enc -m CP -i filename.txt -p "((ONE and TWO) or THREE)" -o outfile   With each executed command a file is generated (three files among which the encrypted file is created). Now, when I try to decrypt the encrypted file "outfile" using: abe-dec -m CP -k userCP.key -f outfile.cpabe no file is generated at all, and I don't know if the encryption mechanism works or not !! does the code works or not !! am I missing something ? EDIT () Through this question I am seeking understanding the ABE encryption. It is not about the library AT ALL. it is about the basic understanding of the ABE mechanism. Believe me, the code itself is useless.


Which email was the verification email sent to?

I started my app today and it said that I needed to verify my email. But I don't know the email I chose. I logged on every email in but there was never a verify email. Is there a way to know your email on Pokemon Go?


The Select Tool doesn't seem to be shrinking or expanding an object on Illustrator

Hi guys,  I'm a bit stuck here.  The Select Tool doesn't seem to shrink or enlarge objects. I'm using Illustrator CS6. It only seems to just move it around.  Please help, thanks x


This is my HTML

We Work With:

test

test

test

test

   I should show shops which work with us. My boss told me to change that they don't work "hard-code", they want me to use ajax! ass I understand somehow I need to add elements by js, in future I will show them from a database but now they want me to make something like a simple template. Guys help, please!


I need to send out an invite for a group to attend a training programme which will be held soon. I intend to know which is the right choice of word "specially" or "especially".  Is this sentence correct for the above request.  "Please ensure you attend this session as it is organized specially for you".


Is Cursed Child canon to the original story?

From what I am hearing the stage-play called The Cursed Child is based on the characters from the Harry Potter series. It is set 19 years from the end of Deathly Hallows (i.e. When Harry's children are starting their time at Hogwarts).   I have also seen the J.K. Rowling has had at least some involvement and been on the set and a part of rehearsals, etc.   My question is has there been a statement given relating to the canon of the stage play to original series? If so, would any conflicting information be considered a retcon?  Related:  - but not dupe because this asking about in-universe information.


In C/C++, return type of main() can be int/void but in JAVA it can only be void why?

In C/C++, return type of main() can be int/void but in JAVA it can only be void why ?


How to not kill more than 2 entities using /kill without using scoreboard in minecraft

I am trying to kill all entities that are not a player and a sheep called test catch but I can't use   /kill @e[type=!Player,!sheep]   so how could it be done WITHOUT scoreboard because I don't want to keep doing scoreboard for everything that deserves and that doesn't. and please don't judge me because I don't want to use scoreboard.


Prove: A nonempty subset B of a ring A is closed with respect to addition and negatives iff B is closed with respect to subtraction

Can I say something like, ∀ x,y ∈ B, x + (-y) ∈ B ⇒ x - y ∈ B by definition of subtraction?? I'm lost


How to organize content of slides for a conference presentation?

I am going to attend my first IEEE conference on Electronic Design/Verification and am feeling quite nervous about my first oral presentation.   I want to make sure to "sell" my point and ensure all questions are being tackled, and so I am looking for advice related to the organization of my slides. For example,   How can the slide material  complement my speaking?  How do I ensure that the end-product is not dry/heavy?  If my work is on for example, SRAM or Post-silicon technologies,is it recommended to begin my presentation with a foil on a collage of the latest news snippets about these topics? This could probably draw their attention rather than picking up some lines from my camera-ready's introduction section.  Also, how many slides should I ideally allocate for each section of my paper?   I am forced to ask such "trivial" questions as my Professor is on a sabbatical currently and has little/no access to mail for the next few weeks.  I have searched the Internet and found some generic advice, like  by David Patterson.  There are some related questions on this site that do not seem to directly address how to organize the content of the slides.  asks about becoming a more effective orator.  asks about effective design elements (not content organization) for slides.


Older science fiction book about time travel to retrieve things but they went sideways through the dimensions instead

So, as I vaguely remember it. It was set in the distant future were a dictator rules the Earth. By this point carbon dioxide was so high most life outside of humans was extinct. So the dictator built a special zoo with the right atmospheric conditions. Then he sent crews back in time to retrieve things. But, unbeknownst to them they were sliding sideways through the dimensions. So when they went to get a horse they got a unicorn instead, a real drake instead of a komodo dragon, etc. The unicorn gored one of them really bad. The drake burned another pretty bad.  Somewhere along the way they speculate on what happened to the rocs of myth and figured it was the ostrich and they re-enabled the disabled DNA pairs and suddenly had a roc that broke free, escaped, and quickly suffocated to death in the high CO2 atmosphere.  I remember them all nearly dying because someone sent to get the first automobile built by Henry Ford screwed up and accidentally destroyed the original. And that changed time so that Ford never started an auto industry so the air never got polluted, etc., and everyone in the future, accustomed to the high CO2, was dying without it.  Does anyone know the author and book/story names?


The key /desktop/gnome/url-handlers/magnet in gconf-editor is missing.  How do I assign magnet links to use qbittorrent?  It would be really nice if it were easy to set url handlers. I always struggle with this when doing a fresh install. I would like to set subl:// to open sublime text 2 too.  EDIT: I would like it to work regardless of the application I'm using to activate the link. I'm using Chrome, but IMO the OS (Ubuntu) should be handling links that an application doesn't know how to handle - which it does, so how would one configure this?  EDIT2: This post details how to make the text editor in VIM handle vim:// urls, perhaps this can be applied to to magnet links. i.e create a desktop shortcut defining a MimeType handler then refreshing the cache. (Can't try right now as I'm using 12.04).


How to make citations appear within square brackets [ ] instead of parentheses ( )?

I'm using a  freely downloadable latex class file and the style is set to \bibliographystyle{ieeetr}. But when I cite something with \cite{} I get it inside ().   For example I get it as abc et al. (1) but what I want to get is abc et al. [1].   Please tell me how to get my citations inside [ ] ?


Explanation of Different factor of $2$ in Formulas for the Uncertainty Principle

I am readind about Heisenberg's Uncertainty Principle and although the main formula most texts use is  $$\Delta x\Delta p_{x}\geq \frac{\hbar}{2}$$  or equivalently  $$\Delta x\Delta p_{x}\geq \frac{h}{4\pi}$$  I have seen it written as  $$\Delta x\Delta p_{x}\geq \hbar$$  or  $$\Delta x\Delta p_{x}\geq h$$  First of all, are all those correct formulas? If so, then how are they equivalent with each other?


I have several directories and sub-directories include text files. I need to change particular line of these text files for all directories and sub-directories. I used below sed command to perform this task;  find ./ -type f -exec sed -i -e 's/old_line/new_line/g' {} \;   It is working if there is no space in old_line and new_line. But it doesn't work for below example;  old_line=5704550660          SPP91564_2                              ANT # / TYPE  new_line=5704550660          SPP91564_2      NONE                    ANT # / TYPE   when I append these lines within above sed command, I receive;   sed: -e expression #1, char 56: unknown option to `s'   How can I modify above command to work properly for above example?


I can see the HTML is not embedded in Badges Page.         Is it any issue in my browser or bug?


Determine number of real roots of $f(x)=x^{5}+x^{3}-2x+1$.   I used Descartes's rule of sign to determine the number of positive and negative roots; there is only 1 negative (hence minimum 1 real root) and two positive roots. These 2 positive roots can be anything- a complex pair, or two real roots- but what about the other 2 roots? Is there any flaw in my understanding of rule of signs? How can I find the exact number of real roots?  Thanks in advance.


Degree of a field extension $F[x]/(g(x))$ over the field $F$

Let $F$ be a field and let $F[x]$ be the ring of polynomials in $x$ over $F$. Let $g(x)$, of degree $n$, be in $F[x]$ and let $V=(g(x))$ be the ideal generated by $g(x)$ in $F[x]$. I have to prove that $F[x]/V$ is an $n$-dimensional vector space over $F$. Help me with the proof.


Get the .tex source of a PDF file (generated from TeX)

I have a  file (example), which was generated from TeX. Is it possible to convert into a tex file, or obtain the .tex source?  Thanks


I was reviewing a design earlier, and I noticed something interesting. The designer had removed unused pads on the chip. I have never seen this done before.   Is this something that is good practice? Is it even okay?


Is there a way to perform a search in such a way as to exclude a specific tag?

I would like to perform a search for questions tagged  but not tagged  as an example.  So in the Search dialog I would like to type java -android search criteria  this would search all questions tagged  and not tagged .  Make sense?


def hashes(n):     for x in range(0, n):     print"#",   The above code produces the following result if n = 5:  # # # # #   Could anyone suggest a solution for making the characters have no space in between?  i.e   #####   (Python 2.7)


How to change Date/Time format to English?

I have installed Ubuntu 13.04 and set my local time/date and its working, the only thing that's bugging me is that I cannot change it to English. I would like to do this because it is hard to read and it is not showing it in the proper format in the Terminal, please refer to the screenshot below.    Show in the proper format    Not showing in proper format in terminal  How can I change my date/time to English format and keep the local time?


I am regular expression newbie. I have a boundary problem to capture a content from a line of string in Python3.  Let's say I have the line of string here:  line = "(string1),DC (string2),IC\n"  What I want is list = ["(string1)", "(string2)"]   I tried to use  list = regex.findall("(\(.*\))", line)  But it returned list = ["(string1),DC (string2)"]


What is Lie-dragging? What is the relationship between Lie-dragging and Lie-derivative?

I found lie-dragging at following picture, i can not understand why L and N have property of (12)


I know what chgrp and chown do. My question is since chown does the same thing as chgrp (and even more), what is the point of chgrp?


Column Content Vertical Alignment - Bootstrap 4

I'm trying to create a loading animation for when a user submits a form before it informs them whether it was successful or if there was an error. My problem is that the loading icon and text is not aligning vertically to the center of the div it is in (col). I wish to have this in the center so that I can replace the column content (loading icon and text) with the response of the form submission after a certain time. I am using Bootstrap 4 and I have tried various different code such as align-items-center and my-auto on the column to no avail.

Loading

   .formSubmitLoad {   position: fixed;   z-index: 1;   left: 0;   top: 0;   overflow: auto;   color: white;   background-color: rgb(0, 0, 0);   background-color: rgba(0, 0, 0, 0.9); }   Snippet:


How to run a program from terminal, which allows to close terminal after the program is open?

Could someone remind me how do I run application through the terminal, which allow me to close the terminal after the program is open. I totally forgot how to do this. Please let me know.


Finding $\lim\limits_{n \to \infty }n\int_{0}^{1}\frac{x^{n}}{1+x+x^{n}}dx$

$$\lim_{n \to \infty }n\int_{0}^{1}\frac{x^{n}}{1+x+x^{n}}dx$$  I factorize $x^n$ then I tried with $u=1+x^{1-n}$ but I didn't get too far. Also I tried to get something from $0<x<1$. I know that if $x$ is from $(0,1)$ then $x^n$ tends to $0$ as $n \to \infty$.


Just bought a brand new HP pavillion all in one desk top. I saved the current Ubuntu to a USB stick and Im not sure once im in setup what to do to have it boot up using the USB stick ?


Renaming attributes/fields in shapefile attribute table using QGIS

I would like to rename some fields in my attribute table:  Like rename "XRF_N3"in something else. It seems quite a easy issue but I don't find any information about how can I do that.


What is difference between REST and SOAP Services

I am not able to get basic or the in depth difference, I think both are used for the same purpose so why there are two terms, I am very new to this so can anybody help me clear out the functionality difference between the both.


string str1 = "hello";     const char* string1 = str1;    I get an error..     cannot convert ‘std::string {aka std::basic_string}’ to ‘const char*’ in initialization   how do i cast string to const char*  Thanks for helping


I'm trying to reload a div (#parent) when I click on a button (#button). That div contains an external PHP file. The problem I have is that it only works once when clicked.   Here is the code I'm using:  HTML
      <?php include 'content.php'; ?>
  jQuery $(function () {     $("#button").click(function (evt) {         $("#parent").load("content.php")         evt.preventDefault();     }) })  content.php <button type="button" id="button">Click me</button> <img src="<?php echo $path . $img ?>" />   However, the button that reloads the div is inside the content.php file (due to the design of the site) which I think it's the root of the problem. The jQuery code works fine if the #button is placed outside the #parent div, but I need the button to be inside content.php.   Is there a way to resolve this?


An application of Borel-Caratheodory theorem

Suppose that $f(z)$ is analytic function in the disk $|z|\le R$ and $A(r)=\max_{|z|=r}Re(z)$ then prove that $r<R$  $$\max_{|z|=r}\left|\frac{f^n(z)}{n!}\right|\le \frac{2^{n+2}R}{(R-r)^{n+1}}\{A(r)+|f(0)|\}$$  MY attempt   Using Cauchy generalized integral formula   $f^{(n)}(z_0)=\frac{n!}{2\pi i}\int _c\frac{f(z)dz}{(z-z_0)^{n+1}}$  then $\max_{|z|=r}\left|\frac{f^n(z)}{n!}\right|=\left|\max_{|z|=r} \frac{1}{2\pi i}\int _c\frac{f(z)dz}{(z-z_0)^{n+1}}\right|$  and i think we can solve by using Borel caratheodory theorem  Let $f(z)$ be holomorphic function on $|z|\le R$ and let $M(r)=\max_{|z|=r}|f(z)|$ and $A(r)=\max_{|z|=r}Re f(z)$ then  for $0<r<R$  $$ M(r)\le \frac{2r}{R-r}A(R)+\frac{R+r}{R-r}|f(0)|$$  from here how to processed ?


Time reset/ending time for "Sorry, you are only allowed to ask 6 questions in a 24 hour period"

I share a public IP with my colleagues here in the office, and sometimes I get the following error message:     Sorry, you are only allowed to ask 6 questions in a 24 hour period.   I was hoping if you guys can add a time reset indication like, "You will be able to ask again after 2 hours," where 2 hours is the remaining time till the 24 hours limit ends.  What do you think?


First thing first, my code,  \documentclass{article} \usepackage{ragged2e} \usepackage[utf8]{inputenc} \usepackage[letterpaper, top=0.5in, bottom=0.5in, left=1.55in, right=1.55in]{geometry} \usepackage{multirow,array,varwidth,spreadtab,caption} \usepackage[norule]{footmisc} \usepackage{pythontex} \usepackage{siunitx,booktabs,caption} \usepackage{ragged2e} \usepackage{layout} \usepackage{xtab} \usepackage{float} \usepackage{gensymb} \usepackage{hyperref} \usepackage[some,bottom]{background} \usepackage{enumerate} \usepackage{fancyhdr} \usepackage{color, colortbl} \usepackage{xcolor} \usepackage{multicol} \usepackage{indentfirst} \newcommand{\mc}[2]{\multicolumn{#1}{c}{#2}} \definecolor{Gray}{gray}{0.85} \definecolor{LightCyan}{rgb}{0.88,1,1}  \begin{document}  \begin{table}[ht] \begin{center} \begin{tabular}{|c|c|c|c|c|}     \multicolumn{5}{c}{\textbf{NET ENTITLEMENT FISH OIL MARKETS}}\\     \multicolumn{5}{c}{\textbf{AS OF DECEMBER 31, 2019}}\\\hline     \rowcolor{LightCyan}     \multicolumn{1}{|c|}{\multirow{2}{*}{Country}}&\multicolumn{1}{c|}{\multirow{2}{*}{Company}}&Proved Cooked&Proved Uncooked&Total Proved\\     \rowcolor{LightCyan}     \multicolumn{1}{|c|}{}&\multicolumn{1}{c|}{}&(T)&(T)&(T)\\\hline     ChUAN& \pyc{print("{}".format(row[0]))} &51,574&31,202&82,776\\\hline     IraW-West POINT &  & 9,656 &57,981&67,637\\\hline      \multicolumn{1}{|c|}{\multirow{3}{*}{KAZSLSKDE}}& PKKR& 32,129 &5,174& 37,304 \\\cline{2-5}      \multicolumn{1}{|c|}{}&KOLKOL&9,718&3,447&13,165\\\cline{2-5}      \multicolumn{1}{|c|}{}&PKPK&424&0&424\\\hline      TOTAL CNNNO & & 103,501 & 97,804 & 201,306\\\hline \end{tabular} \end{center} \label{tab:multicol} \end{table}  \end{document}   And what I got is like below,   The second row coloring obviously block not only the "Country" and "Company" but also the "|" in the first two rows.  How could I get rid off this problem? Appreciated on any comments and help.  Regards, Cheng


How do I auto complete a command from the command history?

Is there a key combination for bash to auto compete a command from the history? In ipython and matlab for example this is achieved by pressing up arrow after typing a few characters.