Download public & private keys from Google Cloud Instance

New to the cloud so pardon this question as I'm certain it's relatively simple!  I've setup my Google Cloud Instance and I'm now trying to connect to it using FileZilla. I have a good understanding of how to do this... but I've been completely unable to download my .ppk file, public key, and private keys. The documentation clearly gives the folder that the files are located in.... but I'm unable to navigate to these folders (it's as if they don't exist) furthermore I'm not really sure how to download something to my computer through the SSH terminal.  Also somewhat infuriating is that I've found the keys in the web portal on Google Cloud however there is no option to download them. I can only view them in clear text.  Any help would be greatly appreciated!


Python how to get reference to class in static method

How can I get a reference to the class in a static method? I have following code: class A:     def __init__(self, *args):         ...     @staticmethod     def load_from_file(file):         args = load_args_from_file(file)         return A(*args) class B(A):     ...  b = B.load_from_file("file.txt")  But I want to B.load_from_file return object of type B, not A. I know if load_from_file wouldn't be a static method I could do def load_from_file(self, file):         args = load_args_from_file(file)         return type(self)__init__(*args)


I'm doing  lz@blade:~$ sudo apt-get build-dep gawk Reading package lists... Done Reading package lists... Done Building dependency tree        Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:  The following packages have unmet dependencies:  builddeps:gawk : Depends: libreadline-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.   here's my sources:  deb http://br.archive.ubuntu.com/ubuntu/ bionic main restricted deb http://br.archive.ubuntu.com/ubuntu/ bionic main restricted   deb-src http://br.archive.ubuntu.com/ubuntu/ bionic multiverse main universe restricted  deb http://br.archive.ubuntu.com/ubuntu/ bionic universe   deb-src http://security.ubuntu.com/ubuntu bionic-security main restricted   What are the broken packages?


Replacing pattern after nth match is found on each line?

I have a file containing lines:  india;austria;japan;chile china;US;nigeria;mexico;russia   I want to replace all the occurences of semicolon on each line with e.g. ;NEW;, but starting from the 2nd occurence only. The result should look like this:  india;austria;NEW;japan;NEW;chile china;US;NEW;nigeria;NEW;mexico;NEW;russia   I tried this with gsub, but it replaces all the occurences:  awk '/;/{gsub(/;/,";NEW;") }{print}'


I've installed XAMPP Apache server and put my website into htdocs. I've started Apache server. On my website I've got files with extension PHP and with extension PHP5.The difference is that when I type in into browser localhost/file.php - I see a parsed website.  But when I type localhost/file.php5 (i have this file on server), than browser asks me if I want to download or open this file. And if I choose open than I see PHP code of file.php5!  I've looked into configuration, so:   I dont have htaccess file PHPINFO() shows PHP 5 c:\xampp\apache\conf\extra\httpd-xampp is included into configuration and has this on the beginning:  AddType application/x-httpd-php-source .phps  AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml .phpt   I've tried also to put:  AddHandler php5-script .php5 AddType text/html .php5   Into httpd.conf, but it does not work for me (no changes).  Could you please help me fixing it? I would like to have php5 and php extension files to be opened with php5 parser.


How do I cover the title in the footline of my beamer presentation?

So the title of the presentation is too long and it doesn't fit in the footline of each frame, so it looks cut off. I'm using the Copenhagen theme.  I need to cover it, or at least put a [...] at the end of the title in the footline.


Proving multiplicative group is not cyclic

Prove that $\phi(2^n)$ for $n\geq 3$ is not a cyclic group.  $\phi(2^n)$ is a multiplicative group of integers modulo $2^n$.   Solution just for $n=3$:   $\phi(8)$ : $\{1,3,5,7\}$ (numbers that are co-prime with 8).   [3][5] = [7] mod8   [7][7] = [1] mod8   [3][3] = [1] mod8   $\phi(8)$ $\neq$ $<[3]>$  $\phi(8)$ $\neq$ $<[5]>$  $\phi(8)$ $\neq$ $<[7]>$  $\phi(8)$ $\neq$ $<[1]>$  Therefore, for $n=3$ this group is not cyclic.  I don't know how to prove that the group is not cyclic for $n \geq 3$.


Editor's note: While this question is specifically about copying a file reference to the clipboard, its generic title led to answers about how to copy / get  text.  As an Emacs user on Windows who often attaches files in mails, I have been looking for a utility to copy a file (not its contents) to the clipboard, just as windows explorer does on righclick/copy).  I just found  right here on SO which uses System.Windows.Forms.Clipboard` in a small program to do exactly that. But it is in C#, for which I don't have immediate access to a compiler. So I am wondering if this can be done and how.   I saw several references such as  that the clipboard is not accessible in VBScripting, but msdn  documentation for VB so I am risking the question.  I have never written a VBScript before but I did try a few things before asking, starting with running a copy pasted a "Hello world" and then various combinations of CreateObject etc.   Update: I need to call , so I do not think I can use ClipboardData as suggested by the answers, it does not have this method.   Update for visitors  The solution I ended up using was to compile the C# itself, I did not know I already had a compiler.  Another update for visitors  is what I am now using, quite happily.


Can I move Xcode and Android Studio to SD card

I'm planning to buy a 64GB SD card to supplement the storage on my MacBook Air 128GB (early 2015)  I wanted to know if I can move my Xcode and android studio to it as both have them take a significant part of the memory.  If this can happen, I wanted to know how can I move these two to the SD card. I'm fairly new to macOS and have no idea how to do this.


$f$ real-valued, continuously differentiable, then $(\int |f|^2\,dx)^2 \le 4(\int |xf(x)|^2\,dx)(\int |f'|^2\,dx)$?

If $f$ is real-valued and continuously differentiable on $\mathbb{R}$, do we have the following inequality:$$\left(\int |f|^2\,dx\right)^2 \le 4\left(\int |xf(x)|^2\,dx\right)\left(\int |f'|^2\,dx\right)?$$


Could the Weasley family have gotten financial aid from Hogwarts?

In Half-Blood Prince, we learn that there is a fund for students who lack money to be able to fund their school supplies:     ‘I haven’t got any money,’ [said Tom Riddle]   ‘That is easily remedied,’ said Dumbledore, drawing a leather money-pouch from his pocket. ‘There is a fund at Hogwarts for those who require assistance to buy books and robes. You might have to buy some of your spellbooks and so on second-hand, but –’   Half-Blood Prince - page 256 - Bloomsbury - Chapter 13, The Secret Riddle   The Weasley family is often shown as being quite poor and barely has enough money to buy school supplies (I recall that on one of their trips to Gringotts, they carefully searched each corner of their vault for a spare coin). Also, there wasn't enough money to buy Ron a new wand to replace his broken one until Arthur Weasley won some prize money to pay for it.  Would they have been eligible for this financial aid fund that was given to Tom Riddle? If so, why didn't they use it (were they too proud)?


There's quite some discussion about Community ♦ bumping. It's purpose is to get a question more attention/responses/answers.  I think that on Meta it's extremely rare for a posted question not to get any attention/repies/answers. I see Community ♦ only bumping up old, already talked to death, no longer relevant, or no one cares anymore kind of topics. Perhaps I don't spend enough time on Meta, but I've yet to see a good bump.  Should Community ♦ bumping be halted for Meta.StackOverflow?  Related : Disabling this feature was also mentioned in .


Do we have documented cases of animals purposely and consciously trying to end their own life? What leads to animal suicide, and is it preventable?  I've heard mixed answers from various biologists. Is anyone here capable of providing an answer?


Is series $\sum_{n=1}^{\infty}\frac{\cos(nx)}{n^\alpha}$, for $\alpha>0$, convergent?

I've done the following exercise:  Is series $\displaystyle\sum^{\infty}_{n=1}\frac{\cos(nx)}{n^\alpha}$, for $\alpha>0$, convergent?  My approach:  We're going to use the Dirichlet's criterion for convergence of series. Let $\displaystyle\ \{a_n\}=\frac{1}{n^{\alpha}}$ and $\{b_n\}=\cos(nx)$. We see that $\{a_n\}$ is decreasing and has limit $0$. We have to see now that $$\sup_{N}{\left| \sum_{n=1}^{N}{\cos(nx)} \right|}<\infty.$$ $$\displaystyle \sum_{n=0}^{N}e^{inx}=\sum_{n=0}^{N}(e^{ix})^{n}= \frac{1-e^{ix(n+1)}}{1-e^{ix}}, \text{if x} \neq 2k\pi. $$ So $${\left| \sum_{n=0}^{N}{\cos(nx)} \right|}={\left| \Re\left(\sum_{n=0}^{N}{e^{inx}}\right) \right|}={\left| \Re\left(\frac{1-e^{ix(N+1)}}{1-e^{ix}}\right) \right|} \leq {\left| \frac{1-e^{ix(N+1)}}{1-e^{ix}} \right|}\leq {\frac{\left|1\right|+\left| e^{i(N+1)x} \right|}{\left|1-e^{{ix}}  \right|}}=\frac{2}{\left|1-e^{{ix}}  \right|}.$$ So, by Dirichlet, if $x\neq 2k\pi$, the series is convergent. What happens if $x= 2k\pi$? $$\displaystyle\sum^{\infty}_{n=1}\frac{\cos(n(2k\pi))}{n^\alpha}=\displaystyle\sum^{\infty}_{n=1}\frac{1}{n^\alpha}$$ and we know that this series converges when $\alpha>1$ and diverges if $\alpha\leq 1$.  Have I done any mistake/s? Is my approach correct? Thank you.


Shortcut for windows resizing and placement

I use two wide monitors for working and I find very useful using the edge screen for resizing and placing my windows (I just drag my windows to the left edge and it is resized and placed in the left half of the monitor)  This way I can visualize 4 windows at the same time which is great.  However I don't like having to manually resize the windows by dragging them to the desired edge.  I would really love if I can use a shortcut "eg Ctrl+[1,2,3,4]" to automatically resize and place the current window to the desired half of the monitor.  Eg: Ctrl + (1: 1st monitor left half, 2: left monitor right half, 3: right monitor left half, 4: right monitor right half).  Please tell me there is a way of doing this :)


How can I encrypt the login process without using SSL?

My webhost doesn't allow SSL certificates for my webhosting product since it is a shared IP server. (I would have to upgrade the product and pay a lot more money, which I don't want to at the moment) I don't really need all of the website encrypted, I only want to give the password (and username) submission on login a bit more protection. Is there a module that just does some asymmetric encryption on the password on submission, e.g. with JavaScript?  Note: I know about the possibility of Man-in-the-Middle attacks with this setup.


getting error null pointer exception attempt to invoke virtual method

getting error that null pointer exception has occurred and trying to invoke virtual method  public class after10th extends AppCompatActivity {      ArrayAdapter<String> adapter;      @Override     protected void onCreate(@Nullable Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.after10th);          ListView lv = (ListView) findViewById(R.id.searchten);         ArrayList<String> after_ten = new ArrayList<>();         after_ten.addAll(Arrays.asList(getResources().getStringArray(R.array.after_ten)));          adapter = new ArrayAdapter<>(after10th.this, android.R.layout.simple_list_item_1, after_ten);          lv.setAdapter(adapter);      }      @Override     public boolean onCreateOptionsMenu(Menu menu) {         MenuInflater inflater = getMenuInflater();         inflater.inflate(R.menu.menu_search, menu);         MenuItem item = menu.findItem(R.id.menusearchten);         SearchView searchView = (SearchView) item.getActionView();         searchView.setOnQueryTextListener(new SearchView.OnQueryTextListener() {             @Override             public boolean onQueryTextSubmit(String query) {                 return false;             }              @Override             public boolean onQueryTextChange(String newText) {                  adapter.getFilter().filter(newText);                 return false;             }         });                  return super.onCreateOptionsMenu(menu);`enter code here`     }  }   This is the error:  09-23 19:09:17.242 9000-9000/com.example.supriya.career_guidance E/AndroidRuntime: FATAL EXCEPTION: main  Process: com.example.supriya.career_guidance, PID: 9000  java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.SearchView.setOnQueryTextListener(android.widget.SearchView$OnQueryTextListener)' on a null object reference


