When generating samples using variational autoencoder, we decode samples from $N(0,1)$ instead of $\mu + \sigma N(0,1)$

Context: I'm trying to understand the use of variational autoencoders as generators. My understanding:   During training, for an input point $x_i$ we want to learn latent $\mu_i$ and $\sigma_i$ and then sample $z_i \sim N(\mu_i, \sigma_i)$ and feed it to the decoder to get a reconstruction $\hat{x}_i = \text{decode}(z_i)$. But we can't do back propagation with sampling operator, so instead we reparametrize and use $z_i = \mu_i + \sigma_i \epsilon$ where $\epsilon \sim N(0, 1)$. Our reconstruction becomes $\hat{x}_i = \text{decode}(\mu_i + \sigma_i \epsilon)$.   However when we're done with training and ready to use it as generator, we sample $z \sim N(0, 1)$ and feed it to decoder: $x_{sample} = \text{decode}(z)$ .  The part that confuse me is that during training, the decode operation was done using $\mu_i + \sigma_i \epsilon$ which to my understanding this is using $N(\mu_i, \sigma_i)$ with different $\mu_i$ and $\sigma_i$ for each training example. However during the generation time, the decode operation is done (effectively) on $\epsilon$ alone from $N(0, 1)$. Why are we setting $\mu = 0$ and $\sigma = 1$ during generation (i.e. using $z = 0 + 1 \cdot \epsilon$)?


Is it possible to change your spawn point?

Is it possible to change the location you beam to on a planet? I've been to a couple of planets that have no usable resources near the spawn point and everything is a good distance East or West. It would be nice to be able to always beam down to there instead.


How to evaluate $ \lim_{(x,y)\to(0,0)}\frac{y^2\sin^2x}{x^4+y^4} $

$$ \lim_{(x,y)\to(0,0)}\frac{y^2\sin^2x}{x^4+y^4} $$  I believe the limit doesn't exist but I'm not sure how to prove/evaluate correctly. A hint would be great. Thanks.


Estimate number of songs a radio station has

Imagine the following problem:  You listen to a radio station and take notes how often was each song played. How can you estimate based on your notes (e.g. 30 songs played once, 2 played twice, one song three times) how many songs has the radio station available when we assume all the songs are played with a uniform distribution?


Im still pretty new to linux, but Ubuntu is my favorite. As the title says: Plugging in ethernet (internal network, no inet) cuts of Wifi inet. I am using AnyDesk to connect to a ubuntu 20 box. All works untill i connect an ethernet with access to local network resources. This network does not have internet. What happens is that my AnyDesk session gets disconnected. From what i see on the machine itself, its not to do with Anydesk and more to do with Ubuntu prefering the ethernet connection for all network traffic? How can it be configured to "stay on the internet" with WiFi, and just accept the ethernet alongside? I have experimentet some with Network/ Wifi under settings without luck. Cheers, have a good sunday!


How to publish map on web so that anybody can view it

I want to develop a web application which will allow any person to view map as per their interest combining different parameters. For example- I have literacy wise district map of some state and I wish to give an user interface(web based) which allow them to select district of their choice and represent map based on required query which is literacy in this case.   I am trying geo server but i am not sure this will help or not.


Unable to install ubuntu 16.10 on a PC with Nvidia GTX1080

I'm trying to install the new Ubuntu 16.10 from scratch.  When I select "tTry Ubuntu" or "Install Ubuntu" from the installation menu the monitor just turns off. I can hear system sounds but can't see anything on the screen.


Why does a = b (mod n) iff a - b is divisible by n?

I am specifically asking why the statement $a \equiv b \;(\bmod\; n)$ is equivalent to the statement $a = b + kn$, where k is some positive integer. Why is it that the difference of a and b has to be a multiple of n in order for them to have the same remainder when divided by n?


I'm writing a small template class that create and display LinkedList. I also have a class Node that writes in a different file(Node.h). I write the LinkedList class definition in the cpp file, which cause undefine template error in the default constructor. LinkedList.hpp #ifndef LinkedList_h #define LinkedList_h  #include "Node.h"  template<class T> class LinkedList { private:     Node<T> *headPtr;     int data; public:     LinkedList();     LinkedList(T A[], int n);     virtual ~LinkedList(); };   #endif  LinkedList.cpp #include "LinkedList.hpp"  template<class T> LinkedList<T>::LinkedList()             //ERROR: No template named "LinkedList" {     headPtr = nullptr;     data = 0; }  Do I forget to include something? //UPDATE: I'm adding my Node.h #ifndef Node_h #define Node_h  // --------------- class Prototype ----------------- // template<class T> class Node { private:     T item;     Node<T>* next; public:     Node();     Node(const T& item);     Node(const T& item, Node<T> * next);     void setItem(const T& item);     void setNext(Node<T>* nextNodePtr);          T getItem() const;     Node<T>* getNext() const; };  //         ------------ Member ------------- //  //Default Constructor template<class T> Node<T>:: Node() : next(nullptr) {} //End default constructor   //COPY CONSTRUCTOR1 template<class T> Node<T>:: Node(const T& item) {     this->item = item;     next = nullptr; } //END COPY CONSTRUCTOR1   //Copy Constructor2 template<class T> Node<T>:: Node(const T& item, Node<T> *nextNodePtr) {     this->item = item;     next(nextNodePtr); } //END COPY CONSTRUCTOR2   //MUTATOR template<class T> void Node<T>::setItem(const T& Item) {     this->item = item; }   //END SET ITEM  template<class T> void Node<T>::setNext(Node<T>* nextNodePtr) {     next(nextNodePtr); }//END SET NEXT       //ACCESOR template<class T> T Node<T>::getItem() const {     return item; }  template<class T> Node<T>* Node<T>::getNext() const {     return next; }       #endif /* Node_h */


How can I get the current date and time in UTC or GMT in Java?

When I create a new Date object, it is initialized to the current time but in the local timezone. How can I get the current date and time in GMT?


I start in X3: Albion prelude as a Humble Merchant. It starts with a ship called Mercury and another called the Discoverer.  I have travelled to the shipyard in Argon Prime, but I don't have any idea how to sell my ships.   How can I use the Discoverer? I haven't found a way to switch to the Discoverer cockpit. Am I allowed only to give it follow commands?


Does there exist a function $f:\mathbb{R}→\mathbb{R}$ such that $f(x+y)=f(x)+f(y)$ for all $x,y\in\mathbb{R}$; $f(1)=1$; and $f(\sqrt2)=3$?

Does there exist a function $f: \mathbb{R} \rightarrow \mathbb{R}$ such that $f(x+y)=f(x)+f(y)$ for all $x,y \in\mathbb{R}$; $f(1)=1$; and $f(\sqrt 2)=3$?  Intuitively, I believe the answer is no. However, I'm having a hard time proving this. My initial thought was a proof by contradiction. Somehow using  $f(1)=1$ and $f(\sqrt 2)=3$ to show that $f(x+y)\neq(x)+f(y)$ for some choice in $x$ and $y$. This didn't prove fruitful. My next thought was to use properties of functions satisfying the addition property of homomorphisms to prove that $f(\sqrt 2)\neq3$. For example, one such property is $f(nx)=nf(x)$ for all $n \in \mathbb{Z}, x \in \mathbb{R}$. With this, one could theoretically construct a proof by induction that $f(x)=x$ for all $x \in \mathbb{R}$. Once again, this didn't prove fruitful. After these failed attempts at showing such a function doesn't exist, I considered how to show that one does exist. For reference, this question was asked in the context of a Field Theory course. As such, the thought for how to construct a proof is to satisfy the addition property with some linear transformation and show that a correct selection of basis spans all of $\mathbb{R}$. This idea seems feasible, however I am not sure where to begin. Any advice on how to approach this problem is greatly appreciated.


I am trying to write a script that pairs up men and women for a secret Santa type event. So I have 2 lists of boys and girls, and want to carry out 2 way matching, but at the moment I can only seem to figure out how to do 1 way matching.  Furthermore the problem I have is this... in the example below if Kedrick gets Annabel, then Annabel can't get Kedrick. Kedrick has to get someone else from the list.  My current implementation is as follows, how can I extend its functionality to meet the abovementioned requirements?  boys = ['Kedrick','Jonathan','Tim','Philip','John','Quincy']; girls  = ['Annabel','Janet','Jocelyn','Pamela','Priscilla','Viviana'];  matches = []  for i in boys:     rand - randint(0, len(girls-1)     fullname = "{} matched with {}".format(i, girls(rand)     del girls(rand)     matches.append(fullname)  print matches


In SR length contraction, does matter flatten because the space around it flattens or does the structure of the matter flatten?

Most people believe length contraction is a real spatial phenomenon and if so there's nothing to contract in empty space and since matter  contains mostly empty space then it is only the structure of matter that is physically contracting.  So now, if a mirror is mounted on a 45 degree plank coming out of the wall, only the plank and mirror will thin in the direction of motion when observed externally. The angle of the mirror won't change because there's nothing to contract irregularly behind the mirror. But if you mount the mirror on an L-bracket, the bottom of the bracket will contract more than the top and hence the angle of the mirror will now change solely because of the fact you've added matter to the bottom? Is this really how length contraction would work? Is this why pulses of light don't look contracted to us as they travel because they have no material structure to contract?


"I left smoking", "I quit smoking", "I gave up smoking", "I stopped smoking" are these same?

For various such sentences in many cases I get confused, it seems different for different cases. I want to know if someone left doing something for permanantly then what should be used? Also give some examples for different cases. Suppose... "I left my bag" means "I forgot my bag". but If I want to say the same for permanentaly "I left bringing my bag". Where should we use "stop" and "quit" then?


I'm working on a web application that needs to prints silently -- that is without user involvement.  What's the best way to accomplish this?  It doesn't like it can be done with strictly with Javascript, nor Flash and/or AIR.  The closest I've seen involves a Java applet.  I can understand why it would a Bad Idea for just any website to be able to do this.  This specific instance is for an internal application, and it's perfectly acceptable if the user needs to add the URL to a trusted site list, install an addon, etc.


How can I get my Epson v500 scanner working?

I have a v500 scanner, but it doesn't show up in simple scan. I've turned it off and on a few times to see if that was the problem. Here is the usb information:  Bus 002 Device 008: ID 04b8:0130 Seiko Epson Corp. Perfection V500 (GT-X770)


How should I make this curly cupcake icing?

I've been working on a cupcake, but there is a problem in the icing.This question was closed, but the answer which I was recommended does not answer my question. I have edited it so it can be reopened. The result in the other question doesn't look close to the one in the reference with a lot of curves in it attached below: The orange icing has some really detailed curves. I've tried almost everything, from using a bezier curve modifier on a mesh, or trying to stack layers on top of each other, but without a resemblance of the reference. And also the materials, I tried subsurface scattering but I still don't feel the soft paste look in the materials. Please help, can't I get the same result in 3d? Or is it impossible? I really need help in this. I have tried a lot of things in the past few days. I have not found an answer that gives a result similar to the highly detailed and realistic loook of the icing in the reference. Thanks in advance.


Fastest and safest way to copy massive data from one external drive to another

