How Do You Forward Network Traffic From WiFi to Ethernet?

I have two computers: Computer 1 (Ubuntu Desktop) has a WiFi connection and an Ethernet port, and Computer 2 (Ubuntu Server) only has an Ethernet port. I would like to have Computer 1 share its internet connection with Computer 2 over an Ethernet connection between the two computers. What I have done so far:  I have connected the two computers together using an Ethernet cable. I have created LAN for the two computers  Each computer has a static IP (configured in /etc/netplan/*): Computer 1 is configured as 192.168.2.1/24, and Computer 2 is configured as 192.168.2.140/24 with its default gateway 192.168.2.1. Both computers are able to ping eachother.   I have tried to set up iptable forwarding on Computer 1 between the WiFi, and Ethernet interfaces, wlp5s0, and enp4s0 respectively (found from the output of ifconfig), but I haven't had any luck. My knowledge falls short with configuring iptables, so every guide I have found has, more or less, been a shot in the dark. IP forwarding has been enabled with sudo echo 1 > /proc/sys/net/ipv4/ip_forward  I have heard of "network bridging", but I am unsure if this is something that can be used in this scenario.  ASIDE: I know about using the "shared to other computers" option in the network manager. I have used it, and it works successfully. What I don't like about it is that I don't have the ability to set a static IP address. Plus I would like to know how to do all this from the command line anyways.


How do I get access to apport crash logs?

I develop a program that is available from the official Ubuntu repositories. Is it possible for me to get access to the automatic crash reports, generated with apport, and do I need do implement something in order to collect crash statistics from users?  If it is impossible to get access to Ubuntus own crash logs, I am allowed to collect my own user crash logs?  What is best practice when obtaining crash logs from Ubuntu users?


Why is  the Breusch-Pagan test significant on simulated data designed not to be heteroscedastic?

I'm testing the residuals of a linear regression using Breusch-Pagan Test to detect Heteroscedasticity.  This is the plot of the residuals:   and this is the R code:  > library(lmtest) >  > mod <- lm(rnorm(1000)~1) >  > bptest(mod)      studentized Breusch-Pagan test  data:  mod  BP = 0, df = 0, p-value < 2.2e-16   Could someone tell me why it rejects the null hypothesis of homoscedastic errors?  The plot doesn't look heteroscedastic.  EDIT:  However the plot is an example, I have two list of prices (priceA and priceB), I need to check if the residuals generated by a linear regression of these two list: lm(priceA ~ priceB + 0) I need zero intercept are homescedastic or not. Could someone give me a small example? The length of each price list is 750.  EDIT:  I also get:   BP = 67.4362, df = 1, p-value < 2.2e-16  with this chart   Does it be homoscedastic? I have plotted the residuals.  @Wolfgang, I get this result following the example you posted.  > summary(mod)$r.squared * 750 [1] 681.0114


I am trying to add -ve to double  List<double> values={12.34,-12} double value =0.00; for(double b: values) {  value += b; }   I am expecting value of b =0.34 but it returning me 0.399999999985  any idea why it is returning me the wrong value.


Help me to write code of below picture in latex

I am facing problem to write the code of this below picture in my Latex document. kindly guide me about this.


How do I close another process to release file locks?

I have created a button. In the event handler for the button I want to delete all the files in the folder (abc).   Here is the code for this:      private void button1_Click_1(object sender, EventArgs e)     {         MessageBox.Show("Are you sure!!!! The files in the folder will be deleted permanently");         this.Close();         string[] filePaths = Directory.GetFiles(@"C:\abc\");         foreach (string filePath in filePaths)             File.Delete(filePath);     }   For example, there is a Word file in the folder and if it is opened I get a error message:     The process cannot access the file 'C:\abc\New Microsoft Word   Document.docx' because it is being used by another process.


Evaluating $\int \tan^{1/3}(\theta) d \theta$

I know $\int \tan^{1/3}\theta  d \theta$ is a non integrable but wolfram alpha does it easily. And can anyone explain how a fuction is non integrable? My argument is that there has to be a function which represents the area under a graph. It's just that we do not know it. Please shed a bit light on it. Also, how can we solve $\int \tan^{1/3}\theta  d \theta$?


Bash Custom Log Files with Multiple Lines

I have this simple bash script that looks like this:  #!/bin/sh TIMESTAMP=`date "+%Y-%m-%d %H:%M:%S"` echo "$TIMESTAMP restart" /etc/init.d/nginx restart > /usr/local/nginx/logs/restart.log 2>&1   It produces the output in my restart.log like this:  2020-04-17 18:22:30 Restarting nginx (via systemctl): nginx.service.    but the next time the script is run the output line is erased and there is just one line of the last restart instead of it. There is only one line all the time. It looks like it's just "one liner" script, not multiple lines.  Now the question is how do I make it keep all the previous entries like this:  2020-04-17 18:22:30 Restarting nginx (via systemctl): nginx.service. 2020-04-18 19:12:30 Restarting nginx (via systemctl): nginx.service. 2020-04-19 20:02:30 Restarting nginx (via systemctl): nginx.service.   I know it's supposed to be quite simple but I cannot figure it out. Would appreciate any comments / advices / suggestions. Many thanks in advance!


Fixing shadows in cycles without increasing subdivision

I'm creating a dune model in blender with cycles and the shadows are kind of messed up. the model is only created from a subdivided plane and then using noise textures. it already has 1.7 million vertices so i don't want to increase the subdivision modifier any more. Do you have any ideas how to make the shadows "softer" without increasing subdivision? Thanks in advance!


The other part of my Mac hard disk is full?

On my MacBook, I only have 250GB and out of this 250GB my MacBook is taking up 129GB in the other section. I looked everywhere to the best of my knowledge. Please note my home directories is only 45GB. Can you here somehow please help me?  This question  does not answer my question.


Some time ago I was working in a pet project for a type of database engine. And I thought about securing the data in disk with encryption.. and since the main code was already developed.. I had a few requirements..   a simple stream class that I could hook instead of my file stream had to support random access (both read/write at random positions) be able to work at any byte position (since the data might not be aligned) encrypt/decrypt only the requested data, not the all file,(because the file maybe several MB) fast encryption/decryption, since this was for a database system   nowhere on the web I found information about this, or implementation of such code. Normal stream ciphers don't support random access/lookup, and block ciphers require the data to be aligned and in fixed blocks..  So I thought about developing my own. I do know that developing your own encryption is always a bad choice.. but this was kind of theoretical exercise..  So I would like to present you the code.. just to see how far of I am from a security point of view  First the stream is initialized with a password.. but that password is not used for the encryption itself.. it is used as a seed to scramble an array of 256 values in hope of of increasing the key space  public CipherStream(String sKey,Stream oStream)  {     _oStream = oStream;     //initialize key space     _oVector = new byte[256];     for(int i = 0; i <= 255; i++)     _oVector[i] = (byte)i;     //shuffle the keyspace     for (int i = 0; i <= 255; i++)//shuffle the box     {         //shuffle this item with other         //other is chosen by char(i) of password         //and the currently shuffling vector(I)         // this means that even repeating passwords 'aaaaaa' will produce random results         int j = ((sKey[i % sKey.Length]) + _oVector[i]) % 256;         byte cTemp = _oVector[i];         _oVector[i] = _oVector[j];         _oVector[j] = cTemp;     } }   after this all we have to do is choose the cipher byte for the position we are trying to read/write from.. in my implementation I used xor, witch I know is not the most safe.. but that is can be changed and is not the core of the algorithm..  public override void Write(byte[] buffer, int offset, int count) {     long nPosition = this.Position;     for (int i = offset; i < count; i++)     {         byte oPlain = buffer[i];         byte nKey = GetKey(nPosition);         byte oCypher = (byte)(oPlain ^ nKey);          buffer[i] = oCypher;          nPosition++;     }     _oStream.Write(buffer, offset, count); }   the 'key' to the byte is chosen from the key vector dependently from the position we are trying to access.. calculations are done so that there are no repetitions and the chosen value is as random as possible  private byte GetKey(long nPosition)  {     byte nOffset = _oVector[nPosition % _oVector.Length];     byte nOffset2 = _oVector[(nPosition / (nOffset + 1)) % _oVector.Length];      int nDif = nOffset - nOffset2;     if (nDif < 0)         nDif += 255;     byte nKey = (Byte)(nDif % 256);      return nKey; }   I did try to render the stream as a bitmap.. just so make sure no patterns where obvious.. and did some fine tunning there.. and it seemed ok..  the best I can describe this algorithm is a 'deterministic predictable pseudo-random generator' where I can just ask 'give me the nth random number', and the seed is a 2048 bit vector that is initialized randomly with a password..  how far am I from a solution? Is this completely insecure? or there is not even point of trying because there is no solution for this 'random access stream'  problem?


Discrete subgroup of hyperbolic isometries acts properly discontinuously on the hyperbolic space

It is well known that a subgroup of $PSL(2,\mathbb{R})$ is discrete iff it acts properly discontinuously on the hyperbolic plane $\mathbb{H}$.  I wounder - does the same hold for a discrete group of isometries of $\mathbb {H}^n$ for $n>2$?  Also, a reference regarding hyperbolic isometries of high dimension would be of help, even not only about this specific question.


Question about condtion of MVT for integral.

For $f \in C[a,b], g\ge0$ (or $g\le0$) on $[a,b]$, then there exists $c\in(a,b)$ $\int _a^b f(x)g(x)dx = f(c)\int_a^bg(x)dx$.   It is MVT for integral.  Why $c \in (a,b)$ ? How about $c\in[a,b]$? Is it wrong?  I am wondering this because, in proving progress,   by IVT, there exist $m,M$ s.t $m\le f(x)\le M$   so $m\int_a^bg(x)dx$ $\le$ $\int_a^b f(x)g(x)dx$ $\le$ $M\int_a^bg(x)dx$.  when $\int_a^bg(x)dx>0$ then $m\le$ $\frac{\int_a^b f(x)g(x)dx} {\int_a^bg(x)dx}$   $\le$  $M$ and   $\frac{\int_a^b f(x)g(x)dx} {\int_a^bg(x)dx}$ becomes $f(c)$, so it seems $c\in [a,b]$ might work.  So, I want to know why $c\in(a,b)$, or $c\in[a,b] $ would be okay.


Is there an algorithm to find the edge vectors of a polytope?

Question: Given some points $x^1,\dots,x^m \in \mathbb R^n$, is there an algorithm that finds the vectors along the edges of the polytope $$P = \mathrm{conv}(x^1,\dots,x^n)$$ formed by the convex hull of these points? Definitions: A polytope is the convex hull of finitely many points in $\mathbb R^n$. Let $P \subset \mathbb R^n$ be a polytope. A face of $P$ is a a subset $F \subset P$ of the form $$F = \arg \max\{c^Tx : x \in P\}$$ for some $c \in \mathbb R^n$. The dimension of a face of $P$ is the dimension of its affine hull. A vertex is a face of dimension zero and an edge is a face of dimension one. If $E$ is an edge of $P$ then $E = \mathrm{conv}(x, y)$ for some vertices $x$, $y$. An edge vector of a polytope $P$ is a vector $v \in \mathbb R^n$ such that $v=x-y$ for some vertices $x$ and $y$ for which $\mathrm{conv}(x,y)$ is an edge. Example: Let $x^1=(0,0), x^2=(1,0), x^3=(0,1), x^4=(1,1)$. The convex hull of these points is the square $$P=\mathrm{conv}(x^1, x^2, x^3, x^4)$$ whose edge vectors are given by $$\{(1,0), (0,1), (-1, 0), (0, -1)\}.$$ Note that $(1,1)=x^4-x^1$ is not an edge vector although it is the difference of two vertices.


So I received the following message today after clicking the 'Skip' button on a close vote review because I guess I took too long to vote on it and it said it was already closed when I tried to vote.     You have failed too many recent review audits – looks like you might need a break. Come back in 7 days to continue reviewing.   While the point might be valid because I do often fail the close vote review audits (though I'd generally argue that my way of voting was correct, though sometimes I take the fail as a correction), I'm unclear why I received this message after doing something other than fail a review audit. I believe at least something is wrong because of when this message popped up for me.  As a secondary note, my record is much better for other types of reviews and so it does feel unfair that I'm blocked from all reviews when close votes are the only thing I'm arguably not very skilled at.


remove white space at the bottom of footer

I tried every thing to remove the white space after the footer , here what i wrote in Css :  #page-container {   position: relative;   min-height: 100vh; }  #content-wrap {   padding-bottom: 100px;    /* Footer height */ } #footer {     background-color: #3F729B;     bottom: 0;     position: absolute;     height:100px;     width: 100%;     color: black;     text-align:center;     padding: 0 30px; }   and this is in my page :


