Terminal icon in window titlebar is stretched out over window control buttons

A while ago I upgraded from Ubuntu 17.04 to Ubuntu 17.10 and everything is working fine except for the fact that the icon in the window title bar of my Terminal seems to be stretched out to some ridiculous size.    This only seems to happen in the Terminal window. The Nautilus icon is completely fine.    The problem seems to go away if I login into an Xorg session instead of a Wayland one. I've looked around and didn't find any immediate solution to this. Any help would be greatly appreciated.


Keeping a navbar (unorderd list) inside the header

You can see my problem here:   The problem is my nav bar will not sit inside the div/header, i have tryed many methods but i can not get it to work, so i hope somebody can spot my error.  i believe its something to do with:  .nav li {     float:left;     width: 25%; /* Split width appropriately */ }  .nav a:link, a:visited {     display:block;   It is also ment to have each button cover 25% of the width, however when if it manage to get it inside the div/header it never covers the whole width.


Simulate a fair coin toss with a biased die?

Given a biased 6-sided die of unknown bias, can we simulate a fair coin toss?


What is the remainder when $40!$ is divided by $1763$?

Need some assistance on answering this problem. For this question, there is no answer at the back of Kenneth Rosen's book. I initially began tackling this problem using Wilson's theorem, where   $40! \equiv -1$ (mod $41$)   $1763 = 41 * 43$  gcd($41,43$) $= 1$, hence these two numbers are relative primes.   $42! \equiv -1$ (mod $43$) $\Rightarrow 42! = 40! * 41 * 42 = 40! * 2 \equiv -1$ (mod $43$).  Using Euler's phi-function to find the inverse I obtained,  $40! \equiv -1 * 2^{41}$ (mod $43$) $\equiv -22$ (mod $43$). Thus,  $40! \equiv 22$ mod $1763$). Have I done this correctly? If not, can you correct me and explain my mistakes.


Null Pointer Exception while formatting date from jsp to servlet

Part in my jsp page where I am passing date after submit of this form to the servlet:

                   Date	                   <input type=date step=7 name="day" required="required">

   In my servlet I wrote:  Date day=new Date();  String startDateStr = request.getParameter("day");     System.out.println("stsartdate Str"+startDateStr);     SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");     try {         date=sdf.parse(request.getParameter("startDateStr"));         System.out.println("date entered is="+date);     } catch (ParseException e) {         e.printStackTrace();     }   It is prompting me a null pointer exception.  Mar 31, 2016 3:21:20 PM org.apache.catalina.core.StandardWrapperValve invoke SEVERE: Servlet.service() for servlet [com.controller.TravelServlet] in     context with path [/LetsRide] threw exception java.lang.NullPointerException at java.text.SimpleDateFormat.parse(Unknown Source) at java.text.DateFormat.parse(Unknown Source) at com.controller.TravelServlet.doPost(TravelServlet.java:76) at javax.servlet.http.HttpServlet.service(HttpServlet.java:647) at javax.servlet.http.HttpServlet.service(HttpServlet.java:728) at     org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)   However, the print statement where I am printing the date fetched from the jsp page in the form of string, it is printing:   stsartdate Str2016-03-10   It is throwing null-pointer exception while executing try block. Kindly get me out of this. Thanks in advance.


At daytime the Sun's light is yellowish if not near white. Why when the Sun starts to go down that it's light turn more red. I don't think the earth's rotation is so rapid to cause a red shift.  Why isn't that effect as clear, at sunrise?


show $\frac{1}{15}< \frac{1}{2}\times\frac{3}{4}\times\cdots\times\frac{99}{100}<\frac{1}{10}$ is true

Prove $\frac{1}{15}< \frac{1}{2}\times\frac{3}{4}\times\cdots\times\frac{99}{100}<\frac{1}{10}$   Things I have done: after trying many ways and failing, I reached the fact that$\left(\frac{1}{2}\times\frac{3}{4}\times\cdots\times\frac{99}{100}\right)^2<\left(\frac{1}{2}\times\frac{3}{4}\times\cdots\times\frac{99}{100}\right)\left(\frac{2}{3}\times\frac{4}{5}\times\cdots\times\frac{100}{101}\right)=\frac{1}{101}$  So $\frac{1}{2}\times\frac{3}{4}\times\cdots\times\frac{99}{100}<\frac{1}{10}$ is true. it remains to show $\frac{1}{15}< \frac{1}{2}\times\frac{3}{4}\times\cdots\times\frac{99}{100}$. I'm thinking of applying my approach  on proving this part. something like this. $$\frac{1}{225}<\frac{1}{x}=\left(\frac{1}{2}\times\frac{3}{4}\times\cdots\times\frac{99}{100}\right) \times B<\left(\frac{1}{2}\times\frac{3}{4}\times\cdots\times\frac{99}{100}\right)^2$$  And another thing I'm curious about it,is there a way to approximate value of $\frac{1}{2}\times\frac{3}{4}\times\cdots\times\frac{99}{100}$ ?


Interpret a multiple linear regression when Y is log transformed

I have the following multiple linear regression model: Log(y) = B0 + B1X1 + B2X2 + B3x3 + e. X1 is a dummy that can take 0 = male and 1 = female and  X2 and X3 are continuous variables.   I am not entirely sure on how to interpret the coefficients for the variables.  The coefficient for the dummy variable is 0,20. Does that mean, that changing from male to female (male is baseline) the Y will increase by an average of 20%. Is it directly translated into percentage?  And for the continuous variables, the coefficient for X2 is 0,1. Does that mean that increasing X2 with 1 unit increases Y with an average of 10%? Again, is it directly translated into percentage?


What is the difference between variable and random variable?

I know that "variable" means "values which vary." In a simple linear regression model :  $$Y=\beta_0+\beta_1X+\epsilon$$  $X$ is variable that is the values of $X$ vary. Why is $X$ not a random variable? What is the difference between a variable and a random variable?


rsync filtering for .R extension not working

Here's what I'm using: rsync -rav --include '*/' --exclude '*' --include '*.R' user@remote:/folder/. .  I'm trying to copy all .R files in the remote folder and all its subdirectories. The result is that all the directories are copied, but empty. Where am I going wrong here? Thanks in advance! Note: I'm referencing this post: .


Is there option to fit square to artboard size in Illustrator?

I constantly create square background which I should adjust to artboard size.   Almost every time I miss one or two pixels (Retina is good for that), so I looked for one-click feature "click object to artboard size" and didn't find it.  Probably there is a faster way instead of inserting exact parameters of the artboard to the square dimensions?  Illustrator CS6.   Thanks.


How to reset password Ubuntu from command prompt?

I want to update my system through this command:   sudo apt-get update [sudo] password for jsr:    But when I enter it, my system asks for password, but I don't remember it.  How can I reset it?


I'm looking for a sql query that will find all values in "PartNumber below" and concat. using a comma if the material is listed multiple times with different sales orgs.  I've been racking my brain trying to figure it out.  I'm running SQL 2008 R2  Assume the following SQL table  PartNumber      Org ABC             1 DEF             2 FGH             3 ABC             2 FGH             5   My expected output would be:  PartNumber     Org ABC            1,2 DEF            2 FGH            3,5


Find all the ring homomorphisms $f$ : $\mathbb{Z}_6\to\mathbb{Z}_3$.  definition of ring homomorphism:  The function f: R → S is a ring homomorphism if:  1) $f(1)$ = $1$  2) $f(a+b)$ = $f(a)$ + $f(b)$ for all a,b, in R  3) $f(ab)$ = $f(a)$ $f(b)$ for all a,b in R  Does it make sense to say that in this case   $f(6) = f(1) + f(1) + f(1) + f(1) +f(1) + f(1) = 1 + 1 + 1 + 1 + 1 + 1 = 0$ in $\mathbb{Z}_3$   Could you explain what do we do to find ring homomorphism in all cases. Not only $\mathbb{Z}_m \to\mathbb{Z}_n$, where $m<n$ .


Characterizations of the $p$-Prüfer group

I'm an undergrad student fairly keen on algebra. Over the different algebra courses I've taken, I've often encountered the so-called $p$-Prüfer group on exercises but somehow never got around to them. Now I'm trying to take care of that, but there are some statements I've seen about this group which I don't know how to prove (maybe because I lack some more background in group theory, especially in the study of infinite abelian groups?)     Definition A $p$-group is a $p$-Prüfer group if it is isomorphic to $$C_{p^\infty}=\{e^{\frac{2k\pi i}{p^n}}:k\in \mathbb{Z}, n\in\mathbb{Z}^+\} \subset (\mathbb{C}^\times, \cdot)$$   What I'm having trouble to prove is:     The following are $p$-Prüfer groups:      1) An infinite $p$-group whose subgroups are totally ordered by inclusion,      2) An infinite $p$-group such that every finite subset generates a cyclic group,      3) An infinite abelian $p$-group such that $G$ is isomorphic to every proper quotient,      4) An infinite abelian $p$-group such that every subgroup is finite   Just for the record, what I (think I) could prove was that the following are $p$-Prüfer groups:     5) An injective envelope of $C_{p^n}$, for any $n\geq 1$,      6) A Sylow $p$-subgroup of $\frac{\mathbb{Q}}{\mathbb{Z}}$,      7) The direct limit of $0\subset C_p \subset C_{p^2}\subset ...$   Here $C_{p^n}$ denotes a cyclic group of order $p^n$.  Any other characterizations of the $p$-Prüfer group are welcome.


Does $\int_0^\infty |\cos(x^2)| \mathrm dx$ converge?

I know this is a silly question, but I've tried to find an answer using my TI-89 calculator, Maple and wolframalpha but none of those could tell me whether  $$\int_0^\infty |\cos(x^2)| \mathrm dx$$   converges or diverges.  Thus, I'd be very happy if someone could help me out and tell me, whether the given integral converges or not (and why?). Thanks a lot.


Equivalent resistance and circuit reduction of an "8"-shaped circuit

I am having trouble reducing a specific "shape" of circuits resembling the figure 8 like this one:    I can't figure out what is in parallel and what is in series. I want to reduce the circuit and find an equivalent resistance. I just assigned arbitrary values to the resistors in MultiSim. I'm not looking for an answer to this specific problem, rather I'd love some help as to how I can reduce circuits that look like this one.


htaccess redirection on specific domain to specific path

i am going to redirect my domain to specific path.  thing that i want is   admin.example.com to admin.example.com/admin partner.example.com to partner.example.com/partner   I need this two function in one .htaccess file. Thanks.


if $f$ is continuous on $\mathbb{R}$ and $f(r)=0,r \in \mathbb{Q}$, then $f(x)=0,x \in \mathbb{R}$

Suppose that $f:\mathbb{R} \rightarrow \mathbb{R}$ is continuous on $\mathbb{R}$ and that $f(r)=0$ for all $r \in \mathbb{Q}$. Prove that $f(x)=0$ for all $x \in \mathbb{R}$.   My attempt: Define a sequence $(x_n)$ where $x_n \in \mathbb{Q}$ for all $n \in \mathbb{N}$ and assume that $(x_n) \rightarrow a \not\in \mathbb{Q}$. Since $f$ is continuous, we have $\lim_n{f(x_n)}=f(a)=0$. Since $a$ is arbitrary irrational number, we have $f(a)=0$ for all $a \not\in \mathbb{Q}$. Hence, we proved the statement.  Is my proof valid? or is there any flaw ?