What does a comma mean inside an 'if' statement?

Consider:  for (auto i = 0; i < g.size(); ++i)     for (auto j = 0; j < g.size(); ++j) if (g[i][j] == 0) dfs(g, i, j), ++regions; return regions;   I don't like one line code. What does the code execute in the if()?  I am confused by the "," sign.  Usually I would write it as:    for (auto i = 0; i < g.size(); ++i)   {       for (auto j = 0; j < g.size(); ++j)       {           if (g[i][j] == 0)           {              dfs(g, i, j)           }           ,++regions; // I am not sure what to do here. Inside the "if" scope??       } }    return regions;


Google Chrome does not open links from other applications

When I click on links in mails or Twitter, my default browser, which is Google Chrome, opens, but it always only displays the Google Chrome welcome page, not the link. I found that this is set in my default applications somehow:    You can see that the "getting started" page is set there. I don't know how this happened, how do I fix this?


Prove or disprove validity: $(\forall x \exists y (P(x) \supset Q(y))) \supset(\exists y \forall x (P (x) \supset Q(y)))$

I have working on this formula $(\forall x \exists y (P(x) \supset Q(y))) \supset (\exists y \forall x (P (x) \supset Q(y)))$ to either prove or disprove it.  First, I tempted to disprove it, but I changed my mind.  I wrote down "for all x that there exists some y satisfies corresponding condition", and "there exists some y that for all x satisfies corresponding condition." I think these statements refer to the same idea.  Any suggestions?