Render farm: is "pack all" all I need or should I do something more?

I need to send scenes to a render farm, and I know there's an option called "pack all" which saves all the external data into the .blend file.  But is that enough? I was reading about cache files, and I don't know if that's included, or if I have to do something more.


Is the graph $G_f=\{(x,f(x)) \in X \times Y\ : x \in X \}$ a closed subset of $X \times Y$?

I'm thinking about Hausdorff spaces, and how mappings to Hausdorff spaces behave. Suppose I have an arbitrary (continuous) function $f:X \longrightarrow Y$, where $Y$ is a Hausdorff space (I think it is irrelevant for my question whether $X$ is Hausdorff or not, so I just consider it to be a topological space - if this is incorrect, please correct me!).  Can we say that the graph $$G_f=\{(x,f(x)) \in X \times Y\ : x \in X \}$$ is a closed subset of $X \times Y$? It seems quite obvious that it is the case, but I cannot see how to prove it. If anyone can offer a proof I'd be very interested. Regards.  EDIT 1  In response to Hennning Makholm:   I wasn't really aware of any variation in 'definition'; I guess I'm considering closed sets to be those with an open complement (though naturally this definition gives rise to other definitions, such as the subset equalling its closure etc.). For continuity of such a map, I would normally consider continuity to mean that $f^{-1}(V)$ is closed in $X$ whenever $V$ is closed in $Y$, though again definitions involving convergence of sequences and the notion that $f$ is continuous iff $f(\overline{A}) \subset \overline{f(A)}$ for every $A \subset X$ are also known to me.


What is the difference between Reference type and ref in C#?

In both ref type and Reference type I am able to change the value of the object so what is the difference between them?  Someone has provided an  but it's still unclear for me.  static void Main(string[] args) {     myclass o1 = new myclass(4,5);     Console.WriteLine("value of i={0} and j={1}", o1.i, o1.j); //o/p=4,5      o1.exaple(ref o1.i, ref o1.j);    //Ref type calling     Console.WriteLine("value of i={0} and j={1}", o1.i, o1.j);// o/p=2,3     myclass o2 = o1;     Console.WriteLine("value of i={0} and j={1}", o2.i, o2.j);  // o/p 2,3     o1.i = 100;     o1.j = 200;     Console.WriteLine("value of i={0} and j={1}", o1.i, o1.j);  //o/p=100,200     Console.WriteLine("value of i={0} and j={1}", o2.i, o2.j); //o/p=100,200     Console.ReadKey(); }  public class myclass {     public int i;     public int j;      public myclass(int x,int y)     {         i = x;         j = y;     }     public void exaple(ref int a,ref int b) //ref type     {         a = 2;         b = 3;     } }


How do I disallow a specific query string in robots.txt?

I have the URL   http://www.example.com/shopping/books/?b=9   and the following robots.txt file:  User-agent: * Disallow: /?b=9   But when I test this in Google Webmaster Tool's robots.txt tester it is showing allowed when it should be disallowed.  Whilst /?b=9 is fixed, /shopping/books will change with different categories and I need to block them all.  Please tell me what's wrong with my robots.txt.


I am trying to insert a chunk of HTML into a div. I want to see if plain JavaScript way is faster than using jQuery. Unfortunately, I forgot how to do it the 'old' way. :P  var test2 = function(){     var cb = function(html){         var t1 = document.getElementById("test2");         var d = document.createElement("div");         d.id ="oiio";         d.innerHtml = html;         t1.appendChild(d);         console.timeEnd("load data with javascript");     };     console.time("load data with javascript");     $.get("test1.html", cb); }   what am i doing wrong here guys?  edit:  Someone asked which is faster, jquery or plain js so i wrote up a test:   plain js is 10% faster


Why is The Hateful Eight billed as Tarantino's Eighth movie?

As far as movies he's directed, I count at least ten (in no particular order):   Reservoir Dogs Pulp Fiction Jackie Brown Kill Bill vol. 1 Kill Bill vol. 2 Four Rooms Grindhouse Django Unchained Inglorious Bastards My Best Friend's Birthday   In addition, he's written screenplays for From Dusk Till Dawn, True Romance and Natural Born Killers. I count at least 12 (with Kill Bill 1 & 2 being counted as the same movies. I won't even get into acting credits...  Why the bad math?


Used Named Credentials to Call another Web Service

Hello everyone I have a named credential for Microsoft Access Control Service, this named credential is Authenticated, so I need the token to call another web service that isn't in the same domain for example the URL to login is this : ********/v2.0 and I need to call a web service from https://*********.org/api/SalesforceLAAM, both are different domains, to call the second web service I need the token generated for the named credential, Have any of you had this situation before?


Why my computer boot straight into Windows 7 and not boot options?

I just installed Ubuntu along side Windows 7, but when I turn on my computer it goes straight into Windows and doesn't recognize that I have Ubuntu installed. HELP!


Which join command should I use if I want only the values in the table2 that are not present in table1

Joins always gets me :/ so far what I have is   SELECT  * FROM         #Table1 aa RIGHT OUTER JOIN     #Table2 bb ON  a.FieldA = b.FieldB


Fixed points of contractions in metric spaces

How do I prove that all contractions on a complete, non-empty metric space has exactly one fixed point?   What I know: I know that all contractions are continuous and that completeness of $A$  means that all Cauchy sequences converge in $A$, but what can I do with these facts? And I think I also have to prove having two fixed points implies they are the same point to prove uniqueness. How would I do this?


Cardinality of $GL_n(K)$ when $K$ is finite

I don't know how to do the last task of an exercise.    Let $K$ be a field, $G=GL_n(K)$ and $X=K^n\backslash\{0\}$. First task: Show that $G \times X \to X$, $(A,x)\mapsto Ax$ defines an action of $G$ on $X$. Done. Second task: find the stabilizer of $\displaystyle x=\left(\begin{eqnarray} 1\\ 0 \\ \vdots \\0 \end{eqnarray}\right)$. Done. Third task: Show that there is only one orbit. Done. Last task: Let $|K|<\infty$. Use the last two tasks and induction to find $|G|$.    I know that $|G|=[G:St_G(x)]\cdot|St_G(x)|$ and i know that $[G:St_G(x)]=|\bar{x}|=m^n-1$ but i can't figure out what $|St_G(x)|$ is.  What should i do next? I appreciate every hint :)


Why can't "cold flow from an area of coldness to hotness?

Why do we always talk of heat flow from a hotter region to a coder region? Would it be wrong to say that cold flows from one place to another?


Ubuntu Software became fully transparent

Ubuntu Software has become fully transparent after switching to a Mac shell theme.


Does $f$ monotone and $f\in L_{1}([a,\infty))$ imply $\lim_{t\to\infty} t f(t)=0$?

I want to show that if $f$ is non-increasing and $f\in L_{1}([a,\infty),m)$ where $m$ is Lebesgue measure then $\lim_{t\to\infty} t f(t)=0$. So far I've been able to show that $f\geq 0$ and that $\lim_{t\to\infty} f(t)=0$. Since monotone functions are differentiable a.e. I thought about using integration by parts but couldn't get anywhere with that. Any hints or suggestions would be greatly appreciated.


Is it possible to take out specific tabs from firefox (i mean get links)(by number) from bash or smthing else(for remote usage)?

I want to send command via some messenger's api bot (for example telegram bot) and get response with specific tab(link to some site) but i don't know how to realize that part about taking out firefox tabs  Is there any not so sophisticated way to do it? Please give some advise and sorry if it's a dumb question.Thanks in advance.


Non-Parametric Density estimation with a positive variable

I’m struggling to find a way to represent a kernel density estimation with a nonnegative random variable. I have read a couple of articles tackling this issue; however I couldn’t implement it in R. I also tried a log transformation and a Box-Cox transformation without success.   With the log transformation I found serious problem at the 0 border.   This is my script:  K<-function(x){   return(1/sqrt(2*pi)*exp(-x^2)/2) };  x<-seq(min(y),max(y),0.001);x; nucleo2<-function(x,h,y){   nx=length(x)   n=length(y)   fhat=rowMeans(K(outer(x,y,"-")/h))/h   return(fhat) }; ind0<-(y==0); ind0; y[ind0]=0.000001; bw.SJ(log(y)); windows(); hist(y,freq=FALSE,breaks="Sturges", main="",xlab="King's inbreeding coefficient",ylab="Density"); rug(y); ftx<-nucleo2(log(x),h=0.3,log(y))/x; lines(ftx~x,col=4,lwd=2)   However, this script is not very useful; I found many problems at the border. Someone could help me!!?? Thanks a lot


This comes up in reading David Speyer's answer to  Given a finite group $G$ and two non-conjugate elements $x, y,$ how does one construct a unitary representation $\rho$ of $G$ such that $\rho(x)$ and $\rho(y)$ have different traces? (The same question makes sense for infinite groups, but it is far from clear that this is always possible in the infinite setting, even if you drop "unitary").


What is the Tomcat installation directory?

Based  I'm trying to setup Tomcat Server, I have successfully installed it and tested it. Then I stopped it as recommended in the tutorial. I'm setting up "New Server Runtime Environment" as you can see under Tomcat Installation Directory is a windows directory, anyone knows the Ubuntu directory equivalent for this? Thanks.


Real function continuous on closed interval implies it is bounded - over-simple proof??