Finding the number of analytic functions which vanish only on a given set.

Let $S = \{0\}\cup \{\frac{1}{4n+7} : n =1,2\ldots\}$. How to find the number of analytic functions which vanish only on $S$?  Options are   a: $\infty$  b: $0$  c: $1$  d: $2$


enum Color  {    GREY = 4294967294,    RED   }   RED is assigned the largest value a 4 byte unsigned int can hold. When I use sizeof to know the size of my enum Color (sizeof (Color)), it prints 4. If I assign -1 to RED, the sizeof prints 8. Does that mean an enum is by default unsigned?


Best practice location to deploy CSS/JS/image files

For SharePoint development, I am used to placing all the images/CSS/JS files into the mapped layouts folder (..\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS) using Visual Studio. Recently, I saw my colleague using the STYLES folder in the layouts to store the CSS files.  Are there any implications or differences in the way we are storing the files? Just curious on what could be the best practice to store these files.  In addition, the files are located under a folder that goes by the name of the Project (i.e. \Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS\Project1.Branding). What if I need to reuse certain images/CSS/JS files for a different project, what will be the proper way of reusing these?  Edit: I do not understand why people are marking this as duplicate with the question comparing Document library with layouts. My question relies on layouts alone, the Style (found under layouts) folder is also a mapped folder in visual studio. Please enlighten me with this.


Importance of series resistor at output of Rectifier

For conversion of AC into pulsating DC we used Rectifiers circuits. But I read somewhere (from a well-known site) that the circuit does not work in ideal condition if I used my first circuit. The second circuit is the correct circuit as per their view ideally in ideal condition.  As I used the first circuit many times but on breadboard only so it adds the resistance of wires so might be it works.But I do not understand the reason behind for that extra resistance actually.  Please share your knowledge regarding this. It will be a great help in clearing my concepts on this topic.


I didn't understand the rules of multiplying  permutations. I'll be glad if you can explain me...  For example: we have $f=(135)(27),g=(1254)(68)$. How do I calculate $f\cdot g$??  Thank you!


Convergence of the series $\sum_{n=1}^{\infty}\frac{e^n\,n!}{n^n}$

Is the following series convergent?  $$\sum_{n=1}^{\infty}\frac{e^n\,n!}{n^n}$$  I treid the Ratio and Root tests, but both of them failed.


I am trying to install a theme in Ubuntu 16.10 and I am getting error on sudo apt-get update it shows:  awahab@awahab:~$ sudo apt-get update [sudo] password for awahab:  E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable) E: Unable to lock directory /var/lib/apt/lists/ E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?


Is joint normality a necessary condition for the sum of normal random variables to be normal?

In comments following  to a related question, Users ssdecontrol and Glen_b asked whether joint normality of $X$ and $Y$ is necessary for asserting the normality of the sum $X+Y$? That joint normality is sufficient is, of course, well-known. This supplemental question was not addressed there, and is perhaps worth considering in its own right.  Since joint normality implies marginal normality, I ask     Do there exist normal random variables $X$ and $Y$ such that   $X+Y$ is a normal random variable, but $X$ and $Y$ are not   jointly normal random variables?   If $X$ and $Y$ are not required to have normal distributions, then it is easy to find such normal random variables. One example can be found in my previous answer (link is given above). I believe that the answer to the highlighted question above is Yes, and have posted (what I think is) an example as an answer to this question.


Print text to command prompt hangs on Windows until press return key

I have a Python script on Windows which prints text to the cmd prompt every 60 seconds, but sometimes it hangs and doesn't print the text until I press the Return key.   Brief overview:   for i in xrange(10):       print str(datetime.datetime.strftime(datetime.datetime.now(), '%Y-%m-%d %H:%M:%S')) + "A sentence which is output to the command prompt"       time.sleep(60)   Is this normal?  Edit:  I tried running Python with -u (unbuffered mode) and added sys.stdout.flush() after each print statement, some print statements cause the script to hang. I noticed this is happening on my Windows VMware & Virtualbox machines, but not a users ESXi Windows box. –


Group of Integers and group of rationals.

Are the additive groups $(\mathbb Z, +)$ and $(\mathbb Q, +)$ isomorphic?  I know the group of integers is cyclic because $1$ generates all elements in $\mathbb Z$ , so $\langle1\rangle = \mathbb Z$.  However, I am having a hard time understanding why $\mathbb Q$ is not cyclic. I know they are not isomorphic, but can anyone help me understand why $\mathbb Q$ is not cyclic. Thank you.


Is it possible to get notifications for specific email senders?

I just want push notifications when my boss sends me email.


Efficient merge of two list of lists in python

How to efficiently merge two lists efficiently? Following is the code which gives incorrect results. Not sure. Why?  a = [[]] * 5 b = [[1], [] , [], [2], []] for i in range(0, len(a)):     if b[i]:         a[i] += b[i]   Expected output:  [[1], [], [], [2], []]   Acutal output:  [[1, 2], [1, 2], [1, 2], [1, 2], [1, 2]]   Result can be corrected by rewriting a[i] += b[i] to a[i] = a[i] + b[i]. However, I believe it would highly inefficient as it will result in creating a whole new list. FYI, each list will traversed a large numbers to need to be cache friendly if possible.


explains how to use Terminal to enable a VPN connection previously configured via System Preferences. I want to go one step further and configure a VPN connection without using System Preferences. How can I do this from Terminal?


What is your favorite method to handle errors in Bash?  The best example of handling errors I have found on the web was written by William Shotts, Jr at .   He suggests using the following function for error handling in Bash:  #!/bin/bash  # A slicker error handling routine  # I put a variable in my scripts named PROGNAME which # holds the name of the program being run.  You can get this # value from the first item on the command line ($0).  # Reference: This was copied from <http://www.linuxcommand.org/wss0150.php>  PROGNAME=$(basename $0)  function error_exit {  #   ---------------------------------------------------------------- #   Function for exit due to fatal program error #       Accepts 1 argument: #           string containing descriptive error message #   ----------------------------------------------------------------       echo "${PROGNAME}: ${1:-"Unknown Error"}" 1>&2     exit 1 }  # Example call of the error_exit function.  Note the inclusion # of the LINENO environment variable.  It contains the current # line number.  echo "Example of error with line number and message" error_exit "$LINENO: An error has occurred."   Do you have a better error handling routine that you use in Bash scripts?


What is wrong with this code (I get an overfull \hbox warning in the line 5)?  \documentclass[final]{scrreprt} \usepackage{graphicx} \usepackage{blindtext} \begin{document} \begin{minipage}[t]{\textwidth}% \begin{minipage}[t]{0.48\linewidth}% \blindtext \end{minipage}% \hfill% \begin{minipage}[t]{0.48\linewidth}% \blindtext \end{minipage}% \end{minipage} \end{document}


How to make sudo not expire while script is running

I sometimes need to run a script for hours at a time, during which some commands need sudo. However, if I don't check and reenter the sudo password periodically, I get the sudo: timed out reading password error which sometimes breaks the whole thing. I don't want to use sudo myscript.sh since some of the commands should be run without sudo. I'd like the sudo cached password to persist for the script for the whole duration of the script without changing the rest of the system (sudo persistence only for this 1 script). Is there a way to make sudo last for the whole duration of the script and only for the 1 script?


Basic maths theories for good understanding of the standard model

I want to know what mathematical theories I should be aware of for a deep understanding of the standard particles model.


Let $Z$ be the center of a group $G$. Prove that if $G/Z$ is a cyclic   group, then $G$ is abelian.   This is from Michael Artin's algebra chapter 7 section 3. I'm quite unsure as to how I should start.   My first thought was to prove that $G/Z$ is isomorphic to some subgroup of $G$. Then we would have that $G \cong G/Z \times Z$, which is Abelian, assuming that $G/Z \cap Z = \{0\}$. However, I don't see a way to prove that such a subgroup of $G$ exists.   A second idea was to note that $G/Z = \{Z, xZ, (xZ)^2, \cdots, (xZ)^{n-1} \}$ for some $x\not \in Z$. Since $Z$ is the center, which is a normal group, we can say that $(xZ)^k = xZxZxZ\cdots xZ = x^kZ$ for all $k$. Sadly, this only guarantees an $x$ such that $x^n$ is in $Z$, rather than guaranteeing a subgroup, which would allow the first idea to follow.   Some help would be appreciated.


Can the number of connections on my 2ndary router slow down my internet access on my primary router?

I previously used a modem/router that Verizon mailed to us when we signed up as our sole internet hub, but I've been experiencing strange/intermittent/slow internet speeds (almost always around 1.0/0.35Mbps) whenever more than a couple of devices were connected. I'm paying for FiOS Quantum (50/35Mbps). Every device is connected wirelessly, except for one IP phone. It turns out that the household I'm in has a total of 23 wireless devices, of which around 10-14 of them are constantly on the network. It seems that one router could not practically handle all those connections  So I re-created my network to the following :  basically, I have 2 routers (primary:A , secondary:B). Router A is the original FiOS router, while B is just an old router I found laying around. Router B's DHCP is disabled, and both routers operate on different wireless settings.  My question is, with this setup, if I direct half of the devices to Router A, and the other half to Router B, and if the users on router B each start heavily streaming from YouTube/Netflix/etc., will that affect the speed of the users on Router A?      Edit: Sorry, what I meant in my question was, when I only had 1 router, I would experience issues if there were too many concurrent connections. What would happen now if there are too many users on Router B? Would connections on Router A still be okay?  Edit2: Thanks for the answers, but after hearing them, I've dug around and found  and , which my question may be a duplicate of. Feel free to close this question if needed.


Correlation between different types of variables( categorical/numerical) and a binary categorical one output

i am doing research and in my articles i found that Pearson correlation can be applied between numerical variables and an output label variable.   in my case i have 72 variables (20 are numerical (float) and the rest are categorical non ordinal and i codified them to (0,1,2,...n)).My target output is a 0/1 result which represents category.  My question here Pearson correlation is it a good way to calculate the correlation between variables???  or i need to split my data based on type and then apply the appropriate correlation measurement like Chi sqaure for categorical/ categorical variable, Pearson corraltion between the numerical/numerical and anova between categorical/numerical variable  Thanks for explanation


Explicit construction for unitary extensions of completely positive and trace preserving (CPTP) maps?