I need to be able to copy about 2TB of data from an external drive (single USB external disk) to a another external drive (Drobo attached via Firewire).  Finder is not an option. If it hits any problem, it stops the process and I have to figure it out why it failed and start over. It could take me months to get through it.  I've read about CP and RSYNC but I'm not too familiar and I'm afraid I might get some of the switches wrong and miss files, or screw up the file dates, or worst...  Can anyone suggest how I might pull this off with minimum risk and cost?


Differentiability of this picewise function

$$f(x,y) = \left\{\begin{array}{cc} \frac{xy}{x^2+y^2} & (x,y)\neq(0,0) \\ f(x,y) = 0 & (x,y)=(0,0) \end{array}\right.$$  In order to verify if this function is differentiable, I tried to prove it by the theorem that says that if $\frac{∂f}{∂x}$ and $\frac{∂f}{∂y}$ exist and are continuous at the point $(x_0,y_0)$, then the function is differentiable at this point. So I did:  $$\frac{\partial f}{\partial x}(0,0) = \lim_{h\to 0}\frac{f(0+h,0)-f(0,0)}{h} = 0$$ $$\frac{\partial f}{\partial y}(0,0) = \lim_{h\to 0}\frac{f(0,0+h)-f(0,0)}{h} = 0$$  so we have that the partial derivatives at point $(0,0)$ is $0$. Now, if we take the derivative at $(x,y)\neq (0,0)$ and then take the limit of it as $(x,y)\to(0,0)$, we can see if the derivatives are continuous or not. So here it is:  $$\frac{\partial f}{\partial x}(x,y) = \frac{y(y^2-x^2)}{(x^2+y^2)}$$  but   $$\lim_{(x,y)\to(0,0)} \frac{y(y^2-x^2)}{(x^2+y^2)} $$ does not exist (by wolfram alpha... but can anybody tell me an easy way to prove this limit does not exist? easier than taking the limit in different directions?), therefore the derivative is not continuous at $(0,0)$, so we can't say $f$ is differentiable at $(0,0)$, but for $(x,y)\neq (0,0)$ the function is continuous, as it is a quotient of continuous functions. So $f$ is at least differentiable at $(x,y)\neq (0,0)$.   Now, to verify differentiability at $(0,0)$ I think we must use the limit definition of differentiablity: A function is differentiable at $(0,0)$ iff: $$\lim_{(h,k)\to (0,0)} \frac{f(0+h,0+k)-f(0,0)-\frac{\partial f}{\partial x}(0,0)-\frac{\partial f}{\partial y}(0,0)}{\|(h,k)\|} = 0$$  Let's calculate this limit:  $$\lim_{(h,k)\to (0,0)} \frac{f(0+h,0+k)-f(0,0)-\frac{\partial f}{\partial x}(0,0)-\frac{\partial f}{\partial y}(0,0)}{\|(h,k)\|} = \\ \lim_{(h,k)\to (0,0)} \frac{\frac{hk}{h^2+k^2}}{\sqrt{h^2+k^2}} = \\ \lim_{(h,k)\to (0,0)} \frac{hk}{(h^2+k^2)\sqrt{h^2+k^2}}$$  which I think, it's a limit that does not exist, therefore the function isn't differentiable at $(0,0)$


SSMS: Restart the values on a IDENTITY field

I am starting to use SSMS to manage a database and I am having a problem I would appreciate some help with.   I have a table that was created with  CREATE TABLE [dbo].[Machine](         [Machine_id] [int] IDENTITY(1,1) NOT NULL,         [Machine_alias] [nvarchar](50) NULL,         [Machine_ip] [nvarchar](50) NULL,         [Machine_stockWarning] [int] NOT NULL,     ..... CONSTRAINT [PK_machine] PRIMARY KEY CLUSTERED  (     [Machine_id] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] ) ON [PRIMARY] GO   Then I tried to add a row manually and the Machine_id became 1, but there was something wrong with this line so I deleted it.  Then I tried to add another row, but this time Machine_id is 2. How can I reinitiate the count so that it starts on 1 again?


Prove that the scattering operator is unitary

Let $H_0$ be some initial time-independent hamiltonian, and let $V$ be a scattering potential, such that the hamiltonian of a scattering process is: $$H=H_0+V$$ Define the quantum states $|\psi_i\rangle,|\psi_o\rangle$ such that: $$H_0|\psi_i\rangle=E|\psi_i\rangle \\ H|\psi_o\rangle=E|\psi_o\rangle$$ In other words, the scattering is elastic. We shall define the scattering operator $S$ such that: $$S|\psi_i\rangle=|\psi_o\rangle$$ Prove that $S$ is unitary.  In order to prove that $S$ is unitary, I must show that $S^\dagger S=I$ where $I$ is the identity operator. This is somewhat confusing - It seems like the operator $S$ is defined using merely $2$ quantum states; rather than a basis of quantum states. How is it possible to show that $S$ is unitary? I thought, maybe I should just prove $S$ is unitary considering that the hilbert space contains only the two given quantum states. In that case, I have to show $2$ matrix elements of $S^\dagger S$ are equal to $1$, and the other two are equal to $0$. I was able to show that: $$\langle\psi_i|S^\dagger S|\psi_i\rangle=\langle\psi_o|\psi_o\rangle=1$$ But in order to compute the other $3$ matrix elements, I have to know how the operator $S$ operates on $|\psi_o\rangle$, it seems. Unfortunately, I couldn't figure how to continue. Thank you  I read about this a-lot, and found out that this $S$ operator is connected to something called in the literature The $S$-Matrix. I've seen some explanations on why $S$ is unitary, most of them show this through conservation of probability current. But it seems that they assume the given quantum states have a very specific form - they tend to assume that $|\psi_i\rangle$ is an eigenstate of the momentum operator (fair enough), but they also assume that $|\psi_o\rangle$ is a simple superposition of two eigenstates of the momentum operator, both have the same wavevector (therefore they are only differentiated in sign). This is much less trivial.  Please not that $H_0$ isn't necessarily equal to the kinetic energy, and therefore, it cannot be assumed that $|\psi_i\rangle$ is a superposition of plane or spherical waves.


Asking a question about a potential tablet purchase (without getting yelled at)

I want to ask a question about a potential purchase of an unbranded Windows tablet.   Where is the best place I can ask such a question?  I am considering posting this question to Super User, but I don't want to get yelled at for being off topic.


Printing line between variables, how do I stop this?

Python code outputs a new line between first name, last name and email address, how can I stop this from happening? e.g.  ogchu @gmail.com ogchu @yahoo.com ogchu @hotmail.com ogchu @aol.com ogchu @bigpond.com   The first.txt and last.txt files have about 2,000 and 100 names respectively, so manually going through and doing stuff isn't really an option.  The aim of the code is to try and generate authentic looking email adresses, sometimes with a firstname and lastname, other times with 1 initial and a lastname, and other times with 2 initials and a lastname.  Code:  import random import string import time  count = 0 while count < 50:     x = random.randint(0, 1)     y = random.randint(0, 1)     z = random.randint(0, 1)     if x == 0:         prefix1 = random.choice(string.ascii_lowercase)         prefix2 = random.choice(string.ascii_lowercase)         first = ""     if x == 1:         prefix1 = random.choice(string.ascii_lowercase)         prefix2 = ""         first = ""     if x == 1 and y == 1:         prefix1 = ""         prefix2 = ""         first = random.choice(open('first.txt').readlines())      last = random.choice(open('last.txt').readlines())      print(prefix1 + prefix2 + first + last + "@gmail.com")     print(prefix1 + prefix2 + first + last + "@yahoo.com")     print(prefix1 + prefix2 + first + last + "@hotmail.com")     print(prefix1 + prefix2 + first + last + "@aol.com")     print(prefix1 + prefix2 + first + last + "@bigpond.com")     print(prefix1 + prefix2 + first + last + "@icloud.com")     print(prefix1 + prefix2 + first + last + "@outlook.com")     count = count + 1     time.sleep(3)


Why did Kenobi and Yoda 1v1 Vader and Palpatine?

Kenobi wanted to fight Palpatine as he couldn't stomach the thought of fighting Vader ("as he was a brother").  Yoda dismissed the idea as he knew Kenobi was too weak.  Yoda decided he would fight Palpatine and Kenobi against Vader.  Was he just overconfident?  He thought Kenobi could take care of Vader and he could take care of Palpatine?  Wasn't choosing to 1v1 Vader and Palpatine the extremely risky choice?  What if they both died (Yoda and Kenobi)?  Then what?  Wouldn't the more logical and less risky decision be to jump Palpatine? Then take care of Vader together after?  Or even less risky, jump Vader and double-team Palpatine later?  Either-way I say the most logical choice was to double team one of them (Vader or Palpatine), then regroup, maybe collect a couple other jedi survivors and jump the remaining one.


Can someone please explain wave particle duality for large bodies? Why don't large bodies exhibit wave like nature for example if I am walking with some momentum, the wavelength associated with me is $h/p$ what does this mean?


I happen to be running Ubuntu 12.10 on my machine and I noticed that it is no longer supported since there are no quantal repositories left and I can't update or install any software any more.  I tried to run update-manager, but it failed to download repository information since it doesn't exist any more.  How would I proceed to upgrade this machine (without a complete new install of course)?


Is there a relationship between $a_1\cdot a_2\cdot\dots\cdot a_n$ and $(a_1+1)\cdot(a_2+1)\cdot\dots\cdot(a_n+1)$?

I want to find an inequality between the to terms... Assuming all the $a_i $ to be positive, the one where $1$ is added to all the $a_i$ is bigger, but is there a real relationship? It doesn't have to be an inequality because I need something stronger than that...


I'm trying to get a program called "Freesurfer" set up with ubuntu on windows 10 using bash.  The program works fine but I need to use something called "Freeview" which is a graphical application within the program. For this they recommend using "Xming server" which I have downloaded.  I've read that I type: export DISPLAY=localhost:0.0 inside the ubuntu terminal and I've done so but when I try to start any graphical application be it freeview or firefox, I simply get the error in the title.  I'm not sure where the problem is and I've really tried to figure it out but to no avail. I'm a complete novice in Ubuntu so bear with me.


What is a good Photoshop book for photographers? I am interested in not too basic techniques (which I can more or less figure out by myself), which on the other hand give good results, without the need to be an expert pro.


Show that $f(z)=\sum_{k=1}^{n}|f_{k}(z)|$ cannot achieve a strictly local maximum inside a connected open set $D$.

Suppose that we have $f_{1},\cdots, f_{n}$ holomorphic in a connected open set $D$. For $$f(z):=|f_{1}(z)|+|f_{2}(z)|+\cdot+|f_{n}(z)|\ \ \text{for}\ \ z\in D.$$ I want to show that $f(z)$ cannot achieve a strict local maximum inside $D$.  I know that this must have something to do with the maximum modulus principle, especially we have some connected open set, this will enable us to directly conclude that a function $g(z)$ is constant all over $D$ if it is holomorphic in $D$ and $|g|$ achieves a local maximum at $z_{0}\in D$. However, I cannot connect this theorem to $f(z)$ because even thought $f_{k}(z)$'s are holomorphic, the summation of moduli of them may not be holomorphic. I know a way to show that  Let $D$ be a disc with radius $R$ and center $z_{0}$. Suppose $f_{k}(z)$'s are holomorphic on $D$ and continuous on $\partial D$ such that $f(z_{0})\geq z$ for all $z\in D\cup C$, then $f$ is constant in $D\cup C$.  I can prove this claim using Cauchy's Integral formula, but it is long. This lemma can certainly conclude the proof quickly, but I realized that I did not really use the "connectedness" of $D$.  Is there any way for me to drive a shorter proof using maximum modulus principle? Thank you!  Edit 1: The post is duplicated, but I'd still like to post a relatively complete proof. Thanks to Conrad, the following is a relatively complete proof: Suppose $\omega$ is the local maximum of $f(z):=\sum_{k=1}^{n}|f_{k}(z)|$. Note that as $f_{k}(\omega)$ is a complex number, unless it is zero, we can represent (uniquely) as $$f_{k}(\omega)=|f_{k}(\omega)|e^{it_{k}},\ \ t_{k}\in [0,2\pi).$$ Take $\alpha_{k}:=e^{-itk}$, and if $f_{k}(\omega)=0$ for some $k$, we tae $\alpha_{k}:=1$. Then, we have $$f_{k}(\omega)=\alpha_{k}^{-1}|f_{k}(\omega)|\ \text{with}\ |\alpha_{k}|=1.$$ Now, define $g(z):=\sum_{k=1}^{n}\alpha_{k}f_{k}(z).$ Then, we have \begin{align*} |g(z)|\leq \sum_{k=1}^{n}|\alpha_{k}||f_{k}(z)|=\sum_{k=1}^{n}|f_{k}(z)|&=f(z)\\ &\leq \sum_{k=1}^{n}|f_{k}(\omega)|=f(\omega)\\ &=\sum_{k=1}^{n}f_{k}(\omega)\alpha_{k}=g(\omega)\leq|g(\omega)|\ \ \ (*). \end{align*} Hence, $\omega$ is also the point at which $|g|$ achieves local max. As $g$ is holomorphic and $D$ is connected open, by the global maximum modulus principle, we conclude that $g(z)=C$ for some constant $C$ and for all $z\in D.$ But then, $(*)$ implies that $$|C|\leq C\leq |C|\implies C=|C|\implies C\geq 0.$$ So we have $g(z)=g(\omega)\geq 0$. But then (*) implies that $$g(\omega)=g(z)=|g(z)|\leq f(z)\leq f(\omega)\leq g(\omega),$$ and thus we must have $$g(\omega)=g(z)=f(z)=f(\omega)=C\geq 0\ \ \text{for all}\ \ z\in D,$$ and thus the local maximum of $f$ cannot be strict.  I really appreciate the patient and inspiring help from Conrad.


What can I do if a repository/PPA does not have a Release file?

When updating, I get the following error message:   W: The repository 'http://ppa.launchpad.net/mc3man/trusty-media/ubuntu xenial Release' does not have a Release file.   Here, I find another statement on this error:   This recommends removing certain PPAs; and, I'm not sure if I should do that since it might mean not getting the updates that I need.    Is this what I should do?


We know that space-time dimensions are 3+1 macroscopically, but what if 2+2?  Obviously it is tough to imagine two time dimensions, but mathematically we can always imagine as either having two parameters $t_1$ and $t_2$ or else in Lorentz matrix $$\eta_{00} = \eta_{11} = -1$$ and, $$\eta_{22} = \eta_{33} = 1.$$  Is there any physical reason for not taking this, like the norms become negative or something else?


Let's say I have Table A: BookingsPerPerson  Person_Id    ArrivalDate    DepartureDate 123456       2012-01-01     2012-01-04 213415       2012-01-02     2012-01-07   What I need to achieve with a view is the following:  Person_Id    ArrivalDate    DepartureDate    Jan-01    Jan-02    Jan-03    Jan-04    Jan-05    Jan-06    Jan-07 123456       2012-01-01     2012-01-04       1         1         1         1 213415       2012-01-02     2012-01-07                 1         1         1         1         1         1   The system is for events, so each hotel booking could take anything between 1 to 15 days but no more than that. Any ideas would be very much appreciated.


how to resolve "There are unresolved conflicts in the working directory" in Git desktop?

I'm new to Git and using GIT Desktop to pull and push code. I got this error while I was pulling code from the repository. I got this error how can I resolve it


how to upload a file on a mysql server if access to temp folder is not present

I have a CSV file that i want to enter into a table in my database which is present on a remote server. But presently I don't have access to temp folder so I cannot copy my file on that folder. Is there a way I can upload file from any random folder onto the database?  This is my command in sql server:  load data local  infile 'C:/Users/trainee_aiyer/Downloads/cash_ord.csv' into table cm_ord fields terminated by ',' enclosed by '"' lines terminated by '\n';   and my file path is this:  C:\Users\trainee_aiyer\Downloads\cash_ord.csv   I switched '\' to '/' as the prior was causing syntax errors. but I get an error saying   ERROR 2 (HY000): File 'C:/Users/trainee_aiyer/cash_ord.csv' not found (Errcode: 2 "No such file or directory")


Firefox stuck opening rar files as videos

When I try to open downloaded rar files, firefox attempts to handle it like a video by default. Choosing "other" option and heading to /usr/bin/file-roller isn't a permanent solution.


How can we prove $e^{x+y}=e^{x}e^{y}$ by the power series form of exponential function?

How can we prove $e^{x+y}=e^{x}e^{y}$ by the power series $$e^{x}=\sum_{k=0}^{\infty}\dfrac{x^{k}}{k!}\,\,\,?$$  Is there any simple method?


My 12.04 x64 system won't boot into GUI, but I can still use virtual console with my own account, so apparently it's the Windows Management System that's causing it, how can I reinstall it from tty, what's the apt-get command?


We're all familiar with basic tenets such as "information cannot be transmitted faster than light" and ideas such as information conservation in scenarios like Hawking radiation (and in general, obviously). The Holographic Principle says, loosely, that information about a volume of space is encoded on its two-dimensional surface in .   In all these contexts, I can take "information" to mean predictive or postdictive capability, i.e. information is what enables us to state what the outcome of a measurement was or will be (locally). But what is information, exactly? Do we have any kind of microscopic description of it? Is it just a concept and, if so, how can we talk about transmitting it?  I suspect this is probably as unanswerable as what constitutes an observer/measurement for wave function collapse, but I'd love to know if we have any formulation of what information is made of, so to speak. If I'm talking nonsense, as I suspect I may be, feel free to point this out.


Can there be a notification for bounties started on questions you've asked or answered?

Can there be a notification for those people that participated in the question in the past (either who asked or answered it) once a bounty is started on it?


This month is the 50th anniversary of Ronald Reagan's "The Speech". The title of his speech is however "A Time For Choosing". Why is it not "The Time For Choosing"?


Observationally distinguishing a galaxy of antimatter from a galaxy of matter

I was just wondering how, observationally, we would distinguish a distant galaxy of "normal" matter from one of antimatter. Maybe there is a simple answer but I don't see it. Once I started thinking about it, it bothered me.  I will often come across an article that says (paraphrasing) cosmologists can't account for asymmetry in matter/antimatter in the observable universe.  What technique do they use to distinguish the two remotely? Suns and "antisuns" would have the same spectra as would all the elements and their counterparts so far as I can tell. They have the same masses, so gravitationally they wouldn't be distinguishable. Am I missing something?


Two functions with same interal are the same function?

I don't know if this is true but I would like it to be: Suppose $(\Omega,\mathbb{B},\mu)$ is a probalility space, where $\mathbb{B}$ is atomless, and $\mathbb{A}$ is non tirvial $\sigma$-algebra contained in $\mathbb{B}$. If $f,g$ are two $\mathbb{A}$-measurable functions and for all $A\in\mathbb{A}$ we got that $\int_A fd\mu=\int_A gd\mu$ then $f=g$ a.s ?  If this isn't true I could say something about $f$ and $g$ ?


Show permutation representation is reducible, by finding G-invariant subspace

$(\pi,V) $ is the permutation representation of the symmetric group $S_5 $, $ V=C^5$ and the action of standard basis vectors of $ V$ is given by $\pi(\sigma)e_i=e_{\sigma(i)} $ for $\sigma\in S_5   $    $i=1,...,5$ Show that $(\pi , V) $ is not irreducible by finding a suitable G-invariant subspace.     Now I know that a subspace $W\in V $ is G-invariant if $\pi(g)W\in W $ for all $g \in G $, and V is irreducible if the only G-invariant subspaces are 0 and V.    How can I find G-invariant subspaces for this permutation representation, to prove reducibility? Thank you


I installed a new OS on my Lenovo laptop which had Windows 8.1.   While installing I was given options for partitioning. I lost all drives which were present in my Windows system. I am unable to see the drives in Ubuntu, it's just showing the partitioned part and rest of memory as free space  Are those drives lost permanently after partitioning? Can I restore them somehow?


Sci Fi short story about an alien invasion where the twist is that the invaders are human?

I read a story in a sci-fi short story collection (about 35 years ago) in which the POV character is fleeing invading aliens with his child in his arms (I think the wife is dead).  He knows he's about to be caught and killed by these rapacious, violent aliens who just want to destroy. Finally, the alien emerges from the trees and the story describes how the hero looks - feline, with a tail.  The hero confronts the killer - man!  It was a cool story that blew my 8th grade mind.  BTW, its not Frenzy.


Can be iPhone detected in 'Find my iPhone' service after recover?

I lost my iPhone and while it was turned on I could lock it and put in 'Lost mode' through  Apple 'Find My iPhone' service.  Unfortunately almost one month it's not found and until now I had hope to find it.  If somebody found it and recovered or re-installed iOS on that phone, can it be detected after turning on in my iCloud service anyway? or I lost it forever?


RDP Server - Last Logon Time of All RDP Users

I am attempting to get a list of "last logon time" of "all users" on Windows Server 2012. This is 'not' for Active Directory; This server's purpose is only for RDP Connections/RDP Logins. I currently only know of how to list a single user login, which is:  net user username | findstr /B /C:"Last logon"  Any ideas? Thanks in advance.


In Thor: Ragnarok, we see Thor and The Valkyrie discuss about his returning to Asgard. She says if Hela is truly there then Asgard is doomed. She also went on to say "Hela draws her power from Asgard as well as you." Is this true and if so what is the case now that Asgard is destroyed?


Let $ \{u_1, u_2, \ldots , u_k \} $ be $k$ vectors in $\mathbb{R}^n$. Show that  $\{u_1, u_2, \ldots, u_k\}$ is an orthonormal family if and only if the $n \times k$ matrix $U = \begin{bmatrix} u_1,u_2, \ldots, u_k \end{bmatrix}$ satisfies the equation $U^{\intercal} U = I_k$, where $I_k$ denotes the $k\times k$ identity matrix.  Can anyone help me prove the statement above?


First backup after upgrading to 20.04: when I try to start my backup, it asks me to install gvfs-backends. When accept to proceed with the installation, I obtain the following error: The following packages have unmet dependencies: gvfs-backends: Depends: libsmbclient (>= 2:4.10.0+dfsg) but 2:4.7.6+dfsg~ubuntu-0ubuntu2.20 is to be installed


Deleting many files results in "argument list too long"

I have 280 thousand photos to delete in a folder, but some videos to keep. In the folder, I gave the command: #rm *.jpg, but I get "argument list too long". When I create an argument to delete some of the photos, it works on a smaller set, like this: # rm 104-*.jpg.  How can I efficiently delete all the JPEG files in a directory without getting the message "Argument list too long"?  #rm -f *.jpg gives the same message.    Opening the folder in Caja uses too much memory and crashes. I am using .


Proof for reverse triangle inequality $|x - y| \ge |x| - |y|$.

Only step by step hint leading to the final proof.  How should I take it from here?


What would $2^{3^4}$ equate to? I can think of two rules that may apply:  $a^{b^c} = a^{(b^c)}$ (Making $2^{3^4} = 2^{81}\approx2.417\cdot10^{24}$) or  $a^{b^c} = (a^b)^c = a^{bc}$ (Making $2^{3^4} = 2^{12} = 4096$)  Which of these is true?


Get Raster Values from a Polygon Overlay in Opensource GIS Solutions

I have two layers. A polygon-shape-layer with many tiles and a raster-layer containing  with many categories in a colourmap. I want to obtain for each polygon in the shapelayer a sum of each land cover category of the raster-layer.  For example there is a polygon with id '2' and i want to Attributes like this for this polygon (in percent or square meters):   Arable land : 15 % Forest: 11 % Streets:2 % (... and so one)   I tried to do it in grass, qgis (no function), saga (just sums up every to a total value) r(total sum), but i still found no solution. Most plugins (zonal statistics in qgis) only support 0-1 raster layers. v.rast.stats didn't help either. Iam open to any good and smart solution!. Maybe i even used a wrong approach or made mistakes.   In Arcgis this task is quite easy, if am remember right, but i am still missing a good solution for your everyday linux user.  I am running a debian linux system and this why i can only use programs for this OS.    EDIT: Because this question still has so many views and visitors: I wrote a QGIS-plugin, which also is capable of calculating the landcover of raster layer. I have'nt coded a polygon overlay yet, but it definitely planed. Find the plugin  and install the Scipy library first.


Do Thorncaster Sliver's triggered abilities go on the stack?

I was guessing, since you actually target things instead of just dealing damage (similar to ), 's triggered abilities would actually go on the stack.  This came up in a separate game this past Friday when the Sliver deck attacked with two s, one , and two s while his opponent had a  as well as some 2/2.  The reason this even came up was because, if the triggers went on the stack, you could target things so they resolve in the following order:   Predatory Sliver targets Blood Artist, killing it. Predatory Sliver targets the 2/2, dealing one damage to it. Thorncaster Sliver targets the 2/2, killing it. and 5. Both Manaweft Slivers target the player, dealing one damage each to him.


I am using ECIES (Cryptobox as poncho pointed out) for public key encryption with ECC between Alice and Bob with secret/public keys $(a,A)$ and $(b,B)$ respectively. So Alice encrypts to Bob with  $$ Encrypt(aB,Message) $$  Additionally I would like to encrypt some of Alice's data such that only she can decrypt it. Is it safe to use ECIES to compute a shared secret from Alice's secret and public key as in  $$ Encrypt(aA,Message) $$  I know I could randomly generate a public key, but then I would have to store this key somewhere which I would like to avoid.


E: Could not open lock file /var/lib/apt/lists/lock - open (2: No such file or directory) E: Unable to lock the list directory


Use OneDrive as additional backup location

I'm trying to take advantage of the fact that OneDrive now offers unlimited space, and allows these files to not take up space locally. I already have a backup system in place, but I would like to add this as an additional offsite backup option.  My photo folder is 200GB+, and I want it to stay on my data drive, and be available offline. I imagine this is a common scenario.  Goals:   Keep my OneDrive on my SSD Keep an offline copy of my files on my data drive Keep an "online-only" copy of my photos in my OneDrive   My first instinct was junction points, but it sounds like they're not supported. Next, I tried Robocopy, but it doesn't like overwriting online-only files.  Is there a way to compare offline files and online-only OneDrive files, and overwrite those files if the source is newer?


What is the minimum pressure of a medium for which a sound wave can exist?

At what pressure will be particles in a medium be unable to form a sound wave when disturbed? How can this pressure be described mathematically?  My guess is that this would correspond to the point at which the restoring force due to pressure is unable to create a transverse wave and the disturbed particles travel infinitely far away before the hypothetical wave reaches it's amplitude. But I have no idea how you would even begin to start finding a quantitative value for this point.


$\mathrm{R}^n$ for non-integer values of $n$?

If I have a set of all possible $x$ for $x \in \mathrm{R}^n$ for non-natural number $n$, what meaning would this have and how would it be used?  For instance, if I had $\mathrm{R}^{2.5}$, would this be a set of something between 2-coordinates and 3-coordinates? Would it be only positive? Etc.  Thanks! I apologize in advance if this does not make sense.


How to get specific version (renedered with) of a feature layer in arcpy

Is there any way to get version of a layer loaded using arcpy.MakeFeatureLayer_management in arcpy with mssql server connection. There are tools that be used for several types of version related tasks like arcpy.ChangeVersion_management, arcpy.CreateVersionedView_management etc. but i want to know is there any way to know version of the that temporary layer in arcpy.  I tried  but it gives all the version in a sde connection- but i want to know specifically with which version layer is loaded.So i do not want arcpy.ListVersions(r'Database Connections\MSSQLSERVER.sde')  I tried arcpy.Describe but all in vain.  Below is the pseudocode-  arcpy.CreateDatabaseConnection_management("path","Test1.sde","SQL_SERVER","instance","DATABASE_AUTH","user","pass","SAVE_USERNAME","sde__my","#","TRANSACTIONAL","DBO.Test1","#")  Above line does not change the version to "DBO.Test1" if i run as above but if i run the gui tool it works perfectly so i need to check if version changed.   mywrk = r"path\Test1.sde" fc_cor1 = r'path\Test1.sde\sde__my.DBO.FIPS2900\sde__my.DBO.testfc_1' fc_cor2 = r'path\Test1.sde\sde__my.DBO.FIPS2900\sde__my.DBO.testfc'   arcpy.MakeFeatureLayer_management(fc_cor1,'fc1') arcpy.MakeFeatureLayer_management(fc_cor2,'fc2')  Now i want to know if version of 'fc1' and 'fc2' is DBO.Test1 otherwise change as below-  try:     arcpy.ChangeVersion_management("fc1","TRANSACTIONAL","DBO.Test1")     arcpy.ChangeVersion_management("fc2","TRANSACTIONAL","DBO.Test1") except:     pass     I am using ArcGIS 10.1 and MSSQL Server 2012


Homotopy invariance of singular cohomology groups

My question is the following: how can we prove that singular cohomology groups are homotopy invariants given that singular homology groups are? I am studying this subject, but in the texts I am using there is no mention to this fact.  What properties, if any, of the functor $\text{Hom}$ do we need to prove to get the result? Are there any references that demonstrate this result clearly? In which way do they prove it?  Thanks in advance for your time.  P.S.: I haven't yet been introduced to the Universal Coefficients Theorem, and I would like, if possible, the least expensive and most elementary proof available of this result. And again, thanks for the effort


Is there a way to disable or hide output thrown by FFmpeg?

I went through the documentation but couldn't find a solution. I'm hoping there is some kind of argument that will tell FFmpeg to not show the output in the console.  The output that I'm referring to is in the screenshot given below


I was playing LOTR War in the North the other day. Despite its inaccuracy, there was one part where I had to fight a stone giant. I don't recall this from any of the books I've read, which are numerous. So I would like to know.   Where did giants come from? Are they Maia spirits like those of the Eagles and Ents? Do they originate from Melkor (Morgoth)?


Why do androids hibernate in the Alien movies?

The android, Bishop, in the Aliens movie hibernates with the rest of the Sulaco crew for the 17 day voyage. Does he need to sleep?  Unlike the Alien movie where Ash hibernated because was merely pretending to be human, Bishop does not need to pretend. The Weyland-Yutani representative, Carter Burke, implied it is company policy to include an android among the crew.     BURKE: "It's just common practice. We always have a synthetic on board."   Why did Bishop sleep?


Why do people say "finite temperature" instead of "nonzero/positive temperature"?

This question is about terminology.  The term "finite temperature" is often used to mean positive temperature, or equivalently finite inverse temperature $\beta = 1/T$.  It seems to me that better choices would be "nonzero temperature" or "positive temperature" or even "finite inverse temperature".  But "finite temperature" seems to be the most common one.  Am I missing something?  Or is this one of those cases like "literally" where a word evolves to sometimes mean its opposite?


What does the "help post localization backfill" automatic deletion reason mean?

I noticed  (10k-only) that was apparently deleted by Community more than five years after it was originally deleted, but no events (neither undeletion nor anything else) have occurred since the post was first deleted.  The revision history shows two consecutive "post deleted" events: one in July 2009, and the other in December 2014:    Interestingly, the deletion banner on the question itself only later shows the Community user's later deletion:    I checked the post's , where the reason for the Community user deleting a post is usually listed if it wasn't as a result of the Roomba (e.g. was a negatively-scored post when the user's account was deleted, the user was destroyed, etc.). However, the relevant timeline entry lists some cryptic text, which I searched for and couldn't find the meaning of:    What does "help post localization backfill" mean, and why is there this extra "post deleted" event?