I'm subscribing to an event this way:    s1.MouseUp += (s, e) =>   {   indexOfPointToMove = -1;   s1.LineStyle = LineStyle.Solid;   MyModel.RefreshPlot(false);    e.Handled = true;  };   How could I unsubscribe in different scope?  (but in scope of s1)  I've tried the following:  s1.MouseUp = null;    s1.MouseUp -=(s,e) =>  {        indexOfPointToMove = -1;        s1.LineStyle = LineStyle.Solid;        MyModel.RefreshPlot(false);        e.Handled = true;   };    s1.MouseUp += (s,e) => { //nothing };   But the event is still firing, how can this be done?


Descriptive statistics interpretation of log-transformed variables

How can I interpret the descriptive statistics of logarithmic transform variables    mean  maximum minimum  standard deviation  kurtosis Skewness ?  In case I use log transformed form of the variables in my analysis,  do I have the right to use the descriptive statistics of the non transformed variables?


list.append(x)   Add an item to the end of the list.  Okay. Let's write some code:  x = [[]]*3 x[0].append('foo') print x   and output is:  [['foo'], ['foo'], ['foo']]   Why?


Diagonalizable matrix with parameters - finding eigenvector

$$     \begin{bmatrix}     -2 & -2 & 0 & 0 \\     -b & -b & 0 & 0 \\      0 & 0 & -4 & 4 \\      0 & 0 & b & -b \\     \end{bmatrix} $$  he given matrix is a blocks one, so it is diagonalizable iff each block is, and the characteristic polynomials of each block are:  $$\begin{cases}\;\text{Upper Block:}&\;p_1(x)=(x+2)(x+b)-2b=x(x+b+2)\\{}\\ \text{Lower Block:}&p_2(x)=(x+4)(x+b)-4b=x(x+b+4)\end{cases}$$  Thus: in case $\;b=-2(\text{ or}\;-4)\;$, the upper block or the lower block isn't diagonalizable, as then we get a nilpotent non-zero matrix. In any other case ( i.e., $\;b\neq-2,-4\;$) , both blocks have two different eigenvalues and are thus diagonalizable, and then also the $\;4\times4\;$ matrix is.  then I need to find thee igenvector for eigenvalue 0 which $$V1=32$$ $$V2+V3=−12$$


implicit vs explicit interface implementation

Possible Duplicate:          Would someone explain the differences between these two beasts and how to use them. AFAIK, many  pre.2.0 classes were implemented without generic types, thus causing latter version to implement both flavors of interfaces. Is the the only case why one would need to use them?  Can you also explain in depth how to use them.?  Thanks


Let $E$ be a measurable set of finite measure and $1 < p_1 < p_2 < \infty$. Consider the linear space $L^{p_2} (E)$ normed by $||.||_{p_1}$ . Is this normed linear space a Banach space?


Having trouble returning a value from scanner

I'm making a Java program that greets people. Two people, Alice and Bob, are very special, so they get their own, special greetings. Because this will, in the future, get lots of inputs, I wanted to create a convenience function that takes a prompt as its argument, prints the prompt to STDOUT, and then returns the input the user added. (This works like input() in some other languages.) Here is my code:  package test;  import java.util.Scanner;  public class Application {      static Scanner scanner = new Scanner(System.in);     public static String userInput(String prompt) {         System.out.printf(prompt);         String caught_string = scanner.nextLine();         return caught_string;     }     public static void main(String[] args) {         System.out.println("Printing test");         String name = userInput("Can I have your name, please? ");         if (name == "Bob") {             System.out.println("You're Bob! Hello, there!");         } else if (name == "Alice") {             System.out.println("Alice! Good to see you!");         } else {             System.out.println("You must be new here. Hello!");         }     }  }   But when I enter Bob, all I get is the else message, You must be new here.. Can someone help me, and tell me where I went wrong?


Is there any advantage in marketing my product for £99.99 instead of £100?

It's a wide-spread marketing technique that seems to have been around forever- selling products for £1.99, £9.99, £19.99, instead of £2, £10 and £20.  Presumably the pyschology is that submliminally £99.99 seems disproportionately closer to £99 (or £90) than £100 does.  But surely the technique is so utterly transparent and consumers so wary of marketing techniques nowadays that it is completely ineffective. And worse, by doing it, you risk detering potential customers by coming across as deceptive or dishonest.


I have several of these types of problems, and it would be great if I can get some help on one so I have a guide on how I can solve these.  I tried asking another problem, but it turned out to be a special case problem, so hopefully this one works out normally.   The question is:  Prove $(A - B) - C = A - (B \cup C)$  I know I must prove both sides are not equivalent to each other to complete this proof. Here's my shot: We start with left side.   if $x \in C$, then $x \notin A$ and $x \in B$. So $x \in (B \cup C)$ So $A - (B \cup C)$   Is this the right idea? Should I then reverse the proof to prove it the other way around, or is that unnecessary? Should it be more formal?  Thanks!


Return different Object (List or error class) from WCF service

I am trying to build a WCF service which has a single method getPersonList which returns list of person like this  [   {"personId":121, "personName":"John Smith"},   {"personId":953, "personName":"Maggie Johnson"} ]   If there is some error, I want to return an error response like this from the same method.  {"errorCode":4002,"errorMessage":"invalid request token"}   Now I have my Service Contract as below:      [ServiceContract()]     public interface IPersonContract     {         [OperationContract()]         Object GetPersonList(int requestParam);     }   and my sample GetPersonList method  Object GetPersonList(int requestParam) {   if (requestParam == 1)   {     ErrorResponse error = new ErrorResponse();     error.ErrorCode = 4002;     error.ErrorMessage = "invalid request token";      return error;   }else   {     List<Person> returnList = new List<Person>();     // add Person to returnList     return returnList;   }  }   Person Class  [DataContract()] public class Person {      [DataMember(Name = "personName")]     String PersonName{   get;   set;  }      [DataMember(Name = "personId")]     String PersonID {   get;   set;  }  }   Error Class  [DataContract()] public class ErrorResponse {      [DataMember(Name = "errorCode")]     int ErrorCode{   get;   set;  }      [DataMember(Name = "errorMessage")]     String ErrorMessage{   get;   set;  }  }   I looked up KnownTypes for DataContract classes but how do I apply that on Object.   If I add fields from ErrorReponse and add List<Person> in a single class and return that object, I get a response like this in success case which is not what I want.  { "Person":[{"personId":121, "personName":"John Smith"},       {"personId":953, "personName":"Maggie Johnson"}] }


This question is a semi-duplicate of , but that was 7 years ago and I would expect the cellular details have changed in that length of time.  For a two-week visit starting July of next year (2020), what are my options as far as getting a SIM for use in NZ? I have a GSM multiband phone that should work fine on the NZ networks. I'll want data more than voice, but both will be factors. Thanks.  EDIT: I reside in the United States, and this is a USA-standard phone, but it's quad-band and should work with the local nets.


Use Schwarz' Lemma and/or Maximum Modulus Principle to Prove This Proposition

Suppose the following conditions hold true:  (1) The function $f$ is analytic and contractive in the open unit disk.  (2) $f(0)=0$.  (3) $\exists z_1 \ne z_2 \in B(0,1)$, $|z_1|=|z_2|$, $f(z_1)=f(z_2)$.  Prove that $|f(z_1)|=|f(z_2)| \leqslant |z_1|^2=|z_2|^2$.


How do you completely redirect the URL using javascript?

Instead of using the window.open command in javascript -- which only creates a pop-up window -- how would someone use javascript to reassign the URL to a completely new area?


Distribution of a fractional part of the sum of uniform RVs

I had a question in class not long ago which I couldn't solve. I've been digging into it for a few hours now but I can't find the right direction. So the question is:      Let $ U_1,..,U_n$ be I.I.D random variables with uniform distribution : $ U_i \sim U[0,1] $. I need to prove that the fractional part of their sum - $\sum_{i=1}^n U_i $ , is also uniformly distributed.    I know that this sum has the Irwin-Hall distribution, but not sure how it helps me.   Any ideas on this one? Thanks.


How to sort a view using values not stored in the database

I'm using a view where elements are sorted by price values, under certain conditions the price values are rewritten on the display (if there are offers) but not in the database. The problem is that I need the results to be ordered by the rewritten price.  I can reorder the results returned by the query using a views_pre_render hook:    but it only affects the current page so elements are not properly ordered within the elements not shown in the current page.   Other option would be to order the view altering the query itself but since the right price values don't actually exist in the database I don't know how this could be done. Is there a way to order the results of a the whole view when paginator exists?  I've thought about not using pagination and requesting all the elements of the view so I can create my own paginator once I've ordered the results but I'm not sure how would it affect the speed of the page.


Prove that ${f_n}$ converges uniformly to f

Let $f:\mathbb{R}→\mathbb{R}$ be uniformly continuous; let $\{y_n\}⊂\mathbb{R}$ be such that $\lim y_n=0$; and define the sequence $f_n:\mathbb{R}→\mathbb{R}$ by $f_n(x)=f(x+y_n)$. Prove that ${f_n}$ converges uniformly to $f$.  Please explain and walk me through proving this statement.


I'm trying to get a regex that will match:  somefile_1.txt somefile_2.txt somefile_{anything}.txt   but not match:  somefile_16.txt   I tried  somefile_[^(16)].txt   with no luck (it includes even the "16" record)


Help understanding proof of the following statement $E(Y) = \sum_{i = 1}^{\infty} P(Y \geq k)$

If Y is a discrete random variable that assigns positive probabilities to only the positive integers, show that  $E(Y) = \sum_{i = 1}^{\infty} P(Y \geq k)$  Where $E(Y)$ is the expected value (or mean) of Y.  This is a text book question and I'm having trouble understanding the solution as they don't give any worded explanations.  Here is the solution:  1 $\hspace{1.4cm}\sum_{i = 1}^{\infty} P(Y \geq k)$  2 $\hspace{1.4cm} = \sum_{k = 1}^{\infty}\sum_{j = k}^{\infty} P(Y=k)$  3 $\hspace{1.4cm} = \sum_{k = 1}^{\infty}\sum_{j = k}^{\infty} P(j)$  4 $\hspace{1.4cm} = \sum_{j = 1}^{\infty}j\cdot P(j)$  5 $\hspace{1.4cm} = \sum_{y = 1}^{\infty}y\cdot P(y) = E(Y)$  I'm not sure how to interpret the inequality $Y \geq k$ inside the probability function, does it read "values k assigned to the random variable $Y$ such that $k$ is less than or equal to $Y$? But how can a value $k$ be less than a random variable $Y$ that doesn't take on any values?  I'm also very confused about steps 1 to 2, and 3 to 4.  (1 to 2): I don't understand how they broke down the inequality inside the probability function.  I think the nested summations are making this complicated for me to understand.  Sorry for the broad question and wordy post. Any quick short explanation of anything will be very much appreciated.


If a PC loses an arm are there any mechanical penalties or disadvantages?

Last session a PC lost an arm (willingly) and he asked me if there were any penalties to his attributes like whether STR or DEX would be affected?  The PC is a Druid and lost his non-dominant hand. While losing an arm seems bad, mechanically speaking he can still spell cast and use his wild shape. Are there any rules in D&D 5e that addresses the impact of losing a limb? And to a lesser extent is losing an arm as bad as it seems for a spell caster?


so i'm writing a program that will sort a custom arrayList of strings using quicksort. (I have to custom write all the code for a class). However, I keep getting a stack overflow error and I don't know why. (I'm a beginner so take it easy).   void quickSort () {     recursiveQuickSort(0, numElements-1); } // Recursive quicksort public void recursiveQuickSort(int start, int end) {     // if size 1 or less, don't need to do anything     int pivotPosition = 0;     if (start <=1 || end <= 1 ) {      } else          pivotPosition =partition(start, end);         recursiveQuickSort(start, pivotPosition-1);         recursiveQuickSort(pivotPosition+1, end); } static int partition(int start, int end) {     int pivot = end;     end--;     while(true) {         while (true) {             if (end < start) {                 break;             }             if (end < pivot) {                 end = end;                 break;             } else end --;         }         while(true) {             if (end < start) {                 break;             }             if (start > pivot) {                 start = start;                 break;             } else start++;         }         if(end < start) {             break;         }         else             swap(start, end);     }              swap(end+1, pivot);      return end + 1; }


Where to hire a graphics designer for mobile app?

My friend and I are making iOS apps and we have are not graphic designers. We have no idea how to do any of that stuff.   Where can we find a graphic designer and how much would he/she cost?


Is Changing the Accepted Answer Frowned Upon?

Sometimes I get a good answer and accept it, but the someone else posts a brilliant answer. I of course upvote it, but I avoid changing my accepted answer in most situations, since I feel it might be a bit frowned upon, so to speak.  Is it "bad practice" (for lack of a better term) to accept a different answer after you've already accepted an answer?


Instants - are the creatures blocked or not?

Player A attacks with two creatures. Player B plays the instant card  on a creature and blocks two attacking creatures. Player A then plays the instant .  Are those two creatures blocked or not?


The objective is to print Uni Würzburg using C++  The code I am using:  #include <stdio.h>  using namespace std;  int main() {     char str0[21] = "Uni Würzburg";     printf("%s\n", str0);     char str1[21] = {85,110,105,32,87,'\xc3','\xbc',114,122,98,117,114,103, 0};     printf("%s\n", str1);     char str2[20] = "Uni W\x81rzburg";     printf("%s\n", str2);     char str3[20] = {85,110,105,32,87,'\x81',114,122,98,117,114,103, 0};     printf("%s\n", str3);     return 0; }   I got the \xc3bc from creating a "ü" string and printing the characters.  Output on two different Macs (using both CLion and in bash using g++ test.c -o test):  Uni Würzburg Uni Würzburg Uni W�rzburg Uni W�rzburg   Output on Windows (CLion):  Uni W├╝rzburg Uni W├╝rzburg Uni Würzburg Uni Würzburg   CLion editor and project encodings are in all cases set to UTF-8 and the locale of bash is:  LANG="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_CTYPE="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_ALL=   Why is this happening? Most importantly: What would be a platform independent solution?


Can you cast spells with a Somatic component if you're holding a two-handed weapon?

I have a halfling cleric of Bahamut who wears his holy symbol as an amulet around his neck as a spellcasting focus (so material components are not an issue). However, as per , this does not cover the Somatic component of any spells he casts.  He also wields a light crossbow as his only weapon, which has the two-handed weapon property. How does RAW handle Somatic casting when you're holding a two-handed weapon? Can I simply take a hand off my weapon, cast the spell, and re-grip all in the same action? If not, has anyone run into this problem at their table before and how did you handle it?


Multinomial logistic regression analysis or binary logistic regression

I need to analyse data and am unsure whether or not I should use a multinomial logistic regression analysis or a binary logistic regression analysis. I have just conducted a latent class analysis and am interested in seeing if my variables can predict class membership. There are only two classes and so my response variable only has two categories; however the variables range from having 2 to 3 to 4 and are mostly nominal categorical data.


How is well-ordering in real line possible?  I know that the axiom of choice provides possible well-ordering, but intuitively, this does not seem to make sense.  How can you compare 1.111111.... and 1.111111... when we can never know the full digits of each number?


I want to show that $\psi: \mathbb{Q} \otimes_{\mathbb{Z}} \left( \displaystyle \prod_{n \in \mathbb{N}} \mathbb{Z}_{2^n} \right) \to \displaystyle \prod_{n \in \mathbb{N}}(\mathbb{Q} \otimes_{\mathbb{Z}} \mathbb{Z}_{2^n})$ cannot be an isomorphism. My attempt consists in showing $\displaystyle \prod_{n \in \mathbb{N}}(\mathbb{Q} \otimes_{\mathbb{Z}} \mathbb{Z}_{2^n})=0$ and $ \mathbb{Q} \otimes_{\mathbb{Z}} \left( \displaystyle \prod_{n \in \mathbb{N}} \mathbb{Z}_{2^n} \right) \neq 0$, but maybe it is not true. Let $q\otimes a \in \mathbb{Q} \otimes_{\mathbb{Z}} \mathbb{Z}_{2^k}$, for some $k \in \mathbb{N}$. Then $$q \otimes_{\mathbb{Z}}a = \frac{q 2^k}{2^k} \otimes_{\mathbb{Z}}a = \frac{q}{2^k} \otimes_{\mathbb{Z}} 2^ka = \frac{q}{2^k} \otimes_{\mathbb{Z}} 0 = 0.$$ So I guess the product is zero. But I don't know to show that the otherside is nonzero. Can you help me? Also, if my attempt is not correct, can you give me a hint?


How can I tell If a file is NTFS encrypted?

When I copied some files from work onto my external hard drive it copied them as encrypted files.  NOTE: The drive is not encrypted - just individual files.  Now when I try to copy files from the external drive to my PC, Nautilus crashes. In fact Nautilus crashes even when I browse a directory that contains an encrypted file.   I can browse the file system using the terminal, although I get "Permission Denied" errors if I try to copy the encrypted files. On Windows the encrypted files are listed in green in Windows explorer.  Is there anyway that I can list which files on the external drive are encrypted?  UPDATE #1  I understand that you cannot decrypt these encrypted files under Linux per this Q&AL . However, I can list them in the terminal so I'm looking for a way to list which ones are encrypted and which ones are not.


I'm trying to write to a text file the following data:   TEXTed       00:01:27    8.0 xxxxxxx         Some test  TEXTed       00:01:35  251.0 xxxxxxx         Some text   I'm using streamwriter, first building my string and then writing to file:                  var v15timeString = item.Duration;                 var v15fileString = "             " + item.Time + "       ";                 v15SR.Write(v15fileString);                 var durLength = item.Duration.Length;                 v15SR.BaseStream.Position = -durLength;                 v15SR.WriteLine(item.Duration);   The problem I'm having is for 8.0, 251.0 How do write off these. I want to maintain the .0 for this in all the lines. In layman terms this column should be right aligned. I'm refering this to as item.duration in my code as above.  I did an attempt as above by doing a streamreader.BaseStream.Position = -durLength, but the .Position doesn't take a negative number. How can I seek back after v15filestring, based on durLength, and then write out the item.Duration  Keeping in mind I need to strictly maintain this column as left aligned in the text file as shown in my sample above.  Kindly help. Thank you.


LockerService is nothing to do with Javascript/Iframe in Salesforce Classic

I am asking question just to ensure that my understanding is correct.I have read  and .  It mentioned that Locker Service does not effect Salesforce classic which mean I still safe if I using Iframe, Javascript Library or javascript code in Salesforce classic ?Is this understanding correct?


I have an input where the user introduces a number, integer or float. I would like to know it the number is correct, for example, check that the input 2r is not correct. My first approach was to use parseFloat, but it does not complain about that:  parseFloat('2r')   // returns 2   Actually, this is the expected behaviour according to the    How do you check that 2r is wrong?


Prove that there does not exist group $G$ such that ${\rm Aut}(G)\cong \Bbb Z.$

I know how to prove that for $\mathbb{Z}/n$ where $n$ is odd, but what should we do in case of $\mathbb{Z}$?


I am studying basic quantum theory. My question is:  Why can't a particle penetrate an infinite potential barrier?  The reasoning that I have applied is that particles under consideration have finite energy. So, to cross an infinite potential barrier the particle requires infinite energy. But I cannot think of the mathematical relation between potential and energy so that indeed I am convinced that to cross an infinite potential barrier the particle needs infinite energy.  What is the relation between the potential and energy of quantum mechanical particles?


Why is my texture not showing up in 3D view?

I've tried every display mode possible and nothing happens. What do? Here's the blend:


$$\begin{cases} \frac{\partial u}{\partial t} + u\frac{\partial u}{\partial x} = 0, &x\in\mathbb{R},\ t>0\\ u(x,0) = u_0(x), &x\in\mathbb{R}. \end{cases}$$  Which choices of the following functions for $u_0$ yield a $C^1$ Solution $u(x,t)$ for all  $x\in\mathbb{R}$  and $t>0$  $1)$  $u_0 (x) = \frac{1}{1+ x^2}$  $2)$  $u_0(x) =  x$  $3)$  $u_0(x) = 1+x^2$  $4)$ $u_0(x) = 1+2x$  My answer key says the answer is $2$ and $4$. My  question is why we should reject option $1$ and $3$?  $$\frac{dt}{1}  =\frac{dx}{u}= \frac{du}{0}$$    gives me  $u=c_1$  and  $ut-x=c_2$ where $c_1$ and $c_2$ are constants.  Now  by condition given in Option $1$ I get a relation between constants  I.e    $$c_1= \frac{1}{1+(c_2)^2}.$$  Then I have the solution    $$u = \frac{1}{1+ (ut-x)^2}.$$   Then why  we reject option $1$?