Given a completely positive and trace preserving map $\Phi : \textrm{L}(\mathcal{H})\to\textrm{L}(\mathcal{G})$, it is clear by the Kraus representation theorem that there exist $A_k \in \text{L}(\mathcal{H}, \mathcal{G})$ such that $\Phi(\rho) = \sum_k A_k \rho A_k^\dagger$ for all density operators $\rho$ on $\mathcal{H}$. (I'll consider the special case $\mathcal{H} = \mathcal{G}$ for simplicity.)  If we use then the system+environment model to express this action as $\Phi(\rho)=\text{Tr}_{\mathcal{H}_E} (Y\rho Y^\dagger)$ for an isometry $Y$ from $\mathcal{H}$ to $\mathcal{H}\otimes\mathcal{H}_E$, where $\mathcal{H}_E$ is an ancilla modelling the environment, what is an explicit construction for a unitary $U$ that has the same action on inputs of the form $\rho\otimes\left|0\right>\left<0\right|_E$? That is, how can I construct an explicit dilation of the map to a unitary acting on a larger space? I understand that this is possible by Steinspring's dilation theorem, but actually constructing an explicit form for the dialated unitary I have had much less success with.


One of the ways replacing a string with sed can be done as follows:  sed -i 's/old_str/new_str/' file.txt   However if replace.sh is   sed -i 's/$1/$2/' $3   the command ./replace.sh old_str new_str file.txt doesn't seem to work -- after making replace.sh executable of course. Why is that?    I am aware rpl does exactly the same as I intend to do with replace.sh, but I'd like to understand why is it not working.


Are free publishing services, such as Globe Edit, worthwhile?

A free book publisher, Globe Edit, contacted me.  They offered to consider creating a book from my MSc thesis. They said that I wouldn’t have to pay for anything. After reading their website, it appears that they are trying to contact many if not all thesis writers (and other writers, too).  They want me to transfer exclusive rights to publishing my thesis as a book.  Here is their website, if you want to read the details: .  Are free publishers like this usually worthwhile?  I don’t care about making money; I’m wondering whether this free publishing service is at all prestigious or just a waste of time (i.e., neutral or perhaps negative).


A non-trivial normal subgroup N of a finite group G or order $p^n$ is such that $N\cap Z(G)\neq \{ 1\}$

Let $N\neq 1$ be a normal subgroup of G, where G has order $p^n$, $p$ prime, $n\geq 1$.  I need to show that $Z(G)\cap N\neq \{1\}$.  I have tried to do it this way: Suppose $|N|=p^m$, $m<n$. Since $N\cap Z(G)$ is normal in $Z(G)$, in both cases ($N\cap Z(G)=\{1\}$ and $N\cap Z(G)\neq\{ 1\}$), I used the Second Group Isomorphisms Theorem to get:  $G/N\cong Z(G)/N\cap Z(G)$  so $|G/N| = |Z(G)/N\cap Z(G)|$  Since N is normal in G, $|G/N|=p^{n-m}$, with $n-m>0$. So $|Z(G)/N|\cap Z(G)|=p^{n-m}\Rightarrow [Z(G):N\cap Z(G) ]=p^{n-m}$  and this means that $N\cap Z(G)\neq \{1\}$.


How to distinguish gift from payment for the service?

If somebody gives me reasonable advise or share important to me information.   Being attentive I would like to make a little gift or give some little (<100$) amount of money (cash/wire/online) for that   How it would be classified by IRS?   Which obligations originate with this matter for me and my party?  How to do this in a most comfortable way to my party?


Roman numerals for section, but none for subsection

I'm using the following command to set my sections to use roman numerals, and I can set subsections to roman or arabic just fine, but I'd like to remove numerals from subsections altogether. I tried using {} but it leaves a . in front of the subsection.   \renewcommand\thesection{\Roman{section}} \renewcommand\thesubsection{}     It feels like I need something like this, but I can't find a reference as such.  \renewcommand\thesubsection{empty{subsection}}


The plane is half empty yet the ticket price has risen

Consider this as an example: The flight below which is two days from now is half empty. However, the price has risen considerably during last week. Why did this happen? If the plane is half empty why the price should rise?   Edit I should mention that in the example above the seat selection is included in the ticket price, that is, even if someone does not want to select a seat then they still pay for it.


Option for comments to die after being read by intended recipient

It would often be useful if a comment disappeared when the intended recipient read it. Two cases come to mind:    Notes of thanks, currently discouraged as polluting.  Suggesting edits for OP to assess.    An option to have deletion done automatically would keep the site tidier and make it just a little easier to use.


Don't say "Your question is ready to publish!" if "This post does not meet our quality standards".   Steps to reproduce this:  Go to  (note: the issue is not specific to this Stack Exchange website) Add "Is the expression “very worth” proper English, and if not, what are some alternatives?" in the title and body Add "gmail" as tag Click on "review your question" Click on "post your question"  To be clear, I'm not asking for specific feedback on the question above. It is just an example that I used to demonstrate the issue I'm concerned about, which is that the "Your question is ready to publish!" message is displaying for questions that don't meet the site's quality standards. Instead of that message, the user should be told that the question isn't ready to publish because it doesn't meet quality standards.


How do I stop an app crashing when only a decimal place is inserted

Beginner here, but for the life of me I couldn't find an answer to this question after searching and trying to figure it out for myself.  I have a very simple app calculating tips, and I'm trying to stop the app crashing when only a decimal place is put into the editText.  public void calculate() {         float result = 0.0f;         float totalBillResult;          if(!enteredAmount.getText().toString().equals("")) {             NumberFormat numberFormat = NumberFormat.getCurrencyInstance(Locale.getDefault());              if(!enteredAmount.getText().toString().equals(".")){                 Toast.makeText(MainActivity.this, "Please enter a bill amount", Toast.LENGTH_SHORT);             }              enteredBillFloat = Float.parseFloat(enteredAmount.getText().toString());             result = enteredBillFloat*seekBarPercent /100;             calculatedTip.setText("Your tip will be " + String.valueOf(numberFormat.format(result)));             totalBillResult = enteredBillFloat+result;             totalBill.setText("Total bill: " + String.valueOf(numberFormat.format(totalBillResult)));          }else {             Toast.makeText(MainActivity.this, "Please enter a bill amount", Toast.LENGTH_LONG).show();         }   I have tried putting another if statement within the above text to get another toast to show if only a decimal is inputted, and while it doesn't cause any errors it also doesn't do anything, and the app just shuts down when I click to calculate.    if(enteredAmount.getText().toString() == (".")) {             calculatedTip.setText("Please enter a number.");         }   I have also tried putting this in the main body of the code to no avail. The logcat is telling me its a NumberFormatException, but after reading this:  that was on another post I am none the wiser on how to fix this.  Any ideas would be appreciated, and I will edit to add more code if needed Thanks


Remove duplicates elements from ArrayList which compose of Collection

How I can remove duplicates of ArrayList?  If collection type is Car,  public class Car{  String Name; String Color; String Door; ... }   ArrayList carList = new ArrayList;  Remove duplicate of carList, but it removes if which elements same Name, Color, Door.  I want remove duplicate of arraylist by specific component. like Name.  If you know about this, Please help me.


\cref inside a heading breaks PDF bookmark

In the following MWE, the bookmark produced by hyperref is incorrect:  \documentclass{article}  \usepackage{hyperref} \usepackage[capitalize,nameinlink,noabbrev]{cleveref}  \hypersetup{%     bookmarksnumbered, bookmarksopen=true, bookmarksopenlevel=1,% }     \begin{document}  \section{\label{sec:foo}foo} \section{Code for \cref{sec:foo}} \end{document}   The heading of section 2 in the PDF is correct (Code for Section 1), but the bookmarks as shown in Acrobat read:  1 foo 2 Code for sec:foo   Edit: as Micha pointed out, the code also produces a warning:  Package hyperref Warning: Token not allowed in a PDF string (PDFDocEncoding): (hyperref) removing `\@ifnextchar' on input line 11.   Using the allmighty \protect before the \cref unfortunately did not change anything ;).


What are rubbery, conductive strips called on the sides of an LCD screen?

I found a component attached to a PCB inside one of my old $5 devices. There are pink, rubbery things attached to either side of the LCD that can bend and were firmly attached (glued?), and there are a lot of exposed conductive traces where the pink things were attached on the PCB.  I would like to know what these pink things are. Pictures are shown below.    The front side of the LCD ^    The back side of the LCD ^    The front side of the PCB. This is where the LCD is connected to. ^    The back side of the PCB ^  Again, I would like to know what the pink things are.


"Skyscrapers are of various shapes" vs. "skyscrapers are various shapes": Preposition Deletion

Skyscrapers are of various shapes.   Skyscrapers are various shapes.      Why do we use of in the sentence above?  Is there any difference in meaning between the two sentences?


Why can `root` run any command as any user without providing password?

My /etc/sudoershas content:  Defaults        env_reset Defaults        mail_badpass Defaults        secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin"  # Host alias specification  # User alias specification  # Cmnd alias specification  # User privilege specification root    ALL=(ALL:ALL) ALL  # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL  # Allow members of group sudo to execute any command %sudo   ALL=(ALL:ALL) ALL  # See sudoers(5) for more information on "#include" directives:  #includedir /etc/sudoers.d   There is no rule above specifying NOPASSWD. I was wondering  why user root seem to be able to execute any command as any user without providing password?  Thanks.


Could the cookie banner please be made less intrusive?

I frequently visit Stack Overflow and other Stack Exchange sites from private browser windows, which means I get the cookie banner over and over. Does it really have to cover the most useful part of the viewport?  (Not a private window; this one is because I use NoScript when I am logged in.) I understand that for legal (but still annoying) reasons, this probably needs to be in a place where it is hard to miss when you have something more important than cookies on your mind; but could it be made even a tiny bit less intrusive? Removing the cookie outline image (I only realize now after trying to figure out a way to describe it that that's what it is supposed to be) or moving it to be next to the buttons rather than on top would already alleviate the usability problem significantly.


Skip macro if it is not present in Excel using VB script

I am running the macros using VB scripts from Excel file using below code Set xl = CreateObject("Excel.Application") 'Set xl.Visible = False   'Set xl.DisplayAlerts = False   Set wb = xl.Workbooks.Open("E:\Excel\TempDir\NewFile1.xls",,TRUE)  xl.Application.   xl.Application.Run "'E:\Excel\TempDir\NewFile1.xls'!GetId"  xl.Application.Run "'E:\Excel\TempDir\NewFile.xls'!GetType"  xl.Application.Run "'E:\Excel\TempDir\NewFile.xls'!GetArea"  xl.Application.Run "'E:\Excel\TempDir\NewFile.xls'!GetInt"  xl.Application.Run "'E:\Excel\TempDir\NewFile.xls'!GetSubArea"  xl.Application.Run "'E:\Excel\TempDir\NewFile.xls'!PickParent"  xl.Application.Run "'E:\Excel\TempDir\NewFile.xls'!GenerateIds"  xl.Application.Run "'E:\Excel\TempDir\NewFile.xls'!Load"  xl.Application.Run "'E:\Excel\TempDir\NewFile.xls'!RefToLibrary"   xl.DisplayAlerts = False   xl.Application.Quit   Set xl=Nothing  Using vb script I am able to run multiple macros, but how to skip particular macro if it is not present in Excel file dynamically. Thank You in advance.


QGIS split vector layer gives me GPKG files but I need shp files

QGIS 3.6.0  I am new to QGIS software and not very technical on its deep workings. I am trying to split a .shp file using split vector layer. I need .shp file outputs but it auto creates .gpkg files.  I cant seem to find any settings that will change the default from .gpkg to .shp


How to display numbers in the math mode in the same font as in the text?

I have set my default font family for the text as sans serif with \renewcommand*{\familydefault}{\sfdefault}  and now I want for the math mode to display the numbers in the same way as they appear outside of it.  I have tried a couple of solutions such as using \DeclareMathVersion declaration followed by \SetSymbolFont and \SetMathAlphabet  as well as \textrm  command from amsmatch package but the font still turns out different from when just writing out numerical characters outside the math mode.


I landed in lava in Minecraft: pocket edition and died. I keep respawning in that lava. What do I do?


I watch a lot of movie's on my computer which is connected to my TV. Problem is i built the pc to be a gaming computer and it has the power supply to match (1200w).  Is there a way to set it into a "Low power mode" whilst i am playing a movie to use as little power as possible.  I am running -  Windows 7 Ultimate 64bit VLC for playing movies Connect to my TV via a standard HDMI cable


Human vs. alien to avoid extinction by omnipotent being

I read a science fiction short story where a human being and an alien battle it out among themselves in an area equally disadvantageous to both of them where they have been placed by member of a third race - an omnipotent being to the other two. This being conveyed that whoever wins shall win the galaxy as the omnipotent being would destroy the other race. The human being wins and the battle is also won. The fiction was probably written before fifties or latest sixties. Any idea about the name of the story?


I have created a set with night sky, stars and moons, clouds, etc.. Stars are basically particle system used inside a big sphere (which is my night sky basically) and moon, clouds are all separate objects. I use a moving camera inside the scene for my animation. I was wondering if there is a way for me to render my full night sky with moon and clouds and use it as a image material for the sphere instead of rendering each frame which takes forever?


How do I disable Bonjour visibility after Yosemite install?

Since upgrading to Yosemite (from Mavericks) my MacBook Pro (Retina mid-2014) advertises itself on Bonjour (with "whats-my-name"). It was not visible in this way prior to Yosemite, and I have no sharing features enabled on my Mac.  How do I hide it again or turn off the "whats-my-name" service?


Why is same image exposed at 100 ISO noisier than 3200 ISO?

I used to believe that ISO adds noise as a drawback to increasing exposure, but after researching the topic I arrived at the conclusion that it is a misconception. By amplifying the existing signal from the electron well (please correct my terminology if it's wrong), any noise that might be apparent in the final photo will exist there no matter what ISO setting might be chosen. The reason the noise is apparent at high ISOs, is that underexposed areas, which have a lower signal-to-noise ratio, get amplified. Whether this effect is achieved through ISO or through post-processing software should be irrelevant, and the end result should be the same. Meanwhile, the benefit of raising the ISO in this situation should be the greater variance in half-tones.  So I did some tests, and invariably there is actually more noise in same photos taken at 100 ISO and given +5 EV in post, vs same photo taken at 3200 ISO. Here is an example:   According to my understanding, the noise levels should be virtually the same. What is causing noise at 100 ISO? My only guesses are:   Higher read noise at lower brightness Something to do with logarithmic exposure and the way the image is stored The camera actually captures more photons when the ISO is amplified   Any ideas? Thank you very much.


I have the following equation $$f(a)=\text{argmin}_{t\in\mathbb{R}} \sum_{i=1}^n\frac{1}{2}(1-a)(b_i-t)^2+a| b_i-t |, a\in[0,1]$$  How does one prove that the function is monotone in a?


Can one introduce magnetic monopoles without Dirac strings?

To introduce magnetic monopoles in Maxwell equations, Dirac uses special strings, that are singularities in space, allowing potentials to be gauge potentials. A consequence of this is the quantization of charge.  Okay, it looks great. But is this the only way to introduce magnetic monopoles?


I'm new to Ubuntu. Afaik shotwell is the best option to view photos in recursive/multiple folders. I want to see them even if they are duplicated, but I don't know how to disable the duplicate detection feature in shotwell.   and  are similar but they don't have a proper answer and they are both outdated.  Second question: is there any software that can list all images in given folders other than shotwell?


he said he had not received it vs he said he did not receive it

He said he had not received it vs he said he did not receive it . Does the second sentence means that the saying and the non receiving happened quite at the same time whereas "had not received" stated that the non receiving happened before the saying . Is it the only difference ? Would you use the second one because as it is reported speech past simple could be understood as the original statement was in present (but received is rarely used in present)


What happens to the electric field lines when an electron and positron collide?

A month back I began my course in classical electrodynamics. I know about the field lines of moving charges. But I have this question that if an electron and a positron are situated some distance apart and assuming that the electric force is 'somehow' great enough to accelerate them towards each other, then what happens to the electric field lines after the 2 have collided? The net charge becomes 0 and taking into the fact that photons are released, my question is what happens to the electric field?   Edit - So is it that the Electric Field exists outside the radius ct and is zero within the circle of radius ct which increases in diameter with time and spreads in space ?


The future of the orbit of a point is a closed set

$X$ is a metric space and $f: X  \rightarrow X$ is a dynamical system.  Prove: $w(x_{0})$ is closed.  Here the set $w(x_{0})$ is the future of the orbit of $x_0$, defined as $$\omega(x_0) = \{y \mid \exists (n_k)\, n_k \to \infty, f^{n_k}(x_0) \to y\}$$


I'm having an issue where these white and black lines are showing up along the edges of tris in my sculpt. Does anyone know how to fix this?


In addition to the .tex and .dvi or .pdf files, TeX/LaTeX/ConTeXt produces and uses lots of other files. What do they do? Which ones are used to create the document and which ones are automatically created by the compiler. What files can I safely delete?


Being the first person answering to a question

Stackoverflow seems to have roughly 30 new questions per 5 minues. But when I pick one of these questions to answer it, it takes some time to write a good answer, sometimes 10 or 20 minutes, and when I submit, it often happens that there is already an answer, maybe not as extensive as mine but with the same satement.  I don't want to write faster answers with less quality, but once I want to be the first answering to a question :-)  Do other people also have this 'problem' and how do you deal with that?


I am looking to upgrade from Ubuntu 12.04 to a newer supported version.  I have an old PC that I dusted off and would like to start playing again with Ubuntu again. I loaded the latest Ubuntu 20 ISO on a DVD and PC boots from disk and I can install the version but it only provides choices for an install that would wipe my data. There is no choice to upgrade. I was wondering if there is prefered method I can use to upgrade and retain my photos, files and programs that I have installed. Any advice would help. I think the current kernel of 12.04 is probably so old that the install process is not allowing the new version to upgrade and to only install.


I Know it is near duplicate. But I am looking for a little more solid answers.  I wondered always, is there any way to retain the order in LINQ To Objects. While searching for the solution, fortunately I found,  . I have gone through it.  Also, I searched on MSDN sites, but there is no such remarks/words which confirms the word "Order Preservation".  My question is, however they will also loop through each and every element to process it. Sequential traversal will not be a overhead when compared to accessing the elements randomly.    If not, Whether they have applied any sort of random algorithm to access the elements? Since, no word is specified about order in MSDN, which means, in future they can change implementation, so I should not ever trust LINQ methods regarding the order.   Is there any way to confirm the order of the retrieval.  Thanks.


Unable to install handbrake on ubuntu server

I am trying to install handbrake on my ubuntu server but it gives error not found even if i have added apt repository source following:   root@localhost:~# apt-get install handbrake-gtk Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package handbrake-gtk root@localhost:~# apt-get install handbrake-cli Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package handbrake-cli   And on a different host i get this error :  $ sudo add-apt-repository ppa:stebbins/handbrake-releases [sudo] password for rock64:  Cannot add PPA: 'ppa:~stebbins/ubuntu/handbrake-releases'. ERROR: '~stebbins' user or team does not exist.   How should i install handbrake ?


Installing garamondx on MiKTeX following README page gives error on `initexmf.exe --edit-config-file updmap`

I've been trying to install garamondx on MiKTeX (on a Windows 10 machine) after it was marked as obsolete and removed in a recent MiKTeX update.  Following the instructions on the , I downloaded garamondx.tds from CTAN, unzipped it, and run the two following instructions (after cding into the unzipped folder):  initexmf --update-fndb initexmf --edit-config-file updmap   While the first one completes without warnings, the second one fails with the following message:  C:\Users\yourname\Downloads\garamondx.tds> initexmf.exe --edit-config-file updmap Sorry, but "MiKTeX Configuration Utility" did not succeed.  The log file hopefully contains the information to get MiKTeX going again:    C:/Users/yourname/AppData/Local/MiKTeX/2.9/miktex/log/initexmf.log  You may want to visit the MiKTeX project page, if you need help.   The relevant lines on the mentioned .log file are  2017-05-22 11:19:33,907+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.6234 (MiKTeX 2.9.6210 64-bit) 2017-05-22 11:19:33,940+0100 FATAL initexmf - Windows API error 2: The system cannot find the file specified.  2017-05-22 11:19:33,940+0100 FATAL initexmf - Info: fileName="GitPad" 2017-05-22 11:19:33,940+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\Process\win\winProcess.cpp 2017-05-22 11:19:33,940+0100 FATAL initexmf - Line: 68   What am I doing wrong? Is this even supposed to work on Windows?    Given that from the log it emerges that miktex is trying to use GitPad, I checked and realized (after suggestion in the comments) that the system variable EDITOR was set to GitPad for me (for reasons unknown to me). Changing the value of this variable with $env:EDITOR = Notepad on powershell, I tried running the command again. It still fails with the same error, but now the log registers an error at a different line:  2017-05-22 15:33:01,899+0100 INFO  initexmf - starting: MiKTeX Configuration Utility 2.9.6234 (MiKTeX 2.9.6210 64-bit) 2017-05-22 15:33:01,954+0100 FATAL initexmf - Windows API error 193. 2017-05-22 15:33:01,954+0100 FATAL initexmf - Info: fileName="Notepad", commandLine="Notepad C:\Users\lk\AppData\Roaming\MiKTeX\2.9\miktex/config\updmap.cfg" 2017-05-22 15:33:01,954+0100 FATAL initexmf - Source: Libraries\MiKTeX\Core\Process\win\winProcess.cpp 2017-05-22 15:33:01,954+0100 FATAL initexmf - Line: 270   What is the expected value of the EDITOR variable?


VS Code Deployment not showing detailed error

I'm using visual studio code to develop an aura component. Usually when i deploy a source to my org the error i was receiving was the same i can find in the "Deployment Status" Section on salesforce, but since yesterday the only error i'm getting is the following:    While the real error is the following:  I have already tried to uninstall and reinstall the extension but it still showing the same error.  I've also tried to run force:source:deploy with the Terminal in VSCODE with loglevel: trace and it's sill not showing anything detailed.   Does anyone know how to help? Thank you.


What would be a memory conscious alternative to a sparse Java 2D Array?

In Java, a large 2D array with sparse contents is rather memory inefficient, as it takes up a contiguous chunk of memory regardless of what data is actually stored in it.  I am looking for an alternative data structure that can hold elements in a positional, grid-like, way. I would preferably like the memory efficiency to be O(n) where n is the number of data elements actually in the structure.  Cheers!


How do you split source code in C into separate files?

I'm trying to read other peoples code but most code is broken up into separate files.  I haven't learned how to do that yet.  How do you split up code into separate files?  And how do you find the right source code file for a function?


Is it still possible to install Ubuntu to an external harddrive with UEFI?

It looks like  isn't possible with UEFI, where as with MBR there wasn't a big difference between external and internal. Is that true or is it still possible?  Is it even possible to combine both boot methods?


How to block the package mathptm locally?

I declare the package mathptmx in the preamble, but I want to use \mathcal for the letter I without mathptm:  The symbol omega is prettier with mathptm but \mathcal{I} is not.   \documentclass[12pt]{article} \usepackage{amssymb,amsmath} \usepackage{mathptm} \begin{document} $$\mathcal{\omega}$$ $$\mathcal{I}$$ \end{document}


I believe everything is an object in Python but I saw weird behaviour.  Here is a snippet from Python 3.6.5   a = 300 b = 300 a is b   Out[4]: False  a = 200 b = 200 a is b   Out[7]: True  Can someone please explain this?


Does Ubuntu 16.04 automatically switch between gpus?

Does Ubuntu 16.04 know how to automatically switch between gpus (if present) with the default open source drivers?  For example running a game on the dedicated card but only using the integrated one for processes that don't require much graphics power.


I need some help with a proof:  Let $gcd(k,n)=1, w_n = e^{2*\pi*i/n}$ and $w_n^k = e^{2*\pi*i*k/n}$. Show that the equation $ <w_n> = <w_n^k>$ holds, where $<x>$ = {$x^n|n \in N_0 $}   Is it necessary to show, that $w_n^k$ is primitive, if $gcd(k,n)=1$ holds?


why cannot I see Library folder under my home directory in Finder?

I could see ~/Library through Unix command in Mac, yet I cannot see it in a Finder window. I need to go as Finder -> Go to folder -> ~/Library, then I can find it. Does anyone know why is it like that? Thanks! It's macOS Big Sur.


Best ways of centralising a div inside another div

I'm just curious as to what the best way is of aligning a div centrally (vertically and horizontally) inside another div. This example features a red div which I want to vertically & horizontally centre inside the div with the background picture.  What is the best way of doing this so it automatically adapts when resizing the browser window & displaying on mobiles?  The following methods fail:   position:relative; & top: 50%; - only the very top of the div is centralised but not the rest. Adding a negative margin-top fails because it applies it to the parent element margin: 25% auto; vertical-align: middle; justify-content: center; - presumably only applies to flexboxes   Here is the code:    body{     background: yellow;     margin: 0 auto; }  #first{     width:100%;     height:550px;     background: url('https://static.pexels.com/photos/30627/pexels-photo-30627.jpg');     background-size: cover; }  #central{     width:200px;     height:100px;     background: red;     margin: 0 auto;          /*          Why DO THESE FAIL:          position:relative; & top: 50%;          margin: 25% auto;          vertical-align: middle;          justify-content: center; - presumably only applies to flexboxes          */ } <!DOCTYPE html>         <meta charset="UTF-8">     <link rel="stylesheet" type="text/css" href="css.css">     <title>title</title>

            Thanks for any help.


This short story is one that I may have encountered in the 90s editions of "Asimov's" magazine. Unfortunately, I am vague about the exact details.    A soldier returns to his own time from a horrendous battle in the distant future (he was on the winning side). He has been altered so that he is able to perceive across multiple dimensions/time lines. He enters a bar/tavern/eatery and witnesses another "veteran" (or being) abusing/threatening a woman he cares (cared) about. He is forced to kill this abuser across every dimension/time line he exists in, to protect this woman. In doing so, he must return to the future and fight in the war all over again.


Is there any winning strategy? 2015 and Game with marbles!!!

Two players, Alex and Brad, take turns removing marbles from a jar which initially contains $2015$ marbles. Assume that on each turn the number of marbles withdrawn is a power of two.  If Alex has the first turn and the player who takes the last marble wins, is there a winning strategy for either of the players?    I try to solve it like the follow:  First) I assume that both player know the amount of marbles they took each other  Second) The problem say they pick power of 2 then the possible picks are $[1 , 2 , 4, 8, 16 ,32,64 128 , 256 , 512 , 1024]$ there are only $2015$ marbles.  Third) the game has 2 players.  Continue:  a)  The only odd pick is $1$ due to $2^0$ is $1$. The rest are odds  If player A pick odd (1) B must pick an even number and A continue pick even and also B until complete the $2015$.  And  If player A pick even (2, 4, etc) B must pick an odd (1) number and A continue pick even and also B until complete the $2015$.  I cannot see how can I use 2015 to set a winning rule, I also try use binary but I couldn’t do any advance.  Please, let me know what I am doing wrong and how I can continue. Thanks, Greg Martin and Shailesh for your help.  Note: I try to use brute fore (excel ;-) ) but I see that multiple of 3 are the wining but I can’t not put my assumption in words with the $2015$ number.  Thanks again.


Why is the gravitational potential energy defined as negative?

It is said that since work is done by the gravitational potential itself , so at a finite distance the gravitational potential energy of the body is negative. Could someone explain why?


Where does $\in$ come from and where is it defined?

Kind of a weird question but where does the $\in$ symbol come from exactly and where do we imbue this symbol with any kind of meaning?  As far as I can tell it isn't a symbol that is part of the alphabet when it comes to propositional logic or first order logic. It just sort of pops out of nowhere when you get to something like the axioms of ZFC or set theory where we start saying things like $a \in S$ without really discussing what this symbol means or how you use it appropriately.   We all know it means "element of" but is there a more formal basis for its definition? Is there some kind of rule or axiom that shows how this syntax is meant to be used somewhere? I am coming at this from the perspective of syntax and semantics if that helps. Please note I am not asking about the history of the symbol $\in$.  For example let's say I start throwing around $a★b$ or $a★S$ in my syntax, you'd go, whoa, wait a second, I don't know what that symbol means or what we're allowed to do with it or how we're supposed to use it. Where would I "point you" to show these things?


Proof that a linear transformation is diagonalizable

Prove that for $T:V \rightarrow V$ such that $T=T^2$, $T$ is diagonalizable.   My Work -  Let $A_n$ represent the representative matrix of $T$, therefore -   $ \forall \,v\in V$ we can say that $Av = A^2v \iff A^2v-Av = 0 \iff A(Av-Iv)=0$  So either our Matrix A is the zero matrix with is diagonal, or $\forall v\in V$ we can say that $Av - Iv = 0 \iff Av = Iv$.  Now, what we can conclude (?) is that $1$ is an eigenvalue of $T$ for every $v\in V$, so can i say that the geometric and algebraic multiplicity of $1$ is  $n$ ?


I have a Raspberry Pi overwriting an image on a webserver (not on RPI) using FTP every 1 minute. The problem is that my Refresh button on the webpage don't work as the image is cached. I just see the old image again when my button make the webpage load.  Hitting CRTL+F5 shows the new image but since I want to use this webpage on a smartphone I need a better solution.  I don't want automatic reload page every xx seconds, I want a button that does that manually. But how?  My webpage:
         Click to refresh the page


$|AxA|$ is a constant implies normal subgroup

I have an algebra problem:  Let $G$ be a finite group, and $A \le G$. Show that if $|AxA|$ is a constant for all $x \in G$, then $A$ is a normal subgroup of $G$.  My first question is about the meaning of the notation $AxA$. Is this:  $$ \{a_1xa_2 | a_1, a_2 \in A\}?$$  Then what would the proof strategy be?


Did I just 'autoremove' half my computer?

I am trying to get Django/Python to run on my computer, but it's confusing that python runs Python v2 while there is also a Python v3 installed which needs to be run as python3 (both come preinstalled?!) and either way, the Django installer complains.   Anyway, I was trying to remove Django and the Python PIP installation utility, so I ran the command: sudo apt-get autoremove python-pip* and the terminal output frankly scares me:   It looks like it removed all kinds of things I didn't expect, including obviously vital and non-Python things like ubuntu-desktop and unity8-common and even software-center!   I'm afraid that if I log out of my session or reboot, then I'll never get this computer started again.   What damage did I just do, and how can I recover? Why where all of these removed in the first place? How did "autoremove" trigger these to be included? (Luckily, my actual data is safely backed up.)  Update 1: The answer linked in the comment below looks relevant but not complete.  Following the linked answer, my system did reinstall many packages as expected -- but others were not, so they are still missing from my system. Still worried whether my machine is broken. Among the removed-and-not-reinstalled packages are:   account-plugin-tools accountsservice-ubuntu-schemas address-book-service dbus-property-service dcraw exiftran ffmpegthumbnailer libhardware2 libhybris libmedia1 libmirplatform6 libmirserver30 libpay2 system-image-common system-image-dbus unity-plugin-scopes unity-scope-scopes unity8-common urfkill xcftools ... and many others   Can I just reinstall these with apt-get as well?   Update 2: As suggested in comments, I will now do sudo apt-get install --install-suggests {my list of removed packages}. Curiously, even core things like software-center were removed and are not even suggested. So I must include those explicitly in my command.  And I'm still afraid to reboot my computer. I hate it when I make nasty mistakes like this one, because I'm not guru enough to feel safe that I reliably fixed it again.


Android app crashes when mod tries to delete comment of non-member user

If a moderator tries to delete a comment of a user that is not a member on the site (because the question was migrated) then the Android app crashes (app version 1.0.77).  The bug can be reproduced consistently.  Update January 14, 2020: I'm now using Android app version 1.0.95 and noticed this bug still/again is present. The app crashes every time I try to delete a comment written by people that are not a member on the site (migrated question). I tried it with 3 different users, all non-members at the time of writing, and get the same behavior every time.


How to prove $\gcd(a^2,b^2) = (\gcd(a,b))^2$?

How to prove $\gcd(a^2, b^2) = (\gcd(a, b))^2$?  My attempt:  Let $\gcd(a, b) = d$.  Then $d|a$ and $d|b$ then $d^2|a^2$ and $d^2|b^2$. i.e $d^2$ divides $a^2 ~~\&~~ b^2$.


What is the 'conhost.exe' process that shows up in Task Manager?

The process conhost.exe started showing up on Windows 7, and searching Google doesn't reveal an explanation of what this process is and why it shows up.  What is the conhost.exe process?


Getting a Schengen visa as an unregistered freelancer from India

I am travelling to Hungary for an all expenses paid coding competition I have been invited to by a very well known company. I need to apply for a tourist visa.  I am currently residing in India and quit my job a few months back. I am freelancing now and have a decent income. Unfortunately I haven't registered myself as a business yet. Is this going to be a problem?  I have the following documents:    Return flight tickets Accommodation confirmation Invitation letter from the company stating the purpose and sponsorship on their letterhead 6 months bank statements showing income and consistent savings Travel insurance covering 50k USD 3 years of Tax Returns   Is there any risk of my visa getting rejected?


Let $(G,*)$ be group and $H_{1}, H_{2}$ subgroups of $G$. If $H_{3}$ is subgroup of $G$ that satisfies   $H_3 \subseteq H_1 \cup H_2$ and $H_3 \not\subset H_2$, then $H_3 \subseteq H_1$. Prove or give counterexample.   I really don't know how to solve this ,any help would be appreciated.


If mass and matter cannot be created nor destroyed, then how does Mystique get taller or shorter, for example when she      imitates Trask in X-Men: Days of Future Past   Do her atoms and organs simply rearrange themselves? Does she become more dense?


Oracle 11 rman db restore file corruption

First to mention that I came to the need of asking help after furious research I reattempts for about 3 weeks. I checked previous threads in Oracle community but nothing works for me. I am trying to restore Oracle 11.1.0.7. multi HDD cluster production on single hdd locally on amazon ec2.  Restore is done from full back-up copy I downloaded from ftp location (I have no access to production,export and etc.) just have access to the files, i.e. I am not able to change anyhow export procedure.  So here are my steps in brief (I guess that problem might be in some of them):  rman target / set DBID ... startup nomount RESTORE CONTROLFILE FROM 'file destination' shutdown; startup mount;   Catalog the backup files to rman, for all AL and BK files:   catalog backuppiece 'C:/BKUP/AL_2851492942_20151016_893271615_PGQJSFHV_1_1';   Rename all redo files to match my local directory structure  rman:crosscheck backup; Run{ SET UNTIL SEQUENCE 50511;       RESTORE DATABASE; SWITCH DATAFILE ALL; RECOVER DATABASE;  }   sqlplus sys/sys as sysdba  shutdown immediate; startup mount; alter database noarchivelog;   Drop the no longer used log files. Drop these in state UNUSED left Active and Inactive. Drop all temp files(they point to other drive letter):  ALTER DATABASE OPEN; ALTER TABLESPACE mytempspace  ADD TEMPFILE 'c:\oracle............dbf' SIZE 1G REUSE AUTOEXTEND ON MAXSIZE UNLIMITED;   My problem is that on my second query (get) to db through my app I receive:  ORA-01578: ORACLE data block corrupted (file # 64, block # 2559928) ORA-01110: data file 64: 'C:\ORACLE\ORADATA\mydb\mydbLOBDATA2_1.DBF' ORA-26040: Data block was loaded using the NOLOGGING option ORA-06512: at "mydbUSER.POBJECTSTATE", line 78 ORA-06512: at line 1   What I was able to find with validation and it is LOBSEGMENT - Lob_ObjectState and it logically corrupted.  I tried DBMS_REPAIR and with rman advise failure (which suggest to restore my copy from backup - nothing useful).  Since backup are refreshed every week I try with new ones from the next week, again the same problem.  Is there a possibility that the problem starts from export (how can I check this - I do not have access but i may ask db admin to check anything)?


How do we know there are dimensions above the third?

Excluding the interpretation of time being the forth dimension, what mathematical evidence is there that suggests it exists?  When talking about string theory they say how there is 12 dimensions and I am assuming they didn't pull that figure out of no where.


I work in a library and I need to set a time limit for the user, like 20 minutes, and when the time is over the user is forced to logout.  Is possible to do that?


How can I prove that an irrational number can be raised to another one and the result is rational?

I don't know how to do this I'm just curious how can I.


Why was '.' chosen to represent the current directory and '..' for parent directory?

After reading this question , next obvious question on my mind was why '.' and '..' was used to represent current directory and parent directory.  It seems so intuitive now, but any particular reason?


Change the text size and type in a page header especially if the text is long

I am writing a master thesis using the Book class, sometimes the name of the chapter is too long so that the section name and chapter name overlaps in the page header. How can I change the text size and the type in the page header?  Are there any solutions rather than changing the text size?  MWE:  \documentclass[a4paper,french,11pt,oneside]{book} \usepackage[left=25mm,right=25mm]{geometry} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{fancyhdr} \usepackage{lipsum}   \renewcommand{\headrulewidth}{0.3mm}  \pagestyle{fancy}    \begin{document}  \chapter*{Introduction générale}  \lipsum[2-4]  \part{Cerveau et modélisation de l’activité neuronale} \chapter{Modalités d'exploration de l'activité neuronale} \section{Introduction}  \lipsum[2-10]  \end{document}


Setting an Environment Value in a FOR Loop

I wrote this code:  set list1=This,Is,A,List set list2=  FOR %%c IN (%list1%) DO set list2=%list2%-%%c   I expected list2 to equal -This-Is-A-List, instead it equals -List. I have verified that it is not "remembering" the value from the last iteration of the loop. I also tried this code:  setx list1 This,Is,A,List setx list2 ""  FOR %%c IN (%list1%) DO setx list2 %list2%-%%c   And got much the same result. Is there a way to set an environment variable in a command FOR such that it will accumulate while the FOR is iterating?


There are two "off" in the below sentence, are they both adverb? does "off+of" mean "from"? I am trying to find its meaning in , but failed, which explanation can the word "OFF" match?   This is all plastic picked up off of beaches, every single bit of it," said Pozzi, "So we have processed about 18 tons of garbage off of a small area of beach in the last six years. And it could be anywhere in the world. This is a worldwide problem, the plastic pollution issue.  Remark:  This sentence comes from ：


A sequence of non-negative integers is called graphic if there exist  a graph whose degree sequence is precisely that sequence.  For example, $(1, 1, 1, 1, 1, 1)$ is a graphic since it's the degree sequence of graph    and $(3, 1, 0, 0, 0)$ is not a graphic since there is no graph with one vertex of degree 3, one vertex of degree 1, and three vertices of degree 0.  Now, the question is prove that  $$(n, n, n-1, n-1, \ldots, 4, 4, 3, 3, 2, 2, 1, 1)$$  is always a graphic.  My attempt is by construct the simple graph and find some pattern for building a larger one. Starting with $n=1$, then I try to construct $n=2$. Now, based on the result $n=2$, then again I construct for $n=3$, and so on.  But, after doing that process, I don't get at all the pattern for building such larger graph from previous graph. Everything seems randomly yet beautifully constructed. Here is my drawing process:    Please help me to prove this. Thanks before.


How do I install Skype on Ubuntu 13.04? - solution found?

I am getting the following error message from the Ubuntu software centre when trying to install Skype for Linux on my Ubuntu 13.04 64 but system:  Requires installation of untrusted package : gcc-4.7-base:i386 libavahi-client3:i386 libavahi-common-data:i386 libavahi-common3:i386 libcomerr2:i386 libcups2:i386 libexpat1:i386 libffi6:i386 libfontconfig1:i386 libfreetype6:i386 libgcc1:i386 libglib2.0-0:i386 libgpg-error0:i386 libgssapi-krb5-2:i386 libgstreamer-plugins-base0.10-0:i386 libgstreamer0.10-0:i386 libice6:i386 libjbig0:i386 libjpeg8:i386 libk5crypto3:i386 libkeyutils1:i386 libkrb5-3:i386 libkrb5support0:i386 liblcms1:i386 libllvm3.2:i386 liblzma5:i386 libmng1:i386 liborc-0.4-0:i386 libp11-kit0:i386 libpciaccess0:i386 libpcre3:i386 libpng12-0:i386 libqtwebkit4:i386 libselinux1:i386 libsm6:i386 libsqlite3-0:i386 libstdc++6:i386 libtasn1-3:i386 libtxc-dxtn-s2tc0:i386 libuuid1:i386 libxau6:i386 libxdamage1:i386 libxdmcp6:i386 libxslt1.1:i386 libxss1:i386 zlib1g:i386  can anybody help?  Dear all - many thanks for your rapid responses. The answer provided by Qasim did the trick. Probably the other solutions were good too, but I may not have pressed the right buttons when trying them; Copy-pasting Qasim's commands into the terminal worked like a miracle - I had stuff scrolling down the screen for about 5 minutes but then Skype installed and I have already had my first conversation. Long live the AskUbuntu community. Cheers


This evening, I accidentally typed in  .. blah   at the bash command line (Fedora 27, bash 4.4.12). To my surprise, it did (apparently) nothing, but gave no error. How come?  I get the same effect with .. on its own, with no argument.  I wondered whether it could have been treated as . ., i.e. source the current directory, but when I try that, it gives an error to say that . is a directory.  If I try three dots, it suggests trying two:  [james@melissa ~] $ ... bash: ...: command not found... Similar command is: '..' [james@melissa ~] $    so it certainly on some level thinks that the command exists. There's no man page for it, though, and .. --help doesn't give any output.  But perhaps most weirdly of all, it seems that if I execute .., with or without an argument, then I get an exit code of 127, which is the exit code for trying to run a non-existent command. So on some level it also thinks the command doesn't exist.  It doesn't appear to be related to the existence of a directory called ..; or, at least, I do get an error if I type the name of any other directory on its own, and .. doesn't throw an error even if I'm in the root directory, where there's no such directory as ..  All I can guess is that it's not really a command, but that the error message is being suppressed for some reason.  Any other ideas?  EDIT: this turns out to be the same underlying problem as in , although with different symptoms: there, any command starting with a . silently fails. That is not the case here, where only .. has this effect. It seems that the bug has been partly fixed, but not completely.


Broadcom brcm80211 installation from source

Hello need help to get my wifi chipset working.I have brcmsmac driver and i would like to have brcm80211 chipset up and running. I have tried everything but nothing helped?    git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git Copy brcm/bcm43xx-0.fw and brcm/bcm43xx_hdr-0.fw to /lib/firmware/brcm (or wherever firmware is normally installed on your system).  still got brcmsmac ??   then i tryed    git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git clone git://git.kernel.org/pub/scm/linux/kernel/git/dwmw2/linux-firmware.git cd ~/linux-next/drivers/staging/brcm80211 nano Makefile   the problem is that there is no brcm82011 folder?? do i follow cd ~/linux-next-a694cb1 like the link sad? i have Broadcom Corporation BCM4313 [14e4:4727]


How can I fix "Dirty Cow" bug on my Ubuntu 1604?

I've just read somewhere about "Dirty Cow" bug, and I'm a new user of Ubuntu 1604.    How can I know my kernel version? How to fix this bug? Am I in danger of hacking?   Thanks you all for your helps.


I am struggling with the last part, writing proper RewriteRule (maybe I also need RewriteCond?).  I have this mapping.txt:  apple 30/products/apple.png xerox 38/products/xerox-300.png dell 3021/products/dell_img.png ...   with it I want to do URL redirects as following:  https://www.domain-a.com/product_img/apple -> https://www.domain-b.com/img/30/products/apple.png https://www.domain-a.com/product_img/xerox -> https://www.domain-b.com/img/38/products/xerox-300.png ...   in my .htaccess I have:  <IfModule mod_rewrite.c> RewriteEngine On  RewriteMap redirect_map txt:/home/username/domains/domain-a/public_html/product_img/mapping.txt RewriteRule * ${redirect_map:$1} // <--- struggling with this line </IfModule>   How do I write proper RewriteRule for my case? I've tried many options without any luck yet. Secondly, should I have these rules in /public_html/.htaccess or create a new one in /public_html/product_img/.htaccess?


How do i have a div backround have a rounded corner?

How do i have this code have rounded corners? Is that possible? Also will only the first <div> be this color or will it be all <div> codes?  div {     background-color:#b0c4de; }


So I have a table where I just can't get multirow to work and i don't know what I am doing wrong. It's a pretty long table so bear with me.   \begin{table}[H] \caption{Utflöden} \label{Utflöde} \begin{center} \begin{tabular}{|c|c|c|c|} \hline     \rowcolor{white} Ström & Ämne & Storlek $[kg/h]$ & Viktade värde \\\hline     \multirow{9}{0.1\linewidth}{12} & Vatten &6089,12 &5841,87 \\\cline{2-4}     & Syrgas  & 0,09 & 0,086 \\\cline{2-4}     & Eten & 0,0048 & 0,0046 \\\cline{2-4}     & HCl & 425,34 & 408,07 \\\cline{2-4}     & EDC (Prod.) & 118,7 & 113,88\\\cline{2-4}     & Kloretan & 121,31 &116,38 \\\cline{2-4}     & $CO_2$ & 2,4 & 2,30 \\\cline{2-4}     & Trikloretan & 18,22 & 17,48 \\\cline{2-4}     & NaCl & 255,71 & 245,33 \\\hline     \multirow{7}{0.1\linewidth}{16} & Syrgas & 1,17 & 1,12 \\\cline{2-4}     & Eten & 3,21 & 3,08 \\\cline{2-4}     & HCl & 3,47 & 3,33 \\\cline{2-4}     & EDC (Prod.) & 10423,23 & 10000 \\\cline{2-4}     & Kloretan & 112,19 & 107,63 \\\cline{2-4}     & $CO_2$ & 52,17 & 50,05 \\\cline{2-4}     & Trikloretan & 485,2 & 565,50 \\\hline     \multirow{8}{0.1\linewidth}{17} & Vatten & 1,91 & 1,83 \\\cline{2-4}     & Syrgas & 371,17 & 356,10 \\\cline{2-4}     & Eten & 51,32 & 49,24 \\\cline{2-4}     & HCl & 20,53 & 19,70 \\\cline{2-4}     & EDC (Prod.) & 43,61 & 41,84 \\\cline{2-4}     & Kloretan & 20,29 & 19,47 \\\cline{2-4}     & $CO_2$ & 610,02 & 585,25 \\\cline{2-4}     & Trikloretan & 0,2 & 0,19 \\\cline{2-4} \end{tabular} \end{center} \end{table}   I have \usepackage{multirow} and also \rowcolors{2}{color1}{color2} if that makes any difference where color1 and color2 are just some grey colors. I get the outcome looking like this with no hint of \multirow working at all.


Configure udev to change permissions on USB HID device?

I have a USB scale, a USB HID.  Currently, when it is plugged in, the permissions only allow the superuser to access it.  How can I configure udev to let anybody access this device?  I have the vendor and product IDs, but I would like to match it based on the HID type instead.  Right now, I'm having trouble finding any existing rule that applies to this (I grepped for "hidraw" in /lib/udev/rules.d and /etc/udev/rules.d, among other things).


Plasma notification stopped working after upgrading to 20.04

Notification settings   I can't seem to enable Plasma notifications. I never explicitly installed 'knopwob dunst' but after upgrading it somehow became the default. How can I get Plasma notifications working again?


"To ..., to ..., and to ..." multiple to-infinitives

Usually, I just use one "to", in sentences like "To address this problem and share our ideas with others, we would like to ...". But I also see people use multiple "to"s, like "To address this problem and to share our ideas with others, we would like to ..." Are they both correct?


Is there any simple way to prove |Q| = |N0|

How can I prove |Q| = |N0|  where Q is the set of positive rational numbers and N0 is the set of positive natural numbers with zero


Why does hall of fame data corrupted by Missingno not return to normal when loading an old save file?

In Pokémon Red and Blue, MissingNo. is a well-documented phenomenon. As stated in the question , one of the areas MissingNo can corrupt is the hall of fame records.    The accepted answer confirms that     No, it just messes with your save files, permanently messing them up, but not actually deleting them.   and includes the recommendation that      [to fix the problems] try releasing the MissingNo Pokémon. If the problem persists, the only solution is to re-start your game. This means erasing your current game and starting a brand new one.   This suggests that the act of saving after catching MissingNo is in part responsible for the corruption. To clarify, I saved the game before encountering MissingNo, performed the MissingNo glitch, and reloaded my old save. I confirmed that the hall of fame data was initially uncorrupted, and that catching MissingNo has corrupted it. However, not having saved my game post-MissingNo, I reloaded my old save to find that my hall of fame data was still corrupted.    What I am wanting to know is why MissingNo corrupts the hall of fame data, or more specifically,  Why does the MissingNo glitch permanently corrupt the hall of fame data.


How do websites block selecting text and how do I unblock that?

There's a website () that somehow blocks selecting text. Also it blocks Ctrl+A to select everything, there is also no “Copy” in the popup menu.  What I have tried:  Some sites use JavaScript to block selection. So I disabled all JavaScript sources in no-script addon in Firefox. I tried the same site in Google Chrome with the Script Safe addon. Made sure that everything is blocked, still can’t select text. Mousepointer remains an arrow and not a text cursor also on the whole site.  Used about:config to disable JavaScript completely in Firefox. Still no effect.  I read that some sites use DIVs with the style display:block so I used Inspect to examine the styles of the site. There is not one mention of "block" on the whole website, not in embedded CSS nor in object style=-attributes.  The text is not an image or flash or some HTML5 canvas ect. Everything is within DIV and P tags but no style was found that might block the text selection.  How can the website still block any selection of text? Not to mention why browsers support such behaviours at all. I just want to use a selected word or sentence and want to search google for it using right mouse click. It’s pretty annoying when a website does such things and forces me to type technical terms and names into google by hand. It disturbs my workflow.


Update my Ubuntu version from Ubuntu 13.04 to Ubuntu 17.04

I do not know how to update my Ubuntu version from 13.04 to 17.04 I tried using software center but I could not do it.


User Account Control keeps turning on by itself after I turn it off. How do I stop this? I don't have the Pro edition of windows so I don't have group policy editor. My windows user is an administrator, and it's not part of a network so my user settings are not controlled by a network administrator.


How do you handle multiple submit buttons in ASP.NET MVC Framework?

Is there some easy way to handle multiple submit buttons from the same form? For example:  <% Html.BeginForm("MyAction", "MyController", FormMethod.Post); %> <input type="submit" value="Send" /> <input type="submit" value="Cancel" /> <% Html.EndForm(); %>   Any idea how to do this in ASP.NET Framework Beta? All examples I've googled for have single buttons in them.


badges from sister sites rendered with badge graphic from currently visited site

So, I was on Sci-Fi.se and noticed I got a badge from MV.SE, but for some hilarious reason, it rendered as the logo for the rebel alliance. I checked other sites, and sure enough badges in your history render the badge image for whichever site they are on. I'm not sure if this could be considered a bug, but I'll raise it anyway so it's documented.


How to install specific version of sfdx plugin?

If I'm currently on salesforcedx 47.15.0 as shown from sfdx plugins --core, is there a way to install/update the salesforcedx plugin to version 47.09.0?  I originally installed the sfdx-cli from the .pkg file from the .  Would it be possible via npm?  Thanks in advance!


Find $\int \frac{x^3}{x^2-1} \:\mathrm{d}x$

Find $\displaystyle \int \dfrac{x^3}{x^2-1} \:\mathrm{d}x$.   I think there are a few ways to do this. We could just break this up using long division or break it up into partial fractions then use long division. My homework says to break this up into its roots so that's why I brought up partial fractions. Is that the best way to do it here?


Is it possible to bake bread, make pizza etc on cast iron pot on induction stove instead of oven?

I don't have access to an oven but I do have access to a cast iron pot and an induction stove. Is it possible to bake bread and make pizza etc with this setup with a little experimentation?


Let $X$ and $Y$ be countable sets. Then $X\cup Y$ is countable

Since $X$ and $Y$ are countable, we have two bijections:   (1) $f: \mathbb{N} \rightarrow X$ ;   (2) $g: \mathbb{N} \rightarrow Y$.   So to prove that $X\cup Y$ is countable, I figure I need to define some function,   h: $\mathbb{N} \rightarrow X\cup Y$  Thus, I was wondering if I could claim something similar to the following:   since we have (1) & (2) it follows that we also have the bijections   $\alpha : \{n\in \mathbb{N} : n = 2k + 1, k\in \mathbb{N}\} \rightarrow X$;   $\beta : \{n\in \mathbb{N} : n = 2k, k\in \mathbb{N}\} \rightarrow Y$;    because we have bijections from $\mathbb{N}$ to the evens and odds respectively.   Then define $h := \alpha$ for odd $n$, $h := \beta$ for even $n$.   Thus, since $\forall n\in \mathbb{N}$(either $n$ is even or $n$ is odd but not both) $h$ is a bijection from $\mathbb{N}$ to $X\cup Y$.   Thanks for reading, and for answering if you answer. I'm just really unsure if my logic holds here, or if I'm even approaching this right because I've been stuck on this problem for a little while today.   p.s sorry for asking so many questions recently, I'm trying to study on my own and apparently I get confused and stuck more easily than I thought I would without a teacher.  EDIT: (1) fixed the even and odd.  (2) I do mean countably infinite. My bad, going through some notes I found online they were using the notation of "countable" for what you call "countably infinite", and "at most countable" for what you called "countable" (3) Thanks for the good answers, I do see now that this makes breaks down when they are not disjoint, but at least I'm not too far off.


Problem on Elliptic Curve Point Doubling

Given an elliptical curve e.g. from “Understanding Cryptography” by Parr & Pelzl §9.2 Example 9.5:  $y^2 = x^3 + 2x + 2~~~~ mod~17$   And given a primitive $P = (5, 1)$, the book indicates:     We compute now all the "powers" of P.   They then provide a table:  $2P = (5, 1) + (5, 1) = (6, 3)$  $3P = 2P + P = (10, 6)$  $...$  $18P = (5, 16)$  Unfortunately it is not apparent to me what action they are performing with the addition ($+$), or what they mean by "powers".  What operation is being performed to go from $(5, 1) + (5, 1)$ to $(6, 3)$, and so on?  The obvious operation (i.e. what Wolfram alpha does) of $(5, 1) + (5, 1) = (5 + 5, 1 + 1)$ yields $(10, 2)$.  There are a plethora of other possible combinations of operations that one could try, but I'd just be guessing.  Generally, given the secret, ordinarily labeled $d$, how ought one calculate $dP = P + P~ +~ ... ~+~ P$?  (This presumably computes the public key $X$ & $Y$ points, from $d$ and the $Gx$ and $Gy$ parameters)  While it is a rather core operation, and likely quite basic, I have found no illustrative examples and at-best convoluted implementations.  I'll keep looking, but I thought that a good answer might be a useful for the next person searching.  Edit  This exact example also appears and is discussed at:


Logarithm proof problem: $a^{\log_b c} = c^{\log_b a}$

I have been hit with a homework problem that I just have no idea how to approach. Any help from you all is very much appreciated. Here is the problem  Prove the equation: $a^{\log_b c} = c^{\log_b a}$  Any ideas?


Launch nautilus in location navigated to in Terminal

I find it rather hard to travel through my system using nautilus and much prefer using the cd etc commands in Terminal to get around my system, but I find that sometimes I do need to look at a list of files and folders in nautilus as ls just isn't doing it for me and maybe there is such a large number of files that it would be much simpler if I could just have them all listed in a GUI instead of having to get ls to redirect the output into a file that I would then have to read.  But then what I find is that I have very quickly found the location of the directory which contains the files I want, in Terminal, and then I have to go back into nautilus and slowly move to that location through the GUI, so I am wondering if there is any way in Terminal, once you have used cd to get to your target directory, to launch nautilus and have it auto-navigate to that location (so that it opens the directory you have used cd to get to in nautilus)?    OS Information:  Description:    Ubuntu 14.10 Release:    14.10   Package Information:  nautilus:   Installed: 1:3.10.1-0ubuntu15.1   Candidate: 1:3.10.1-0ubuntu15.1   Version table:  *** 1:3.10.1-0ubuntu15.1 0         500 http://gb.archive.ubuntu.com/ubuntu/ utopic-updates/main amd64 Packages         100 /var/lib/dpkg/status      1:3.10.1-0ubuntu15 0         500 http://gb.archive.ubuntu.com/ubuntu/ utopic/main amd64 Packages


What's the link (or lack thereof) between 'Moving Average' and 'Moving Average Model'?

... as described by these two wikipedia pages:     In the former, the predicted value for the variable of interest is given by (in the simplest case) the mean of a few lagged values.  In the latter, the predicted value is given by some weighted 'error' terms. Is that error supposed to be the model's prediction subtracted from the actual value that obtained?  Are they similar things or totally different?


Remove config when uninstalling custom module

I have made a custom module with a config/install folder containing many yml files from a drush configuration export. When activating the module , it does install the configuration. How can i delete all this config when i uninstall the module ?


The exercise is: Prove that $-(-v)=v$ for every $v \in V$  Proof Suppose  $v \in V$ and $V$ is a vector space. Then $-(-v) \in V$ as result of the scalar multiplication property and $-(-v)=-(-1\cdot v)=-1 \cdot(-1\cdot v) =(-1 \cdot-1)\cdot v = 1 \cdot v = v $ The desired result $-(-v)=v$ holds.  The solution manual gives the proof:  Proof   I just wanted to make sure that the way I did the proof isn't missing anything?Thanks


Question  How can I perform a post-hoc test after a Poisson regression to know which group differ from which other group?    Dummy Data  Here are some dummy data (coded in R)  set.seed(9) y = c(rpois(100,6),rpois(50,8)) x = rep(LETTERS[1:3],each=50) d=data.frame(x=x,y=y)   and here is a Poisson regression showing a highly significant effect of x on y.  m = glm(d$y~d$x, family=poisson(link = "log")) anova(m, test="Chisq")   My thoughts  The only thing I could think of is to perform a series of Poisson regression on subsetted data and then chose some method to correct for multiple testing. Does it seem like a valid solution to you?  dAB = d[d$x!="C",]     m = glm(dAB$y~dAB$x, family=poisson(link = "log")) anova(m, test="Chisq")   dBC = d[d$x!="A",]     m = glm(dBC$y~dBC$x, family=poisson(link = "log")) anova(m, test="Chisq")  dAC = d[d$x!="B",]     m = glm(dBC$y~dBC$x, family=poisson(link = "log")) anova(m, test="Chisq")  pvalues = c(9.504e-5,0.6552,9.504e-5) p.adjust(pvalues, method="holm") [1] 0.00028512 0.65520000 0.00028512   As expected the only two groups in x that do not significantly differ are group A and group B.


Does anyone know any way that I can refresh a webpage every N minutes?  I am running Kiosk browser with fullscreen, I need to have something that can refresh the page every N minutes. The Kiosk browser I am using has no such function built in.  Does anyone know how I can achieve this?


How to transfer inheritance money from India to USA

I'm a US citizen. My father, who was a citizen of India, died last year. My father had CD in Banks and a property in India. The property was legally sold and all taxes in India paid. We are 4 sisters, so after dividing the total pool of inheritance money, there is a share of inheritance money that is now in my Bank account in India. This is an 'Ordinary' bank account and not a NRO or NRI account, as I have a PAN card, Aadhar card etc and use an Indian address. My elder sister has my POA and operates this bank account. I trust my sister completely. Inheritance money is less than $75,000  I would like to transfer this inheritance money from India to USA in dollars. I am aware of the procedure of filing forms 15CB, 15CA, A2 and then using NRO account to transfer the funds. However I guess this will require me to open a NRO account in India as the first step.  Question: Will it be better and easier for my sister to transfer this inheritance money from my 'ordinary' bank account into her bank account and then have my sister 'Gift' me the money under LRS OR is it advisable to go through the lengthy procedure of opening NRO account, then filling in 15CB, 15CA, getting RBI permission and using form A2 to transfer the funds. If my sister transfers the money into her bank account, will this be considered as income for her and will she need to pay taxes on it (even though the money in my account is from inheritance).   Thanks for your answers RRA


how to create and send the request/response body for the post method in test class

static testMethod void testPost(){      RestRequest req = new RestRequest();      RestResponse res = new RestResponse();     Profile testEditorProfile = [Select id from Profile where Name= :System.Label.Profile_Editor];      req.requestURI = System.URL.getSalesforceBaseUrl()+'...XYZ...';       req.httpMethod = 'PUT';      TService.PostResponseWrapper postResponseInstance=TService.doPost();      system.debug('***Response***'+postResponseInstance); }   Note:The post  method is defined in the service class and  does not have any       arguments


Buying xBox / PS3 from US and using it in non-US region?

I know people have asked this  but that was like 3 years ago. So my question was if I buy a xBox / PS3 in US then:  1) Will I be able to download games here in India? 2) Will I be able to buy games(cd /DVD) and install and play it? 3) I have a , So my choice was to go for xBox 360. Will this controller work fine with the xBox? 4) Also which console is better for multi-player non-online games. So I can play it with my brother.  Thanks in advance guys!


Basic calculus question with continuous function

This is actually not my question, it was asked yesterday by user176744 in this link    and I feel as if it didn't get enough attention. I am also interested in a solution to this problem. As shown in the link I did manage to prove it, but only after assuming many things which were not stated in the question.  Can anyone think of a proof without extra assumptions or a counter example that will disprove the statement?  the question:  Let $n \in \mathbb N$ and  $f: [0,n] \to \mathbb R$ such that $f$ is continuous on $[0,n]$ and $f(0)=f(n)$.  Prove that there are $x_1,x_2 \in [0,n]$ such that $x_1-x_2=1$ and $f(x_1)=f(x_2)$  You can see my solution in the link, but as said, too many assumptions. I am looking for a better solution or a counter example.


Relation between Range Space and Null Space

There is a problem in the book Linear Algebra by 'Hoffman Kunze':  Let $V$ be a vector space over the field $F$ and $T$ a linear operator on $V$. If ${T}^2$ = $0$, what can you say about the relation of the range of $T$ to the null space of $T$?   I was trying with $R(T^2)\subset R(T)$ and $N(T)\subset N(T^2)$ but couldn't get the answer....  any hint would be appreciated.....


Drawing the right coordinates in my grid in QGIS

I'm trying to put the numbers of system of coordinate in my map using WGS84/18S. All my shapes are in that projection and I'm using units of the map around 1500 point in "x" and "y" but, I think those aren't the right coordinates. When I use just WGS 84, the numbers are correct. Maybe with general projection it works, but with a specific one it doesn't work, I don't know.


FillBetween library sometimes works and sometimes does not

I have the following MWE using the relatively new fillbetween library from pgfplots.  \documentclass{article} \usepackage{pgfplots} \usepgfplotslibrary{fillbetween, decorations.softclip} \pgfplotsset{compat = newest}  \begin{document}  \begin{tikzpicture}[font=\normalsize]         \begin{axis}[             axis lines*=left,              xlabel={x}, ylabel = {y},             xmin=2,             xmax=12,             ymin=-10000,             ymax = 30000         ]         \addplot+[color=green, mark=none, name path=B]  table {dummy.data};         \path[name path=D] (axis cs:4,0) -- (axis cs:9,0);         \draw (axis cs:4,0) -- (axis cs:9,0);         \addplot[color=blue!10] fill between[of=D and B, soft clip={(axis cs:5,-1000) rectangle (axis cs:6,30000)}]; %, soft clip={domain=4.3:9.5}];     \end{axis} \end{tikzpicture} \end{document}   which yields    Now, I want the plot to actually go from xmin=2 to xmax=14 or 15. If I change that in the axis options, the plot magically ends up like this...  changed axis code  \begin{axis}[     axis lines*=left,      xlabel={x}, ylabel = {y},     xmin=2,     xmax=12.5,     ymin=-10000,     ymax = 30000 ]     The data can be found here:   So, what's going on here? :)


I wonder why round(1.499999999999999) 1  and round(1.4999999999999999) 2  And if I want to print it in python console, 1.499999999999999 printed as 1.499999999999999 and 1.4999999999999999 as 1.5 Also for example 1 / 3 is printed as 0.3333333333333333 (with 16 digits after decimal point), is 16 digits after decimal point is maximum amount of digits or it's different how it's stored and how it's printed in python?


Can an electron which is a bound in an atom absorb more than one photon at the same time?

Can an electron which is a bound in an atom absorb more than one photon at the same time ? In specific during photo-electric emission can an electron take in more than one photon if one photon doesn't give it the energy required to drift away from the atom


Bash tail -f with while-read and pipe hangs

In Bash, piping tail -f to a read loop blocks indefinitely.   while read LINE0  do      echo "${LINE0}";  done < <( tail -n 3 -f /tmp/file0.txt | grep '.*' )  # hangs   Remove the -f or | grep '.*', then the loop will iterate.   The following does not hang.  tail -n 3 -f /tmp/file0.txt | grep '.*'    What causes this behavior?    Is there anyway in Bash to follow a file and read in a pipe expression?


Push binary contents of file to std::string for use with Google's Snappy

I'm trying to learn Google's c++ compression library Snappy. It requires that data be loaded into an std::string to compress or decompress it. How can I go about opening a file and loading the data into an std::string. Thanks.


How to add a buffer in QGIS that updates itself

I wish to add a buffer into project that will update the buffer fields when new points/ polygons are added into the project


How do I remove my ignored tags questions from my Stack Overflow homepage?

Hi guys,  I know this is not good to do it, but I need to focus on minimum tags in this website  as a start , and I can add any tags later on, so my question is:  how can I remove ignored tags questions from my stackoverflow homepage questions?  thanks


AND gate made out of transistors letting current pass despite only one input high

I recently built a gate with transistors, however my meter reads 1.6 volts when only input B is high, and 2.3 while both are high. How can I fix this? (I used 3 volts instead of 6 and 2k instead of 10k)


Calculate: $ \lim_{x \to 0 } = x \cdot \sin(\frac{1}{x}) $

Evaluate the limit: $$ \lim_{x \to 0 } = x \cdot \sin\left(\frac{1}{x}\right) $$  So far I did:   $$ \lim_{x \to 0 } = x\frac{\sin\left(\frac{1}{x}\right)}{\frac{1}{x}\cdot x} $$  $$ \lim_{x \to 0 } = 1 \cdot \frac{x}{x} $$  $$ \lim_{x \to 0 } = 1 $$  Now of course I've looked around and I know I'm wrong, but I couldn't understand why. Can someone please show me how to evaluate this limit correctly? And tell me what I was doing was wrong.


Gear icon in reputation block of the profile is broken