How do I go about publishing my late father’s legacy papers?

My father wrote some papers on cosmology that remained unpublished at the time of his death.  I have been looking for a publisher for them. I contacted IOP publishing but they said that, while Dad’s writings were interesting, they were not ready for publishing in any of their journals. For example, they need a reference list citing other current published research on the same topic.  I am not a scientist and have no idea how to do this. Where can I get help with this? Would something like  be a good idea?


What is the average temperature of mass in the universe?

That is, ignoring speculative concepts like Dark Matter and just summing across stars and gas clouds etc


Correcting /var permissions to it's original state

Ok I just royally screwed up my /var folder's permissions.  I thought I was inside /var/www and did a chmod xxx ./* on the parent folder /var instead.  Now all the permissions inside /var are messed up. What can I do to correct it?


I have upgraded a website to drupal 8 that I found a field created and I need to delete that field as it became useless.  The field is locked, and this prevents me delete it from the interface. I tried to delete it using , but it didn't work either.  The answer for  didn't work for me.  Edit: I tried that piece of code but didn't do any thing  $field = \Drupal::entityManager()->getStorage('field_config')->load($entity_type.$bundle_name.$field_machine_name); field_purge_field($field);   How do I delete fields that result locked? How do I unlock them before deleting them?


C++ compiler convert big-endian to little endian