I have an assignment that is supposed to use three stacks to ultimately find palindromes.  Two stacks will need to hold the reverse of the input sequence.  I need to pop the items from one of those stacks and push them into the third stack.  This will obviously create two stacks with reverse items that can be compared to see if the input string is a palindrome.  I have already written a class 'ArrayStack' and 'LinkedStack'.  I am now supposed to write a class that has three ArrayStack instance variables, a constructor that takes no parameters and will create three stacks of type ArrayStack and a method that takes a string parameter and returns a boolean.  The incoming string will be used to check for Palindromes.  The individual characters of the string will need to pushed into one of the stacks.  After that is figured out, I need to do the same thing, but with using the 'LinkedStacked' class.  This is the code I have so far and have tried multiple things and have gotten multiple errors (NPE, etc).  Any pointers / explanations / advice would be appreciated.  I think I have gotten myself really confused.  Thanks in advance for any help offered.  Please note I am a beginner.    public class ArrayPalindrome {      static ArrayStack one;     static ArrayStack two;     static ArrayStack three;      public ArrayPalindrome(){         this.one = one;         this.two = two;         this.three = three;     }      public static boolean isPalindrome (String input ){         String input2 = "";         for (int i = 0; i < input.length(); i++) {             char character = input.charAt(i);             one.push(character);         }         while (!one.isEmpty()) {             // add the character at the top to a string                input2 = input2 + one.pop();         }         return true;     }      public static void main(String[] args) {         if (one.equals(two)){             System.out.println("Palindrome");         }         else {             System.out.println("Not a Palindrome");         }     }


TeX Live 2016: minted doesn't work with LuaLaTeX (bug fixed in June 2016)

I've installed TeX Live 2016 as it was released today (thanks to the developers for that).  Now I have the following MWE:  \documentclass{article} \usepackage{minted} \begin{document}  \begin{minted}{ruby} class Foo   def init     pi = Math::PI     @var = "Pi is approx. #{pi}"   end end \end{minted}  \end{document}   When running pdflatex --shell-escape test.tex it runs through the file and produces the PDF as expected. Doing the same with lualatex --shell-escape test.tex fails with  This is LuaTeX, Version 0.95.0 (TeX Live 2016)   system commands enabled. (./test.tex LaTeX2e <2016/03/31> Babel <3.9r> and hyphenation patterns for 1 language(s) loaded. (/opt/texlive/2016/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/opt/texlive/2016/texmf-dist/tex/latex/base/size10.clo)) (/opt/texlive/2016/texmf-dist/tex/latex/minted/minted.sty (/opt/texlive/2016/texmf-dist/tex/latex/graphics/keyval.sty) (/opt/texlive/2016/texmf-dist/tex/latex/oberdiek/kvoptions.sty (/opt/texlive/2016/texmf-dist/tex/generic/oberdiek/ltxcmds.sty) (/opt/texlive/2016/texmf-dist/tex/generic/oberdiek/kvsetkeys.sty (/opt/texlive/2016/texmf-dist/tex/generic/oberdiek/infwarerr.sty) (/opt/texlive/2016/texmf-dist/tex/generic/oberdiek/etexcmds.sty (/opt/texlive/2016/texmf-dist/tex/generic/oberdiek/ifluatex.sty)))) (/opt/texlive/2016/texmf-dist/tex/latex/fancyvrb/fancyvrb.sty Style option: `fancyvrb' v2.7a, with DG/SPQR fixes, and firstline=lastline fix  <2008/02/07> (tvz)) (/opt/texlive/2016/texmf-dist/tex/latex/float/float.sty) (/opt/texlive/2016/texmf-dist/tex/latex/base/ifthen.sty) (/opt/texlive/2016/texmf-dist/tex/latex/tools/calc.sty) (/opt/texlive/2016/texmf-dist/tex/latex/ifplatform/ifplatform.sty (/opt/texlive/2016/texmf-dist/tex/generic/oberdiek/pdftexcmds.sty (/opt/texlive/2016/texmf-dist/tex/generic/oberdiek/ifpdf.sty) (/opt/texlive/2016/texmf-dist/tex/generic/oberdiek/luatex-loader.sty (/opt/texlive/2016/texmf-dist/scripts/oberdiek/oberdiek.luatex.lua))) (/opt/texlive/2016/texmf-dist/tex/generic/oberdiek/catchfile.sty) uname -s > "test.w18"  ! Package catchfile Error: File `test.w18' not found.  See the catchfile package documentation for explanation. Type  H <return>  for immediate help.  ...                                                l.93     \CatchFileDef\@tempa{\ip@file}{}  ?    As mentioned, it's a freshly installed TeX Live 2016; I've also checked the installed Pygmentize version, which is 2.1.3 (installed via pip). Testing with TeX Live 2015, the above code, however, works without problems with both pdflatex and lualatex.  Does anybody have a hint for me on how to fix this, or is it a bug in lualatex or minted (or whatever other package) that should be reported?  Update: With minted version 2.2 (2016-06-08), the package loads the shellesc package automatically, as mentioned by @David Carlisle and @egreg in the comments; therefore, the problem should not occur any more, if you have this version installed.


Add warning if your edit will make the post Community Wiki

The below is no longer relevant since posts  after being edited     As the Community Wiki process can't be undone and is automatically happening after five people edit the same post, it will be good and essential idea to add warning: "Your edit will make the post Community Wiki, sure to continue?" or something along those lines.  Just happened to me (was the 5th to edit a question) and I never intended to make it a wiki. Yes I know, will check how many people edit it before but it was new question so never assumed four people edited it already. :/  Edit: as "compromise", it will also be really cool to have count of how many people already edited the question, this way if I'll see "edited by 4 people" I will think twice if my edit is really necessary.  Edit II:  I was under the impression that having the "root" question become CW all answers also become CW as result and no reputation is gained - however I've just noticed that impression was wrong and the answers are safe and sound.... so this is really just to prevent situation where one action (editing a post) is triggering other action that is not trivially related (making it Community Wiki) without any warning, especially when that unintended action is not reversible.


Can soured raw milk be used to make yogurt?

I have a large quantity of raw milk at my disposal, and am trying to find creative ways to use it.  Various web sites (, , and many others) have suggested that raw milk, even (perhaps even especially) after it begins to sour, can be used to make yogurt.  I've also  for yogurt cultures to grow.  Which is it?  Please note this question is specifically about , not spoiled milk, which is not edible. And please assume that the sour raw milk being used is free from harmful bacteria and pathogens and is safe to consume.  I'm not asking about food safety here, I'm asking: Is it possible to make yogurt from sour raw milk?


How would I go about putting a period within a parenthesis sentence:  (Code is subject to change. Refer to tips below.)  Do I put a period after "below" or do I remove it:  (Code is subject to change. Refer to tips below)


How many integer solutions of $x_1+x_2+x_3+x_4=28$ are there with $-10\leq x_i\leq20$?  I know how to do this type of problem when all $x_i$ are positive, but I am struggling to understand how to complete this problem when the $x_i$ can be negative.


Split a string into a list with parts of N characters

I'm very new to python and was wondering what the most pythonic/easy way is to split a string into a list with parts of N characters.  I've come across this:  >>>s = "foobar" >>>list(s) ['f', 'o', 'o', 'b', 'a', 'r']   which is how I can turn a string into a list of characters, but what I would want is to have a method that would look like this:  >>>def splitInNSizedParts(s, n):   where   >>>print(splitInNSizedParts('foobar', 2)) ['fo', 'ob', 'ar']


The Question consist of three parts   What are the differences between them  When to use adduser or useradd and why there is more than one command for the same purpose


Why are Lwaxana Troi and Reginald Barclay not present at Deanna Troi and Will Riker's wedding in Nemesis?

Why are Deanna Troi's mother and Mr. Barclay not present at her wedding ceremony portrayed in Star Trek: Nemesis? By the end of Voyager, Troi and Barclay seem to get along pretty well, and Lwaxana is... well, her mother. Will's father is not present either.  Is there an in-universe explanation? Is there a real-world explanation? Were the characters even considered for participation?


I have the following network:  I am told that B is independant of D. Why is this the case? Shouldnt that they are both connected to C break that independence based on the V shape?  In this case, I am told that B is not indep of D. Why is this the case?


What is the British English way of referring to a source in-text.  Is it plural because there are two authors, like this:         X and Y (2011) describe ...   Or is it singular because you are referring to a singular source, like this:     X and Y (2011) describes...   So what I am asking is whether you refer to the source or to the authors?


How to share internet using command prompt?

How to share the internet (first checkbox) from the command prompt?


Avoid writing < character to XML in python

I am trying to write this text value to the XML tag like this    <Parameter name="name"><![CDATA[xyzvalue]]></Parameter>   Whenever, i am setting this value as text to this tag. It generates it like this   <Parameter name="name">&lt;![CDATA[xyzvalue]]&gt;</Parameter>   I need have tried to avoid unescape characters in the code   ET.SubElement(parameters, "Parameter", name="id").text = unescape("&lt;![CDATA[xyzvalue]]>")   How can i avoid it writing like this to the xml file ? I need to avoid escaping characters in the XML.  This is my complete code:  map = ET.Element("Map")  parameters = ET.SubElement(map, "Parameters") ET.SubElement(parameters, "Parameter", name="bounds").text = "-180,-85.05112877980659,180,85.05112877980659" ET.SubElement(parameters, "Parameter", name="center").text = "0,0,2" ET.SubElement(parameters, "Parameter", name="format").text = "png" ET.SubElement(parameters, "Parameter", name="minzoom").text = "0" ET.SubElement(parameters, "Parameter", name="maxzoom").text = "22" ET.SubElement(parameters, "Parameter", name="scale").text = "1" ET.SubElement(parameters, "Parameter", name="metatile").text = "2" ET.SubElement(parameters, "Parameter", name="id").text = unescape("&lt;![CDATA[xyzvalue]]>") ET.SubElement(parameters, "Parameter", name="_updated").text = "1552288036000" ET.SubElement(parameters, "Parameter", name="name").text = "<![CDATA[xyzvalue]]>" ET.SubElement(parameters, "Parameter", name="tilejson").text = "<![CDATA[2.0.0]]>" ET.SubElement(parameters, "Parameter", name="scheme").text = "<![CDATA[xyz]]>"  indent(map) tree = ET.ElementTree(map) tree.write("plotfinder_tiles.xml", xml_declaration=True, encoding='utf-8', method="xml")     This is different to , in a way, that i have this issue at the Element creation not to prettify/ remove after xml has been created.


I'm trying to make simple tcp server with gui but I'm having an error Cross-thread operation not valid: listview1 access from thread other the thread it was created in.  Here is my code  private void Form1_Load(object sender, EventArgs e)         {             try             {                 serverSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);                 serverSocket.Bind(new IPEndPoint(IPAddress.Any, 3000));                 serverSocket.Listen(0);              Thread clientThread = new Thread(clientListener);             clientThread.Start();         }          catch (SocketException)         {          }     }      private void clientListener()     {         while (true)         {             socket += 1;             clientSocket[socket] = serverSocket.Accept();             sendMessage(socket, "info");         }     }      private void sendMessage(int clientID, string msg)     {         byte[] sdata = Encoding.ASCII.GetBytes(msg);         clientSocket[clientID].Send(sdata, 0, sdata.Length, 0);          byte[] buffer = new byte[1028];         int rec = clientSocket[clientID].Receive(buffer, 0, buffer.Length, 0);         Array.Resize(ref buffer, rec);          updateUI(Encoding.ASCII.GetString(buffer));     }      private void updateUI(string data)     {         string[] separator = new string[] { "[1.2.3.4]" };         string[] trimData = data.Split(separator, StringSplitOptions.None);          ListViewItem lvi = listView1.Items.Add("test id");         lvi.SubItems.Add(trimData[0]);         lvi.SubItems.Add(trimData[1]);         lvi.SubItems.Add(trimData[2]);     }   my server is working fine in console but when i try to make in windows form i start having this error. hope someone can help me.


If your question is closed as a duplicate, should you delete it?

Sometimes you don't search for the answer to a question before you ask it. It will be closed as duplicate. Should you, the question owner, delete it? While it is good for search engines finding the answer and whatnot, it does take up space on the front page, pushing better questions down. What should be done in this situation?


SFDX 6.21.0-9db990b3c9 AND CURRENT Update - Error - sfdx no longer works

Anyone on a MAC got this update to work? Anyone know how to fix?  It hangs for me on finishing up.   Now all I get when executing sfdx at the cli is:  module.js:540     throw err;     ^  Error: Cannot find module '/Users/xxxx/.local/share/sfdx/client/package.json'     at Function.Module._resolveFilename (module.js:538:15)     at Function.Module._load (module.js:468:25)     at Module.require (module.js:587:17)     at require (internal/module.js:11:18)     at Object.<anonymous> (/Users/xxxxx/.local/share/sfdx/client/dist/versions.js:6:15)     at Module._compile (module.js:643:30)     at Object.Module._extensions..js (module.js:654:10)     at Module.load (module.js:556:32)     at tryModuleLoad (module.js:499:12)     at Function.Module._load (module.js:491:3)   Tried to reinstall, reboot, etc to no avail.  Update: After several reboots and using the download link from  I was able to get it repaired. All other links did not work.  Would be interested to know if others have issues with this update.  Update 10-18-2018 Still not working. Update hangs on finishing up Update 12-17-2018 Still not working. Update hangs on finishing up (6.44.0) Update 8-01-2019 Seems to have been resolved with latest releases


How do native English speakers respond to "Thank you"?

In my school and university I was taught to say "Not at all" or "Don't mention it" in response to "Thank you!". Now I rarely hear these phrases used, but rather something like "You're welcome", "It's OK", "My pleasure", or "No problem".  My real life conversation experience is very poor. I often listen to some English learning podcasts, and watch some films in English. So I listen to dialogs, which are probably not from  the modern real life world.   How do native English speakers tend to respond to "Thank you!" now? What I should care about, when choosing from the available options?


Where can I get a list of all Plain TeX macros. In the TeXbook, it is said that Plain TeX adds about 600 macros (to the ~300 TeX primitives). Where are they listed (with their documentation)?


Can I say that $1^{\frac{1}{2}} = (e^{2i\pi})^{\frac{1}{2}} =e^{i\pi} = -1 $ ?  the Answer is obviously no, but why not ?


I'm having trouble to find a UMP test after finding a MP test.  Consider one observation $X$ from CDF $F_\theta(x) = x^\theta$ where $x \in [0, 1]$ and $\theta > 0$.  I found the MP test for testing $H_0: \theta = 1$ against $H_1: \theta = 2$ with significance level $\alpha=0.05$ using the Neyman Pearson lemma: $$\lambda_{\theta_0, \theta_1}(x) = \frac{f_{\theta_0}}{f_{\theta_1}}= \cdots = \frac{1}{2x}$$  Reject $H_0$ if $\lambda_{\theta_0, \theta_1}(x)\leq\frac{1}{c}$, hence if $X\geq \tilde{c}$, where $\tilde{c} = 0.95$.  Now I'm asked to find the UMP test for testing $H_0: \theta \in [\frac{1}{2}, 1]$ against $H_1: \theta=2$ for significance level $\alpha = 0.05$. How to proceed?


I want to understand the difference between the following two ways of initializing a 2-dim list in python: r1=2 c2=2  result = [[0] * r1] * c2  This makes a 2x2 list initialized with all zeros and when I write: result = [[0,0],[0,0]]  This also creates a 2-dim list initialized with zeros (is this true?) Now when I insert values in the first case, like this: r1=2 c2=2  result = [[0] * r1] * c2  for i in range(r1):     for j in range(c2):         result[i][j] = i+j     print()   print(result)  This does not insert the correct values, and rather the same values are repeated in both rows However, when I insert values like this, in the second case: r1=2 c2=2 result = [[0,0],[0,0]]  for i in range(r1):     for j in range(c2):         result[i][j] = i+j     print()   print(result)  This inserts the correct values. What is the reason of wrong values insert in the former case and correct values in the latter case? Thanks.


Which weapon do I draw by default when combat starts, if I have several weapons which I can wield?

I'm playing a ranger in a 5e D&D campaign with dual-weapon fighting proficiency.   Assuming I draw some weapon when combat starts, which weapon do I draw by default (e.g., bow, daggers, do I pick)?   Does this change case-by-case?


How Can I link button with keyboard in C# Windows Form

I want to link button in Window Form with letter "S" in Keyboard. For Example: If I press "Button1" the key "S" will pressed automatically


How do you measure magical ability in the Harry Potter series?

In the world of Harry Potter, various wizards are described as being "powerful".     Harry had been a year old the night that Voldemort – the most powerful   Dark wizard for a century, a wizard who had been gaining power   steadily for eleven years – arrived at his house and killed his father   and mother.   But how is wizardly power actually measured in the franchise? Is it just a matter of O.W.Ls and N.E.W.Ts or is there more to it?


How to see if cast iron cookware is enameled?

I have found a cast iron grill manufactured by the French company Le Creuset. This cookware is probably around 20 years old and you can see a picture of the same model below.    I'm wondering if this grill is enameled cast iron or raw cast iron. Indeed, if it's raw cast iron, I will strip of the former seasoning and create a new one. If it's enameled cast iron, I'm not sure how to deeply clean it but I will not put it in my self-cleaning oven.  Today, all cast iron products from Le Creuset are enameled but I don't know if that was the case 20 years ago. The cookware is black and has been used a lot, so I don't know if the (quite) smooth aspect of the top is enameled or not.   Do you have any tricks to recognize if cast iron cookware is enameled or not?*  Photos (click for full-size)       On this last one, you can see "Le Creuset * Made in France* D2" but I didn't find anything about D2 grill model on the internet.


Movie with killer androids (glowing eyes, screaming)

Many years ago I saw this movie. The main protagonist is out with his woman partner (girlfriend or wife, forgot). At some point, after they went to some remote place by car, she is revealed to be an android, her eyes start shining, she starts to scream and tries to kill him, but he manages to run her over with the car. After that, suspected of murdering her, he is on the run. At some point, the protagonist meets another android, who is some kind of professor, and the android tries to kill him, along with shining eyes and screams, but whenever the protagonist asks the professor a question, the professor briefly interrupts (eyes and voice briefly back to normal) to answer the question before he continues to go after the protagonist. This makes it possible for the protagonist to badly damage the professor and escape. At the end, we see a highly dysfunctional professor sitting on a chair behind a desk doing nonsensical things. The protagonist also meets a woman, with whom he becomes friendly. At some point, they discuss whether all of the androids are evil, and the woman insists that maybe not all of them are evil. The woman is eventually revealed to be one of the androids: as she is steering a car, her eyes start shining and she appears to attempt to run over the man, but then she stops on her own, her eyes go back to normal and she drives away.


Examples of Separable Spaces that are not Second-Countable

In  I give an example of a separable space that is not second-countable. What are other good examples?


SQL Server 2012: Login failed for user. Reason: Failed to open the database configured in the login object

Every so often, my SQL Server 2012 throws the following errors: Error (likely related to the one below):  Source: spid99 The client was unable to reuse a session with SPID 99, which had been reset for connection pooling. The failure ID is 46. This error may have been caused by an earlier operation failing. Check the error logs for failed operations immediately before this error message. Error: 18056, Severity: 20, State: 46.  Immediately before the error above (same timestamp):  Source: Logon Login failed for user 'myUser'. Reason: Failed to open the database 'myDatabase' configured in the login object while revalidating the login on the connection. Error: 18456, Severity: 14, State: 46.  My ASP.NET 4.5 website (consuming the DB) throws this error at the same time:  System.InvalidOperationException: Internal connection fatal error.  What may be causing these issues and how can I fix them?


Prove or disprove: If H is a normal subgroup of G such that H and G/H are abelian, then G is abelian.

it seems like it... should be? In that I can't think of any counterexamples off the top of my head. I was looking up these  and saw the quaternion group, but the subgroups of the quaternion group aren't abelian...


How do I find $ Pr\{X_1  k \} $if $X_1 : G(p_1)$- geometric distribution

I would think the song like $1-Pr\{X_1 < k \} $ but what is confusing to me is the fact that this is a discrete random variable, and these inequalities ussually apply to absolute continuous variables, so I just don;t know what to do?  I have to prove: Geometric random variables $X_1:G(p_1) X_2:G(p_2) X_3:G(p_3)$ are independent, prove the following :  $$Pr(X_1 < X_2 < X_3)= \frac{(1-p_1)(1-p_2)p_2p_3^2}{(1-p_2p_3)(1-p_1p_2p_3)}$$  I got started like:  $$\begin{align*} \Pr[X_1 < X_2 < X_3] &= \sum_{k=0}^\infty \Pr[X_1 < k < X_3]\Pr[X_2 = k] \\ &\overset{\text{ind}}{=} \sum_{k=0}^\infty \Pr[X_1 < k]\Pr[k < X_3]\Pr[X_2 = k]. \end{align*}$$


The meaning of the phrase "to have Helen all to herself"

Annie wanted to have Helen all to herself so that she could do anything with her.   Note: In this context, Annie (full name, Annie Sullivan) is the teacher of Helen (full name, Helen Keller).  What is the meaning of "to have Helen all to herself", and is the clause "she could do anything with her" correctly used in the sentence? The sentence above is the answer to the question " Why did Annie want to have Helen all to herself?" The question was created from the passage " The next day, I told Helen's father, " I can't do anything with Helen unless I have her all to myself. I want her to depend on me for her food, her clothes,everything. ....."


What does this trace look like? All the points on a circle obtained from a fixed point by rotations of this circle.

If I mark all the points on a circle obtained from a fixed point by rotations of this circle through angles of n radians(n could be all the integers), then what does it look like? I guess it is related to cycloid. But I'm not sure that how to show this.  Is my prediction right? If not, could you help me solve this problem?  The problem I want to solve is   "Mark all the points on a circle obtained from a fixed point by rotations of this circle by rotations of the circle through angles of n rads, where n can be all the integers. Describe all the limit points of the set constructed."  Any hints or advice would be very helpful to me.


GEE, quasi-likelihood and what it generalizes

formulates Generalized Estimating Equations (GEE) as     Given a mean model, $\mu_{ij}$, and variance structure, $V_{i}$, the estimating equation is formed via:    $$     U(\beta) = \sum_{i=1}^N \frac{\partial \mu_{ij}}{\partial \beta_k} V_i^{-1} \{ Y_i - \mu_i(\beta)\} \,\!  $$   The parameter estimates solve U(β)=0 and are typically obtained via the Newton-Raphson algorithm.     Does GEE belong to  (is the maximum quasi-likelihood method same as ?) If yes, what is its quasi-likeilhood function, or does GEE maximizes some quasi-likelihood function? What does GEE "generalize"? Is  it estimating equation method for estimation?     In what sense is GEE "generalized"? Is it similar to the way in which the generalized linear model generalizes the linear model?


The SMTP server requires a secure connection or the client was not authenticated. How to receive email on my gmail account.?

I've written C# code to send email on my gmail account from my own gmail account.but System is raising below exception whenever I click the submit button.      {"The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at"}   I've also receoved security alerts on my gmail account on clicking submit.  How to resolve this? Here is my code:      contactus.aspx.cs   public partial class contactus : System.Web.UI.Page {     protected void Button1_Click(object sender, EventArgs e)     {         // To Do. Implementation will be discussed in Part 142     } }     protected void Button1_Click(object sender, EventArgs e)     {         try         {             if (Page.IsValid)             {                 MailMessage mailMessage = new MailMessage();                 mailMessage.From = new MailAddress(" mygmail@gmail.com");                 mailMessage.To.Add("mygmail@gmail.com");                 mailMessage.Subject = txtSubject.Text;                  mailMessage.Body = "Sender Name : " + txtName.Text + "
"                     + "Sender Email : " + txtEmail.Text + "
"                     + "Comments : " + txtComments.Text;                 mailMessage.IsBodyHtml = true;                   SmtpClient smtpClient = new SmtpClient("smtp.gmail.com", 587);                 smtpClient.EnableSsl = true;                 smtpClient.Credentials = new                 System.Net.NetworkCredential("mygmail@gmail.com", "password");                 smtpClient.Send(mailMessage);                  lblMessage.ForeColor = System.Drawing.Color.Blue;                 lblMessage.Text = "Thank you for contacting us";                  txtName.Enabled = false;                 txtEmail.Enabled = false;                 txtComments.Enabled = false;                 txtSubject.Enabled = false;                 Button2.Enabled = false;             }         }         catch (Exception ex)         {             // Log the exception information to              // database table or event viewer             lblMessage.ForeColor = System.Drawing.Color.Red;             lblMessage.Text = "There is an unkwon problem. Please retry;         }     }        exception


Boot process hangs on "A start job is running for Hold until boot process finished"

I am struggling to boot the OS after shutting down last night, It is a single boot Ubuntu on a 2011 MacBook Pro, device all working last night and now all I get is this for like 20 minutes before I give up.  I tried both Shift and Escape to boot into recovery and neither seemed to work.  It mentions  [FAILED] Failed to start LSB: Xen daemons   then hangs on a start job is running for...  Any advice?


Hi after the installation, I got this warning:  The scripts pip, pip3 and pip3.7 are installed in '/Users/stevetsang/Library/Python/3.7/bin' which is not on PATH. Consider adding this directory to PATH   Does this matter? If yes, could someone tells me on what command to move the scripts to PATH? Thank you  OS: MacOs


What is the interaction between Thunderwave and being required to target your own space?

The spell Thunderwave has the rather unusual target area of a 15-foot cube, the point of origin for which is the caster, which is  to mean you can either position the cube anywhere adjacent to yourself, or (for whichever reason) include yourself in the area, but not if it's the middle of it. However, for homebrew reasons, the character trying to cast Thunderwave has the following limitation to their spellcasting:  [I]f the spell requires a somatic component, it must target you or a point in your space.  Thunderwave, with its components being V S, fits that description, but that results in a rather unclear interaction - since I have to choose a "point in [my] own space" for the spell's origin, where can the cube be placed?


How do I undo the MkLink junction I made?

I have no idea what I'm doing. I needed to back up my iPhone, but the storage on my computer was too low, so I followed a guideline on how to back it up directly to an external hard drive. It required moving the backup folder to the external hard drive, deleting the original file location on my PC, and then running a command: MkLink /J "C:\Users\UserName\AppData\Roaming\Apple Computer\MobileSync\Backup" "M:\MobileSync\Backup" This was successful, but I didn't realize this hard drive was also low on memory. Now I would like to have my iPhone backed up directly to my other hard drive, but I have no idea what to do next or what script to write. What I've done so far is cut/paste the backup folder from hard drive 1 to hard drive 2, and try to create a junction from 1 to 2: MkLink /J "M:\MobileSync\Backup" "H:\MobileSync\Backup"  the system cannot find the path specified.  Have I mentioned I really have no idea what I'm doing? How do I go about solving this problem? I would really appreciate any help!


In graphics/graphicx, how to show actual pictures despite draft mode

For collaboration purposes I am using the draft mode in my LaTeX manuscript to show todo-notes, remarks and so on. By switching to final mode all of these additions become unvisible.  However, I'd love to switch on the final mode of the graphics/x package to see the actual pictures but \documentclass being still in draft mode. I get an error about clashing options when I add  \usepackage[final]{graphicx}   My first guess was that the \documentclass already sets the option for the graphics/x package. Following doesn't help either  \PassOptionsToPackage{final}{graphicx} \documentclass[twoside,onecolumn,draft]{rsauthor}


Do empty pages or pages with no content affect SEO?

How do search engines see empty pages?   Is it a good thing or a bad thing for a website to have pages with no content?


I need Silverlight installed on my Ubuntu system, so that I can see some of the Microsoft websites(mainly videos).  Are there any alternatives to Silverlight in Ubuntu? If so, what are they and how do I install them?


How do I get a random  instance? It appears that the random module only returns floats which are a pita to convert to Decimals.


I like this kind of foods.   Or   I like these kind of foods.   Which pronoun is correct here?


Why is the class of my dynamically created element not recognised?

I have a textbox. If selected and hit the tab key, a new line will open. This works fine so far. However, the same action doesn't work in that dynamically created textbox. Even if it has the same class which the original textbox was called on. I tried to find the explanation on the internet, but I couldn't get/understand a right answer. Could someone please help me?    $('.list').keydown(function(key){     if(key.which === 9) {         $('.ingredients_list').append('
<input class="list" type="text"/>
');      } });


Can I use my computer's network connection on my Ipod?

I know it's possible to tether iphones to use their internet connection on the computer, but can it be used the other way? I want to use the computer's network connection on my Ipod Touch through the usb cable. Is it possible? Thank you!


How does the Artillerist's Arcane Firearm d8 bonus work with Crits?

When you cast an artificer spell through the firearm, roll a d8, and you gain a bonus to one of the spell's damage rolls equal to the number rolled.  It reads like it's adding to an existing roll, and since you roll double dice on crits this means I can't double this bonus effectively?


Is there a best practices for storing UI settings in a file?

I have not seeing an satisfactory answer for this yet, so thought I'd ask. Are there any best practices for storing UI settings in a file?  The scenario is that we have an in house C# app that I want to store an array of file/folders in along with other random things (flags to use when executing an external command, optional arguments to pass to selectable compare algorithms, etc). Because of the nature of these values, using the built in app.config methods isn't going to work. So is there any best practices when storing semi-complex settings to an setting file?  Currently the most complex I'm storing will be a list with a single entry needing to store a file name, compare algorithm, and argument text. So it's not all simple key/value data.  I'm looking for thoughts on:   layout (ex. if XML, values should be in the attributes vs node.value) format (XML, YAML, etc) frameworks   This won't be storing sensitive data, so security isn't a concern.  I'm currently looking to just use XmlDocument and separate classes for each different collection. But I feel like there should be some existing framework for this already.  Thank you!


$\alpha$ and $\beta$ are solution of $a \cdot \tan\theta + b \cdot \sec\theta = c$ show $ \tan(\alpha + \beta) = \frac{2ac}{a^2 - c^2}$

If $\alpha$ and $\beta$ are the solution of $$a \cdot \tan\theta + b \cdot \sec\theta = c$$, then show that $$ \tan(\alpha + \beta) = \frac{2ac}{a^2 - c^2}$$  I did the following:     $$a \cdot \tan\theta + b \cdot \sec\theta = c$$       Squaring both sides,  $$a^2 \cdot \tan^2\theta + b^2 \cdot \sec \theta + 2 \cdot a \cdot b \cdot \tan \theta \cdot \sec \theta = c^2$$      This implies $$(a^2 + b^2) \cdot \sin^2 \theta + 2 \cdot a \cdot b \cdot \sin \theta + (b^2 - c^2) = 0$$       Hence I get $$\sin \alpha + \sin \beta = \frac{-2ab}{a^2 + c^2}$$ and $$\sin \alpha \cdot \sin \beta = \frac{b^2 - c^2}{a^2 - c^2}$$   But I am not able to solve it further.


Display accents on Touch Bar when holding a letter under Mojave

After upgrade to Mojave, a long press of any letter does bring up the accented character menu but not anymore on the Touch Bar (Mac Book Pro 15-inch, 2018 with US keyboard).   Do you have an idea to to get them back on the touchbar ?


In my assembly language class, our first assignment was to write a program to print out a simple dollar-terminated string in DOS.  It looked something like this:  BITS 32     global _main  section .data     msg db "Hello, world!", 13, 10, ’$’  section .text _main: mov ah, 9 mov edx, msg int 21h ret   As I understand it, the $ sign serves to terminate the sting like null does in C.  But what do I do if I want to put a dollar sign in the string (like I want to print out "it costs $30")?  This seems like a simple question, but my professor didn't know the answer and I don't seem to find it using a google search.


sqlsrv_query stops echoing results with em dash if max length of field is filled

I have a query: SELECT * FROM Table Which returns the following results:     ID Description     1 1234   2 12345   3 12—   4 123—   5 1234     In the table above, the Description field is defined as Description VARCHAR(5). I believe that my issue resides with the em dash — in that field. This issue also occurs with the en dash – but not a hyphen -. The actual issue is occurring when I get to the PHP side of things. When I echo out the table returned by sqlsrv_query it will not print any fields after ID #3. I cannot figure out why it stops printing those results. Here is the simplified code: <?php //Connect to the database include_once("config.php");  //Execute the stored procedure $query = "EXEC sp_query"; $stmt = sqlsrv_query($conn, $query); ?> <!DOCTYPE HTML>      <meta charset="utf-8">

         ID	         Description
      <?php         //Loop through the current array         while($row = sqlsrv_fetch_array($stmt, SQLSRV_FETCH_ASSOC)) {             echo "
";                 echo "".$row['ID']."	";                 echo "".$row['Description']."	";             echo "
";         }          //Release the result resource         sqlsrv_free_stmt($stmt);     ?>
    Loading this web page returns the table:     ID Description     1 1234   2 12345   3 12—      If I remove the one em dash from ID #4 then it will return the same exact results as the TSQL query shown at the top of this question. Is PHP somehow thinking that the max field length has been exceeded with the use of the em dash? Does anyone now how I can remedy this? Things I have tried:  Using different charsets CASTing the Description field to VARCHAR(MAX) in the stored procedure Selecting only the first 2 characters from the field LEFT(Description, 2) Removing the emdash before the echo using PHP function str_replace  None of these solved my issue. It may also be worth noting that the sqlsrv_errors function does not return any errors for the stored procedure.


Is it correct to say, "I don't feel to trust him," particularly in British English?  I'm actually a native speaker, but I live in Italy with my Italian wife, and so I've got so used to her (English language) mistakes, that sometimes I don't even know if they're mistakes or not.  In any case, this is something my wife says, but it doesn't sound quite natural to me, but I'm just not sure any more.  Is there a more natural way of saying it (in British English, or other dialects)?


How do I create empty array of a type given by reflection? I have tried using the Activator.CreateInstance(Type) method:  Type arrayType = typeof(string[]); Activator.CreateInstance(arrayType);   but I get a MissingMethodException exception:  System.MissingMethodException: No parameterless constructor defined for this object.   What am I doing wrong?


I was trying to find the sum of $\sum_{n=1}^{\infty}\frac{n}{2^n}$.  I tried like this $S = \sum_{n=1}^{\infty}\frac{n}{2^n} = \sum_{n=1}^{\infty}(\frac{n+1}{2^n} - \frac{1}{2^n}) = 2\sum_{n=2}^{\infty}\frac{n}{2^n} - 1$  So,$S = 2(S - \frac{1}{2}) - 1$  Implying $S =2$.  EDIT:  Also from many posts in the comment below I found a method of looking at the sum $\sum x^n$ and differentiating and plugging for $x$.  Is there any other method of looking at the problem and calculating the sum apart from the above method,may be it would be interesting to see different approaches to the same problem which may be used to visualize other problems based on summation of series?


App crashes, dock icon remains, can't reboot, yet no process in ps aux to kill

I've been encountering an extremely annoying problem since I upgraded to Yosemite. FCPX (but I've been having reports of this problem on other computers with finder.app and safari.app) sometimes will crash on exit (with no detectable log trace) and its icon will remain in the dock with the usual "this application is not responding" menu warning. Force quit won't work Rebooting can only be done the hard way because the stuck app is preventing a soft one yet no single process regarding FCPX is listed when in the activity monitor nor there is one in psaux. No zombie processes to be found; computer performance is fine. If I open an FCPX library, I'll get a dialog stating that "The application "Final Cut Pro" is not open anymore", which is quite irritating q: I'm on a MBP Retina early 2013 15' Does anybody have the slightest clue what's going on here?


How to navigate without without typing "cd foldername" all the time?

I am new to this whole thing and I was wondering if there is an easier way to travel between folders, like I just type one thing and I get to see what folders and I can go into and then I press one button and I'm in them, cause that seems more convenient and easier.


Determining precisely where $\sum_{n=1}^\infty\frac{z^n}{n}$ converges?

Inspired by the exponential series, I'm curious about where exactly the series $\displaystyle\sum_{n=1}^\infty\frac{z^n}{n}$ for $z\in\mathbb{C}$ converges.   I calculated $$ \limsup_{n\to\infty}\sqrt[n]{\frac{1}{n}}=\limsup_{n\to\infty}\frac{1}{n^{1/n}} $$ and $$ \lim_{n\to\infty} n^{1/n}=e^{\lim_{n\to\infty}\log(n)/n}=e^{\lim_{n\to\infty}1/n}=e^0=1. $$ So the radius of convergence is $1$, so the series converges on all $z$ inside $S^1$. But is there a way to tell for which $z$ on the unit circle the series converges? I know it converges for $z=-1$, but diverges for $z=1$, but I don't know about the rest of the circle. For what other $z$ does this series converge? Thanks.


Get Absolute Position of element within the window in wpf

I would like to get the absolute position of an element in relation to the window/root element when it is double clicked. The element's relative position within it's parent is all I can seem to get to, and what I'm trying to get to is the point relative to the window.  I've seen solutions of how to get a the point of an element on the screen, but not in the window.


Maximum and minimum value of $\int_0^1 f(x)dx $ given $|f'(x)|<2$

Let $f:\mathbb R\to \mathbb R$ be a differentiable function such that $f(0)=  0$ and $f(1)= 1$ and $|f'(x)|<2 ~ \forall x \in \mathbb R$, if $a$ and   $b$ are real numbers such that the set of possible values of $\displaystyle\int_0^1  f(x)dx $ is the open interval $(a,b)$, then $b-a$ is: ?   Attempt:   $$I = \int_0^1 1.f(x) dx$$  $$\implies I = 1 - \int_0^1 xf'(x)dx $$ (Integration by parts)  $$-2 < f'(x) < 2$$  $$\implies -2x <xf'(x)< 2x$$  for $x>0$  $$\implies -1 < \int_0^1 xf'(x) dx < 1$$  Therefore $I_{max} = 2$ and $I_{min} = 0$  $\implies b- a = 2$ but answer given is $b-a = \dfrac 3 4$.  Please let me know my mistake, and the correct way to solve it.


Interpreting a generalised linear mixed model with binomial data

I have a generalised linear mixed model with binomial response data, the model:  model <- glmer(RespYN ~ Treatment + Gender + Length + (1 | Anim_ID),   data = animDat,   family = binomial(link = "logit"))   I am no statistician (I'm a biologist) so I have no idea how to interpret the data. With a linear mixed model I understand, due to the mean differences, etc. being means of the response variables. With binomial GLMMs I am unsure.  How do I prove that the treatment is causing/not causing the response?  Here is my output (sorry for dumping all of it):  Generalized linear mixed model fit by maximum likelihood (Laplace Approximation) ['glmerMod']  Family: binomial  ( logit ) Formula: RespYN ~ Treatment + Gender + Length + (1 | Anim_ID)    Data: animDat       AIC      BIC   logLik deviance df.resid     142.1    158.1    -66.1    132.1      176   Scaled residuals:      Min      1Q  Median      3Q     Max  -2.6913 -0.3021 -0.2059  0.4435  3.8066   Random effects:  Groups       Name        Variance Std.Dev.  Cockroach_ID (Intercept) 0        0        Number of obs: 181, groups:  Cockroach_ID, 10  Fixed effects:             Estimate Std. Error z value Pr(>|z|)     (Intercept)  5.03046    3.62723   1.387    0.165     TreatmentPo -4.06399    0.48900  -8.311   <2e-16 *** GenderM      0.13323    0.49365   0.270    0.787     Length      -0.05896    0.05758  -1.024    0.306     --- Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1  Correlation of Fixed Effects:             (Intr) TrtmnP GendrM TreatmentPo -0.175               GenderM     -0.412 -0.039        Length      -0.995  0.139  0.348 convergence code: 0


I failed to find an example of a field F with non-cyclic Group Aut(F). Must Aut(F) be a Cyclic Group for any field F?


Are $\mathbb{Z_p},\mathbb{Q},\mathbb{R},\mathbb{C}$ above themselves vector space? Is a field above anoother field a vector space?   As for 1. we know that $\Bbb R^n$ is a vector space so in particular it is true for $n=1$  For 2. by definition a vector space is $V$ with addition and multiplication over a field, therefore 2 is true.


Vagrant / VirtualBox DNS 10.0.2.3 not working

I am running a fresh install of Linux Mint Nadia (14). I am following the instructions on Vagrant  but have gotten stuck on the . It seems the Vagrant box cannot connect outside and so I can't install anything using either Chef or Puppet.  In the basic Vagrant resolve.conf contains nameserver 10.0.2.3. But with that set I can't ping us.archive.ubuntu.com.  If I change it to 8.8.8.8 then I can ping us.archive.ubuntu.com but it does not stay set, and after a reboot it changes back to 10.0.2.3 - so provisioning fails again.  Ideally I would like for 10.0.2.3 to work on my setup. Failing that I would like a way to permanently change resolv.conf so that I can do provisioning.


"A plastic washing tub" or "A plastic basin"?

I got the large round container without a lid, used for washing clothes in the below picture. But I don't know how to call it.     What do you name that plastic washing container?    A plastic washing tub, a plastic basin or something?


Now quotes look like that:     A quote.   Quote's style changed. Is it a bug or just style update?


Implementing a Custom Subscription Center in Salesforce Marketing Cloud

Has anyone implemented a custom subscription center using landing pages? The example one from the documentation doesn't seem to be working. I would really like to just customized the out of the box one but the amp script is hidden when I view source. Does anyone have and tips/tricks for creating a sub center?  Thanks!


Prevent redraw of menu bar icons Yosemite

When switching between two screens, all the icons in the menu bar appear to be re-drawn, causing an annoying jittery effect. This started happening after upgrading to Yosemite.  Is there any documentation available on this problem? Are others experiencing the same issue? Is there a fix available?  I currently have in my menu bar:   Twitter Dropbox Grabbox F.lux Caffeine Time Machine Menu Meters WiFi Sound Battery (incl. percentage) Time (digital) Account switcher Spotlight Notification Center   Though I doubt any one of them is the cause.


Let $C$ be the Cantor set and $\mu$ be the uniform measure. Find $\int x^2 d\mu$

This is one of my homework problems:  Let $C$ be the Cantor set and $\mu$ be the uniform measure (with the usual Cantor distribution). Find $\int x^2 d\mu$.  I tried finding the value by using symmetry property, and failed, unsurprisingly. I also tried to use Fubini's theorem by setting $\int x^2 d\mu=\int_{0}^{1} \int_{0}^{x} 2t dx d\mu$, but I think it does not simplify the problem.  So what should I deal with it?


how to generate samples with the given autocorrelation function

I want to generate some spatial data where the points/location in the space form a multivariate gaussian distribution. I want these points to have certain autocorrelation given by the variogram model like spherical with spill 0.025 and range 15. I then want to generate some sample for this   How can I do it?  I then want to plot the empirical variogram and again fit a model variogram to check if they come out to be similar. How can I do it?


I'm using Macbook Pro 2012 running Mac OS X 10.10.3 and earlier today, I was trying to install Linux on a USB drive through Terminal. I first converted the format with this:   hdiutil convert -format UDRW -o ubuntu.iso ubuntu-1xxxx.iso   Next, listed drives with:   diskutil list   Added my flash drive. And then ran this:  diskutil unmountDisk /dev/diskN   where N being the no. of drive from the DiskUtil list. Here by mistake I chose the disk0, my boot recovery in my opinion, and unmounted that.  After that I ran,   sudo dd if=./ubuntu.iso of=/dev/rdiskN bs=1m   where again N being the no of drive listed in DiskUtil list. Here again, absentmindedly I chose disk1, the Macintosh HD, in my opinion. And suddenly after that I realized, what was happening and cancelled the process midway.  After that I tried remounting my recovery, but my Mac froze and after I tried to restart i got stuck at the prohibitory page. I tried booting into Recovery with Command+R, and tried mounting my Macintosh HD from there, but it gave me a error, that it couldn't be mounted. It asked me, to check a Disk Verification and Disk repair, I did that on my Macintosh HD and both were okay. But after that also the problem persists and I can't mount the Macintosh HD and still stuck at the prohibitory page.  I want to save my data, and want to backup my Macintosh HD, to an external hard drive.


This question is relatively simple. I don't understand why we never use passive form of to infinitive after the adjective unless the subject is "it".  For example:     He is difficult to please.   People consider the example above a correct sentence. But:     He is difficult to be pleased.    People, for example, my teacher, said it sounds wrong and told me not to write this type of sentence. Is it grammatically flawed, or is it just a stylistic choice?


Distributing identical objects to identical boxes

We have 6 identical things to be distributed in 4 identical boxes such that empty boxes are allowed the find the number of ways to distribute the things ?


Product of cells corresponding to their rows

I read from  question how to obtain the median for a given dataset after calculating the product of the arrays.  However, in intend to find the product of each pair of corresponding cells that'll then be shown in a third column. The dataset I have is huge and I hope there is a faster way to do this than finding the product of each pair to add in the third cell.  Any help will be greatly appreciated.


Audio circuit: single point PLUS ground plane

I'm currently designing my first audio PCB. I've read a ton of discussions and guides about audio grounding, so I've decided to use single point grounding (with the point being last filter capacitor minus).   However, one question arised in my head and I haven't found an answer. Is it beneficial to the circuit to make a fill on the PCB, connected with ground at the single point?  It seems logical to me, that a fill on the PCB would reduce noise and crosstalk between signal traces, while connecting this shielding plane to ground in single point would eliminate all current return problems which normal ground fill would cause. Ideally, no current would flow through this plane, as whole circuit itself is connected following the idea of single point.  On the other hand, it could make the ground noisier, as the ground plane is sort of an antenna.  A following question would be - if my conclusion is correct, should I connect the fill to quieter preamp ground (which is more sensitive) or noisier power amp ground (which wouldn't care too much if its ground would collect some noise)?   Edit: To clarify: this is not a debate between single point and plane grounding. Grounding of the circuit WILL be done via routing components to the single point only by 1mm traces!   The point is: is it beneficial to put a separate fill on the PCB and connect it to the circuit ground in the single point (not connecting any component to the fill)? Will it increase or decrease overall noise if there is a screen added? Again - the fill will be connected to the ground at ONE POINT, no component connected to it. This is the PCB without any pours:  This is what my idea of screening fill would look like, notice that both bottom and top fills are connected to anything only under C8 cap, components are still connected to their single points:


"Maybe:" in front of Contacts on Message screen

I get a "Maybe:" in front of most iMessage contacts and only the phone number for SMS'es - even for persons from my contact list. What can be the cause and how can I solve it?


Can I write with the pencil on a tablet and get a document .tex? What tablet you recommend?

I ever saw in a old version of tablet galaxy note that you can create a pdf writing on a tablet, however I do not know if I can obtain an file .tex.


Cannot use my drupal installation after enabling new custom theme

I keep geting this error message on every page request:  Fatal error: Allowed memory size of 167772160 bytes exhausted (tried to allocate 36 bytes) in C:\wamp\www\mydrupal2\includes\theme.inc on line 98 Call Stack #   Time    Memory  Function    Location 1   0.0100  142240  {main}( )   ..\index.php:0 2   0.0220  449448  drupal_bootstrap( ) ..\index.php:20 3   0.2050  3025040 _drupal_bootstrap_full( )   ..\bootstrap.inc:2259 4   0.6290  15508712    drupal_theme_initialize( )  ..\common.inc:5144   Increasing memory allowance has not had any effects. I try using drush to disable the offending theme or go back to the last working one, it's the same error message. I can't even use drush for anything else. It reports the same error message. I tried the SQL method on this . Same result.


Can I get Ubuntu to stop asking me to install updates?

Every day my computer says it has updates that I have to click and install. Now, the updates have settings in which I can supposedly control what is being checked and how often, and what to do when updates are being found.   Yesterday I only left the Important security updates checked (and I unchecked Recommended and all that other stuff), and under Automatic updates section I set to check Every fortnight (which is the rarest possible option).  Then I selected the option to Install security updates without confirmation. It asked me for password to make the changes, and then saved. Today I got on my PC, and again, I get the notification that updates are available, and it's waiting for me to click to install them.   For what difference it might make, I have the "regular" Ubuntu 18.04. installed with KDE desktop manually installed afterwards.   Can I get it to not ask me about updates, ideally ever?  If this is not possible, how can I have it at least respect the Every fortnight option so I don't have to click it every day?


During the process of writing my PhD thesis, I was close to falling out with my adviser, the advice I received from other staff at the lab (including the director) was unhelpful at best. I have since made up with my adviser and have successfully defended the thesis. I now have to publish my thesis.  The department says that one can include acknowledgements. All of the theses I have seen in my lab and in my department feature acknowledgements. Due to this special situation,  I don't quite feel that acknowledgements are called for. Yes, my adviser helped during the first half of the project but then almost completely reverted his stance. In terms of contribution, it is my opinion that he comes out at 0%.  I do not want to address any of the issues in the acknowledgements. I do not think that this is the right place. Likewise, I do not feel like thanking any of the involved people. Therefore, I would just leave out the acknowledgements completely. In academia, is this considered worse than lukewarm acknowledgements? Should I actually care about the acknowledgement, because others do?


How to create a \newenvironment{name}[num]{before}{after} with a parameter in {after}

My tables are all formatted like this:  \begin{table}[t]     \centering      \begin{threeparttable}         \caption{\label{tab:<my label>}<my table title>}         \small%         <the actual table>         \begin{tablenotes}[para,flushleft]                        \footnotesize{<the table notes>}         \end{tablenotes}          \end{threeparttable} \end{table}   I'd like to create a new environment (it's the first time I do that!) in order to type only the parts indicated within <...>.  I tried this, but it doesn't work:  \documentclass[11pt,openright]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage[a4paper]{geometry} \geometry{verbose,tmargin=3cm,bmargin=3.5cm,lmargin=4cm,rmargin=3cm,marginparwidth=70pt} \usepackage{comment} \usepackage{prettyref} \usepackage{setspace} \usepackage{fancyhdr} \usepackage[normalem]{ulem} \usepackage{setspace} \usepackage{bigstrut} \usepackage{array} \usepackage{booktabs} \usepackage{tabularx} \usepackage{dcolumn}  \usepackage{multirow} \renewcommand{\multirowsetup}{\centering}  \usepackage[para,flushleft]{threeparttable} \usepackage{makecell} \usepackage[margin=10pt,font=small,labelfont=bf,labelsep=period,format=hang,indention=0cm]{caption} \captionsetup[table]{position=above, belowskip=4pt}  \newenvironment{tabella}[3]{%before     \begin{table}[t]     \centering      \begin{threeparttable}[b]     \caption{\label{tab:#1}#2}     \small } {%after     \begin{tablenotes}[para,flushleft]             \footnotesize{#3}     \end{tablenotes}          \end{threeparttable}     \end{table} }  \begin{document} % Example of working table without new environment \begin{table}[t]     \centering      \begin{threeparttable}         \caption{\label{tab:mytab1}Example without new environment}         \small%         \begin{tabular}{@{}ccc@{}}             \toprule              \addlinespace             Ducks  & Lions & Penguins\\             \addlinespace             \midrule             1& 2& 3\\             Quack & Roar & ?\tnote{a}\\             \bottomrule         \end{tabular}         \begin{tablenotes}[para,flushleft]                        \footnotesize{\item[a] What is the call of the penguins?\\\emph{Source}: blah, blah, blah.}         \end{tablenotes}          \end{threeparttable} \end{table}  % Example of not working table with new environment \begin{tabella}{mytab2}{Example with new environment}     {\item[a] What is the call of the penguins?\\\emph{Source}: blah, blah, blah.}     \begin{tabular}{@{}lll@{}}         \toprule          \addlinespace         Ducks  & Lions & Penguins\\         \addlinespace         \midrule         1& 2& 3\\         Quack & Roar & ?\tnote{a}\\         \bottomrule     \end{tabular} \end{tabella}  \end{document}


Is there a way to hide from imperial troops?

Sometimes I just looking for a piece of ore and hear one of my teammates say 'Imperial ship above!", and, a few minutes later, that ship will drop a few soldiers on my face.  Is there anything to do to 'dodge' that encounter? It feels like there would be a way to hide from imperial troops?


Suppose you are tied $1-1$ with Bob. To win the game, you have win greater than or equal to $5$ rounds and win at least $2$ more rounds than your opponent. The probability of winning a round is $40\%$ and each round is independent. What is the probability of you winning the game?  This would be: $$\left[1-P(\text{winning less than 5 rounds}) \times P(\text{win at least $2$ more rounds than your opponent}\right]$$  $$ = \left[1-\sum_{i=0}^{3} \binom{3}{i} (0.4)^{i}(0.6)^{3-i} \right] \times \left[P(\text{win at least $2$ more rounds than your opponent}) \right] $$  What would be the second term? Would you just calculate 1-complement?


If the big bang was the birth of everything, and the big bang was an event in the sense that it had a location and a time (time 0), wouldn't that mean that our universe has a center?  Where was the big bang? What is there now? Are we moving away from the center still? Are these even valid questions?


In Nolan's Dark Knight Trilogy,how many people in total actually know that Bruce Wayne is Batman?


There is two ways to define function in bash script.  1.  function FuncName() {     echo "$FUNCNAME" }   2.  FuncName() {     echo "$FUNCNAME" }   So my questions is what's the different between in this and which one should be use.


I need to write a bash script, and would like it to parse unordered parameters of the format:  scriptname --param1 <string> --param2 <string> --param3 <date>   Is there a simple way to accomplish this, or am I pretty much stuck with $1, $2, $3?


How can I have a tabular flush with the margins?

Consider the following:  \documentclass{article}  \setlength\parindent{0pt}  \begin{document} content \hfill content  \begin{tabular*}{\textwidth}{l@{\extracolsep{\fill}}r}   one   & two \\   three & four \end{tabular*}  content \hfill content \end{document}         How can I remove the whitespace at either side of the tabular?


I have a perfect GPA from 2nd year on wards, but a horrible first year... How badly will this affect PhD admission?

I have BSc in Mathematics, and will finish my BSc (Hons) in Statistics soon.   In my first year of my degree I failed one course, got a C, two B- and one A+. This was when I was lazy and generally being an idiot. I really regret this.  In my second year I got all A+ including the course I failed the previous year. I got all A or A+ for the remainder of my undergrad. I've completed 5 of the required 8 courses for my honours with A+ and expect to get A+ in the remaining three.  I want to get into a decent university (top 50 qs hopefully) for a PhD program. I am worried that my extremely poor performance in my first year will ruin this for me. Will they be willing to look past this since I got my grades up, or will they just bin my application?  I also got deans list every year after second year, top of my year in statistics, and another honours scholarship if that makes any difference.