So here is my proof, which after looking up others seems to be too simple, or not rigourous enough, though I don't see why (hence I am asking!):  We take the contrapositive, and so prove that if $f$ is unbounded on $[a,b]$, then it is not continuous on this interval.  By hypothesis, $\exists c \in [a,b] : \displaystyle\lim_{x\to c} f(x) = \infty \implies f(c)$ is undefined. (or, $ \displaystyle\lim_{x\to c} f(x) \not= f(c)$ so we get discontinuity instantly)  Since $f(c)$ doesn't exist, the definition of continuity cannot be applied so $f$ must be discontinuous at at least $x=c$, as required.


Why does heating eggs not change the State of matter from solid to liquid

i'm not sure how much sense this question makes, but my physical education is not very great, so i'm just curious.  Normally, when we heat matter, it changes the state it at some level, but eggs don't - or at least in the "wrong" order, namely from liquid to solid. But why doesn't heating eggs make the "content" more liquid?  I know that heating kind of "extracts" the liquid in the matter, but i don't think that is relevant for that issue.   Anyways, is there a "higher" reason that eggs fall out of this principle?


Congruence in the solutions of an expression $ax\equiv b \pmod{n}$

I need to proof the following statement:  Let $a, b, n \in \Bbb{Z}$  with $ n≥ 2, gcd(a,n)=1$. Proof that if $s_{1},s_{2}$ are solutions to $ax\equiv b \pmod{n}$, then $s_{1}\equiv s_{2} \pmod{n}$.  I don't know where to start my proof. I do know that if you get any solution, then by adding the modulo you get equivalent solutions. Then, there are n possible solutions. But I don't think my argument is correct.


Prove special case of Jensen's inequality THE OPPOSITE WAY

$f: \mathbb{R}^n \rightarrow \mathbb{R},f$ is continious. $$f \text{ is convex} \Leftrightarrow f\left(\dfrac{x+y}{2}\right) \le \dfrac{f(x) + f(y)}{2}\ \ \   \forall x, y \in \mathbb{R}^n$$  One side comes straight from Jensen's inequality, while the other one is not obvious at all.   Maybe more divisions by 2 will help as I have heard.


I am a brand new user of the Linux-based OS and I would really like to learn it, except I can't even get in the damn thing!!  I have created a LiveUSB using Rufus as per the instructions on the Ubuntu site.  I am using Ubuntu 16.04.3 LTS.  I have a modern ASUS motherboard with a Z170 chipset, so no issues booting from any USB device.  My USB flash drive is a 16GB Kingston Data Traveller G4 USB 3.0.  I also have an nVidia GeForce 970 GTX graphics card jnside my computer and outputting via DVI, if this has any relevance to my problem.    In Rufus, I selected the MBR option for use with UEFI and a FAT32 filesystem.    When I boot the USB device I get the menu to Try Ubuntu etc, with NO scrambled text like what many people have had.  But when I select Try or Install Ubuntu, I get a black screen with lots of garbled characters and nothing happens.  I've tried lots of different Linux-based USB and CD formats, but I always get this far and that's it.  It really is frustrating as I want to try and move away from Windows and learn something new.  Could this be a graphics card problem do you think?  I have also tried disabling Fast Boot and Secure Boot etc but no difference.


I'm applying for fall 2019, and I would really appreciate any feedback on my chances of getting into the programs I specified.  Program: Statistics PhD  Schools Applying To:  Virginia Tech, Penn State, Johns Hopkins, UGA, Purdue, NC State, Rice, Missouri at Columbia, VCU  Interests: Design of experiments, response surface methodology, stochastic processes  Undergrad Institution: US State School  Undergraduate GPA: 3.81 (cumulative) 3.89 (major)  Undergraduate Major: Statistics  GRE: 154 V, 163 Q, 4.0 AW  Quantitative Courses: Intro Stat (A), Calculus I (A), Discrete Math (A), Calculus II (A), Intermediate Stat (A), Mathematical Reasoning (A), Linear Algebra (A), Combinatorics (A), Mathematical Computing (A), Statistical Computing (A), Differential Equations (B), Advanced Calculus (B), Multivariate Calculus (B), Probability Theory (B), Statistical Inference (A), Mathematical Modeling (A), Nonparametric Statistics (A), Regression (A), Mathematical Statistics I (B), Complex Analysis (A), Time Series (A), Applied Computing w/ R (A), Numerical Methods (A), Multivariate Statistics (A), Industrial Statistics (A)  Work Experience: 1 semester working on a research project in Biostatistics, 1 summer doing research at a national lab (which results in 1 published paper and multiple projects), 1 summer with statistical internship doing Bayesian work, Multiple semesters being a math tutor/TA  Demographics: Domestic White Female  LORs:  1 from my research advisor at national lab, 2 from professors I know very well and have promised outstanding letters  SOPs: Will most likely try to tell the story of my research and how it connects to the research I want to pursue and how that could fit into their department  Concerns:    My low-ish GRE score  The 5 B's I received, even though they were not received in recent coursework   Thank you for any advice!


Cannot uninstall internet explorer 11 (windows 7)

This question is not about removing a virus. I tried removing the virus using all of the methods recommended by various websites for several hours.  This is about how to uninstall/reinstall IE 11 because I cannot find this virus and have already uninstalled every part of IE11 I can and cannot reinstall it because MS is telling me it is still there.  My internet explorer 11 got hijacked by some sort of malware that made it open up with what looked like a google search for "remove+everything+else". I couldn't find any information about this problem, and the terms make searching difficult.  IE also disappeared from my list of programs in the "uninstall programs" list, and from the programs folder, but appeared as a separate folder at the same level as the programs folder.  I deleted all of the files in the folder except the "en-US" folder that contains .mui language files. I can't figure out how to get rid of this.  I downloaded IE from the MS site and have been trying to install it again, but am being told it is still there. I tried turning IE off using "windows features" and that didn't work. Turning it back on didn't work either.  I also tried the MS advice here:   Nothing about IE appears in the "installed updates"  I've asked for help at the MS support website and the advice I've been given is that I can't uninstall IE from my computer.  I'm pretty sure I did this in the past on the same computer because I didn't use it, and then installed it again when I needed it for work. This also seems like the "automatic bundling" that MS got the antitrust investigation for.  Can I uninstall IE and reinstall it, and if so how?


Microsoft C++ 64-bit (__int64) integer overflow

I'm using a Microsoft C++ compiler (non-managed), and I assume that __int64 is a MS-specific type. My target platform is 32-bit x86, not x64. Is there any way that I can detect overflow after an addition of two __int64 types?


Prove that $\def\Aut{\operatorname{Aut}}\Aut(\mathbf{Z_{n}})\simeq \mathbf{Z_{n}^{*}}$

I am writing another exam in Algebra this week and this time the main topic is automorphism. I was again going through the example exercises and exams from previous years and this problem is giving me a hard time to understand:  Prove that for group of automorphisms $\def\Aut{\operatorname{Aut}}\Aut(\mathbf{Z_{n}})$ holds  $\Aut(\mathbf{Z_{n}})\simeq \mathbf{Z_{n}^{*}}$ where $\mathbf{Z_{n}^{*}}=\{1 \leq k \leq q | \gcd(k,n)=1\} $.  My main issue with this problem is that it seems very "general" and I don't really know how to address it with any of the techniques we have used.  Could you please show me some ways this could be approached? I appreciate your help.


Photoshop - Is it possible to find the current border radius of a rounded rectangle?

Here's the scenario: I create a rounded rectangle (shape layer) with a border radius of 8px (all sides). Months later I'm ready to code the design only to forget the border radius. Is there any way to rediscover these attributes (aside from properly naming the layer obviously)?


What does ::-1 mean for python string index?

I was looking at python code that printed palindromes, and I stumbled upon this line of code:  for i in range(1000, 7, -1):     if (str(i) == str(i)[::-1])   I'm trying to learn Python right now, and I'm just not that familiar with the syntax. Currently, I understand that this line of code checks to see if the first digit of integer i matches its last digit. Does the syntax of this line mean that the index is being incremented in order to check if it's a palindrome? What is the purpose of having two colons?


Subscription feed emails doubly encode  characters