Will the C++ compiler, VS2010, convert big-endian to little-endian data for use on x86 machines?


Windows 10 ephemeral port exhaustion but netstat says otherwise?

Recently I discovered that, after a while of using my computer, websites and certain tools stop connecting to the internet, while continuous TCP connections remain functional. The error message Chrome gives is just "error connection failed". I ONCE saw the event 4227 in Windows Event Viewer, which is why I started searching for information about it, and discovered the following command: netsh int ipv4 set dynamicport tcp start=10000 num=20000  After executing this command, everything works again, but running the computer for much longer causes the phenomenon again and I have to increase num to 30000. I'm assuming this would keep going on, but I usually just reboot. Many sources on the internet are using netstat to show which processes are potentially consuming all the ephemeral ports, and in their cases it shows a very long list, however, in my case, netstat never shows more than like 20-30 entries, yet performing netsh int ipv4 show dynamicport tcp  after a restart, results in:  Protocol tcp Dynamic Port Range  Start Port      : 10000 Number of Ports : 21025  A large number of ports, that eventually all get consumed, while netstat's amount of entries never really changes. This computer is not yet very old either (a month or so) with a Dell OEM Windows 10 (admittedly a lot of bloatware is factory installed). I'm not sure where to go from here. I've also tried TCPView but that also doesn't show an unhealthy amount of connections. I've disabled a couple of services and programs on startup already, thinking one of them is buggy and causing this, but not really helping. Besides the bloatware, I have installed the same programs as my previous computer, who never had this issue. Thanks in advance for the help! UPDATE 1: Perhaps it's worth mentioning that I have a network drive mounted to Z: on startup, which is hosted by a Linux SMB. UPDATE 2: In light of question:  I am monitoring TCPView and noticing this:  Chrome keeps making new connections, but the port number keeps increasing. Additionally, Tobii eye tracking software is doing the same with one port. And just to note that it is NOT a duplicate, the effect is the same as described in the above question, but the cause is different, and I need help finding out what the cause is. However, I will definitely perform the suggested actions already and keep this updated. UPDATE 3: I've executed a couple of actions which I thought could affect it:  Uninstalled VMWare Player (because it created an adapter and added something to my Wi-Fi adapter) Disabled IPv6 on the Wi-Fi adapter Secondary TCPView image:  I don't know how this is supposed to behave, is it normal that the port number keeps increasing globally? I would assume it re-uses released ports instead of grabbing the next one all the time.  UPDATE 4: Even though this question was warked as duplicate, it is NOT. I have since found a solution, and it is not described in the "duplicate" question, nor would it have solved that question.