When I receive emails for my Stack Exchange email subscriptions, characters like < and > are doubly encoded, i.e., they are rendered as &lt and &gt (and encoded as &amp;lt; and &amp;gt;):    Here is a sample of the source for the same email:  <p style="font-size:100%;color:#3d3d3d;margin-top:5px">     I would like to change the following code so as to handle grouping of more than 1 property     private Expression&amp;lt;Func&amp;lt;ProfileResultView, string&amp;gt;&amp;gt; DynamicGroupBy(string propertyName)     {          ...  </p>


Please see the screenshot here:    At the top of the window I have 3 toolbars packed together, they are all the same. How can I remove them?


Is there any way I could download a iphone app to my mac book pro?

I want to be a able to download the amino app to my macbook but it has not been made to be able to do that but I would like to know if I could in some way


sum of the square of binomial coefficient

Using Vandermonde's identity, I can have $$ \sum_{i=0}^{n} \binom{n}{i}^2=\binom{2n}{n} $$ Is there a closed expression for $$ \sum_{i=0}^{n} \binom{n}{i}^2 x^{i}. $$ If we define a function $$ f(x)=\sum_{i=0}^{n} \binom{n}{i}^2 x^{i} $$ Then $f(1)=\binom{2n}{n}$. Can the expression of $f(x)$ be simplified?


If $m>n$ prove that $a^{2^n}+1$ is a divisor of $a^{2^m}-1$

We have to prove that $a^{2^n} +1\mid a^{2^m}-1$ when $m>n$.  What I've done: I considered the two cases when $a= 2k$ and when $a= 2k+1$.


Since conservation of charge seems to be a well known concept, I am hoping that I am missing something and that the conclusion is incorrect.  However, I have been unable to disprove this.  Let me outline the situation as follows.  Overview  Consider the following Lagrangian for scalar QED and field $\varphi$: \begin{align} \mathcal{L}=\overline{D_\mu\varphi}D^\mu\varphi-U(|\varphi|^2)-\frac{1}{4}F_{\mu\nu}F^{\mu\nu},\tag{1} \end{align} where $$D_\mu=\partial_\mu-iA_\mu\varphi.\tag{2}$$    One set of Euler-Lagrange equations is: \begin{align} \frac{\delta\mathcal{L}}{\delta A_\mu}=i(\overline\varphi\partial_\mu\varphi-\varphi\partial_\mu\overline\varphi)+2A^\mu|\varphi|^2+\partial_\nu F^{\mu\nu}=0.\tag{3} \end{align}  If we consider the global gauge symmetry transformation $\varphi\to\varphi+i\epsilon\varphi$, then Noether's first theorem gives the following conservation law (for charge, see e.g. ) on solutions of $\delta\mathcal{S}=0$: \begin{align} \partial_\mu j^\mu:=\partial_\mu\left[i(\overline\varphi\partial_\mu\varphi-\varphi\partial_\mu\overline\varphi)+2A^\mu|\varphi|^2\right]=0.\tag{4} \end{align}  Question: does the integral of the charge density $j^0$ vanish identically?  If so, does this mean that nothing is conserved?  My attempt at an answer: Yes.  To see this, we integrate the continuity equation over $\mathbb{R}^3$ and apply Gauss's Theorem: \begin{align} \partial_0Q:=\partial_0\int_{\mathbb{R}^3}j^0 d^3 x=-\sum_{\mu=1}^3\int_{R^2} j^\mu \bigr\rvert_{|x_\mu|\to\infty}d^2x.\tag{5} \end{align} Here, we say that $Q=\int j^0$ is the total charge.  We assume that the fields $\varphi$ and $F$ vanish as $\max_{\mu\ge 1}(x_\mu)\to\infty$.  This is a natural boundary condition for physical observables.  Then the fluxes $j^\mu$ clearly vanish in this limit.  Thus, our conservation law becomes: \begin{align} \partial_0\int_{\mathbb{R}^3}j^0 d^3 x=0.\tag{6} \end{align} But  $$j^0=\delta\mathcal{L}/\delta A_0-\partial_\nu F^{0\nu}=-\partial_\nu F^{0\nu}\tag{7}$$  on solutions, so we can equivalently rewrite the charge integral using Gauss's Theorem as follows: \begin{align} Q=-\sum_{\nu\ge 1}\int_{\mathbb{R}^2}F^{0\nu}\bigr|_{|x_\nu|\to\infty} d^3 x.\tag{8} \end{align} Since the fields vanish at infinity, we obtain: \begin{align} Q\equiv 0.\tag{9} \end{align}  In other words, if correct, then this shows that the charge for this system is identically zero, and that nothing is conserved (it seems incorrect to call $d0/dt\equiv 0$ a conservation law rather than a tautology/identity).  Related Links  There are a few other questions users asked that have some relation to this.  However, I do not believe the actual charge integral's conservation was anywhere addressed.   shows that the charge density can be rewritten as a total divergence, from which the argument follows, of course.   includes the fact that there is no conservation law for the local gauge symmetry, but does not clarify this for the global symmetry case (which should be a special case of the local results).   gives an overview of charge conservation.    Edit:   also discusses charge conservation, but it seems to be more concerned with the interpretation of the charge density.  I am instead asking if the density is conserved at all.


If a quantum state is an eigenstate of the Hamiltonian, then it is stationary. But can a state be stationary if it is not an eigenstate of the Hamiltonian? If yes, how can one prove whether a state is stationary?


Lightning Component as actionOverride for Standrad NEW Button, do not prepopulate parent record data

I'm trying to use <lightning:recordEditForm> in a Lightning Component as an Action Override using lightning:actionOverride interface.  I've overridden the Contact New button with this Lightning Component. Issue is, it opens the form, but it won't pre-populate the AccountId from the source record (as I'm coming from Contact Related List of Account record).   Strange thing that happened was, if I use same code on any other Object (which has a Record Type enabled on it), then I can see in the URL an additionalParams parameter with the parent record's ID value.  So for an object without a Record type, when overridding Standard New action, it does not generate any additionalParams parameter with source record id.  Is this a bug?   And do anyone have a way to make the component work and read the source record value, in actionOverride?  My Lightning Component Code (below):  ContactFormOverride.cmp  <aura:component implements="force:hasRecordId,lightning:actionOverride">     <aura:attribute name="disabled" type="Boolean" default="false" />     <aura:attribute name="saved" type="Boolean" default="false" />     <aura:attribute name="showSpinner" type="Boolean" default="true" />     <aura:attribute name="recordId" type="String" />
         <aura:if isTrue="{!v.showSpinner}">             <lightning:spinner />         </aura:if>         <aura:if isTrue="{!!v.saved}">             Record ID: {!v.recordId}
             <lightning:recordEditForm   onload="{!c.handleLoad}"                                         onsubmit="{!c.handleSubmit}"                                         onsuccess="{!c.handleSuccess}"                                         objectApiName="Contact">                                  <lightning:messages />                  <lightning:inputField fieldName="FirstName" />                 <lightning:inputField fieldName="LastName" />                 <lightning:inputField fieldName="AccountId" />                 <lightning:inputField fieldName="Birthdate" />
                     <lightning:button disabled="{!v.disabled}" variant="brand" type="submit" name="save" label="Save" />
             </lightning:recordEditForm>             <aura:set attribute="else">