Whitelist source IP addresses in CentOS 7

I want to set up CentOS 7 firewall such that, all the incoming requests will be blocked except from the originating IP addresses that I whitelist. And for the Whitelist IP addresses all the ports should be accessible.  I'm able to find few solutions (not sure whether they will work) for iptables but CentOS 7 uses firewalld. I can't find something similar to achieve with firewall-cmd command.  The interfaces are in Public Zone. I have also moved all the services to Public zone already.


There are too many negative markings on my questions on Stack Overflow. So I want to migrate my account to another new account. I want all my information to migrate except the questions.  Is it possible?


I have fitted a Poisson model to my data in R which includes two factors as independent variables. Each factor has 5 levels. I have used the  contrasts = list(FactorA='contr.sum', FactorB='contr.sum')command to change the constraints of my model. So, the parameter estimates for each factor sum to 1.   My problem is that I find it very difficult to understand what exactly the p-values of the estimates mean. For instance, if the p-value for one level of FactorA is significant, does this mean that it's generally significant for explaining the response variable or only in comparison to the other levels of the same factor?  Are the constraints that I used involved in this interpretation that I have to make for the significance of each level?  Also, I do not get any output for the last level of each factor. Is there any way to interpret those two levels?


While booting Ubuntu 16.04 I got the following message for the first time. That message was displayed 2 times and the booting was a lot slower than usual. What is the problem and why did that happen?  /dev/sda1: recovering journal /dev/sda1: Clearing orphaned inode 49910977 (uid=1000, gid=1000, mode=0100664, size=16773) /dev/sda1: Clearing orphaned inode 49909604 (uid=1000, gid=1000, mode=0100664, size=32768) /dev/sda1: Clearing orphaned inode 49909603 (uid=1000, gid=1000, mode=0100600, size=31780) /dev/sda1: Clearing orphaned inode 49909500 (uid=1000, gid=1000, mode=0100640, size=85) /dev/sda1: Clearing orphaned inode 49918132 (uid=1000, gid=1000, mode=0100664, size=16773) /dev/sda1: Clearing orphaned inode 49917725 (uid=1000, gid=1000, mode=0100664, size=16773) /dev/sda1: Clearing orphaned inode 49917436 (uid=1000, gid=1000, mode=0100664, size=16773) /dev/sda1: Clearing orphaned inode 49909685 (uid=1000, gid=1000, mode=0100600, size=262144) /dev/sda1: Clearing orphaned inode 3939849 (uid=1000, gid=1000, mode=0100664, size=8192) /dev/sda1: Clearing orphaned inode 49909471 (uid=1000, gid=1000, mode=0100664, size=16773) /dev/sda1: Clearing orphaned inode 49909480 (uid=1000, gid=1000, mode=0100664, size=16773) /dev/sda1: Clearing orphaned inode 49905527 (uid=1000, gid=1000, mode=0100664, size=16773) /dev/sda1: clean, 333655/60911568 files, 7757819/243171328 blocks


What I have now is:  /testfor @a {SelectedItemSlot:0,Inventory:[{Slot:0b,id:"diamond_pickaxe"}]}   How can I use the /testfor command to test a specific slot for a specific item that is enchanted?


Explain who command's ':0' value in 4th column's output

I have a graphical machine of rhel7, when i run who command , one of the outputs in 2nd column is ':0'. What does ':0' mean ?


Can standalone (not joined to domain ) Windows Server 2019 VM be configured to install updates automatically? I have such VM via small hosting provider (use it for software development) and once in a while when I login I am informed there are updates available. I get them downloaded, installed and then I reboot. I would rather prefer this to be done automatically - downloading, installing and rebooting. Because I don't log in that often I really want VM to be protected as soon as possible. Is there way to configure this? I checked all the settings under "Windows Update" but haven't found a way to set it up.


Alter Woocommerce posts per page attribute

I need to alter the post_per_page value of the displayed products.  In your opinion is possible to achieve this using a param added to the url? Something like www.siteurl.com/shop/?post_per_page=xx  Thanks to everyone.


Meaning of zero article in headlines: "Man has serious injuries after being rescued"

Man has serious injuries after being rescued from a "deep hole".    This is a headline in a newspaper and I am wondering why there is no article before "Man".  Why it is not  "A man"  as the sentence speaks about one and a specific man (although he is unknown to us yet) and not about "man" in general.  The sentence seems to me that it speaks about man in general or mankind because there is no article.  Thank you


Installing missing fonts in Texlive on Ubuntu