Saved! New record id is {!v.recordId}
             </aura:set>         </aura:if>
 </aura:component>   ContactFormOverrideController.js  ({     handleLoad: function(cmp, event, helper) {         cmp.set('v.showSpinner', false);     },     handleSubmit: function(cmp, event, helper) {         cmp.set('v.disabled', true);         cmp.set('v.showSpinner', true);     },     handleError: function(cmp, event, helper) {         // errors are handled by lightning:inputField and lightning:messages         // so this just hides the spinner         cmp.set('v.showSpinner', false);     },     handleSuccess: function(cmp, event, helper) {         var params = event.getParams();         cmp.set('v.recordId', params.response.id);         cmp.set('v.showSpinner', false);         cmp.set('v.saved', true);     } })


Commutator subgroup of rank-2 free group is not finitely generated.

I'm having trouble with this exercise:     Let $G$ be the free group generated by $a$ and $b$. Prove that the commutator subgroup $G'$ is not finitely generated.   I found a suggestion that says to prove $G'$ is generated by the collection $\{[x^m,y^n]\mid m,n\in\mathbb{Z}\}$. I don't know how to prove this, and how it helps.  If you could please provide me with some hints... Thanks!


How much exposure to Wi-Fi radiation is safe for my health?

I would like to be able to determine whether how much exposure to Wi-Fi radiation is safe for my health.  I can see GSM phones are , until confirmed otherwise, but that's taking into account the specifics qualities of GSM phones available and their usage patterns:   Output power of the phones is strictly limited in terms of , the rate at which energy is absorbed by the human body; and that is strictly controlled for. We usually only keep it pressed to our heads for a limited time, then some more time 30-40 cm away from our head (when texting/surfing/gaming), the rest of the time even further away.  is another concern entirely; they should be safe when mounted atop of high towers (as radiation levels at the ground level should be lover than the ones from a phone), but are they safe, if mounted, say, on the outside wall of the apartment building, besides a window to one's apartment?   So, how safe is using Wi-Fi at home? I'm currently running a 24/7 access point which is mounted at least 2 meters away from my head when I'm working and sleeping. The hardware is an old computer (modified to be extra silent) with a regular PCI Wi-Fi card. This is probably ok.  But as I'm browsing the market I see the proliferation of Wi-Fi cards boasting higher and higher output power1 and ever more powerful access points2. I'm not aware of standards governing acceptable output power for these, and a) whether or not they are ignored or circumvented by the over-enthusiastic hardware manufacturers in pursiut for more output power b) one should keep in mind that a Wi-Fi access point in one's home is analogous to a base station: higher powered and working 24/7.  So, how do I go on to assess which Wi-Fi hardware, mode of operation and place of installation should be safe for my health?  Footnotes:   The most powerful powerful Wi-Fi cards I saw so far are:   : 2 W : 3 W  The most powerful powerful access point I saw so far (that I would actually consider for home use):    (upcoming): 22W


What is the force between two charged objects when the space between them is partially filled by a dielectric medium?

I am given two charged particles of same charge at a distance of $r$. They initially apply force $F$.  Now an infinite dielectric (of dielectric constant $4$) of width $\frac{r}{2}$ is introduced between the particles. What will be the new force?   I find this problem confusing because I have only been told about forces when its either fully dielectric or fully vaccum given by Coulomb's law. How do we get forces when only partial space is dielectric?


As I know, the word "there" has been used as an adverb a lot.   But it's also a noun. Not only can you say "What are you doing there?" but "What are you doing in there?" also works. But what about "at there"?  I was checking some homework from a few kids in my work. There was this question: What did he get at the supermarket?  Nearly all the kids wrote "He got some apples at there."  I've never heard people say that, but I'm not quite sure if it's grammatically correct but people just don't say it, or it's just ungrammatical.


Currently have a program where I read a binary file where the first 4 bytes contains an integer n which is the amount of double values in the file, and the rest of the file has 8n bytes containing an array of double values.  I can read the file fine and determine the coefficients, the issue lies with detecting if the information given by n is correct. My question is why does  sizeof(*coeff_values_p)   return a value of 4 instead of 8n. I am using a file where n=29 so shouldn't the size be 232?  Any help would be appreciated.  #include "Ass-01.h" #include <stdio.h>  int read_coefficients(int *coeff_num_p, double **coeff_values_p, char  *filename) {     //uint32_t n;                           //Number of coefficients     FILE *f;                            //File to be opened      //File reading storing the value of n     f = fopen(filename, "rb");     fread(coeff_num_p, sizeof(uint32_t), 1, f);      *coeff_values_p = malloc(8 * *coeff_num_p);      fread(*coeff_values_p, sizeof(uint64_t), *coeff_num_p, f);      if (sizeof(*coeff_values_p) != (*coeff_num_p*sizeof(uint64_t)))     {         return -1;     }     else     {         return 0;     } }


Understanding the effect of each parameter in a Monte Carlo Simulation

I am running a Monte Carlo simulation where I sample from Normal Distributions associated with parameters E11, E22, and GIC to get the plot in red which can be seen in the figure below. The figure below also shows the Normal Distributions for the cases where only E11 has uncertainty, whilst the other parameters are kept constant and likewise for E22 and so on. I am basically trying to understand the effects of each of these parameters on the uncertainty in the red curve. From the graph below all I can tell is that E11 and GIC have enough of a standard deviation to be influencing the red curve. I was wondering if there is any other information I could obtain from this graph and the data given below?  Is this a sensible way of assessing the relative effects of each parameter on the 'overall solution' as depicted by the red curve? Should I be considering other ways to determine this?  Edit:   Data E_11    $\mu$ =0.004332, $\sigma$ = $2.1374×10^{-4}$  E_22    $\mu$ =0.004314, $\sigma$ =$2.6348×10^{-5}$  G_1C    $\mu$ =0.005005,  $\sigma$ = $7.0475×10^{-4}$  Uncertainty in every parameter $\mu$=0.004265 , $\sigma$= $6.6933×10^{-4}$


Prove if true and find a counterexample if false (disproofs/algebraic proofs)

For all sets $A, B, C$  $$A- (B-C) = (A-B) -C$$  Now my books says it is false and begins showing a counter example, but how do you know it is false by just looking at it? Would you go about proving it first and then if a proof can't be found, make up a counter example?  The proof I think would start out...  $x$ in $A$ and not ($x$ in $B$ and $x$ not in $C$)=


Virtual function call from inside a base class function

I have two classes, Object and Ball. Ball is derived from Object. Object has a virtual function "move" and a non virtual function "moveFast" that calls move. Class Ball redefines the move function from it's parent class.  #include <iostream>  struct Object {     virtual void move(int dist)     {         std::cout<<"Moving "<<dist<<std::endl;     }     void moveFast(int multiplier)      {         move(10*multiplier);     } };  struct Ball : public Object {     void move(int dist)     {         std::cout<<"Rolling "<<dist<<std::endl;     } };  class List {     struct Node     {         Node* next;         Object ele;         Node(Object e, Node* n=NULL) : ele(e), next(n){}     };      Node* head; public:     List() : head(NULL){}     void addObj(Object o)     {         if(head==NULL)         {             head =  new Node(o);             return;         }          Node* current = head;         while(current->next!=NULL)         {             current=current->next;         }         Node* obj = new Node(o);         current->next=obj;     }     void doStuff()     {         Node* current = head;         while(current!= NULL)         {             current->ele.moveFast(10);             current=current->next;         }     } };  int main() {     Object a,b,c;     Ball d;     List list;      list.addObj(a);     list.addObj(b);     list.addObj(c);     list.addObj(d);     list.doStuff(); }   The List class takes in Objects and calls their moveFast function. Because a,b, and c are just Objects I would expect the first 3 lines of output to be "Moving 100". d however, is an instance of the Ball class. So I would expect the 4th line of output to say "Rolling 100", because Ball redefined the move function.  Right now all the output prints   Moving 100 Moving 100 Moving 100 Moving 100   Is there a way to get Ball's definition of move called from List?


So I was reading a few maths problems and I stumbled upon the Monty Hall problem. If you are not familiar with the Monty Hall problem it goes something like this:  You are on a game show (with the objective of winning a car) and you have three doors A, B and C. Each door has one of two goats or a car behind it. You pick a door, let's say A, and before revealing what's behind A. Monty shows you what's behind C - a goat. Now do you switch your door or keep with your door?   I initially thought that it's 50-50 chance of winning if you switch, however, the answer is 2/3, and I have tried to research into this, but couldn't find an answer that explained this clearly. Please, can someone explain why the probability of winning the car is 2/3 rather than 50-50.


I use the Texmaker compiler. I would like to know how do I increase the letter in the TEX typing box.


Two universes are "colliding" and alien "engineers" are going to stop it

I hope somebody can help me with this.   I read this book like 15 years ago which places it before the year 2000. The main plot of the book is that 2 universes (ours and another one?) are "colliding" Some humans are taken by alien "engineers" (I think that was their name) to their world in order to help to find a solution to the collision problem.


The number to the left shows up as a "1." even though I typed in "364."  Very annoying.


I have something odd.  I creates some directories using a very simple script :  ... create all directories ( running under a user that has the correct rights ) e.g :  mkdir -p /home/EAI003A/05_EDSNFE/ISU2EAI/VEA/tre   But I get the directories double !  When I do ls -lrt I get   uxel081c: wmb - /home/EAI003A/05_EDSNFE/EAI2ISU/VEA # ls -lrt total 0  drwxr-xr-x    2 wmb      mqbrkrs         256 Jan 28 15:25 tre drwxr-xr-x    2 wmb      mqbrkrs         256 Jan 28 15:25 err drwxr-xr-x    2 wmb      mqbrkrs         256 Jan 28 15:25 arc drwxr-xr-x    2 wmb      mqbrkrs         256 Jun 12 08:35 tre drwxr-xr-x    2 wmb      mqbrkrs         256 Jun 12 08:35 tbt drwxr-xr-x    2 wmb      mqbrkrs         256 Jun 12 08:35 err drwxr-xr-x    2 wmb      mqbrkrs         256 Jun 12 08:35 arc drwxr-xr-x    2 wmb      mqbrkrs         256 Jun 13 10:49 tbt   (notice the double tre, tbt , arc ... )  They double directories do point to the same data.  When you do a normal ls you get   uxel081c: wmb - /home/EAI003A/05_EDSNFE/EAI2ISU/VEA # ls     tre  tre   Thus only two directories !  What happens ?


I have HTCF Wildfire A3333 phone. I know it is old, it has Android version 2.2.1. How can I download Whatsapp on it (which version of Whatsapp)


Can I have a bunch of lapel pins on my personal backpack that will be in the seat in front of me or should I take them off?

My backpack has many pins on it to show where all I have traveled. Would American Airlines allow me to carry that with those on or take them all off?


How to run multiple Firefox/Thunderbird icons on the dock?

If I open Firefox or Thunderbird or any other application twice, they stack on top of each other in the dock. I run GNOME 3.36 on Ubuntu 20.04.1 LTS. How can I duplicate the icons of the applications that I open, on the dock? This is especially useful when using multiple screens, so that I can easily switch between opened apps without having to select which Firefox instance I want to show on the main screen, since the second one always runs on the second screen. The dconf-editor did not seem to have any option that allows me to run multiple icons instead of stacking the icons.


I got eSATA slot in my laptop (HP DV-7) + WD 1TB (The exact model: Caviar Green WD10EADS)  What I want to know, it's if I need something else except from the . Does the eSATA cable provide also power to the HD?  If I'll purchase this cable - do I need something else?  Thanks.


I'm trying to upgrade a very old (Lucid Lynx) Vmware VM I recently re-discovered.  When I try to run the update manager, I get the message "Your Ubuntu release is not supported anymore.  You will not get any further security fixes or critical updates. Please Upgrade to a later version of Ubuntu Linux."  Then update manager freezes.  Is there a way to configure update manager so it can point to something I can upgrade to?  NOTE: I've been following some of the questions involving upgrading end-of-life versions... nothing seems to help,


On a tile based strategy game I'm working on the player may select an area in which a room is placed. To do so the player selects the tiles. Either by clicking on each individual tile or dragging from one point to another. An algorithm kicks in and decides how and where the pre-made tiles should be placed. My concern is getting this algorithm working for more complex shapes than a single rectangle.   My first approach was to check whether or not the tiles around each selected tile is selected. Using this "signature" the algorithm chooses what tile matches that description and places it accordingly. With this setup I would need 7 models:   floor tile tile with single wall & floor tile with two walls (placed opposite of eachother) & floor tile with three walls & floor tile with four walls & floor corner tile & floor "cap" for inverted corners (as shown in blue below)   This seems like a viable option without too much work for the modellers. I have however had some problems recognising the tiles where an cap should be placed. And for situations as shown on the right-hand room would require a near endless combination of caps and walls.  A solution to discard the caps would be to make walls with a 45 degree cut on the end. This way there would be a lot more flexibility in placing the tiles and it would allow for special cases found in T-junctions. I believe the current pattern recognition algorithm would not suffice here. In order for it to work I think each tile had to check what kind of tile is around it, not only whether or not it's selected. I fear that this option would require too much computing power as the surrounding tiles may change recursively.  Now, the question is what option should I go for? One of the two proposed, or an third option?   Any help, tip or solution is greatly appreciated.


Meaning and Emphasis Depending on the Placement of "Only"

My dog only likes people food.      My dog likes only people food.      My dog likes people food only.   In each of these sentences, how does "only" affect it (i.e. emphasis and meaning)? Are any of them incorrect?  My understanding is that the first sentence conveys my dog liking people food and nothing else (not limited to food). The second sentence is slightly different - my dog doesn't dislike everything, but when it comes to food the only food he likes is people food.  Is there a good rule for the placement of "only" in sentences? Which is the most grammatical and comprehendible/unambiguous?


Combinatorics - How many numbers between 1 and 10000 are not squared or cubed?

Simple question.  How many numbers between 1 and 10000 can't be written as $n^2$ or $n^3$ when $n \in \mathbb N$?  I know the way to solve this is with inclusion-exclusion. but for that I need to find the cardinality of these sets:  1) The set of all numbers between 1 to 10000 that can be written as $n^2$  2) The set of all numbers between 1 to 10000 that can be written as $n^3$  3) The set of all numbers between 1 to 10000 that can be written as $n^6$  How do I find out how many elements are in those sets?


Intertext like command in enumerate environment?

I would like to insert some explanatory text between two items of a numbered list.   Is there a command that can do this in the same way as the \intertext command in an align environment?


Have experts considered the option of Controlled & Isolated Covid-19 Exposure for very low-risk groups?

I have not seen this as an option in the media and wondered if this has been considered and rejected.   Unless the virus has shown to be mutating frequently, this option would allow low-risk groups to be exposed in an isolated environment, they would be able to get treatment if necessary. But if as expected, the majority get over the infection without adverse affects, they can be free from having to practice social distancing and/or isolation.  The first groups could be health workers and other essential personnel like the national guard. These people could then go about doing essential work without fear of catching it or spreading it.  Over time we could significantly reduce the number of people who would be forced to practice social distancing and/or isolation.  We could even consider having Covid-19 zones where people could get exposure, become immune and then be allowed to leave the zone.  This would reduce the stress on healthcare systems overall.


What happened to Yin Kurama inside Edo Minato after the war ended?

After Orochimaru reincarnated Namikaze Minato, Yondaime Hokage and the war ended. Does Yin Kurama still reside inside Minato even after he goes back to the heavens or did it return to Yang Kurama and now it is inside Naruto. Can you please clarify this?


Why is a (simple) mask not recommended for asymptomatic COVID-19 patients?

Information about (simple) mask wearing (concerning covid19) is a complete mystery to me. On several official places it is not recommended for a person without symptoms to wear a mask. For example:    (time 0:20)  or here:    However no explanation is given - which makes me wonder (and even angry). I think everybody should wear a mask because:   Many persons feel ashamed wearing it, even those with symptoms. If everybody wears it, they do not feel ashamed and wear it. As far as I know, one is (wrt covid19) contagious before developing symptoms. So if everybody wears the mask also these people do.   The two above points act as a collective protection.   Simple mask certainly will lower "getting / spreading illness" probability. Of course the "holes" (in a simple mask) are too big to prevent completely virus to enter (or get out when coughing), but it lowers probability! Even if it lowers the transmission probability by e.g. 5%, it might be a lot. As a hypothetical example: it might reduce R0 from 1.02 to 0.97 and so stop the virus spread so fast.   The videos are full of self-contradiction. In the same video    time 0:50 the lady says I should wear a mask if I am in contact with an infected person... why if it is inefficient?  Question: What are reasons for not recommending wearing a mask?


Are UA Changelings immune to the Polymorph spell?

The  spell says:     This spell transforms a creature that you can see within range into a new form. An unwilling creature must make a Wisdom saving throw to avoid the effect. The spell has no effect on a shapechanger or a creature with 0 hit points.   Changelings (from the original version of Wayfinder's Guide to Eberron, as they appear in ), which are similar to doppelgangers, are able to change appearance, but don't seem to be explicitly shapechangers.  Are UA changelings actual shapechangers and therefore immune to Polymorph?


Do you have advantage when multiple sources give advantage and only one gives disadvantage?

As I understand it:   if you have Advantage from two different sources, you simply have Advantage (no stacking) if you have advantage from one source, and disadvantage from one source, they cancel out.     So what if you have advantage from two or more sources, and disadvantage from one source?  My assumption is that you simply have advantage, or put another way, you have Advantage on a roll when the # of Advantages > # of Disadvantages (and vice versa).  Is that correct?


I'm trying to a large number of figures. The code is  \begin{figure} \includegraphics[scale=0.5]{m2T4.pdf} \caption{M2T, Problem Size 513} \end{figure}   I'm not able to compile, I get the error  ! LaTeX Error: Too many unprocessed floats. See the LaTeX manual or LaTeX Companion for explanation. Type H <return> for immediate help. ... l.113 \includegraphics [scale=0.5]{m2T4.pdf} You've lost some text. Try typing <return> to proceed. If that doesn't work, type X <return> to quit. ! Undefined control sequence. \@float@Hx ...ltovf \fi \global \setbox \@currbox \color@vbox \normalcolor \... l.113 \includegraphics [scale=0.5]{m2T4.pdf} The control sequence at the end of the top line of your error message was never \def'ed. If you have misspelled it (e.g., `\hobx'), type `I' and the correct spelling (e.g., `I\hbox'). Otherwise just continue, and I'll forget about whatever was undefined. ! Missing number, treated as zero. <to be read again> \vbox l.113 \includegraphics [scale=0.5]{m2T4.pdf} A number should have been here; I inserted `0'. (If you can't figure out why I needed to see a number, look up `weird error' in the index to The TeXbook.) pdfTeX warning: pdflatex (file ./m2T4.pdf): PDF inclusion: found PDF version <1 .5>, but at most version <1.4> allowed <m2T4.pdf, id=1121, 538.28104pt x 212.1526pt> File: m2T4.pdf Graphic file (type pdf) <use m2T4.pdf>


Offline NT Password changer won't recognize the hard drive, which is a SCU device (not SATA), alternatives?

The device is show as following in devices in BIOS: SCU device 1 WDC WD 500... Model is Lenovo ThinkStation S30. What are the alternative software/method? There are several unlock software but I don't feel like paying for it.


Optimal number of folds for nested cross-validation?

I'm doing nested cross-validation on a classification problem (inner loop to tune hyperparameters, outer loop to select algorithm). I've often heard that a reasonable number of folds for standard (I.e.: not nested) cross-validation is 5 or 10. Is there a similar rule of thumb for nested cross-validation? Should I have more folds in the inner or the outer? How many? I'm not looking for a definitive answer, I'm just curious to hear what people usually go for.


How to write a slash in inline code thing

Tried to add a comment to a post today, which ended up looking rather weird. What I had typed was:  On windows I believe you need to use `\` instead of `/`   As you can see in the first comment to this question, I don't exactly end up with what I thought I would... What's going on here?  Tried various combinations of double \\ and double `` (which seems to be impossible to have in an inline code thing...?), but couldn't get a good result. Ended up putting a space after the slash, which at least made it readable. Problem then was that the space between the inline code and the word "instead" seems to disappear O.o


Using ArcGis 10.0. What I am looking for is a way to get point features that are placed in a polygon to have the same "Address" value.  This is the same as the "Spatial Join" feature, however, I am only trying to extract one field not all the fields in the polygon layer.  Is there a way to "Spatial Join" from a polygon to a point feature while selecting what fields from the polygon you wish to keep?


Does light escape from highly dense bodies

If it were possible to launch a projectile at the speed of light from a body with the mass equal to that of our sun but a density such that its escape velocity was the speed of light how far would it go into empty space before its velocity dropped to one metre per second and how long would it take?  The question was only partly related to light escaping from dense bodies but before seeking the answer to light i will re-frame the question as follows;  If a projectile were launched from a body with the mass equal to that of our sun but a density such that its escape velocity was only 1/100th of the speed of light how far would it go into empty space before its velocity dropped to one metre per second and how long would it take? This move the question away from relativity issues. I think the distance is actually 2*G*M but how long does it take?


Solving ERROR 000732: Input Raster: Dataset Con( does not exist or is not supported in for loop?

I'm trying to reclassify rasters based on standard deviation. I created this code, but I think I'm wrong using "Con". I would like to assign value 1 to rasters >= to threshold and rasters <= to threshold1 and assign NODATA to the remaining.  This is my code:      import arcpy     ws2 = r"C:\unsupervised_classification\output\raster_tagliati_su_flowacc"     v_name_sc_img = r"C:\unsupervised_classification\output\outliers\{0}_out1.img"     v_name1_sc_img = r"C:\unsupervised_classification\output\outliers\{0}_out2.img"     arcpy.env.workspace = ws2     ras_names = arcpy.ListRasters()     for ras_name in ras_names:         name, ext = os.path.splitext(ras_name)         ras = arcpy.Raster(os.path.join(ws2, ras_name))         mean =float(arcpy.GetRasterProperties_management(ras, "MEAN").getOutput(0).replace(',','.'))         STD=float(arcpy.GetRasterProperties_management(ras, "STD").getOutput(0).replace(',','.'))         threshold_sup=mean + 3* STD         threshold_inf= mean - 3* STD         expression="Con(" + ras + "=>" + str(threshold_sup) + ",1,setnull([ras])"         a= arcpy.gp.RasterCalculator_sa(expression, v_name_sc_img)         expression1="Con(" + ras + "<=" + str(threshold_inf) + ",1,setnull([ras])"         b= arcpy.gp.RasterCalculator_sa(expression1, v_name1_sc_img)         a.save(v_name_sc_img.format(name))         b.save(v_name1_sc_img.format(name))   Arcpy give me this error:         RuntimeError: ERROR 000732: Input Raster: Dataset Con( does not exist or is not supported


I installed a fresh copy of Ubuntu server 17.10 on an older Core 2 Duo machine. Installation went without a hitch. When I start up though, I'm getting a non-stop series of ^@ entered into the prompt at about one every 750 ms. I didn't have this problem during the installation.   I have no idea where they come from; I tried unplugging all USB devices - no change. Tried unplugging front connectors - no change. I can't even login right now - I can't type my username fast enough to fit in the 750ms window.  Any idea what's going on?


I can't find this information documented anywhere.  What filesystems do iOS devices use?  Did Apple stick with HFS+?  Is it different between devices and iOS versions?


Why was Harry able to Accio the Cup portkey in GOF

In GOF the Tri-Wizard cup was a port key that takes Harry to the graveyard with Voldemort.   Aside from the fact that it then takes him back to Hogwarts when he did so he used the Accio spell to bring the cup to him in the graveyard.   Assuming that this shouldnt be possible during the tournemant otherwise any one of the participants could have simply used the spell to instantly win the Cup.  How did this then work in the graveyard ?


Ubuntu 18.04, fresh install, cannot install build-essential!

I downloaded a  fresh copy of ubuntu 18.04.2 installation disc (yes I did the md5 checksum of the image before making the bootable USB disk).  I then installed it on an old laptop.   I had an old installation of 14.04 on it, but I formatted the / partition (but not /home /opt/ partition), so there was no old libraries or binaries around, and install the new ubuntu 18.04 on the formatted / partition, but then mounted the old /home and /opt. Pretty standard stuff. When installing, I chose "download all updates" after installing, which I take is just doing apt-get update && apt-get dist-upgrade.  I then boot into the new installation. I did a  apt-get update apt-get install build-essential  The following packages have unmet dependencies: build-essential : Depends: gcc (>= 4:7.2) but it is not going to be installed Depends: g++ (>= 4:7.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.   This is a fresh installation and I could not install build essential! aptitude install build-essential throw up some none-sense errors like this  Depends: gcc-8-base (= 8-20180414-1ubuntu2) but 8.2.0-1ubuntu2~18.04 is installed   Not to be daunted, I tried a simpler fare:  apt-get install gcc Depends: gcc-7 (>= 7.3.0-12~) but it is not going to be    installed     E: Unable to correct problems, you have held broken packages.  But of course, I have gcc-8 installed!  aptitude install gcc libtsan0 : Depends: gcc-8-base (= 8-20180414-1ubuntu2) but 8.2.0-1ubuntu2~18.04 is installed liblsan0 : Depends: gcc-8-base (= 8-20180414-1ubuntu2) but 8.2.0-1ubuntu2~18.04 is installed libatomic1 : Depends: gcc-8-base (= 8-20180414-1ubuntu2) but 8.2.0-1ubuntu2~18.04 is installed   I tried to install the basic numerical package lapack  aptitude install liblapack3 libquadmath0 : Depends: gcc-8-base (= 8-20180414-1ubuntu2) but 8.2.0-1ubuntu2~18.04 is installed   There must be something really broken in ubuntu's end. My /etc/apt/sources.list is pristine, and has only these lines not  commented off:  deb http://archive.ubuntu.com/ubuntu bionic main restricted deb http://archive.ubuntu.com/ubuntu bionic universe deb http://archive.ubuntu.com/ubuntu bionic multiverse deb http://archive.ubuntu.com/ubuntu bionic partner   I've been using Ubuntu as my primary os for over 14 years, since 5.04 days, but never seen anything like this before. I thought by doing a fresh installation (rather than upgrade) on a LTS  version would be relatively safe...  Any help would be greatly appreciated by this very confused user.


I had windows 7 on my hard drive, then I installed Ubuntu 14.04 to dual boot (I have several partitions and ubuntu is working fine). But I don't know how to switch between the two in boot time. I read a menu for me to choose should appear at boot time, but it justs boots up to ubuntu without asking me... I know I didn't wipe my hard drive by accident because I can see my windows files from ubuntu.  So how do I switch between the two? Is there a button I should press or a setting I should turn on?


I want to create a jelly bear in Blender, but I don't know how to set the specific parameters. Does anyone know how to make a jelly material?


Cardinality of the set of hyperreal numbers

What is the cardinality of the set of hyperreal numbers?


Multi-word Compound Adjectives with Past Participle

In the sentence:  The cost overrun was due to a higher-than-budgeted consumption of electricity,  should higher-than-budgeted be hyphenated? It seems to me that it should definitely be hyphenated, given that the phrase is a compound adjective that precedes its noun. However, does that change when the last word is a participle?


Flex HTTPservice and POST, Sending Files?

I use a basic Post to send data to a Django server.  The data consists of a base64 encoded 640*380 PNG image dynamically created by the flex component.  <mx:HTTPService id="formSend" showBusyCursor="true"      useProxy="false" url="http://127.0.0.1/form/"      method="POST" result="formSentConfirmation(event)"    fault="formSendingFailed(event)"/>    private function sendForm(url:String, message:String, meteo:Number):void {     formSend.url = url;     var params:Object = { message: message, image_data: getEncodedImage() };      snapButton.label = "sending ...";     formSend.send(params); }   On the server side i can see that the data is in the request.POST not in request.FILES. That means the image is not send as a File with multiencode HTTP.   Will i get into trouble on a real server ? since the limit is 200k for urlencoded POST var. How to make HTTPservice send the data as a file? Any other solutions?   Thanks


Can I have a Django model that has a foreign key reference to itself?

Okay, how would I do this?  class Example(models.Model):   parent_example = models.ForeignKey(Example)   I want to have a model have a foreign key reference to itself.  When I try to create this I get a django validation error that Example is not yet defined.


Javascript dynamically created element onclick

i have my main.js file and code :  createPiece(row, column) {         const w = Math.round(this.dimensions.width/this.options.pieces.columns);         const h = Math.round(this.dimensions.height/this.options.pieces.rows);         const piece = document.createElement('div');         if (row==2 && column==0){         piece.style.backgroundImage = url(${this.imgsrc});          piece.className = 'piecehtml';`   In my html file :  const piecesObj = new Pieces(piecesEl, {             pieces: { rows: 4, columns: 4 },             delay: 10000,         });`   Everything works, divs are dynamically created. But how can i bind eventListener(onclick) to them ? I tried give divs IDs, classes..read about event delegation but nothings work..  Here is how the DOM looks
    Back

Explore


How does one delete one's StackOverflow Account?

It is much too difficult to post legitimate questions on this site.  How does one delete one's account if one has voted or posted in the past?


How do I get a transparent background with multiple render layers

I am trying to get an animation that has 3 render layers to have a transparent background.  How would I do this?  Simply checking the transparent box under film does not work with multiple layers  Thanks for any help.  (Cycles)


In HMAC-MD5 Implementation, why "i_key_pad" and "o_key_pad" if They Are Public and Constant?

Please Consider: English is My Second Language     Wikipedia article on HMACs shows a part of a HMAC-MD5 implementation making use of i_key_pad and o_key_pad:  # [...]  def hmac_md5(key, msg):     if len(key) > blocksize:         key = md5(key).digest()     key = key + bytearray(blocksize - len(key))     o_key_pad = key.translate(trans_5C)     i_key_pad = key.translate(trans_36)     return md5(o_key_pad + md5(i_key_pad + msg).digest())  # [...]   I really don't know how to even search this further, by I think I understand why they are used (padding). However I was wanting to find out if they also play a role in making the function more secure, and if so, why and how, if they are constant and public?  I could probably do the reading myself; I did try to search for this, but it seems such a specific topic that I, not being a native English speaker, could not find the appropriate English term for further research: if anyone could be kind enough to provide a link or a pointer, I shall be pretty appreciative.


Why was there no action taken on Quirrell despite Snape and Dumbledore suspecting him all along?

Quoting Quirrell from Harry Potter and the Philosopher's Stone, chapter 17, "The Man with Two Faces":     "No, no, no. I tried to kill you. Your friend Miss Granger accidentally knocked me over as she rushed to set fire to Snape at that Quidditch match. She broke my eye contact with you. Another few seconds and I'd have got you off that broom. I'd have managed it before then if Snape hadn't been muttering a countercurse, trying to save you."   Why was there no further investigation after this incident?  Snape merely decided to referee the next match to protect Harry. But why wasn't Quirrell interrogated/sacked immediately for attempted murder of a student? They were already suspecting Quirrell and some basic investigations must have revealed that it was him cursing Harry's broomstick.     Unfortunately, while everyone else was running around looking for it, Snape, who already suspected me, went straight to the third floor to head me off -- and not only did my troll fail to beat you to death, that three-headed dog didn't even manage to bite Snape's leg off properly.      "Yes," said Quirrell idly, walking around the mirror to look at the back. "He was on to me by that time, trying to find out how far I'd got. He suspected me all along. Tried to frighten me -- as though he could, when I had Lord Voldemort on my side..."   And     Harry leaned forward. Quirrell was mumbling something. Snape interrupted him.      "Have you found out how to get past that beast of Hagrid's yet?"      "B-b-but Severus, I--"      "You don't want me as your enemy, Quirrell," said Snape, taking a step toward him.      "I-I don't know what you--"      "You know perfectly well what I mean."      Harry Potter and the Philosopher's Stone, Chapter 13, Nicholas Flamel         Dumbledore turned a page, and said, without looking up, “Keep an eye on Quirrell, won’t you?”      Harry Potter and the Deathly Hallows, chapter 33, "The Prince's Tale"   Why wasn't Quirrell sacked, and arrested/questioned further about Voldemort if they knew he was trying to steal the Philosopher's stone for Voldemort, and was in contact with him?   Why didn't Dumbledore act more seriously? How could he have let Quirrell continue as a teacher after all this?


Related List in Master-Detail Relationship

I have the following Master-Detail relationship and would like to get the related Addresses for the Natural Person into a custom Visualforce page using a custom NaturalPersonController so when looking at a specific Natural Person record, I am also able to see it's related Addresses.    After sifting through many threads I found the following code, but I cannot see how to obtain the Addresses for the specific Natural Person.  public List<Address__c> getRelatedAddresses(){         List<Address__c> addressList = New List<Address__c>();         for(Natural_Person__c np:[SELECT Id, Name,(SELECT Id, Name FROM Addresses_r) FROM Natural_Person__c WHERE Id =: naturalPerson.Id]){            for(Address__c a:np.Addresses_r)                addressList.add(a);          }         return addressList;     }   When building I get the error:  Id, Name, (SELECT Id, Name FROM Addresses_r) FROM Natural_Person__c                                 ^ ERROR at Row:1:Column:40 Didn't understand relationship 'Addresses_r' in FROM part of query call. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names. Variable does not exist: Addresses_r   Any assistance to assist my thinking would be appreciated.


I am using SQL server, and I have been looking closely at the concept of key lookups,    So if you have a key lookup you can create an index with the 'include' columns to cover the non index columns you have in the select statement.  For instance,  SELECT ID, FirstName FROM OneIndex WHERE City = 'Las Vegas' GO   This index will include a key lookup,  CREATE NONCLUSTERED INDEX [IX_OneIndex_City] ON [dbo].[OneIndex] ( [City] ASC ) ON [PRIMARY] GO   But this one will remove the key lookup,  CREATE NONCLUSTERED INDEX [IX_OneIndex_Include] ON [dbo].[OneIndex] ( City ) INCLUDE (FirstName,ID) ON [PRIMARY] GO   I mean how much of an impact will this have on performance? The key lookup has an operator cost of 0.295969 (99%), but what does that really mean?  How do you know that you need the second index there, and at what point does it become the case that you are trying to add too many indexes and it is not worth it?  It seems to me that some queries can include index scans, key lookups, and still seem to perform very fast.


How to change password using recovery console?

Im having a problem entering my password in the login, every time i login its says thats wrong. Can I change it via recovery console?


Is this an inconsistency in the foundation of complex numbers?

I have always wondered this and apologize if I'm reposting, but I don't know how to find out the answer, also Im a little new to math but always liked it, and I'm learning and am starting out with complex analysis, so here goes. I believe:  $i={\sqrt {-1}} = {\sqrt {\frac{1}{-1}}} = {{\frac{\sqrt {1}}{\sqrt {-1}}}}=\frac{1}{i}$  But that gives you $i^2=1$ and not $-1$. Where did I go wrong?


Attempting to render animation with no visible results

I'm sorry if this is a painfully obvious question, but I have created an Icosphere whose size varies based on an audio input I have baked in. I'm hoping to be able to render a video of the ball changing sizes with the audio source, and then composite that video onto a different video I have. However, when I attempt to render, I get no visible results. Here's the settings:    And here's what it looks like when I'm rendering it:    And here's the output visual:    Can anyone give me some tips about what I'm doing wrong here? Thanks!


How Google search engine's algorithm determines the desirability of a website

This is a very general question: How exactly does Google determine the desirability of the content of a website to users (and therefore rank websites), given some search keywords? I kept seeing people saying that you should make you website great as the long-term strategy for SEO. But how exactly does Google know how great the content of a website is? If the important factor is the website being mentioned in many other quality websites, would the best strategy be to post the link of the website on as many quality websites as possible? If the number of visits by users given searching certain keywords is a factor, then wouldn't it further polarize the already popular and not-so-popular websites? Other than these two, I cannot come up with other ways that explain how Google's algorithm may work right now. I am really stuck on this issue. My website is for people to live stream their working and find work buddies, and there is little textual content on the website that is explicitly related to things like "study buddies." There are just user profiles on the website, and I do not want to add explicit content on the website. I cannot find my website page after page even my search keywords perfectly matched the content of the html meta description tag. I used to post the link on many subreddits but it was super inefficient in attracting the traffic to the site compared to having a high ranking on Google. Looking forward to any help!


I'm trying to write an ArrayList class in c++, but run into the linking problem with templates as described in many places. I don't want to copy all my code into the header file. That would just be ugly. And the vector class probably didn't do that either right?   So how would I include my ArrayList implementation to any cpp file?  Here is my header File:   //ArrayList.h #include <stdlib.h>  template <typename T> class ArrayList{     public:         ArrayList<T>(){             array = (T*)calloc(sizeof(T), 1);             length = 1;             elements = 0;         }          T get(int i);         void set(int i, T el);         void add(T el);         int expand(size_t n);         void remove(int i);         int size();         int reserved();         void fix_size();      private:         void copyAll(T arr1[], T arr2[], int len);         T *array;         int length, elements; };   And here is part of my .cpp file:  #include <stdlib.h> #include <stdio.h> #include "ArrayList.h"  template <typename T> T ArrayList<T>::get(int i){     if (i > this->elements || i < 0) return (T)0;     return this->array[i]; }  template <typename T> int ArrayList<T>::size(){     return elements; }  template <typename T> int ArrayList<T>::reserved(){     return length; }  template <typename T> int ArrayList<T>::expand(size_t n){     // implementation }  template <typename T> void ArrayList<T>::set(int i, T el){     // implementation }  template <typename T> void ArrayList<T>::add(T el){     // implementation }  template <typename T> void ArrayList<T>::remove(int i){     // implementation }  template <typename T> void ArrayList<T>::copyAll(T arr1[], T arr2[], int len){     // implementation } template <typename T> void ArrayList<T>::fix_size(){     // implementation }


Can I initialize a member pointer by passing it to a method and allocating it in the method?

I have a JFrame and a bunch of JTextFormattedField fields.  The initialization for each JTextFormattedField is the same, so I'd like to have a private method that I call for each JTextFormattedField.  This is what I tried to do:  JFrame Initialization:  myJFrame.getContentPane().add(addCharTextField(m_textField1, new textFieldFocusListener()), "cell 3 1 2 1,growx"); myJFrame.getContentPane().add(addCharTextField(m_textField2, new textFieldFocusListener()), "cell 3 2 2 1,growx"); myJFrame.getContentPane().add(addCharTextField(m_textField3, new textFieldFocusListener()), "cell 3 3 2 1,growx");   And the text field initialization method:  private JFormattedTextField addCharTextField (JFormattedTextField textField, FocusAdapter focusListener) {     textField = new JFormattedTextField();     textField.addFocusListener(focusListener);     textField.setEditable(false);     textField.setColumns(10);     return textField; }   I think there's might be problem with allocating the member variable after being passed to another method.  Later on in my program when I try to access m_textField1, I get a NullPointerException.  Does the garbage collector delete the JFormattedTextField at the end of addCharTextField?  Is there a way around this, besides allocating the JFormattedTextField back in the JFrame initialization routine?  Even if just for aesthetic purposes, I really wanted the initialization for each member variable in the JFrame initialization method to take up just one line of code.  Edit in response to this question being regarded as a duplicate:  My questions are: "Does the garbage collector delete the JFormattedTextField at the end of addCharTextField?"  (The answer was yes)  And "Is there a way around this, besides allocating the JFormattedTextField back in the JFrame initialization routine?" (again yes, but ugly).  The chosen answer in the other question that this one is regarded as a duplicate does not answer either of those.  Now after digging into some of the other answers, and reading the comments here, I was finally able to piece together what's going on in Java.  But that does not make this question a duplicate.  For what it's worth, the problem is a fundamental difference in the C++ 'new' and the Java 'new' that was confusing me.  Considering how much other syntax Java borrowed from C++ without big differences in usage, It took me a bit to wrap my head around around the differences between the 'new' usage.


Origin of the word "cancer"      The disease was first called cancer by Greek physician Hippocrates (460-370 BC). He is considered the “Father of Medicine”. Hippocrates used the terms carcinos and carcinoma to describe non-ulcer forming and ulcer-forming tumors. In Greek this means a crab. The description was names after the crab because the finger-like spreading projections from a cancer called to mind the shape of a crab. –      So the cancer cells spread in a way that tumor looks like a crab. Why? Why doesn't it, for example, have a potato-like spread in which cancer cells form a sphere?


I have gionee gpad g3 whose specifications are 512 mb ram, 1.2 ghz quadcore processor and 4 gb internal memory. my device is not listed on CM supportable device list. so should i install it?


Find the set of $n\in\Bbb Z^+$ with $M=\{n,n+1,n+2,n+3,n+4,n+5\}$ partitionable into two sets

Find the set of all positive integers $n$ with the property that the set $M=\{n, n + 1,n + 2,n + 3,n + 4,n + 5\}$ can be partitioned into two sets such that the product of the numbers in one set equals the product of the numbers in the other set.   If $n=1$ them $M=\{1,2,3,4,5,6\}$ and there is no such partition, so $n \ge 2$.  If the prime $p|n$ then either $p|2$ or $p|3$ or $p|5$ which means either $p=2$ or $p=3$ or $p=5$.  Suppose $n=2k$. Then $M=\{2k, 2k + 1,2k + 2,2k + 3,2k + 4,2k + 5\}$. I have no idea how to proceed.


For example, would the sentence "I hunger for success" differ from "I thirst for success"? Can hunger and thirst be used interchangeably when expressing desire, or is one more appropriate than the other and in what context?


Laravel 5.7 : Determine the total size of a folder in MB

In our application, the user can upload attachments(images/pdf/excel etc.) but they're allowed to upload like 1GB only. We have new feature where it will show the total size of the uploaded size.If the total size is exceed to 1GB, they need to upgrade their account.  Path  // This is the path of a uploaded files.  public/attachments/11/P-OP/  Question: How to get the total size of a folder?


Is there ArcGIS Symbol Library PDF for ArcGIS Desktop i.e. index for symbols/line weights?

ESRI has an  from 2004 showing all the symbols available in ArcGIS at the time and their names. I don't need it often but if I'm searching for a certain symbol and don't know its name it's sometimes easier to look at a few sheets of paper than to use the Symbol Selector. It doesn't seem like it's been updated for ArcGIS 10, though. I was wondering if anyone is aware of a new version of this, or if anyone has created one on their own they might be willing to share.


I have a value 100.0000. I need truncate it to only two decimal places like 100.00  I need to do it when it have 00's in 3rd and 4 places. How to do it??


I have Ubuntu 16.04 LTS.  Computer was fine yesterday afternoon, but when I fired it up in the evening it kept asking me for my admin password.  What I typed in was correct - many times.  I just can't get into my computer! It's not a new computer. Please advise. I am using my employer's laptop to write this.  Hello my computer keyboard is English and very old (the letters are fading on it)  I'm sorry, I don;t know what encrypted means.  I am just a typist (not a very good one on this laptop!)  Arijit - I'm sorry, I clicked on "him" to thank you and say was doing what you suggested and it has taken me to a website.  Could you please re-send your instructions again.  They seemed easy to follow but your post has disappeared!  Hello again Arijit - I realised what I have done - no need to re-send!  This is a struggle for me.


Do images that have been removed remain hosted?

Say I add an image to an answer. It's hosted on  like all images here are. Then say I remove it from my answer for whatever reason.  Does this image remain hosted by i.stack.imgur.com? I know that Imgur doesn't remove images, but I don't know if StackExchange's version does the same.  The reason why I ask now is because I think an answer of mine with images may be removed and I don't really want to re-host them because I avoid additional work whenever possible.


How do you show gcd( p+qi, p-qi) | 2 in this case?

Consider the ring of numbers $\Bbb{Z}$ [i] = {a + bi | a, b $\in$ $\Bbb{Z}$, $i^{2}$ = 1} Prove that if p and q are coprime integers, then gcd(p + qi, p - qi) | 2.  so gcd(p, q) = 1, you can say there exists a,b $\in$ $\Bbb{Z}$[i] where ap + bq = 1 Any help would be appreciated thanks


I'm using the \align* environment from the amsmath package.  How can I center one of the lines inside the environment?  In the following example, I want to the \vdots to be centered, instead of awkwardly aligned with the b above it.  \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} & a = (a_1, a_2) \\ & b = (b_1, b_2) \\ & \vdots \\ & z = (z_1, z_2) \end{align*} \end{document}


Working alone at their respective constant rate, Audery can complete a certain job in 4 hours, while Ferris can do the same job in 3 hours. Audery and Ferris worked together on the job and completed it in 2 hours, but while Audery worked this entire time, Ferris worked for some of the time and took 3 breaks of equal length. How many minutes long was each of Ferris's breaks ?   I started with their combined work rate  $1/4 +1/3 = 7/12$  So they can SHOULD be done with the job in $12/7 = 1.71\,hours$  As they did it in 2 hours, Ferris's combined "Recess" time = $2-1.71 = .28 \,hour$  He did it 3 times, so each of them is $0.285/3=.095 \,hours \,, \,or \,5.71 \,minutes$  But answer is 10 minutes. What gives ?


custom setting not displying correct picklist values based on the condtion

i have a custom setting called product and under that i created two fields called  and other is string field BD__c. i want to display picklist value based on string matching record. my custom setting looks like AAA |1,2,6,8 BBB |1,2,6,8 NNN|8 so when string value is 1,2,6,8 it should show AAA, BBB when its 8 it should show NNN, but i can see all the values even if BD__c==8  Here is my apex contoller method. can someone suggest me what i am missing  public List < SelectOption > getTR_picklistvalue() {     system.debug('******Start of getTR_picklistvalue');     List < SelectOption > options = new List < SelectOption > ();     options.add(new SelectOption('', '--Select--'));     Map < String, picklistvalue__c > Prod = picklistvalue__c.getAll();     List < String > keys = new List < String > (Prod.keySet());     keys.sort();     for (String key: keys) {         if (Prod.get(Key).BD__c == '1,2,6,8')             Options.add(new SelectOption(Prod.get(Key).picklistvalue__c, Prod.get(Key).Name));         else             Options.add(new SelectOption(Prod.get(Key).picklistvalue__c, Prod.get(Key).Name));         //options.sort();     }     return options;  }


I have a question about volatile in  C language.  I read some tutorial but still can not figure out, some says the volatile tells the complier optimizer that operations involving this variable should not be optimized in certain ways. this means anytime the value of a variable is change in register, then the value should affect the memory.  And also some say that volatile  mean that the value can be changed by means outside this code.  I can not understand the second saying, so the volatile variable can be changed by means outside of this code? how? and are these two says both right?


Let G be a group with even order. (no binary operation given)  Prove using only the definition of a group that there is $ a\in G$ s.t $a \neq e $ where $a= a^{-1}$  Originally I wanted to say if G is even then order of G =2k for some integer k and somehow show that some element with order k and order 2 must exist. sadly the group isnt nicely defined for me to do this.   Ive been trying to find a contradiction since G is a group if $a \in G$ then $a^{-1} \in G$  since G is finitely ordered the maximum order an element can have is the order of G and $ \forall a $ where $a\in G$ $a^2 \neq e$  EDIT: I'm not sure who thinks this is the same as the linked question but it using many items what i have not been taught nor does it even really answer the stated question the comment below the answer does however.


Right now I have a single mail server for IMAP. Let's say I want to introduce Exchange but not all users will be on it. Some users will be on my "legacy" IMAP, others on the "new" Exchange. Is it possible to "split up" your users (from the same e-mail domain) on two services like this? What would the MX records look like? My guess is that this isn't possible, but thought I'd ask.  By the way, I realize that Exchange can offer IMAP and all that, but my question is more about splitting users across services and the MX records. The actual protocols above are only examples.


What is the Speaker for the Dead cover depicting?

To me, it seems that whatever is on the cover of Speaker for the Dead--it appears to be a docking location for starships--is entirely unrelated to the story.  Am I missing something?  Is it depicting something from one of the other stories? (This seems highly unlikely, considering that Speaker was the second book written in the Ender saga)  Or is it just a science-fictiony looking picture that the publishers thought would sell more books than an image of anything that is actually in the story?


what does ∇ (upside down triangle) symbol mean in this problem

Given $f(x) = \frac{1}{2}x^TAx + b^Tx + \alpha $   where A is an nxn symmetric matrix, b is an n-dimensional vector, and alpha a scalar. Show that  $\bigtriangledown _{x}f(x) = Ax + b$   and  $H = \bigtriangledown ^{2}_{x}f(x) = A$   Is this simply a matter of taking a derivative with respect to X, how would you attack this one?


Calculating number of days between first and last frost in Google Earth Engine?

I want to do two things.   First, I want to map the number of nights that have temperatures below 0 in one year. This code seems to do this.   Second, I want to calculate the number of days between the first and last nights with sub-zero temps. I managed to get the first one in the series but the output is a format I don't know: 994118400000.   How can I get the last night the series and measure the span of time between the first and last dates in the series?  var NightSA = ee.ImageCollection('MODIS/006/MOD11A1').select('LST_Night_1km');  var count2001 = NightSA.filterDate('2001-07-01','2002-06-30').map(function(NightSA) {return NightSA.lt(0).set('system:time_start', NightSA.get('system:time_start'))});  var first2001 = count2001.first().get('system:time_start'); print (first2001);   var nightSurfaceTempVis = {   min: 0,   max: 365,   palette: [     '040274', '040281', '0502a3', '0502b8', '0502ce', '0502e6',     '0602ff', '235cb1', '307ef3', '269db1', '30c8e2', '32d3ef',     '3be285', '3ff38f', '86e26f', '3ae237', 'b5e22e', 'd6e21f',     'fff705', 'ffd611', 'ffb613', 'ff8b13', 'ff6e08', 'ff500d',     'ff0000', 'de0101', 'c21301', 'a71001', '911003'   ], };  Map.addLayer(count2001.count(),nightSurfaceTempVis,'Nights < 0');


I need to upload Data to MySql by CSV file with Hebrew Language Data

i need to upload data to MySql table by CSV file with Hebrew language data, its saving but showing as Question mark (???), i need to display it in hebrew.


How do I render a field value including its format?

I'm reading a field value and its format from the database. How would I render that value with the format?


How to identify unused CSS definitions from multiple CSS files in a project

A bunch of CSS files were pulled in and now I'm trying to clean things up a bit. How can I efficiently identify unused CSS definitions in a whole project?


creating a shortcut for a exe from a batch file

how to create a shortcut for a exe from a batch file.  i tried   call link.bat "c:\program Files\App1\program1.exe" "C:\Documents and Settings\%USERNAME%\Desktop" "C:\Documents and Settings\%USERNAME%\Start Menu\Programs" "Program1 shortcut"   but it did not worked.  link.bat can be found at


I am giving a LaTeX course and have the idea to let the students find and solve problems within a few documents. Basically they shall learn how to create minimal examples and read error messages.  However, currently I have no document with 'typical' errors around.  If someone has such examples from him- or herself or within this forum I would like to have the code or link. It does not matter if its short or long. It should just be enough to let the students play with it for some minutes.