I switched from Windows 7 to Ubuntu 14.04. The following code was producing this .  \documentclass[oneside,english,a4paper, 12pt]{book} \usepackage{a4wide, fullpage, color, fancyhdr, lastpage, changepage, multirow, calligra, graphicx}     \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{geometry} \geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}  \makeatletter \let\ps@plain\ps@fancy% Plain page style = fancy page style \makeatother  \providecommand*{\wb}[2]{\fontsize{#1}{#2}\usefont{U}{webo}{xl}{n}} \newcommand*{\cdiam}{\prec\kern-2pt\succ} \IfFileExists{upquote.sty}{\usepackage{upquote}}{}  \begin{document} \begin{titlepage} \fontfamily{pbk}\selectfont   \begin{adjustwidth*}{1.5cm}{2cm}     \vspace*{4.5\baselineskip}     \centering     \begin{picture}(600, 0)       \multiput(0, 110)(20, 0){20}{{\wb{10}{12}4}}                    % Top Line       \multiput(-5, 90)(0,-21){35}{\rotatebox{90}{{\wb{10}{12}4}}}    % Left Line       \multiput(0,-630)(20, 0){20}{{\wb{10}{12}4}}                    % Bottom Line       \multiput(400,90)(0,-21){35}{\rotatebox{90}{{\wb{10}{12}4}}}    % Right Line     \end{picture}     \end{adjustwidth*}     \end{titlepage} \end{document}   But now on Ubuntu 14.04 I'm getting output with the border shows up as a string of the number 4. I would highly appreciate if someone guide me how to install the required fonts. Thanks


Use PHP to Get File Path/Extension from URL string

I'm reading up on pathinfo basename and the like. But all I am gathering from those are how to obtain the details I want when using an absolute/relative path. What I am trying to figure out is how can I get the filename.ext from a url string (not necessarily the active URL, maybe a user input url).   Currently I am looking to get the file name and extension of user provided URLs containing images. But may want to extend this further down the road. So in all I would like to figure out how I can get the filename and extension  I thought about trying to use some preg_match logic finding the last / in the url, spliting it, finding the ? from that (if any) and removing the point beyond that and then trying to sort it out after with whats left. but I get stuck in cases where the file has multiple . in the name ie: 2012.01.01-name.jpg  So I am looking for a sane optimal way of doing this without to much margin of error.


I have some sushi rice, In the packet the expiry date is given as Jan 2016, But the rice seems fine. Is it alright for me to use it to make sushi with it ?


Will duplicate international (i18n) content hinder SEO rankings?

Google clearly states that duplicate content within a single, or multiple, domains is not advised. This is understood, but I am not sure of any exceptions for sites with region-specific content that is often replicated across locales.  For example, a site's /en-us/about page could be identical to /en-uk/about, whereas most likely /en-ja/about is unique.  Are GYM smart enough to understand that the initial URL depth is a locale specifier? Is there any robots.txt or header, etc, trickery that I should include to outline the site's international structure?


Where is the subject in "as was traditional for unmarried women"?

My senior English teacher was a tad bit confused where the subject for was is in this sentence:     As was traditional for unmarried women, Jane lived at home her entire life.


What is that ritual performed by the two Mexican assassins?

In S03E01 of Breaking Bad, Tuco's two cousins crawl into a temple where they put a sketch of Heisenberg onto a shrine.   There are others doing this ritual too, what is it?


Prove equinumerosity between $2^\mathbb{N}$ and R total orderings

T=$\left\{R\vert R \text{ is a total order over } \mathbb{N}\right\}$  Prove that T and $2^\mathbb{N}$ are equinumerous.


Why do grape-flavored foods taste different than actual grapes?

Grapes are one of my favorite fruits, but I typically don't like grape-flavored foods. For example, grape jelly or grape candies (like Jolly Ranchers) have a distinctly different taste. I imagine some of the taste perception has to do with water content. Why is it so different?


Prove by strong induction that $2^n$ divides $p_n$ for all integers n ≥ 1

Let $p_1 = 4$, $p_2 = 8$, and $p_n = 6p_{n−1} − 4p_{n−2}$ for each integer $n ≥ 3$.   Prove by strong induction that $2^n$ divides $p_n$ for all integers $n ≥ 1$   I got up to the base step where by you prove for $p_3$ but unsure about the strong induction step


Evaluating sums using residues $(-1)^n/n^2$

I am an alien towards compelx analysis, with very little know I am posing a question, who someone may want to help with.  Evaluate:   $$\frac{1}{4}\cdot \sum_{n=1}^{\infty} \frac{(-1)^n}{n^2}$$  In disguise this is similar to $\zeta(2)$  but how can this be done using residues, and complex analysis?  I need some help. I am just interested.   The answer is $\displaystyle \frac{\pi^2}{48}$


How to show Cantor Lebesgue function is not absolutely continuous?

Just from their definitions without any other propositions or theorems?  Thanks for your hint!


US currency is only required to be accepted for actual debt

If I go to a drivethru, order food, get to the cash register, have I created a debt?   They have already begun preparing and bagging my food? Do they have to take my 50 or $100 bill? At what point have I created a debt?


You may have played NES Console games when you were younger -- I know I did. I remember playing Duck Hunt, for one:   (source: )    Duck Hunt came with a peripheral called the NES Zapper:    How does it work? How did the NES, which was far less advanced than modern pointing consoles like the Wii, know where we were aiming?


So, I know this is a highly debated question... Okay so, can you use an Induction Motor to run two modified alternators at the same time, with one of them running the Electromagnets in the Induction motor and the other generating into something else. Will this create an excess of energy?   I know the name of this has already been asked but I'm wondering specifically about the above section.


How does a petty marijuana possession charge affect graduate admissions in math?

I was charged with possession of marijuana earlier this year. In my state, it's not a crime, just a violation with a fine. Technically, it's not even a conviction because there's a diversion program that results in the charge being dropped after a year. The problem is that it won't be dismissed and expunged until after I apply for graduate school. So right now the charge is listed as pending.   Do applications for a PhD in math ask about petty charges like this? I know some ask about felonies and convictions, but that doesn't apply here. I know if I were applying for law school or medical school, my situation would be very different. How badly will this affect my application should this show up in a preliminary background check? Do math graduate programs even do background checks?


How to find the list of apt-get mirrors, and specify one to use?

The default mirror for my apt-get is always returning Hash Sum mismatch.   How do I find the list of mirrors and specify one? I am not concerned about speed. I just want to install updates reliably.


when i run my application on android emulator it crashed though there is no error in my code.it shows the following error

Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'android.view.View android.widget.EditText.findViewById(int)' on a null object reference at com.example.temperaturecricket.MainActivity.onCreate(MainActivity.java:25).  this is where it highlights my error.       ''' **`etChirps.findViewById(R.id.etChirps);`** '''  this is my whole code `package com.example.temperaturecricket; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast;  import java.text.DecimalFormat;  public class MainActivity extends AppCompatActivity {      EditText etChirps;     Button btnCalculate;     TextView tvResults;     DecimalFormat formatter;       @Override     protected void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         etChirps = findViewById(R.id.etChirps);          btnCalculate.findViewById(R.id.btnCalculate);         tvResults.findViewById(R.id.tvResults);          tvResults.setVisibility(View.GONE);             formatter=new DecimalFormat("#0.0");         btnCalculate.setOnClickListener(new View.OnClickListener() {             @Override             public void onClick(View v)             {                 if(etChirps.getText().toString().isEmpty())                 {                     Toast.makeText(MainActivity.this,"Please Enter All fields ",Toast.LENGTH_SHORT).show();                 }                 else                 {                     int chirps=Integer.parseInt(etChirps.getText().toString().trim());                     double temp=(chirps/3.0)+4;                     String result="The Approx Temperature outside is : "+formatter.format(temp)+" Degree Celsius";                     tvResults.setText(result);                     tvResults.setVisibility(View.VISIBLE);                 }              }         });     }   }'


Normality test for anova mixed model in SPSS: I did it in two ways but the results are contrasting

I'm conducting an ANOVA mixed model 2 X 3 (group X condition). Right now, I'm checking for the assumptions of ANOVA, such as normality. I should check indipendently for group and condition, right? I did it in two ways: 1) By, at first, splitting the sample (selecting "Data/Split file..." and entering the group variable) and then running the "1 sample Kolmogorov-Smirnov Test" and choosing "Normal distribution". 2) Without splitting the sample, but selecting "Analyze/Descriptive Statistics/Explore..." and entering the group variable as a factor and clicking "Plots..." and checking "Normality plots with test".  The 1) returns all variables absolutely not significant (0.80 < p < 0.90). The 2) ran both the Kolmogorov-Smirnov and Shapiro-Wilk tests, with the former resulting not significant for all variables (but all p values lower than or equal to 0.20), instead the latter in some cases considerably significant (e.g. 0.012).  I don't know which one should I trust, can you help me? Thanks!


wich version of ubuntu is best suited for a pentium 4?

hello i found an old pentium 4 in my garage and i would like  to ask wich version of ubuntu is the best suited for a pentium 4 because i woul like to try ubuntu.  the pc have: 3gb of Ram, 40gb Harddrive, 2.3 ghz processor,  than you in advance.


What is the difference between a stock being "listed" on an exchange and trading on an exchange

US Stocks are typically only listed on one exchange, generally NYSE or NASDAQ.  There have been some in the past that were listed on both exchanges, but seems like that isn't something companies do anymore.  I am trying to learn more about exchanges and markets and was looking in depth at the mechanics behind IEX; what is the difference between being listed on an exchange and simply trading on an exchange?  For example, IEX was approved to become a listing exchange, but their only "listed" company IBKR left recently to go back to the NASDAQ and IEX has since shuttered their corporate listings product line.  IBKR could trade on the IEX before, during, and after it was "listed" on the IEX, so I'm really not sure what the difference or significance today is regarding being officially listed on an exchange and simply trading is?  I know that each exchange has its own rules and regulations to being listed with it, but other than that (ex NYSE has more stringent requirements), is there any significance?  There's nothing that limits what exchanges a US stock can trade on in the US (provided it is registered with the SEC).


I am working on an application (zend framework) in which user can create their event and invite other users. Its current time zone is set to IST. But when any user from other country like USA, UK create an event its shows event expired because of its current time zone.  Is there any way to set time zone dynamically on bases of country ? Can we get timezone of any location using php ? Please guide me in right direction.  Many Thanks,  M.


bone broth..chicken carcass, lamb bones with some meat left out for 3 hours from pressure cooking

I left my bone broth out after pressure cooking for 3 hours. It was warm when I got home and consisted of a chicken carcass, lamb bones with a bit of meat and the second boiling of marrow beef bones with some vinegar. It gelled so perfectly in the fridge but should we eat it? Would boiling it again for a while make it safe?


Is there a specific bluetooth module for FTP? Or any bluetooth module can be used for FTP.. Because when i see the modules they are specified as being Serial. Will HC 06 be to  FTP? If not to what to use with STM32F4 to receive a file from android device via Bluetooth? (Q2) i am getting modules which say stereo audio transmission, can these be used


String with a minus sign passed to a function in python

Why is a string with a minus sign not recognised properly when passed to a function in python? The simple code def f(s):     print(s)     if s is 'a-b':         print('I expect this to be printed.')     else:         print('Instead, this is printed.')   s = 'a-b' if s is 'a-b':     print('Oustide everything is fine.') f(s)  gives the output Oustide everything is fine. a-b Instead, this is printed.  Can someone explain please why this happens? Without the minus sign everything is fine.


Basically, I'm tasked to study the electrical properties of different screws (all in an unspecified titanium alloy, some fully anodized, others only the head) based on previous measurements that estimated the resistance around 0.15 Ohm for the one shown below.  I wanted to try a few different methods the see what was the resistance in DC, before moving on AC where i will study the impedance in function of frequency. In DC, the way I was considering doing the measurements is linked below.  I've tried different configurations. I'm not using crocodile clip, because the wires have a higher impedance, and they don't stay put. So, I'm using twisted wires and "pinch grips".  The results are more stable (around 235 mOhms) than my first try with a 2 point measurement, there is no more significant wild fluctuation. However, I get very similar resistance value for configuration 1 and 2. Why is that? Also, when I try to include the head of the screw in the measurement, the values get really weird. Is it because it is anodized, or am I just doing something wrong?  I know the way I'm doing things is not optimal, so what could I improve, or which method should I use in order to obtain precise measurements?  Thank you for helping me !  the link:


Ubuntu 18.04 bond with netplan duplicate MAC address after cloning

I have a situation in which I have many identical servers to setup Ubuntu 18.04 on. I set one server up, took an image with Clonezilla and then restored on all others.  Normally, I go to each of these servers, then I apply the necessary changes to /etc/hostname, /etc/hosts and the netplan YAML file to reflect the correct settings.  The problem is that the bond I have configured in the netplan file always comes up with an identical MAC address to the server I took an image from, so the network fails completely.  Any idea how can I fix that?


Displaying dynamic table in Data Driven Pages environment?

I am creating a map series that has many polygons per sheet. There is annotation for the polygons however some polygons are very small with no annotation for them (annotation would completely hide a polygon). Thus, I have an attribute table where labels are stored for those specific polygons.   How can I have that table displayed on the map, with only the attribute values per sheet, rather than all 2000+ values?   I am looking for a simple, dynamic solution.


Let $f(x)$ be a polynomial of degree n with real coefficient and such that $f(x)\geq0$ for every real number $x$ prove that $ f(x)+f'(x)+\dots+f^{(n)}(x)\geq0 $ for all real number $x$. I thought about the following. Since $f(x)$ is positive for all real number, then $f(x)$ must be even function, with a positive leading coefficient. Any hints will be appreciated


Will all questions eventually become popular, notable and famous? Do we have a problem with that?

I'm no longer active on Stack Overflow, but it seems that any time I land on the site there's a notification that I've earned a badge for a question that has become  or . It seems literally only a matter of time before I "earn" a gold badge for having a  question.  Is there some time limit or other method to prevent questions from accumulating page views for the life of the site?  More importantly, is this a feature or a bug?  On the one hand, when I see the notification that I got a badge just for not deleting my account, I shake my head and think, "Silly system!  Don't you know about the ?"  On the other hand, I actually get a little  when I think that my question was one that other people were interested in reading. I feel like I helped someone who was searching for an answer.  On the third hand, who cares?


The volume "Filesystem Root" has only 533.9 MB disk space remaining

I have run into this problem two days ago. The OS warns me that root has limited disk space; however this should not be the case since I have 3 separate logical partitions for Ubuntu. Also it allows me to click the button examine, but I am not able to locate the problem that way? What can I do and what is the remedy? Inform me if further information is required.  Thanks for your assistance  Can I somehow include /usr directory in another mount point or the partition for the home folder without risking losing my data?  The culprit seems to be the /usr directory. The problem occurred after a full TexLive LaTeX installation. The output of lsblk is as follows:


What is the meaning of the notation $]a,b[$?

I've seen the notation $]a,b[$ in several questions on this site, but I am not familiar with it.  Can someone clue me in?


I want to show that the variable $X$ is significant. In model 1, I use financial statements variables, other macroeconomic variables and $X$. Here, $X$ is siginificant at a 10% level and $R^2$ is 0.731. Since financial statements could have time lag, I have to check that effect so I made adjusted model 2. In here $X$ is insignificant but $R^2$ is 0.721. So, I can say that "since $R^2$ is decreased, model 1 is better and $X$ is significant variable"?


HP Stream 7 originally runs Windows - Can it run Android viably?

I have an HP Stream 7 that I'm not using here (since I've bought my Asus T100), and I was thinking about putting an Android to run, instead of the Windows OS. I know that is possible, but my question is: is it viable? Has someone already tested this using the same model? Does it have any problems with drivers, or something that Android does not recognize? If it works, I'll definitely give it a shot.


Average norm of a N-dimensional vector given by a normal distribution

I'm interested in knowing what is the expected value of the norm of a vector obtained from a gaussian distribution in function of the number of dimensions $N$ and $\sigma$, i.e:  $$E[\|x\|_2],\quad x\sim\mathcal{N}(0,\sigma I_N)$$  I tried to search for this but didn't find anything. Can I get some help from you?


I have been trying to solve this question but reaching nowhere  Starting from a countable basis of $\mathbb R$ ,I am asked to construct a Borel set such that $0<m(E \cap I)<m(I)$ for every non empty segment I.  And then must $E$ be of infinite measure?  Here $m$ denotes the Lebesgue measure


How to cool large amount of liquids in a home kitchen?

I like to prep and freeze large amounts of soup at once but have come to understand that I probably have a food safety issue cooling them in my refrigerator.  I had been putting them is a cube shaped cambro, but have noticed that it takes way, way too long to get it down to 40°F.  My research turned up a lot of food safety strategies for commercial kitchens with a lot of equipment/space that I don't have.  What methods can a home cook use to get a large amount (say, ten quarts) of liquid down to safe temperatures in time?


I accidentally purchase a larger 24vac transformer   Primary 120v/208v/240v  Secondary 24 Output 40VA 50/60 HZ  This transformer is not center tapped. Rather has only 1 green and 1 red wire on the secondary. Can this be used as a linear power supply with bridge rectifier?


Do we have to check anything other than DDR while buying RAM?

After going through lot of blogs, I went ahead and brought  Kingston DDR2 4GB RAM. After the delivery when I tried to install it, i was unable to fit inside the ram slot.  Am I missing something here because I have like checked it 100 times that my RAM is of DDR2. Please help.  Here are pictures of the RAM. The Transcend (below, one am using, DDR2) while the Kingston is the one I ordered. So maybe I got the faulty RAM?


I have this line of code:  assert 0 <= j <= self.n, "First edge needs to be between 0 and {}".format(self.n)   I want pep8 to be happy, but I don't understand how to break this line. I tried breaking after the comma and got invalid syntax. I've tried breaking the string with additional ""'s as in . PEP8 was happy but the assert only produced the first half of the message.  What is the proper way to break long assert strings?


Can lower inner fence be a negative number?

I checked my calculations and I am getting a negative number. Can LIFs be negative?


How to force search engines not to crawl my site, is there any special mark on them?

I want to block search engines from crawling my websites. Atleast for Msn, Yahoo, Google, and Yandex.   i dont really trust robot.txt. Because they can simply ignore it and continue crawling.  I would use rails as my web framework.  How can i do it, atleast to decrease the posibility destructive action they do by simply crawling a specific page.  Is there any special mark or identifier on them while they are crawling a site ?  This question marked as duplicate with   Wich is i guess a mistake. Above questions is asking specifically why. I dont really care why google crawling my site. I just want to block it. Show 404 status.


Bosons occupy the same quantum states, even if fermions obey Pauli's Exclusion Principle. Heisenberg's Uncertainty Principle rules out determining the quantum states occupied by two close fermions, etc....  I mean to say is it impossible in Quantum Mechanics to trace the history, or follow it, of a boson or fermion? There are inevitable errors. Why are we concerned about the loss of information in a black hole, where degeneracy breaks down? I mean, how are two mysteries different, with respect to conservation of information? We have laws of black hole thermodynamics, which prohibit the loss of energy...


Is "This is the only mammal that can fly" an independent clause?

We were taught that an independent clause must have a complete thought/idea.     This is the only mammal that can fly.     How can "This is the only mammal" be treated as an independent clause?            It was a grammar lesson and there was no context there. In this situation how can I decide that it is an independent clause? Though for sure, there should be an independent clause in a correct sentence, and the clause starting with 'that' is not independent. But by this way, I can't fit it with the rule that every independent clause must have a complete thought. A simple sentence must have an independent clause. If the sentence has no independent clause how we can call it a sentence? Can even two dependent clauses form a sentence?


Do I have to clear customs when transit via the US on my way to / coming from somewehere else?

I shall arrive at Washington Dulles Airport (IAD) by Emirates flight to catch a united airlines flight to Detroit after 3.5 hours. What steps shall I have to go through? Is the connection time enough? I have US F1 visa.


Cannot set property 'name' of undefined JS

I'm trying to understand JavaScript prototype and when I attempted coding this I get an error:  function Person(firstname, last name) {   this.firstname = firstname;   this.lastname = lastname; }  var A = new Person('John', 'Doe');  A.prototype.name = 'Toby';   I get an error stating cannot set property 'name' of undefined. Can't i assign a property on it's prototype of Object A. This is just a simple exercise to get an understanding of prototypes


Why this python code gives me output "False"?

I don't know the reason for this output("False"). Please explain.  sum=0 for i in range(10):     sum+=0.1 print (sum==1.0)


Running sudo apt upgrade firefox gives me: firefox is already the newest version (75.0+build3-0ubuntu1).  While the latest version  has already been released. Has any thing changed about Firefox after version 75 on Ubuntu 20.04? $ apt policy firefox firefox:   Installed: 75.0+build3-0ubuntu1   Candidate: 75.0+build3-0ubuntu1   Version table:  *** 75.0+build3-0ubuntu1 500         500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages         100 /var/lib/dpkg/status


C# Show Windows Form before executing the code

this maybe a stupid question but I can't find a solution after some googling. I want to perform a code directly after executing a Windows Forms application in C# and Visual Studio. However if I do this my WindowsForm is opening after the code was (correctly) executed. Is there any way to accomplish that the form is shown while executing the code? The reason behind it is that I want to show a progress bar.  Best regards,  Timtam


I've been curious for quite a while why you don't have a specific site pertaining to wildlife. From a cursory perusal of other online sites, it seems like it would be a very popular, well-used,  and welcome addition. I hesitate to postulate ,(but will anyway) that it could be a heck of a lot more popular/helpful than some of the other seemingly relatively obscure subjects.  I can't be the only one who has a myriad of questions (and occasional answers) about our feathered, furry, and scaly friends.


How to View Windows Files on a Wubi install?

I wanted to ask, how can i view all my windows files on Ubuntu. I found out how to get my D drive folders but have yet not figured out how to get my C drive files. Please give me an easy way to find my files. For more information, i have installed ubuntu via wubi. Please answer my question ASAP.


Number of combinations and permutations of letters

I am confused by the following exercise.  Exercise. Find the number of (a) combinations and (b) permutations of 4 letters each that can be made from the letters of the word Tennessee.  Ideas: We have:  T-1  E-4  N-2  S-2  If we would have unlimited number of letters, the number of arrangements is $4*4*4*4$, however the number of T's, N's, S's doesn't all us to do so, and I don't see the easy way to eliminate impossible cases.


Given is the polynomial $\varphi(X)=X^4+1$.  Now there are two tasks:  (1) Show, that $ \varphi(X)$ is reducible in $\mathbb F_p [X]$, where $p$ is prime number with  $p \equiv1$ (mod 4).  (2) Show, that $ \varphi(X)$ is reducible in $\mathbb F_p [X]$, where $p$ is prime number with  $p \equiv3$ (mod 4).  My ideas until now:  (1) I try to find $a,b \in \mathbb F_p [X]$, such that $X^4+1 = (X^2+a)(X^2+b)$. Not to use the middleterm $+cX$ was a hint. Now $(X^2+a)(X^2+b)=X^4+aX^2+bX^2+ab=X^4+(a+b)X^2+ab$. This should equal $X^4+1$, so I know, that $a+b \equiv 0$ mod p and $ab \equiv 1$ mod p. This means, that $a$ and $b$ must be units in $\mathbb F_p$, more exactly, $a$ is the multiplicative inverse element of $b$ in $\mathbb F_p$. $a+b \equiv 0$ reasons, that $a$ is the additive inverse to $b$.  But know I don't know, how I can go on with conclusion. I hope, somebody can help me.


Including jpgs into Beamer when using sharelatex or writelatex

I'm trying to include a jpg into Beamer. Many of the sources I've looked at mention that it's necessary to include the graphicx package in the preamble, and to use something like \includegraphics{myimage.jpg}. I've done these, and have made sure the name of my file exactly matches the name I use in \includegraphics. I got the error that my file was not found, but I've located it. I've tried specifying where it is by using  \graphicspath{c:/Users/Me/Desktop/} in the preamble, but that hasn't worked. Any advice? Thank you.


Should an Allow or Disallow directive be used in robots.txt to allow Googlebot to crawl the whole site?

User-agent: * Disallow: /  User-agent: Googlebot Allow: /   I use this command in my robots.txt file. But i do not think this is right. What should be the right command? Some article i have found where told not to do this in robots.txt  #Code to not allow any search engines! User-agent: * Disallow: /   And also found that we should disallow Googlebot except the js and css file.  User-agent: Googlebot Allow: /*.js* Allow: /*.css* Allow: /google/   So what should be the right way to do?


Get Local Phone Number Objective-C For Validation

I need the get Sim card phone number from iphone for validate the number.How can I do that ?


So, I was thinking about the Bohr model of atom and I started to wonder how we could find the magnetic field due to a revolving electron (produced at the location of proton)  of hydrogen atom in first orbit.  Example:- How to find the magnetic field due to a revolving electron of hydrogen atom in first orbit? Given h ~$ 6.625*10^{-24} $;charge of electron~$1.6*10^{-19}$; $pi~ 3.141$; mass of electron~ $9.10*10^{-31}$.


Why aren't awarded badges removed if the question is deleted?

I was looking at a badge page, in particular the  one, and noticed that the first two users earning this badge answered to question which has been deleted afterwards.  I noticed that when this happens, I mean when a question is deleted, the reputation is restored: if a user gains 10 point of rep, for example, then he/she will lose them once the corresponding question is removed. The same happens if a user loses 10 points of rep: he/she will gain them again once the question is deleted.  Why this doesn't apply to badges?  I would expect that if the corresponding question is closed, one loses the earned badge ... or this logic applies only to revival badges since it can happen that a question of -5 score might be deleted?


I am trying to write an algorithm to rotate a bitmap image of $n$ by $n$ size by an angle $\alpha$.   I know that I have to find a rotation matrix, then perform matrix multiplication of the rotation matrix by the image matrix data input.  I know that the $2\times 2$ rotation matrix  is  $$T_\alpha=\left(\begin{array}{cc}\cos\alpha & -\sin\alpha \\ \sin \alpha & \cos \alpha \end{array}\right)$$  However, I am not sure how to find the appropriate $n \times n$ matrix.


How to disable shutdown option at the login screen?

I was able to disable the shutdown option in the start screen using Group Policy but how do I disable the shutdown button at the login screen? I'm using Windows 8.1 Update 1.


Section of a covering projection from a connected space

Let $p:\overline{X}\rightarrow X$ is a continuous mapping. A continuous map $s:X\rightarrow \overline{X}$ such that $p\circ s =Id_X$ is called a section of $p$.  Suppose $\overline{X}$ is connected also. Suppose that $p$ is a covering projection. Show that any section of $p$ is a homeomorphism onto $\overline{X}$.  As $p\circ s=Id$ we see that $s$ is injective. Suppose we can prove that $s$ is surjective.    Then we have a bijective continuous function $s$ such that $s^{-1}=p$ which means that $s$ is homeomorphism. $$p\circ s =Id\Rightarrow p\circ s\circ s^{-1}=s^{-1}\Rightarrow p=s^{-1}.$$  So, enough to prove $s$ is surjective i.e., $s(X)=\overline{X}$.  As $\overline{X}$ is connected, showing $s$ is surjective is equivalent to prove $s(X)$ is both open and closed in $\overline{X}$.   Let $\bar{x}=s(x)\in \overline{X}$ for some $x\in X$.  As $(p\circ s )(x)=x$ we have $p(\bar{x})=x$.   For this $x\in X$ there exists an open set $U$ in $\overline{X}$ containing $\bar{x}$ such that $U\rightarrow p(U)$ is a homeomorphism.  As $U$ is open in $\overline{X}$ containing $\bar{x}$ and $s$ is continuous we have open set $V$ in $X$ with $x\in V$ and $s(V)\subset U$.  We have $$(p\circ s)(V)=V\Rightarrow (p^{-1}\circ p\circ s)(V)=p^{-1}(V)\Rightarrow (p^{-1}\circ p)(s(V))=p^{-1}(V).$$  As $s(V)\subset U$ the function $p^{-1}\circ p$ is identity on $s(V)$ so we have $s(V)=p^{-1}(V)$ So, $s(V)$ is an open set. we have $\bar{x}=s(x)\in s(V)\subset s(X)$. Thus $s(X)$ is open in $\overline{X}$.  I am not able to see why $s(X)$ is closed in $\overline{X}$.  This also says $p$ is also a homeomorphism.


My question might seem very dumb but here goes. Say we have y = f(x). If we have g = dy/dx, we can also say that gdx = dy, and this works. Why does it work? I know that dy/dx isn't a fraction but what underlying properties are being implicitly used when we change g = dy/dx into gdx = dy? An example, to derive one of the laws of motion we can start with a = dv/dt, then say that adt = dv and by integration of both sides we conclude that at = v-u <=> v = u + at


How do I create multiple files names from list.txt in bash also change the text of that newly created file?

I want to create multiple files at a time using names from a file list.txt, as well as the text in each files. Suppose I have a list.txt containing some id. numbers, now I want to make separate files using that ids as the name (e.g. EOG090W002U_M0.ctl, EOG090W00C1_M0.ctl, EOG090W00DC_M0.ctl). Also, the contents of the files need to be changed accordingly.  Sample list.txt:  EOG090W002U  EOG090W00C1  EOG090W00DC  EOG090W00DE  EOG090W00E5 EOG090W00HR  EOG090W00MH  EOG090W00MS  EOG090W00PB  EOG090W00U4 EOG090W00UK  EOG090W00WM  EOG090W00WR   For example the desired content of EOG090W002U_M0.ctl, EOG090W00C1_M0.ctl file will be  seqfile = EOG090W002U_p.phy treefile = Sametree.txt outfile = EOG090W002U_M0_mlc  getSE = 0 RateAncestor = 1 Small_Diff = 5e-7 cleandata = 1 fix_blength = 2 method = 0   Or  seqfile = EOG090W00C1_p.phy treefile = Sametree.txt outfile = EOG090W00C1_M0_mlc    getSE = 0   RateAncestor = 1   Small_Diff = 5e-7   cleandata = 1   fix_blength = 2   method = 0   Here, seqfile and outfile is going to be changed according to the list.txt but other texts in the file will remain the same.   Thanks


Inequality ${n \choose k} \leq \left(\frac{en}{ k}\right)^k$

This is from page 3 of  ().  Copying the relevant segment:     Stirling’s approximation tells us $\sqrt{2\pi n} (n/e)^n \leq n! \leq e^{1/12n} \sqrt{2\pi n} (n/e)^n$. In particular we can use this to say that   $$ {n \choose k} \leq \left(\frac{en}{ k}\right)^k$$   I tried the tactic of combining bounds from $n!$, $k!$ and $(n-k)!$ and it didn't work. How does this bound follow from stirling's approximation?


Error while updating debug log trace flag

I am trying to update the debug log trace flag for my user but getting the following error     Having an active trace flag triggers debug logging. You have 259 MB of the maximum 250 MB of debug logs. Before you can edit trace flags, delete some debug logs.   I have removed all existing debug logs but it is still throwing the error.


I am new to programming. I am currently learning python and I am trying to add pairs of numbers in a list. Let's say I have something like this: a = [1, 2, 3, 4 , 5, 6]  and I am trying to add them in pairs like this: a = [1 + 2, 3 + 4, 5 + 6]  Also, the list will always have an even number of elements.I can't wrap my mind around the problem. Please Help.


What are some examples of free modules that have 2 bases of different sizes?

If M is a free module over a commutative ring, then any 2 bases for M will have the same cardinality. I'm looking for an example of a module that doesn't have this property, as well as examples of the bases in question.


I read this book back in middle school and I've been trying to remember more about it and possibly read it again.  I remember the cover was a greenish blue. It would have been around the 2004-2005 time frame. I remember the whole book had an overall dark and industrial dystopia feeling to it.  From what I remember, the book's main character was an orphan and imprisoned in a large orphanage where the kids where forced to work. There was some sort of accident during a routine transfer and he escaped with some other kids. These other kids ended up fighting a government-type military who was trying to capture them... there was also something to do with a creature or aliens.   I want to say it started with a "C".


Is it possible to color the prompt in Bash?

Is it possible to color the prompt ("user@host:~/dir/$") in Bash? Some commands generate a lot of output and it's sometimes hard to find where it started. Coloring would help a lot.


Empty output when clipping data in ArcGIS 10.3.1

I'm encountering a "empty output generated" warning when attempting to clip a data layer. The clip layer is a buffer drawn around roads while the input layer is a shapefile output from . The input layer has been projected to be the same projection as the clip layer.   Executing: Clip input E:\LUP\scratch\input_Clip.shp # Start Time: Sun May 28 23:08:15 2017 Reading Features... Cracking Features... WARNING 000117: Warning empty output generated. Succeeded at Sun May 28 23:08:25 2017 (Elapsed Time: 9.79 seconds)   As you can see from the screenshot below, there are overlapping features between the input and the clip (red outline). I've also double checked the projection and extents and they match. What could be the cause of this error?


Why is a char pointer dereferenced automatically in a dynamic array

Perhaps a stupid question. When I cout the pointer to the char array, I thought it would print an address; instead it dereferences the address and prints the actual values till null.  As opposed to an int array where it does what I expect it to. It prints the address of the first element.  Why does the char element gets dereferenced when you print the pointer.  char* as = new char[100];     as[0] = 'a';     as[1] = 'b';     as[2] = NULL;     cout << as << endl;      int* s = new int[100];     s[0] = 2;     cout << s << endl;   Asking this because when I try to get the address to the first char element a[0] = 'a';. I have to store it in a pointer to a pointer. Which seems weird to me but that's besides the point.  char ** d = &as;     cout << d << "this is d" << endl;


How to judge the difference between the real photo and what you see in LCD?

I'm interested in night sky photography. I most of the time travel for taking photos. But I got a terrible problem. At dark nights I have to decrease the LCD's brightness to not bother my eyes. When I check out the photo in LCD, its seems perfect but in computer it is underexposed! and exactly vice versa e.g if I set the brightness to maximum I take overexposed photos. How do you judge the brightness of your photos in LCD that make no difference with the real photo? Thank you in advance


My mesh is not moving like the motion tracked video

With lots of help of you I ended up with . Something has gone wrong because my mesh is moving .... Any ideas what has gone wrong ?


How to add unique materials in duplicated bodies?

I duplicated a football player but when I wanted to work in only one of them the changes of materials happend to both of them ! Please tell me how to work on materials seperatly !!!


Is there a good way to mathematically write a CNOT operation over non-neighboring qubits in a circuit?

I was wondering if there is any way to present the CNOT matrix as we usually present single qubit operations $$... 1 \otimes NOT \otimes 1 ...$$ I know that for adjacent qubits in a circuit we can present it identically $$... 1 \otimes CNOT \otimes 1 ...$$ But is there a way to present the operation mathematically if there are several CNOTs acting on not neighboring wires?


Is it ok to format bootable usb Pendrive after install finished ubuntu 18.04?

Formating USB(pendrive) after installing done in Dell laptop.


Is adf.test is one of the ways to know whether the time series is stationary or not?

I have time series data. Not sure whether the series is stationary or not. I applied adf.test and got a p-value much higher than 0.05 which I think means that the data is not stationary. I took differencing once to check the p-value again. And I see that p-value has gone below 0.05. Can I assume that the data is stationary and ready for forecast? Is there any other way to confirm this in 'R'?


getting posts and number by specific meta value in multiple meta

i have a multiple meta (custom field) in posts as "cd_meta" that it (cd_meta) have a meta as "artist", also "artist" meta maybe have one or more value in array  i want to getting posts that "artist" meta have specific value and number of them  look below picture for more info


Is there a word that describes a person who is usually not too drunk and takes care of the rest of the folks at a party?  Typically, they're the ones who drag the sloshed ones back to beds, clean up the house and generally maintain a bit of sanity.


I'm preparing a paper using the Lipics style and have a long appendix: each appendix Section is headed by capital letters A,B,C... I would like to have the numbering of Lemmas in the appendix such as Lemma A.1 (if it is in appendix A), resp. Lemma B.1, B.2,... (in appendix B) etc. Any hint? I tried to redefine the \thetheorem variable and played with it for a while, but was not succesful, I'm not very strong at LaTeX.  Thanks for possible hint! Here is a minimal working code:  \documentclass[a4paper, USenglish, numberwithinsect]{lipics} \theoremstyle{plain} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{observation}[theorem]{Observation} \newtheorem{conjecture}[theorem]{Conjecture} \newtheorem{problem}[theorem]{Problem}  \title{Title} \author[1]{Peter Franek} \affil[1]{Affil}  \begin{document} \maketitle  \begin{abstract} abstract \end{abstract}  \section{Introduction} \label{s:intro} \begin{theorem} Theorem 1 \end{theorem} \begin{lemma} First Lemma \end{lemma}  \appendix \section{first appendix chapter} Some text.. \begin{lemma} I don't want Lemma 1.1 but either Lemma A.1 or Lemma A.1.1 \end{lemma}  \end{document}


Proving $f_n\to f$a.e implies $f_n\to f$ almost uniformly

Exercise: Let $(f)_{n\in\mathbb{N}}$ be a sequence of functions such that $f_n\to f$a.e(almost everyehere) and there exists $g$ integrable such that $|f_n|\leqslant g$a.e   for all $n\in\mathbb{N}$. Prove that $f_n\to f$ almost uniformly.   I think I can apply the following theorem:     Ergoroff Theorem:   Consider $E\in\mathscr{F}$(sigma-algebra), and $E\in\Omega$ defined on a measure space $(\Omega,\mathscr{F},\mu)$. Suppose $\mu(E)<\infty$, and $\{f_n\}$ is a sequence of measurable functions on $E\to\mathbb{R}$ which are finite almost everywhere and converge almost everywhere to a function $f:E\to\mathbb{R}$ which is also finite almost everywhere. Then $f_n\to f$ almost uniformly in $E$.   I now that $f_n\to f$ a.e so $\lim_{n\to\infty}f_n(x)=f(x)\forall x\in E$, But to apply Ergoroff theorem I need to prove that $\mu(E)<\infty$ or $\mu(\Omega)<\infty$. I know by the Dominated convergence theorem that $\lim_{n\to\infty}\int |f_n-f| d\mu=0$ but I cannot see how shall I prove from there that $\mu(E)$ or $\mu(\Omega)$ are limited.  Question:  Can someone provide me any help?  Thanks in advance!  Note:$f_n$ does not necessarily converge to $f$ uniformly. So the question is not a duplicate.